2 # Copyright (C) 2010-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 for regressions in computation of names of .Po files for
18 # automatic dependency tracking.
19 # Keep this in sync with sister test 'depcomp8b.sh', which checks the
20 # same thing for libtool objects.
25 cat >> configure.ac
<< 'END'
31 cat > Makefile.am
<< 'END'
33 zardoz_SOURCES
= foo.c sub
/bar.c
40 extern int bar
(void
);
44 cat > sub
/bar.c
<< 'END'
53 grep include Makefile.
in # For debugging.
54 grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.
in
55 grep 'include.*\./\$(DEPDIR)/bar\.P' Makefile.
in
56 grep 'include.*/\./\$(DEPDIR)' Makefile.
in && exit 1
59 # Don't reject slower dependency extractors, for better coverage.
60 .
/configure
--enable-dependency-tracking
62 cross_compiling || .
/zardoz
63 DISTCHECK_CONFIGURE_FLAGS
='--enable-dependency-tracking' $MAKE distcheck
65 # Try again with subdir-objects option.
67 sed 's/#x //' configure.ac
>configure.int
68 mv -f configure.int configure.ac
69 echo AUTOMAKE_OPTIONS
= subdir-objects
>> Makefile.am
73 grep include Makefile.
in # For debugging.
74 grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.
in
75 grep 'include.*[^a-zA-Z0-9_/]sub/\$(DEPDIR)/bar\.P' Makefile.
in
76 $EGREP 'include.*/(\.|sub)/\$\(DEPDIR\)' Makefile.
in && exit 1
79 # Don't reject slower dependency extractors, for better coverage.
80 .
/configure
--enable-dependency-tracking
82 cross_compiling || .
/zardoz
83 DISTCHECK_CONFIGURE_FLAGS
='--enable-dependency-tracking' $MAKE distcheck