aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-06-11 18:31:18 +0000
committerDave Love2002-06-11 18:31:18 +0000
commit612f72a634e875cc9dc6b59a6967939e2f350cba (patch)
tree50bfa83bfd9a90bf963c604c2b81dd1a7f90ebd3
parentb714f5c2a67d5569f220946886e1d6a93b3aa493 (diff)
downloademacs-612f72a634e875cc9dc6b59a6967939e2f350cba.tar.gz
emacs-612f72a634e875cc9dc6b59a6967939e2f350cba.zip
Check for pty.h. Improve the libungif test.
Check for nl_langinfo codeset support. Use AC_CHECK_TYPES, not AC_SIZE_T.
-rw-r--r--configure.in24
1 files changed, 18 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 74b953c9e37..bfd7decb6ca 100644
--- a/configure.in
+++ b/configure.in
@@ -3,7 +3,7 @@ dnl To rebuild the `configure' script from this, execute the command
3dnl autoconf 3dnl autoconf
4dnl in the directory containing this script. 4dnl in the directory containing this script.
5dnl 5dnl
6dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001 6dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002
7dnl Free Software Foundation, Inc. 7dnl Free Software Foundation, Inc.
8dnl 8dnl
9dnl This file is part of GNU Emacs. 9dnl This file is part of GNU Emacs.
@@ -1354,7 +1354,7 @@ AC_SUBST(LIBSOUND)
1354dnl checks for header files 1354dnl checks for header files
1355AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 1355AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
1356 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 1356 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
1357 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h) 1357 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h)
1358AC_HEADER_STDC 1358AC_HEADER_STDC
1359AC_HEADER_TIME 1359AC_HEADER_TIME
1360AC_DECL_SYS_SIGLIST 1360AC_DECL_SYS_SIGLIST
@@ -1915,7 +1915,9 @@ HAVE_GIF=no
1915if test "${HAVE_X11}" = "yes"; then 1915if test "${HAVE_X11}" = "yes"; then
1916 if test "${with_gif}" != "no"; then 1916 if test "${with_gif}" != "no"; then
1917 AC_CHECK_HEADER(gif_lib.h, 1917 AC_CHECK_HEADER(gif_lib.h,
1918 AC_CHECK_LIB(ungif, DGifOpen, HAVE_GIF=yes)) 1918# EGifPutExtensionLast only exists from version libungif-4.1.0b1.
1919# Earlier versions can crash Emacs.
1920 AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes))
1919 fi 1921 fi
1920 1922
1921 if test "${HAVE_GIF}" = "yes"; then 1923 if test "${HAVE_GIF}" = "yes"; then
@@ -2161,9 +2163,19 @@ else
2161fi 2163fi
2162 2164
2163AC_FUNC_FORK 2165AC_FUNC_FORK
2164 2166dnl Adapted from Haible's version.
2165# Fixme: This should be replaced when we have autoconf 2.14. 2167AC_CACHE_CHECK([for nl_langinfo and CODESET], emacs_cv_langinfo_codeset,
2166AC_SIZE_T 2168 [AC_TRY_LINK([#include <langinfo.h>],
2169 [char* cs = nl_langinfo(CODESET);],
2170 emacs_cv_langinfo_codeset=yes,
2171 emacs_cv_langinfo_codeset=no)
2172 ])
2173if test $emacs_cv_langinfo_codeset = yes; then
2174 AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
2175 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
2176fi
2177
2178AC_CHECK_TYPES(size_t)
2167 2179
2168# Set up the CFLAGS for real compilation, so we can substitute it. 2180# Set up the CFLAGS for real compilation, so we can substitute it.
2169CFLAGS="$REAL_CFLAGS" 2181CFLAGS="$REAL_CFLAGS"