]> code.delx.au - gnu-emacs/blobdiff - configure.in
(lisp-font-lock-syntactic-face-function): Don't infinite lop at bob.
[gnu-emacs] / configure.in
index 231b02b6c00f0a84650b6be3b7c9c7a2db0ae185..ab08f35dabe070c530714bcffb077987920d740a 100644 (file)
@@ -618,7 +618,7 @@ case "${canonical}" in
   i370-ibm-aix*)
     machine=ibm370aix opsys=usg5-3
   ;;
-  s390-*-linux-gnu)
+  s390-*-linux-gnu)
     machine=ibms390 opsys=gnu-linux
   ;;
   rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1*  )
@@ -1078,6 +1078,8 @@ case "${canonical}" in
                                OVERRIDE_CPPFLAGS=" "
                                ;;
       *-sysv4.2uw* )           opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
+      *-sysv5uw* )             opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
+      *-sysv5OpenUNIX* )       opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
       *-386bsd* )              opsys=386bsd ;;
       *-nextstep* )             opsys=nextstep ;;
       ## Otherwise, we'll fall through to the generic opsys code at the bottom.
@@ -1140,6 +1142,8 @@ if test x"${opsys}" = x; then
     *-sysv2.2 | *-sysvr2.2 )           opsys=usg5-2-2 ;;
     *-sysv3* | *-sysvr3* )             opsys=usg5-3 ;;
     *-sysv4.2uw* )                     opsys=unixware ;;
+    *-sysv5uw* )                       opsys=unixware ;;
+    *-sysv5OpenUNIX* )                 opsys=unixware ;;
     *-sysv4.1* | *-sysvr4.1* )
        NON_GNU_CPP=/usr/lib/cpp
        opsys=usg5-4 ;;
@@ -1404,7 +1408,7 @@ fi
 dnl checks for header files
 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
   linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
-  termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
+  termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
   sys/param.h sys/vlimit.h sys/resource.h)
 dnl On Solaris 8 there's a compilation warning for term.h because
 dnl it doesn't define `bool'.
@@ -2194,10 +2198,10 @@ AC_FUNC_ALLOCA
 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
 AC_CHECK_LIB(m, sqrt)
 
-# Check for mail-locking functions in a "mail" library
+# Check for mail-locking functions in a "mail" library.  Probably this should
+# have the same check as for liblockfile below.
 AC_CHECK_LIB(mail, maillock)
 dnl Debian, at least:
-dnl AC_CHECK_LIB(lockfile, maillock, [AC_DEFINE(HAVE_LIBMAIL)])
 AC_CHECK_LIB(lockfile, maillock)
 # If we have the shared liblockfile, assume we must use it for mail
 # locking (e.g. Debian).  If we couldn't link against liblockfile
@@ -2211,9 +2215,8 @@ if test "$ac_cv_lib_lockfile_maillock" = no; then
     AC_MSG_ERROR([Shared liblockfile found but can't link against it.
 This probably means that movemail could lose mail.
 There may be a `development' package to install containing liblockfile.])
-  else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.])
-  fi
   else :
+  fi
 fi
 AC_CHECK_FUNCS(touchlock)
 AC_CHECK_HEADERS(maillock.h)
@@ -2226,7 +2229,7 @@ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
 sendto recvfrom getsockopt setsockopt getsockname getpeername \
 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
-memset memcmp memmove)
+memset memcmp memmove difftime)
 
 AC_CHECK_HEADERS(sys/un.h)
 
@@ -2479,6 +2482,14 @@ AC_CHECK_HEADERS(nlist.h, [AC_DEFINE(NLIST_STRUCT, 1,
 
 dnl Fixme: AC_SYS_POSIX_TERMIOS should probably be used, but it's not clear
 dnl how the tty code is related to POSIX and/or other versions of termios.
+dnl The following looks like a useful start.
+dnl
+dnl AC_SYS_POSIX_TERMIOS
+dnl if test $ac_cv_sys_posix_termios = yes; then
+dnl    AC_DEFINE(HAVE_TERMIOS, 1, [Define to 1 if you have POSIX-style functions 
+dnl                                and macros for terminal control.])
+dnl    AC_DEFINE(HAVE_TCATTR, 1, [Define to 1 if you have tcgetattr and tcsetattr.])
+dnl fi
 
 dnl Fixme: Use AC_FUNC_MEMCMP since memcmp is used.  (Needs libobj replacement.)
 
@@ -2843,17 +2854,20 @@ typedef unsigned size_t;
 #  endif
 #endif
 
+/* On Mac OS X, these macros are already defined in precompiled headers.  */
+#ifndef MAC_OSX
 /* avoid deprecated functions */
-#ifdef HAVE_MEMCPY
-#  define bcopy(a,b,s) memcpy (b,a,s)
-#endif
-#ifdef HAVE_MEMSET
-#  define bzero(a,s) memset (a,0,s)
-#endif
-#ifdef HAVE_MEMCMP
-#  define BCMP memcmp
-#  define bcmp memcmp
-#endif
+#  ifdef HAVE_MEMCPY
+#    define bcopy(a,b,s) memcpy (b,a,s)
+#  endif
+#  ifdef HAVE_MEMSET
+#    define bzero(a,s) memset (a,0,s)
+#  endif
+#  ifdef HAVE_MEMCMP
+#    define BCMP memcmp
+#    define bcmp memcmp
+#  endif
+#endif /* MAC_OSX */
 
 #endif /* EMACS_CONFIG_H */