2000-12-19 16:14:19 +08:00
|
|
|
# -*- autoconf -*-
|
|
|
|
|
|
|
|
AT_BANNER([Compatibility with other tools.])
|
|
|
|
|
|
|
|
## -------------------- ##
|
|
|
|
## Autoconf & Libtool. ##
|
|
|
|
## -------------------- ##
|
|
|
|
|
2001-03-20 21:59:27 +08:00
|
|
|
AT_SETUP([[Libtool]])
|
2000-12-19 16:14:19 +08:00
|
|
|
|
|
|
|
# Skip this test if there is no libtoolize.
|
2000-12-20 21:48:07 +08:00
|
|
|
AT_CHECK([libtoolize --version || exit 77],
|
|
|
|
ignore, ignore, ignore)
|
|
|
|
# CVS Autoconf does not work with Libtool 1.3.5.
|
2001-03-20 21:59:27 +08:00
|
|
|
AT_CHECK([[libtoolize --version | egrep '1\.3(\.[0-5])?$' && exit 77]],
|
2000-12-20 21:48:07 +08:00
|
|
|
ignore, ignore, ignore)
|
2000-12-19 16:14:19 +08:00
|
|
|
|
2001-01-18 21:16:02 +08:00
|
|
|
# FIXME: Once Libtool `configure.ac' aware, change this.
|
|
|
|
# Using a configure.in, have libtoolize confess where libtool.m4 is.
|
|
|
|
AT_DATA([configure.in],
|
2000-12-19 16:14:19 +08:00
|
|
|
[[AC_INIT
|
|
|
|
AC_CONFIG_AUX_DIR(.)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
]])
|
2001-01-22 16:59:02 +08:00
|
|
|
AT_CHECK([libtoolize | sed -n ["s,^.*\`\(/[^']*\)'.*,\1,p"]],
|
|
|
|
0, [stdout], ignore)
|
2000-12-19 16:14:19 +08:00
|
|
|
|
2001-01-18 21:16:02 +08:00
|
|
|
# Make sure at-path contains something valid, and let the test suite
|
|
|
|
# display it when verbose. And fail, skipping would too easily hide
|
|
|
|
# problems.
|
2001-01-22 16:59:02 +08:00
|
|
|
AT_CHECK([grep . stdout], 0, [ignore])
|
|
|
|
AT_CHECK([test -f "`cat stdout`"])
|
2001-01-18 21:16:02 +08:00
|
|
|
|
2000-12-23 18:11:57 +08:00
|
|
|
# Build the concatenation of libtool.m4 and configure.ac.
|
2001-01-22 16:59:02 +08:00
|
|
|
cp `cat stdout` configure.in
|
2001-01-18 21:16:02 +08:00
|
|
|
cat >>configure.in <<_EOF
|
2000-12-19 16:14:19 +08:00
|
|
|
AC_INIT
|
|
|
|
AC_CONFIG_AUX_DIR(.)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
AT_CHECK_AUTOCONF
|
|
|
|
|
|
|
|
touch install-sh
|
|
|
|
AT_CHECK_CONFIGURE
|
|
|
|
|
|
|
|
AT_CLEANUP(install-sh ltconfig libtool at-path ltmain.sh config.guess config.sub)
|