Merge branch 'msvc' into maint
[platform/upstream/automake.git] / tests / primary-prefix-couples-documented-valid.test
1 #! /bin/sh
2 # Copyright (C) 2011 Free Software Foundation, Inc.
3 #
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.
8 #
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.
13 #
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/>.
16
17 # Check that the "uncommon" prefix/primary combinations used in
18 # examples in the Automake manual do not cause obvious errors.
19 # Please keep this test in sync with the automake manual.
20
21 . ./defs || Exit 1
22
23 set -e
24
25 cat >> configure.in <<'END'
26 AC_PROG_CC
27 AM_PROG_AR
28 AC_PROG_RANLIB
29 AC_PROG_LIBTOOL
30 AM_PROG_GCJ
31 AM_PATH_PYTHON
32 END
33
34 # Fake libtool availability.
35 : > ltmain.sh
36 cat > acinclude.m4 <<'END'
37 AC_DEFUN([AC_PROG_LIBTOOL],
38          [AC_SUBST([LIBTOOL], [:])])
39 END
40
41 cat > Makefile.am <<'END'
42 xmldir = $(datadir)/xml
43 xml_DATA = file.xml
44
45 data_DATA = file1 file2 file3
46 data2dir = $(datadir)
47 data2_DATA = file4 file5 file6
48
49 aclocaldir = $(datadir)/aclocal
50 aclocal_DATA = mymacro.m4 myothermacro.m4
51
52 imagesdir = $(pkgdatadir)/images
53 soundsdir = $(pkgdatadir)/sounds
54 dist_images_DATA = images/vortex.pgm
55 dist_sounds_DATA = sounds/whirl.ogg
56
57 lisp_DATA = file1.el file2.el
58
59 javadir = $(datadir)/java
60 dist_java_JAVA = a.java b.java c.java
61
62 pkgpython_PYTHON = foo.py
63
64 pyexec_LTLIBRARIES = quaternion.la
65 quaternion_la_SOURCES = quaternion.c support.c support.h
66 quaternion_la_LDFLAGS = -avoid-version -module
67
68 myexecbindir = /exec
69 myexecbin_PROGRAMS = zardoz
70
71 foodir = $(prefix)/foo
72 barexecdir = $(prefix)/bar/binaries
73 foo_SCRIPTS = foo.sh
74 barexec_SCRIPTS = quux.pl
75
76 my_execbindir = $(pkglibdir)
77 my_doclibdir = $(docdir)
78 my_execbin_PROGRAMS = foo
79 my_doclib_LIBRARIES = libquux.a
80 END
81
82 $ACLOCAL
83
84 # Both these two invocations are meant.
85 # They exercise both code paths concerning auxiliary files.
86 $AUTOMAKE -a
87 $AUTOMAKE
88
89 :