ide/dialogs/FontPicker: Tweak for better font row height
[sdk] / deps / libffi-3.0.11 / 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.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
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 # ===========================================================================
23 #      http://www.gnu.org/software/autoconf-archive/ax_append_flag.html
24 # ===========================================================================
25 #
26 # SYNOPSIS
27 #
28 #   AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE])
29 #
30 # DESCRIPTION
31 #
32 #   FLAG is appended to the FLAGS-VARIABLE shell variable, with a space
33 #   added in between.
34 #
35 #   If FLAGS-VARIABLE is not specified, the current language's flags (e.g.
36 #   CFLAGS) is used.  FLAGS-VARIABLE is not changed if it already contains
37 #   FLAG.  If FLAGS-VARIABLE is unset in the shell, it is set to exactly
38 #   FLAG.
39 #
40 #   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION.
41 #
42 # LICENSE
43 #
44 #   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
45 #   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
46 #
47 #   This program is free software: you can redistribute it and/or modify it
48 #   under the terms of the GNU General Public License as published by the
49 #   Free Software Foundation, either version 3 of the License, or (at your
50 #   option) any later version.
51 #
52 #   This program is distributed in the hope that it will be useful, but
53 #   WITHOUT ANY WARRANTY; without even the implied warranty of
54 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
55 #   Public License for more details.
56 #
57 #   You should have received a copy of the GNU General Public License along
58 #   with this program. If not, see <http://www.gnu.org/licenses/>.
59 #
60 #   As a special exception, the respective Autoconf Macro's copyright owner
61 #   gives unlimited permission to copy, distribute and modify the configure
62 #   scripts that are the output of Autoconf when processing the Macro. You
63 #   need not follow the terms of the GNU General Public License when using
64 #   or distributing such scripts, even though portions of the text of the
65 #   Macro appear in them. The GNU General Public License (GPL) does govern
66 #   all other use of the material that constitutes the Autoconf Macro.
67 #
68 #   This special exception to the GPL applies to versions of the Autoconf
69 #   Macro released by the Autoconf Archive. When you make and distribute a
70 #   modified version of the Autoconf Macro, you may extend this special
71 #   exception to the GPL to apply to your modified version as well.
72
73 #serial 2
74
75 AC_DEFUN([AX_APPEND_FLAG],
76 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
77 AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])dnl
78 AS_VAR_SET_IF(FLAGS,
79   [case " AS_VAR_GET(FLAGS) " in
80     *" $1 "*)
81       AC_RUN_LOG([: FLAGS already contains $1])
82       ;;
83     *)
84       AC_RUN_LOG([: FLAGS="$FLAGS $1"])
85       AS_VAR_SET(FLAGS, ["AS_VAR_GET(FLAGS) $1"])
86       ;;
87    esac],
88   [AS_VAR_SET(FLAGS,["$1"])])
89 AS_VAR_POPDEF([FLAGS])dnl
90 ])dnl AX_APPEND_FLAG
91
92 # ===========================================================================
93 #   http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
94 # ===========================================================================
95 #
96 # SYNOPSIS
97 #
98 #   AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS])
99 #
100 # DESCRIPTION
101 #
102 #   Check whether the given FLAG works with the current language's compiler
103 #   or gives an error.  (Warnings, however, are ignored)
104 #
105 #   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
106 #   success/failure.
107 #
108 #   If EXTRA-FLAGS is defined, it is added to the current language's default
109 #   flags (e.g. CFLAGS) when the check is done.  The check is thus made with
110 #   the flags: "CFLAGS EXTRA-FLAGS FLAG".  This can for example be used to
111 #   force the compiler to issue an error when a bad flag is given.
112 #
113 #   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
114 #   macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
115 #
116 # LICENSE
117 #
118 #   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
119 #   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
120 #
121 #   This program is free software: you can redistribute it and/or modify it
122 #   under the terms of the GNU General Public License as published by the
123 #   Free Software Foundation, either version 3 of the License, or (at your
124 #   option) any later version.
125 #
126 #   This program is distributed in the hope that it will be useful, but
127 #   WITHOUT ANY WARRANTY; without even the implied warranty of
128 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
129 #   Public License for more details.
130 #
131 #   You should have received a copy of the GNU General Public License along
132 #   with this program. If not, see <http://www.gnu.org/licenses/>.
133 #
134 #   As a special exception, the respective Autoconf Macro's copyright owner
135 #   gives unlimited permission to copy, distribute and modify the configure
136 #   scripts that are the output of Autoconf when processing the Macro. You
137 #   need not follow the terms of the GNU General Public License when using
138 #   or distributing such scripts, even though portions of the text of the
139 #   Macro appear in them. The GNU General Public License (GPL) does govern
140 #   all other use of the material that constitutes the Autoconf Macro.
141 #
142 #   This special exception to the GPL applies to versions of the Autoconf
143 #   Macro released by the Autoconf Archive. When you make and distribute a
144 #   modified version of the Autoconf Macro, you may extend this special
145 #   exception to the GPL to apply to your modified version as well.
146
147 #serial 2
148
149 AC_DEFUN([AX_CHECK_COMPILE_FLAG],
150 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
151 AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl
152 AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
153   ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
154   _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1"
155   AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
156     [AS_VAR_SET(CACHEVAR,[yes])],
157     [AS_VAR_SET(CACHEVAR,[no])])
158   _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags])
159 AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes],
160   [m4_default([$2], :)],
161   [m4_default([$3], :)])
162 AS_VAR_POPDEF([CACHEVAR])dnl
163 ])dnl AX_CHECK_COMPILE_FLAGS
164
165 # ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
166 #
167 #   Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc.
168 #   Written by Thomas Tanner, 1999
169 #
170 # This file is free software; the Free Software Foundation gives
171 # unlimited permission to copy and/or distribute it, with or without
172 # modifications, as long as this notice is preserved.
173
174 # serial 18 LTDL_INIT
175
176 # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
177 # ------------------------------------------
178 # DIRECTORY contains the libltdl sources.  It is okay to call this
179 # function multiple times, as long as the same DIRECTORY is always given.
180 AC_DEFUN([LT_CONFIG_LTDL_DIR],
181 [AC_BEFORE([$0], [LTDL_INIT])
182 _$0($*)
183 ])# LT_CONFIG_LTDL_DIR
184
185 # We break this out into a separate macro, so that we can call it safely
186 # internally without being caught accidentally by the sed scan in libtoolize.
187 m4_defun([_LT_CONFIG_LTDL_DIR],
188 [dnl remove trailing slashes
189 m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
190 m4_case(_LTDL_DIR,
191         [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
192              m4_if(_ARG_DIR, [.],
193                      [],
194                  [m4_define([_LTDL_DIR], _ARG_DIR)
195                   _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
196     [m4_if(_ARG_DIR, _LTDL_DIR,
197             [],
198         [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
199 m4_popdef([_ARG_DIR])
200 ])# _LT_CONFIG_LTDL_DIR
201
202 # Initialise:
203 m4_define([_LTDL_DIR], [])
204
205
206 # _LT_BUILD_PREFIX
207 # ----------------
208 # If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
209 # to `${top_builddir}/'.
210 m4_define([_LT_BUILD_PREFIX],
211 [m4_ifdef([AC_AUTOCONF_VERSION],
212    [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
213           [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
214                           [${top_build_prefix}],
215                           [${top_builddir}/])],
216           [${top_build_prefix}])],
217    [${top_builddir}/])[]dnl
218 ])
219
220
221 # LTDL_CONVENIENCE
222 # ----------------
223 # sets LIBLTDL to the link flags for the libltdl convenience library and
224 # LTDLINCL to the include flags for the libltdl header and adds
225 # --enable-ltdl-convenience to the configure arguments.  Note that
226 # AC_CONFIG_SUBDIRS is not called here.  LIBLTDL will be prefixed with
227 # '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
228 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
229 # quotes!).  If your package is not flat and you're not using automake,
230 # define top_build_prefix, top_builddir, and top_srcdir appropriately
231 # in your Makefiles.
232 AC_DEFUN([LTDL_CONVENIENCE],
233 [AC_BEFORE([$0], [LTDL_INIT])dnl
234 dnl Although the argument is deprecated and no longer documented,
235 dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
236 dnl here make sure it is the same as any other declaration of libltdl's
237 dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
238 dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
239 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
240 _$0()
241 ])# LTDL_CONVENIENCE
242
243 # AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
244 # now we have LT_CONFIG_LTDL_DIR:
245 AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
246 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
247 _LTDL_CONVENIENCE])
248
249 dnl aclocal-1.4 backwards compatibility:
250 dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
251
252
253 # _LTDL_CONVENIENCE
254 # -----------------
255 # Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
256 m4_defun([_LTDL_CONVENIENCE],
257 [case $enable_ltdl_convenience in
258   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
259   "") enable_ltdl_convenience=yes
260       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
261 esac
262 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
263 LTDLDEPS=$LIBLTDL
264 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
265
266 AC_SUBST([LIBLTDL])
267 AC_SUBST([LTDLDEPS])
268 AC_SUBST([LTDLINCL])
269
270 # For backwards non-gettext consistent compatibility...
271 INCLTDL="$LTDLINCL"
272 AC_SUBST([INCLTDL])
273 ])# _LTDL_CONVENIENCE
274
275
276 # LTDL_INSTALLABLE
277 # ----------------
278 # sets LIBLTDL to the link flags for the libltdl installable library
279 # and LTDLINCL to the include flags for the libltdl header and adds
280 # --enable-ltdl-install to the configure arguments.  Note that
281 # AC_CONFIG_SUBDIRS is not called from here.  If an installed libltdl
282 # is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
283 # available, otherwise with '${top_builddir}/', and LTDLINCL will be
284 # prefixed with '${top_srcdir}/' (note the single quotes!).  If your
285 # package is not flat and you're not using automake, define top_build_prefix,
286 # top_builddir, and top_srcdir appropriately in your Makefiles.
287 # In the future, this macro may have to be called after LT_INIT.
288 AC_DEFUN([LTDL_INSTALLABLE],
289 [AC_BEFORE([$0], [LTDL_INIT])dnl
290 dnl Although the argument is deprecated and no longer documented,
291 dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
292 dnl here make sure it is the same as any other declaration of libltdl's
293 dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
294 dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
295 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
296 _$0()
297 ])# LTDL_INSTALLABLE
298
299 # AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
300 # now we have LT_CONFIG_LTDL_DIR:
301 AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
302 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
303 _LTDL_INSTALLABLE])
304
305 dnl aclocal-1.4 backwards compatibility:
306 dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
307
308
309 # _LTDL_INSTALLABLE
310 # -----------------
311 # Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
312 m4_defun([_LTDL_INSTALLABLE],
313 [if test -f $prefix/lib/libltdl.la; then
314   lt_save_LDFLAGS="$LDFLAGS"
315   LDFLAGS="-L$prefix/lib $LDFLAGS"
316   AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
317   LDFLAGS="$lt_save_LDFLAGS"
318   if test x"${lt_lib_ltdl-no}" = xyes; then
319     if test x"$enable_ltdl_install" != xyes; then
320       # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
321       AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install'])
322       enable_ltdl_install=no
323     fi
324   elif test x"$enable_ltdl_install" = xno; then
325     AC_MSG_WARN([libltdl not installed, but installation disabled])
326   fi
327 fi
328
329 # If configure.ac declared an installable ltdl, and the user didn't override
330 # with --disable-ltdl-install, we will install the shipped libltdl.
331 case $enable_ltdl_install in
332   no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
333       LIBLTDL="-lltdl"
334       LTDLDEPS=
335       LTDLINCL=
336       ;;
337   *)  enable_ltdl_install=yes
338       ac_configure_args="$ac_configure_args --enable-ltdl-install"
339       LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
340       LTDLDEPS=$LIBLTDL
341       LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
342       ;;
343 esac
344
345 AC_SUBST([LIBLTDL])
346 AC_SUBST([LTDLDEPS])
347 AC_SUBST([LTDLINCL])
348
349 # For backwards non-gettext consistent compatibility...
350 INCLTDL="$LTDLINCL"
351 AC_SUBST([INCLTDL])
352 ])# LTDL_INSTALLABLE
353
354
355 # _LTDL_MODE_DISPATCH
356 # -------------------
357 m4_define([_LTDL_MODE_DISPATCH],
358 [dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
359 m4_if(_LTDL_DIR, [],
360         [],
361     dnl if _LTDL_MODE was not set already, the default value is `subproject':
362     [m4_case(m4_default(_LTDL_MODE, [subproject]),
363           [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
364                           _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
365           [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
366           [recursive], [],
367         [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
368 dnl Be careful not to expand twice:
369 m4_define([$0], [])
370 ])# _LTDL_MODE_DISPATCH
371
372
373 # _LT_LIBOBJ(MODULE_NAME)
374 # -----------------------
375 # Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
376 # of into LIBOBJS.
377 AC_DEFUN([_LT_LIBOBJ], [
378   m4_pattern_allow([^_LT_LIBOBJS$])
379   _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
380 ])# _LT_LIBOBJS
381
382
383 # LTDL_INIT([OPTIONS])
384 # --------------------
385 # Clients of libltdl can use this macro to allow the installer to
386 # choose between a shipped copy of the ltdl sources or a preinstalled
387 # version of the library.  If the shipped ltdl sources are not in a
388 # subdirectory named libltdl, the directory name must be given by
389 # LT_CONFIG_LTDL_DIR.
390 AC_DEFUN([LTDL_INIT],
391 [dnl Parse OPTIONS
392 _LT_SET_OPTIONS([$0], [$1])
393
394 dnl We need to keep our own list of libobjs separate from our parent project,
395 dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
396 dnl we look for our own LIBOBJs.
397 m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
398 m4_pushdef([AC_LIBSOURCES])
399
400 dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
401 m4_if(_LTDL_MODE, [],
402         [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
403         m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
404                 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
405
406 AC_ARG_WITH([included_ltdl],
407     [AS_HELP_STRING([--with-included-ltdl],
408                     [use the GNU ltdl sources included here])])
409
410 if test "x$with_included_ltdl" != xyes; then
411   # We are not being forced to use the included libltdl sources, so
412   # decide whether there is a useful installed version we can use.
413   AC_CHECK_HEADER([ltdl.h],
414       [AC_CHECK_DECL([lt_dlinterface_register],
415            [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
416                [with_included_ltdl=no],
417                [with_included_ltdl=yes])],
418            [with_included_ltdl=yes],
419            [AC_INCLUDES_DEFAULT
420             #include <ltdl.h>])],
421       [with_included_ltdl=yes],
422       [AC_INCLUDES_DEFAULT]
423   )
424 fi
425
426 dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
427 dnl was called yet, then for old times' sake, we assume libltdl is in an
428 dnl eponymous directory:
429 AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
430
431 AC_ARG_WITH([ltdl_include],
432     [AS_HELP_STRING([--with-ltdl-include=DIR],
433                     [use the ltdl headers installed in DIR])])
434
435 if test -n "$with_ltdl_include"; then
436   if test -f "$with_ltdl_include/ltdl.h"; then :
437   else
438     AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
439   fi
440 else
441   with_ltdl_include=no
442 fi
443
444 AC_ARG_WITH([ltdl_lib],
445     [AS_HELP_STRING([--with-ltdl-lib=DIR],
446                     [use the libltdl.la installed in DIR])])
447
448 if test -n "$with_ltdl_lib"; then
449   if test -f "$with_ltdl_lib/libltdl.la"; then :
450   else
451     AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
452   fi
453 else
454   with_ltdl_lib=no
455 fi
456
457 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
458   ,yes,no,no,)
459         m4_case(m4_default(_LTDL_TYPE, [convenience]),
460             [convenience], [_LTDL_CONVENIENCE],
461             [installable], [_LTDL_INSTALLABLE],
462           [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
463         ;;
464   ,no,no,no,)
465         # If the included ltdl is not to be used, then use the
466         # preinstalled libltdl we found.
467         AC_DEFINE([HAVE_LTDL], [1],
468           [Define this if a modern libltdl is already installed])
469         LIBLTDL=-lltdl
470         LTDLDEPS=
471         LTDLINCL=
472         ;;
473   ,no*,no,*)
474         AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
475         ;;
476   *)    with_included_ltdl=no
477         LIBLTDL="-L$with_ltdl_lib -lltdl"
478         LTDLDEPS=
479         LTDLINCL="-I$with_ltdl_include"
480         ;;
481 esac
482 INCLTDL="$LTDLINCL"
483
484 # Report our decision...
485 AC_MSG_CHECKING([where to find libltdl headers])
486 AC_MSG_RESULT([$LTDLINCL])
487 AC_MSG_CHECKING([where to find libltdl library])
488 AC_MSG_RESULT([$LIBLTDL])
489
490 _LTDL_SETUP
491
492 dnl restore autoconf definition.
493 m4_popdef([AC_LIBOBJ])
494 m4_popdef([AC_LIBSOURCES])
495
496 AC_CONFIG_COMMANDS_PRE([
497     _ltdl_libobjs=
498     _ltdl_ltlibobjs=
499     if test -n "$_LT_LIBOBJS"; then
500       # Remove the extension.
501       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
502       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
503         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
504         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
505       done
506     fi
507     AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
508     AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
509 ])
510
511 # Only expand once:
512 m4_define([LTDL_INIT])
513 ])# LTDL_INIT
514
515 # Old names:
516 AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
517 AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
518 AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
519 dnl aclocal-1.4 backwards compatibility:
520 dnl AC_DEFUN([AC_LIB_LTDL], [])
521 dnl AC_DEFUN([AC_WITH_LTDL], [])
522 dnl AC_DEFUN([LT_WITH_LTDL], [])
523
524
525 # _LTDL_SETUP
526 # -----------
527 # Perform all the checks necessary for compilation of the ltdl objects
528 #  -- including compiler checks and header checks.  This is a public
529 # interface  mainly for the benefit of libltdl's own configure.ac, most
530 # other users should call LTDL_INIT instead.
531 AC_DEFUN([_LTDL_SETUP],
532 [AC_REQUIRE([AC_PROG_CC])dnl
533 AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
534 AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
535 AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
536 AC_REQUIRE([LT_LIB_DLLOAD])dnl
537 AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
538 AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
539 AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
540 AC_REQUIRE([gl_FUNC_ARGZ])dnl
541
542 m4_require([_LT_CHECK_OBJDIR])dnl
543 m4_require([_LT_HEADER_DLFCN])dnl
544 m4_require([_LT_CHECK_DLPREOPEN])dnl
545 m4_require([_LT_DECL_SED])dnl
546
547 dnl Don't require this, or it will be expanded earlier than the code
548 dnl that sets the variables it relies on:
549 _LT_ENABLE_INSTALL
550
551 dnl _LTDL_MODE specific code must be called at least once:
552 _LTDL_MODE_DISPATCH
553
554 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
555 # the user used.  This is so that ltdl.h can pick up the parent projects
556 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
557 # definitions required by ltdl.c.
558 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
559 AC_CONFIG_COMMANDS_PRE([dnl
560 m4_pattern_allow([^LT_CONFIG_H$])dnl
561 m4_ifset([AH_HEADER],
562     [LT_CONFIG_H=AH_HEADER],
563     [m4_ifset([AC_LIST_HEADERS],
564             [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[      ]]*,,;s,[[ :]].*$,,'`],
565         [])])])
566 AC_SUBST([LT_CONFIG_H])
567
568 AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
569         [], [], [AC_INCLUDES_DEFAULT])
570
571 AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
572 AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
573
574 m4_pattern_allow([LT_LIBEXT])dnl
575 AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
576
577 name=
578 eval "lt_libprefix=\"$libname_spec\""
579 m4_pattern_allow([LT_LIBPREFIX])dnl
580 AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix])
581
582 name=ltdl
583 eval "LTDLOPEN=\"$libname_spec\""
584 AC_SUBST([LTDLOPEN])
585 ])# _LTDL_SETUP
586
587
588 # _LT_ENABLE_INSTALL
589 # ------------------
590 m4_define([_LT_ENABLE_INSTALL],
591 [AC_ARG_ENABLE([ltdl-install],
592     [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
593
594 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
595   *yes*) ;;
596   *) enable_ltdl_convenience=yes ;;
597 esac
598
599 m4_ifdef([AM_CONDITIONAL],
600 [AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
601  AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
602 ])# _LT_ENABLE_INSTALL
603
604
605 # LT_SYS_DLOPEN_DEPLIBS
606 # ---------------------
607 AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
608 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
609 AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
610   [lt_cv_sys_dlopen_deplibs],
611   [# PORTME does your system automatically load deplibs for dlopen?
612   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
613   # For now, we just catch OSes we know something about -- in the
614   # future, we'll try test this programmatically.
615   lt_cv_sys_dlopen_deplibs=unknown
616   case $host_os in
617   aix3*|aix4.1.*|aix4.2.*)
618     # Unknown whether this is true for these versions of AIX, but
619     # we want this `case' here to explicitly catch those versions.
620     lt_cv_sys_dlopen_deplibs=unknown
621     ;;
622   aix[[4-9]]*)
623     lt_cv_sys_dlopen_deplibs=yes
624     ;;
625   amigaos*)
626     case $host_cpu in
627     powerpc)
628       lt_cv_sys_dlopen_deplibs=no
629       ;;
630     esac
631     ;;
632   darwin*)
633     # Assuming the user has installed a libdl from somewhere, this is true
634     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
635     lt_cv_sys_dlopen_deplibs=yes
636     ;;
637   freebsd* | dragonfly*)
638     lt_cv_sys_dlopen_deplibs=yes
639     ;;
640   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
641     # GNU and its variants, using gnu ld.so (Glibc)
642     lt_cv_sys_dlopen_deplibs=yes
643     ;;
644   hpux10*|hpux11*)
645     lt_cv_sys_dlopen_deplibs=yes
646     ;;
647   interix*)
648     lt_cv_sys_dlopen_deplibs=yes
649     ;;
650   irix[[12345]]*|irix6.[[01]]*)
651     # Catch all versions of IRIX before 6.2, and indicate that we don't
652     # know how it worked for any of those versions.
653     lt_cv_sys_dlopen_deplibs=unknown
654     ;;
655   irix*)
656     # The case above catches anything before 6.2, and it's known that
657     # at 6.2 and later dlopen does load deplibs.
658     lt_cv_sys_dlopen_deplibs=yes
659     ;;
660   netbsd*)
661     lt_cv_sys_dlopen_deplibs=yes
662     ;;
663   openbsd*)
664     lt_cv_sys_dlopen_deplibs=yes
665     ;;
666   osf[[1234]]*)
667     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
668     # it did *not* use an RPATH in a shared library to find objects the
669     # library depends on, so we explicitly say `no'.
670     lt_cv_sys_dlopen_deplibs=no
671     ;;
672   osf5.0|osf5.0a|osf5.1)
673     # dlopen *does* load deplibs and with the right loader patch applied
674     # it even uses RPATH in a shared library to search for shared objects
675     # that the library depends on, but there's no easy way to know if that
676     # patch is installed.  Since this is the case, all we can really
677     # say is unknown -- it depends on the patch being installed.  If
678     # it is, this changes to `yes'.  Without it, it would be `no'.
679     lt_cv_sys_dlopen_deplibs=unknown
680     ;;
681   osf*)
682     # the two cases above should catch all versions of osf <= 5.1.  Read
683     # the comments above for what we know about them.
684     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
685     # is used to find them so we can finally say `yes'.
686     lt_cv_sys_dlopen_deplibs=yes
687     ;;
688   qnx*)
689     lt_cv_sys_dlopen_deplibs=yes
690     ;;
691   solaris*)
692     lt_cv_sys_dlopen_deplibs=yes
693     ;;
694   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
695     libltdl_cv_sys_dlopen_deplibs=yes
696     ;;
697   esac
698   ])
699 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
700  AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
701     [Define if the OS needs help to load dependent libraries for dlopen().])
702 fi
703 ])# LT_SYS_DLOPEN_DEPLIBS
704
705 # Old name:
706 AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
707 dnl aclocal-1.4 backwards compatibility:
708 dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
709
710
711 # LT_SYS_MODULE_EXT
712 # -----------------
713 AC_DEFUN([LT_SYS_MODULE_EXT],
714 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
715 AC_CACHE_CHECK([which extension is used for runtime loadable modules],
716   [libltdl_cv_shlibext],
717 [
718 module=yes
719 eval libltdl_cv_shlibext=$shrext_cmds
720   ])
721 if test -n "$libltdl_cv_shlibext"; then
722   m4_pattern_allow([LT_MODULE_EXT])dnl
723   AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
724     [Define to the extension used for runtime loadable modules, say, ".so".])
725 fi
726 ])# LT_SYS_MODULE_EXT
727
728 # Old name:
729 AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
730 dnl aclocal-1.4 backwards compatibility:
731 dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
732
733
734 # LT_SYS_MODULE_PATH
735 # ------------------
736 AC_DEFUN([LT_SYS_MODULE_PATH],
737 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
738 AC_CACHE_CHECK([which variable specifies run-time module search path],
739   [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
740 if test -n "$lt_cv_module_path_var"; then
741   m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
742   AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
743     [Define to the name of the environment variable that determines the run-time module search path.])
744 fi
745 ])# LT_SYS_MODULE_PATH
746
747 # Old name:
748 AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
749 dnl aclocal-1.4 backwards compatibility:
750 dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
751
752
753 # LT_SYS_DLSEARCH_PATH
754 # --------------------
755 AC_DEFUN([LT_SYS_DLSEARCH_PATH],
756 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
757 AC_CACHE_CHECK([for the default library search path],
758   [lt_cv_sys_dlsearch_path],
759   [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
760 if test -n "$lt_cv_sys_dlsearch_path"; then
761   sys_dlsearch_path=
762   for dir in $lt_cv_sys_dlsearch_path; do
763     if test -z "$sys_dlsearch_path"; then
764       sys_dlsearch_path="$dir"
765     else
766       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
767     fi
768   done
769   m4_pattern_allow([LT_DLSEARCH_PATH])dnl
770   AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
771     [Define to the system default library search path.])
772 fi
773 ])# LT_SYS_DLSEARCH_PATH
774
775 # Old name:
776 AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
777 dnl aclocal-1.4 backwards compatibility:
778 dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
779
780
781 # _LT_CHECK_DLPREOPEN
782 # -------------------
783 m4_defun([_LT_CHECK_DLPREOPEN],
784 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
785 AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
786   [libltdl_cv_preloaded_symbols],
787   [if test -n "$lt_cv_sys_global_symbol_pipe"; then
788     libltdl_cv_preloaded_symbols=yes
789   else
790     libltdl_cv_preloaded_symbols=no
791   fi
792   ])
793 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
794   AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
795     [Define if libtool can extract symbol lists from object files.])
796 fi
797 ])# _LT_CHECK_DLPREOPEN
798
799
800 # LT_LIB_DLLOAD
801 # -------------
802 AC_DEFUN([LT_LIB_DLLOAD],
803 [m4_pattern_allow([^LT_DLLOADERS$])
804 LT_DLLOADERS=
805 AC_SUBST([LT_DLLOADERS])
806
807 AC_LANG_PUSH([C])
808
809 LIBADD_DLOPEN=
810 AC_SEARCH_LIBS([dlopen], [dl],
811         [AC_DEFINE([HAVE_LIBDL], [1],
812                    [Define if you have the libdl library or equivalent.])
813         if test "$ac_cv_search_dlopen" != "none required" ; then
814           LIBADD_DLOPEN="-ldl"
815         fi
816         libltdl_cv_lib_dl_dlopen="yes"
817         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
818     [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
819 #  include <dlfcn.h>
820 #endif
821     ]], [[dlopen(0, 0);]])],
822             [AC_DEFINE([HAVE_LIBDL], [1],
823                        [Define if you have the libdl library or equivalent.])
824             libltdl_cv_func_dlopen="yes"
825             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
826         [AC_CHECK_LIB([svld], [dlopen],
827                 [AC_DEFINE([HAVE_LIBDL], [1],
828                          [Define if you have the libdl library or equivalent.])
829                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
830                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
831 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
832 then
833   lt_save_LIBS="$LIBS"
834   LIBS="$LIBS $LIBADD_DLOPEN"
835   AC_CHECK_FUNCS([dlerror])
836   LIBS="$lt_save_LIBS"
837 fi
838 AC_SUBST([LIBADD_DLOPEN])
839
840 LIBADD_SHL_LOAD=
841 AC_CHECK_FUNC([shl_load],
842         [AC_DEFINE([HAVE_SHL_LOAD], [1],
843                    [Define if you have the shl_load function.])
844         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
845     [AC_CHECK_LIB([dld], [shl_load],
846             [AC_DEFINE([HAVE_SHL_LOAD], [1],
847                        [Define if you have the shl_load function.])
848             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
849             LIBADD_SHL_LOAD="-ldld"])])
850 AC_SUBST([LIBADD_SHL_LOAD])
851
852 case $host_os in
853 darwin[[1567]].*)
854 # We only want this for pre-Mac OS X 10.4.
855   AC_CHECK_FUNC([_dyld_func_lookup],
856         [AC_DEFINE([HAVE_DYLD], [1],
857                    [Define if you have the _dyld_func_lookup function.])
858         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
859   ;;
860 beos*)
861   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
862   ;;
863 cygwin* | mingw* | os2* | pw32*)
864   AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
865   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
866   ;;
867 esac
868
869 AC_CHECK_LIB([dld], [dld_link],
870         [AC_DEFINE([HAVE_DLD], [1],
871                    [Define if you have the GNU dld library.])
872                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
873 AC_SUBST([LIBADD_DLD_LINK])
874
875 m4_pattern_allow([^LT_DLPREOPEN$])
876 LT_DLPREOPEN=
877 if test -n "$LT_DLLOADERS"
878 then
879   for lt_loader in $LT_DLLOADERS; do
880     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
881   done
882   AC_DEFINE([HAVE_LIBDLLOADER], [1],
883             [Define if libdlloader will be built on this platform])
884 fi
885 AC_SUBST([LT_DLPREOPEN])
886
887 dnl This isn't used anymore, but set it for backwards compatibility
888 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
889 AC_SUBST([LIBADD_DL])
890
891 AC_LANG_POP
892 ])# LT_LIB_DLLOAD
893
894 # Old name:
895 AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
896 dnl aclocal-1.4 backwards compatibility:
897 dnl AC_DEFUN([AC_LTDL_DLLIB], [])
898
899
900 # LT_SYS_SYMBOL_USCORE
901 # --------------------
902 # does the compiler prefix global symbols with an underscore?
903 AC_DEFUN([LT_SYS_SYMBOL_USCORE],
904 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
905 AC_CACHE_CHECK([for _ prefix in compiled symbols],
906   [lt_cv_sys_symbol_underscore],
907   [lt_cv_sys_symbol_underscore=no
908   cat > conftest.$ac_ext <<_LT_EOF
909 void nm_test_func(){}
910 int main(){nm_test_func;return 0;}
911 _LT_EOF
912   if AC_TRY_EVAL(ac_compile); then
913     # Now try to grab the symbols.
914     ac_nlist=conftest.nm
915     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
916       # See whether the symbols have a leading underscore.
917       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
918         lt_cv_sys_symbol_underscore=yes
919       else
920         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
921           :
922         else
923           echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
924         fi
925       fi
926     else
927       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
928     fi
929   else
930     echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
931     cat conftest.c >&AS_MESSAGE_LOG_FD
932   fi
933   rm -rf conftest*
934   ])
935   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
936   AC_SUBST([sys_symbol_underscore])
937 ])# LT_SYS_SYMBOL_USCORE
938
939 # Old name:
940 AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
941 dnl aclocal-1.4 backwards compatibility:
942 dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
943
944
945 # LT_FUNC_DLSYM_USCORE
946 # --------------------
947 AC_DEFUN([LT_FUNC_DLSYM_USCORE],
948 [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
949 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
950   if test x"$libltdl_cv_func_dlopen" = xyes ||
951      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
952         AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
953           [libltdl_cv_need_uscore],
954           [libltdl_cv_need_uscore=unknown
955           save_LIBS="$LIBS"
956           LIBS="$LIBS $LIBADD_DLOPEN"
957           _LT_TRY_DLOPEN_SELF(
958             [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
959             [],                          [libltdl_cv_need_uscore=cross])
960           LIBS="$save_LIBS"
961         ])
962   fi
963 fi
964
965 if test x"$libltdl_cv_need_uscore" = xyes; then
966   AC_DEFINE([NEED_USCORE], [1],
967     [Define if dlsym() requires a leading underscore in symbol names.])
968 fi
969 ])# LT_FUNC_DLSYM_USCORE
970
971 # Old name:
972 AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
973 dnl aclocal-1.4 backwards compatibility:
974 dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
975
976 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
977 #
978 # This file is free software; the Free Software Foundation
979 # gives unlimited permission to copy and/or distribute it,
980 # with or without modifications, as long as this notice is preserved.
981
982 # AM_AUTOMAKE_VERSION(VERSION)
983 # ----------------------------
984 # Automake X.Y traces this macro to ensure aclocal.m4 has been
985 # generated from the m4 files accompanying Automake X.Y.
986 # (This private macro should not be called outside this file.)
987 AC_DEFUN([AM_AUTOMAKE_VERSION],
988 [am__api_version='1.11'
989 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
990 dnl require some minimum version.  Point them to the right macro.
991 m4_if([$1], [1.11.1], [],
992       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
993 ])
994
995 # _AM_AUTOCONF_VERSION(VERSION)
996 # -----------------------------
997 # aclocal traces this macro to find the Autoconf version.
998 # This is a private macro too.  Using m4_define simplifies
999 # the logic in aclocal, which can simply ignore this definition.
1000 m4_define([_AM_AUTOCONF_VERSION], [])
1001
1002 # AM_SET_CURRENT_AUTOMAKE_VERSION
1003 # -------------------------------
1004 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
1005 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
1006 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1007 [AM_AUTOMAKE_VERSION([1.11.1])dnl
1008 m4_ifndef([AC_AUTOCONF_VERSION],
1009   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1010 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
1011
1012 # Figure out how to run the assembler.                      -*- Autoconf -*-
1013
1014 # Copyright (C) 2001, 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1015 #
1016 # This file is free software; the Free Software Foundation
1017 # gives unlimited permission to copy and/or distribute it,
1018 # with or without modifications, as long as this notice is preserved.
1019
1020 # serial 5
1021
1022 # AM_PROG_AS
1023 # ----------
1024 AC_DEFUN([AM_PROG_AS],
1025 [# By default we simply use the C compiler to build assembly code.
1026 AC_REQUIRE([AC_PROG_CC])
1027 test "${CCAS+set}" = set || CCAS=$CC
1028 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
1029 AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
1030 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
1031 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
1032 ])
1033
1034 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
1035
1036 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1037 #
1038 # This file is free software; the Free Software Foundation
1039 # gives unlimited permission to copy and/or distribute it,
1040 # with or without modifications, as long as this notice is preserved.
1041
1042 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1043 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
1044 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1045 #
1046 # Of course, Automake must honor this variable whenever it calls a
1047 # tool from the auxiliary directory.  The problem is that $srcdir (and
1048 # therefore $ac_aux_dir as well) can be either absolute or relative,
1049 # depending on how configure is run.  This is pretty annoying, since
1050 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
1051 # source directory, any form will work fine, but in subdirectories a
1052 # relative path needs to be adjusted first.
1053 #
1054 # $ac_aux_dir/missing
1055 #    fails when called from a subdirectory if $ac_aux_dir is relative
1056 # $top_srcdir/$ac_aux_dir/missing
1057 #    fails if $ac_aux_dir is absolute,
1058 #    fails when called from a subdirectory in a VPATH build with
1059 #          a relative $ac_aux_dir
1060 #
1061 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1062 # are both prefixed by $srcdir.  In an in-source build this is usually
1063 # harmless because $srcdir is `.', but things will broke when you
1064 # start a VPATH build or use an absolute $srcdir.
1065 #
1066 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1067 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
1068 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1069 # and then we would define $MISSING as
1070 #   MISSING="\${SHELL} $am_aux_dir/missing"
1071 # This will work as long as MISSING is not called from configure, because
1072 # unfortunately $(top_srcdir) has no meaning in configure.
1073 # However there are other variables, like CC, which are often used in
1074 # configure, and could therefore not use this "fixed" $ac_aux_dir.
1075 #
1076 # Another solution, used here, is to always expand $ac_aux_dir to an
1077 # absolute PATH.  The drawback is that using absolute paths prevent a
1078 # configured tree to be moved without reconfiguration.
1079
1080 AC_DEFUN([AM_AUX_DIR_EXPAND],
1081 [dnl Rely on autoconf to set up CDPATH properly.
1082 AC_PREREQ([2.50])dnl
1083 # expand $ac_aux_dir to an absolute path
1084 am_aux_dir=`cd $ac_aux_dir && pwd`
1085 ])
1086
1087 # AM_CONDITIONAL                                            -*- Autoconf -*-
1088
1089 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
1090 # Free Software Foundation, Inc.
1091 #
1092 # This file is free software; the Free Software Foundation
1093 # gives unlimited permission to copy and/or distribute it,
1094 # with or without modifications, as long as this notice is preserved.
1095
1096 # serial 9
1097
1098 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
1099 # -------------------------------------
1100 # Define a conditional.
1101 AC_DEFUN([AM_CONDITIONAL],
1102 [AC_PREREQ(2.52)dnl
1103  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
1104         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1105 AC_SUBST([$1_TRUE])dnl
1106 AC_SUBST([$1_FALSE])dnl
1107 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
1108 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
1109 m4_define([_AM_COND_VALUE_$1], [$2])dnl
1110 if $2; then
1111   $1_TRUE=
1112   $1_FALSE='#'
1113 else
1114   $1_TRUE='#'
1115   $1_FALSE=
1116 fi
1117 AC_CONFIG_COMMANDS_PRE(
1118 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1119   AC_MSG_ERROR([[conditional "$1" was never defined.
1120 Usually this means the macro was only invoked conditionally.]])
1121 fi])])
1122
1123 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
1124 # Free Software Foundation, Inc.
1125 #
1126 # This file is free software; the Free Software Foundation
1127 # gives unlimited permission to copy and/or distribute it,
1128 # with or without modifications, as long as this notice is preserved.
1129
1130 # serial 10
1131
1132 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1133 # written in clear, in which case automake, when reading aclocal.m4,
1134 # will think it sees a *use*, and therefore will trigger all it's
1135 # C support machinery.  Also note that it means that autoscan, seeing
1136 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1137
1138
1139 # _AM_DEPENDENCIES(NAME)
1140 # ----------------------
1141 # See how the compiler implements dependency checking.
1142 # NAME is "CC", "CXX", "GCJ", or "OBJC".
1143 # We try a few techniques and use that to set a single cache variable.
1144 #
1145 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1146 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1147 # dependency, and given that the user is not expected to run this macro,
1148 # just rely on AC_PROG_CC.
1149 AC_DEFUN([_AM_DEPENDENCIES],
1150 [AC_REQUIRE([AM_SET_DEPDIR])dnl
1151 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1152 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1153 AC_REQUIRE([AM_DEP_TRACK])dnl
1154
1155 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
1156        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
1157        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1158        [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
1159        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
1160                    [depcc="$$1"   am_compiler_list=])
1161
1162 AC_CACHE_CHECK([dependency style of $depcc],
1163                [am_cv_$1_dependencies_compiler_type],
1164 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1165   # We make a subdir and do the tests there.  Otherwise we can end up
1166   # making bogus files that we don't know about and never remove.  For
1167   # instance it was reported that on HP-UX the gcc test will end up
1168   # making a dummy file named `D' -- because `-MD' means `put the output
1169   # in D'.
1170   mkdir conftest.dir
1171   # Copy depcomp to subdir because otherwise we won't find it if we're
1172   # using a relative directory.
1173   cp "$am_depcomp" conftest.dir
1174   cd conftest.dir
1175   # We will build objects and dependencies in a subdirectory because
1176   # it helps to detect inapplicable dependency modes.  For instance
1177   # both Tru64's cc and ICC support -MD to output dependencies as a
1178   # side effect of compilation, but ICC will put the dependencies in
1179   # the current directory while Tru64 will put them in the object
1180   # directory.
1181   mkdir sub
1182
1183   am_cv_$1_dependencies_compiler_type=none
1184   if test "$am_compiler_list" = ""; then
1185      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1186   fi
1187   am__universal=false
1188   m4_case([$1], [CC],
1189     [case " $depcc " in #(
1190      *\ -arch\ *\ -arch\ *) am__universal=true ;;
1191      esac],
1192     [CXX],
1193     [case " $depcc " in #(
1194      *\ -arch\ *\ -arch\ *) am__universal=true ;;
1195      esac])
1196
1197   for depmode in $am_compiler_list; do
1198     # Setup a source with many dependencies, because some compilers
1199     # like to wrap large dependency lists on column 80 (with \), and
1200     # we should not choose a depcomp mode which is confused by this.
1201     #
1202     # We need to recreate these files for each test, as the compiler may
1203     # overwrite some of them when testing with obscure command lines.
1204     # This happens at least with the AIX C compiler.
1205     : > sub/conftest.c
1206     for i in 1 2 3 4 5 6; do
1207       echo '#include "conftst'$i'.h"' >> sub/conftest.c
1208       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1209       # Solaris 8's {/usr,}/bin/sh.
1210       touch sub/conftst$i.h
1211     done
1212     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1213
1214     # We check with `-c' and `-o' for the sake of the "dashmstdout"
1215     # mode.  It turns out that the SunPro C++ compiler does not properly
1216     # handle `-M -o', and we need to detect this.  Also, some Intel
1217     # versions had trouble with output in subdirs
1218     am__obj=sub/conftest.${OBJEXT-o}
1219     am__minus_obj="-o $am__obj"
1220     case $depmode in
1221     gcc)
1222       # This depmode causes a compiler race in universal mode.
1223       test "$am__universal" = false || continue
1224       ;;
1225     nosideeffect)
1226       # after this tag, mechanisms are not by side-effect, so they'll
1227       # only be used when explicitly requested
1228       if test "x$enable_dependency_tracking" = xyes; then
1229         continue
1230       else
1231         break
1232       fi
1233       ;;
1234     msvisualcpp | msvcmsys)
1235       # This compiler won't grok `-c -o', but also, the minuso test has
1236       # not run yet.  These depmodes are late enough in the game, and
1237       # so weak that their functioning should not be impacted.
1238       am__obj=conftest.${OBJEXT-o}
1239       am__minus_obj=
1240       ;;
1241     none) break ;;
1242     esac
1243     if depmode=$depmode \
1244        source=sub/conftest.c object=$am__obj \
1245        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1246        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1247          >/dev/null 2>conftest.err &&
1248        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1249        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1250        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1251        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1252       # icc doesn't choke on unknown options, it will just issue warnings
1253       # or remarks (even with -Werror).  So we grep stderr for any message
1254       # that says an option was ignored or not supported.
1255       # When given -MP, icc 7.0 and 7.1 complain thusly:
1256       #   icc: Command line warning: ignoring option '-M'; no argument required
1257       # The diagnosis changed in icc 8.0:
1258       #   icc: Command line remark: option '-MP' not supported
1259       if (grep 'ignoring option' conftest.err ||
1260           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1261         am_cv_$1_dependencies_compiler_type=$depmode
1262         break
1263       fi
1264     fi
1265   done
1266
1267   cd ..
1268   rm -rf conftest.dir
1269 else
1270   am_cv_$1_dependencies_compiler_type=none
1271 fi
1272 ])
1273 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1274 AM_CONDITIONAL([am__fastdep$1], [
1275   test "x$enable_dependency_tracking" != xno \
1276   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1277 ])
1278
1279
1280 # AM_SET_DEPDIR
1281 # -------------
1282 # Choose a directory name for dependency files.
1283 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
1284 AC_DEFUN([AM_SET_DEPDIR],
1285 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1286 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1287 ])
1288
1289
1290 # AM_DEP_TRACK
1291 # ------------
1292 AC_DEFUN([AM_DEP_TRACK],
1293 [AC_ARG_ENABLE(dependency-tracking,
1294 [  --disable-dependency-tracking  speeds up one-time build
1295   --enable-dependency-tracking   do not reject slow dependency extractors])
1296 if test "x$enable_dependency_tracking" != xno; then
1297   am_depcomp="$ac_aux_dir/depcomp"
1298   AMDEPBACKSLASH='\'
1299 fi
1300 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1301 AC_SUBST([AMDEPBACKSLASH])dnl
1302 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1303 ])
1304
1305 # Generate code to set up dependency tracking.              -*- Autoconf -*-
1306
1307 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1308 # Free Software Foundation, Inc.
1309 #
1310 # This file is free software; the Free Software Foundation
1311 # gives unlimited permission to copy and/or distribute it,
1312 # with or without modifications, as long as this notice is preserved.
1313
1314 #serial 5
1315
1316 # _AM_OUTPUT_DEPENDENCY_COMMANDS
1317 # ------------------------------
1318 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1319 [{
1320   # Autoconf 2.62 quotes --file arguments for eval, but not when files
1321   # are listed without --file.  Let's play safe and only enable the eval
1322   # if we detect the quoting.
1323   case $CONFIG_FILES in
1324   *\'*) eval set x "$CONFIG_FILES" ;;
1325   *)   set x $CONFIG_FILES ;;
1326   esac
1327   shift
1328   for mf
1329   do
1330     # Strip MF so we end up with the name of the file.
1331     mf=`echo "$mf" | sed -e 's/:.*$//'`
1332     # Check whether this is an Automake generated Makefile or not.
1333     # We used to match only the files named `Makefile.in', but
1334     # some people rename them; so instead we look at the file content.
1335     # Grep'ing the first line is not enough: some people post-process
1336     # each Makefile.in and add a new line on top of each file to say so.
1337     # Grep'ing the whole file is not good either: AIX grep has a line
1338     # limit of 2048, but all sed's we know have understand at least 4000.
1339     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1340       dirpart=`AS_DIRNAME("$mf")`
1341     else
1342       continue
1343     fi
1344     # Extract the definition of DEPDIR, am__include, and am__quote
1345     # from the Makefile without running `make'.
1346     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1347     test -z "$DEPDIR" && continue
1348     am__include=`sed -n 's/^am__include = //p' < "$mf"`
1349     test -z "am__include" && continue
1350     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1351     # When using ansi2knr, U may be empty or an underscore; expand it
1352     U=`sed -n 's/^U = //p' < "$mf"`
1353     # Find all dependency output files, they are included files with
1354     # $(DEPDIR) in their names.  We invoke sed twice because it is the
1355     # simplest approach to changing $(DEPDIR) to its actual value in the
1356     # expansion.
1357     for file in `sed -n "
1358       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1359          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1360       # Make sure the directory exists.
1361       test -f "$dirpart/$file" && continue
1362       fdir=`AS_DIRNAME(["$file"])`
1363       AS_MKDIR_P([$dirpart/$fdir])
1364       # echo "creating $dirpart/$file"
1365       echo '# dummy' > "$dirpart/$file"
1366     done
1367   done
1368 }
1369 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1370
1371
1372 # AM_OUTPUT_DEPENDENCY_COMMANDS
1373 # -----------------------------
1374 # This macro should only be invoked once -- use via AC_REQUIRE.
1375 #
1376 # This code is only required when automatic dependency tracking
1377 # is enabled.  FIXME.  This creates each `.P' file that we will
1378 # need in order to bootstrap the dependency handling code.
1379 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1380 [AC_CONFIG_COMMANDS([depfiles],
1381      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1382      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1383 ])
1384
1385 # Do all the work for Automake.                             -*- Autoconf -*-
1386
1387 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1388 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1389 #
1390 # This file is free software; the Free Software Foundation
1391 # gives unlimited permission to copy and/or distribute it,
1392 # with or without modifications, as long as this notice is preserved.
1393
1394 # serial 16
1395
1396 # This macro actually does too much.  Some checks are only needed if
1397 # your package does certain things.  But this isn't really a big deal.
1398
1399 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1400 # AM_INIT_AUTOMAKE([OPTIONS])
1401 # -----------------------------------------------
1402 # The call with PACKAGE and VERSION arguments is the old style
1403 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
1404 # and VERSION should now be passed to AC_INIT and removed from
1405 # the call to AM_INIT_AUTOMAKE.
1406 # We support both call styles for the transition.  After
1407 # the next Automake release, Autoconf can make the AC_INIT
1408 # arguments mandatory, and then we can depend on a new Autoconf
1409 # release and drop the old call support.
1410 AC_DEFUN([AM_INIT_AUTOMAKE],
1411 [AC_PREREQ([2.62])dnl
1412 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1413 dnl the ones we care about.
1414 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1415 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1416 AC_REQUIRE([AC_PROG_INSTALL])dnl
1417 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1418   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1419   # is not polluted with repeated "-I."
1420   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1421   # test to see if srcdir already configured
1422   if test -f $srcdir/config.status; then
1423     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1424   fi
1425 fi
1426
1427 # test whether we have cygpath
1428 if test -z "$CYGPATH_W"; then
1429   if (cygpath --version) >/dev/null 2>/dev/null; then
1430     CYGPATH_W='cygpath -w'
1431   else
1432     CYGPATH_W=echo
1433   fi
1434 fi
1435 AC_SUBST([CYGPATH_W])
1436
1437 # Define the identity of the package.
1438 dnl Distinguish between old-style and new-style calls.
1439 m4_ifval([$2],
1440 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1441  AC_SUBST([PACKAGE], [$1])dnl
1442  AC_SUBST([VERSION], [$2])],
1443 [_AM_SET_OPTIONS([$1])dnl
1444 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1445 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1446   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1447  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1448  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1449
1450 _AM_IF_OPTION([no-define],,
1451 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1452  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1453
1454 # Some tools Automake needs.
1455 AC_REQUIRE([AM_SANITY_CHECK])dnl
1456 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1457 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1458 AM_MISSING_PROG(AUTOCONF, autoconf)
1459 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1460 AM_MISSING_PROG(AUTOHEADER, autoheader)
1461 AM_MISSING_PROG(MAKEINFO, makeinfo)
1462 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1463 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1464 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1465 # We need awk for the "check" target.  The system "awk" is bad on
1466 # some platforms.
1467 AC_REQUIRE([AC_PROG_AWK])dnl
1468 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1469 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1470 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1471               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1472                              [_AM_PROG_TAR([v7])])])
1473 _AM_IF_OPTION([no-dependencies],,
1474 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1475                   [_AM_DEPENDENCIES(CC)],
1476                   [define([AC_PROG_CC],
1477                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1478 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1479                   [_AM_DEPENDENCIES(CXX)],
1480                   [define([AC_PROG_CXX],
1481                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1482 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1483                   [_AM_DEPENDENCIES(OBJC)],
1484                   [define([AC_PROG_OBJC],
1485                           defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1486 ])
1487 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1488 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1489 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
1490 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1491 AC_CONFIG_COMMANDS_PRE(dnl
1492 [m4_provide_if([_AM_COMPILER_EXEEXT],
1493   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1494 ])
1495
1496 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1497 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1498 dnl mangled by Autoconf and run in a shell conditional statement.
1499 m4_define([_AC_COMPILER_EXEEXT],
1500 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1501
1502
1503 # When config.status generates a header, we must update the stamp-h file.
1504 # This file resides in the same directory as the config header
1505 # that is generated.  The stamp files are numbered to have different names.
1506
1507 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1508 # loop where config.status creates the headers, so we can generate
1509 # our stamp files there.
1510 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1511 [# Compute $1's index in $config_headers.
1512 _am_arg=$1
1513 _am_stamp_count=1
1514 for _am_header in $config_headers :; do
1515   case $_am_header in
1516     $_am_arg | $_am_arg:* )
1517       break ;;
1518     * )
1519       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1520   esac
1521 done
1522 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1523
1524 # Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
1525 #
1526 # This file is free software; the Free Software Foundation
1527 # gives unlimited permission to copy and/or distribute it,
1528 # with or without modifications, as long as this notice is preserved.
1529
1530 # AM_PROG_INSTALL_SH
1531 # ------------------
1532 # Define $install_sh.
1533 AC_DEFUN([AM_PROG_INSTALL_SH],
1534 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1535 if test x"${install_sh}" != xset; then
1536   case $am_aux_dir in
1537   *\ * | *\     *)
1538     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1539   *)
1540     install_sh="\${SHELL} $am_aux_dir/install-sh"
1541   esac
1542 fi
1543 AC_SUBST(install_sh)])
1544
1545 # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1546 #
1547 # This file is free software; the Free Software Foundation
1548 # gives unlimited permission to copy and/or distribute it,
1549 # with or without modifications, as long as this notice is preserved.
1550
1551 # serial 2
1552
1553 # Check whether the underlying file-system supports filenames
1554 # with a leading dot.  For instance MS-DOS doesn't.
1555 AC_DEFUN([AM_SET_LEADING_DOT],
1556 [rm -rf .tst 2>/dev/null
1557 mkdir .tst 2>/dev/null
1558 if test -d .tst; then
1559   am__leading_dot=.
1560 else
1561   am__leading_dot=_
1562 fi
1563 rmdir .tst 2>/dev/null
1564 AC_SUBST([am__leading_dot])])
1565
1566 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
1567 # From Jim Meyering
1568
1569 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1570 # Free Software Foundation, Inc.
1571 #
1572 # This file is free software; the Free Software Foundation
1573 # gives unlimited permission to copy and/or distribute it,
1574 # with or without modifications, as long as this notice is preserved.
1575
1576 # serial 5
1577
1578 # AM_MAINTAINER_MODE([DEFAULT-MODE])
1579 # ----------------------------------
1580 # Control maintainer-specific portions of Makefiles.
1581 # Default is to disable them, unless `enable' is passed literally.
1582 # For symmetry, `disable' may be passed as well.  Anyway, the user
1583 # can override the default with the --enable/--disable switch.
1584 AC_DEFUN([AM_MAINTAINER_MODE],
1585 [m4_case(m4_default([$1], [disable]),
1586        [enable], [m4_define([am_maintainer_other], [disable])],
1587        [disable], [m4_define([am_maintainer_other], [enable])],
1588        [m4_define([am_maintainer_other], [enable])
1589         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1590 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1591   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1592   AC_ARG_ENABLE([maintainer-mode],
1593 [  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
1594                           (and sometimes confusing) to the casual installer],
1595       [USE_MAINTAINER_MODE=$enableval],
1596       [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1597   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1598   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1599   MAINT=$MAINTAINER_MODE_TRUE
1600   AC_SUBST([MAINT])dnl
1601 ]
1602 )
1603
1604 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1605
1606 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
1607
1608 # Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
1609 #
1610 # This file is free software; the Free Software Foundation
1611 # gives unlimited permission to copy and/or distribute it,
1612 # with or without modifications, as long as this notice is preserved.
1613
1614 # serial 4
1615
1616 # AM_MAKE_INCLUDE()
1617 # -----------------
1618 # Check to see how make treats includes.
1619 AC_DEFUN([AM_MAKE_INCLUDE],
1620 [am_make=${MAKE-make}
1621 cat > confinc << 'END'
1622 am__doit:
1623         @echo this is the am__doit target
1624 .PHONY: am__doit
1625 END
1626 # If we don't find an include directive, just comment out the code.
1627 AC_MSG_CHECKING([for style of include used by $am_make])
1628 am__include="#"
1629 am__quote=
1630 _am_result=none
1631 # First try GNU make style include.
1632 echo "include confinc" > confmf
1633 # Ignore all kinds of additional output from `make'.
1634 case `$am_make -s -f confmf 2> /dev/null` in #(
1635 *the\ am__doit\ target*)
1636   am__include=include
1637   am__quote=
1638   _am_result=GNU
1639   ;;
1640 esac
1641 # Now try BSD make style include.
1642 if test "$am__include" = "#"; then
1643    echo '.include "confinc"' > confmf
1644    case `$am_make -s -f confmf 2> /dev/null` in #(
1645    *the\ am__doit\ target*)
1646      am__include=.include
1647      am__quote="\""
1648      _am_result=BSD
1649      ;;
1650    esac
1651 fi
1652 AC_SUBST([am__include])
1653 AC_SUBST([am__quote])
1654 AC_MSG_RESULT([$_am_result])
1655 rm -f confinc confmf
1656 ])
1657
1658 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1659 # Free Software Foundation, Inc.
1660 #
1661 # This file is free software; the Free Software Foundation
1662 # gives unlimited permission to copy and/or distribute it,
1663 # with or without modifications, as long as this notice is preserved.
1664
1665 # serial 6
1666
1667 # AM_PROG_CC_C_O
1668 # --------------
1669 # Like AC_PROG_CC_C_O, but changed for automake.
1670 AC_DEFUN([AM_PROG_CC_C_O],
1671 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
1672 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1673 AC_REQUIRE_AUX_FILE([compile])dnl
1674 # FIXME: we rely on the cache variable name because
1675 # there is no other way.
1676 set dummy $CC
1677 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1678 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1679 if test "$am_t" != yes; then
1680    # Losing compiler, so override with the script.
1681    # FIXME: It is wrong to rewrite CC.
1682    # But if we don't then we get into trouble of one sort or another.
1683    # A longer-term fix would be to have automake use am__CC in this case,
1684    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1685    CC="$am_aux_dir/compile $CC"
1686 fi
1687 dnl Make sure AC_PROG_CC is never called again, or it will override our
1688 dnl setting of CC.
1689 m4_define([AC_PROG_CC],
1690           [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1691 ])
1692
1693 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1694
1695 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1696 # Free Software Foundation, Inc.
1697 #
1698 # This file is free software; the Free Software Foundation
1699 # gives unlimited permission to copy and/or distribute it,
1700 # with or without modifications, as long as this notice is preserved.
1701
1702 # serial 6
1703
1704 # AM_MISSING_PROG(NAME, PROGRAM)
1705 # ------------------------------
1706 AC_DEFUN([AM_MISSING_PROG],
1707 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1708 $1=${$1-"${am_missing_run}$2"}
1709 AC_SUBST($1)])
1710
1711
1712 # AM_MISSING_HAS_RUN
1713 # ------------------
1714 # Define MISSING if not defined so far and test if it supports --run.
1715 # If it does, set am_missing_run to use it, otherwise, to nothing.
1716 AC_DEFUN([AM_MISSING_HAS_RUN],
1717 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1718 AC_REQUIRE_AUX_FILE([missing])dnl
1719 if test x"${MISSING+set}" != xset; then
1720   case $am_aux_dir in
1721   *\ * | *\     *)
1722     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1723   *)
1724     MISSING="\${SHELL} $am_aux_dir/missing" ;;
1725   esac
1726 fi
1727 # Use eval to expand $SHELL
1728 if eval "$MISSING --run true"; then
1729   am_missing_run="$MISSING --run "
1730 else
1731   am_missing_run=
1732   AC_MSG_WARN([`missing' script is too old or missing])
1733 fi
1734 ])
1735
1736 # Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1737 #
1738 # This file is free software; the Free Software Foundation
1739 # gives unlimited permission to copy and/or distribute it,
1740 # with or without modifications, as long as this notice is preserved.
1741
1742 # AM_PROG_MKDIR_P
1743 # ---------------
1744 # Check for `mkdir -p'.
1745 AC_DEFUN([AM_PROG_MKDIR_P],
1746 [AC_PREREQ([2.60])dnl
1747 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1748 dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
1749 dnl while keeping a definition of mkdir_p for backward compatibility.
1750 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1751 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1752 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1753 dnl adjustment using top_builddir (which is defined more often than
1754 dnl MKDIR_P).
1755 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1756 case $mkdir_p in
1757   [[\\/$]]* | ?:[[\\/]]*) ;;
1758   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1759 esac
1760 ])
1761
1762 # Helper functions for option handling.                     -*- Autoconf -*-
1763
1764 # Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
1765 #
1766 # This file is free software; the Free Software Foundation
1767 # gives unlimited permission to copy and/or distribute it,
1768 # with or without modifications, as long as this notice is preserved.
1769
1770 # serial 4
1771
1772 # _AM_MANGLE_OPTION(NAME)
1773 # -----------------------
1774 AC_DEFUN([_AM_MANGLE_OPTION],
1775 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1776
1777 # _AM_SET_OPTION(NAME)
1778 # ------------------------------
1779 # Set option NAME.  Presently that only means defining a flag for this option.
1780 AC_DEFUN([_AM_SET_OPTION],
1781 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1782
1783 # _AM_SET_OPTIONS(OPTIONS)
1784 # ----------------------------------
1785 # OPTIONS is a space-separated list of Automake options.
1786 AC_DEFUN([_AM_SET_OPTIONS],
1787 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1788
1789 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1790 # -------------------------------------------
1791 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1792 AC_DEFUN([_AM_IF_OPTION],
1793 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1794
1795 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
1796
1797 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1798 # Free Software Foundation, Inc.
1799 #
1800 # This file is free software; the Free Software Foundation
1801 # gives unlimited permission to copy and/or distribute it,
1802 # with or without modifications, as long as this notice is preserved.
1803
1804 # serial 5
1805
1806 # AM_SANITY_CHECK
1807 # ---------------
1808 AC_DEFUN([AM_SANITY_CHECK],
1809 [AC_MSG_CHECKING([whether build environment is sane])
1810 # Just in case
1811 sleep 1
1812 echo timestamp > conftest.file
1813 # Reject unsafe characters in $srcdir or the absolute working directory
1814 # name.  Accept space and tab only in the latter.
1815 am_lf='
1816 '
1817 case `pwd` in
1818   *[[\\\"\#\$\&\'\`$am_lf]]*)
1819     AC_MSG_ERROR([unsafe absolute working directory name]);;
1820 esac
1821 case $srcdir in
1822   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1823     AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1824 esac
1825
1826 # Do `set' in a subshell so we don't clobber the current shell's
1827 # arguments.  Must try -L first in case configure is actually a
1828 # symlink; some systems play weird games with the mod time of symlinks
1829 # (eg FreeBSD returns the mod time of the symlink's containing
1830 # directory).
1831 if (
1832    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1833    if test "$[*]" = "X"; then
1834       # -L didn't work.
1835       set X `ls -t "$srcdir/configure" conftest.file`
1836    fi
1837    rm -f conftest.file
1838    if test "$[*]" != "X $srcdir/configure conftest.file" \
1839       && test "$[*]" != "X conftest.file $srcdir/configure"; then
1840
1841       # If neither matched, then we have a broken ls.  This can happen
1842       # if, for instance, CONFIG_SHELL is bash and it inherits a
1843       # broken ls alias from the environment.  This has actually
1844       # happened.  Such a system could not be considered "sane".
1845       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1846 alias in your environment])
1847    fi
1848
1849    test "$[2]" = conftest.file
1850    )
1851 then
1852    # Ok.
1853    :
1854 else
1855    AC_MSG_ERROR([newly created file is older than distributed files!
1856 Check your system clock])
1857 fi
1858 AC_MSG_RESULT(yes)])
1859
1860 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1861 #
1862 # This file is free software; the Free Software Foundation
1863 # gives unlimited permission to copy and/or distribute it,
1864 # with or without modifications, as long as this notice is preserved.
1865
1866 # AM_PROG_INSTALL_STRIP
1867 # ---------------------
1868 # One issue with vendor `install' (even GNU) is that you can't
1869 # specify the program used to strip binaries.  This is especially
1870 # annoying in cross-compiling environments, where the build's strip
1871 # is unlikely to handle the host's binaries.
1872 # Fortunately install-sh will honor a STRIPPROG variable, so we
1873 # always use install-sh in `make install-strip', and initialize
1874 # STRIPPROG with the value of the STRIP variable (set by the user).
1875 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1876 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1877 # Installed binaries are usually stripped using `strip' when the user
1878 # run `make install-strip'.  However `strip' might not be the right
1879 # tool to use in cross-compilation environments, therefore Automake
1880 # will honor the `STRIP' environment variable to overrule this program.
1881 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1882 if test "$cross_compiling" != no; then
1883   AC_CHECK_TOOL([STRIP], [strip], :)
1884 fi
1885 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1886 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1887
1888 # Copyright (C) 2006, 2008  Free Software Foundation, Inc.
1889 #
1890 # This file is free software; the Free Software Foundation
1891 # gives unlimited permission to copy and/or distribute it,
1892 # with or without modifications, as long as this notice is preserved.
1893
1894 # serial 2
1895
1896 # _AM_SUBST_NOTMAKE(VARIABLE)
1897 # ---------------------------
1898 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1899 # This macro is traced by Automake.
1900 AC_DEFUN([_AM_SUBST_NOTMAKE])
1901
1902 # AM_SUBST_NOTMAKE(VARIABLE)
1903 # ---------------------------
1904 # Public sister of _AM_SUBST_NOTMAKE.
1905 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1906
1907 # Check how to create a tarball.                            -*- Autoconf -*-
1908
1909 # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1910 #
1911 # This file is free software; the Free Software Foundation
1912 # gives unlimited permission to copy and/or distribute it,
1913 # with or without modifications, as long as this notice is preserved.
1914
1915 # serial 2
1916
1917 # _AM_PROG_TAR(FORMAT)
1918 # --------------------
1919 # Check how to create a tarball in format FORMAT.
1920 # FORMAT should be one of `v7', `ustar', or `pax'.
1921 #
1922 # Substitute a variable $(am__tar) that is a command
1923 # writing to stdout a FORMAT-tarball containing the directory
1924 # $tardir.
1925 #     tardir=directory && $(am__tar) > result.tar
1926 #
1927 # Substitute a variable $(am__untar) that extract such
1928 # a tarball read from stdin.
1929 #     $(am__untar) < result.tar
1930 AC_DEFUN([_AM_PROG_TAR],
1931 [# Always define AMTAR for backward compatibility.
1932 AM_MISSING_PROG([AMTAR], [tar])
1933 m4_if([$1], [v7],
1934      [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1935      [m4_case([$1], [ustar],, [pax],,
1936               [m4_fatal([Unknown tar format])])
1937 AC_MSG_CHECKING([how to create a $1 tar archive])
1938 # Loop over all known methods to create a tar archive until one works.
1939 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1940 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1941 # Do not fold the above two line into one, because Tru64 sh and
1942 # Solaris sh will not grok spaces in the rhs of `-'.
1943 for _am_tool in $_am_tools
1944 do
1945   case $_am_tool in
1946   gnutar)
1947     for _am_tar in tar gnutar gtar;
1948     do
1949       AM_RUN_LOG([$_am_tar --version]) && break
1950     done
1951     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1952     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1953     am__untar="$_am_tar -xf -"
1954     ;;
1955   plaintar)
1956     # Must skip GNU tar: if it does not support --format= it doesn't create
1957     # ustar tarball either.
1958     (tar --version) >/dev/null 2>&1 && continue
1959     am__tar='tar chf - "$$tardir"'
1960     am__tar_='tar chf - "$tardir"'
1961     am__untar='tar xf -'
1962     ;;
1963   pax)
1964     am__tar='pax -L -x $1 -w "$$tardir"'
1965     am__tar_='pax -L -x $1 -w "$tardir"'
1966     am__untar='pax -r'
1967     ;;
1968   cpio)
1969     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1970     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1971     am__untar='cpio -i -H $1 -d'
1972     ;;
1973   none)
1974     am__tar=false
1975     am__tar_=false
1976     am__untar=false
1977     ;;
1978   esac
1979
1980   # If the value was cached, stop now.  We just wanted to have am__tar
1981   # and am__untar set.
1982   test -n "${am_cv_prog_tar_$1}" && break
1983
1984   # tar/untar a dummy directory, and stop if the command works
1985   rm -rf conftest.dir
1986   mkdir conftest.dir
1987   echo GrepMe > conftest.dir/file
1988   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1989   rm -rf conftest.dir
1990   if test -s conftest.tar; then
1991     AM_RUN_LOG([$am__untar <conftest.tar])
1992     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1993   fi
1994 done
1995 rm -rf conftest.dir
1996
1997 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1998 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1999 AC_SUBST([am__tar])
2000 AC_SUBST([am__untar])
2001 ]) # _AM_PROG_TAR
2002
2003 m4_include([m4/asmcfi.m4])
2004 m4_include([m4/ax_cc_maxopt.m4])
2005 m4_include([m4/ax_cflags_warn_all.m4])
2006 m4_include([m4/ax_compiler_vendor.m4])
2007 m4_include([m4/ax_configure_args.m4])
2008 m4_include([m4/ax_enable_builddir.m4])
2009 m4_include([m4/ax_gcc_archflag.m4])
2010 m4_include([m4/ax_gcc_x86_cpuid.m4])
2011 m4_include([m4/libtool.m4])
2012 m4_include([m4/ltoptions.m4])
2013 m4_include([m4/ltsugar.m4])
2014 m4_include([m4/ltversion.m4])
2015 m4_include([m4/lt~obsolete.m4])
2016 m4_include([acinclude.m4])