summaryrefslogtreecommitdiff
path: root/tests/confincl.test
blob: 4f155224cc3dade822b610cd109888a2deb70f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

# This tests for a bug reported by Gord Matzigkeit.
# If config.h is not used, @CONFIG_INCLUDE_SPEC@ should not appear
# in Makefile.in.

. $srcdir/defs || exit 1

cat >> configure.in << 'END'
AC_PROG_CC
END

cat > Makefile.am << 'EOF'
bin_PROGRAMS = fred
EOF

$ACLOCAL || exit 1
$AUTOMAKE || exit 1

if grep '@CONFIG_INCLUDE_SPEC@' Makefile.in; then
   exit 1
fi
exit 0