diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-09-15 10:19:11 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-09-15 10:19:11 +0000 |
commit | 58458302b3227539ae190331c6488f70ef0cc31c (patch) | |
tree | 135655a6b91b46eba39d947d0cf22c46a78f3d59 | |
parent | afb4d6149f98a869914799836247f06af194cf87 (diff) |
INTEGRATION: CWS vq35 (1.173.8); FILE MERGED
2006/08/12 01:16:22 vq 1.173.8.4: #i68312# Move/beautify gcc/g++ check.
2006/08/12 01:03:01 vq 1.173.8.3: #i68312# Fix gcc/g++ check.
2006/08/12 00:11:19 vq 1.173.8.2: #i68312# Add check for cygwin gcc/g++ to configure.
2006/08/10 23:08:39 vq 1.173.8.1: #i68312# Build and use guw.exe.
-rw-r--r-- | config_office/configure.in | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/config_office/configure.in b/config_office/configure.in index 6c1ff4ce6f1a..eb8ac7917a9a 100644 --- a/config_office/configure.in +++ b/config_office/configure.in @@ -3,7 +3,7 @@ dnl * vi:set sw=3 ts=3 et: dnl * dnl * Name: configure.in dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland -dnl * Date: $Date: 2006-08-28 12:35:18 $ +dnl * Date: $Date: 2006-09-15 11:19:11 $ dnl * dnl * Desc: This file serves as input for the GNU autoconf package dnl * in order to create a configure script. @@ -12,7 +12,7 @@ dnl * necessary to build OpenOffice.org dnl * dnl * dnl ******************************************************************/ -AC_REVISION( $Revision: 1.176 $ ) +AC_REVISION( $Revision: 1.177 $ ) AC_PREREQ(2.50) AC_INIT() echo "$@" >config.parms @@ -1053,12 +1053,12 @@ Native windows programs cannot use cygwin symlinks. Remove the symbolic link, and copy the program to the name of the link.]) fi dnl =================================================================== - dnl Another sanity check! More a band-aid. winenv.* adds guw.pl to - dnl CC and CXX but the configure checks here assume that guw.pl + dnl Another sanity check! More a band-aid. winenv.* adds guw.exe to + dnl CC and CXX but the configure checks here assume that guw.exe dnl (if needed at all) is not yet present. dnl =================================================================== - CC=`echo $CC | $SED -n "s/^guw.pl //p"` - CXX=`echo $CXX | $SED -n "s/^guw.pl //p"` + CC=`echo $CC | $SED -n "s/^guw.exe //p"` + CXX=`echo $CXX | $SED -n "s/^guw.exe //p"` dnl =================================================================== dnl If $CC is set to a MinGW compiler, e.g. "gcc -mno-cygwin" enable dnl $WITH_MINGWIN @@ -1082,7 +1082,7 @@ link, and copy the program to the name of the link.]) fi else dnl =================================================================== - dnl All other operating systems use tcsh. + dnl All other operating systems use tcsh or bash. dnl =================================================================== if test "$with_use_shell" != "tcsh" -a "$with_use_shell" != "bash"; then AC_MSG_ERROR([only "tcsh" or "bash" are supported options]) @@ -1094,6 +1094,21 @@ AC_SUBST(USE_SHELL) AC_SUBST(WITH_MINGWIN) dnl =================================================================== +dnl Extra check for Windows. Non 4nt-builds need gcc to build dmake +dnl and g++ to build guw.exe although MS cl (or MinGW) is used to +dnl build OOo. +dnl =================================================================== +if test "$_os" = "WINNT" -a "$with_use_shell" != "4nt" ; then + AC_MSG_CHECKING([for cygwin gcc/g++]) + if which gcc > /dev/null && which g++ > /dev/null ; then + AC_MSG_RESULT([found]) + else + AC_MSG_ERROR([cygwin gcc and g++ are needed, please install them.]) + fi +fi + + +dnl =================================================================== dnl Check whether the chosen shell can be used. dnl =================================================================== if test "$with_use_shell" = "tcsh"; then |