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