This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

configure.in patch for gsl-1.1.1


Hello,

while doing a port to cygwin, I encountered two
problems in the configure.in script. I suggest
the following patch.

- use AC_SEARCH_LIBS for libm
- use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL

AC_SEARCH_LIBS has the advantage that -lm is only
added when required. This should btw also be taken
into account in the .pc file. AM_PROG_LIBTOOL is obsolete
in newer versions of autoconf/automake.

regards

Teun Burgers

--- gsl-1.1.1-orig/configure.in 2002-03-09 17:16:10.000000000 +0100
+++ gsl-1.1.1/configure.in      2002-05-16 19:28:08.000000000 +0200
@@ -19,7 +19,7 @@
 AC_CHECK_TOOL(RANLIB, ranlib, :)
 AC_CHECK_TOOL(AR, ar, :)
 #AC_PROG_RANLIB
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
 
 dnl Early versions of gcc-2.95.2 for PPC have a bug when passing lots
 dnl of arguments; test for this...
@@ -98,7 +98,7 @@
   AC_MSG_CHECKING([for math library])
   AC_MSG_RESULT([$LIBS])
 else
-  AC_CHECK_LIB(m, main)
+  AC_SEARCH_LIBS(cos, m)
 fi
 
 AC_CHECK_FUNCS(hypot)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]