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