186
185
rm -f conf.sdltest
189
# AM_CONDITIONAL -*- Autoconf -*-
191
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
193
# This program is free software; you can redistribute it and/or modify
194
# it under the terms of the GNU General Public License as published by
195
# the Free Software Foundation; either version 2, or (at your option)
198
# This program is distributed in the hope that it will be useful,
199
# but WITHOUT ANY WARRANTY; without even the implied warranty of
200
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
201
# GNU General Public License for more details.
203
# You should have received a copy of the GNU General Public License
204
# along with this program; if not, write to the Free Software
205
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
212
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
213
# -------------------------------------
214
# Define a conditional.
215
AC_DEFUN([AM_CONDITIONAL],
216
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
217
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
227
AC_CONFIG_COMMANDS_PRE(
228
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
229
AC_MSG_ERROR([conditional \"$1\" was never defined.
230
Usually this means the macro was only invoked conditionally.])
233
# Do all the work for Automake. -*- Autoconf -*-
235
# This macro actually does too much some checks are only needed if
236
# your package does certain things. But this isn't really a big deal.
238
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
239
# Free Software Foundation, Inc.
241
# This program is free software; you can redistribute it and/or modify
242
# it under the terms of the GNU General Public License as published by
243
# the Free Software Foundation; either version 2, or (at your option)
246
# This program is distributed in the hope that it will be useful,
247
# but WITHOUT ANY WARRANTY; without even the implied warranty of
248
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
249
# GNU General Public License for more details.
251
# You should have received a copy of the GNU General Public License
252
# along with this program; if not, write to the Free Software
253
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
258
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
259
# written in clear, in which case automake, when reading aclocal.m4,
260
# will think it sees a *use*, and therefore will trigger all it's
261
# C support machinery. Also note that it means that autoscan, seeing
262
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
267
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
268
# the ones we care about.
269
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
271
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
272
# AM_INIT_AUTOMAKE([OPTIONS])
273
# -----------------------------------------------
274
# The call with PACKAGE and VERSION arguments is the old style
275
# call (pre autoconf-2.50), which is being phased out. PACKAGE
276
# and VERSION should now be passed to AC_INIT and removed from
277
# the call to AM_INIT_AUTOMAKE.
278
# We support both call styles for the transition. After
279
# the next Automake release, Autoconf can make the AC_INIT
280
# arguments mandatory, and then we can depend on a new Autoconf
281
# release and drop the old call support.
188
# Do all the work for Automake. This macro actually does too much --
189
# some checks are only needed if your package does certain things.
190
# But this isn't really a big deal.
195
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
282
197
AC_DEFUN([AM_INIT_AUTOMAKE],
283
198
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
284
AC_REQUIRE([AC_PROG_INSTALL])dnl
285
# test to see if srcdir already configured
286
if test "`cd $srcdir && pwd`" != "`pwd`" &&
287
test -f $srcdir/config.status; then
199
AC_REQUIRE([AC_PROG_INSTALL])
204
dnl test to see if srcdir already configured
205
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
288
206
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
291
# Define the identity of the package.
292
dnl Distinguish between old-style and new-style calls.
294
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
295
AC_SUBST([PACKAGE], [$1])dnl
296
AC_SUBST([VERSION], [$2])],
297
[_AM_SET_OPTIONS([$1])dnl
298
AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
299
AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
301
_AM_IF_OPTION([no-define],,
302
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
303
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
305
# Some tools Automake needs.
306
AC_REQUIRE([AM_SANITY_CHECK])dnl
307
AC_REQUIRE([AC_ARG_PROGRAM])dnl
308
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
309
AM_MISSING_PROG(AUTOCONF, autoconf)
310
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
311
AM_MISSING_PROG(AUTOHEADER, autoheader)
312
AM_MISSING_PROG(MAKEINFO, makeinfo)
313
AM_MISSING_PROG(AMTAR, tar)
315
AM_PROG_INSTALL_STRIP
316
# We need awk for the "check" target. The system "awk" is bad on
318
AC_REQUIRE([AC_PROG_AWK])dnl
319
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
321
_AM_IF_OPTION([no-dependencies],,
322
[AC_PROVIDE_IFELSE([AC_PROG_][CC],
323
[_AM_DEPENDENCIES(CC)],
324
[define([AC_PROG_][CC],
325
defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
326
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
327
[_AM_DEPENDENCIES(CXX)],
328
[define([AC_PROG_][CXX],
329
defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
209
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
210
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
211
AC_REQUIRE([AM_SANITY_CHECK])
212
AC_REQUIRE([AC_ARG_PROGRAM])
213
dnl FIXME This is truly gross.
214
missing_dir=`cd $ac_aux_dir && pwd`
215
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
216
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
217
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
218
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
219
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
220
AC_REQUIRE([AC_PROG_MAKE_SET])])
333
222
# Copyright 2002 Free Software Foundation, Inc.
350
239
# ----------------------------
351
240
# Automake X.Y traces this macro to ensure aclocal.m4 has been
352
241
# generated from the m4 files accompanying Automake X.Y.
353
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
242
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
355
244
# AM_SET_CURRENT_AUTOMAKE_VERSION
356
245
# -------------------------------
357
246
# Call AM_AUTOMAKE_VERSION so it can be traced.
358
247
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
359
248
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
360
[AM_AUTOMAKE_VERSION([1.6.3])])
362
# Helper functions for option handling. -*- Autoconf -*-
364
# Copyright 2001, 2002 Free Software Foundation, Inc.
366
# This program is free software; you can redistribute it and/or modify
367
# it under the terms of the GNU General Public License as published by
368
# the Free Software Foundation; either version 2, or (at your option)
371
# This program is distributed in the hope that it will be useful,
372
# but WITHOUT ANY WARRANTY; without even the implied warranty of
373
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
374
# GNU General Public License for more details.
376
# You should have received a copy of the GNU General Public License
377
# along with this program; if not, write to the Free Software
378
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
383
# _AM_MANGLE_OPTION(NAME)
384
# -----------------------
385
AC_DEFUN([_AM_MANGLE_OPTION],
386
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
388
# _AM_SET_OPTION(NAME)
389
# ------------------------------
390
# Set option NAME. Presently that only means defining a flag for this option.
391
AC_DEFUN([_AM_SET_OPTION],
392
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
394
# _AM_SET_OPTIONS(OPTIONS)
395
# ----------------------------------
396
# OPTIONS is a space-separated list of Automake options.
397
AC_DEFUN([_AM_SET_OPTIONS],
398
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
400
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
401
# -------------------------------------------
402
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
403
AC_DEFUN([_AM_IF_OPTION],
404
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
249
[AM_AUTOMAKE_VERSION([1.4-p6])])
407
252
# Check to make sure that the build environment is sane.
410
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
412
# This program is free software; you can redistribute it and/or modify
413
# it under the terms of the GNU General Public License as published by
414
# the Free Software Foundation; either version 2, or (at your option)
417
# This program is distributed in the hope that it will be useful,
418
# but WITHOUT ANY WARRANTY; without even the implied warranty of
419
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
420
# GNU General Public License for more details.
422
# You should have received a copy of the GNU General Public License
423
# along with this program; if not, write to the Free Software
424
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
431
255
AC_DEFUN([AM_SANITY_CHECK],
432
256
[AC_MSG_CHECKING([whether build environment is sane])
435
echo timestamp > conftest.file
259
echo timestamp > conftestfile
436
260
# Do `set' in a subshell so we don't clobber the current shell's
437
261
# arguments. Must try -L first in case configure is actually a
438
262
# symlink; some systems play weird games with the mod time of symlinks
439
263
# (eg FreeBSD returns the mod time of the symlink's containing
442
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
443
if test "$[*]" = "X"; then
266
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
267
if test "[$]*" = "X"; then
444
268
# -L didn't work.
445
set X `ls -t $srcdir/configure conftest.file`
269
set X `ls -t $srcdir/configure conftestfile`
448
if test "$[*]" != "X $srcdir/configure conftest.file" \
449
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
271
if test "[$]*" != "X $srcdir/configure conftestfile" \
272
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
451
274
# If neither matched, then we have a broken ls. This can happen
452
275
# if, for instance, CONFIG_SHELL is bash and it inherits a
465
288
AC_MSG_ERROR([newly created file is older than distributed files!
466
289
Check your system clock])
468
292
AC_MSG_RESULT(yes)])
473
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
475
# This program is free software; you can redistribute it and/or modify
476
# it under the terms of the GNU General Public License as published by
477
# the Free Software Foundation; either version 2, or (at your option)
480
# This program is distributed in the hope that it will be useful,
481
# but WITHOUT ANY WARRANTY; without even the implied warranty of
482
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
483
# GNU General Public License for more details.
485
# You should have received a copy of the GNU General Public License
486
# along with this program; if not, write to the Free Software
487
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
492
# AM_MISSING_PROG(NAME, PROGRAM)
493
# ------------------------------
294
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
295
dnl The program must properly implement --version.
494
296
AC_DEFUN([AM_MISSING_PROG],
495
[AC_REQUIRE([AM_MISSING_HAS_RUN])
496
$1=${$1-"${am_missing_run}$2"}
297
[AC_MSG_CHECKING(for working $2)
298
# Run test in a subshell; some versions of sh will print an error if
299
# an executable is not found, even if stderr is redirected.
300
# Redirect stdin to placate older versions of autoconf. Sigh.
301
if ($2 --version) < /dev/null > /dev/null 2>&1; then
306
AC_MSG_RESULT(missing)
502
# Define MISSING if not defined so far and test if it supports --run.
503
# If it does, set am_missing_run to use it, otherwise, to nothing.
504
AC_DEFUN([AM_MISSING_HAS_RUN],
505
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
506
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
507
# Use eval to expand $SHELL
508
if eval "$MISSING --run true"; then
509
am_missing_run="$MISSING --run "
512
AC_MSG_WARN([`missing' script is too old or missing])
518
# Copyright 2001 Free Software Foundation, Inc.
520
# This program is free software; you can redistribute it and/or modify
521
# it under the terms of the GNU General Public License as published by
522
# the Free Software Foundation; either version 2, or (at your option)
525
# This program is distributed in the hope that it will be useful,
526
# but WITHOUT ANY WARRANTY; without even the implied warranty of
527
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
528
# GNU General Public License for more details.
530
# You should have received a copy of the GNU General Public License
531
# along with this program; if not, write to the Free Software
532
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
535
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
536
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
537
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
539
# Of course, Automake must honor this variable whenever it calls a
540
# tool from the auxiliary directory. The problem is that $srcdir (and
541
# therefore $ac_aux_dir as well) can be either absolute or relative,
542
# depending on how configure is run. This is pretty annoying, since
543
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
544
# source directory, any form will work fine, but in subdirectories a
545
# relative path needs to be adjusted first.
547
# $ac_aux_dir/missing
548
# fails when called from a subdirectory if $ac_aux_dir is relative
549
# $top_srcdir/$ac_aux_dir/missing
550
# fails if $ac_aux_dir is absolute,
551
# fails when called from a subdirectory in a VPATH build with
552
# a relative $ac_aux_dir
554
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
555
# are both prefixed by $srcdir. In an in-source build this is usually
556
# harmless because $srcdir is `.', but things will broke when you
557
# start a VPATH build or use an absolute $srcdir.
559
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
560
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
561
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
562
# and then we would define $MISSING as
563
# MISSING="\${SHELL} $am_aux_dir/missing"
564
# This will work as long as MISSING is not called from configure, because
565
# unfortunately $(top_srcdir) has no meaning in configure.
566
# However there are other variables, like CC, which are often used in
567
# configure, and could therefore not use this "fixed" $ac_aux_dir.
569
# Another solution, used here, is to always expand $ac_aux_dir to an
570
# absolute PATH. The drawback is that using absolute paths prevent a
571
# configured tree to be moved without reconfiguration.
573
# Rely on autoconf to set up CDPATH properly.
576
AC_DEFUN([AM_AUX_DIR_EXPAND], [
577
# expand $ac_aux_dir to an absolute path
578
am_aux_dir=`cd $ac_aux_dir && pwd`
583
# Define $install_sh.
585
# Copyright 2001 Free Software Foundation, Inc.
587
# This program is free software; you can redistribute it and/or modify
588
# it under the terms of the GNU General Public License as published by
589
# the Free Software Foundation; either version 2, or (at your option)
592
# This program is distributed in the hope that it will be useful,
593
# but WITHOUT ANY WARRANTY; without even the implied warranty of
594
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
595
# GNU General Public License for more details.
597
# You should have received a copy of the GNU General Public License
598
# along with this program; if not, write to the Free Software
599
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
602
AC_DEFUN([AM_PROG_INSTALL_SH],
603
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
604
install_sh=${install_sh-"$am_aux_dir/install-sh"}
605
AC_SUBST(install_sh)])
607
# AM_PROG_INSTALL_STRIP
609
# Copyright 2001 Free Software Foundation, Inc.
611
# This program is free software; you can redistribute it and/or modify
612
# it under the terms of the GNU General Public License as published by
613
# the Free Software Foundation; either version 2, or (at your option)
616
# This program is distributed in the hope that it will be useful,
617
# but WITHOUT ANY WARRANTY; without even the implied warranty of
618
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
619
# GNU General Public License for more details.
621
# You should have received a copy of the GNU General Public License
622
# along with this program; if not, write to the Free Software
623
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
626
# One issue with vendor `install' (even GNU) is that you can't
627
# specify the program used to strip binaries. This is especially
628
# annoying in cross-compiling environments, where the build's strip
629
# is unlikely to handle the host's binaries.
630
# Fortunately install-sh will honor a STRIPPROG variable, so we
631
# always use install-sh in `make install-strip', and initialize
632
# STRIPPROG with the value of the STRIP variable (set by the user).
633
AC_DEFUN([AM_PROG_INSTALL_STRIP],
634
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
635
# Installed binaries are usually stripped using `strip' when the user
636
# run `make install-strip'. However `strip' might not be the right
637
# tool to use in cross-compilation environments, therefore Automake
638
# will honor the `STRIP' environment variable to overrule this program.
639
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
640
if test "$cross_compiling" != no; then
641
AC_CHECK_TOOL([STRIP], [strip], :)
643
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
644
AC_SUBST([INSTALL_STRIP_PROGRAM])])
646
# serial 4 -*- Autoconf -*-
648
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
650
# This program is free software; you can redistribute it and/or modify
651
# it under the terms of the GNU General Public License as published by
652
# the Free Software Foundation; either version 2, or (at your option)
655
# This program is distributed in the hope that it will be useful,
656
# but WITHOUT ANY WARRANTY; without even the implied warranty of
657
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
658
# GNU General Public License for more details.
660
# You should have received a copy of the GNU General Public License
661
# along with this program; if not, write to the Free Software
662
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
666
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
667
# written in clear, in which case automake, when reading aclocal.m4,
668
# will think it sees a *use*, and therefore will trigger all it's
669
# C support machinery. Also note that it means that autoscan, seeing
670
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
674
# _AM_DEPENDENCIES(NAME)
675
# ----------------------
676
# See how the compiler implements dependency checking.
677
# NAME is "CC", "CXX", "GCJ", or "OBJC".
678
# We try a few techniques and use that to set a single cache variable.
680
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
681
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
682
# dependency, and given that the user is not expected to run this macro,
683
# just rely on AC_PROG_CC.
684
AC_DEFUN([_AM_DEPENDENCIES],
685
[AC_REQUIRE([AM_SET_DEPDIR])dnl
686
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
687
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
688
AC_REQUIRE([AM_DEP_TRACK])dnl
690
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
691
[$1], CXX, [depcc="$CXX" am_compiler_list=],
692
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
693
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
694
[depcc="$$1" am_compiler_list=])
696
AC_CACHE_CHECK([dependency style of $depcc],
697
[am_cv_$1_dependencies_compiler_type],
698
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
699
# We make a subdir and do the tests there. Otherwise we can end up
700
# making bogus files that we don't know about and never remove. For
701
# instance it was reported that on HP-UX the gcc test will end up
702
# making a dummy file named `D' -- because `-MD' means `put the output
705
# Copy depcomp to subdir because otherwise we won't find it if we're
706
# using a relative directory.
707
cp "$am_depcomp" conftest.dir
710
am_cv_$1_dependencies_compiler_type=none
711
if test "$am_compiler_list" = ""; then
712
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
714
for depmode in $am_compiler_list; do
715
# We need to recreate these files for each test, as the compiler may
716
# overwrite some of them when testing with obscure command lines.
717
# This happens at least with the AIX C compiler.
718
echo '#include "conftest.h"' > conftest.c
719
echo 'int i;' > conftest.h
720
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
724
# after this tag, mechanisms are not by side-effect, so they'll
725
# only be used when explicitly requested
726
if test "x$enable_dependency_tracking" = xyes; then
734
# We check with `-c' and `-o' for the sake of the "dashmstdout"
735
# mode. It turns out that the SunPro C++ compiler does not properly
736
# handle `-M -o', and we need to detect this.
737
if depmode=$depmode \
738
source=conftest.c object=conftest.o \
739
depfile=conftest.Po tmpdepfile=conftest.TPo \
740
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
741
grep conftest.h conftest.Po > /dev/null 2>&1 &&
742
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
743
am_cv_$1_dependencies_compiler_type=$depmode
751
am_cv_$1_dependencies_compiler_type=none
754
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
760
# Choose a directory name for dependency files.
761
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
762
AC_DEFUN([AM_SET_DEPDIR],
763
[rm -f .deps 2>/dev/null
764
mkdir .deps 2>/dev/null
765
if test -d .deps; then
768
# MS-DOS does not allow filenames that begin with a dot.
771
rmdir .deps 2>/dev/null
778
AC_DEFUN([AM_DEP_TRACK],
779
[AC_ARG_ENABLE(dependency-tracking,
780
[ --disable-dependency-tracking Speeds up one-time builds
781
--enable-dependency-tracking Do not reject slow dependency extractors])
782
if test "x$enable_dependency_tracking" != xno; then
783
am_depcomp="$ac_aux_dir/depcomp"
786
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
787
AC_SUBST([AMDEPBACKSLASH])
790
# Generate code to set up dependency tracking. -*- Autoconf -*-
792
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
794
# This program is free software; you can redistribute it and/or modify
795
# it under the terms of the GNU General Public License as published by
796
# the Free Software Foundation; either version 2, or (at your option)
799
# This program is distributed in the hope that it will be useful,
800
# but WITHOUT ANY WARRANTY; without even the implied warranty of
801
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
802
# GNU General Public License for more details.
804
# You should have received a copy of the GNU General Public License
805
# along with this program; if not, write to the Free Software
806
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
811
# _AM_OUTPUT_DEPENDENCY_COMMANDS
812
# ------------------------------
813
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
814
[for mf in $CONFIG_FILES; do
815
# Strip MF so we end up with the name of the file.
816
mf=`echo "$mf" | sed -e 's/:.*$//'`
817
# Check whether this is an Automake generated Makefile or not.
818
# We used to match only the files named `Makefile.in', but
819
# some people rename them; so instead we look at the file content.
820
# Grep'ing the first line is not enough: some people post-process
821
# each Makefile.in and add a new line on top of each file to say so.
822
# So let's grep whole file.
823
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
824
dirpart=`AS_DIRNAME("$mf")`
828
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
829
# Extract the definition of DEP_FILES from the Makefile without
831
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
832
test -z "$DEPDIR" && continue
833
# When using ansi2knr, U may be empty or an underscore; expand it
834
U=`sed -n -e '/^U = / s///p' < "$mf"`
835
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
836
# We invoke sed twice because it is the simplest approach to
837
# changing $(DEPDIR) to its actual value in the expansion.
838
for file in `sed -n -e '
839
/^DEP_FILES = .*\\\\$/ {
848
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
849
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
850
# Make sure the directory exists.
851
test -f "$dirpart/$file" && continue
852
fdir=`AS_DIRNAME(["$file"])`
853
AS_MKDIR_P([$dirpart/$fdir])
854
# echo "creating $dirpart/$file"
855
echo '# dummy' > "$dirpart/$file"
858
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
861
# AM_OUTPUT_DEPENDENCY_COMMANDS
862
# -----------------------------
863
# This macro should only be invoked once -- use via AC_REQUIRE.
865
# This code is only required when automatic dependency tracking
866
# is enabled. FIXME. This creates each `.P' file that we will
867
# need in order to bootstrap the dependency handling code.
868
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
869
[AC_CONFIG_COMMANDS([depfiles],
870
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
871
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
874
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
876
# This program is free software; you can redistribute it and/or modify
877
# it under the terms of the GNU General Public License as published by
878
# the Free Software Foundation; either version 2, or (at your option)
881
# This program is distributed in the hope that it will be useful,
882
# but WITHOUT ANY WARRANTY; without even the implied warranty of
883
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
884
# GNU General Public License for more details.
886
# You should have received a copy of the GNU General Public License
887
# along with this program; if not, write to the Free Software
888
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
895
# Check to see how make treats includes.
896
AC_DEFUN([AM_MAKE_INCLUDE],
897
[am_make=${MAKE-make}
898
cat > confinc << 'END'
902
# If we don't find an include directive, just comment out the code.
903
AC_MSG_CHECKING([for style of include used by $am_make])
907
# First try GNU make style include.
908
echo "include confinc" > confmf
909
# We grep out `Entering directory' and `Leaving directory'
910
# messages which can occur if `w' ends up in MAKEFLAGS.
911
# In particular we don't look at `^make:' because GNU make might
912
# be invoked under some other name (usually "gmake"), in which
913
# case it prints its new name instead of `make'.
914
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
919
# Now try BSD make style include.
920
if test "$am__include" = "#"; then
921
echo '.include "confinc"' > confmf
922
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
928
AC_SUBST(am__include)
930
AC_MSG_RESULT($_am_result)