]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBLTDL_INSTALLABLE, AC_LIBLTDL_CONVENIENCE):
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Wed, 10 Mar 1999 21:23:37 +0000 (21:23 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 10 Mar 1999 21:23:37 +0000 (21:23 +0000)
avoid introducing multiple --enable options when re-running
config.status
* libltdl/configure.in: if enable_ltdl_* is not set, assume no
* configure.in: if enable_ltdl_install is not set, enable it

ChangeLog
configure.in
libltdl/configure.in
libtool.m4

index e9a75a86a9245fbfb7e53edb569ba22a46b2d7f2..c4e2cae3f548669f2dd2507b48f03d80c163b4a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 1999-03-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libtool.m4 (AC_LIBLTDL_INSTALLABLE, AC_LIBLTDL_CONVENIENCE): 
+       avoid introducing multiple --enable options when re-running
+       config.status
+       * libltdl/configure.in: if enable_ltdl_* is not set, assume no
+       * configure.in: if enable_ltdl_install is not set, enable it
+
        * libltdl/configure.in: only assume implicit installation if
        libltdl was libtoolized.  If not, print a warning message
        suggesting the use of --enable-ltdl-install or of one of the
index b62da5a79ad3a27e5296f4647fec7697a32f33bf..3ee51d707b928540918a2dd3448838768c1ac830 100644 (file)
@@ -48,8 +48,9 @@ AC_SUBST(LIBTOOL_FLAGS)
 
 AC_ARG_ENABLE(ltdl-install,
 [  --disable-ltdl-install  do not install libltdl])
-if test x"$enable_ltdl_install" = xno; then
-  ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
+if test x"${enable_ltdl_install+set}" != xset; then
+  enable_ltdl_install=yes
+  ac_configure_args="$ac_configure_args --enable-ltdl-install"
 fi
 AC_CONFIG_SUBDIRS(libltdl)
 
index 510e71dbacd1df6c678b8391be368242f070765a..5af3f1d38b00242d5eb8f9e67caef8077c0fe996 100644 (file)
@@ -27,8 +27,8 @@ AC_SUBST(LIBTOOL_DEPS)
 AC_ARG_ENABLE(ltdl-install,
 [  --enable-ltdl-install   install libltdl])
 
-AM_CONDITIONAL(INSTALL_LTDL, test x"$enable_ltdl_install" != xno)
-AM_CONDITIONAL(CONVENIENCE_LTDL, test x"$enable_ltdl_convenience" != xno)
+AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
+AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)
 
 AC_CACHE_CHECK([which extension is used for shared libraries],
   libltdl_cv_shlibext, [dnl
index 04bab79d4684cc4677d9db0f0543495cc30e6aff..e8f9bae5dbae8dd74e4f0f9265e2bd75d69c4881 100644 (file)
@@ -620,8 +620,12 @@ AC_CHECK_LIB(m, cos)
 # flat, and, if you're not using automake, define top_builddir as
 # appropriate in the Makefiles.
 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
+  case "$enable_ltdl_convenience" in
+  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
+  "") enable_ltdl_convenience=yes
+      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
+  esac
   LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
-  ac_configure_args="$ac_configure_args --enable-ltdl-convenience"
 ])
 
 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
@@ -635,10 +639,13 @@ AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [
   AC_CHECK_LIB(ltdl, main, LIBLTDL="-lltdl", [
-    enable_ltdl_install=yes
-    ac_configure_args="$ac_configure_args --enable-ltdl-install"
+    case "$enable_ltdl_install" in
+    no) AC_MSG_WARN([libltdl not installed, but installation disabled]) ;;
+    "") enable_ltdl_install=yes
+        ac_configure_args="$ac_configure_args --enable-ltdl-install" ;;
+    esac
   ])
-  if test x"$enable_ltdl_install" = x"yes"; then
+  if test x"$enable_ltdl_install" != x"no"; then
     LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
   fi
 ])