1 | # -*- Autotest -*-
|
---|
2 |
|
---|
3 | AT_BANNER([Autoscan.])
|
---|
4 |
|
---|
5 | # Copyright (C) 2005 Free Software Foundation, Inc.
|
---|
6 | #
|
---|
7 | # This program is free software; you can redistribute it and/or modify
|
---|
8 | # it under the terms of the GNU General Public License as published by
|
---|
9 | # the Free Software Foundation; either version 2, or (at your option)
|
---|
10 | # any later version.
|
---|
11 | #
|
---|
12 | # This program is distributed in the hope that it will be useful,
|
---|
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | # GNU General Public License for more details.
|
---|
16 | #
|
---|
17 | # You should have received a copy of the GNU General Public License
|
---|
18 | # along with this program; if not, write to the Free Software
|
---|
19 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
20 | # 02110-1301, USA.
|
---|
21 |
|
---|
22 | AT_SETUP([autoscan])
|
---|
23 |
|
---|
24 | AT_DATA([Makefile.am],
|
---|
25 | [[SUBDIRS = subpkg
|
---|
26 | ]])
|
---|
27 |
|
---|
28 | AT_DATA([configure.ac],
|
---|
29 | [[AC_INIT
|
---|
30 | AC_PREREQ(2.59)
|
---|
31 | AM_INIT_AUTOMAKE(foreign)
|
---|
32 | AC_CONFIG_SUBDIRS(subpkg)
|
---|
33 | AC_CONFIG_FILES(Makefile)
|
---|
34 | AC_OUTPUT
|
---|
35 | ]])
|
---|
36 |
|
---|
37 | mkdir subpkg
|
---|
38 |
|
---|
39 | AT_DATA([subpkg/Makefile.am], [])
|
---|
40 | AT_DATA([subpkg/configure.ac],
|
---|
41 | [[AC_INIT
|
---|
42 | AM_INIT_AUTOMAKE(foreign)
|
---|
43 | AC_CONFIG_FILES(Makefile)
|
---|
44 | AC_OUTPUT
|
---|
45 | ]])
|
---|
46 | AT_CHECK([autoscan])
|
---|
47 | AT_CHECK([grep subpkg/Makefile configure.scan], [1], [], [ignore])
|
---|
48 |
|
---|
49 | AT_CLEANUP
|
---|