bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --with-included-ltdl infers --enable-ltdl-convenience


From: Ralf Wildenhues
Subject: Re: --with-included-ltdl infers --enable-ltdl-convenience
Date: Tue, 6 May 2008 22:57:03 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hi Bob,

* Bob Friesenhahn wrote on Sun, Apr 13, 2008 at 11:25:38PM CEST:
> With latest libtool and autoconf, if the argument --with-included-ltdl is 
> provided, then libtool adds a --with-included-ltdl to config.status.  If 
> this configuration is then re-used, autoconf warns about 
> --with-included-ltdl since it is not a known supported configure option.

This patch shuts up the warning about --enable-ltdl-convenience
(I suppose the fact that you write --with-included-ltdl in the paragraph
is a typo, as you use the correct one in the Subject:).  However, it
also exposes the flag to the user (via ./configure --help).  I'm not
sure whether that is a good idea.  What do you think?

Thanks,
Ralf

2008-05-06  Ralf Wildenhues  <address@hidden>

        * libltdl/m4/ltdl.m4 (_LTDL_CONVENIENCE): Add AC_ARG_ENABLE
        for ltdl-convenience, to avoid configure warning for unknown
        switch.
        Report by Bob Friesenhahn.

diff --git a/libltdl/m4/ltdl.m4 b/libltdl/m4/ltdl.m4
index 6c277b4..b2ee9e3 100644
--- a/libltdl/m4/ltdl.m4
+++ b/libltdl/m4/ltdl.m4
@@ -95,6 +95,8 @@ m4_defun([_LTDL_CONVENIENCE],
   "") enable_ltdl_convenience=yes
       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 esac
+AC_ARG_ENABLE([ltdl-convenience],
+  [AS_HELP_STRING([--enable-ltdl-convenience], [enable convenience libltdl])])
 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
 LTDLDEPS=$LIBLTDL
 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]