aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-05-21 18:04:41 +0000
committerRichard M. Stallman1996-05-21 18:04:41 +0000
commit16831d8cc5259aae5212b847d4c7e6c72a66705e (patch)
treec01cbd317d1baa4d0578ad142f7d2aa7d632a654
parent039e5d714c664bae793c015a88d07a1fd615bcad (diff)
downloademacs-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.in20
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
1236AC_CHECK_LIB(pthreads, cma_open) 1240AC_CHECK_LIB(pthreads, cma_open)
1237 1241
1238dnl If we can find a tparm in libcurses.a, it means we have ncurses.
1239AC_CHECK_LIB(curses, tparm, HAVE_NCURSES=yes)
1240if test x"${HAVE_NCURSES}" = "xyes" ; then
1241 AC_DEFINE(HAVE_NCURSES)
1242fi
1243
1244AC_MSG_CHECKING(for XFree86) 1242AC_MSG_CHECKING(for XFree86)
1245if test -d /usr/X386/include; then 1243if 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
1374AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ 1372AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
1375random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \ 1373random lrand48 bcopy bcmp logb frexp fmod ftime res_init setsid \
1376strerror fpathconf select mktime eaccess getpagesize tzset) 1374strerror 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.
1380AC_CHECK_LIB(ncurses, tparm)
1377 1381
1378AC_MSG_CHECKING(whether localtime caches TZ) 1382AC_MSG_CHECKING(whether localtime caches TZ)
1379AC_CACHE_VAL(emacs_cv_localtime_cache, 1383AC_CACHE_VAL(emacs_cv_localtime_cache,