X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/6fa6525fde11a6fd5a359a2e08fc6b02fca362c9..b8b47c1966c36a9bfa25ccc2c5b9ff5c7dd762d1:/configure.in diff --git a/configure.in b/configure.in index 75e6fc6ef1..9ab76e187b 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl To rebuild the `configure' script from this, execute the command dnl autoconf dnl in the directory containing this script. dnl -dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001 +dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 dnl Free Software Foundation, Inc. dnl dnl This file is part of GNU Emacs. @@ -114,7 +114,10 @@ case "${srcdir}" in . ) ## We may be able to use the $PWD environment variable to make this ## absolute. But sometimes PWD is inaccurate. - if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ; + ## Note: we used to use ${PWD} at the end instead of `pwd`, + ## but that tested only for a well-formed and valid PWD, + ## it did not object when PWD was well-formed and valid but just wrong. + if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; then srcdir="$PWD" else @@ -249,7 +252,7 @@ case "${canonical}" in *-*-bsdi2.0* ) opsys=bsdos2 ;; *-*-bsdi2* ) opsys=bsdos2-1 ;; *-*-bsdi3* ) opsys=bsdos3 ;; - *-*-bsdi4* ) opsys=bsdos4 ;; + *-*-bsdi[45]* ) opsys=bsdos4 ;; esac ;; @@ -355,6 +358,11 @@ case "${canonical}" in ## operating system. ;; + ## Compaq Nonstop + mips-compaq-nonstopux* ) + machine=nonstopux opsys=nonstopux + ;; + ## Convex *-convex-bsd* | *-convex-convexos* ) machine=convex opsys=bsd4-3 @@ -597,6 +605,9 @@ case "${canonical}" in rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;; + rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) + machine=ibmrs6000 opsys=aix4-2 + ;; rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) machine=ibmrs6000 opsys=aix4 ;; @@ -1870,6 +1881,16 @@ if test "${HAVE_X11}" = "yes"; then if test "${HAVE_JPEG}" = "yes"; then AC_DEFINE(HAVE_JPEG) + AC_EGREP_CPP( +changequote({, })dnl avoid leadingspace on the next line +{version= *(6[2-9]|[7-9][0-9])}, +changequote([, ])dnl + [#include + version=JPEG_LIB_VERSION +], + AC_DEFINE(HAVE_JPEG), + [AC_MSG_WARN([libjpeg found, but not version 6b or later]) + HAVE_JPEG=no]) fi fi @@ -1907,7 +1928,9 @@ HAVE_GIF=no if test "${HAVE_X11}" = "yes"; then if test "${with_gif}" != "no"; then AC_CHECK_HEADER(gif_lib.h, - AC_CHECK_LIB(ungif, DGifOpen, HAVE_GIF=yes)) +# EGifPutExtensionLast only exists from version libungif-4.1.0b1. +# Earlier versions can crash Emacs. + AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes)) fi if test "${HAVE_GIF}" = "yes"; then @@ -1915,6 +1938,21 @@ if test "${HAVE_X11}" = "yes"; then fi fi +### Use session management (-lSM -lICE) if available +HAVE_X_SM=no +if test "${HAVE_X11}" = "yes"; then + AC_CHECK_HEADER(X11/SM/SMlib.h, + AC_CHECK_LIB(SM, SmcOpenConnection, HAVE_X_SM=yes, -lICE)) + + if test "${HAVE_X_SM}" = "yes"; then + AC_DEFINE(HAVE_X_SM) + case "$LIBS" in + *-lSM*) ;; + *) LIBS="-lSM -lICE $LIBS" ;; + esac + fi +fi + # If netdb.h doesn't declare h_errno, we must declare it by hand. AC_CACHE_CHECK(whether netdb declares h_errno, emacs_cv_netdb_declares_h_errno, @@ -1960,9 +1998,12 @@ rename closedir mkdir rmdir sysinfo \ random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ -__fpending mblen mbrlen strsignal setitimer ualarm index rindex \ +__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ +sendto recvfrom getsockopt setsockopt getsockname getpeername \ gai_strerror mkstemp) +AC_CHECK_HEADERS(sys/un.h) + AC_FUNC_MKTIME if test "$ac_cv_func_working_mktime" = no; then AC_DEFINE(BROKEN_MKTIME)