"Fossies" - the Fresh Open Source Software Archive

Member "xarchive-0.2.8-6/aclocal.m4" (27 Feb 2006, 34841 Bytes) of package /linux/privat/old/xarchive-0.2.8-6.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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