From: Alexandre Oliva Date: Wed, 10 Mar 1999 20:39:03 +0000 (+0000) Subject: * libltdl/configure.in: only assume implicit installation if X-Git-Tag: release-1-2f~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6862fbcb71555548d5133455962347c3e1d22e37;p=thirdparty%2Flibtool.git * 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 AC_LIBLTDL_* macros. --- diff --git a/ChangeLog b/ChangeLog index cf3bac7bd..e9a75a86a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1999-03-10 Alexandre Oliva + * 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 + AC_LIBLTDL_* macros. + * libtool.m4 (AC_LIBTOOL_SETUP): new macro, that does all the configure-work that AC_PROG_LIBTOOL used to do; add --cache-file=$cache_file to libtool_flags diff --git a/libltdl/configure.in b/libltdl/configure.in index 5b66c1b9a..510e71dba 100644 --- a/libltdl/configure.in +++ b/libltdl/configure.in @@ -1,6 +1,19 @@ dnl Process this file with autoconf to create configure. dnl Initialize the libltdl package. AC_INIT(ltdl.c) + +if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then + if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then + # if libltdl is libtoolized, it is assumed to be stand-alone and + # installed unless the command line overrides it (tested above) + enable_ltdl_install=yes + else + AC_MSG_WARN([*** The top-level configure must select either]) + AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].]) + AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?]) + fi +fi + AM_INIT_AUTOMAKE(libltdl,1.0,-) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE