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