#! /bin/sh
-# Copyright (C) 2010-2012 Free Software Foundation, Inc.
+# Copyright (C) 2010-2013 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
# Test usage of AM_INIT_AUTOMAKE with two or three arguments, for
# backward-compatibility.
-. ./defs || Exit 1
+. test-init.sh
cat > Makefile.am <<'END'
.PHONY: test display
for ac_init in 'AC_INIT' 'AC_INIT([Makefile.am])'; do
for am_extra_args in '' ', []' ', [:]' ', [false]'; do
rm -rf autom4te*.cache config* Makefile.in Makefile
- unindent > configure.in <<END
+ unindent > configure.ac <<END
$ac_init
AM_INIT_AUTOMAKE([FooBar], [0.7.1]$am_extra_args)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
END
- cat configure.in # For debugging.
+ cat configure.ac # For debugging.
$ACLOCAL
$AUTOCONF
- $AUTOMAKE
+ $AUTOMAKE -Wno-obsolete
./configure
$MAKE test
done