2001-06-30 06:56:50 +08:00
|
|
|
## Process this file with autoconf to create configure. -*- autoconf -*-
|
2001-10-06 23:35:17 +08:00
|
|
|
# Copyright 2001 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
## FIXME: Is this really new enough? ##
|
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_PREREQ(2.50)
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## ------------------------ ##
|
|
|
|
## Autoconf initialisation. ##
|
|
|
|
## ------------------------ ##
|
2002-01-11 09:24:31 +08:00
|
|
|
AC_INIT([libtool], [1.4e], [bug-libtool@gnu.org])
|
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])
|
1997-11-28 00:57:00 +08:00
|
|
|
|
2001-10-06 23:35:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
## ---------------------------------------- ##
|
|
|
|
## Display a configure time version banner. ##
|
|
|
|
## ---------------------------------------- ##
|
1999-01-23 02:04:51 +08:00
|
|
|
|
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=
|
2001-10-06 23:35:17 +08:00
|
|
|
case AC_PACKAGE_VERSION in
|
2000-09-16 08:52:20 +08:00
|
|
|
[*[acegikmoqsuwy])]
|
1999-01-27 10:40:39 +08:00
|
|
|
TIMESTAMP=`${CONFIG_SHELL} ${srcdir}/mkstamp < ${srcdir}/ChangeLog`
|
2001-10-06 23:35:17 +08:00
|
|
|
AS_BOX([Configuring AC_PACKAGE_TARNAME AC_PACKAGE_VERSION$TIMESTAMP])
|
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])
|
|
|
|
|
|
|
|
|
1997-04-02 02:29:23 +08:00
|
|
|
|
2001-10-31 07:35:59 +08:00
|
|
|
## ------------------------ ##
|
|
|
|
## Automake Initialisation. ##
|
|
|
|
## ------------------------ ##
|
|
|
|
AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
|
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
[AC_HELP_STRING([--disable-ltdl-install], [do not install libltdl])])
|
|
|
|
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])
|
|
|
|
|
|
|
|
# all subdirectories that are configured on demand, but that must be
|
|
|
|
# included in the distribution
|
|
|
|
CONF_SUBDIRS="cdemo pdemo demo depdemo mdemo tagdemo"
|
|
|
|
AC_SUBST([CONF_SUBDIRS])
|
|
|
|
|
|
|
|
ACINCLUDE_M4_LIST="${srcdir}/acinclude.m4"
|
|
|
|
DIST_MAKEFILE_LIST=
|
|
|
|
for dir in $CONF_SUBDIRS; do
|
|
|
|
ACINCLUDE_M4_LIST="$ACINCLUDE_M4_LIST ${srcdir}/$dir/acinclude.m4"
|
|
|
|
DIST_MAKEFILE_LIST="$DIST_MAKEFILE_LIST$dir/Makefile "
|
|
|
|
done
|
|
|
|
AC_SUBST([ACINCLUDE_M4_LIST])
|
|
|
|
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
|
1997-07-02 04:04:47 +08:00
|
|
|
AM_PROG_LD
|
1999-12-03 10:27:33 +08:00
|
|
|
AC_SUBST(LD)
|
1997-07-13 05:39:00 +08:00
|
|
|
AM_PROG_NM
|
1999-12-03 10:27:33 +08:00
|
|
|
AC_SUBST(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])
|
|
|
|
|
|
|
|
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. ##
|
|
|
|
## ----------------------- ##
|
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
|
|
|
|
|
* 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. ##
|
|
|
|
## -------- ##
|
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_FILES([Makefile doc/Makefile tests/Makefile])
|
|
|
|
AC_OUTPUT
|