/[autoconf]/autoconf/aclocal.m4
ViewVC logotype

Diff of /autoconf/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26