source: trunk/third/gtk-doc/aclocal.m4 @ 20745

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