~ubuntu-branches/ubuntu/vivid/sgt-puzzles/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-10-01 22:10:50 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20141001221050-h63oyzudv90umb3t
Tags: upstream-20140928.r10274
ImportĀ upstreamĀ versionĀ 20140928.r10274

Show diffs side-by-side

added added

removed removed

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