Annotation of parser3/aclocal.m4, revision 1.24

1.23      paf         1: # generated automatically by aclocal 1.7.2 -*- Autoconf -*-
1.1       paf         2: 
1.23      paf         3: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
                      4: # Free Software Foundation, Inc.
                      5: # This file is free software; the Free Software Foundation
                      6: # gives unlimited permission to copy and/or distribute it,
                      7: # with or without modifications, as long as this notice is preserved.
                      8: 
                      9: # This program is distributed in the hope that it will be useful,
                     10: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
                     11: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
                     12: # PARTICULAR PURPOSE.
1.1       paf        13: 
                     14: 
1.15      paf        15: 
1.1       paf        16: # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
                     17: # the libltdl convenience library and INCLTDL to the include flags for
                     18: # the libltdl header and adds --enable-ltdl-convenience to the
                     19: # configure arguments.  Note that LIBLTDL and INCLTDL are not
                     20: # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
                     21: # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
                     22: # with '${top_builddir}/' and INCLTDL will be prefixed with
                     23: # '${top_srcdir}/' (note the single quotes!).  If your package is not
                     24: # flat and you're not using automake, define top_builddir and
                     25: # top_srcdir appropriately in the Makefiles.
                     26: AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.15      paf        27:   case "$enable_ltdl_convenience" in
                     28:   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
                     29:   "") enable_ltdl_convenience=yes
                     30:       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
                     31:   esac
1.2       paf        32:   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.a
1.1       paf        33:   INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
                     34: ])
                     35: 
1.23      paf        36: # Do all the work for Automake.                            -*- Autoconf -*-
                     37: 
                     38: # This macro actually does too much some checks are only needed if
                     39: # your package does certain things.  But this isn't really a big deal.
                     40: 
                     41: # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
                     42: # Free Software Foundation, Inc.
                     43: 
                     44: # This program is free software; you can redistribute it and/or modify
                     45: # it under the terms of the GNU General Public License as published by
                     46: # the Free Software Foundation; either version 2, or (at your option)
                     47: # any later version.
                     48: 
                     49: # This program is distributed in the hope that it will be useful,
                     50: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                     51: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     52: # GNU General Public License for more details.
                     53: 
                     54: # You should have received a copy of the GNU General Public License
                     55: # along with this program; if not, write to the Free Software
                     56: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                     57: # 02111-1307, USA.
                     58: 
                     59: # serial 8
                     60: 
                     61: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
                     62: # written in clear, in which case automake, when reading aclocal.m4,
                     63: # will think it sees a *use*, and therefore will trigger all it's
                     64: # C support machinery.  Also note that it means that autoscan, seeing
                     65: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
                     66: 
                     67: 
                     68: AC_PREREQ([2.54])
                     69: 
                     70: # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
                     71: # the ones we care about.
                     72: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
                     73: 
                     74: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
                     75: # AM_INIT_AUTOMAKE([OPTIONS])
                     76: # -----------------------------------------------
                     77: # The call with PACKAGE and VERSION arguments is the old style
                     78: # call (pre autoconf-2.50), which is being phased out.  PACKAGE
                     79: # and VERSION should now be passed to AC_INIT and removed from
                     80: # the call to AM_INIT_AUTOMAKE.
                     81: # We support both call styles for the transition.  After
                     82: # the next Automake release, Autoconf can make the AC_INIT
                     83: # arguments mandatory, and then we can depend on a new Autoconf
                     84: # release and drop the old call support.
                     85: AC_DEFUN([AM_INIT_AUTOMAKE],
                     86: [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
                     87:  AC_REQUIRE([AC_PROG_INSTALL])dnl
                     88: # test to see if srcdir already configured
                     89: if test "`cd $srcdir && pwd`" != "`pwd`" &&
                     90:    test -f $srcdir/config.status; then
1.1       paf        91:   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
                     92: fi
1.23      paf        93: 
                     94: # test whether we have cygpath
                     95: if test -z "$CYGPATH_W"; then
                     96:   if (cygpath --version) >/dev/null 2>/dev/null; then
                     97:     CYGPATH_W='cygpath -w'
                     98:   else
                     99:     CYGPATH_W=echo
                    100:   fi
                    101: fi
                    102: AC_SUBST([CYGPATH_W])
                    103: 
                    104: # Define the identity of the package.
                    105: dnl Distinguish between old-style and new-style calls.
                    106: m4_ifval([$2],
                    107: [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
                    108:  AC_SUBST([PACKAGE], [$1])dnl
                    109:  AC_SUBST([VERSION], [$2])],
                    110: [_AM_SET_OPTIONS([$1])dnl
                    111:  AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
                    112:  AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
                    113: 
                    114: _AM_IF_OPTION([no-define],,
                    115: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
                    116:  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
                    117: 
                    118: # Some tools Automake needs.
                    119: AC_REQUIRE([AM_SANITY_CHECK])dnl
                    120: AC_REQUIRE([AC_ARG_PROGRAM])dnl
                    121: AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
                    122: AM_MISSING_PROG(AUTOCONF, autoconf)
                    123: AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
                    124: AM_MISSING_PROG(AUTOHEADER, autoheader)
                    125: AM_MISSING_PROG(MAKEINFO, makeinfo)
                    126: AM_MISSING_PROG(AMTAR, tar)
                    127: AM_PROG_INSTALL_SH
                    128: AM_PROG_INSTALL_STRIP
                    129: # We need awk for the "check" target.  The system "awk" is bad on
                    130: # some platforms.
                    131: AC_REQUIRE([AC_PROG_AWK])dnl
                    132: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
                    133: 
                    134: _AM_IF_OPTION([no-dependencies],,
                    135: [AC_PROVIDE_IFELSE([AC_PROG_CC],
                    136:                   [_AM_DEPENDENCIES(CC)],
                    137:                   [define([AC_PROG_CC],
                    138:                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
                    139: AC_PROVIDE_IFELSE([AC_PROG_CXX],
                    140:                   [_AM_DEPENDENCIES(CXX)],
                    141:                   [define([AC_PROG_CXX],
                    142:                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
                    143: ])
                    144: ])
                    145: 
                    146: 
                    147: # When config.status generates a header, we must update the stamp-h file.
                    148: # This file resides in the same directory as the config header
                    149: # that is generated.  The stamp files are numbered to have different names.
                    150: 
                    151: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
                    152: # loop where config.status creates the headers, so we can generate
                    153: # our stamp files there.
                    154: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
                    155: [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
                    156: echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
                    157: 
                    158: # Copyright 2002  Free Software Foundation, Inc.
                    159: 
                    160: # This program is free software; you can redistribute it and/or modify
                    161: # it under the terms of the GNU General Public License as published by
                    162: # the Free Software Foundation; either version 2, or (at your option)
                    163: # any later version.
                    164: 
                    165: # This program is distributed in the hope that it will be useful,
                    166: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    167: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    168: # GNU General Public License for more details.
                    169: 
                    170: # You should have received a copy of the GNU General Public License
                    171: # along with this program; if not, write to the Free Software
                    172: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    173: 
                    174: # AM_AUTOMAKE_VERSION(VERSION)
                    175: # ----------------------------
                    176: # Automake X.Y traces this macro to ensure aclocal.m4 has been
                    177: # generated from the m4 files accompanying Automake X.Y.
                    178: AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
                    179: 
                    180: # AM_SET_CURRENT_AUTOMAKE_VERSION
                    181: # -------------------------------
                    182: # Call AM_AUTOMAKE_VERSION so it can be traced.
                    183: # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
                    184: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
                    185:         [AM_AUTOMAKE_VERSION([1.7.2])])
                    186: 
                    187: # Helper functions for option handling.                    -*- Autoconf -*-
                    188: 
                    189: # Copyright 2001, 2002  Free Software Foundation, Inc.
                    190: 
                    191: # This program is free software; you can redistribute it and/or modify
                    192: # it under the terms of the GNU General Public License as published by
                    193: # the Free Software Foundation; either version 2, or (at your option)
                    194: # any later version.
                    195: 
                    196: # This program is distributed in the hope that it will be useful,
                    197: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    198: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    199: # GNU General Public License for more details.
                    200: 
                    201: # You should have received a copy of the GNU General Public License
                    202: # along with this program; if not, write to the Free Software
                    203: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    204: # 02111-1307, USA.
                    205: 
                    206: # serial 2
                    207: 
                    208: # _AM_MANGLE_OPTION(NAME)
                    209: # -----------------------
                    210: AC_DEFUN([_AM_MANGLE_OPTION],
                    211: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
                    212: 
                    213: # _AM_SET_OPTION(NAME)
                    214: # ------------------------------
                    215: # Set option NAME.  Presently that only means defining a flag for this option.
                    216: AC_DEFUN([_AM_SET_OPTION],
                    217: [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
                    218: 
                    219: # _AM_SET_OPTIONS(OPTIONS)
                    220: # ----------------------------------
                    221: # OPTIONS is a space-separated list of Automake options.
                    222: AC_DEFUN([_AM_SET_OPTIONS],
                    223: [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
                    224: 
                    225: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
                    226: # -------------------------------------------
                    227: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
                    228: AC_DEFUN([_AM_IF_OPTION],
                    229: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1.1       paf       230: 
                    231: #
                    232: # Check to make sure that the build environment is sane.
                    233: #
                    234: 
1.23      paf       235: # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
                    236: 
                    237: # This program is free software; you can redistribute it and/or modify
                    238: # it under the terms of the GNU General Public License as published by
                    239: # the Free Software Foundation; either version 2, or (at your option)
                    240: # any later version.
                    241: 
                    242: # This program is distributed in the hope that it will be useful,
                    243: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    244: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    245: # GNU General Public License for more details.
                    246: 
                    247: # You should have received a copy of the GNU General Public License
                    248: # along with this program; if not, write to the Free Software
                    249: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    250: # 02111-1307, USA.
                    251: 
                    252: # serial 3
                    253: 
                    254: # AM_SANITY_CHECK
                    255: # ---------------
                    256: AC_DEFUN([AM_SANITY_CHECK],
1.1       paf       257: [AC_MSG_CHECKING([whether build environment is sane])
                    258: # Just in case
                    259: sleep 1
1.23      paf       260: echo timestamp > conftest.file
1.1       paf       261: # Do `set' in a subshell so we don't clobber the current shell's
                    262: # arguments.  Must try -L first in case configure is actually a
                    263: # symlink; some systems play weird games with the mod time of symlinks
                    264: # (eg FreeBSD returns the mod time of the symlink's containing
                    265: # directory).
                    266: if (
1.23      paf       267:    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
                    268:    if test "$[*]" = "X"; then
1.1       paf       269:       # -L didn't work.
1.23      paf       270:       set X `ls -t $srcdir/configure conftest.file`
1.1       paf       271:    fi
1.23      paf       272:    rm -f conftest.file
                    273:    if test "$[*]" != "X $srcdir/configure conftest.file" \
                    274:       && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.1       paf       275: 
                    276:       # If neither matched, then we have a broken ls.  This can happen
                    277:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                    278:       # broken ls alias from the environment.  This has actually
                    279:       # happened.  Such a system could not be considered "sane".
                    280:       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
                    281: alias in your environment])
                    282:    fi
                    283: 
1.23      paf       284:    test "$[2]" = conftest.file
1.1       paf       285:    )
                    286: then
                    287:    # Ok.
                    288:    :
                    289: else
                    290:    AC_MSG_ERROR([newly created file is older than distributed files!
                    291: Check your system clock])
                    292: fi
                    293: AC_MSG_RESULT(yes)])
                    294: 
1.23      paf       295: #  -*- Autoconf -*-
                    296: 
                    297: 
                    298: # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
                    299: 
                    300: # This program is free software; you can redistribute it and/or modify
                    301: # it under the terms of the GNU General Public License as published by
                    302: # the Free Software Foundation; either version 2, or (at your option)
                    303: # any later version.
                    304: 
                    305: # This program is distributed in the hope that it will be useful,
                    306: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    307: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    308: # GNU General Public License for more details.
                    309: 
                    310: # You should have received a copy of the GNU General Public License
                    311: # along with this program; if not, write to the Free Software
                    312: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    313: # 02111-1307, USA.
                    314: 
                    315: # serial 3
                    316: 
                    317: # AM_MISSING_PROG(NAME, PROGRAM)
                    318: # ------------------------------
                    319: AC_DEFUN([AM_MISSING_PROG],
                    320: [AC_REQUIRE([AM_MISSING_HAS_RUN])
                    321: $1=${$1-"${am_missing_run}$2"}
                    322: AC_SUBST($1)])
                    323: 
                    324: 
                    325: # AM_MISSING_HAS_RUN
                    326: # ------------------
                    327: # Define MISSING if not defined so far and test if it supports --run.
                    328: # If it does, set am_missing_run to use it, otherwise, to nothing.
                    329: AC_DEFUN([AM_MISSING_HAS_RUN],
                    330: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
                    331: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
                    332: # Use eval to expand $SHELL
                    333: if eval "$MISSING --run true"; then
                    334:   am_missing_run="$MISSING --run "
1.1       paf       335: else
1.23      paf       336:   am_missing_run=
                    337:   AC_MSG_WARN([`missing' script is too old or missing])
                    338: fi
                    339: ])
                    340: 
                    341: # AM_AUX_DIR_EXPAND
                    342: 
                    343: # Copyright 2001 Free Software Foundation, Inc.
                    344: 
                    345: # This program is free software; you can redistribute it and/or modify
                    346: # it under the terms of the GNU General Public License as published by
                    347: # the Free Software Foundation; either version 2, or (at your option)
                    348: # any later version.
                    349: 
                    350: # This program is distributed in the hope that it will be useful,
                    351: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    352: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    353: # GNU General Public License for more details.
                    354: 
                    355: # You should have received a copy of the GNU General Public License
                    356: # along with this program; if not, write to the Free Software
                    357: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    358: # 02111-1307, USA.
                    359: 
                    360: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
                    361: # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
                    362: # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
                    363: #
                    364: # Of course, Automake must honor this variable whenever it calls a
                    365: # tool from the auxiliary directory.  The problem is that $srcdir (and
                    366: # therefore $ac_aux_dir as well) can be either absolute or relative,
                    367: # depending on how configure is run.  This is pretty annoying, since
                    368: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
                    369: # source directory, any form will work fine, but in subdirectories a
                    370: # relative path needs to be adjusted first.
                    371: #
                    372: # $ac_aux_dir/missing
                    373: #    fails when called from a subdirectory if $ac_aux_dir is relative
                    374: # $top_srcdir/$ac_aux_dir/missing
                    375: #    fails if $ac_aux_dir is absolute,
                    376: #    fails when called from a subdirectory in a VPATH build with
                    377: #          a relative $ac_aux_dir
                    378: #
                    379: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
                    380: # are both prefixed by $srcdir.  In an in-source build this is usually
                    381: # harmless because $srcdir is `.', but things will broke when you
                    382: # start a VPATH build or use an absolute $srcdir.
                    383: #
                    384: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
                    385: # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
                    386: #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
                    387: # and then we would define $MISSING as
                    388: #   MISSING="\${SHELL} $am_aux_dir/missing"
                    389: # This will work as long as MISSING is not called from configure, because
                    390: # unfortunately $(top_srcdir) has no meaning in configure.
                    391: # However there are other variables, like CC, which are often used in
                    392: # configure, and could therefore not use this "fixed" $ac_aux_dir.
                    393: #
                    394: # Another solution, used here, is to always expand $ac_aux_dir to an
                    395: # absolute PATH.  The drawback is that using absolute paths prevent a
                    396: # configured tree to be moved without reconfiguration.
                    397: 
                    398: # Rely on autoconf to set up CDPATH properly.
                    399: AC_PREREQ([2.50])
                    400: 
                    401: AC_DEFUN([AM_AUX_DIR_EXPAND], [
                    402: # expand $ac_aux_dir to an absolute path
                    403: am_aux_dir=`cd $ac_aux_dir && pwd`
                    404: ])
                    405: 
                    406: # AM_PROG_INSTALL_SH
                    407: # ------------------
                    408: # Define $install_sh.
                    409: 
                    410: # Copyright 2001 Free Software Foundation, Inc.
                    411: 
                    412: # This program is free software; you can redistribute it and/or modify
                    413: # it under the terms of the GNU General Public License as published by
                    414: # the Free Software Foundation; either version 2, or (at your option)
                    415: # any later version.
                    416: 
                    417: # This program is distributed in the hope that it will be useful,
                    418: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    419: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    420: # GNU General Public License for more details.
                    421: 
                    422: # You should have received a copy of the GNU General Public License
                    423: # along with this program; if not, write to the Free Software
                    424: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    425: # 02111-1307, USA.
                    426: 
                    427: AC_DEFUN([AM_PROG_INSTALL_SH],
                    428: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
                    429: install_sh=${install_sh-"$am_aux_dir/install-sh"}
                    430: AC_SUBST(install_sh)])
                    431: 
                    432: # AM_PROG_INSTALL_STRIP
                    433: 
                    434: # Copyright 2001 Free Software Foundation, Inc.
                    435: 
                    436: # This program is free software; you can redistribute it and/or modify
                    437: # it under the terms of the GNU General Public License as published by
                    438: # the Free Software Foundation; either version 2, or (at your option)
                    439: # any later version.
                    440: 
                    441: # This program is distributed in the hope that it will be useful,
                    442: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    443: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    444: # GNU General Public License for more details.
                    445: 
                    446: # You should have received a copy of the GNU General Public License
                    447: # along with this program; if not, write to the Free Software
                    448: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    449: # 02111-1307, USA.
                    450: 
                    451: # One issue with vendor `install' (even GNU) is that you can't
                    452: # specify the program used to strip binaries.  This is especially
                    453: # annoying in cross-compiling environments, where the build's strip
                    454: # is unlikely to handle the host's binaries.
                    455: # Fortunately install-sh will honor a STRIPPROG variable, so we
                    456: # always use install-sh in `make install-strip', and initialize
                    457: # STRIPPROG with the value of the STRIP variable (set by the user).
                    458: AC_DEFUN([AM_PROG_INSTALL_STRIP],
                    459: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
                    460: # Installed binaries are usually stripped using `strip' when the user
                    461: # run `make install-strip'.  However `strip' might not be the right
                    462: # tool to use in cross-compilation environments, therefore Automake
                    463: # will honor the `STRIP' environment variable to overrule this program.
                    464: dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
                    465: if test "$cross_compiling" != no; then
                    466:   AC_CHECK_TOOL([STRIP], [strip], :)
1.1       paf       467: fi
1.23      paf       468: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
                    469: AC_SUBST([INSTALL_STRIP_PROGRAM])])
                    470: 
                    471: # serial 4                                             -*- Autoconf -*-
                    472: 
                    473: # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
                    474: 
                    475: # This program is free software; you can redistribute it and/or modify
                    476: # it under the terms of the GNU General Public License as published by
                    477: # the Free Software Foundation; either version 2, or (at your option)
                    478: # any later version.
                    479: 
                    480: # This program is distributed in the hope that it will be useful,
                    481: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    482: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    483: # GNU General Public License for more details.
                    484: 
                    485: # You should have received a copy of the GNU General Public License
                    486: # along with this program; if not, write to the Free Software
                    487: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    488: # 02111-1307, USA.
                    489: 
                    490: 
                    491: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
                    492: # written in clear, in which case automake, when reading aclocal.m4,
                    493: # will think it sees a *use*, and therefore will trigger all it's
                    494: # C support machinery.  Also note that it means that autoscan, seeing
                    495: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
                    496: 
                    497: 
                    498: 
                    499: # _AM_DEPENDENCIES(NAME)
                    500: # ----------------------
                    501: # See how the compiler implements dependency checking.
                    502: # NAME is "CC", "CXX", "GCJ", or "OBJC".
                    503: # We try a few techniques and use that to set a single cache variable.
                    504: #
                    505: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
                    506: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
                    507: # dependency, and given that the user is not expected to run this macro,
                    508: # just rely on AC_PROG_CC.
                    509: AC_DEFUN([_AM_DEPENDENCIES],
                    510: [AC_REQUIRE([AM_SET_DEPDIR])dnl
                    511: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
                    512: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
                    513: AC_REQUIRE([AM_DEP_TRACK])dnl
                    514: 
                    515: ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
                    516:        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
                    517:        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
                    518:        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
                    519:                    [depcc="$$1"   am_compiler_list=])
                    520: 
                    521: AC_CACHE_CHECK([dependency style of $depcc],
                    522:                [am_cv_$1_dependencies_compiler_type],
                    523: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                    524:   # We make a subdir and do the tests there.  Otherwise we can end up
                    525:   # making bogus files that we don't know about and never remove.  For
                    526:   # instance it was reported that on HP-UX the gcc test will end up
                    527:   # making a dummy file named `D' -- because `-MD' means `put the output
                    528:   # in D'.
                    529:   mkdir conftest.dir
                    530:   # Copy depcomp to subdir because otherwise we won't find it if we're
                    531:   # using a relative directory.
                    532:   cp "$am_depcomp" conftest.dir
                    533:   cd conftest.dir
                    534: 
                    535:   am_cv_$1_dependencies_compiler_type=none
                    536:   if test "$am_compiler_list" = ""; then
                    537:      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
                    538:   fi
                    539:   for depmode in $am_compiler_list; do
                    540:     # We need to recreate these files for each test, as the compiler may
                    541:     # overwrite some of them when testing with obscure command lines.
                    542:     # This happens at least with the AIX C compiler.
                    543:     echo '#include "conftest.h"' > conftest.c
                    544:     echo 'int i;' > conftest.h
                    545:     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
                    546: 
                    547:     case $depmode in
                    548:     nosideeffect)
                    549:       # after this tag, mechanisms are not by side-effect, so they'll
                    550:       # only be used when explicitly requested
                    551:       if test "x$enable_dependency_tracking" = xyes; then
                    552:        continue
                    553:       else
                    554:        break
                    555:       fi
                    556:       ;;
                    557:     none) break ;;
                    558:     esac
                    559:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                    560:     # mode.  It turns out that the SunPro C++ compiler does not properly
                    561:     # handle `-M -o', and we need to detect this.
                    562:     if depmode=$depmode \
                    563:        source=conftest.c object=conftest.o \
                    564:        depfile=conftest.Po tmpdepfile=conftest.TPo \
                    565:        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
                    566:        grep conftest.h conftest.Po > /dev/null 2>&1 &&
                    567:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                    568:       am_cv_$1_dependencies_compiler_type=$depmode
                    569:       break
                    570:     fi
                    571:   done
                    572: 
                    573:   cd ..
                    574:   rm -rf conftest.dir
                    575: else
                    576:   am_cv_$1_dependencies_compiler_type=none
                    577: fi
                    578: ])
                    579: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
                    580: AM_CONDITIONAL([am__fastdep$1], [
                    581:   test "x$enable_dependency_tracking" != xno \
                    582:   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
                    583: ])
                    584: 
                    585: 
                    586: # AM_SET_DEPDIR
                    587: # -------------
                    588: # Choose a directory name for dependency files.
                    589: # This macro is AC_REQUIREd in _AM_DEPENDENCIES
                    590: AC_DEFUN([AM_SET_DEPDIR],
                    591: [rm -f .deps 2>/dev/null
                    592: mkdir .deps 2>/dev/null
                    593: if test -d .deps; then
                    594:   DEPDIR=.deps
                    595: else
                    596:   # MS-DOS does not allow filenames that begin with a dot.
                    597:   DEPDIR=_deps
                    598: fi
                    599: rmdir .deps 2>/dev/null
                    600: AC_SUBST([DEPDIR])
                    601: ])
                    602: 
                    603: 
                    604: # AM_DEP_TRACK
                    605: # ------------
                    606: AC_DEFUN([AM_DEP_TRACK],
                    607: [AC_ARG_ENABLE(dependency-tracking,
                    608: [  --disable-dependency-tracking Speeds up one-time builds
                    609:   --enable-dependency-tracking  Do not reject slow dependency extractors])
                    610: if test "x$enable_dependency_tracking" != xno; then
                    611:   am_depcomp="$ac_aux_dir/depcomp"
                    612:   AMDEPBACKSLASH='\'
                    613: fi
                    614: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
                    615: AC_SUBST([AMDEPBACKSLASH])
                    616: ])
                    617: 
                    618: # Generate code to set up dependency tracking.   -*- Autoconf -*-
                    619: 
                    620: # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
                    621: 
                    622: # This program is free software; you can redistribute it and/or modify
                    623: # it under the terms of the GNU General Public License as published by
                    624: # the Free Software Foundation; either version 2, or (at your option)
                    625: # any later version.
                    626: 
                    627: # This program is distributed in the hope that it will be useful,
                    628: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    629: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    630: # GNU General Public License for more details.
                    631: 
                    632: # You should have received a copy of the GNU General Public License
                    633: # along with this program; if not, write to the Free Software
                    634: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    635: # 02111-1307, USA.
                    636: 
                    637: #serial 2
                    638: 
                    639: # _AM_OUTPUT_DEPENDENCY_COMMANDS
                    640: # ------------------------------
                    641: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
                    642: [for mf in $CONFIG_FILES; do
                    643:   # Strip MF so we end up with the name of the file.
                    644:   mf=`echo "$mf" | sed -e 's/:.*$//'`
                    645:   # Check whether this is an Automake generated Makefile or not.
                    646:   # We used to match only the files named `Makefile.in', but
                    647:   # some people rename them; so instead we look at the file content.
                    648:   # Grep'ing the first line is not enough: some people post-process
                    649:   # each Makefile.in and add a new line on top of each file to say so.
                    650:   # So let's grep whole file.
                    651:   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
                    652:     dirpart=`AS_DIRNAME("$mf")`
                    653:   else
                    654:     continue
                    655:   fi
                    656:   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
                    657:   # Extract the definition of DEP_FILES from the Makefile without
                    658:   # running `make'.
                    659:   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
                    660:   test -z "$DEPDIR" && continue
                    661:   # When using ansi2knr, U may be empty or an underscore; expand it
                    662:   U=`sed -n -e '/^U = / s///p' < "$mf"`
                    663:   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
                    664:   # We invoke sed twice because it is the simplest approach to
                    665:   # changing $(DEPDIR) to its actual value in the expansion.
                    666:   for file in `sed -n -e '
                    667:     /^DEP_FILES = .*\\\\$/ {
                    668:       s/^DEP_FILES = //
                    669:       :loop
                    670:        s/\\\\$//
                    671:        p
                    672:        n
                    673:        /\\\\$/ b loop
                    674:       p
                    675:     }
                    676:     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
                    677:        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                    678:     # Make sure the directory exists.
                    679:     test -f "$dirpart/$file" && continue
                    680:     fdir=`AS_DIRNAME(["$file"])`
                    681:     AS_MKDIR_P([$dirpart/$fdir])
                    682:     # echo "creating $dirpart/$file"
                    683:     echo '# dummy' > "$dirpart/$file"
                    684:   done
                    685: done
                    686: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
                    687: 
                    688: 
                    689: # AM_OUTPUT_DEPENDENCY_COMMANDS
                    690: # -----------------------------
                    691: # This macro should only be invoked once -- use via AC_REQUIRE.
                    692: #
                    693: # This code is only required when automatic dependency tracking
                    694: # is enabled.  FIXME.  This creates each `.P' file that we will
                    695: # need in order to bootstrap the dependency handling code.
                    696: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
                    697: [AC_CONFIG_COMMANDS([depfiles],
                    698:      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
                    699:      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
                    700: ])
                    701: 
                    702: # Check to see how 'make' treats includes.     -*- Autoconf -*-
                    703: 
                    704: # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
                    705: 
                    706: # This program is free software; you can redistribute it and/or modify
                    707: # it under the terms of the GNU General Public License as published by
                    708: # the Free Software Foundation; either version 2, or (at your option)
                    709: # any later version.
                    710: 
                    711: # This program is distributed in the hope that it will be useful,
                    712: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    713: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    714: # GNU General Public License for more details.
                    715: 
                    716: # You should have received a copy of the GNU General Public License
                    717: # along with this program; if not, write to the Free Software
                    718: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    719: # 02111-1307, USA.
                    720: 
                    721: # serial 2
                    722: 
                    723: # AM_MAKE_INCLUDE()
                    724: # -----------------
                    725: # Check to see how make treats includes.
                    726: AC_DEFUN([AM_MAKE_INCLUDE],
                    727: [am_make=${MAKE-make}
                    728: cat > confinc << 'END'
                    729: doit:
                    730:        @echo done
                    731: END
                    732: # If we don't find an include directive, just comment out the code.
                    733: AC_MSG_CHECKING([for style of include used by $am_make])
                    734: am__include="#"
                    735: am__quote=
                    736: _am_result=none
                    737: # First try GNU make style include.
                    738: echo "include confinc" > confmf
                    739: # We grep out `Entering directory' and `Leaving directory'
                    740: # messages which can occur if `w' ends up in MAKEFLAGS.
                    741: # In particular we don't look at `^make:' because GNU make might
                    742: # be invoked under some other name (usually "gmake"), in which
                    743: # case it prints its new name instead of `make'.
                    744: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
                    745:    am__include=include
                    746:    am__quote=
                    747:    _am_result=GNU
                    748: fi
                    749: # Now try BSD make style include.
                    750: if test "$am__include" = "#"; then
                    751:    echo '.include "confinc"' > confmf
                    752:    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
                    753:       am__include=.include
                    754:       am__quote="\""
                    755:       _am_result=BSD
                    756:    fi
                    757: fi
                    758: AC_SUBST(am__include)
                    759: AC_SUBST(am__quote)
                    760: AC_MSG_RESULT($_am_result)
                    761: rm -f confinc confmf
                    762: ])
                    763: 
                    764: # AM_CONDITIONAL                                              -*- Autoconf -*-
                    765: 
                    766: # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
                    767: 
                    768: # This program is free software; you can redistribute it and/or modify
                    769: # it under the terms of the GNU General Public License as published by
                    770: # the Free Software Foundation; either version 2, or (at your option)
                    771: # any later version.
                    772: 
                    773: # This program is distributed in the hope that it will be useful,
                    774: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    775: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    776: # GNU General Public License for more details.
                    777: 
                    778: # You should have received a copy of the GNU General Public License
                    779: # along with this program; if not, write to the Free Software
                    780: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    781: # 02111-1307, USA.
                    782: 
                    783: # serial 5
                    784: 
                    785: AC_PREREQ(2.52)
1.1       paf       786: 
1.23      paf       787: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
                    788: # -------------------------------------
1.1       paf       789: # Define a conditional.
1.23      paf       790: AC_DEFUN([AM_CONDITIONAL],
                    791: [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
                    792:         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
                    793: AC_SUBST([$1_TRUE])
                    794: AC_SUBST([$1_FALSE])
1.1       paf       795: if $2; then
                    796:   $1_TRUE=
                    797:   $1_FALSE='#'
                    798: else
                    799:   $1_TRUE='#'
                    800:   $1_FALSE=
1.23      paf       801: fi
                    802: AC_CONFIG_COMMANDS_PRE(
                    803: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
                    804:   AC_MSG_ERROR([conditional "$1" was never defined.
                    805: Usually this means the macro was only invoked conditionally.])
                    806: fi])])
                    807: 
                    808: # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
                    809: 
                    810: # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1.1       paf       811: 
1.23      paf       812: # This program is free software; you can redistribute it and/or modify
                    813: # it under the terms of the GNU General Public License as published by
                    814: # the Free Software Foundation; either version 2, or (at your option)
                    815: # any later version.
1.1       paf       816: 
1.23      paf       817: # This program is distributed in the hope that it will be useful,
                    818: # but WITHOUT ANY WARRANTY; without even the implied warranty of
                    819: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                    820: # GNU General Public License for more details.
                    821: 
                    822: # You should have received a copy of the GNU General Public License
                    823: # along with this program; if not, write to the Free Software
                    824: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
                    825: # 02111-1307, USA.
                    826: 
                    827: AC_PREREQ([2.52])
                    828: 
                    829: # serial 6
                    830: 
                    831: # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
                    832: AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1.1       paf       833: 

E-mail: