Update to GPLv3.
[autoconf.git] / tests / autoscan.at
blobc8b28f8648f515a8d0362747a3f4e708bf83e9d5
1 #                                                       -*- Autotest -*-
3 AT_BANNER([Autoscan.])
5 # Copyright (C) 2005 Free Software Foundation, Inc.
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 3, or (at your option)
10 # any later version.
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.
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.
22 AT_SETUP([autoscan])
24 AT_DATA([Makefile.am],
25 [[SUBDIRS = subpkg
26 ]])
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 ]])
37 mkdir subpkg
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])
49 AT_CLEANUP