diff options
| author | Richard M. Stallman | 1996-05-21 18:04:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-05-21 18:04:41 +0000 |
| commit | 16831d8cc5259aae5212b847d4c7e6c72a66705e (patch) | |
| tree | c01cbd317d1baa4d0578ad142f7d2aa7d632a654 | |
| parent | 039e5d714c664bae793c015a88d07a1fd615bcad (diff) | |
| download | emacs-16831d8cc5259aae5212b847d4c7e6c72a66705e.tar.gz emacs-16831d8cc5259aae5212b847d4c7e6c72a66705e.zip | |
(ncurses): Check this after checking fns like strerror.
(HAVE_NCURSES): Look for library named ncurses.
(setlocale): Check for it.
(*-*-sysv4.2*): If no /usr/ccs/lib/cpp, use /lib/cpp.
| -rw-r--r-- | configure.in | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/configure.in b/configure.in index 17eb3670d2e..ed2669bbd10 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -873,7 +873,11 @@ if test x"${opsys}" = x; then | |||
| 873 | opsys=usg5-4 ;; | 873 | opsys=usg5-4 ;; |
| 874 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | 874 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) |
| 875 | if [ x$NON_GNU_CPP = x ]; then | 875 | if [ x$NON_GNU_CPP = x ]; then |
| 876 | NON_GNU_CPP=/usr/ccs/lib/cpp | 876 | if [ -f /usr/ccs/lib/cpp ]; then |
| 877 | NON_GNU_CPP=/usr/ccs/lib/cpp | ||
| 878 | else | ||
| 879 | NON_GNU_CPP=/lib/cpp | ||
| 880 | fi | ||
| 877 | fi | 881 | fi |
| 878 | opsys=usg5-4-2 ;; | 882 | opsys=usg5-4-2 ;; |
| 879 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | 883 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; |
| @@ -1235,12 +1239,6 @@ AC_CHECK_LIB(Xbsd, main, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd") | |||
| 1235 | 1239 | ||
| 1236 | AC_CHECK_LIB(pthreads, cma_open) | 1240 | AC_CHECK_LIB(pthreads, cma_open) |
| 1237 | 1241 | ||
| 1238 | dnl If we can find a tparm in libcurses.a, it means we have ncurses. | ||
| 1239 | AC_CHECK_LIB(curses, tparm, HAVE_NCURSES=yes) | ||
| 1240 | if test x"${HAVE_NCURSES}" = "xyes" ; then | ||
| 1241 | AC_DEFINE(HAVE_NCURSES) | ||
| 1242 | fi | ||
| 1243 | |||
| 1244 | AC_MSG_CHECKING(for XFree86) | 1242 | AC_MSG_CHECKING(for XFree86) |
| 1245 | if test -d /usr/X386/include; then | 1243 | if test -d /usr/X386/include; then |
| 1246 | HAVE_XFREE386=yes | 1244 | HAVE_XFREE386=yes |
| @@ -1373,7 +1371,13 @@ AC_CHECK_LIB(m, sqrt) | |||
| 1373 | 1371 | ||
| 1374 | AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ | 1372 | AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ |
| 1375 | random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \ | 1373 | random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \ |
| 1376 | strerror fpathconf select mktime eaccess getpagesize tzset) | 1374 | strerror fpathconf select mktime eaccess getpagesize tzset setlocale) |
| 1375 | |||
| 1376 | # Check this now, so that we will NOT find the above functions in ncurses. | ||
| 1377 | # That is because we have not set up to link ncurses in lib-src. | ||
| 1378 | # It's better to believe a function is not available | ||
| 1379 | # than to expect to find it in ncurses. | ||
| 1380 | AC_CHECK_LIB(ncurses, tparm) | ||
| 1377 | 1381 | ||
| 1378 | AC_MSG_CHECKING(whether localtime caches TZ) | 1382 | AC_MSG_CHECKING(whether localtime caches TZ) |
| 1379 | AC_CACHE_VAL(emacs_cv_localtime_cache, | 1383 | AC_CACHE_VAL(emacs_cv_localtime_cache, |