Edit

kc3-lang/automake/m4/init.m4

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2001-11-07 18:08:14
    Hash : 56c8ea4f
    Message : * m4/init.m4 (AM_INIT_AUTOMAKE): Don't escape quotes in AC_MSG_ERROR. Reported by Jim Meyering.

  • m4/init.m4
  • # Do all the work for Automake.                            -*- Autoconf -*-
    
    # This macro actually does too much some checks are only needed if
    # your package does certain things.  But this isn't really a big deal.
    
    # Copyright 1996, 1997, 1998, 1999, 2000, 2001 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.
    
    # serial 7
    
    # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
    # written in clear, in which case automake, when reading aclocal.m4,
    # will think it sees a *use*, and therefore will trigger all it's
    # C support machinery.  Also note that it means that autoscan, seeing
    # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    
    
    AC_PREREQ([2.52])
    
    # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
    # the ones we care about.
    m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    
    # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
    # ----------------------------------------------
    AC_DEFUN([AM_INIT_AUTOMAKE],
    [AC_REQUIRE([AC_PROG_INSTALL])dnl
    # test to see if srcdir already configured
    if test "`cd $srcdir && pwd`" != "`pwd`" &&
       test -f $srcdir/config.status; then
      AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
    fi
    
    # Define the identity of the package.
    AC_SUBST([PACKAGE], [$1])dnl
    AC_SUBST([VERSION], [$2])dnl
    ifelse([$3],,
    [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
    AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
    
    
    # Some tools Automake needs.
    AC_REQUIRE([AM_SANITY_CHECK])dnl
    AC_REQUIRE([AC_ARG_PROGRAM])dnl
    AM_MISSING_PROG(ACLOCAL, aclocal)
    AM_MISSING_PROG(AUTOCONF, autoconf)
    AM_MISSING_PROG(AUTOMAKE, automake)
    AM_MISSING_PROG(AUTOHEADER, autoheader)
    AM_MISSING_PROG(MAKEINFO, makeinfo)
    AM_MISSING_PROG(AMTAR, tar)
    AM_PROG_INSTALL_SH
    AM_PROG_INSTALL_STRIP
    # We need awk for the "check" target.  The system "awk" is bad on
    # some platforms.
    AC_REQUIRE([AC_PROG_AWK])dnl
    AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    AC_REQUIRE([AM_DEP_TRACK])dnl
    AC_REQUIRE([AM_SET_DEPDIR])dnl
    AC_PROVIDE_IFELSE([AC_PROG_][CC],
                      [_AM_DEPENDENCIES(CC)],
                      [define([AC_PROG_][CC],
                              defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
    AC_PROVIDE_IFELSE([AC_PROG_][CXX],
                      [_AM_DEPENDENCIES(CXX)],
                      [define([AC_PROG_][CXX],
                              defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
    ])