maint: Update HACKING
[automake.git] / t / auxdir-pr19311.sh
blob61970cef7e2b4a40cfa6ea4131e20a7eed8c196e
1 #! /bin/sh
2 # Copyright (C) 2014-2017 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # Automake bug#19311: AC_PROG_CC called before AC_CONFIG_AUX_DIR can
18 # silently force wrong $ac_aux_dir definition.
20 am_create_testdir=empty
21 required=cc
22 . test-init.sh
24 cat > configure.ac <<END
25 AC_INIT([$me], [1.0])
26 AC_PROG_CC
27 AC_CONFIG_AUX_DIR([build-aux])
28 AM_INIT_AUTOMAKE
29 AC_OUTPUT([Makefile])
30 END
32 : > Makefile.am
34 mkdir build-aux
36 $ACLOCAL
37 $AUTOMAKE -a
38 $AUTOCONF
40 test -f build-aux/compile
41 test -f build-aux/install-sh
43 ./configure