comparison configure.in @ 26081:bfa8d94330b6

Add support for large files. Merge glibc 2.1.2. * configure.in (AC_CHECK_HEADERS): Add stdio_ext.h. (HAVE_TM_GMTOFF): New symbol. (AC_CHECK_FUNCS): Add __fpending, ftello, getloadavg, mblen, mbrlen, strsignal. (LOCALTIME_CACHE): Don't include stdlib.h, as config.h does this now.
author Paul Eggert <eggert@twinsun.com>
date Tue, 19 Oct 1999 07:15:24 +0000
parents 2968c272a8e6
children d11ad723a659
comparison
equal deleted inserted replaced
26080:2962fd9e7eae 26081:bfa8d94330b6
1111 1111
1112 # Sound support for GNU/Linux and the free BSDs. 1112 # Sound support for GNU/Linux and the free BSDs.
1113 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h) 1113 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h)
1114 1114
1115 dnl checks for header files 1115 dnl checks for header files
1116 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) 1116 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
1117 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
1118 termcap.h stdio_ext.h)
1117 AC_HEADER_STDC 1119 AC_HEADER_STDC
1118 AC_HEADER_TIME 1120 AC_HEADER_TIME
1119 AC_DECL_SYS_SIGLIST 1121 AC_DECL_SYS_SIGLIST
1120 1122
1121 dnl Some systems have utime.h but don't declare the struct anyplace. 1123 dnl Some systems have utime.h but don't declare the struct anyplace.
1159 fi 1161 fi
1160 1162
1161 dnl checks for structure members 1163 dnl checks for structure members
1162 AC_STRUCT_TM 1164 AC_STRUCT_TM
1163 AC_STRUCT_TIMEZONE 1165 AC_STRUCT_TIMEZONE
1166 AC_CACHE_CHECK(for tm_gmtoff in struct tm, emacs_cv_tm_gmtoff,
1167 AC_TRY_LINK([#include <time.h>], [struct tm t; t.tm_gmtoff = 0],
1168 emacs_cv_tm_gmtoff=yes,
1169 emacs_cv_tm_gmtoff=no))
1170 if test $emacs_cv_tm_gmtoff = yes; then
1171 AC_DEFINE(HAVE_TM_GMTOFF)
1172 fi
1164 1173
1165 dnl checks for compiler characteristics 1174 dnl checks for compiler characteristics
1166 AC_C_CONST 1175 AC_C_CONST
1167 1176
1168 dnl check for Make feature 1177 dnl check for Make feature
1770 1779
1771 AC_CHECK_FUNCS(gettimeofday gethostname getdomainname dup2 \ 1780 AC_CHECK_FUNCS(gettimeofday gethostname getdomainname dup2 \
1772 rename closedir mkdir rmdir sysinfo \ 1781 rename closedir mkdir rmdir sysinfo \
1773 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 1782 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
1774 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 1783 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
1775 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo) 1784 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
1785 __fpending ftello getloadavg mblen mbrlen strsignal)
1776 1786
1777 # Check this now, so that we will NOT find the above functions in ncurses. 1787 # Check this now, so that we will NOT find the above functions in ncurses.
1778 # That is because we have not set up to link ncurses in lib-src. 1788 # That is because we have not set up to link ncurses in lib-src.
1779 # It's better to believe a function is not available 1789 # It's better to believe a function is not available
1780 # than to expect to find it in ncurses. 1790 # than to expect to find it in ncurses.
1786 1796
1787 AC_MSG_CHECKING(whether localtime caches TZ) 1797 AC_MSG_CHECKING(whether localtime caches TZ)
1788 AC_CACHE_VAL(emacs_cv_localtime_cache, 1798 AC_CACHE_VAL(emacs_cv_localtime_cache,
1789 [if test x$ac_cv_func_tzset = xyes; then 1799 [if test x$ac_cv_func_tzset = xyes; then
1790 AC_TRY_RUN([#include <time.h> 1800 AC_TRY_RUN([#include <time.h>
1791 #if STDC_HEADERS
1792 # include <stdlib.h>
1793 #endif
1794 extern char **environ; 1801 extern char **environ;
1795 unset_TZ () 1802 unset_TZ ()
1796 { 1803 {
1797 char **from, **to; 1804 char **from, **to;
1798 for (to = from = environ; (*to = *from); from++) 1805 for (to = from = environ; (*to = *from); from++)