Line | |
---|
1 | #! /bin/sh
|
---|
2 |
|
---|
3 | # Test to make sure config.h works in a subdir.
|
---|
4 | # Report from Alexandre Oliva.
|
---|
5 |
|
---|
6 | . $srcdir/defs || exit 1
|
---|
7 |
|
---|
8 | cat > configure.in << 'END'
|
---|
9 | PACKAGE=nonesuch
|
---|
10 | VERSION=nonesuch
|
---|
11 | AC_ARG_PROGRAM
|
---|
12 | AC_PROG_INSTALL
|
---|
13 | AM_CONFIG_HEADER(include/config.h)
|
---|
14 | AC_OUTPUT(Makefile)
|
---|
15 | END
|
---|
16 |
|
---|
17 | : > Makefile.am
|
---|
18 | : > acconfig.h
|
---|
19 |
|
---|
20 | mkdir include
|
---|
21 | : > include/config.h.in
|
---|
22 |
|
---|
23 | $AUTOMAKE || exit 1
|
---|
24 |
|
---|
25 | grep '^DIST_COMMON =.* acconfig.h' Makefile.in || exit 1
|
---|
26 | grep 'stamp-h.in:.*acconfig.h' Makefile.in || exit 1
|
---|
27 |
|
---|
28 | # Make sure re-running automake in a different way generates same
|
---|
29 | # Makefile.in.
|
---|
30 | mv Makefile.in save
|
---|
31 | $AUTOMAKE Makefile || exit 1
|
---|
32 | cmp Makefile.in save
|
---|
Note:
See
TracBrowser
for help on using the repository browser.