2001-06-30 06:56:50 +08:00
|
|
|
## Process this file with autoconf to create configure. -*- autoconf -*-
|
2004-01-17 06:42:26 +08:00
|
|
|
# Copyright (C) 2001, 2004 Free Software Foundation, Inc.
|
2001-10-06 23:35:17 +08:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
|
|
# 02111-1307 USA
|
|
|
|
|
|
|
|
|
2003-11-19 20:55:47 +08:00
|
|
|
AC_PREREQ(2.58) ## We use AS_HELP_STRING
|
2003-11-25 23:48:23 +08:00
|
|
|
## Oldest automake required for bootstrap is below in AM_INIT_AUTOMAKE.
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
## ------------------------ ##
|
|
|
|
## Autoconf initialisation. ##
|
|
|
|
## ------------------------ ##
|
2003-04-15 13:48:18 +08:00
|
|
|
AC_INIT([libtool], [1.5a], [bug-libtool@gnu.org])
|
2004-01-17 06:03:19 +08:00
|
|
|
AC_CONFIG_HEADERS([config.h:config-h.in])
|
Libtool now builds with the help of Autoconf-2.50!
* configure.ac (AC_PREREQ): Require Autoconf-2.50 or newer.
(AC_PROG_CPP, AC_EXEEXT, AC_OBJEXT): Removed. Autoconf-2.50
doesn't have the AC_REQUIRE bug that required these to be called
explicitly from here. Autoconf-2.50 uses this file instead of...
* configure.in: ...this, which is now deleted.
* cdemo/configure.ac, cdemo/configure.in: Ditto.
* demo/configure.ac, demo/configure.in: Ditto.
* depdemo/configure.ac, depdemo/configure.in: Ditto.
* libltdl/configure.ac, libltdl/configure.in: Ditto.
* mdemo/configure.ac, mdemo/configure.in: Ditto.
* pdemo/configure.ac, pdemo/configure.in: Ditto.
* libltdl/acconfig.h: Deleted.
* Makefile.am (libtool): libtool now depends on configure.ac.
* libtool.m4 (_LT_AC_LOCK): Use 2.50's AC_LANG_PUSH/AC_LANG_POP
instead of 2.13's AC_LANG_SAVE/AC_LANG_RESTORE.
(AC_LIBTOOL_LANG_C_CONFIG): Ditto.
(AC_LIBTOOL_LANG_CXX_CONFIG): Ditto.
* libtoolize.in: Use $configure_ac, instead of hardcoding
configure.in.
2001-06-29 06:02:06 +08:00
|
|
|
AC_CONFIG_SRCDIR([ltmain.in])
|
* bootstrap: Rewritten to use autoreconf.
* config.guess, config.sub, mkstamp: Moved from here...
* config/config.guess, config/config.sub, config/mkstamp: ...to
here, respectively.
* libtool.m4, ltdl.m4: Moved from here...
* m4/libtool.m4, m4/ltdl.m4: ...to here, respectively.
* configure.ac: Removed various acinclude.m4 hackery, as these
files are no longer needed with automake 1.8.
* Makefile.am: Removed various acinclude.m4 hackery, as these
files are no longer needed with automake 1.8.
(AUTOMAKE_OPTIONS): Require CVS automake.
(CONF_SUBDIRS, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, FFLAGS, FLIBS):
Automake now makes a Make variable from every AC_SUBST, so these
are NOP.
(aclocal_macros): These files are now in their own m4 subdir.
Changed all clients.
(EXTRA_DIST): mkstamp has moved to the new config subdir. Changed
all clients.
(pkgdata_SCRIPTS): Ditto wrt config.guess and config.sub.
(pkgdata_DATA): Ditto wrt ltmain.sh.
* f77demo/configure.ac, libltdl/configure.ac (AM_CONFIG_HEADER):
Is deprecated in favour of AC_CONFIG_HEADERS. Updated to the
latter.
* Makefile.am, cdemo/Makefile.am, demo/Makefile.am,
depdemo/Makefile.am, f77demo/Makefile.am, mdemo/Makefile.am,
mdemo2/Makefile.am, pdemo/Makefile.am, tagdemo/Makefile.am
(EXTRA_DIST): Remove acinclude.m4.
(ACLOCAL_AMFLAGS): Search new `m4' macro directory.
* configure.ac, cdemo/configure.ac, demo/configure.ac,
depdemo/configure.ac, f77demo/configure.ac, mdemo/configure.ac,
mdemo2/configure.ac, pdemo/configure.ac, tagdemo/configure.ac
(AC_CONFIG_AUX_DIR): Declare that config helper scripts are now
kept in the new config subdir.
* libltdl/configure.ac (AC_CONFIG_AUX_DIR): Removed. Defaults to
`.' anyway.
2003-09-25 19:22:29 +08:00
|
|
|
AC_CONFIG_AUX_DIR([config])
|
2001-10-06 23:35:17 +08:00
|
|
|
|
2003-10-15 16:44:52 +08:00
|
|
|
|
|
|
|
## ------------------------ ##
|
|
|
|
## Autotest initialisation. ##
|
|
|
|
## ------------------------ ##
|
|
|
|
|
|
|
|
dnl AC_CONFIG_TESTDIR([tests])
|
|
|
|
dnl AC_CONFIG_FILES([tests/atlocal])
|
Refactor all the test case common code into shell functions in
tests/defs, and move the various demo directories out of
$top_srcdir, and into tests too. The refactoring showed up a
number of inconsistencies and latent bugs, as well as fixing (I
think!!) the long-standing annoyance with some of the tests giving
spurious failures intermittently. While I was here, emacs kindly
removed a lot of bogus whitespace and added copyright notices for
us:
* cdemo, demo, depdemo, f77demo, mdemo, mdemo2, pdemo, tagdemo:
Moved from here...
* tests/cdemo, tests/demo, tests/depdemo, tests/f77demo,
tests/mdemo, tests/mdemo2, tests/pdemo, tests/tagdemo: ...to
here.
* tests/defs: Factor much common functionality from the test
scripts into shell functions. Added a copyright notice.
* tests/assign.test, tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-deplibs.test, tests/demo-exec.test,
tests/demo-inst.test, tests/demo-make.test,
tests/demo-nofast.test, tests/demo-nopic.test,
tests/demo-pic.test, tests/demo-shared.test,
tests/demo-static.test, tests/demo-unst.test,
tests/depdemo-conf.test, tests/depdemo-exec.test,
tests/depdemo-inst.test, tests/depdemo-make.test,
tests/depdemo-nofast.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/depdemo-unst.test,
tests/f77demo-conf.test, tests/f77demo-exec.test,
tests/f77demo-make.test, tests/f77demo-shared.test,
tests/f77demo-static.test, tests/link-2.test, tests/link.test,
tests/mdemo-conf.test, tests/mdemo-exec.test,
tests/mdemo-inst.test, tests/mdemo-make.test,
tests/mdemo-shared.test, tests/mdemo-static.test,
tests/mdemo-unst.test, tests/mdemo2-conf.test,
tests/mdemo2-exec.test, tests/mdemo2-make.test, tests/nomode.test,
tests/pdemo-conf.test, tests/pdemo-exec.test,
tests/pdemo-inst.test, tests/pdemo-make.test,
tests/pdemo-unst.test, tests/quote.test, tests/sh.test,
tests/suffix.test, tests/tagdemo-conf.test,
tests/tagdemo-exec.test, tests/tagdemo-make.test,
tests/tagdemo-shared.test, tests/tagdemo-static.test: Refactored
to use new functions in tests/defs. Added a copyright notice.
* tests/hardcode.test, noinst-link.test,
tests/relink.test, tests/relink.test,
tests/mdryrun.test: Ditto. Moved from here...
* tests/demo-hardcode.test, demo-noinst-link.test,
tests/demo-relink.test, tests/depdemo-relink.test,
tests/mdemo-dryrun.test: ...to here respectively.
* Makefile.am: Added a copyright notice.
* tests/sh.test: Check libtoolize.in for non-portabilities too.
* libtoolize.in: Fix non-portabilities found by tests/sh.test.
2003-10-15 05:45:03 +08:00
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
## ---------------------------------------- ##
|
|
|
|
## Display a configure time version banner. ##
|
|
|
|
## ---------------------------------------- ##
|
1999-01-23 02:04:51 +08:00
|
|
|
|
2003-11-22 18:03:13 +08:00
|
|
|
# Calculating the previous version is somewhat involved, so do it once
|
|
|
|
# here, and SUBST the result for the maintainer release rules. The
|
|
|
|
# versioning scheme we use is described here:
|
|
|
|
# http://www.gnu.org/software/libtool/contribute.html
|
|
|
|
|
|
|
|
# First we break the version number up into its constituent parts.
|
2004-02-06 22:38:56 +08:00
|
|
|
lt_major=`echo "AC_PACKAGE_VERSION" | sed ['s,\..*$,,g']`
|
|
|
|
lt_minor=`echo "AC_PACKAGE_VERSION" | sed ['s,^[0-9]*\.\([0-9]*\).*$,\1,']`
|
|
|
|
lt_micro=`echo "AC_PACKAGE_VERSION" | sed ['s,^[0-9]*\.[0-9]*\(\.[0-9]*\).*$,\1,']`
|
|
|
|
lt_alpha=`echo "AC_PACKAGE_VERSION" | sed ['s,^[0-9.]*,,']`
|
2003-11-22 18:03:13 +08:00
|
|
|
|
2004-02-06 22:38:56 +08:00
|
|
|
test "$lt_minor" = "AC_PACKAGE_VERSION" && lt_minor=0
|
|
|
|
test "$lt_micro" = "AC_PACKAGE_VERSION" && lt_micro=""
|
2003-11-22 18:03:13 +08:00
|
|
|
|
|
|
|
# Then we try to work out what the release before this one would have been
|
|
|
|
# numbered. The only time we come unstuck is when this is the first release
|
2004-02-06 22:38:56 +08:00
|
|
|
# from a stable branch (lt_micro=lt_alpha=""), so LASTRELEASE is the last
|
2003-11-22 18:03:13 +08:00
|
|
|
# release from the old stable branch, and we don't know what version that
|
|
|
|
# was, so leave it unset so that the Makefile can complain.
|
2004-02-06 22:38:56 +08:00
|
|
|
case $lt_alpha in
|
2003-11-22 18:03:13 +08:00
|
|
|
[[ab]])
|
2004-02-06 22:38:56 +08:00
|
|
|
case $lt_micro in
|
2003-11-22 18:03:13 +08:00
|
|
|
[.[01]])
|
2004-02-06 22:38:56 +08:00
|
|
|
LASTRELEASE="$lt_major.$lt_minor" ;;
|
2003-11-22 18:03:13 +08:00
|
|
|
*)
|
2004-02-06 22:38:56 +08:00
|
|
|
LASTRELEASE="$lt_major.$lt_minor$lt_micro" ;;
|
2003-11-22 18:03:13 +08:00
|
|
|
esac
|
|
|
|
;;
|
|
|
|
[[cegikmoqsuwy]])
|
|
|
|
LASTRELEASE=`echo "AC_PACKAGE_VERSION" | tr 'c-y' 'b-w'` ;;
|
|
|
|
[[dfhjlnprtvxz]])
|
|
|
|
LASTRELEASE=`echo "AC_PACKAGE_VERSION" | tr 'd-z' 'b-x'` ;;
|
2004-02-06 22:38:56 +08:00
|
|
|
*) # No lt_alpha component
|
|
|
|
case $lt_micro in
|
2003-11-22 18:03:13 +08:00
|
|
|
.0)
|
|
|
|
LASTRELEASE="" ;;
|
|
|
|
.1)
|
2004-02-06 22:38:56 +08:00
|
|
|
LASTRELEASE="$lt_major.$lt_minor" ;;
|
2003-11-22 18:03:13 +08:00
|
|
|
.*)
|
2004-02-06 22:38:56 +08:00
|
|
|
lt_micro_value=`echo $lt_micro | sed 's,^\.,,'`
|
|
|
|
LASTRELEASE="$lt_major.$lt_minor.`expr $lt_micro_value - 1`" ;;
|
2003-11-22 18:03:13 +08:00
|
|
|
*)
|
|
|
|
LASTRELEASE="" ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST([LASTRELEASE])
|
|
|
|
|
1999-01-22 22:09:12 +08:00
|
|
|
# This is a sanity check so we can see which version is used in bug reports.
|
|
|
|
# It is assumed that we only want to see the date extension for cvs libtool
|
|
|
|
# versions (i.e. "odd" letters) and not actual alpha releases.
|
1999-10-02 07:12:15 +08:00
|
|
|
TIMESTAMP=
|
2004-02-06 22:38:56 +08:00
|
|
|
case $lt_alpha in
|
2003-11-22 18:03:13 +08:00
|
|
|
[[acegikmoqsuwy]])
|
* bootstrap: Rewritten to use autoreconf.
* config.guess, config.sub, mkstamp: Moved from here...
* config/config.guess, config/config.sub, config/mkstamp: ...to
here, respectively.
* libtool.m4, ltdl.m4: Moved from here...
* m4/libtool.m4, m4/ltdl.m4: ...to here, respectively.
* configure.ac: Removed various acinclude.m4 hackery, as these
files are no longer needed with automake 1.8.
* Makefile.am: Removed various acinclude.m4 hackery, as these
files are no longer needed with automake 1.8.
(AUTOMAKE_OPTIONS): Require CVS automake.
(CONF_SUBDIRS, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, FFLAGS, FLIBS):
Automake now makes a Make variable from every AC_SUBST, so these
are NOP.
(aclocal_macros): These files are now in their own m4 subdir.
Changed all clients.
(EXTRA_DIST): mkstamp has moved to the new config subdir. Changed
all clients.
(pkgdata_SCRIPTS): Ditto wrt config.guess and config.sub.
(pkgdata_DATA): Ditto wrt ltmain.sh.
* f77demo/configure.ac, libltdl/configure.ac (AM_CONFIG_HEADER):
Is deprecated in favour of AC_CONFIG_HEADERS. Updated to the
latter.
* Makefile.am, cdemo/Makefile.am, demo/Makefile.am,
depdemo/Makefile.am, f77demo/Makefile.am, mdemo/Makefile.am,
mdemo2/Makefile.am, pdemo/Makefile.am, tagdemo/Makefile.am
(EXTRA_DIST): Remove acinclude.m4.
(ACLOCAL_AMFLAGS): Search new `m4' macro directory.
* configure.ac, cdemo/configure.ac, demo/configure.ac,
depdemo/configure.ac, f77demo/configure.ac, mdemo/configure.ac,
mdemo2/configure.ac, pdemo/configure.ac, tagdemo/configure.ac
(AC_CONFIG_AUX_DIR): Declare that config helper scripts are now
kept in the new config subdir.
* libltdl/configure.ac (AC_CONFIG_AUX_DIR): Removed. Defaults to
`.' anyway.
2003-09-25 19:22:29 +08:00
|
|
|
TIMESTAMP=`${CONFIG_SHELL} ${ac_aux_dir}/mkstamp < ${srcdir}/ChangeLog`
|
2003-11-26 20:34:23 +08:00
|
|
|
AS_BOX([Configuring AC_PACKAGE_TARNAME (Build:$TIMESTAMP) AC_PACKAGE_VERSION])
|
1999-01-23 02:04:51 +08:00
|
|
|
echo
|
1999-01-22 22:09:12 +08:00
|
|
|
;;
|
2001-09-22 22:20:17 +08:00
|
|
|
esac
|
2001-10-06 23:35:17 +08:00
|
|
|
AC_SUBST([TIMESTAMP])
|
|
|
|
|
|
|
|
|
2001-10-31 07:35:59 +08:00
|
|
|
## ------------------------ ##
|
|
|
|
## Automake Initialisation. ##
|
|
|
|
## ------------------------ ##
|
2003-11-25 23:48:23 +08:00
|
|
|
|
|
|
|
dnl These are bootstrap requirements, once built, libtool may work with
|
|
|
|
dnl much older releases of autoconf and automake. See release notes.
|
2004-01-27 20:38:47 +08:00
|
|
|
AM_INIT_AUTOMAKE([1.8 gnits dist-bzip2]) ## We use auto-m4_including
|
2001-10-31 07:35:59 +08:00
|
|
|
|
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
## ------------------------------- ##
|
|
|
|
## Libtool specific configuration. ##
|
|
|
|
## ------------------------------- ##
|
1999-01-27 11:07:15 +08:00
|
|
|
pkgdatadir='${datadir}'"/${PACKAGE}"
|
2001-10-06 23:35:17 +08:00
|
|
|
AC_SUBST([pkgdatadir]) # automake does not need this, but libtoolize does
|
|
|
|
|
1997-04-02 02:29:23 +08:00
|
|
|
aclocaldir='${datadir}/aclocal'
|
2001-10-06 23:35:17 +08:00
|
|
|
AC_SUBST([aclocaldir])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ltdl-install,
|
Run our configure.ac files through Autoconf 2.59's autoupdate, and
then tweak the results by hand:
* m4/libtool.m4 (AC_PROG_LD): In common with all the other
AC_PROG_ macros, AC_SUBST the discovered LD.
(AC_PROG_NM): Similarly for NM.
(LT_AC_PROG_SED): Similarly for SED.
* configure.ac: No need to SUBST NM and LD manually any more.
(AC_PREREQ): Conservatively downgrade from 2.59 to 2.54.
* tests/cdemo/configure.ac, tests/demo/configure.ac,
tests/depdemo/configure.ac, tests/f77demo/configure.ac,
tests/mdemo/configure.ac, tests/mdemo2/configure.ac,
tests/pdemo/configure.ac, tests/tagdemo/configure.ac: Ditto.
* m4/libtool.m4 (AM_PROG_LIBTOOL, AM_ENABLE_SHARED,
AM_ENABLE_STATIC, AM_DISABLE_SHARED, AM_DISABLE_STATIC,
AM_PROG_LD, AM_PROG_NM): AU_DEFUN these macros so autoupdate can
use the newer definitions.
2003-11-14 19:12:22 +08:00
|
|
|
[AS_HELP_STRING([--disable-ltdl-install], [do not install libltdl])])
|
2001-10-06 23:35:17 +08:00
|
|
|
if test x"${enable_ltdl_install+set}" != xset; then
|
|
|
|
enable_ltdl_install=yes
|
|
|
|
fi
|
|
|
|
|
2003-11-17 23:49:06 +08:00
|
|
|
# All subdirectories that are configured on demand, but that must be
|
|
|
|
# included in the distribution. This substitution is for tests/Makefile.am,
|
|
|
|
# so the directory names are relative to that directory.
|
|
|
|
CONF_SUBDIRS="cdemo demo depdemo f77demo mdemo mdemo2 pdemo tagdemo"
|
2001-10-06 23:35:17 +08:00
|
|
|
AC_SUBST([CONF_SUBDIRS])
|
|
|
|
|
|
|
|
DIST_MAKEFILE_LIST=
|
|
|
|
for dir in $CONF_SUBDIRS; do
|
2003-11-17 23:49:06 +08:00
|
|
|
DIST_MAKEFILE_LIST="${DIST_MAKEFILE_LIST}tests/$dir/Makefile "
|
2001-10-06 23:35:17 +08:00
|
|
|
done
|
|
|
|
AC_SUBST([DIST_MAKEFILE_LIST])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## ---------------- ##
|
|
|
|
## compiler checks. ##
|
|
|
|
## ---------------- ##
|
1997-04-02 02:29:23 +08:00
|
|
|
|
2000-09-16 08:52:20 +08:00
|
|
|
# Use the specified CC and LD
|
1997-04-02 03:21:43 +08:00
|
|
|
AC_PROG_CC
|
2002-03-03 11:19:55 +08:00
|
|
|
AC_EXEEXT
|
Run our configure.ac files through Autoconf 2.59's autoupdate, and
then tweak the results by hand:
* m4/libtool.m4 (AC_PROG_LD): In common with all the other
AC_PROG_ macros, AC_SUBST the discovered LD.
(AC_PROG_NM): Similarly for NM.
(LT_AC_PROG_SED): Similarly for SED.
* configure.ac: No need to SUBST NM and LD manually any more.
(AC_PREREQ): Conservatively downgrade from 2.59 to 2.54.
* tests/cdemo/configure.ac, tests/demo/configure.ac,
tests/depdemo/configure.ac, tests/f77demo/configure.ac,
tests/mdemo/configure.ac, tests/mdemo2/configure.ac,
tests/pdemo/configure.ac, tests/tagdemo/configure.ac: Ditto.
* m4/libtool.m4 (AM_PROG_LIBTOOL, AM_ENABLE_SHARED,
AM_ENABLE_STATIC, AM_DISABLE_SHARED, AM_DISABLE_STATIC,
AM_PROG_LD, AM_PROG_NM): AU_DEFUN these macros so autoupdate can
use the newer definitions.
2003-11-14 19:12:22 +08:00
|
|
|
AC_PROG_LD
|
|
|
|
AC_PROG_NM
|
1997-07-01 12:38:32 +08:00
|
|
|
AC_PROG_LN_S
|
1997-04-02 03:21:43 +08:00
|
|
|
|
2001-06-06 22:53:29 +08:00
|
|
|
pushdef([AC_MSG_ERROR], [CXX=no])
|
|
|
|
AC_PROG_CXX
|
|
|
|
popdef([AC_MSG_ERROR])
|
|
|
|
AM_CONDITIONAL(HAVE_CXX, [test "x$CXX" != xno])
|
|
|
|
|
2002-08-01 04:15:28 +08:00
|
|
|
pushdef([AC_MSG_ERROR], [F77=no])
|
|
|
|
AC_PROG_F77
|
|
|
|
popdef([AC_MSG_ERROR])
|
2003-03-21 02:02:05 +08:00
|
|
|
if test -z "$F77"; then
|
|
|
|
F77="no"
|
|
|
|
fi
|
2002-08-01 04:15:28 +08:00
|
|
|
AM_CONDITIONAL(HAVE_F77, [test "x$F77" != xno])
|
|
|
|
|
2001-06-06 22:53:29 +08:00
|
|
|
LT_AC_PROG_GCJ
|
|
|
|
AM_CONDITIONAL(HAVE_GCJ, [test "x$GCJ" != xno])
|
|
|
|
|
2001-09-22 22:20:17 +08:00
|
|
|
LT_AC_PROG_RC
|
|
|
|
AM_CONDITIONAL(HAVE_RC, [test "x$RC" != xno])
|
|
|
|
|
|
|
|
|
2001-06-25 01:55:52 +08:00
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
## ----------------------- ##
|
|
|
|
## Libtool initialisation. ##
|
|
|
|
## ----------------------- ##
|
2003-10-21 23:03:57 +08:00
|
|
|
AC_CONFIG_FILES([config/ltmain.sh:./ltmain.in])
|
2001-06-25 01:55:52 +08:00
|
|
|
AC_LIBTOOL_DLOPEN
|
2001-10-06 23:35:17 +08:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
2001-06-25 01:55:52 +08:00
|
|
|
AC_PROG_LIBTOOL
|
2003-11-27 21:32:33 +08:00
|
|
|
AC_LIB_LTDL
|
2001-06-25 01:55:52 +08:00
|
|
|
|
* configure.in (AC_CONFIG_DIRS): configure only libltdl, and then,
only if --enable-ltdl-install
(CONF_SUBDIRS): list directories that are configured on demand,
but that must be included in the distribution
(ACINCLUDE_M4_LIST, DIST_MAKEFILE_LIST): generated from CONF_SUBDIRS
* Makefile.am (AUTOMAKE_OPTIONS): added version 1.3e and
readme-alpha, to handle README-alpha automatically
(EXTRA_DIST): removed README-alpha
(BUILD_SUBDIRS): subdirectories that are always built
(SUBDIRS): BUILD_SUBDIRS plus BUILD_LTDL
(DIST_SUBDIRS): BUILD_SUBDIRS plus CONF_SUBDIRS, from configure
(all-local, check-local): depend on $(ACINCLUDE_M4_LIST), from
configure, and libtool, so that it is built before subdirs
(configure-subdirs): new target
(configure-subdirs, distdir): depend on $(DIST_MAKEFILE_LIST),
from configure
(@DIST_MAKEFILE_LIST@): create subdir if needed, then run
configure.
On-demand configuration of subdirs at distribution time was
suggested by Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
1999-01-13 18:41:07 +08:00
|
|
|
|
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
## -------- ##
|
|
|
|
## Outputs. ##
|
|
|
|
## -------- ##
|
2003-11-27 21:32:33 +08:00
|
|
|
AC_CONFIG_FILES([Makefile libltdl/Makefile doc/Makefile tests/Makefile])
|
Libtool now builds with the help of Autoconf-2.50!
* configure.ac (AC_PREREQ): Require Autoconf-2.50 or newer.
(AC_PROG_CPP, AC_EXEEXT, AC_OBJEXT): Removed. Autoconf-2.50
doesn't have the AC_REQUIRE bug that required these to be called
explicitly from here. Autoconf-2.50 uses this file instead of...
* configure.in: ...this, which is now deleted.
* cdemo/configure.ac, cdemo/configure.in: Ditto.
* demo/configure.ac, demo/configure.in: Ditto.
* depdemo/configure.ac, depdemo/configure.in: Ditto.
* libltdl/configure.ac, libltdl/configure.in: Ditto.
* mdemo/configure.ac, mdemo/configure.in: Ditto.
* pdemo/configure.ac, pdemo/configure.in: Ditto.
* libltdl/acconfig.h: Deleted.
* Makefile.am (libtool): libtool now depends on configure.ac.
* libtool.m4 (_LT_AC_LOCK): Use 2.50's AC_LANG_PUSH/AC_LANG_POP
instead of 2.13's AC_LANG_SAVE/AC_LANG_RESTORE.
(AC_LIBTOOL_LANG_C_CONFIG): Ditto.
(AC_LIBTOOL_LANG_CXX_CONFIG): Ditto.
* libtoolize.in: Use $configure_ac, instead of hardcoding
configure.in.
2001-06-29 06:02:06 +08:00
|
|
|
AC_OUTPUT
|