Annotation of parser3/aclocal.m4, revision 1.1

1.1     ! paf         1: dnl aclocal.m4 generated automatically by aclocal 1.4
        !             2: 
        !             3: dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
        !             4: dnl This file is free software; the Free Software Foundation
        !             5: dnl gives unlimited permission to copy and/or distribute it,
        !             6: dnl with or without modifications, as long as this notice is preserved.
        !             7: 
        !             8: dnl This program is distributed in the hope that it will be useful,
        !             9: dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
        !            10: dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
        !            11: dnl PARTICULAR PURPOSE.
        !            12: 
        !            13: 
        !            14: # serial 40 AC_PROG_LIBTOOL
        !            15: AC_DEFUN(AC_PROG_LIBTOOL,
        !            16: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
        !            17: 
        !            18: # Save cache, so that ltconfig can load it
        !            19: AC_CACHE_SAVE
        !            20: 
        !            21: # Actually configure libtool.  ac_aux_dir is where install-sh is found.
        !            22: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
        !            23: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
        !            24: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
        !            25: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
        !            26: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
        !            27: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
        !            28: || AC_MSG_ERROR([libtool configure failed])
        !            29: 
        !            30: # Reload cache, that may have been modified by ltconfig
        !            31: AC_CACHE_LOAD
        !            32: 
        !            33: # This can be used to rebuild libtool when needed
        !            34: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
        !            35: 
        !            36: # Always use our own libtool.
        !            37: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
        !            38: AC_SUBST(LIBTOOL)dnl
        !            39: 
        !            40: # Redirect the config.log output again, so that the ltconfig log is not
        !            41: # clobbered by the next message.
        !            42: exec 5>>./config.log
        !            43: ])
        !            44: 
        !            45: AC_DEFUN(AC_LIBTOOL_SETUP,
        !            46: [AC_PREREQ(2.13)dnl
        !            47: AC_REQUIRE([AC_ENABLE_SHARED])dnl
        !            48: AC_REQUIRE([AC_ENABLE_STATIC])dnl
        !            49: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
        !            50: AC_REQUIRE([AC_CANONICAL_HOST])dnl
        !            51: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
        !            52: AC_REQUIRE([AC_PROG_RANLIB])dnl
        !            53: AC_REQUIRE([AC_PROG_CC])dnl
        !            54: AC_REQUIRE([AC_PROG_LD])dnl
        !            55: AC_REQUIRE([AC_PROG_NM])dnl
        !            56: AC_REQUIRE([AC_PROG_LN_S])dnl
        !            57: dnl
        !            58: 
        !            59: case "$target" in
        !            60: NONE) lt_target="$host" ;;
        !            61: *) lt_target="$target" ;;
        !            62: esac
        !            63: 
        !            64: # Check for any special flags to pass to ltconfig.
        !            65: libtool_flags="--cache-file=$cache_file"
        !            66: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
        !            67: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
        !            68: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
        !            69: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
        !            70: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
        !            71: ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
        !            72: [libtool_flags="$libtool_flags --enable-dlopen"])
        !            73: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
        !            74: [libtool_flags="$libtool_flags --enable-win32-dll"])
        !            75: AC_ARG_ENABLE(libtool-lock,
        !            76:   [  --disable-libtool-lock  avoid locking (might break parallel builds)])
        !            77: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
        !            78: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
        !            79: 
        !            80: # Some flags need to be propagated to the compiler or linker for good
        !            81: # libtool support.
        !            82: case "$lt_target" in
        !            83: *-*-irix6*)
        !            84:   # Find out which ABI we are using.
        !            85:   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
        !            86:   if AC_TRY_EVAL(ac_compile); then
        !            87:     case "`/usr/bin/file conftest.o`" in
        !            88:     *32-bit*)
        !            89:       LD="${LD-ld} -32"
        !            90:       ;;
        !            91:     *N32*)
        !            92:       LD="${LD-ld} -n32"
        !            93:       ;;
        !            94:     *64-bit*)
        !            95:       LD="${LD-ld} -64"
        !            96:       ;;
        !            97:     esac
        !            98:   fi
        !            99:   rm -rf conftest*
        !           100:   ;;
        !           101: 
        !           102: *-*-sco3.2v5*)
        !           103:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
        !           104:   SAVE_CFLAGS="$CFLAGS"
        !           105:   CFLAGS="$CFLAGS -belf"
        !           106:   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
        !           107:     [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
        !           108:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
        !           109:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
        !           110:     CFLAGS="$SAVE_CFLAGS"
        !           111:   fi
        !           112:   ;;
        !           113: 
        !           114: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
        !           115: [*-*-cygwin* | *-*-mingw*)
        !           116:   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
        !           117:   AC_CHECK_TOOL(AS, as, false)
        !           118:   AC_CHECK_TOOL(OBJDUMP, objdump, false)
        !           119:   ;;
        !           120: ])
        !           121: esac
        !           122: ])
        !           123: 
        !           124: # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
        !           125: AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
        !           126: 
        !           127: # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
        !           128: AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
        !           129: 
        !           130: # AC_ENABLE_SHARED - implement the --enable-shared flag
        !           131: # Usage: AC_ENABLE_SHARED[(DEFAULT)]
        !           132: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
        !           133: #   `yes'.
        !           134: AC_DEFUN(AC_ENABLE_SHARED, [dnl
        !           135: define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
        !           136: AC_ARG_ENABLE(shared,
        !           137: changequote(<<, >>)dnl
        !           138: <<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
        !           139: changequote([, ])dnl
        !           140: [p=${PACKAGE-default}
        !           141: case "$enableval" in
        !           142: yes) enable_shared=yes ;;
        !           143: no) enable_shared=no ;;
        !           144: *)
        !           145:   enable_shared=no
        !           146:   # Look at the argument we got.  We use all the common list separators.
        !           147:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
        !           148:   for pkg in $enableval; do
        !           149:     if test "X$pkg" = "X$p"; then
        !           150:       enable_shared=yes
        !           151:     fi
        !           152:   done
        !           153:   IFS="$ac_save_ifs"
        !           154:   ;;
        !           155: esac],
        !           156: enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
        !           157: ])
        !           158: 
        !           159: # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
        !           160: AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           161: AC_ENABLE_SHARED(no)])
        !           162: 
        !           163: # AC_ENABLE_STATIC - implement the --enable-static flag
        !           164: # Usage: AC_ENABLE_STATIC[(DEFAULT)]
        !           165: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
        !           166: #   `yes'.
        !           167: AC_DEFUN(AC_ENABLE_STATIC, [dnl
        !           168: define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
        !           169: AC_ARG_ENABLE(static,
        !           170: changequote(<<, >>)dnl
        !           171: <<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
        !           172: changequote([, ])dnl
        !           173: [p=${PACKAGE-default}
        !           174: case "$enableval" in
        !           175: yes) enable_static=yes ;;
        !           176: no) enable_static=no ;;
        !           177: *)
        !           178:   enable_static=no
        !           179:   # Look at the argument we got.  We use all the common list separators.
        !           180:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
        !           181:   for pkg in $enableval; do
        !           182:     if test "X$pkg" = "X$p"; then
        !           183:       enable_static=yes
        !           184:     fi
        !           185:   done
        !           186:   IFS="$ac_save_ifs"
        !           187:   ;;
        !           188: esac],
        !           189: enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
        !           190: ])
        !           191: 
        !           192: # AC_DISABLE_STATIC - set the default static flag to --disable-static
        !           193: AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           194: AC_ENABLE_STATIC(no)])
        !           195: 
        !           196: 
        !           197: # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
        !           198: # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
        !           199: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
        !           200: #   `yes'.
        !           201: AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
        !           202: define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
        !           203: AC_ARG_ENABLE(fast-install,
        !           204: changequote(<<, >>)dnl
        !           205: <<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
        !           206: changequote([, ])dnl
        !           207: [p=${PACKAGE-default}
        !           208: case "$enableval" in
        !           209: yes) enable_fast_install=yes ;;
        !           210: no) enable_fast_install=no ;;
        !           211: *)
        !           212:   enable_fast_install=no
        !           213:   # Look at the argument we got.  We use all the common list separators.
        !           214:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
        !           215:   for pkg in $enableval; do
        !           216:     if test "X$pkg" = "X$p"; then
        !           217:       enable_fast_install=yes
        !           218:     fi
        !           219:   done
        !           220:   IFS="$ac_save_ifs"
        !           221:   ;;
        !           222: esac],
        !           223: enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
        !           224: ])
        !           225: 
        !           226: # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
        !           227: AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           228: AC_ENABLE_FAST_INSTALL(no)])
        !           229: 
        !           230: # AC_PROG_LD - find the path to the GNU or non-GNU linker
        !           231: AC_DEFUN(AC_PROG_LD,
        !           232: [AC_ARG_WITH(gnu-ld,
        !           233: [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
        !           234: test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
        !           235: AC_REQUIRE([AC_PROG_CC])dnl
        !           236: AC_REQUIRE([AC_CANONICAL_HOST])dnl
        !           237: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
        !           238: ac_prog=ld
        !           239: if test "$ac_cv_prog_gcc" = yes; then
        !           240:   # Check if gcc -print-prog-name=ld gives a path.
        !           241:   AC_MSG_CHECKING([for ld used by GCC])
        !           242:   ac_prog=`($CC -print-prog-name=ld) 2>&5`
        !           243:   case "$ac_prog" in
        !           244:     # Accept absolute paths.
        !           245: changequote(,)dnl
        !           246:     [\\/]* | [A-Za-z]:[\\/]*)
        !           247:       re_direlt='/[^/][^/]*/\.\./'
        !           248: changequote([,])dnl
        !           249:       # Canonicalize the path of ld
        !           250:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
        !           251:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
        !           252:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
        !           253:       done
        !           254:       test -z "$LD" && LD="$ac_prog"
        !           255:       ;;
        !           256:   "")
        !           257:     # If it fails, then pretend we aren't using GCC.
        !           258:     ac_prog=ld
        !           259:     ;;
        !           260:   *)
        !           261:     # If it is relative, then search for the first ld in PATH.
        !           262:     with_gnu_ld=unknown
        !           263:     ;;
        !           264:   esac
        !           265: elif test "$with_gnu_ld" = yes; then
        !           266:   AC_MSG_CHECKING([for GNU ld])
        !           267: else
        !           268:   AC_MSG_CHECKING([for non-GNU ld])
        !           269: fi
        !           270: AC_CACHE_VAL(ac_cv_path_LD,
        !           271: [if test -z "$LD"; then
        !           272:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
        !           273:   for ac_dir in $PATH; do
        !           274:     test -z "$ac_dir" && ac_dir=.
        !           275:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
        !           276:       ac_cv_path_LD="$ac_dir/$ac_prog"
        !           277:       # Check to see if the program is GNU ld.  I'd rather use --version,
        !           278:       # but apparently some GNU ld's only accept -v.
        !           279:       # Break only if it was the GNU/non-GNU ld that we prefer.
        !           280:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
        !           281:        test "$with_gnu_ld" != no && break
        !           282:       else
        !           283:        test "$with_gnu_ld" != yes && break
        !           284:       fi
        !           285:     fi
        !           286:   done
        !           287:   IFS="$ac_save_ifs"
        !           288: else
        !           289:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
        !           290: fi])
        !           291: LD="$ac_cv_path_LD"
        !           292: if test -n "$LD"; then
        !           293:   AC_MSG_RESULT($LD)
        !           294: else
        !           295:   AC_MSG_RESULT(no)
        !           296: fi
        !           297: test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
        !           298: AC_PROG_LD_GNU
        !           299: ])
        !           300: 
        !           301: AC_DEFUN(AC_PROG_LD_GNU,
        !           302: [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
        !           303: [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
        !           304: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
        !           305:   ac_cv_prog_gnu_ld=yes
        !           306: else
        !           307:   ac_cv_prog_gnu_ld=no
        !           308: fi])
        !           309: ])
        !           310: 
        !           311: # AC_PROG_NM - find the path to a BSD-compatible name lister
        !           312: AC_DEFUN(AC_PROG_NM,
        !           313: [AC_MSG_CHECKING([for BSD-compatible nm])
        !           314: AC_CACHE_VAL(ac_cv_path_NM,
        !           315: [if test -n "$NM"; then
        !           316:   # Let the user override the test.
        !           317:   ac_cv_path_NM="$NM"
        !           318: else
        !           319:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
        !           320:   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
        !           321:     test -z "$ac_dir" && ac_dir=.
        !           322:     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
        !           323:       # Check to see if the nm accepts a BSD-compat flag.
        !           324:       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
        !           325:       #   nm: unknown option "B" ignored
        !           326:       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        !           327:        ac_cv_path_NM="$ac_dir/nm -B"
        !           328:        break
        !           329:       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        !           330:        ac_cv_path_NM="$ac_dir/nm -p"
        !           331:        break
        !           332:       else
        !           333:        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
        !           334:        continue # so that we can try to find one that supports BSD flags
        !           335:       fi
        !           336:     fi
        !           337:   done
        !           338:   IFS="$ac_save_ifs"
        !           339:   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
        !           340: fi])
        !           341: NM="$ac_cv_path_NM"
        !           342: AC_MSG_RESULT([$NM])
        !           343: ])
        !           344: 
        !           345: # AC_CHECK_LIBM - check for math library
        !           346: AC_DEFUN(AC_CHECK_LIBM,
        !           347: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
        !           348: LIBM=
        !           349: case "$lt_target" in
        !           350: *-*-beos* | *-*-cygwin*)
        !           351:   # These system don't have libm
        !           352:   ;;
        !           353: *-ncr-sysv4.3*)
        !           354:   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
        !           355:   AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
        !           356:   ;;
        !           357: *)
        !           358:   AC_CHECK_LIB(m, main, LIBM="-lm")
        !           359:   ;;
        !           360: esac
        !           361: ])
        !           362: 
        !           363: # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
        !           364: # the libltdl convenience library and INCLTDL to the include flags for
        !           365: # the libltdl header and adds --enable-ltdl-convenience to the
        !           366: # configure arguments.  Note that LIBLTDL and INCLTDL are not
        !           367: # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
        !           368: # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
        !           369: # with '${top_builddir}/' and INCLTDL will be prefixed with
        !           370: # '${top_srcdir}/' (note the single quotes!).  If your package is not
        !           371: # flat and you're not using automake, define top_builddir and
        !           372: # top_srcdir appropriately in the Makefiles.
        !           373: AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           374:   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
        !           375:   INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
        !           376: ])
        !           377: 
        !           378: # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
        !           379: # the libltdl installable library and INCLTDL to the include flags for
        !           380: # the libltdl header and adds --enable-ltdl-install to the configure
        !           381: # arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
        !           382: # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
        !           383: # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
        !           384: # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
        !           385: # with '${top_srcdir}/' (note the single quotes!).  If your package is
        !           386: # not flat and you're not using automake, define top_builddir and
        !           387: # top_srcdir appropriately in the Makefiles.
        !           388: # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
        !           389: AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           390:   AC_CHECK_LIB(ltdl, main,
        !           391:   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
        !           392:   [if test x"$enable_ltdl_install" = xno; then
        !           393:      AC_MSG_WARN([libltdl not installed, but installation disabled])
        !           394:    else
        !           395:      enable_ltdl_install=yes
        !           396:    fi
        !           397:   ])
        !           398:   if test x"$enable_ltdl_install" = x"yes"; then
        !           399:     ac_configure_args="$ac_configure_args --enable-ltdl-install"
        !           400:     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
        !           401:     INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
        !           402:   else
        !           403:     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
        !           404:     LIBLTDL="-lltdl"
        !           405:     INCLTDL=
        !           406:   fi
        !           407: ])
        !           408: 
        !           409: dnl old names
        !           410: AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
        !           411: AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
        !           412: AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
        !           413: AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
        !           414: AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
        !           415: AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
        !           416: AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
        !           417: 
        !           418: dnl This is just to silence aclocal about the macro not being used
        !           419: ifelse([AC_DISABLE_FAST_INSTALL])dnl
        !           420: 
        !           421: # Do all the work for Automake.  This macro actually does too much --
        !           422: # some checks are only needed if your package does certain things.
        !           423: # But this isn't really a big deal.
        !           424: 
        !           425: # serial 1
        !           426: 
        !           427: dnl Usage:
        !           428: dnl AM_INIT_AUTOMAKE(package,version, [no-define])
        !           429: 
        !           430: AC_DEFUN(AM_INIT_AUTOMAKE,
        !           431: [AC_REQUIRE([AC_PROG_INSTALL])
        !           432: PACKAGE=[$1]
        !           433: AC_SUBST(PACKAGE)
        !           434: VERSION=[$2]
        !           435: AC_SUBST(VERSION)
        !           436: dnl test to see if srcdir already configured
        !           437: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
        !           438:   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
        !           439: fi
        !           440: ifelse([$3],,
        !           441: AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
        !           442: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
        !           443: AC_REQUIRE([AM_SANITY_CHECK])
        !           444: AC_REQUIRE([AC_ARG_PROGRAM])
        !           445: dnl FIXME This is truly gross.
        !           446: missing_dir=`cd $ac_aux_dir && pwd`
        !           447: AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
        !           448: AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
        !           449: AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
        !           450: AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
        !           451: AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
        !           452: AC_REQUIRE([AC_PROG_MAKE_SET])])
        !           453: 
        !           454: #
        !           455: # Check to make sure that the build environment is sane.
        !           456: #
        !           457: 
        !           458: AC_DEFUN(AM_SANITY_CHECK,
        !           459: [AC_MSG_CHECKING([whether build environment is sane])
        !           460: # Just in case
        !           461: sleep 1
        !           462: echo timestamp > conftestfile
        !           463: # Do `set' in a subshell so we don't clobber the current shell's
        !           464: # arguments.  Must try -L first in case configure is actually a
        !           465: # symlink; some systems play weird games with the mod time of symlinks
        !           466: # (eg FreeBSD returns the mod time of the symlink's containing
        !           467: # directory).
        !           468: if (
        !           469:    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
        !           470:    if test "[$]*" = "X"; then
        !           471:       # -L didn't work.
        !           472:       set X `ls -t $srcdir/configure conftestfile`
        !           473:    fi
        !           474:    if test "[$]*" != "X $srcdir/configure conftestfile" \
        !           475:       && test "[$]*" != "X conftestfile $srcdir/configure"; then
        !           476: 
        !           477:       # If neither matched, then we have a broken ls.  This can happen
        !           478:       # if, for instance, CONFIG_SHELL is bash and it inherits a
        !           479:       # broken ls alias from the environment.  This has actually
        !           480:       # happened.  Such a system could not be considered "sane".
        !           481:       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
        !           482: alias in your environment])
        !           483:    fi
        !           484: 
        !           485:    test "[$]2" = conftestfile
        !           486:    )
        !           487: then
        !           488:    # Ok.
        !           489:    :
        !           490: else
        !           491:    AC_MSG_ERROR([newly created file is older than distributed files!
        !           492: Check your system clock])
        !           493: fi
        !           494: rm -f conftest*
        !           495: AC_MSG_RESULT(yes)])
        !           496: 
        !           497: dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
        !           498: dnl The program must properly implement --version.
        !           499: AC_DEFUN(AM_MISSING_PROG,
        !           500: [AC_MSG_CHECKING(for working $2)
        !           501: # Run test in a subshell; some versions of sh will print an error if
        !           502: # an executable is not found, even if stderr is redirected.
        !           503: # Redirect stdin to placate older versions of autoconf.  Sigh.
        !           504: if ($2 --version) < /dev/null > /dev/null 2>&1; then
        !           505:    $1=$2
        !           506:    AC_MSG_RESULT(found)
        !           507: else
        !           508:    $1="$3/missing $2"
        !           509:    AC_MSG_RESULT(missing)
        !           510: fi
        !           511: AC_SUBST($1)])
        !           512: 
        !           513: # Define a conditional.
        !           514: 
        !           515: AC_DEFUN(AM_CONDITIONAL,
        !           516: [AC_SUBST($1_TRUE)
        !           517: AC_SUBST($1_FALSE)
        !           518: if $2; then
        !           519:   $1_TRUE=
        !           520:   $1_FALSE='#'
        !           521: else
        !           522:   $1_TRUE='#'
        !           523:   $1_FALSE=
        !           524: fi])
        !           525: 
        !           526: # Like AC_CONFIG_HEADER, but automatically create stamp file.
        !           527: 
        !           528: AC_DEFUN(AM_CONFIG_HEADER,
        !           529: [AC_PREREQ([2.12])
        !           530: AC_CONFIG_HEADER([$1])
        !           531: dnl When config.status generates a header, we must update the stamp-h file.
        !           532: dnl This file resides in the same directory as the config header
        !           533: dnl that is generated.  We must strip everything past the first ":",
        !           534: dnl and everything past the last "/".
        !           535: AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
        !           536: ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
        !           537: <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
        !           538: <<am_indx=1
        !           539: for am_file in <<$1>>; do
        !           540:   case " <<$>>CONFIG_HEADERS " in
        !           541:   *" <<$>>am_file "*<<)>>
        !           542:     echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
        !           543:     ;;
        !           544:   esac
        !           545:   am_indx=`expr "<<$>>am_indx" + 1`
        !           546: done<<>>dnl>>)
        !           547: changequote([,]))])
        !           548: 

E-mail: