| Line | |
|---|
| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Test to make sure config.h rule made even if it is in a subdir. The
|
|---|
| 4 | # idea is that if config.h is in a subdir, and there is no Makefile in
|
|---|
| 5 | # that subdir, then we want to build config.h as the top level.
|
|---|
| 6 |
|
|---|
| 7 | . $srcdir/defs || exit 1
|
|---|
| 8 |
|
|---|
| 9 | cat > configure.in << 'END'
|
|---|
| 10 | AM_CONFIG_HEADER(subdir/config.h)
|
|---|
| 11 | PACKAGE=nonesuch
|
|---|
| 12 | VERSION=nonesuch
|
|---|
| 13 | AC_PROG_CC
|
|---|
| 14 | AC_ARG_PROGRAM
|
|---|
| 15 | AC_PROG_INSTALL
|
|---|
| 16 | AC_OUTPUT(Makefile)
|
|---|
| 17 | END
|
|---|
| 18 |
|
|---|
| 19 | : > Makefile.am
|
|---|
| 20 | mkdir subdir
|
|---|
| 21 | : > subdir/config.h.in
|
|---|
| 22 |
|
|---|
| 23 | $AUTOMAKE || exit 1
|
|---|
| 24 |
|
|---|
| 25 | grep '^subdir/config.h:' Makefile.in
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.