* tests/base.at, tests/compile.at, tests/foreign.at,
* tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
* tests/semantics.at, tests/suite.at, tests/tools.at,
* tests/torture.at: Ask Autotest mode, not Autoconf mode.
2001-08-20 22:44:38 +08:00
|
|
|
# -*- Autotest -*-
|
2000-12-19 16:14:19 +08:00
|
|
|
|
|
|
|
AT_BANNER([Compatibility with other tools.])
|
|
|
|
|
2007-12-05 05:49:36 +08:00
|
|
|
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
|
|
|
|
# Software Foundation, Inc.
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
#
|
2007-07-21 07:11:49 +08:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2008-04-04 23:09:47 +08:00
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
#
|
|
|
|
# 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
|
2008-04-04 23:09:47 +08:00
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
# 02110-1301, USA.
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
|
|
|
|
|
2002-10-28 16:57:40 +08:00
|
|
|
## --------- ##
|
|
|
|
## Libtool. ##
|
|
|
|
## --------- ##
|
2000-12-19 16:14:19 +08:00
|
|
|
|
2005-02-05 16:28:35 +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],
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +08:00
|
|
|
ignore, ignore, ignore)
|
2001-03-20 22:15:59 +08:00
|
|
|
# CVS Autoconf probably does not work with too old Libtools.
|
2001-06-23 22:01:29 +08:00
|
|
|
AT_CHECK([[
|
|
|
|
case `libtoolize --version |
|
Fix Posix-conformance bugs re use of { command in sed scripts,
and improve the sed-related documentation a bit.
* doc/autoconf.texi (Installation Directory Variables): Use
our own style advice re 's,a,b,' versus 's|a|b|'. Use "Sed"
rather than "sed" when talking about Sed in general.
(Particular Programs): Likewise.
(Coding Style): y is like s with respect to / and ,.
(Limitations of Usual Tools): Document the weird restrictions
that Posix has about { }. Use better quoting.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
Rewrite to conform to Posix rules about { } in sed scripts.
* lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
* tests/foreign.at (Libtool): Likewise.
* tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
Use our own style advice re 's,a,b,' versus 's|a|b|'.
2006-01-06 05:43:44 +08:00
|
|
|
sed -n '/^.* \([0-9][0-9.a-z]*\)$/{
|
|
|
|
s//\1/
|
|
|
|
p
|
|
|
|
q
|
|
|
|
}'` in
|
2001-06-25 19:57:14 +08:00
|
|
|
0.* ) exit 77;;
|
2003-05-14 16:34:10 +08:00
|
|
|
1.[0123]* ) exit 77;;
|
2001-06-23 22:01:29 +08:00
|
|
|
esac]],
|
* aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 21:24:04 +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
|
2007-12-05 05:49:36 +08:00
|
|
|
# State that we explicitly want auxiliary files here, so libtoolize
|
|
|
|
# won't pollute files outside the test directory.
|
2000-12-19 16:14:19 +08:00
|
|
|
AC_CONFIG_AUX_DIR(.)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
]])
|
2004-03-19 16:57:51 +08:00
|
|
|
# Some libtoolize complain if you don't have an aclocal.m4.
|
2004-03-30 15:52:37 +08:00
|
|
|
AT_CHECK([touch aclocal.m4])
|
2002-10-28 17:31:48 +08:00
|
|
|
AT_CHECK([libtoolize], 0, [stdout], ignore)
|
|
|
|
|
|
|
|
# Some broken libtoolize fail to install a functional config.guess.
|
|
|
|
AT_CHECK([./config.guess || exit 77], [], [ignore], [ignore])
|
|
|
|
|
|
|
|
# Make sure at-path contains something valid, and let the test suite
|
|
|
|
# display it when verbose. And fail, skipping would too easily hide
|
|
|
|
# problems.
|
2004-03-30 15:52:37 +08:00
|
|
|
AT_CHECK([sed -n ["s,^.*\`\\(/[^']*\\)'.*,\\1,p"] stdout], 0, [stdout])
|
2002-10-28 17:31:48 +08:00
|
|
|
AT_CHECK([test -f "`cat stdout`"])
|
2001-01-18 21:16:02 +08:00
|
|
|
|
2001-04-21 01:38:22 +08:00
|
|
|
# libtoolize installed everything but install-sh...
|
|
|
|
touch install-sh
|
|
|
|
|
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(.)
|
2001-03-20 22:15:59 +08:00
|
|
|
AC_CANONICAL_SYSTEM
|
2000-12-19 16:14:19 +08:00
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
_EOF
|
|
|
|
|
2002-10-22 19:14:44 +08:00
|
|
|
# FIXME: Once Libtool really fixed, stop ignoring stderr.
|
|
|
|
AT_CHECK_AUTOCONF([], [], [], [ignore])
|
2000-12-19 16:14:19 +08:00
|
|
|
|
2001-04-21 01:38:22 +08:00
|
|
|
# Ignore stderr, because ltconfig always loads the cache, which is
|
|
|
|
# /dev/null, and some shells choke on this. For instance with Bash
|
|
|
|
# 2.05, you get:
|
|
|
|
#
|
|
|
|
# loading cache /dev/null within ltconfig
|
|
|
|
# ./ltconfig: .: /dev/null: not a regular file
|
|
|
|
#
|
|
|
|
# But the script executes properly.
|
|
|
|
AT_CHECK_CONFIGURE([], [], [], [ignore])
|
2000-12-19 16:14:19 +08:00
|
|
|
|
2007-05-16 17:42:25 +08:00
|
|
|
AT_CLEANUP
|