compile: implement library search to support MSVC static linking
[automake.git] / tests / license.test
blob4a6979108a47050abb3d91635b7fbd0c35ef7c07
1 #! /bin/sh
2 # Copyright (C) 2003 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)
7 # any later version.
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 # Make sure COPYING is not overwritten, even with -a -f.
19 required=makeinfo
20 . ./defs || Exit 1
22 set -e
24 echo AC_OUTPUT >>configure.in
25 cat >Makefile.am <<\EOF
26 test1: distdir
27 grep 'GNU GENERAL PUBLIC LICENSE' $(distdir)/COPYING
28 test2: distdir
29 grep 'MY-OWN-LICENSE' $(distdir)/COPYING
30 test3: distdir
31 test ! -f $(distdir)/COPYING
32 grep 'MY-OWN-LICENSE' $(distdir)/COPYING.LIB
33 EOF
35 :> NEWS
36 :> AUTHORS
37 :> ChangeLog
38 :> README
40 test ! -f COPYING
42 $ACLOCAL
43 $AUTOCONF
44 $AUTOMAKE --gnu --add-missing
46 ./configure
47 $MAKE test1
49 # rm before echo, because COPYING is likely to be a symlink to
50 # the real COPYING...
51 rm -f COPYING
52 echo 'MY-OWN-LICENSE' >COPYING
53 $MAKE test2
55 $AUTOMAKE --gnu --add-missing --force-missing
56 ./configure
57 $MAKE test2
59 rm -f COPYING
60 echo 'MY-OWN-LICENSE' >COPYING.LIB
61 $AUTOMAKE --gnu --add-missing --force-missing
62 ./configure
63 $MAKE test3