changeset 28:969b6494a10c

[project @ 1993-08-10 21:17:28 by jwe] Use AC_HAVE_LIBRARY to check for -lm.
author jwe
date Tue, 10 Aug 1993 21:17:28 +0000
parents c63068b25a63
children 69497d3b3b75
files configure.in
diffstat 1 files changed, 4 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in
+++ b/configure.in
@@ -302,11 +302,9 @@
 # are often available.  If they are missing, we try to replace them
 # with functions from the BSD/NET2 math library.
 
-XLIBS="$LIBS"
-LIBS="$XLIBS -lm"
+AC_HAVE_LIBRARY(-lm)dnl
 AC_HAVE_FUNCS(finite isnan isinf)dnl
 AC_REPLACE_FUNCS(acosh asinh atanh)dnl
-LIBS="$XLIBS"
 
 if test -n "$LIBOBJS"; then
   for func in $LIBOBJS
@@ -371,20 +369,12 @@
 EOF
 fi
 
-AC_PROGRAM_CHECK(DEFAULT_PAGER, less, less, [])dnl
-if test -z "$DEFAULT_PAGER"; then
-  AC_PROGRAM_CHECK(DEFAULT_PAGER, more, more, [])dnl
-fi
-if test -z "$DEFAULT_PAGER"; then
-  AC_PROGRAM_CHECK(DEFAULT_PAGER, page, page, [])dnl
-fi
-if test -z "$DEFAULT_PAGER"; then
-  AC_PROGRAM_CHECK(DEFAULT_PAGER, pg, pg, [])dnl
-fi
+AC_PROGRAMS_CHECK(DEFAULT_PAGER, less more page pg, [])dnl
 if test -z "$DEFAULT_PAGER"; then
   echo "warning: I couldn't find less(1), more(1), page(1), or pg(1)"
+elif test "$DEFAULT_PAGER" = less; then
+  DEFAULT_PAGER="less -e"
 fi
-AC_SUBST(DEFAULT_PAGER)dnl
 
 AC_PROGRAM_CHECK(RUNTEST, runtest, runtest, [])dnl
 AC_PROGRAM_CHECK(EXPECT, expect, expect, [])dnl