1
# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
1
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
# Free Software Foundation, Inc.
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
15
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
16
# Generated from amversion.in; do not edit by hand.
18
# This program is free software; you can redistribute it and/or modify
19
# it under the terms of the GNU General Public License as published by
20
# the Free Software Foundation; either version 2, or (at your option)
23
# This program is distributed in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU General Public License for more details.
28
# You should have received a copy of the GNU General Public License
29
# along with this program; if not, write to the Free Software
30
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
14
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
16
# This file is free software; the Free Software Foundation
17
# gives unlimited permission to copy and/or distribute it,
18
# with or without modifications, as long as this notice is preserved.
32
20
# AM_AUTOMAKE_VERSION(VERSION)
33
21
# ----------------------------
34
22
# Automake X.Y traces this macro to ensure aclocal.m4 has been
35
23
# generated from the m4 files accompanying Automake X.Y.
36
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
38
26
# AM_SET_CURRENT_AUTOMAKE_VERSION
39
27
# -------------------------------
40
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
41
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42
30
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43
[AM_AUTOMAKE_VERSION([1.8.3])])
47
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
49
# This program is free software; you can redistribute it and/or modify
50
# it under the terms of the GNU General Public License as published by
51
# the Free Software Foundation; either version 2, or (at your option)
54
# This program is distributed in the hope that it will be useful,
55
# but WITHOUT ANY WARRANTY; without even the implied warranty of
56
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57
# GNU General Public License for more details.
59
# You should have received a copy of the GNU General Public License
60
# along with this program; if not, write to the Free Software
61
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31
[AM_AUTOMAKE_VERSION([1.9.5])])
33
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
35
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
37
# This file is free software; the Free Software Foundation
38
# gives unlimited permission to copy and/or distribute it,
39
# with or without modifications, as long as this notice is preserved.
64
41
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65
42
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
106
83
am_aux_dir=`cd $ac_aux_dir && pwd`
109
# AM_CONDITIONAL -*- Autoconf -*-
111
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
113
# This program is free software; you can redistribute it and/or modify
114
# it under the terms of the GNU General Public License as published by
115
# the Free Software Foundation; either version 2, or (at your option)
118
# This program is distributed in the hope that it will be useful,
119
# but WITHOUT ANY WARRANTY; without even the implied warranty of
120
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
121
# GNU General Public License for more details.
123
# You should have received a copy of the GNU General Public License
124
# along with this program; if not, write to the Free Software
125
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
86
# AM_CONDITIONAL -*- Autoconf -*-
88
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
89
# Free Software Foundation, Inc.
91
# This file is free software; the Free Software Foundation
92
# gives unlimited permission to copy and/or distribute it,
93
# with or without modifications, as long as this notice is preserved.
130
97
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
131
98
# -------------------------------------
146
113
AC_CONFIG_COMMANDS_PRE(
147
114
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148
AC_MSG_ERROR([conditional "$1" was never defined.
149
Usually this means the macro was only invoked conditionally.])
115
AC_MSG_ERROR([[conditional "$1" was never defined.
116
Usually this means the macro was only invoked conditionally.]])
152
# serial 7 -*- Autoconf -*-
154
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
155
121
# Free Software Foundation, Inc.
157
# This program is free software; you can redistribute it and/or modify
158
# it under the terms of the GNU General Public License as published by
159
# the Free Software Foundation; either version 2, or (at your option)
162
# This program is distributed in the hope that it will be useful,
163
# but WITHOUT ANY WARRANTY; without even the implied warranty of
164
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
165
# GNU General Public License for more details.
167
# You should have received a copy of the GNU General Public License
168
# along with this program; if not, write to the Free Software
169
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
123
# This file is free software; the Free Software Foundation
124
# gives unlimited permission to copy and/or distribute it,
125
# with or without modifications, as long as this notice is preserved.
173
129
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
174
130
# written in clear, in which case automake, when reading aclocal.m4,
266
221
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
267
222
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
268
223
# icc doesn't choke on unknown options, it will just issue warnings
269
# (even with -Werror). So we grep stderr for any message
270
# that says an option was ignored.
271
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
224
# or remarks (even with -Werror). So we grep stderr for any message
225
# that says an option was ignored or not supported.
226
# When given -MP, icc 7.0 and 7.1 complain thusly:
227
# icc: Command line warning: ignoring option '-M'; no argument required
228
# The diagnosis changed in icc 8.0:
229
# icc: Command line remark: option '-MP' not supported
230
if (grep 'ignoring option' conftest.err ||
231
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
272
232
am_cv_$1_dependencies_compiler_type=$depmode
312
272
AC_SUBST([AMDEPBACKSLASH])
315
# Generate code to set up dependency tracking. -*- Autoconf -*-
317
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
319
# This program is free software; you can redistribute it and/or modify
320
# it under the terms of the GNU General Public License as published by
321
# the Free Software Foundation; either version 2, or (at your option)
324
# This program is distributed in the hope that it will be useful,
325
# but WITHOUT ANY WARRANTY; without even the implied warranty of
326
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
327
# GNU General Public License for more details.
329
# You should have received a copy of the GNU General Public License
330
# along with this program; if not, write to the Free Software
331
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
275
# Generate code to set up dependency tracking. -*- Autoconf -*-
277
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
278
# Free Software Foundation, Inc.
280
# This file is free software; the Free Software Foundation
281
# gives unlimited permission to copy and/or distribute it,
282
# with or without modifications, as long as this notice is preserved.
336
286
# _AM_OUTPUT_DEPENDENCY_COMMANDS
337
287
# ------------------------------
353
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
354
# Extract the definition of DEP_FILES from the Makefile without
303
# Extract the definition of DEPDIR, am__include, and am__quote
304
# from the Makefile without running `make'.
356
305
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
357
306
test -z "$DEPDIR" && continue
307
am__include=`sed -n 's/^am__include = //p' < "$mf"`
308
test -z "am__include" && continue
309
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
358
310
# When using ansi2knr, U may be empty or an underscore; expand it
359
311
U=`sed -n 's/^U = //p' < "$mf"`
360
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
361
# We invoke sed twice because it is the simplest approach to
362
# changing $(DEPDIR) to its actual value in the expansion.
363
for file in `sed -n '
364
/^DEP_FILES = .*\\\\$/ {
373
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
312
# Find all dependency output files, they are included files with
313
# $(DEPDIR) in their names. We invoke sed twice because it is the
314
# simplest approach to changing $(DEPDIR) to its actual value in the
316
for file in `sed -n "
317
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
374
318
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
375
319
# Make sure the directory exists.
376
320
test -f "$dirpart/$file" && continue
396
340
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
399
# Do all the work for Automake. -*- Autoconf -*-
401
# This macro actually does too much some checks are only needed if
343
# Do all the work for Automake. -*- Autoconf -*-
345
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
346
# Free Software Foundation, Inc.
348
# This file is free software; the Free Software Foundation
349
# gives unlimited permission to copy and/or distribute it,
350
# with or without modifications, as long as this notice is preserved.
354
# This macro actually does too much. Some checks are only needed if
402
355
# your package does certain things. But this isn't really a big deal.
404
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
405
# Free Software Foundation, Inc.
407
# This program is free software; you can redistribute it and/or modify
408
# it under the terms of the GNU General Public License as published by
409
# the Free Software Foundation; either version 2, or (at your option)
412
# This program is distributed in the hope that it will be useful,
413
# but WITHOUT ANY WARRANTY; without even the implied warranty of
414
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
415
# GNU General Public License for more details.
417
# You should have received a copy of the GNU General Public License
418
# along with this program; if not, write to the Free Software
419
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
424
357
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
425
358
# AM_INIT_AUTOMAKE([OPTIONS])
426
359
# -----------------------------------------------
486
418
AC_REQUIRE([AC_PROG_AWK])dnl
487
419
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
488
420
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
421
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
422
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
423
[_AM_PROG_TAR([v7])])])
490
424
_AM_IF_OPTION([no-dependencies],,
491
425
[AC_PROVIDE_IFELSE([AC_PROG_CC],
492
426
[_AM_DEPENDENCIES(CC)],
521
455
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
457
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
459
# This file is free software; the Free Software Foundation
460
# gives unlimited permission to copy and/or distribute it,
461
# with or without modifications, as long as this notice is preserved.
523
463
# AM_PROG_INSTALL_SH
524
464
# ------------------
525
465
# Define $install_sh.
527
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
529
# This program is free software; you can redistribute it and/or modify
530
# it under the terms of the GNU General Public License as published by
531
# the Free Software Foundation; either version 2, or (at your option)
534
# This program is distributed in the hope that it will be useful,
535
# but WITHOUT ANY WARRANTY; without even the implied warranty of
536
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
537
# GNU General Public License for more details.
539
# You should have received a copy of the GNU General Public License
540
# along with this program; if not, write to the Free Software
541
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
544
466
AC_DEFUN([AM_PROG_INSTALL_SH],
545
467
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
546
468
install_sh=${install_sh-"$am_aux_dir/install-sh"}
547
469
AC_SUBST(install_sh)])
550
# Copyright (C) 2003 Free Software Foundation, Inc.
552
# This program is free software; you can redistribute it and/or modify
553
# it under the terms of the GNU General Public License as published by
554
# the Free Software Foundation; either version 2, or (at your option)
557
# This program is distributed in the hope that it will be useful,
558
# but WITHOUT ANY WARRANTY; without even the implied warranty of
559
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
560
# GNU General Public License for more details.
562
# You should have received a copy of the GNU General Public License
563
# along with this program; if not, write to the Free Software
564
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
471
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
473
# This file is free software; the Free Software Foundation
474
# gives unlimited permission to copy and/or distribute it,
475
# with or without modifications, as long as this notice is preserved.
569
479
# Check whether the underlying file-system supports filenames
570
480
# with a leading dot. For instance MS-DOS doesn't.
579
489
rmdir .tst 2>/dev/null
580
490
AC_SUBST([am__leading_dot])])
582
# Check to see how 'make' treats includes. -*- Autoconf -*-
584
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
586
# This program is free software; you can redistribute it and/or modify
587
# it under the terms of the GNU General Public License as published by
588
# the Free Software Foundation; either version 2, or (at your option)
591
# This program is distributed in the hope that it will be useful,
592
# but WITHOUT ANY WARRANTY; without even the implied warranty of
593
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
594
# GNU General Public License for more details.
596
# You should have received a copy of the GNU General Public License
597
# along with this program; if not, write to the Free Software
598
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
492
# Check to see how 'make' treats includes. -*- Autoconf -*-
494
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
496
# This file is free software; the Free Software Foundation
497
# gives unlimited permission to copy and/or distribute it,
498
# with or without modifications, as long as this notice is preserved.
603
502
# AM_MAKE_INCLUDE()
604
503
# -----------------
642
541
rm -f confinc confmf
544
# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
546
# This file is free software; the Free Software Foundation
547
# gives unlimited permission to copy and/or distribute it,
548
# with or without modifications, as long as this notice is preserved.
649
554
# Like AC_PROG_CC_C_O, but changed for automake.
651
# Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
653
# This program is free software; you can redistribute it and/or modify
654
# it under the terms of the GNU General Public License as published by
655
# the Free Software Foundation; either version 2, or (at your option)
658
# This program is distributed in the hope that it will be useful,
659
# but WITHOUT ANY WARRANTY; without even the implied warranty of
660
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
661
# GNU General Public License for more details.
663
# You should have received a copy of the GNU General Public License
664
# along with this program; if not, write to the Free Software
665
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
668
555
AC_DEFUN([AM_PROG_CC_C_O],
669
556
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
670
557
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
688
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
690
# This program is free software; you can redistribute it and/or modify
691
# it under the terms of the GNU General Public License as published by
692
# the Free Software Foundation; either version 2, or (at your option)
695
# This program is distributed in the hope that it will be useful,
696
# but WITHOUT ANY WARRANTY; without even the implied warranty of
697
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
698
# GNU General Public License for more details.
700
# You should have received a copy of the GNU General Public License
701
# along with this program; if not, write to the Free Software
702
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
572
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
574
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
575
# Free Software Foundation, Inc.
577
# This file is free software; the Free Software Foundation
578
# gives unlimited permission to copy and/or distribute it,
579
# with or without modifications, as long as this notice is preserved.
707
583
# AM_MISSING_PROG(NAME, PROGRAM)
708
584
# ------------------------------
607
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
609
# This file is free software; the Free Software Foundation
610
# gives unlimited permission to copy and/or distribute it,
611
# with or without modifications, as long as this notice is preserved.
731
613
# AM_PROG_MKDIR_P
732
614
# ---------------
733
615
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
735
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
737
# This program is free software; you can redistribute it and/or modify
738
# it under the terms of the GNU General Public License as published by
739
# the Free Software Foundation; either version 2, or (at your option)
742
# This program is distributed in the hope that it will be useful,
743
# but WITHOUT ANY WARRANTY; without even the implied warranty of
744
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
745
# GNU General Public License for more details.
747
# You should have received a copy of the GNU General Public License
748
# along with this program; if not, write to the Free Software
749
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
752
617
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
753
618
# created by `make install' are always world readable, even if the
754
619
# installer happens to have an overly restrictive umask (e.g. 077).
770
635
AC_DEFUN([AM_PROG_MKDIR_P],
771
636
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
772
# Keeping the `.' argument allows $(mkdir_p) to be used without
773
# argument. Indeed, we sometimes output rules like
637
# We used to keeping the `.' as first argument, in order to
638
# allow $(mkdir_p) to be used without argument. As in
774
639
# $(mkdir_p) $(somedir)
775
# where $(somedir) is conditionally defined.
776
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
777
# expensive solution, as it forces Make to start a sub-shell.)
778
mkdir_p='mkdir -p -- .'
640
# where $(somedir) is conditionally defined. However this is wrong
642
# 1. if the package is installed by a user who cannot write `.'
643
# make install will fail,
644
# 2. the above comment should most certainly read
645
# $(mkdir_p) $(DESTDIR)$(somedir)
646
# so it does not work when $(somedir) is undefined and
648
# To support the latter case, we have to write
649
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
650
# so the `.' trick is pointless.
651
mkdir_p='mkdir -p --'
780
653
# On NextStep and OpenStep, the `mkdir' command does not
781
654
# recognize any option. It will interpret all options as
795
668
AC_SUBST([mkdir_p])])
797
# Helper functions for option handling. -*- Autoconf -*-
799
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
801
# This program is free software; you can redistribute it and/or modify
802
# it under the terms of the GNU General Public License as published by
803
# the Free Software Foundation; either version 2, or (at your option)
806
# This program is distributed in the hope that it will be useful,
807
# but WITHOUT ANY WARRANTY; without even the implied warranty of
808
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
809
# GNU General Public License for more details.
811
# You should have received a copy of the GNU General Public License
812
# along with this program; if not, write to the Free Software
813
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
670
# Helper functions for option handling. -*- Autoconf -*-
672
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
674
# This file is free software; the Free Software Foundation
675
# gives unlimited permission to copy and/or distribute it,
676
# with or without modifications, as long as this notice is preserved.
818
680
# _AM_MANGLE_OPTION(NAME)
819
681
# -----------------------
838
700
AC_DEFUN([_AM_IF_OPTION],
839
701
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
842
# Check to make sure that the build environment is sane.
845
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
847
# This program is free software; you can redistribute it and/or modify
848
# it under the terms of the GNU General Public License as published by
849
# the Free Software Foundation; either version 2, or (at your option)
852
# This program is distributed in the hope that it will be useful,
853
# but WITHOUT ANY WARRANTY; without even the implied warranty of
854
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
855
# GNU General Public License for more details.
857
# You should have received a copy of the GNU General Public License
858
# along with this program; if not, write to the Free Software
859
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
703
# Check to make sure that the build environment is sane. -*- Autoconf -*-
705
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
706
# Free Software Foundation, Inc.
708
# This file is free software; the Free Software Foundation
709
# gives unlimited permission to copy and/or distribute it,
710
# with or without modifications, as long as this notice is preserved.
864
714
# AM_SANITY_CHECK
865
715
# ---------------
903
753
AC_MSG_RESULT(yes)])
755
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
757
# This file is free software; the Free Software Foundation
758
# gives unlimited permission to copy and/or distribute it,
759
# with or without modifications, as long as this notice is preserved.
905
761
# AM_PROG_INSTALL_STRIP
907
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
909
# This program is free software; you can redistribute it and/or modify
910
# it under the terms of the GNU General Public License as published by
911
# the Free Software Foundation; either version 2, or (at your option)
914
# This program is distributed in the hope that it will be useful,
915
# but WITHOUT ANY WARRANTY; without even the implied warranty of
916
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
917
# GNU General Public License for more details.
919
# You should have received a copy of the GNU General Public License
920
# along with this program; if not, write to the Free Software
921
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
762
# ---------------------
924
763
# One issue with vendor `install' (even GNU) is that you can't
925
764
# specify the program used to strip binaries. This is especially
926
765
# annoying in cross-compiling environments, where the build's strip
941
780
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
942
781
AC_SUBST([INSTALL_STRIP_PROGRAM])])
783
# Check how to create a tarball. -*- Autoconf -*-
785
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
787
# This file is free software; the Free Software Foundation
788
# gives unlimited permission to copy and/or distribute it,
789
# with or without modifications, as long as this notice is preserved.
793
# _AM_PROG_TAR(FORMAT)
794
# --------------------
795
# Check how to create a tarball in format FORMAT.
796
# FORMAT should be one of `v7', `ustar', or `pax'.
798
# Substitute a variable $(am__tar) that is a command
799
# writing to stdout a FORMAT-tarball containing the directory
801
# tardir=directory && $(am__tar) > result.tar
803
# Substitute a variable $(am__untar) that extract such
804
# a tarball read from stdin.
805
# $(am__untar) < result.tar
806
AC_DEFUN([_AM_PROG_TAR],
807
[# Always define AMTAR for backward compatibility.
808
AM_MISSING_PROG([AMTAR], [tar])
810
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
811
[m4_case([$1], [ustar],, [pax],,
812
[m4_fatal([Unknown tar format])])
813
AC_MSG_CHECKING([how to create a $1 tar archive])
814
# Loop over all known methods to create a tar archive until one works.
815
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
816
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
817
# Do not fold the above two line into one, because Tru64 sh and
818
# Solaris sh will not grok spaces in the rhs of `-'.
819
for _am_tool in $_am_tools
823
for _am_tar in tar gnutar gtar;
825
AM_RUN_LOG([$_am_tar --version]) && break
827
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
828
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
829
am__untar="$_am_tar -xf -"
832
# Must skip GNU tar: if it does not support --format= it doesn't create
833
# ustar tarball either.
834
(tar --version) >/dev/null 2>&1 && continue
835
am__tar='tar chf - "$$tardir"'
836
am__tar_='tar chf - "$tardir"'
840
am__tar='pax -L -x $1 -w "$$tardir"'
841
am__tar_='pax -L -x $1 -w "$tardir"'
845
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
846
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
847
am__untar='cpio -i -H $1 -d'
856
# If the value was cached, stop now. We just wanted to have am__tar
858
test -n "${am_cv_prog_tar_$1}" && break
860
# tar/untar a dummy directory, and stop if the command works
863
echo GrepMe > conftest.dir/file
864
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
866
if test -s conftest.tar; then
867
AM_RUN_LOG([$am__untar <conftest.tar])
868
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
873
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
874
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
876
AC_SUBST([am__untar])
944
879
m4_include([Tools/config/ac_compile_warnings.m4])
945
880
m4_include([Tools/config/ac_define_dir.m4])