Edit

kc3-lang/automake/configure.in

Branch :

  • Show log

    Commit

  • Author : Alexandre Duret-Lutz
    Date : 2002-01-09 08:52:09
    Hash : 45c5938c
    Message : * automake.texi (Complete, Macros, Options): Document the new style AM_INIT_AUTOMAKE. Remove AM_AUTOMAKE_OPTIONS documentaion. * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from AC_INIT if they are available there. Support a new call form where the only argument is an optional space-separated list of Automake options. * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove. (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS, _AM_IF_OPTION): New functions. * automake.in (AC_INIT_PATTERN): New variable. (global_options_line): Remove, use $seen_init_automake instead. (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version from AC_INIT if available. Support the new style AM_INIT_AUTOMAKE. Remove the AM_AUTOMAKE_OPTIONS handling. * configure.in: Modernize. * tests/defs (configure.in): Modernize. One third of the tests still overwrite the default configure.in and use an old AM_INIT_AUTOMAKE call, so that makes testing for both. * tests/nodefine.test, tests/nodefine2.test: New files. * tests/Makefile.am (TESTS): Add them.

  • configure.in
  • # Process this file with autoconf to produce a configure script.
    
    # Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
    # Free Software Foundation, Inc.
    #
    # This program is free software; you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2, or (at your option)
    # any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program; if not, write to the Free Software
    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    # 02111-1307, USA.
    
    AC_PREREQ(2.52)
    AC_INIT([GNU Automake], [1.5c], [bug-automake@gnu.org])
    
    AC_CONFIG_SRCDIR(automake.in)
    AC_CONFIG_AUX_DIR(lib)
    
    AM_INIT_AUTOMAKE([1.5 dist-bzip2])
    
    # $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
    # hence `.' is really what we want for perllibdir and libdir.
    ACLOCAL="perllibdir=./lib `pwd`/aclocal --acdir=m4"
    AUTOMAKE="perllibdir=./lib `pwd`/automake --libdir=lib"
    
    AC_PATH_PROG(PERL, perl)
    if test -z "$PERL"; then
       AC_MSG_ERROR([perl not found])
    fi
    $PERL -e 'require 5.005;' || {
       AC_MSG_ERROR([perl 5.005 or better is required])
    }
    
    # Test for Autoconf.  We run Autoconf in a subdirectory to ease
    # deletion of any files created (such as those added to
    # autom4te.cache).
    mkdir conftest
    echo 'AC''_PREREQ(2.52)' > conftest/conftest.ac
    AM_RUN_LOG([cd conftest && eval $AUTOCONF -o /dev/null conftest.ac]) || {
       AC_MSG_ERROR([Autoconf 2.52 or better is required])
    }
    rm -rf conftest
    
    AC_CONFIG_FILES([automake], [chmod +x automake])
    AC_CONFIG_FILES([aclocal], [chmod +x aclocal])
    
    AC_CONFIG_FILES([
      Makefile
      lib/Automake/Makefile
      lib/Makefile
      lib/am/Makefile
      m4/Makefile
      m4/amversion.m4:m4/amversion.in
      tests/Makefile
    ])
    
    AC_OUTPUT