Changeset 4196 for trunk/configure.in
- Timestamp:
- 03/21/07 09:51:40 (2 years ago)
- Files:
-
- trunk/configure.in (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/configure.in
r4180 r4196 4 4 dnl in the directory containing this script. 5 5 dnl 6 dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 6 dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 7 7 dnl Free Software Foundation, Inc. 8 8 dnl … … 24 24 dnl Boston, MA 02110-1301, USA. 25 25 26 AC_PREREQ(2. 54)dnl26 AC_PREREQ(2.61)dnl 27 27 AC_INIT(src/lisp.h) 28 28 AC_CONFIG_HEADER(src/config.h:src/config.in) … … 55 55 AC_ARG_WITH(kerberos, 56 56 [ --with-kerberos support Kerberos-authenticated POP], 57 [AC_DEFINE(KERBEROS)]) 57 [if test "$withval" = yes; then 58 AC_DEFINE(KERBEROS) 59 fi]) 58 60 AH_TEMPLATE(KERBEROS, 59 61 [Define to support Kerberos-authenticated POP mail retrieval.])dnl … … 65 67 AC_DEFINE(KERBEROS) 66 68 fi 67 fi 68 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.])])69 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) 70 fi]) 69 71 AC_ARG_WITH(hesiod, 70 72 [ --with-hesiod support Hesiod to get the POP server host], 71 [AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])]) 73 [if test "$withval" = yes; then 74 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) 75 fi]) 72 76 73 77 AC_ARG_WITH(sound, … … 261 265 # This is somewhat bogus. 262 266 machine=hp9000s300 ;; 263 powerpc-apple-netbsd*) machine=macppc ;;264 267 mips-*-netbsd*) machine=pmax ;; 265 268 mipsel-*-netbsd*) machine=pmax ;; … … 270 273 vax-*-netbsd*) machine=vax ;; 271 274 arm-*-netbsd*) machine=arm ;; 275 x86_64-*-netbsd*) machine=amdx86-64 ;; 276 hppa-*-netbsd*) machine=hp800 ;; 277 shle-*-netbsd*) machine=sh3el ;; 272 278 esac 273 279 ;; … … 278 284 case "${canonical}" in 279 285 alpha*-*-openbsd*) machine=alpha ;; 280 i386-*-openbsd*) machine=intel386 ;; 281 x86_64-*-openbsd*) machine=amdx86-64 ;; 282 m68k-*-openbsd*) machine=hp9000s300 ;; 283 mipsel-*-openbsd*) machine=pmax ;; 284 ns32k-*-openbsd*) machine=ns32000 ;; 285 sparc-*-openbsd*) machine=sparc ;; 286 vax-*-openbsd*) machine=vax ;; 286 arm-*-openbsd*) machine=arm ;; 287 hppa-*-openbsd*) machine=hp9000s300 ;; 288 i386-*-openbsd*) machine=intel386 ;; 289 m68k-*-openbsd*) machine=hp9000s300 ;; 290 m88k-*-openbsd*) machine=aviion ;; 291 mips64-*-openbsd*) machine=mips64 ;; 292 powerpc-*-openbsd*) machine=macppc ;; 293 sh-*-openbsd*) machine=sh3el ;; 294 sparc*-*-openbsd*) machine=sparc ;; 295 vax-*-openbsd*) machine=vax ;; 296 x86_64-*-openbsd*) machine=amdx86-64 ;; 287 297 esac 288 298 ;; … … 377 387 ;; 378 388 389 ## Apple Darwin / Mac OS X 390 *-apple-darwin* ) 391 case "${canonical}" in 392 i[3456]86-* ) machine=intel386 ;; 393 powerpc-* ) machine=powermac ;; 394 * ) unported=yes ;; 395 esac 396 opsys=darwin 397 # Define CPP as follows to make autoconf work correctly. 398 CPP="${CC-cc} -E -no-cpp-precomp" 399 # Use fink packages if available. 400 if test -d /sw/include && test -d /sw/lib; then 401 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" 402 CPP="${CPP} ${GCC_TEST_OPTIONS}" 403 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} 404 fi 405 ;; 406 379 407 ## AT&T 3b2, 3b5, 3b15, 3b20 380 408 we32k-att-sysv* ) … … 566 594 NON_GNU_CPP="cc -Xo -E -P" 567 595 ;; 568 ## SR2001/SR2201 running HI-UX/MPP569 hppa1.1-hitachi-hiuxmpp* )570 machine=sr2k opsys=hiuxmpp571 ;;572 hppa1.1-hitachi-hiuxwe2* )573 machine=sr2k opsys=hiuxwe2574 ;;575 596 ## Honeywell XPS100 576 597 xps*-honeywell-sysv* ) … … 595 616 ;; 596 617 597 ## HP 9000 series 700 and 800, running HP/UX598 hppa*-hp-hpux7* )599 machine=hp800 opsys=hpux600 ;;601 hppa*-hp-hpux8* )602 machine=hp800 opsys=hpux8603 ;;604 hppa*-hp-hpux9shr* )605 machine=hp800 opsys=hpux9shr606 ;;607 hppa*-hp-hpux9* )608 machine=hp800 opsys=hpux9609 ;;610 hppa*-hp-hpux10.2* )611 machine=hp800 opsys=hpux10-20612 ;;613 hppa*-hp-hpux10* )614 machine=hp800 opsys=hpux10615 ;;616 hppa*-hp-hpux1[1-9]* )617 machine=hp800 opsys=hpux11618 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"619 ;;620 621 618 hppa*-*-linux-gnu* ) 622 619 machine=hp800 opsys=gnu-linux 623 620 ;; 624 621 625 ## HP 9000 series 700 and 800, running HP/UX626 hppa*-hp-hpux* )627 ## Cross-compilation? Nah!628 case "`uname -r`" in629 ## Someone's system reports A.B8.05 for this.630 ## I wonder what other possibilities there are.631 *.B8.* ) machine=hp800 opsys=hpux8 ;;632 *.08.* ) machine=hp800 opsys=hpux8 ;;633 *.09.* ) machine=hp800 opsys=hpux9 ;;634 *) machine=hp800 opsys=hpux10 ;;635 esac636 ;;637 622 hppa*-*-nextstep* ) 638 623 machine=hp800 opsys=nextstep … … 952 937 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; 953 938 i[3456]86-*-* ) machine=intel386 ;; 939 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; 954 940 powerpcle* ) machine=powerpcle ;; 955 941 powerpc* | rs6000* ) machine=ibmrs6000 ;; … … 1152 1138 ;; 1153 1139 1154 ## Darwin / Mac OS X1155 powerpc-apple-darwin* )1156 machine=powermac opsys=darwin1157 # Define CPP as follows to make autoconf work correctly.1158 CPP="${CC-cc} -E -no-cpp-precomp"1159 # Use fink packages if available.1160 if test -d /sw/include && test -d /sw/lib; then1161 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"1162 CPP="${CPP} ${GCC_TEST_OPTIONS}"1163 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}1164 fi1165 ;;1166 1167 1140 ## AMD x86-64 Linux-based GNU system 1168 1141 x86_64-*-linux-gnu* ) 1169 1142 machine=amdx86-64 opsys=gnu-linux 1170 1143 ;; 1144 1145 ## Tensilica Xtensa Linux-based GNU system 1146 xtensa-*-linux-gnu* ) 1147 machine=xtensa opsys=gnu-linux 1148 ;; 1171 1149 1172 1150 * ) … … 1486 1464 1487 1465 1466 ### The standard library on x86-64 GNU/Linux distributions can 1467 ### be located in either /usr/lib64 or /usr/lib. 1468 case "${canonical}" in 1469 x86_64-*-linux-gnu* ) 1470 if test -d /usr/lib64; then 1471 AC_DEFINE(HAVE_X86_64_LIB64_DIR, 1, 1472 [Define to 1 if the file /usr/lib64 exists.]) 1473 fi 1474 esac 1475 1488 1476 dnl This function defintion taken from Gnome 2.0 1489 1477 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) … … 1510 1498 1511 1499 AC_MSG_CHECKING($1_CFLAGS) 1512 $1_CFLAGS=`$PKG_CONFIG --cflags "$2" `1500 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"|sed -e 's,///*,/,g'` 1513 1501 AC_MSG_RESULT($$1_CFLAGS) 1514 1502 1515 1503 AC_MSG_CHECKING($1_LIBS) 1516 $1_LIBS=`$PKG_CONFIG --libs "$2" `1504 $1_LIBS=`$PKG_CONFIG --libs "$2"|sed -e 's,///*,/,g'` 1517 1505 AC_MSG_RESULT($$1_LIBS) 1518 1506 else … … 1557 1545 PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) 1558 1546 if test $HAVE_ALSA = yes; then 1547 SAVE_CFLAGS="$CFLAGS" 1548 SAVE_LDFLAGS="$LDFLAGS" 1549 CFLAGS="$ALSA_CFLAGS $CFLAGS" 1550 LDFLAGS="$ALSA_LIBS $LDFLAGS" 1551 AC_TRY_COMPILE([#include <asoundlib.h>], [snd_lib_error_set_handler (0);], 1552 emacs_alsa_normal=yes, 1553 emacs_alsa_normal=no) 1554 if test "$emacs_alsa_normal" != yes; then 1555 AC_TRY_COMPILE([#include <alsa/asoundlib.h>], 1556 [snd_lib_error_set_handler (0);], 1557 emacs_alsa_subdir=yes, 1558 emacs_alsa_subdir=no) 1559 if test "$emacs_alsa_subdir" != yes; then 1560 AC_MSG_ERROR([pkg-config found alsa, but it does not compile. See config.log for error messages.]) 1561 fi 1562 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 1563 fi 1564 1565 CFLAGS="$SAVE_CFLAGS" 1566 LDFLAGS="$SAVE_LDFLAGS" 1559 1567 LIBSOUND="$LIBSOUND $ALSA_LIBS" 1560 1568 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 1561 1569 AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if ALSA is available.]) 1570 AC_SUBST() 1562 1571 fi 1563 1572 AC_SUBST(CFLAGS_SOUND) … … 2033 2042 2034 2043 HAVE_GTK=no 2044 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then 2045 USE_X_TOOLKIT=none 2046 fi 2035 2047 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then 2036 2048 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then … … 2052 2064 CFLAGS="$CFLAGS $GTK_CFLAGS" 2053 2065 LIBS="$GTK_LIBS $LIBS" 2066 dnl Try to compile a simple GTK program. 2067 GTK_COMPILES=no 2068 AC_CHECK_FUNCS(gtk_main, GTK_COMPILES=yes) 2069 if test "${GTK_COMPILES}" != "yes"; then 2070 AC_MSG_ERROR([Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?]); 2071 fi 2072 2054 2073 HAVE_GTK=yes 2055 2074 AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.]) … … 2098 2117 AC_DEFINE(HAVE_GTK_AND_PTHREAD, 1, 2099 2118 [Define to 1 if you have GTK and pthread (-lpthread).]) 2119 fi 2120 fi 2121 fi 2122 2123 ### Link with -lXft if available to work around a bug. 2124 HAVE_XFT=maybe 2125 if test "${HAVE_GTK}" = "yes"; then 2126 dnl Check if --with-pkg-config-prog has been given. 2127 if test "X${with_pkg_config_prog}" != X; then 2128 PKG_CONFIG="${with_pkg_config_prog}" 2129 fi 2130 2131 PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no) 2132 if test "$HAVE_XFT" != no; then 2133 OLD_CFLAGS="$CPPFLAGS" 2134 OLD_CPPFLAGS="$CFLAGS" 2135 OLD_LIBS="$LIBS" 2136 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 2137 CFLAGS="$CFLAGS $XFT_CFLAGS" 2138 LIBS="$XFT_LIBS $LIBS" 2139 AC_CHECK_HEADER(X11/Xft/Xft.h, 2140 AC_CHECK_LIB(Xft, XftFontOpen, HAVE_XFT=yes, , $XFT_LIBS)) 2141 2142 if test "${HAVE_XFT}" = "yes"; then 2143 AC_DEFINE(HAVE_XFT, 1, [Define to 1 if you have the Xft library.]) 2144 AC_SUBST(XFT_LIBS) 2145 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 2146 else 2147 CFLAGS="$OLD_CPPFLAGS" 2148 CFLAGS="$OLD_CFLAGS" 2149 LIBS="$OLD_LIBS" 2100 2150 fi 2101 2151 fi … … 2480 2530 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 2481 2531 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 2482 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \2532 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 2483 2533 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign) 2484 2534 … … 2641 2691 fi 2642 2692 2643 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.2644 AC_STRUCT_TIMEZONE2645 2646 dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect.2647 if test "$ac_cv_func_gettimeofday" = yes; then2648 AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone,2649 [AC_TRY_COMPILE([#include <sys/time.h>],2650 [struct timezone tz;],2651 dnl It may be that we can't call gettimeofday with a non-null pointer,2652 dnl even though we have struct timezone (e.g. HPUX). In that case2653 dnl we'll lie about struct timezone.2654 [AC_TRY_RUN([2655 #ifdef TIME_WITH_SYS_TIME2656 #include <sys/time.h>2657 #include <time.h>2658 #else2659 #ifdef HAVE_SYS_TIME_H2660 #include <sys/time.h>2661 #else2662 #include <time.h>2663 #endif2664 #endif2665 main () {2666 struct timeval time;2667 struct timezone dummy;2668 exit (gettimeofday (&time, &dummy));2669 }],2670 emacs_cv_struct_timezone=yes,2671 emacs_cv_struct_timezone=no, emacs_cv_struct_timezone=yes)],2672 emacs_cv_struct_timezone=no)])2673 fi2674 2675 2693 ok_so_far=yes 2676 2694 AC_CHECK_FUNC(socket, , ok_so_far=no) … … 2865 2883 2866 2884 AH_TOP([/* GNU Emacs site configuration template file. 2867 Copyright (C) 1988, 1993, 1994, 1999, 2000, 200 2, 2004, 2005, 20062885 Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007 2868 2886 Free Software Foundation, Inc. 2869 2887 … … 3200 3218 CPPFLAGS="$CPPFLAGS -DXASSERTS=1" 3201 3219 echo 3220 fi 3221 3222 if test "$USE_X_TOOLKIT" = GTK; then 3223 case "$canonical" in 3224 *cygwin*) 3225 echo "There are known problems with Emacs and Gtk+ on cygwin, so you 3226 will probably get a crash on startup. If this happens, please use another 3227 toolkit for Emacs. See etc/PROBLEMS for more information." 3228 ;; 3229 esac 3202 3230 fi 3203 3231
