comparison configure.in @ 49600:23a1cea22d13

Trailing whitespace deleted.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Feb 2003 14:56:31 +0000
parents 99be3a1e2589
children 58d11522f3bc d7ddb3e565de
comparison
equal deleted inserted replaced
49599:5ade352e8d1c 49600:23a1cea22d13
75 75
76 dnl This should be the last --with option, because --with-x is 76 dnl This should be the last --with option, because --with-x is
77 dnl added later on when we find the path of X, and it's best to 77 dnl added later on when we find the path of X, and it's best to
78 dnl keep them together visually. 78 dnl keep them together visually.
79 AC_ARG_WITH(x-toolkit, 79 AC_ARG_WITH(x-toolkit,
80 [ --with-x-toolkit=KIT use an X toolkit 80 [ --with-x-toolkit=KIT use an X toolkit
81 (KIT = yes/lucid/athena/motif/gtk/no)], 81 (KIT = yes/lucid/athena/motif/gtk/no)],
82 [ case "${withval}" in 82 [ case "${withval}" in
83 y | ye | yes ) val=athena ;; 83 y | ye | yes ) val=athena ;;
84 n | no ) val=no ;; 84 n | no ) val=no ;;
85 l | lu | luc | luci | lucid ) val=lucid ;; 85 l | lu | luc | luci | lucid ) val=lucid ;;
1066 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; 1066 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
1067 *-esix* ) opsys=esix ;; 1067 *-esix* ) opsys=esix ;;
1068 *-xenix* ) opsys=xenix ;; 1068 *-xenix* ) opsys=xenix ;;
1069 *-linux-gnu* ) opsys=gnu-linux ;; 1069 *-linux-gnu* ) opsys=gnu-linux ;;
1070 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; 1070 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
1071 *-sco3.2v5* ) opsys=sco5 1071 *-sco3.2v5* ) opsys=sco5
1072 NON_GNU_CPP=/lib/cpp 1072 NON_GNU_CPP=/lib/cpp
1073 # Prevent -belf from being passed to $CPP. 1073 # Prevent -belf from being passed to $CPP.
1074 # /lib/cpp does not accept it. 1074 # /lib/cpp does not accept it.
1075 OVERRIDE_CPPFLAGS=" " 1075 OVERRIDE_CPPFLAGS=" "
1076 ;; 1076 ;;
1110 CPP="cc -E -traditional-cpp" 1110 CPP="cc -E -traditional-cpp"
1111 ;; 1111 ;;
1112 1112
1113 ## AMD x86-64 Linux-based GNU system 1113 ## AMD x86-64 Linux-based GNU system
1114 x86_64-*-linux-gnu* ) 1114 x86_64-*-linux-gnu* )
1115 machine=amdx86-64 opsys=gnu-linux 1115 machine=amdx86-64 opsys=gnu-linux
1116 ;; 1116 ;;
1117 1117
1118 * ) 1118 * )
1119 unported=yes 1119 unported=yes
1120 ;; 1120 ;;
1331 #define LD_SWITCH_SYSTEM 1331 #define LD_SWITCH_SYSTEM
1332 #endif 1332 #endif
1333 1333
1334 #ifndef LD_SWITCH_X_SITE_AUX 1334 #ifndef LD_SWITCH_X_SITE_AUX
1335 #define LD_SWITCH_X_SITE_AUX 1335 #define LD_SWITCH_X_SITE_AUX
1336 #endif 1336 #endif
1337 1337
1338 configure___ ld_switch_system=LD_SWITCH_SYSTEM 1338 configure___ ld_switch_system=LD_SWITCH_SYSTEM
1339 configure___ ld_switch_machine=LD_SWITCH_MACHINE 1339 configure___ ld_switch_machine=LD_SWITCH_MACHINE
1340 1340
1341 #ifdef THIS_IS_CONFIGURE 1341 #ifdef THIS_IS_CONFIGURE
1445 dnl Check for speed_t typedef. 1445 dnl Check for speed_t typedef.
1446 AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t, 1446 AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t,
1447 [AC_TRY_COMPILE([#include <termios.h>], [speed_t x = 1;], 1447 [AC_TRY_COMPILE([#include <termios.h>], [speed_t x = 1;],
1448 emacs_cv_speed_t=yes, emacs_cv_speed_t=no)]) 1448 emacs_cv_speed_t=yes, emacs_cv_speed_t=no)])
1449 if test $emacs_cv_speed_t = yes; then 1449 if test $emacs_cv_speed_t = yes; then
1450 AC_DEFINE(HAVE_SPEED_T, 1, 1450 AC_DEFINE(HAVE_SPEED_T, 1,
1451 [Define to 1 if `speed_t' is declared by <termios.h>.]) 1451 [Define to 1 if `speed_t' is declared by <termios.h>.])
1452 fi 1452 fi
1453 1453
1454 AC_CACHE_CHECK(for struct timeval, emacs_cv_struct_timeval, 1454 AC_CACHE_CHECK(for struct timeval, emacs_cv_struct_timeval,
1455 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME 1455 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
1467 if test $emacs_cv_struct_timeval = yes; then 1467 if test $emacs_cv_struct_timeval = yes; then
1468 AC_DEFINE(HAVE_TIMEVAL, 1, [Define to 1 if `struct timeval' is declared by <sys/time.h>.]) 1468 AC_DEFINE(HAVE_TIMEVAL, 1, [Define to 1 if `struct timeval' is declared by <sys/time.h>.])
1469 fi 1469 fi
1470 1470
1471 AC_CACHE_CHECK(for struct exception, emacs_cv_struct_exception, 1471 AC_CACHE_CHECK(for struct exception, emacs_cv_struct_exception,
1472 AC_TRY_COMPILE([#include <math.h>], 1472 AC_TRY_COMPILE([#include <math.h>],
1473 [static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;], 1473 [static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;],
1474 emacs_cv_struct_exception=yes, emacs_cv_struct_exception=no)) 1474 emacs_cv_struct_exception=yes, emacs_cv_struct_exception=no))
1475 HAVE_EXCEPTION=$emacs_cv_struct_exception 1475 HAVE_EXCEPTION=$emacs_cv_struct_exception
1476 if test $emacs_cv_struct_exception != yes; then 1476 if test $emacs_cv_struct_exception != yes; then
1477 AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.]) 1477 AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.])
1496 AC_C_CONST 1496 AC_C_CONST
1497 dnl This isn't useful because we can't turn on use of `inline' unless 1497 dnl This isn't useful because we can't turn on use of `inline' unless
1498 dnl the compiler groks `extern inline'. 1498 dnl the compiler groks `extern inline'.
1499 dnl AC_C_INLINE 1499 dnl AC_C_INLINE
1500 AC_CACHE_CHECK([for void * support], emacs_cv_void_star, 1500 AC_CACHE_CHECK([for void * support], emacs_cv_void_star,
1501 [AC_TRY_COMPILE(, [void * foo;], 1501 [AC_TRY_COMPILE(, [void * foo;],
1502 emacs_cv_void_star=yes, emacs_cv_void_star=no)]) 1502 emacs_cv_void_star=yes, emacs_cv_void_star=no)])
1503 if test $emacs_cv_void_star = yes; then 1503 if test $emacs_cv_void_star = yes; then
1504 AC_DEFINE(POINTER_TYPE, void) 1504 AC_DEFINE(POINTER_TYPE, void)
1505 else 1505 else
1506 AC_DEFINE(POINTER_TYPE, char) 1506 AC_DEFINE(POINTER_TYPE, char)
1597 ### If we're using X11, we should use the X menu package. 1597 ### If we're using X11, we should use the X menu package.
1598 HAVE_MENUS=no 1598 HAVE_MENUS=no
1599 case ${HAVE_X11} in 1599 case ${HAVE_X11} in
1600 yes ) HAVE_MENUS=yes ;; 1600 yes ) HAVE_MENUS=yes ;;
1601 esac 1601 esac
1602 1602
1603 if test "${opsys}" = "hpux9"; then 1603 if test "${opsys}" = "hpux9"; then
1604 case "${x_libraries}" in 1604 case "${x_libraries}" in
1605 *X11R4* ) 1605 *X11R4* )
1606 opsysfile="s/hpux9-x11r4.h" 1606 opsysfile="s/hpux9-x11r4.h"
1607 ;; 1607 ;;
1825 $1_LIBS=`$PKG_CONFIG --libs "$2"` 1825 $1_LIBS=`$PKG_CONFIG --libs "$2"`
1826 AC_MSG_RESULT($$1_LIBS) 1826 AC_MSG_RESULT($$1_LIBS)
1827 else 1827 else
1828 $1_CFLAGS="" 1828 $1_CFLAGS=""
1829 $1_LIBS="" 1829 $1_LIBS=""
1830 ## If we have a custom action on failure, don't print errors, but 1830 ## If we have a custom action on failure, don't print errors, but
1831 ## do set a variable so people can do so. 1831 ## do set a variable so people can do so.
1832 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 1832 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1833 ifelse([$4], ,echo $$1_PKG_ERRORS,) 1833 ifelse([$4], ,echo $$1_PKG_ERRORS,)
1834 fi 1834 fi
1835 1835
1976 [Define to 1 if you have Motif 2.1 or newer.]) 1976 [Define to 1 if you have Motif 2.1 or newer.])
1977 AC_CHECK_LIB(Xp, XpCreateContext, HAVE_LIBXP=yes) 1977 AC_CHECK_LIB(Xp, XpCreateContext, HAVE_LIBXP=yes)
1978 if test ${HAVE_LIBXP} = yes; then 1978 if test ${HAVE_LIBXP} = yes; then
1979 AC_DEFINE(HAVE_LIBXP, 1, 1979 AC_DEFINE(HAVE_LIBXP, 1,
1980 [Define to 1 if you have the Xp library (-lXp).]) 1980 [Define to 1 if you have the Xp library (-lXp).])
1981 fi 1981 fi
1982 fi 1982 fi
1983 fi 1983 fi
1984 1984
1985 ### Is -lXaw3d available? 1985 ### Is -lXaw3d available?
1986 HAVE_XAW3D=no 1986 HAVE_XAW3D=no
1994 AC_DEFINE(HAVE_XAW3D, 1, 1994 AC_DEFINE(HAVE_XAW3D, 1,
1995 [Define to 1 if you have the Xaw3d library (-lXaw3d).]) 1995 [Define to 1 if you have the Xaw3d library (-lXaw3d).])
1996 fi 1996 fi
1997 fi 1997 fi
1998 fi 1998 fi
1999 1999
2000 dnl Use toolkit scroll bars if configured for GTK or X toolkit and either 2000 dnl Use toolkit scroll bars if configured for GTK or X toolkit and either
2001 dnl using Motif or Xaw3d is available, and unless 2001 dnl using Motif or Xaw3d is available, and unless
2002 dnl --with-toolkit-scroll-bars=no was specified. 2002 dnl --with-toolkit-scroll-bars=no was specified.
2003 2003
2004 AH_TEMPLATE(USE_TOOLKIT_SCROLL_BARS, 2004 AH_TEMPLATE(USE_TOOLKIT_SCROLL_BARS,
2053 2053
2054 if test "${HAVE_XPM}" = "yes"; then 2054 if test "${HAVE_XPM}" = "yes"; then
2055 AC_DEFINE(HAVE_XPM, 1, [Define to 1 if you have the Xpm libary (-lXpm).]) 2055 AC_DEFINE(HAVE_XPM, 1, [Define to 1 if you have the Xpm libary (-lXpm).])
2056 fi 2056 fi
2057 fi 2057 fi
2058 2058
2059 ### Use -ljpeg if available, unless `--with-jpeg=no'. 2059 ### Use -ljpeg if available, unless `--with-jpeg=no'.
2060 HAVE_JPEG=no 2060 HAVE_JPEG=no
2061 if test "${HAVE_X11}" = "yes"; then 2061 if test "${HAVE_X11}" = "yes"; then
2062 if test "${with_jpeg}" != "no"; then 2062 if test "${with_jpeg}" != "no"; then
2063 dnl Checking for jpeglib.h can lose because of a redefinition of 2063 dnl Checking for jpeglib.h can lose because of a redefinition of
2070 if test "${HAVE_JPEG}" = "yes"; then 2070 if test "${HAVE_JPEG}" = "yes"; then
2071 AC_DEFINE(HAVE_JPEG) 2071 AC_DEFINE(HAVE_JPEG)
2072 AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], 2072 AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])],
2073 [#include <jpeglib.h> 2073 [#include <jpeglib.h>
2074 version=JPEG_LIB_VERSION 2074 version=JPEG_LIB_VERSION
2075 ], 2075 ],
2076 AC_DEFINE(HAVE_JPEG), 2076 AC_DEFINE(HAVE_JPEG),
2077 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) 2077 [AC_MSG_WARN([libjpeg found, but not version 6b or later])
2078 HAVE_JPEG=no]) 2078 HAVE_JPEG=no])
2079 fi 2079 fi
2080 fi 2080 fi
2081 2081
2082 ### Use -lpng if available, unless `--with-png=no'. 2082 ### Use -lpng if available, unless `--with-png=no'.
2083 HAVE_PNG=no 2083 HAVE_PNG=no
2084 if test "${HAVE_X11}" = "yes"; then 2084 if test "${HAVE_X11}" = "yes"; then
2085 if test "${with_png}" != "no"; then 2085 if test "${with_png}" != "no"; then
2086 AC_CHECK_HEADER(png.h, 2086 AC_CHECK_HEADER(png.h,
2089 2089
2090 if test "${HAVE_PNG}" = "yes"; then 2090 if test "${HAVE_PNG}" = "yes"; then
2091 AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).]) 2091 AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).])
2092 fi 2092 fi
2093 fi 2093 fi
2094 2094
2095 ### Use -ltiff if available, unless `--with-tiff=no'. 2095 ### Use -ltiff if available, unless `--with-tiff=no'.
2096 HAVE_TIFF=no 2096 HAVE_TIFF=no
2097 if test "${HAVE_X11}" = "yes"; then 2097 if test "${HAVE_X11}" = "yes"; then
2098 if test "${with_tiff}" != "no"; then 2098 if test "${with_tiff}" != "no"; then
2099 AC_CHECK_HEADER(tiffio.h, 2099 AC_CHECK_HEADER(tiffio.h,
2105 2105
2106 if test "${HAVE_TIFF}" = "yes"; then 2106 if test "${HAVE_TIFF}" = "yes"; then
2107 AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).]) 2107 AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).])
2108 fi 2108 fi
2109 fi 2109 fi
2110 2110
2111 ### Use -lgif if available, unless `--with-gif=no'. 2111 ### Use -lgif if available, unless `--with-gif=no'.
2112 HAVE_GIF=no 2112 HAVE_GIF=no
2113 if test "${HAVE_X11}" = "yes"; then 2113 if test "${HAVE_X11}" = "yes"; then
2114 if test "${with_gif}" != "no"; then 2114 if test "${with_gif}" != "no"; then
2115 AC_CHECK_HEADER(gif_lib.h, 2115 AC_CHECK_HEADER(gif_lib.h,
2156 *-lSM*) ;; 2156 *-lSM*) ;;
2157 *) LIBS="-lSM -lICE $LIBS" ;; 2157 *) LIBS="-lSM -lICE $LIBS" ;;
2158 esac 2158 esac
2159 fi 2159 fi
2160 fi 2160 fi
2161 2161
2162 # If netdb.h doesn't declare h_errno, we must declare it by hand. 2162 # If netdb.h doesn't declare h_errno, we must declare it by hand.
2163 AC_CACHE_CHECK(whether netdb declares h_errno, 2163 AC_CACHE_CHECK(whether netdb declares h_errno,
2164 emacs_cv_netdb_declares_h_errno, 2164 emacs_cv_netdb_declares_h_errno,
2165 [AC_TRY_LINK([#include <netdb.h>], 2165 [AC_TRY_LINK([#include <netdb.h>],
2166 [return h_errno;], 2166 [return h_errno;],
2586 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 2586 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2587 Boston, MA 02111-1307, USA. */ 2587 Boston, MA 02111-1307, USA. */
2588 2588
2589 2589
2590 /* No code in Emacs #includes config.h twice, but some bits of code 2590 /* No code in Emacs #includes config.h twice, but some bits of code
2591 intended to work with other packages as well (like gmalloc.c) 2591 intended to work with other packages as well (like gmalloc.c)
2592 think they can include it as many times as they like. */ 2592 think they can include it as many times as they like. */
2593 #ifndef EMACS_CONFIG_H 2593 #ifndef EMACS_CONFIG_H
2594 #define EMACS_CONFIG_H 2594 #define EMACS_CONFIG_H
2595 ])dnl 2595 ])dnl
2596 2596
2810 /* These won't be used automatically yet. We also need to know, at least, 2810 /* These won't be used automatically yet. We also need to know, at least,
2811 that the stack is continuous. */ 2811 that the stack is continuous. */
2812 #ifdef __GNUC__ 2812 #ifdef __GNUC__
2813 # ifndef GC_SETJMP_WORKS 2813 # ifndef GC_SETJMP_WORKS
2814 /* GC_SETJMP_WORKS is nearly always appropriate for GCC -- 2814 /* GC_SETJMP_WORKS is nearly always appropriate for GCC --
2815 see NON_SAVING_SETJMP in the target descriptions. */ 2815 see NON_SAVING_SETJMP in the target descriptions. */
2816 /* Exceptions (see NON_SAVING_SETJMP in target description) are ns32k, 2816 /* Exceptions (see NON_SAVING_SETJMP in target description) are ns32k,
2817 SCO5 non-ELF (but Emacs specifies ELF) and SVR3 on x86. 2817 SCO5 non-ELF (but Emacs specifies ELF) and SVR3 on x86.
2818 Fixme: Deal with ns32k, SVR3. */ 2818 Fixme: Deal with ns32k, SVR3. */
2819 # define GC_SETJMP_WORKS 1 2819 # define GC_SETJMP_WORKS 1
2820 # endif 2820 # endif
2833 #define BCMP memcmp 2833 #define BCMP memcmp
2834 #endif 2834 #endif
2835 2835
2836 #endif /* EMACS_CONFIG_H */ 2836 #endif /* EMACS_CONFIG_H */
2837 2837
2838 /* 2838 /*
2839 Local Variables: 2839 Local Variables:
2840 mode: c 2840 mode: c
2841 End: 2841 End:
2842 */ 2842 */
2843 ])dnl 2843 ])dnl