annotate GEMBASSY-1.0.3/aclocal.m4 @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 # PARTICULAR PURPOSE.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15 m4_ifndef([AC_AUTOCONF_VERSION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 [m4_warning([this file was generated for autoconf 2.69.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19 You have another version of autoconf. It may work, but is not guaranteed to.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 If you have problems, you may need to regenerate the build system entirely.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29 # AM_AUTOMAKE_VERSION(VERSION)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 # ----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32 # generated from the m4 files accompanying Automake X.Y.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33 # (This private macro should not be called outside this file.)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34 AC_DEFUN([AM_AUTOMAKE_VERSION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35 [am__api_version='1.15'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37 dnl require some minimum version. Point them to the right macro.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38 m4_if([$1], [1.15], [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42 # _AM_AUTOCONF_VERSION(VERSION)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43 # -----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 # aclocal traces this macro to find the Autoconf version.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45 # This is a private macro too. Using m4_define simplifies
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46 # the logic in aclocal, which can simply ignore this definition.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47 m4_define([_AM_AUTOCONF_VERSION], [])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 # AM_SET_CURRENT_AUTOMAKE_VERSION
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50 # -------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
54 [AM_AUTOMAKE_VERSION([1.15])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
55 m4_ifndef([AC_AUTOCONF_VERSION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
58
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
59 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
60
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
61 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
62 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
63 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
64 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
65 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
66
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
67 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
68 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
70 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
71 # Of course, Automake must honor this variable whenever it calls a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
72 # tool from the auxiliary directory. The problem is that $srcdir (and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
73 # therefore $ac_aux_dir as well) can be either absolute or relative,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
74 # depending on how configure is run. This is pretty annoying, since
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
75 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
76 # source directory, any form will work fine, but in subdirectories a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
77 # relative path needs to be adjusted first.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
78 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
79 # $ac_aux_dir/missing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
80 # fails when called from a subdirectory if $ac_aux_dir is relative
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
81 # $top_srcdir/$ac_aux_dir/missing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
82 # fails if $ac_aux_dir is absolute,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
83 # fails when called from a subdirectory in a VPATH build with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
84 # a relative $ac_aux_dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
85 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
86 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
87 # are both prefixed by $srcdir. In an in-source build this is usually
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
88 # harmless because $srcdir is '.', but things will broke when you
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
89 # start a VPATH build or use an absolute $srcdir.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
90 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
91 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
92 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
93 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
94 # and then we would define $MISSING as
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
95 # MISSING="\${SHELL} $am_aux_dir/missing"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
96 # This will work as long as MISSING is not called from configure, because
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
97 # unfortunately $(top_srcdir) has no meaning in configure.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
98 # However there are other variables, like CC, which are often used in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
99 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
100 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
101 # Another solution, used here, is to always expand $ac_aux_dir to an
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
102 # absolute PATH. The drawback is that using absolute paths prevent a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
103 # configured tree to be moved without reconfiguration.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
104
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
105 AC_DEFUN([AM_AUX_DIR_EXPAND],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
106 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
107 # Expand $ac_aux_dir to an absolute path.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
108 am_aux_dir=`cd "$ac_aux_dir" && pwd`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
109 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
110
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
111 # AM_CONDITIONAL -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
112
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
113 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
114 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
115 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
116 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
117 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
118
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
119 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
120 # -------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
121 # Define a conditional.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
122 AC_DEFUN([AM_CONDITIONAL],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
123 [AC_PREREQ([2.52])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
124 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
125 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
126 AC_SUBST([$1_TRUE])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
127 AC_SUBST([$1_FALSE])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
128 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
129 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
130 m4_define([_AM_COND_VALUE_$1], [$2])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
131 if $2; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
132 $1_TRUE=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
133 $1_FALSE='#'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
134 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
135 $1_TRUE='#'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
136 $1_FALSE=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
137 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
138 AC_CONFIG_COMMANDS_PRE(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
139 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
140 AC_MSG_ERROR([[conditional "$1" was never defined.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
141 Usually this means the macro was only invoked conditionally.]])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
142 fi])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
143
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
144 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
145 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
146 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
147 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
148 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
149
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
150
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
151 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
152 # written in clear, in which case automake, when reading aclocal.m4,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
153 # will think it sees a *use*, and therefore will trigger all it's
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
154 # C support machinery. Also note that it means that autoscan, seeing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
155 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
156
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
157
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
158 # _AM_DEPENDENCIES(NAME)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
159 # ----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
160 # See how the compiler implements dependency checking.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
161 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
162 # We try a few techniques and use that to set a single cache variable.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
163 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
164 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
165 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
166 # dependency, and given that the user is not expected to run this macro,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
167 # just rely on AC_PROG_CC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
168 AC_DEFUN([_AM_DEPENDENCIES],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
169 [AC_REQUIRE([AM_SET_DEPDIR])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
170 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
171 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
172 AC_REQUIRE([AM_DEP_TRACK])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
173
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
174 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
175 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
176 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
177 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
178 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
179 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
180 [depcc="$$1" am_compiler_list=])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
181
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
182 AC_CACHE_CHECK([dependency style of $depcc],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
183 [am_cv_$1_dependencies_compiler_type],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
184 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
185 # We make a subdir and do the tests there. Otherwise we can end up
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
186 # making bogus files that we don't know about and never remove. For
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
187 # instance it was reported that on HP-UX the gcc test will end up
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
188 # making a dummy file named 'D' -- because '-MD' means "put the output
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
189 # in D".
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
190 rm -rf conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
191 mkdir conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
192 # Copy depcomp to subdir because otherwise we won't find it if we're
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
193 # using a relative directory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
194 cp "$am_depcomp" conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
195 cd conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
196 # We will build objects and dependencies in a subdirectory because
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
197 # it helps to detect inapplicable dependency modes. For instance
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
198 # both Tru64's cc and ICC support -MD to output dependencies as a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
199 # side effect of compilation, but ICC will put the dependencies in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
200 # the current directory while Tru64 will put them in the object
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
201 # directory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
202 mkdir sub
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
203
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
204 am_cv_$1_dependencies_compiler_type=none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
205 if test "$am_compiler_list" = ""; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
206 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
207 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
208 am__universal=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
209 m4_case([$1], [CC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
210 [case " $depcc " in #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
211 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
212 esac],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
213 [CXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
214 [case " $depcc " in #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
215 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
216 esac])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
217
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
218 for depmode in $am_compiler_list; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
219 # Setup a source with many dependencies, because some compilers
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
220 # like to wrap large dependency lists on column 80 (with \), and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
221 # we should not choose a depcomp mode which is confused by this.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
222 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
223 # We need to recreate these files for each test, as the compiler may
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
224 # overwrite some of them when testing with obscure command lines.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
225 # This happens at least with the AIX C compiler.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
226 : > sub/conftest.c
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
227 for i in 1 2 3 4 5 6; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
228 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
229 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
230 # Solaris 10 /bin/sh.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
231 echo '/* dummy */' > sub/conftst$i.h
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
232 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
234
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
235 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
236 # mode. It turns out that the SunPro C++ compiler does not properly
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
237 # handle '-M -o', and we need to detect this. Also, some Intel
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
238 # versions had trouble with output in subdirs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
239 am__obj=sub/conftest.${OBJEXT-o}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
240 am__minus_obj="-o $am__obj"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
241 case $depmode in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
242 gcc)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
243 # This depmode causes a compiler race in universal mode.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
244 test "$am__universal" = false || continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
245 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
246 nosideeffect)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
247 # After this tag, mechanisms are not by side-effect, so they'll
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
248 # only be used when explicitly requested.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
249 if test "x$enable_dependency_tracking" = xyes; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
250 continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
251 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
252 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
253 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
254 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
255 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
256 # This compiler won't grok '-c -o', but also, the minuso test has
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
257 # not run yet. These depmodes are late enough in the game, and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
258 # so weak that their functioning should not be impacted.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
259 am__obj=conftest.${OBJEXT-o}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
260 am__minus_obj=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
261 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
262 none) break ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
263 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
264 if depmode=$depmode \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
265 source=sub/conftest.c object=$am__obj \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
268 >/dev/null 2>conftest.err &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
273 # icc doesn't choke on unknown options, it will just issue warnings
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
274 # or remarks (even with -Werror). So we grep stderr for any message
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
275 # that says an option was ignored or not supported.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
276 # When given -MP, icc 7.0 and 7.1 complain thusly:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
277 # icc: Command line warning: ignoring option '-M'; no argument required
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
278 # The diagnosis changed in icc 8.0:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
279 # icc: Command line remark: option '-MP' not supported
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
280 if (grep 'ignoring option' conftest.err ||
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
282 am_cv_$1_dependencies_compiler_type=$depmode
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
283 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
284 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
285 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
286 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
287
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
288 cd ..
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
289 rm -rf conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
290 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
291 am_cv_$1_dependencies_compiler_type=none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
292 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
293 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
294 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
295 AM_CONDITIONAL([am__fastdep$1], [
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
296 test "x$enable_dependency_tracking" != xno \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
297 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
298 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
299
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
300
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
301 # AM_SET_DEPDIR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
302 # -------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
303 # Choose a directory name for dependency files.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
304 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
305 AC_DEFUN([AM_SET_DEPDIR],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
306 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
307 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
308 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
309
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
310
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
311 # AM_DEP_TRACK
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
312 # ------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
313 AC_DEFUN([AM_DEP_TRACK],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
314 [AC_ARG_ENABLE([dependency-tracking], [dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
315 AS_HELP_STRING(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
316 [--enable-dependency-tracking],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
317 [do not reject slow dependency extractors])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
318 AS_HELP_STRING(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
319 [--disable-dependency-tracking],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
320 [speeds up one-time build])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
321 if test "x$enable_dependency_tracking" != xno; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
322 am_depcomp="$ac_aux_dir/depcomp"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
323 AMDEPBACKSLASH='\'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
324 am__nodep='_no'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
325 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
326 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
327 AC_SUBST([AMDEPBACKSLASH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
328 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
329 AC_SUBST([am__nodep])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
330 _AM_SUBST_NOTMAKE([am__nodep])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
331 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
332
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
333 # Generate code to set up dependency tracking. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
334
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
335 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
336 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
337 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
338 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
339 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
340
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
341
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
342 # _AM_OUTPUT_DEPENDENCY_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
343 # ------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
344 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
345 [{
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
346 # Older Autoconf quotes --file arguments for eval, but not when files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
347 # are listed without --file. Let's play safe and only enable the eval
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
348 # if we detect the quoting.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
349 case $CONFIG_FILES in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
350 *\'*) eval set x "$CONFIG_FILES" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
351 *) set x $CONFIG_FILES ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
352 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
353 shift
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
354 for mf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
355 do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
356 # Strip MF so we end up with the name of the file.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
357 mf=`echo "$mf" | sed -e 's/:.*$//'`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
358 # Check whether this is an Automake generated Makefile or not.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
359 # We used to match only the files named 'Makefile.in', but
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
360 # some people rename them; so instead we look at the file content.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
361 # Grep'ing the first line is not enough: some people post-process
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
362 # each Makefile.in and add a new line on top of each file to say so.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
363 # Grep'ing the whole file is not good either: AIX grep has a line
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
364 # limit of 2048, but all sed's we know have understand at least 4000.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
365 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
366 dirpart=`AS_DIRNAME("$mf")`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
367 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
368 continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
369 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
370 # Extract the definition of DEPDIR, am__include, and am__quote
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
371 # from the Makefile without running 'make'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
372 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
373 test -z "$DEPDIR" && continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
374 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
375 test -z "$am__include" && continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
376 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
377 # Find all dependency output files, they are included files with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
378 # $(DEPDIR) in their names. We invoke sed twice because it is the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
379 # simplest approach to changing $(DEPDIR) to its actual value in the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
380 # expansion.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
381 for file in `sed -n "
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
384 # Make sure the directory exists.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
385 test -f "$dirpart/$file" && continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
386 fdir=`AS_DIRNAME(["$file"])`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
387 AS_MKDIR_P([$dirpart/$fdir])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
388 # echo "creating $dirpart/$file"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
389 echo '# dummy' > "$dirpart/$file"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
390 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
391 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
392 }
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
393 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
394
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
395
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
396 # AM_OUTPUT_DEPENDENCY_COMMANDS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
397 # -----------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
398 # This macro should only be invoked once -- use via AC_REQUIRE.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
399 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
400 # This code is only required when automatic dependency tracking
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
401 # is enabled. FIXME. This creates each '.P' file that we will
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
402 # need in order to bootstrap the dependency handling code.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
403 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
404 [AC_CONFIG_COMMANDS([depfiles],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
405 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
407 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
408
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
409 # Do all the work for Automake. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
410
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
411 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
412 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
413 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
414 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
415 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
416
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
417 # This macro actually does too much. Some checks are only needed if
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
418 # your package does certain things. But this isn't really a big deal.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
419
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
420 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
421 m4_define([AC_PROG_CC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
422 m4_defn([AC_PROG_CC])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
423 [_AM_PROG_CC_C_O
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
424 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
425
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
426 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
427 # AM_INIT_AUTOMAKE([OPTIONS])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
428 # -----------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
429 # The call with PACKAGE and VERSION arguments is the old style
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
430 # call (pre autoconf-2.50), which is being phased out. PACKAGE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
431 # and VERSION should now be passed to AC_INIT and removed from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
432 # the call to AM_INIT_AUTOMAKE.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
433 # We support both call styles for the transition. After
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
434 # the next Automake release, Autoconf can make the AC_INIT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
435 # arguments mandatory, and then we can depend on a new Autoconf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
436 # release and drop the old call support.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
437 AC_DEFUN([AM_INIT_AUTOMAKE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
438 [AC_PREREQ([2.65])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
439 dnl Autoconf wants to disallow AM_ names. We explicitly allow
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
440 dnl the ones we care about.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
441 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
442 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
443 AC_REQUIRE([AC_PROG_INSTALL])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
444 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
445 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
446 # is not polluted with repeated "-I."
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
447 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
448 # test to see if srcdir already configured
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
449 if test -f $srcdir/config.status; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
450 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
451 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
452 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
453
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
454 # test whether we have cygpath
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
455 if test -z "$CYGPATH_W"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
456 if (cygpath --version) >/dev/null 2>/dev/null; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
457 CYGPATH_W='cygpath -w'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
458 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
459 CYGPATH_W=echo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
460 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
461 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
462 AC_SUBST([CYGPATH_W])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
463
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
464 # Define the identity of the package.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
465 dnl Distinguish between old-style and new-style calls.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
466 m4_ifval([$2],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
467 [AC_DIAGNOSE([obsolete],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
468 [$0: two- and three-arguments forms are deprecated.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
469 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
470 AC_SUBST([PACKAGE], [$1])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
471 AC_SUBST([VERSION], [$2])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
472 [_AM_SET_OPTIONS([$1])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
473 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
474 m4_if(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
475 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
476 [ok:ok],,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
477 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
478 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
479 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
480
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
481 _AM_IF_OPTION([no-define],,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
482 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
483 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
484
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
485 # Some tools Automake needs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
486 AC_REQUIRE([AM_SANITY_CHECK])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
487 AC_REQUIRE([AC_ARG_PROGRAM])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
488 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
489 AM_MISSING_PROG([AUTOCONF], [autoconf])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
490 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
491 AM_MISSING_PROG([AUTOHEADER], [autoheader])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
492 AM_MISSING_PROG([MAKEINFO], [makeinfo])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
493 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
494 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
495 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
496 # For better backward compatibility. To be removed once Automake 1.9.x
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
497 # dies out for good. For more background, see:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
498 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
499 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
500 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
501 # We need awk for the "check" target (and possibly the TAP driver). The
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
502 # system "awk" is bad on some platforms.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
503 AC_REQUIRE([AC_PROG_AWK])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
504 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
505 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
506 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
507 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
508 [_AM_PROG_TAR([v7])])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
509 _AM_IF_OPTION([no-dependencies],,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
510 [AC_PROVIDE_IFELSE([AC_PROG_CC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
511 [_AM_DEPENDENCIES([CC])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
512 [m4_define([AC_PROG_CC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
513 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
514 AC_PROVIDE_IFELSE([AC_PROG_CXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
515 [_AM_DEPENDENCIES([CXX])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
516 [m4_define([AC_PROG_CXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
517 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
518 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
519 [_AM_DEPENDENCIES([OBJC])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
520 [m4_define([AC_PROG_OBJC],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
521 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
522 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
523 [_AM_DEPENDENCIES([OBJCXX])],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
524 [m4_define([AC_PROG_OBJCXX],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
525 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
526 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
527 AC_REQUIRE([AM_SILENT_RULES])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
528 dnl The testsuite driver may need to know about EXEEXT, so add the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
529 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
530 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
531 AC_CONFIG_COMMANDS_PRE(dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
532 [m4_provide_if([_AM_COMPILER_EXEEXT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
533 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
534
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
535 # POSIX will say in a future version that running "rm -f" with no argument
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
536 # is OK; and we want to be able to make that assumption in our Makefile
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
537 # recipes. So use an aggressive probe to check that the usage we want is
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
538 # actually supported "in the wild" to an acceptable degree.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
539 # See automake bug#10828.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
540 # To make any issue more visible, cause the running configure to be aborted
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
541 # by default if the 'rm' program in use doesn't match our expectations; the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
542 # user can still override this though.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
543 if rm -f && rm -fr && rm -rf; then : OK; else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
544 cat >&2 <<'END'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
545 Oops!
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
546
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
547 Your 'rm' program seems unable to run without file operands specified
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
548 on the command line, even when the '-f' option is present. This is contrary
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
549 to the behaviour of most rm programs out there, and not conforming with
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
550 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
551
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
552 Please tell bug-automake@gnu.org about your system, including the value
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
553 of your $PATH and any error possibly output before this message. This
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
554 can help us improve future automake versions.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
555
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
556 END
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
557 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
558 echo 'Configuration will proceed anyway, since you have set the' >&2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
559 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
560 echo >&2
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
561 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
562 cat >&2 <<'END'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
563 Aborting the configuration process, to ensure you take notice of the issue.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
564
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
565 You can download and install GNU coreutils to get an 'rm' implementation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
566 that behaves properly: <http://www.gnu.org/software/coreutils/>.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
567
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
568 If you want to complete the configuration process using your problematic
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
569 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
570 to "yes", and re-run configure.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
571
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
572 END
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
573 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
574 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
575 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
576 dnl The trailing newline in this macro's definition is deliberate, for
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
577 dnl backward compatibility and to allow trailing 'dnl'-style comments
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
578 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
579 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
580
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
581 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
582 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
583 dnl mangled by Autoconf and run in a shell conditional statement.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
584 m4_define([_AC_COMPILER_EXEEXT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
585 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
586
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
587 # When config.status generates a header, we must update the stamp-h file.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
588 # This file resides in the same directory as the config header
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
589 # that is generated. The stamp files are numbered to have different names.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
590
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
591 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
592 # loop where config.status creates the headers, so we can generate
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
593 # our stamp files there.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
594 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
595 [# Compute $1's index in $config_headers.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
596 _am_arg=$1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
597 _am_stamp_count=1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
598 for _am_header in $config_headers :; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
599 case $_am_header in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
600 $_am_arg | $_am_arg:* )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
601 break ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
602 * )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
603 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
604 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
605 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
606 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
607
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
608 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
609 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
610 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
611 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
612 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
613
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
614 # AM_PROG_INSTALL_SH
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
615 # ------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
616 # Define $install_sh.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
617 AC_DEFUN([AM_PROG_INSTALL_SH],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
618 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
619 if test x"${install_sh+set}" != xset; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
620 case $am_aux_dir in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
621 *\ * | *\ *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
623 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
624 install_sh="\${SHELL} $am_aux_dir/install-sh"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
625 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
626 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
627 AC_SUBST([install_sh])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
628
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
629 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
630 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
631 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
632 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
633 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
634
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
635 # Check whether the underlying file-system supports filenames
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
636 # with a leading dot. For instance MS-DOS doesn't.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
637 AC_DEFUN([AM_SET_LEADING_DOT],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
638 [rm -rf .tst 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
639 mkdir .tst 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
640 if test -d .tst; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
641 am__leading_dot=.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
642 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
643 am__leading_dot=_
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
644 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
645 rmdir .tst 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
646 AC_SUBST([am__leading_dot])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
647
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
648 # Check to see how 'make' treats includes. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
649
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
650 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
651 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
652 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
653 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
654 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
655
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
656 # AM_MAKE_INCLUDE()
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
657 # -----------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
658 # Check to see how make treats includes.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
659 AC_DEFUN([AM_MAKE_INCLUDE],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
660 [am_make=${MAKE-make}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
661 cat > confinc << 'END'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
662 am__doit:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
663 @echo this is the am__doit target
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
664 .PHONY: am__doit
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
665 END
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
666 # If we don't find an include directive, just comment out the code.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
667 AC_MSG_CHECKING([for style of include used by $am_make])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
668 am__include="#"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
669 am__quote=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
670 _am_result=none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
671 # First try GNU make style include.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
672 echo "include confinc" > confmf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
673 # Ignore all kinds of additional output from 'make'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
674 case `$am_make -s -f confmf 2> /dev/null` in #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
675 *the\ am__doit\ target*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
676 am__include=include
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
677 am__quote=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
678 _am_result=GNU
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
679 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
680 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
681 # Now try BSD make style include.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
682 if test "$am__include" = "#"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
683 echo '.include "confinc"' > confmf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
684 case `$am_make -s -f confmf 2> /dev/null` in #(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
685 *the\ am__doit\ target*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
686 am__include=.include
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
687 am__quote="\""
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
688 _am_result=BSD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
689 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
690 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
691 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
692 AC_SUBST([am__include])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
693 AC_SUBST([am__quote])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
694 AC_MSG_RESULT([$_am_result])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
695 rm -f confinc confmf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
696 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
697
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
698 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
699
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
700 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
701 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
702 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
703 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
704 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
705
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
706 # AM_MISSING_PROG(NAME, PROGRAM)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
707 # ------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
708 AC_DEFUN([AM_MISSING_PROG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
709 [AC_REQUIRE([AM_MISSING_HAS_RUN])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
710 $1=${$1-"${am_missing_run}$2"}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
711 AC_SUBST($1)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
712
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
713 # AM_MISSING_HAS_RUN
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
714 # ------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
715 # Define MISSING if not defined so far and test if it is modern enough.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
716 # If it is, set am_missing_run to use it, otherwise, to nothing.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
717 AC_DEFUN([AM_MISSING_HAS_RUN],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
718 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
719 AC_REQUIRE_AUX_FILE([missing])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
720 if test x"${MISSING+set}" != xset; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
721 case $am_aux_dir in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
722 *\ * | *\ *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
724 *)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
726 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
727 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
728 # Use eval to expand $SHELL
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
729 if eval "$MISSING --is-lightweight"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
730 am_missing_run="$MISSING "
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
731 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
732 am_missing_run=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
733 AC_MSG_WARN(['missing' script is too old or missing])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
734 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
735 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
736
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
737 # Helper functions for option handling. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
738
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
739 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
740 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
741 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
742 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
743 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
744
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
745 # _AM_MANGLE_OPTION(NAME)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
746 # -----------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
747 AC_DEFUN([_AM_MANGLE_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
748 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
749
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
750 # _AM_SET_OPTION(NAME)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
751 # --------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
752 # Set option NAME. Presently that only means defining a flag for this option.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
753 AC_DEFUN([_AM_SET_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
754 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
755
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
756 # _AM_SET_OPTIONS(OPTIONS)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
757 # ------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
758 # OPTIONS is a space-separated list of Automake options.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
759 AC_DEFUN([_AM_SET_OPTIONS],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
760 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
761
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
762 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
763 # -------------------------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
764 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
765 AC_DEFUN([_AM_IF_OPTION],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
766 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
767
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
768 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
769 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
770 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
771 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
772 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
773
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
774 # _AM_PROG_CC_C_O
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
775 # ---------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
776 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
777 # to automatically call this.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
778 AC_DEFUN([_AM_PROG_CC_C_O],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
779 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
780 AC_REQUIRE_AUX_FILE([compile])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
781 AC_LANG_PUSH([C])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
782 AC_CACHE_CHECK(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
783 [whether $CC understands -c and -o together],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
784 [am_cv_prog_cc_c_o],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
785 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
786 # Make sure it works both with $CC and with simple cc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
787 # Following AC_PROG_CC_C_O, we do the test twice because some
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
788 # compilers refuse to overwrite an existing .o file with -o,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
789 # though they will create one.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
790 am_cv_prog_cc_c_o=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
791 for am_i in 1 2; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
792 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
793 && test -f conftest2.$ac_objext; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
794 : OK
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
795 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
796 am_cv_prog_cc_c_o=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
797 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
798 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
799 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
800 rm -f core conftest*
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
801 unset am_i])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
802 if test "$am_cv_prog_cc_c_o" != yes; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
803 # Losing compiler, so override with the script.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
804 # FIXME: It is wrong to rewrite CC.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
805 # But if we don't then we get into trouble of one sort or another.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
806 # A longer-term fix would be to have automake use am__CC in this case,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
807 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
808 CC="$am_aux_dir/compile $CC"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
809 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
810 AC_LANG_POP([C])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
811
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
812 # For backward compatibility.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
813 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
814
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
815 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
816 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
817 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
818 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
819 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
820
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
821 # AM_RUN_LOG(COMMAND)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
822 # -------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
823 # Run COMMAND, save the exit status in ac_status, and log it.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
824 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
825 AC_DEFUN([AM_RUN_LOG],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
826 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
827 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
828 ac_status=$?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
829 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
830 (exit $ac_status); }])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
831
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
832 # Check to make sure that the build environment is sane. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
833
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
834 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
835 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
836 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
837 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
838 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
839
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
840 # AM_SANITY_CHECK
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
841 # ---------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
842 AC_DEFUN([AM_SANITY_CHECK],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
843 [AC_MSG_CHECKING([whether build environment is sane])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
844 # Reject unsafe characters in $srcdir or the absolute working directory
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
845 # name. Accept space and tab only in the latter.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
846 am_lf='
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
847 '
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
848 case `pwd` in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
849 *[[\\\"\#\$\&\'\`$am_lf]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
850 AC_MSG_ERROR([unsafe absolute working directory name]);;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
851 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
852 case $srcdir in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
853 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
854 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
855 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
856
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
857 # Do 'set' in a subshell so we don't clobber the current shell's
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
858 # arguments. Must try -L first in case configure is actually a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
859 # symlink; some systems play weird games with the mod time of symlinks
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
860 # (eg FreeBSD returns the mod time of the symlink's containing
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
861 # directory).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
862 if (
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
863 am_has_slept=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
864 for am_try in 1 2; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
865 echo "timestamp, slept: $am_has_slept" > conftest.file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
866 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
867 if test "$[*]" = "X"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
868 # -L didn't work.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
869 set X `ls -t "$srcdir/configure" conftest.file`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
870 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
871 if test "$[*]" != "X $srcdir/configure conftest.file" \
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
872 && test "$[*]" != "X conftest.file $srcdir/configure"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
873
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
874 # If neither matched, then we have a broken ls. This can happen
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
875 # if, for instance, CONFIG_SHELL is bash and it inherits a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
876 # broken ls alias from the environment. This has actually
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
877 # happened. Such a system could not be considered "sane".
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
878 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
879 alias in your environment])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
880 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
881 if test "$[2]" = conftest.file || test $am_try -eq 2; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
882 break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
883 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
884 # Just in case.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
885 sleep 1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
886 am_has_slept=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
887 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
888 test "$[2]" = conftest.file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
889 )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
890 then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
891 # Ok.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
892 :
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
893 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
894 AC_MSG_ERROR([newly created file is older than distributed files!
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
895 Check your system clock])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
896 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
897 AC_MSG_RESULT([yes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
898 # If we didn't sleep, we still need to ensure time stamps of config.status and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
899 # generated files are strictly newer.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
900 am_sleep_pid=
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
901 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
902 ( sleep 1 ) &
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
903 am_sleep_pid=$!
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
904 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
905 AC_CONFIG_COMMANDS_PRE(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
906 [AC_MSG_CHECKING([that generated files are newer than configure])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
907 if test -n "$am_sleep_pid"; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
908 # Hide warnings about reused PIDs.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
909 wait $am_sleep_pid 2>/dev/null
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
910 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
911 AC_MSG_RESULT([done])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
912 rm -f conftest.file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
913 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
914
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
915 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
916 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
917 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
918 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
919 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
920
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
921 # AM_SILENT_RULES([DEFAULT])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
922 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
923 # Enable less verbose build rules; with the default set to DEFAULT
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
924 # ("yes" being less verbose, "no" or empty being verbose).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
925 AC_DEFUN([AM_SILENT_RULES],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
926 [AC_ARG_ENABLE([silent-rules], [dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
927 AS_HELP_STRING(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
928 [--enable-silent-rules],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
929 [less verbose build output (undo: "make V=1")])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
930 AS_HELP_STRING(
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
931 [--disable-silent-rules],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
932 [verbose build output (undo: "make V=0")])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
933 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
934 case $enable_silent_rules in @%:@ (((
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
935 yes) AM_DEFAULT_VERBOSITY=0;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
936 no) AM_DEFAULT_VERBOSITY=1;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
937 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
938 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
939 dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
940 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
941 dnl do not support nested variable expansions.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
942 dnl See automake bug#9928 and bug#10237.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
943 am_make=${MAKE-make}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
944 AC_CACHE_CHECK([whether $am_make supports nested variables],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
945 [am_cv_make_support_nested_variables],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
946 [if AS_ECHO([['TRUE=$(BAR$(V))
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
947 BAR0=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
948 BAR1=true
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
949 V=1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
950 am__doit:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
951 @$(TRUE)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
952 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
953 am_cv_make_support_nested_variables=yes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
954 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
955 am_cv_make_support_nested_variables=no
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
956 fi])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
957 if test $am_cv_make_support_nested_variables = yes; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
958 dnl Using '$V' instead of '$(V)' breaks IRIX make.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
959 AM_V='$(V)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
960 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
961 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
962 AM_V=$AM_DEFAULT_VERBOSITY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
963 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
964 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
965 AC_SUBST([AM_V])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
966 AM_SUBST_NOTMAKE([AM_V])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
967 AC_SUBST([AM_DEFAULT_V])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
968 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
969 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
970 AM_BACKSLASH='\'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
971 AC_SUBST([AM_BACKSLASH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
972 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
973 ])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
974
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
975 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
976 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
977 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
978 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
979 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
980
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
981 # AM_PROG_INSTALL_STRIP
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
982 # ---------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
983 # One issue with vendor 'install' (even GNU) is that you can't
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
984 # specify the program used to strip binaries. This is especially
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
985 # annoying in cross-compiling environments, where the build's strip
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
986 # is unlikely to handle the host's binaries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
987 # Fortunately install-sh will honor a STRIPPROG variable, so we
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
988 # always use install-sh in "make install-strip", and initialize
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
989 # STRIPPROG with the value of the STRIP variable (set by the user).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
990 AC_DEFUN([AM_PROG_INSTALL_STRIP],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
991 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
992 # Installed binaries are usually stripped using 'strip' when the user
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
993 # run "make install-strip". However 'strip' might not be the right
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
994 # tool to use in cross-compilation environments, therefore Automake
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
995 # will honor the 'STRIP' environment variable to overrule this program.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
996 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
997 if test "$cross_compiling" != no; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
998 AC_CHECK_TOOL([STRIP], [strip], :)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
999 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1000 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1001 AC_SUBST([INSTALL_STRIP_PROGRAM])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1002
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1003 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1004 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1005 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1006 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1007 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1008
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1009 # _AM_SUBST_NOTMAKE(VARIABLE)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1010 # ---------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1011 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1012 # This macro is traced by Automake.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1013 AC_DEFUN([_AM_SUBST_NOTMAKE])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1014
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1015 # AM_SUBST_NOTMAKE(VARIABLE)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1016 # --------------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1017 # Public sister of _AM_SUBST_NOTMAKE.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1018 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1019
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1020 # Check how to create a tarball. -*- Autoconf -*-
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1021
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1022 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1023 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1024 # This file is free software; the Free Software Foundation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1025 # gives unlimited permission to copy and/or distribute it,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1026 # with or without modifications, as long as this notice is preserved.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1027
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1028 # _AM_PROG_TAR(FORMAT)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1029 # --------------------
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1030 # Check how to create a tarball in format FORMAT.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1031 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1032 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1033 # Substitute a variable $(am__tar) that is a command
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1034 # writing to stdout a FORMAT-tarball containing the directory
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1035 # $tardir.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1036 # tardir=directory && $(am__tar) > result.tar
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1037 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1038 # Substitute a variable $(am__untar) that extract such
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1039 # a tarball read from stdin.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1040 # $(am__untar) < result.tar
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1041 #
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1042 AC_DEFUN([_AM_PROG_TAR],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1043 [# Always define AMTAR for backward compatibility. Yes, it's still used
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1044 # in the wild :-( We should find a proper way to deprecate it ...
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1045 AC_SUBST([AMTAR], ['$${TAR-tar}'])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1046
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1047 # We'll loop over all known methods to create a tar archive until one works.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1048 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1049
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1050 m4_if([$1], [v7],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1051 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1052
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1053 [m4_case([$1],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1054 [ustar],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1055 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1056 # There is notably a 21 bits limit for the UID and the GID. In fact,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1057 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1058 # and bug#13588).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1059 am_max_uid=2097151 # 2^21 - 1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1060 am_max_gid=$am_max_uid
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1061 # The $UID and $GID variables are not portable, so we need to resort
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1062 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1063 # below are definitely unexpected, so allow the users to see them
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1064 # (that is, avoid stderr redirection).
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1065 am_uid=`id -u || echo unknown`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1066 am_gid=`id -g || echo unknown`
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1067 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1068 if test $am_uid -le $am_max_uid; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1069 AC_MSG_RESULT([yes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1070 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1071 AC_MSG_RESULT([no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1072 _am_tools=none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1073 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1074 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1075 if test $am_gid -le $am_max_gid; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1076 AC_MSG_RESULT([yes])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1077 else
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1078 AC_MSG_RESULT([no])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1079 _am_tools=none
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1080 fi],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1081
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1082 [pax],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1083 [],
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1084
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1085 [m4_fatal([Unknown tar format])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1086
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1087 AC_MSG_CHECKING([how to create a $1 tar archive])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1088
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1089 # Go ahead even if we have the value already cached. We do so because we
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1090 # need to set the values for the 'am__tar' and 'am__untar' variables.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1091 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1092
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1093 for _am_tool in $_am_tools; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1094 case $_am_tool in
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1095 gnutar)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1096 for _am_tar in tar gnutar gtar; do
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1097 AM_RUN_LOG([$_am_tar --version]) && break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1098 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1099 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1100 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1101 am__untar="$_am_tar -xf -"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1102 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1103 plaintar)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1104 # Must skip GNU tar: if it does not support --format= it doesn't create
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1105 # ustar tarball either.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1106 (tar --version) >/dev/null 2>&1 && continue
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1107 am__tar='tar chf - "$$tardir"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1108 am__tar_='tar chf - "$tardir"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1109 am__untar='tar xf -'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1110 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1111 pax)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1112 am__tar='pax -L -x $1 -w "$$tardir"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1113 am__tar_='pax -L -x $1 -w "$tardir"'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1114 am__untar='pax -r'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1115 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1116 cpio)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1117 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1118 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1119 am__untar='cpio -i -H $1 -d'
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1120 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1121 none)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1122 am__tar=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1123 am__tar_=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1124 am__untar=false
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1125 ;;
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1126 esac
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1127
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1128 # If the value was cached, stop now. We just wanted to have am__tar
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1129 # and am__untar set.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1130 test -n "${am_cv_prog_tar_$1}" && break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1131
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1132 # tar/untar a dummy directory, and stop if the command works.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1133 rm -rf conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1134 mkdir conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1135 echo GrepMe > conftest.dir/file
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1136 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1137 rm -rf conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1138 if test -s conftest.tar; then
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1139 AM_RUN_LOG([$am__untar <conftest.tar])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1140 AM_RUN_LOG([cat conftest.dir/file])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1141 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1142 fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1143 done
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1144 rm -rf conftest.dir
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1145
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1146 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1147 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1148
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1149 AC_SUBST([am__tar])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1150 AC_SUBST([am__untar])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1151 ]) # _AM_PROG_TAR
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1152
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1153 m4_include([m4/general.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1154 m4_include([m4/hpdf.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1155 m4_include([m4/java.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1156 m4_include([m4/lf_x11.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1157 m4_include([m4/libtool.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1158 m4_include([m4/ltoptions.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1159 m4_include([m4/ltsugar.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1160 m4_include([m4/ltversion.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1161 m4_include([m4/lt~obsolete.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1162 m4_include([m4/mysql.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1163 m4_include([m4/pngdriver.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1164 m4_include([m4/postgresql.m4])
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1165 m4_include([m4/sgi.m4])