2 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test to make sure links created by AC_CONFIG_LINKS get removed with
22 echo 'SUBDIRS = sdir' > Makefile.am
29 cat >>configure.ac << 'EOF'
30 AC_CONFIG_FILES([sdir/Makefile])
31 AC_CONFIG_LINKS([dest:src])
32 AC_CONFIG_LINKS([dest2:src])
33 AC_CONFIG_LINKS([sdir/dest3:src])
34 AC_CONFIG_LINKS([dest4:sdir/src2])
35 AC_CONFIG_LINKS([sdir/dest5:sdir/src2 sdir-no-make/dest6:src])
44 # Make sure nothing is deleted by 'make clean'
52 test -r sdir-no-make/dest6
56 # Make sure the links are deleted by 'make distclean' and the original files
63 test -r dest && exit 1
64 test -r dest2 && exit 1
65 test -r sdir/dest3 && exit 1
66 test -r dest4 && exit 1
67 test -r sdir/dest5 && exit 1
68 test -r sdir-no-make/dest6 && exit 1