changeset 1070:999c1ecad9dd

[project @ 1995-01-25 17:02:03 by jwe]
author jwe
date Wed, 25 Jan 1995 17:02:03 +0000
parents 5aaa1084a0c5
children cd895d23db6c
files configure.in
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in
+++ b/configure.in
@@ -21,7 +21,7 @@
 ### along with Octave; see the file COPYING.  If not, write to the Free
 ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
-AC_REVISION($Revision: 1.87 $)
+AC_REVISION($Revision: 1.88 $)
 AC_PREREQ(2.0)
 AC_INIT(src/octave.cc)
 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h)
@@ -544,7 +544,17 @@
 ### with functions from the BSD/NET2 math library.
 
 AC_CHECK_LIB(sunmath, main)
-AC_CHECK_LIB(m, main)
+
+dnl This is bogus.  We shouldn't have to explicitly add libc too!
+
+case "$canonical_host_type" in
+  *-*-linux*)
+    AC_CHECK_LIB(m, main, , , -lc)
+  ;;
+  *)
+    AC_CHECK_LIB(m, main)
+  ;;
+esac
 
 XCFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS $GCC_IEEE_FP_FLAG"