news: add entry about recent 'ar-lib' changes
[automake.git] / tests / primary-prefix-valid-couples.test
blob47aac5eee2537c241d80108bdfe89f4f8ebb7d6c
1 #! /bin/sh
2 # Copyright (C) 2011 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 # Test for valid prefix/primary combinations.
18 # See also test `primary-prefix-invalid-couples.test'.
20 . ./defs || Exit 1
22 set -e
24 cat >> configure.in <<'END'
25 AC_PROG_CC
26 AM_PROG_AR
27 AC_PROG_RANLIB
28 AC_PROG_LIBTOOL
29 AM_PATH_PYTHON
30 AM_PATH_LISPDIR
31 END
33 # Fake libtool availability.
34 : > ltmain.sh
35 : > config.sub
36 : > config.guess
37 cat > acinclude.m4 <<'END'
38 AC_DEFUN([AC_PROG_LIBTOOL],
39 [AC_SUBST([LIBTOOL], [:])])
40 END
42 # Other required files.
43 echo '@setfilename foo' > foo.texi
44 : > texinfo.tex
45 : > py-compile
46 : > elisp-comp
47 : > ar-lib
49 # Setup Makefile.am.
51 : > Makefile.am
53 for p in bin sbin libexec pkglibexec; do
54 echo "${p}_PROGRAMS = prog-$p" >> Makefile.am
55 done
57 for p in lib pkglib; do
58 echo "${p}_LIBRARIES = libs-$p.a" >> Makefile.am
59 echo "${p}_LTLIBRARIES = libd-$p.la" >> Makefile.am
60 done
62 for p in bin sbin libexec pkglibexec pkgdata; do
63 echo "${p}_SCRIPTS = $p.sh" >> Makefile.am
64 done
66 for p in data dataroot pkgdata doc html dvi pdf ps sysconf \
67 sharedstate localstate lisp; do
68 echo "${p}_DATA = $p.dat" >> Makefile.am
69 done
71 for p in include oldinclude pkginclude; do
72 echo "${p}_HEADERS = $p.h" >> Makefile.am
73 done
75 for p in man man1 man2 man3 man4 man5 man6 man7 man8 man9; do
76 echo "${p}_MANS = bar.$p"
77 done
79 echo "info_TEXINFOS = foo.texi" >> Makefile.am
80 echo "lisp_LISP = foo.el" >> Makefile.am
81 echo "python_PYTHON = foo.py" >> Makefile.am
83 awk '{print NR ":" $0}' Makefile.am # For debugging.
85 # Go with the tests.
87 $ACLOCAL
88 $AUTOMAKE