* missing: Updated.
[platform/upstream/automake.git] / configure.in
1 # Process this file with autoconf to produce a configure script.
2
3 # Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
4 # Free Software Foundation, Inc.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 # 02111-1307, USA.
20
21 AC_PREREQ(2.52)
22 AC_INIT([GNU Automake], [1.5c], [bug-automake@gnu.org])
23
24 AC_CONFIG_SRCDIR(automake.in)
25 AC_CONFIG_AUX_DIR(lib)
26
27 AM_INIT_AUTOMAKE([1.5 dist-bzip2])
28
29 # A versioned directory, defined here for convenience.
30 pkgvdatadir="\${datadir}/automake-${VERSION}"
31 AC_SUBST(pkgvdatadir)
32
33 # $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
34 # hence `.' is really what we want for perllibdir and libdir.
35 ACLOCAL="perllibdir=./lib `pwd`/aclocal --acdir=m4 -I `pwd`/m4"
36 AUTOMAKE="perllibdir=./lib `pwd`/automake --libdir=lib"
37
38 AC_PATH_PROG(PERL, perl)
39 if test -z "$PERL"; then
40    AC_MSG_ERROR([perl not found])
41 fi
42 $PERL -e 'require 5.005;' || {
43    AC_MSG_ERROR([perl 5.005 or better is required])
44 }
45
46 # Test for Autoconf.  We run Autoconf in a subdirectory to ease
47 # deletion of any files created (such as those added to
48 # autom4te.cache).
49 mkdir conftest
50 echo 'AC''_PREREQ(2.52)' > conftest/conftest.ac
51 AM_RUN_LOG([cd conftest && eval $AUTOCONF -o /dev/null conftest.ac]) || {
52    AC_MSG_ERROR([Autoconf 2.52 or better is required])
53 }
54 rm -rf conftest
55
56 AC_CONFIG_FILES([automake], [chmod +x automake])
57 AC_CONFIG_FILES([aclocal], [chmod +x aclocal])
58
59 AC_CONFIG_FILES([
60   Makefile
61   lib/Automake/Makefile
62   lib/Makefile
63   lib/am/Makefile
64   m4/Makefile
65   m4/amversion.m4:m4/amversion.in
66   tests/Makefile
67 ])
68
69 AC_OUTPUT