From: Alexandre Oliva Date: Sun, 14 Feb 1999 03:04:51 +0000 (+0000) Subject: * libtool.m4 (AC_CHECK_LIBM): do not set MATHLIB or AC_SUBST it, X-Git-Tag: release-1-2f~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6d9dc7a788d1bc6dea49c6e43bacd31615ae49;p=thirdparty%2Flibtool.git * libtool.m4 (AC_CHECK_LIBM): do not set MATHLIB or AC_SUBST it, this has a negative side-effect of causing automake to add MATHLIB to every single Makefile. Let's use plain AC_CHECK_LIB, so that LIBS get set, until we find a better alternative * *demo/Makefile.am: remove $(MATHLIB) --- diff --git a/ChangeLog b/ChangeLog index abc980fa6..62097b6a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ -1999-02-12 Alexandre Oliva +1999-02-14 Alexandre Oliva + + * libtool.m4 (AC_CHECK_LIBM): do not set MATHLIB or AC_SUBST it, + this has a negative side-effect of causing automake to add MATHLIB + to every single Makefile. Let's use plain AC_CHECK_LIB, so that + LIBS get set, until we find a better alternative + * *demo/Makefile.am: remove $(MATHLIB) * libltdl/configure.in: add a DESCRIPTION argument to AC_DEFINEs where appropriate, so as to get rid of acconfig.h diff --git a/demo/Makefile.am b/demo/Makefile.am index 62a99c3fa..cd3ea84b7 100644 --- a/demo/Makefile.am +++ b/demo/Makefile.am @@ -10,7 +10,7 @@ CLEANFILES = $(hardcode_tests) # Build a libtool library, libhello.la for installation in libdir. lib_LTLIBRARIES = libhello.la libhello_la_SOURCES = hello.c foo.c -libhello_la_LDFLAGS = -version-info 3:12:1 $(MATHLIB) +libhello_la_LDFLAGS = -version-info 3:12:1 include_HEADERS = foo.h diff --git a/depdemo/Makefile.am b/depdemo/Makefile.am index 215b0afb4..9c59e280a 100644 --- a/depdemo/Makefile.am +++ b/depdemo/Makefile.am @@ -9,7 +9,7 @@ libl2_la_LIBADD = libl1.la libl3_la_SOURCES = l3.c l3.h sysdep.h libl3_la_LIBADD = libl1.la libl2.la libl4_la_SOURCES = l4.c l4.h sysdep.h -libl4_la_LIBADD = libl3.la $(MATHLIB) +libl4_la_LIBADD = libl3.la bin_PROGRAMS = depdemo depdemo.static diff --git a/libtool.m4 b/libtool.m4 index b3f83861e..85fd93889 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -547,11 +547,9 @@ AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl ]) # AC_CHECK_LIBM - check for math library -AC_DEFUN(AC_CHECK_LIBM, -[ -AC_CHECK_LIB(mw, _mwvalidcheckl, MATHLIB="-lmw", MATHLIB=) -AC_CHECK_LIB(m, cos, MATHLIB="-lm $MATHLIB", ) -AC_SUBST(MATHLIB)dnl +AC_DEFUN(AC_CHECK_LIBM, [ +AC_CHECK_LIB(mw, _mwvalidcheckl) +AC_CHECK_LIB(m, cos) ]) dnl old names diff --git a/mdemo/Makefile.am b/mdemo/Makefile.am index 79196ed8d..d2da5618e 100644 --- a/mdemo/Makefile.am +++ b/mdemo/Makefile.am @@ -9,10 +9,10 @@ EXTRA_DIST = acinclude.m4 lib_LTLIBRARIES = foo1.la libfoo2.la foo1_la_SOURCES = foo1.c -foo1_la_LDFLAGS = $(MATHLIB) -module -avoid-version +foo1_la_LDFLAGS = -module -avoid-version libfoo2_la_SOURCES = foo2.c -libfoo2_la_LDFLAGS = $(MATHLIB) -module +libfoo2_la_LDFLAGS = -module noinst_HEADERS = foo.h