~ubuntu-branches/debian/wheezy/almanah/wheezy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2013-03-12 20:57:12 UTC
  • mfrom: (1.3.4)
  • Revision ID: package-import@ubuntu.com-20130312205712-6lzeq4lbzu60b81z
Tags: 0.9.1-1
Imported Upstream version 0.9.1 (Closes: #702905)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
 
1
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
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.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
17
[m4_warning([this file was generated for autoconf 2.69.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
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
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
23
 
#
24
 
# This file is free software; the Free Software Foundation
25
 
# gives unlimited permission to copy and/or distribute it,
26
 
# with or without modifications, as long as this notice is preserved.
27
 
 
28
 
# AM_AUTOMAKE_VERSION(VERSION)
29
 
# ----------------------------
30
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
 
# generated from the m4 files accompanying Automake X.Y.
32
 
# (This private macro should not be called outside this file.)
33
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.11'
35
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
 
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11.1], [],
38
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
 
])
40
 
 
41
 
# _AM_AUTOCONF_VERSION(VERSION)
42
 
# -----------------------------
43
 
# aclocal traces this macro to find the Autoconf version.
44
 
# This is a private macro too.  Using m4_define simplifies
45
 
# the logic in aclocal, which can simply ignore this definition.
46
 
m4_define([_AM_AUTOCONF_VERSION], [])
47
 
 
48
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
49
 
# -------------------------------
50
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
54
 
m4_ifndef([AC_AUTOCONF_VERSION],
55
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
 
 
58
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
 
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
61
 
#
62
 
# This file is free software; the Free Software Foundation
63
 
# gives unlimited permission to copy and/or distribute it,
64
 
# with or without modifications, as long as this notice is preserved.
65
 
 
66
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
69
 
#
70
 
# Of course, Automake must honor this variable whenever it calls a
71
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
72
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
73
 
# depending on how configure is run.  This is pretty annoying, since
74
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75
 
# source directory, any form will work fine, but in subdirectories a
76
 
# relative path needs to be adjusted first.
77
 
#
78
 
# $ac_aux_dir/missing
79
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
80
 
# $top_srcdir/$ac_aux_dir/missing
81
 
#    fails if $ac_aux_dir is absolute,
82
 
#    fails when called from a subdirectory in a VPATH build with
83
 
#          a relative $ac_aux_dir
84
 
#
85
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
 
# are both prefixed by $srcdir.  In an in-source build this is usually
87
 
# harmless because $srcdir is `.', but things will broke when you
88
 
# start a VPATH build or use an absolute $srcdir.
89
 
#
90
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
92
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93
 
# and then we would define $MISSING as
94
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
95
 
# This will work as long as MISSING is not called from configure, because
96
 
# unfortunately $(top_srcdir) has no meaning in configure.
97
 
# However there are other variables, like CC, which are often used in
98
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
99
 
#
100
 
# Another solution, used here, is to always expand $ac_aux_dir to an
101
 
# absolute PATH.  The drawback is that using absolute paths prevent a
102
 
# configured tree to be moved without reconfiguration.
103
 
 
104
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
105
 
[dnl Rely on autoconf to set up CDPATH properly.
106
 
AC_PREREQ([2.50])dnl
107
 
# expand $ac_aux_dir to an absolute path
108
 
am_aux_dir=`cd $ac_aux_dir && pwd`
109
 
])
110
 
 
111
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
 
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
 
# Free Software Foundation, Inc.
115
 
#
116
 
# This file is free software; the Free Software Foundation
117
 
# gives unlimited permission to copy and/or distribute it,
118
 
# with or without modifications, as long as this notice is preserved.
119
 
 
120
 
# serial 9
121
 
 
122
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
 
# -------------------------------------
124
 
# Define a conditional.
125
 
AC_DEFUN([AM_CONDITIONAL],
126
 
[AC_PREREQ(2.52)dnl
127
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
 
AC_SUBST([$1_TRUE])dnl
130
 
AC_SUBST([$1_FALSE])dnl
131
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
134
 
if $2; then
135
 
  $1_TRUE=
136
 
  $1_FALSE='#'
137
 
else
138
 
  $1_TRUE='#'
139
 
  $1_FALSE=
140
 
fi
141
 
AC_CONFIG_COMMANDS_PRE(
142
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
144
 
Usually this means the macro was only invoked conditionally.]])
145
 
fi])])
146
 
 
147
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
 
# Free Software Foundation, Inc.
149
 
#
150
 
# This file is free software; the Free Software Foundation
151
 
# gives unlimited permission to copy and/or distribute it,
152
 
# with or without modifications, as long as this notice is preserved.
153
 
 
154
 
# serial 10
155
 
 
156
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
 
# written in clear, in which case automake, when reading aclocal.m4,
158
 
# will think it sees a *use*, and therefore will trigger all it's
159
 
# C support machinery.  Also note that it means that autoscan, seeing
160
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
161
 
 
162
 
 
163
 
# _AM_DEPENDENCIES(NAME)
164
 
# ----------------------
165
 
# See how the compiler implements dependency checking.
166
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
167
 
# We try a few techniques and use that to set a single cache variable.
168
 
#
169
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171
 
# dependency, and given that the user is not expected to run this macro,
172
 
# just rely on AC_PROG_CC.
173
 
AC_DEFUN([_AM_DEPENDENCIES],
174
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
175
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
 
AC_REQUIRE([AM_DEP_TRACK])dnl
178
 
 
179
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
180
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
181
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
183
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
184
 
                   [depcc="$$1"   am_compiler_list=])
185
 
 
186
 
AC_CACHE_CHECK([dependency style of $depcc],
187
 
               [am_cv_$1_dependencies_compiler_type],
188
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189
 
  # We make a subdir and do the tests there.  Otherwise we can end up
190
 
  # making bogus files that we don't know about and never remove.  For
191
 
  # instance it was reported that on HP-UX the gcc test will end up
192
 
  # making a dummy file named `D' -- because `-MD' means `put the output
193
 
  # in D'.
194
 
  mkdir conftest.dir
195
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
196
 
  # using a relative directory.
197
 
  cp "$am_depcomp" conftest.dir
198
 
  cd conftest.dir
199
 
  # We will build objects and dependencies in a subdirectory because
200
 
  # it helps to detect inapplicable dependency modes.  For instance
201
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
202
 
  # side effect of compilation, but ICC will put the dependencies in
203
 
  # the current directory while Tru64 will put them in the object
204
 
  # directory.
205
 
  mkdir sub
206
 
 
207
 
  am_cv_$1_dependencies_compiler_type=none
208
 
  if test "$am_compiler_list" = ""; then
209
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
210
 
  fi
211
 
  am__universal=false
212
 
  m4_case([$1], [CC],
213
 
    [case " $depcc " in #(
214
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
215
 
     esac],
216
 
    [CXX],
217
 
    [case " $depcc " in #(
218
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
219
 
     esac])
220
 
 
221
 
  for depmode in $am_compiler_list; do
222
 
    # Setup a source with many dependencies, because some compilers
223
 
    # like to wrap large dependency lists on column 80 (with \), and
224
 
    # we should not choose a depcomp mode which is confused by this.
225
 
    #
226
 
    # We need to recreate these files for each test, as the compiler may
227
 
    # overwrite some of them when testing with obscure command lines.
228
 
    # This happens at least with the AIX C compiler.
229
 
    : > sub/conftest.c
230
 
    for i in 1 2 3 4 5 6; do
231
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
232
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233
 
      # Solaris 8's {/usr,}/bin/sh.
234
 
      touch sub/conftst$i.h
235
 
    done
236
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
237
 
 
238
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
239
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
240
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
241
 
    # versions had trouble with output in subdirs
242
 
    am__obj=sub/conftest.${OBJEXT-o}
243
 
    am__minus_obj="-o $am__obj"
244
 
    case $depmode in
245
 
    gcc)
246
 
      # This depmode causes a compiler race in universal mode.
247
 
      test "$am__universal" = false || continue
248
 
      ;;
249
 
    nosideeffect)
250
 
      # after this tag, mechanisms are not by side-effect, so they'll
251
 
      # only be used when explicitly requested
252
 
      if test "x$enable_dependency_tracking" = xyes; then
253
 
        continue
254
 
      else
255
 
        break
256
 
      fi
257
 
      ;;
258
 
    msvisualcpp | msvcmsys)
259
 
      # This compiler won't grok `-c -o', but also, the minuso test has
260
 
      # not run yet.  These depmodes are late enough in the game, and
261
 
      # so weak that their functioning should not be impacted.
262
 
      am__obj=conftest.${OBJEXT-o}
263
 
      am__minus_obj=
264
 
      ;;
265
 
    none) break ;;
266
 
    esac
267
 
    if depmode=$depmode \
268
 
       source=sub/conftest.c object=$am__obj \
269
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271
 
         >/dev/null 2>conftest.err &&
272
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276
 
      # icc doesn't choke on unknown options, it will just issue warnings
277
 
      # or remarks (even with -Werror).  So we grep stderr for any message
278
 
      # that says an option was ignored or not supported.
279
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
280
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
281
 
      # The diagnosis changed in icc 8.0:
282
 
      #   icc: Command line remark: option '-MP' not supported
283
 
      if (grep 'ignoring option' conftest.err ||
284
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285
 
        am_cv_$1_dependencies_compiler_type=$depmode
286
 
        break
287
 
      fi
288
 
    fi
289
 
  done
290
 
 
291
 
  cd ..
292
 
  rm -rf conftest.dir
293
 
else
294
 
  am_cv_$1_dependencies_compiler_type=none
295
 
fi
296
 
])
297
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298
 
AM_CONDITIONAL([am__fastdep$1], [
299
 
  test "x$enable_dependency_tracking" != xno \
300
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
301
 
])
302
 
 
303
 
 
304
 
# AM_SET_DEPDIR
305
 
# -------------
306
 
# Choose a directory name for dependency files.
307
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
308
 
AC_DEFUN([AM_SET_DEPDIR],
309
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
311
 
])
312
 
 
313
 
 
314
 
# AM_DEP_TRACK
315
 
# ------------
316
 
AC_DEFUN([AM_DEP_TRACK],
317
 
[AC_ARG_ENABLE(dependency-tracking,
318
 
[  --disable-dependency-tracking  speeds up one-time build
319
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
320
 
if test "x$enable_dependency_tracking" != xno; then
321
 
  am_depcomp="$ac_aux_dir/depcomp"
322
 
  AMDEPBACKSLASH='\'
323
 
fi
324
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
 
AC_SUBST([AMDEPBACKSLASH])dnl
326
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
327
 
])
328
 
 
329
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
330
 
 
331
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
 
# Free Software Foundation, Inc.
333
 
#
334
 
# This file is free software; the Free Software Foundation
335
 
# gives unlimited permission to copy and/or distribute it,
336
 
# with or without modifications, as long as this notice is preserved.
337
 
 
338
 
#serial 5
339
 
 
340
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
 
# ------------------------------
342
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343
 
[{
344
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
345
 
  # are listed without --file.  Let's play safe and only enable the eval
346
 
  # if we detect the quoting.
347
 
  case $CONFIG_FILES in
348
 
  *\'*) eval set x "$CONFIG_FILES" ;;
349
 
  *)   set x $CONFIG_FILES ;;
350
 
  esac
351
 
  shift
352
 
  for mf
353
 
  do
354
 
    # Strip MF so we end up with the name of the file.
355
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
356
 
    # Check whether this is an Automake generated Makefile or not.
357
 
    # We used to match only the files named `Makefile.in', but
358
 
    # some people rename them; so instead we look at the file content.
359
 
    # Grep'ing the first line is not enough: some people post-process
360
 
    # each Makefile.in and add a new line on top of each file to say so.
361
 
    # Grep'ing the whole file is not good either: AIX grep has a line
362
 
    # limit of 2048, but all sed's we know have understand at least 4000.
363
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364
 
      dirpart=`AS_DIRNAME("$mf")`
365
 
    else
366
 
      continue
367
 
    fi
368
 
    # Extract the definition of DEPDIR, am__include, and am__quote
369
 
    # from the Makefile without running `make'.
370
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
 
    test -z "$DEPDIR" && continue
372
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
 
    test -z "am__include" && continue
374
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
 
    # When using ansi2knr, U may be empty or an underscore; expand it
376
 
    U=`sed -n 's/^U = //p' < "$mf"`
377
 
    # Find all dependency output files, they are included files with
378
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
379
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
380
 
    # expansion.
381
 
    for file in `sed -n "
382
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
 
      # Make sure the directory exists.
385
 
      test -f "$dirpart/$file" && continue
386
 
      fdir=`AS_DIRNAME(["$file"])`
387
 
      AS_MKDIR_P([$dirpart/$fdir])
388
 
      # echo "creating $dirpart/$file"
389
 
      echo '# dummy' > "$dirpart/$file"
390
 
    done
391
 
  done
392
 
}
393
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
394
 
 
395
 
 
396
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
397
 
# -----------------------------
398
 
# This macro should only be invoked once -- use via AC_REQUIRE.
399
 
#
400
 
# This code is only required when automatic dependency tracking
401
 
# is enabled.  FIXME.  This creates each `.P' file that we will
402
 
# need in order to bootstrap the dependency handling code.
403
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404
 
[AC_CONFIG_COMMANDS([depfiles],
405
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
407
 
])
408
 
 
409
 
# Do all the work for Automake.                             -*- Autoconf -*-
410
 
 
411
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
412
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
413
 
#
414
 
# This file is free software; the Free Software Foundation
415
 
# gives unlimited permission to copy and/or distribute it,
416
 
# with or without modifications, as long as this notice is preserved.
417
 
 
418
 
# serial 16
419
 
 
420
 
# This macro actually does too much.  Some checks are only needed if
421
 
# your package does certain things.  But this isn't really a big deal.
422
 
 
423
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
424
 
# AM_INIT_AUTOMAKE([OPTIONS])
425
 
# -----------------------------------------------
426
 
# The call with PACKAGE and VERSION arguments is the old style
427
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
428
 
# and VERSION should now be passed to AC_INIT and removed from
429
 
# the call to AM_INIT_AUTOMAKE.
430
 
# We support both call styles for the transition.  After
431
 
# the next Automake release, Autoconf can make the AC_INIT
432
 
# arguments mandatory, and then we can depend on a new Autoconf
433
 
# release and drop the old call support.
434
 
AC_DEFUN([AM_INIT_AUTOMAKE],
435
 
[AC_PREREQ([2.62])dnl
436
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
437
 
dnl the ones we care about.
438
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
439
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
440
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
441
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
442
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
443
 
  # is not polluted with repeated "-I."
444
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
445
 
  # test to see if srcdir already configured
446
 
  if test -f $srcdir/config.status; then
447
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
448
 
  fi
449
 
fi
450
 
 
451
 
# test whether we have cygpath
452
 
if test -z "$CYGPATH_W"; then
453
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
454
 
    CYGPATH_W='cygpath -w'
455
 
  else
456
 
    CYGPATH_W=echo
457
 
  fi
458
 
fi
459
 
AC_SUBST([CYGPATH_W])
460
 
 
461
 
# Define the identity of the package.
462
 
dnl Distinguish between old-style and new-style calls.
463
 
m4_ifval([$2],
464
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465
 
 AC_SUBST([PACKAGE], [$1])dnl
466
 
 AC_SUBST([VERSION], [$2])],
467
 
[_AM_SET_OPTIONS([$1])dnl
468
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
470
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
473
 
 
474
 
_AM_IF_OPTION([no-define],,
475
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
477
 
 
478
 
# Some tools Automake needs.
479
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
480
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
481
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482
 
AM_MISSING_PROG(AUTOCONF, autoconf)
483
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
485
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
486
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
489
 
# We need awk for the "check" target.  The system "awk" is bad on
490
 
# some platforms.
491
 
AC_REQUIRE([AC_PROG_AWK])dnl
492
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
493
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
494
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
495
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
496
 
                             [_AM_PROG_TAR([v7])])])
497
 
_AM_IF_OPTION([no-dependencies],,
498
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
499
 
                  [_AM_DEPENDENCIES(CC)],
500
 
                  [define([AC_PROG_CC],
501
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
502
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
503
 
                  [_AM_DEPENDENCIES(CXX)],
504
 
                  [define([AC_PROG_CXX],
505
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
506
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
507
 
                  [_AM_DEPENDENCIES(OBJC)],
508
 
                  [define([AC_PROG_OBJC],
509
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
510
 
])
511
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
514
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
515
 
AC_CONFIG_COMMANDS_PRE(dnl
516
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
517
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
518
 
])
519
 
 
520
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
521
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
 
dnl mangled by Autoconf and run in a shell conditional statement.
523
 
m4_define([_AC_COMPILER_EXEEXT],
524
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
525
 
 
526
 
 
527
 
# When config.status generates a header, we must update the stamp-h file.
528
 
# This file resides in the same directory as the config header
529
 
# that is generated.  The stamp files are numbered to have different names.
530
 
 
531
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
532
 
# loop where config.status creates the headers, so we can generate
533
 
# our stamp files there.
534
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
535
 
[# Compute $1's index in $config_headers.
536
 
_am_arg=$1
537
 
_am_stamp_count=1
538
 
for _am_header in $config_headers :; do
539
 
  case $_am_header in
540
 
    $_am_arg | $_am_arg:* )
541
 
      break ;;
542
 
    * )
543
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
544
 
  esac
545
 
done
546
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
547
 
 
548
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
549
 
#
550
 
# This file is free software; the Free Software Foundation
551
 
# gives unlimited permission to copy and/or distribute it,
552
 
# with or without modifications, as long as this notice is preserved.
553
 
 
554
 
# AM_PROG_INSTALL_SH
555
 
# ------------------
556
 
# Define $install_sh.
557
 
AC_DEFUN([AM_PROG_INSTALL_SH],
558
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
559
 
if test x"${install_sh}" != xset; then
560
 
  case $am_aux_dir in
561
 
  *\ * | *\     *)
562
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
563
 
  *)
564
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
565
 
  esac
566
 
fi
567
 
AC_SUBST(install_sh)])
568
 
 
569
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
570
 
#
571
 
# This file is free software; the Free Software Foundation
572
 
# gives unlimited permission to copy and/or distribute it,
573
 
# with or without modifications, as long as this notice is preserved.
574
 
 
575
 
# serial 2
576
 
 
577
 
# Check whether the underlying file-system supports filenames
578
 
# with a leading dot.  For instance MS-DOS doesn't.
579
 
AC_DEFUN([AM_SET_LEADING_DOT],
580
 
[rm -rf .tst 2>/dev/null
581
 
mkdir .tst 2>/dev/null
582
 
if test -d .tst; then
583
 
  am__leading_dot=.
584
 
else
585
 
  am__leading_dot=_
586
 
fi
587
 
rmdir .tst 2>/dev/null
588
 
AC_SUBST([am__leading_dot])])
589
 
 
590
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
591
 
 
592
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
593
 
#
594
 
# This file is free software; the Free Software Foundation
595
 
# gives unlimited permission to copy and/or distribute it,
596
 
# with or without modifications, as long as this notice is preserved.
597
 
 
598
 
# serial 4
599
 
 
600
 
# AM_MAKE_INCLUDE()
601
 
# -----------------
602
 
# Check to see how make treats includes.
603
 
AC_DEFUN([AM_MAKE_INCLUDE],
604
 
[am_make=${MAKE-make}
605
 
cat > confinc << 'END'
606
 
am__doit:
607
 
        @echo this is the am__doit target
608
 
.PHONY: am__doit
609
 
END
610
 
# If we don't find an include directive, just comment out the code.
611
 
AC_MSG_CHECKING([for style of include used by $am_make])
612
 
am__include="#"
613
 
am__quote=
614
 
_am_result=none
615
 
# First try GNU make style include.
616
 
echo "include confinc" > confmf
617
 
# Ignore all kinds of additional output from `make'.
618
 
case `$am_make -s -f confmf 2> /dev/null` in #(
619
 
*the\ am__doit\ target*)
620
 
  am__include=include
621
 
  am__quote=
622
 
  _am_result=GNU
623
 
  ;;
624
 
esac
625
 
# Now try BSD make style include.
626
 
if test "$am__include" = "#"; then
627
 
   echo '.include "confinc"' > confmf
628
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
629
 
   *the\ am__doit\ target*)
630
 
     am__include=.include
631
 
     am__quote="\""
632
 
     _am_result=BSD
633
 
     ;;
634
 
   esac
635
 
fi
636
 
AC_SUBST([am__include])
637
 
AC_SUBST([am__quote])
638
 
AC_MSG_RESULT([$_am_result])
639
 
rm -f confinc confmf
640
 
])
641
 
 
642
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
643
 
# Free Software Foundation, Inc.
644
 
#
645
 
# This file is free software; the Free Software Foundation
646
 
# gives unlimited permission to copy and/or distribute it,
647
 
# with or without modifications, as long as this notice is preserved.
648
 
 
649
 
# serial 6
650
 
 
651
 
# AM_PROG_CC_C_O
652
 
# --------------
653
 
# Like AC_PROG_CC_C_O, but changed for automake.
654
 
AC_DEFUN([AM_PROG_CC_C_O],
655
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
656
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
657
 
AC_REQUIRE_AUX_FILE([compile])dnl
658
 
# FIXME: we rely on the cache variable name because
659
 
# there is no other way.
660
 
set dummy $CC
661
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
662
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
663
 
if test "$am_t" != yes; then
664
 
   # Losing compiler, so override with the script.
665
 
   # FIXME: It is wrong to rewrite CC.
666
 
   # But if we don't then we get into trouble of one sort or another.
667
 
   # A longer-term fix would be to have automake use am__CC in this case,
668
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
669
 
   CC="$am_aux_dir/compile $CC"
670
 
fi
671
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
672
 
dnl setting of CC.
673
 
m4_define([AC_PROG_CC],
674
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
675
 
])
676
 
 
677
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
678
 
 
679
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
680
 
# Free Software Foundation, Inc.
681
 
#
682
 
# This file is free software; the Free Software Foundation
683
 
# gives unlimited permission to copy and/or distribute it,
684
 
# with or without modifications, as long as this notice is preserved.
685
 
 
686
 
# serial 6
687
 
 
688
 
# AM_MISSING_PROG(NAME, PROGRAM)
689
 
# ------------------------------
690
 
AC_DEFUN([AM_MISSING_PROG],
691
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
692
 
$1=${$1-"${am_missing_run}$2"}
693
 
AC_SUBST($1)])
694
 
 
695
 
 
696
 
# AM_MISSING_HAS_RUN
697
 
# ------------------
698
 
# Define MISSING if not defined so far and test if it supports --run.
699
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
700
 
AC_DEFUN([AM_MISSING_HAS_RUN],
701
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
702
 
AC_REQUIRE_AUX_FILE([missing])dnl
703
 
if test x"${MISSING+set}" != xset; then
704
 
  case $am_aux_dir in
705
 
  *\ * | *\     *)
706
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
707
 
  *)
708
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
709
 
  esac
710
 
fi
711
 
# Use eval to expand $SHELL
712
 
if eval "$MISSING --run true"; then
713
 
  am_missing_run="$MISSING --run "
714
 
else
715
 
  am_missing_run=
716
 
  AC_MSG_WARN([`missing' script is too old or missing])
717
 
fi
718
 
])
719
 
 
720
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
721
 
#
722
 
# This file is free software; the Free Software Foundation
723
 
# gives unlimited permission to copy and/or distribute it,
724
 
# with or without modifications, as long as this notice is preserved.
725
 
 
726
 
# AM_PROG_MKDIR_P
727
 
# ---------------
728
 
# Check for `mkdir -p'.
729
 
AC_DEFUN([AM_PROG_MKDIR_P],
730
 
[AC_PREREQ([2.60])dnl
731
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
732
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
733
 
dnl while keeping a definition of mkdir_p for backward compatibility.
734
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
735
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
736
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
737
 
dnl adjustment using top_builddir (which is defined more often than
738
 
dnl MKDIR_P).
739
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
740
 
case $mkdir_p in
741
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
742
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
743
 
esac
744
 
])
745
 
 
746
 
# Helper functions for option handling.                     -*- Autoconf -*-
747
 
 
748
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
749
 
#
750
 
# This file is free software; the Free Software Foundation
751
 
# gives unlimited permission to copy and/or distribute it,
752
 
# with or without modifications, as long as this notice is preserved.
753
 
 
754
 
# serial 4
755
 
 
756
 
# _AM_MANGLE_OPTION(NAME)
757
 
# -----------------------
758
 
AC_DEFUN([_AM_MANGLE_OPTION],
759
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
760
 
 
761
 
# _AM_SET_OPTION(NAME)
762
 
# ------------------------------
763
 
# Set option NAME.  Presently that only means defining a flag for this option.
764
 
AC_DEFUN([_AM_SET_OPTION],
765
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
766
 
 
767
 
# _AM_SET_OPTIONS(OPTIONS)
768
 
# ----------------------------------
769
 
# OPTIONS is a space-separated list of Automake options.
770
 
AC_DEFUN([_AM_SET_OPTIONS],
771
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
772
 
 
773
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
774
 
# -------------------------------------------
775
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
776
 
AC_DEFUN([_AM_IF_OPTION],
777
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
778
 
 
779
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
780
 
 
781
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
782
 
# 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 5
789
 
 
790
 
# AM_SANITY_CHECK
791
 
# ---------------
792
 
AC_DEFUN([AM_SANITY_CHECK],
793
 
[AC_MSG_CHECKING([whether build environment is sane])
794
 
# Just in case
795
 
sleep 1
796
 
echo timestamp > conftest.file
797
 
# Reject unsafe characters in $srcdir or the absolute working directory
798
 
# name.  Accept space and tab only in the latter.
799
 
am_lf='
800
 
'
801
 
case `pwd` in
802
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
803
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
804
 
esac
805
 
case $srcdir in
806
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
807
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
808
 
esac
809
 
 
810
 
# Do `set' in a subshell so we don't clobber the current shell's
811
 
# arguments.  Must try -L first in case configure is actually a
812
 
# symlink; some systems play weird games with the mod time of symlinks
813
 
# (eg FreeBSD returns the mod time of the symlink's containing
814
 
# directory).
815
 
if (
816
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
817
 
   if test "$[*]" = "X"; then
818
 
      # -L didn't work.
819
 
      set X `ls -t "$srcdir/configure" conftest.file`
820
 
   fi
821
 
   rm -f conftest.file
822
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
823
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
824
 
 
825
 
      # If neither matched, then we have a broken ls.  This can happen
826
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
827
 
      # broken ls alias from the environment.  This has actually
828
 
      # happened.  Such a system could not be considered "sane".
829
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
830
 
alias in your environment])
831
 
   fi
832
 
 
833
 
   test "$[2]" = conftest.file
834
 
   )
835
 
then
836
 
   # Ok.
837
 
   :
838
 
else
839
 
   AC_MSG_ERROR([newly created file is older than distributed files!
840
 
Check your system clock])
841
 
fi
842
 
AC_MSG_RESULT(yes)])
843
 
 
844
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
845
 
#
846
 
# This file is free software; the Free Software Foundation
847
 
# gives unlimited permission to copy and/or distribute it,
848
 
# with or without modifications, as long as this notice is preserved.
849
 
 
850
 
# AM_PROG_INSTALL_STRIP
851
 
# ---------------------
852
 
# One issue with vendor `install' (even GNU) is that you can't
853
 
# specify the program used to strip binaries.  This is especially
854
 
# annoying in cross-compiling environments, where the build's strip
855
 
# is unlikely to handle the host's binaries.
856
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
857
 
# always use install-sh in `make install-strip', and initialize
858
 
# STRIPPROG with the value of the STRIP variable (set by the user).
859
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
860
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
861
 
# Installed binaries are usually stripped using `strip' when the user
862
 
# run `make install-strip'.  However `strip' might not be the right
863
 
# tool to use in cross-compilation environments, therefore Automake
864
 
# will honor the `STRIP' environment variable to overrule this program.
865
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
866
 
if test "$cross_compiling" != no; then
867
 
  AC_CHECK_TOOL([STRIP], [strip], :)
868
 
fi
869
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
870
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
871
 
 
872
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
873
 
#
874
 
# This file is free software; the Free Software Foundation
875
 
# gives unlimited permission to copy and/or distribute it,
876
 
# with or without modifications, as long as this notice is preserved.
877
 
 
878
 
# serial 2
879
 
 
880
 
# _AM_SUBST_NOTMAKE(VARIABLE)
881
 
# ---------------------------
882
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
883
 
# This macro is traced by Automake.
884
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
885
 
 
886
 
# AM_SUBST_NOTMAKE(VARIABLE)
887
 
# ---------------------------
888
 
# Public sister of _AM_SUBST_NOTMAKE.
889
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
890
 
 
891
 
# Check how to create a tarball.                            -*- Autoconf -*-
892
 
 
893
 
# Copyright (C) 2004, 2005  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
 
# serial 2
900
 
 
901
 
# _AM_PROG_TAR(FORMAT)
902
 
# --------------------
903
 
# Check how to create a tarball in format FORMAT.
904
 
# FORMAT should be one of `v7', `ustar', or `pax'.
905
 
#
906
 
# Substitute a variable $(am__tar) that is a command
907
 
# writing to stdout a FORMAT-tarball containing the directory
908
 
# $tardir.
909
 
#     tardir=directory && $(am__tar) > result.tar
910
 
#
911
 
# Substitute a variable $(am__untar) that extract such
912
 
# a tarball read from stdin.
913
 
#     $(am__untar) < result.tar
914
 
AC_DEFUN([_AM_PROG_TAR],
915
 
[# Always define AMTAR for backward compatibility.
916
 
AM_MISSING_PROG([AMTAR], [tar])
917
 
m4_if([$1], [v7],
918
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
919
 
     [m4_case([$1], [ustar],, [pax],,
920
 
              [m4_fatal([Unknown tar format])])
921
 
AC_MSG_CHECKING([how to create a $1 tar archive])
922
 
# Loop over all known methods to create a tar archive until one works.
923
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
924
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
925
 
# Do not fold the above two line into one, because Tru64 sh and
926
 
# Solaris sh will not grok spaces in the rhs of `-'.
927
 
for _am_tool in $_am_tools
928
 
do
929
 
  case $_am_tool in
930
 
  gnutar)
931
 
    for _am_tar in tar gnutar gtar;
932
 
    do
933
 
      AM_RUN_LOG([$_am_tar --version]) && break
934
 
    done
935
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
936
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
937
 
    am__untar="$_am_tar -xf -"
938
 
    ;;
939
 
  plaintar)
940
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
941
 
    # ustar tarball either.
942
 
    (tar --version) >/dev/null 2>&1 && continue
943
 
    am__tar='tar chf - "$$tardir"'
944
 
    am__tar_='tar chf - "$tardir"'
945
 
    am__untar='tar xf -'
946
 
    ;;
947
 
  pax)
948
 
    am__tar='pax -L -x $1 -w "$$tardir"'
949
 
    am__tar_='pax -L -x $1 -w "$tardir"'
950
 
    am__untar='pax -r'
951
 
    ;;
952
 
  cpio)
953
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
954
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
955
 
    am__untar='cpio -i -H $1 -d'
956
 
    ;;
957
 
  none)
958
 
    am__tar=false
959
 
    am__tar_=false
960
 
    am__untar=false
961
 
    ;;
962
 
  esac
963
 
 
964
 
  # If the value was cached, stop now.  We just wanted to have am__tar
965
 
  # and am__untar set.
966
 
  test -n "${am_cv_prog_tar_$1}" && break
967
 
 
968
 
  # tar/untar a dummy directory, and stop if the command works
969
 
  rm -rf conftest.dir
970
 
  mkdir conftest.dir
971
 
  echo GrepMe > conftest.dir/file
972
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
973
 
  rm -rf conftest.dir
974
 
  if test -s conftest.tar; then
975
 
    AM_RUN_LOG([$am__untar <conftest.tar])
976
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
977
 
  fi
978
 
done
979
 
rm -rf conftest.dir
980
 
 
981
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
982
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
983
 
AC_SUBST([am__tar])
984
 
AC_SUBST([am__untar])
985
 
]) # _AM_PROG_TAR
986
 
 
987
 
dnl AM_GCONF_SOURCE_2
988
 
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
989
 
dnl  (i.e. pass to gconftool-2
990
 
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
991
 
dnl  you should install foo.schemas files
992
 
dnl
993
 
 
994
 
AC_DEFUN([AM_GCONF_SOURCE_2],
995
 
[
996
 
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
997
 
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
998
 
  else
999
 
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
1000
 
  fi
1001
 
 
1002
 
  AC_ARG_WITH([gconf-source],
1003
 
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
1004
 
                             [Config database for installing schema files.]),
1005
 
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
1006
 
 
1007
 
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
1008
 
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
1009
 
 
1010
 
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
1011
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
1012
 
  fi
1013
 
 
1014
 
  AC_ARG_WITH([gconf-schema-file-dir],
1015
 
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
1016
 
                             [Directory for installing schema files.]),
1017
 
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
1018
 
 
1019
 
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
1020
 
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
1021
 
 
1022
 
  AC_ARG_ENABLE(schemas-install,
1023
 
        AC_HELP_STRING([--disable-schemas-install],
1024
 
                       [Disable the schemas installation]),
1025
 
     [case ${enableval} in
1026
 
       yes|no) ;;
1027
 
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
1028
 
      esac])
1029
 
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
1030
 
])
 
20
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
1031
21
 
1032
22
dnl GLIB_GSETTINGS
1033
23
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
1115
105
 
1116
106
 
1117
107
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1118
 
# serial 40 IT_PROG_INTLTOOL
 
108
# serial 42 IT_PROG_INTLTOOL
1119
109
AC_DEFUN([IT_PROG_INTLTOOL], [
1120
110
AC_PREREQ([2.50])dnl
1121
111
AC_REQUIRE([AM_NLS])dnl
1128
118
    ;;
1129
119
esac
1130
120
 
 
121
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
122
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
123
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1131
124
if test -n "$1"; then
1132
125
    AC_MSG_CHECKING([for intltool >= $1])
1133
 
 
1134
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1135
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
1136
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1137
 
    ]
1138
126
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1139
127
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1140
128
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
1147
135
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
1148
136
fi
1149
137
 
1150
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1151
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1152
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1153
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1154
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
1155
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1156
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1157
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1158
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1159
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1160
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1161
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
1162
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1163
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1164
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1165
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1166
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1167
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1168
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
138
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
139
  AM_DEFAULT_VERBOSITY=1
 
140
fi
 
141
AC_SUBST([AM_DEFAULT_VERBOSITY])
 
142
 
 
143
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
144
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
145
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
 
146
AC_SUBST(INTLTOOL_V_MERGE)
 
147
AC_SUBST(INTLTOOL__v_MERGE_)
 
148
AC_SUBST(INTLTOOL__v_MERGE_0)
 
149
 
 
150
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
151
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
152
intltool__v_merge_options_0='-q'
 
153
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
 
154
AC_SUBST(intltool__v_merge_options_)
 
155
AC_SUBST(intltool__v_merge_options_0)
 
156
 
 
157
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
158
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
159
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
160
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
161
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
 
162
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
163
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
164
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
165
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
166
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
167
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
168
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
169
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
 
170
else
 
171
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
 
172
fi
 
173
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
174
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
175
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
176
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
177
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
178
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
179
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1169
180
 
1170
181
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
1171
182
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1211
222
if test $? -ne 0; then
1212
223
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1213
224
else
1214
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
225
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
1215
226
   AC_MSG_RESULT([$IT_PERL_VERSION])
1216
227
fi
1217
228
if test "x$2" != "xno-xml"; then
1310
321
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1311
322
#
1312
323
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1313
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1314
 
#                 Inc.
 
324
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
325
#                 Foundation, Inc.
1315
326
#   Written by Gordon Matzigkeit, 1996
1316
327
#
1317
328
# This file is free software; the Free Software Foundation gives
1320
331
 
1321
332
m4_define([_LT_COPYING], [dnl
1322
333
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1323
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1324
 
#                 Inc.
 
334
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
335
#                 Foundation, Inc.
1325
336
#   Written by Gordon Matzigkeit, 1996
1326
337
#
1327
338
#   This file is part of GNU Libtool.
1455
466
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1456
467
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1457
468
 
 
469
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
470
dnl
1458
471
_LT_DECL([], [host_alias], [0], [The host system])dnl
1459
472
_LT_DECL([], [host], [0])dnl
1460
473
_LT_DECL([], [host_os], [0])dnl
1940
953
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1941
954
configured by $[0], generated by m4_PACKAGE_STRING.
1942
955
 
1943
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
956
Copyright (C) 2011 Free Software Foundation, Inc.
1944
957
This config.lt script is free software; the Free Software Foundation
1945
958
gives unlimited permision to copy, distribute and modify it."
1946
959
 
2104
1117
m4_case([$1],
2105
1118
  [C],                  [_LT_LANG(C)],
2106
1119
  [C++],                [_LT_LANG(CXX)],
 
1120
  [Go],                 [_LT_LANG(GO)],
2107
1121
  [Java],               [_LT_LANG(GCJ)],
2108
1122
  [Fortran 77],         [_LT_LANG(F77)],
2109
1123
  [Fortran],            [_LT_LANG(FC)],
2125
1139
])# _LT_LANG
2126
1140
 
2127
1141
 
 
1142
m4_ifndef([AC_PROG_GO], [
 
1143
# NOTE: This macro has been submitted for inclusion into   #
 
1144
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
1145
#  a released version of Autoconf we should remove this    #
 
1146
#  macro and use it instead.                               #
 
1147
m4_defun([AC_PROG_GO],
 
1148
[AC_LANG_PUSH(Go)dnl
 
1149
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
1150
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
1151
_AC_ARG_VAR_LDFLAGS()dnl
 
1152
AC_CHECK_TOOL(GOC, gccgo)
 
1153
if test -z "$GOC"; then
 
1154
  if test -n "$ac_tool_prefix"; then
 
1155
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
1156
  fi
 
1157
fi
 
1158
if test -z "$GOC"; then
 
1159
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
1160
fi
 
1161
])#m4_defun
 
1162
])#m4_ifndef
 
1163
 
 
1164
 
2128
1165
# _LT_LANG_DEFAULT_CONFIG
2129
1166
# -----------------------
2130
1167
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2155
1192
       m4_ifdef([LT_PROG_GCJ],
2156
1193
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2157
1194
 
 
1195
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
1196
  [LT_LANG(GO)],
 
1197
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
1198
 
2158
1199
AC_PROVIDE_IFELSE([LT_PROG_RC],
2159
1200
  [LT_LANG(RC)],
2160
1201
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2257
1298
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2258
1299
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2259
1300
        _lt_result=$?
2260
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1301
        # If there is a non-empty error log, and "single_module"
 
1302
        # appears in it, assume the flag caused a linker warning
 
1303
        if test -s conftest.err && $GREP single_module conftest.err; then
 
1304
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1305
        # Otherwise, if the output was created with a 0 exit code from
 
1306
        # the compiler, it worked.
 
1307
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
2261
1308
          lt_cv_apple_cc_single_mod=yes
2262
1309
        else
2263
1310
          cat conftest.err >&AS_MESSAGE_LOG_FD
2265
1312
        rm -rf libconftest.dylib*
2266
1313
        rm -f conftest.*
2267
1314
      fi])
 
1315
 
2268
1316
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2269
1317
      [lt_cv_ld_exported_symbols_list],
2270
1318
      [lt_cv_ld_exported_symbols_list=no
2276
1324
        [lt_cv_ld_exported_symbols_list=no])
2277
1325
        LDFLAGS="$save_LDFLAGS"
2278
1326
    ])
 
1327
 
2279
1328
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2280
1329
      [lt_cv_ld_force_load=no
2281
1330
      cat > conftest.c << _LT_EOF
2293
1342
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2294
1343
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2295
1344
      _lt_result=$?
2296
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
1345
      if test -s conftest.err && $GREP force_load conftest.err; then
 
1346
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1347
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2297
1348
        lt_cv_ld_force_load=yes
2298
1349
      else
2299
1350
        cat conftest.err >&AS_MESSAGE_LOG_FD
2338
1389
])
2339
1390
 
2340
1391
 
2341
 
# _LT_DARWIN_LINKER_FEATURES
2342
 
# --------------------------
 
1392
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
1393
# ---------------------------------
2343
1394
# Checks for linker and compiler features on darwin
2344
1395
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2345
1396
[
2350
1401
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2351
1402
  if test "$lt_cv_ld_force_load" = "yes"; then
2352
1403
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
1404
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
1405
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
2353
1406
  else
2354
1407
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2355
1408
  fi
2633
1686
    CFLAGS="$SAVE_CFLAGS"
2634
1687
  fi
2635
1688
  ;;
2636
 
sparc*-*solaris*)
 
1689
*-*solaris*)
2637
1690
  # Find out which ABI we are using.
2638
1691
  echo 'int i;' > conftest.$ac_ext
2639
1692
  if AC_TRY_EVAL(ac_compile); then
2640
1693
    case `/usr/bin/file conftest.o` in
2641
1694
    *64-bit*)
2642
1695
      case $lt_cv_prog_gnu_ld in
2643
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
1696
      yes*)
 
1697
        case $host in
 
1698
        i?86-*-solaris*)
 
1699
          LD="${LD-ld} -m elf_x86_64"
 
1700
          ;;
 
1701
        sparc*-*-solaris*)
 
1702
          LD="${LD-ld} -m elf64_sparc"
 
1703
          ;;
 
1704
        esac
 
1705
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
1706
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
1707
          LD="${LD-ld}_sol2"
 
1708
        fi
 
1709
        ;;
2644
1710
      *)
2645
1711
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2646
1712
          LD="${LD-ld} -64"
2717
1783
if test -n "$RANLIB"; then
2718
1784
  case $host_os in
2719
1785
  openbsd*)
2720
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1786
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2721
1787
    ;;
2722
1788
  *)
2723
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1789
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2724
1790
    ;;
2725
1791
  esac
2726
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1792
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2727
1793
fi
2728
1794
 
2729
1795
case $host_os in
2903
1969
    lt_cv_sys_max_cmd_len=196608
2904
1970
    ;;
2905
1971
 
 
1972
  os2*)
 
1973
    # The test takes a long time on OS/2.
 
1974
    lt_cv_sys_max_cmd_len=8192
 
1975
    ;;
 
1976
 
2906
1977
  osf*)
2907
1978
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2908
1979
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2942
2013
      # If test is not a shell built-in, we'll probably end up computing a
2943
2014
      # maximum length that is only half of the actual maximum length, but
2944
2015
      # we can't tell.
2945
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
2016
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2946
2017
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2947
2018
              test $i != 17 # 1/2 MB should be enough
2948
2019
      do
3488
2559
 
3489
2560
case $host_os in
3490
2561
aix3*)
3491
 
  version_type=linux
 
2562
  version_type=linux # correct to gnu/linux during the next big refactor
3492
2563
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3493
2564
  shlibpath_var=LIBPATH
3494
2565
 
3497
2568
  ;;
3498
2569
 
3499
2570
aix[[4-9]]*)
3500
 
  version_type=linux
 
2571
  version_type=linux # correct to gnu/linux during the next big refactor
3501
2572
  need_lib_prefix=no
3502
2573
  need_version=no
3503
2574
  hardcode_into_libs=yes
3562
2633
  ;;
3563
2634
 
3564
2635
bsdi[[45]]*)
3565
 
  version_type=linux
 
2636
  version_type=linux # correct to gnu/linux during the next big refactor
3566
2637
  need_version=no
3567
2638
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3568
2639
  soname_spec='${libname}${release}${shared_ext}$major'
3701
2772
  ;;
3702
2773
 
3703
2774
dgux*)
3704
 
  version_type=linux
 
2775
  version_type=linux # correct to gnu/linux during the next big refactor
3705
2776
  need_lib_prefix=no
3706
2777
  need_version=no
3707
2778
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3709
2780
  shlibpath_var=LD_LIBRARY_PATH
3710
2781
  ;;
3711
2782
 
3712
 
freebsd1*)
3713
 
  dynamic_linker=no
3714
 
  ;;
3715
 
 
3716
2783
freebsd* | dragonfly*)
3717
2784
  # DragonFly does not have aout.  When/if they implement a new
3718
2785
  # versioning mechanism, adjust this.
3720
2787
    objformat=`/usr/bin/objformat`
3721
2788
  else
3722
2789
    case $host_os in
3723
 
    freebsd[[123]]*) objformat=aout ;;
 
2790
    freebsd[[23]].*) objformat=aout ;;
3724
2791
    *) objformat=elf ;;
3725
2792
    esac
3726
2793
  fi
3738
2805
  esac
3739
2806
  shlibpath_var=LD_LIBRARY_PATH
3740
2807
  case $host_os in
3741
 
  freebsd2*)
 
2808
  freebsd2.*)
3742
2809
    shlibpath_overrides_runpath=yes
3743
2810
    ;;
3744
2811
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3758
2825
  ;;
3759
2826
 
3760
2827
gnu*)
3761
 
  version_type=linux
 
2828
  version_type=linux # correct to gnu/linux during the next big refactor
3762
2829
  need_lib_prefix=no
3763
2830
  need_version=no
3764
2831
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3765
2832
  soname_spec='${libname}${release}${shared_ext}$major'
3766
2833
  shlibpath_var=LD_LIBRARY_PATH
 
2834
  shlibpath_overrides_runpath=no
3767
2835
  hardcode_into_libs=yes
3768
2836
  ;;
3769
2837
 
3770
2838
haiku*)
3771
 
  version_type=linux
 
2839
  version_type=linux # correct to gnu/linux during the next big refactor
3772
2840
  need_lib_prefix=no
3773
2841
  need_version=no
3774
2842
  dynamic_linker="$host_os runtime_loader"
3829
2897
  ;;
3830
2898
 
3831
2899
interix[[3-9]]*)
3832
 
  version_type=linux
 
2900
  version_type=linux # correct to gnu/linux during the next big refactor
3833
2901
  need_lib_prefix=no
3834
2902
  need_version=no
3835
2903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3845
2913
    nonstopux*) version_type=nonstopux ;;
3846
2914
    *)
3847
2915
        if test "$lt_cv_prog_gnu_ld" = yes; then
3848
 
                version_type=linux
 
2916
                version_type=linux # correct to gnu/linux during the next big refactor
3849
2917
        else
3850
2918
                version_type=irix
3851
2919
        fi ;;
3882
2950
  dynamic_linker=no
3883
2951
  ;;
3884
2952
 
3885
 
# This must be Linux ELF.
 
2953
# This must be glibc/ELF.
3886
2954
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3887
 
  version_type=linux
 
2955
  version_type=linux # correct to gnu/linux during the next big refactor
3888
2956
  need_lib_prefix=no
3889
2957
  need_version=no
3890
2958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3951
3019
  ;;
3952
3020
 
3953
3021
newsos6)
3954
 
  version_type=linux
 
3022
  version_type=linux # correct to gnu/linux during the next big refactor
3955
3023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3956
3024
  shlibpath_var=LD_LIBRARY_PATH
3957
3025
  shlibpath_overrides_runpath=yes
4020
3088
  ;;
4021
3089
 
4022
3090
solaris*)
4023
 
  version_type=linux
 
3091
  version_type=linux # correct to gnu/linux during the next big refactor
4024
3092
  need_lib_prefix=no
4025
3093
  need_version=no
4026
3094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4045
3113
  ;;
4046
3114
 
4047
3115
sysv4 | sysv4.3*)
4048
 
  version_type=linux
 
3116
  version_type=linux # correct to gnu/linux during the next big refactor
4049
3117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4050
3118
  soname_spec='${libname}${release}${shared_ext}$major'
4051
3119
  shlibpath_var=LD_LIBRARY_PATH
4069
3137
 
4070
3138
sysv4*MP*)
4071
3139
  if test -d /usr/nec ;then
4072
 
    version_type=linux
 
3140
    version_type=linux # correct to gnu/linux during the next big refactor
4073
3141
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4074
3142
    soname_spec='$libname${shared_ext}.$major'
4075
3143
    shlibpath_var=LD_LIBRARY_PATH
4100
3168
 
4101
3169
tpf*)
4102
3170
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
4103
 
  version_type=linux
 
3171
  version_type=linux # correct to gnu/linux during the next big refactor
4104
3172
  need_lib_prefix=no
4105
3173
  need_version=no
4106
3174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4110
3178
  ;;
4111
3179
 
4112
3180
uts4*)
4113
 
  version_type=linux
 
3181
  version_type=linux # correct to gnu/linux during the next big refactor
4114
3182
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4115
3183
  soname_spec='${libname}${release}${shared_ext}$major'
4116
3184
  shlibpath_var=LD_LIBRARY_PATH
4532
3600
  lt_cv_deplibs_check_method=pass_all
4533
3601
  ;;
4534
3602
 
4535
 
# This must be Linux ELF.
 
3603
# This must be glibc/ELF.
4536
3604
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4537
3605
  lt_cv_deplibs_check_method=pass_all
4538
3606
  ;;
4952
4020
    # which start with @ or ?.
4953
4021
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4954
4022
"     {last_section=section; section=\$ 3};"\
 
4023
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4955
4024
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4956
4025
"     \$ 0!~/External *\|/{next};"\
4957
4026
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5536
4605
    case $cc_basename in
5537
4606
    nvcc*) # Cuda Compiler Driver 2.2
5538
4607
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5539
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
4608
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4609
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
4610
      fi
5540
4611
      ;;
5541
4612
    esac
5542
4613
  else
5628
4699
        ;;
5629
4700
      *)
5630
4701
        case `$CC -V 2>&1 | sed 5q` in
5631
 
        *Sun\ F* | *Sun*Fortran*)
 
4702
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
5632
4703
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5633
4704
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5634
4705
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5635
4706
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5636
4707
          ;;
 
4708
        *Sun\ F* | *Sun*Fortran*)
 
4709
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4710
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4711
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4712
          ;;
5637
4713
        *Sun\ C*)
5638
4714
          # Sun C 5.9
5639
4715
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5640
4716
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5641
4717
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5642
4718
          ;;
 
4719
        *Intel*\ [[CF]]*Compiler*)
 
4720
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4721
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4722
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4723
          ;;
 
4724
        *Portland\ Group*)
 
4725
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4726
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4727
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4728
          ;;
5643
4729
        esac
5644
4730
        ;;
5645
4731
      esac
5799
4885
    ;;
5800
4886
  cygwin* | mingw* | cegcc*)
5801
4887
    case $cc_basename in
5802
 
    cl*) ;;
 
4888
    cl*)
 
4889
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
4890
      ;;
5803
4891
    *)
5804
4892
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5805
4893
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5824
4912
  _LT_TAGVAR(hardcode_direct, $1)=no
5825
4913
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5826
4914
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5827
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5828
4915
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5829
4916
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5830
4917
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6075
5162
        xlf* | bgf* | bgxlf* | mpixlf*)
6076
5163
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6077
5164
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6078
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6079
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5165
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6080
5166
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6081
5167
          if test "x$supports_anon_versioning" = xyes; then
6082
5168
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6371
5457
        # The linker will not automatically build a static lib if we build a DLL.
6372
5458
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6373
5459
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5460
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6374
5461
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6375
5462
        # Don't use ranlib
6376
5463
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6417
5504
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6418
5505
      ;;
6419
5506
 
6420
 
    freebsd1*)
6421
 
      _LT_TAGVAR(ld_shlibs, $1)=no
6422
 
      ;;
6423
 
 
6424
5507
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6425
5508
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6426
5509
    # does not break anything, and helps significantly (at the cost of a little
6433
5516
      ;;
6434
5517
 
6435
5518
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6436
 
    freebsd2*)
 
5519
    freebsd2.*)
6437
5520
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6438
5521
      _LT_TAGVAR(hardcode_direct, $1)=yes
6439
5522
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6472
5555
      fi
6473
5556
      if test "$with_gnu_ld" = no; then
6474
5557
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6475
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6476
5558
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6477
5559
        _LT_TAGVAR(hardcode_direct, $1)=yes
6478
5560
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6914
5996
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6915
5997
    [Flag to hardcode $libdir into a binary during linking.
6916
5998
    This must work even if $libdir does not exist])
6917
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6918
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6919
 
    during linking.  This must work even if $libdir does not exist]])
6920
5999
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6921
6000
    [Whether we need a single "-rpath" flag with a separated argument])
6922
6001
_LT_TAGDECL([], [hardcode_direct], [0],
7070
6149
_LT_TAGVAR(hardcode_direct, $1)=no
7071
6150
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7072
6151
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7073
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7074
6152
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7075
6153
_LT_TAGVAR(hardcode_minus_L, $1)=no
7076
6154
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7440
6518
        esac
7441
6519
        ;;
7442
6520
 
7443
 
      freebsd[[12]]*)
 
6521
      freebsd2.*)
7444
6522
        # C++ shared libraries reported to be fairly broken before
7445
6523
        # switch to ELF
7446
6524
        _LT_TAGVAR(ld_shlibs, $1)=no
8201
7279
  }
8202
7280
};
8203
7281
_LT_EOF
 
7282
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
7283
package foo
 
7284
func foo() {
 
7285
}
 
7286
_LT_EOF
8204
7287
])
8205
7288
 
8206
7289
_lt_libdeps_save_CFLAGS=$CFLAGS
8207
7290
case "$CC $CFLAGS " in #(
8208
7291
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8209
7292
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7293
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8210
7294
esac
8211
7295
 
8212
7296
dnl Parse the compiler output and extract the necessary
8403
7487
_LT_TAGVAR(hardcode_direct, $1)=no
8404
7488
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8405
7489
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8406
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8407
7490
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8408
7491
_LT_TAGVAR(hardcode_minus_L, $1)=no
8409
7492
_LT_TAGVAR(hardcode_automatic, $1)=no
8536
7619
_LT_TAGVAR(hardcode_direct, $1)=no
8537
7620
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8538
7621
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8539
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8540
7622
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8541
7623
_LT_TAGVAR(hardcode_minus_L, $1)=no
8542
7624
_LT_TAGVAR(hardcode_automatic, $1)=no
8719
7801
])# _LT_LANG_GCJ_CONFIG
8720
7802
 
8721
7803
 
 
7804
# _LT_LANG_GO_CONFIG([TAG])
 
7805
# --------------------------
 
7806
# Ensure that the configuration variables for the GNU Go compiler
 
7807
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7808
# to write the compiler configuration to `libtool'.
 
7809
m4_defun([_LT_LANG_GO_CONFIG],
 
7810
[AC_REQUIRE([LT_PROG_GO])dnl
 
7811
AC_LANG_SAVE
 
7812
 
 
7813
# Source file extension for Go test sources.
 
7814
ac_ext=go
 
7815
 
 
7816
# Object file extension for compiled Go test sources.
 
7817
objext=o
 
7818
_LT_TAGVAR(objext, $1)=$objext
 
7819
 
 
7820
# Code to be used in simple compile tests
 
7821
lt_simple_compile_test_code="package main; func main() { }"
 
7822
 
 
7823
# Code to be used in simple link tests
 
7824
lt_simple_link_test_code='package main; func main() { }'
 
7825
 
 
7826
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7827
_LT_TAG_COMPILER
 
7828
 
 
7829
# save warnings/boilerplate of simple test code
 
7830
_LT_COMPILER_BOILERPLATE
 
7831
_LT_LINKER_BOILERPLATE
 
7832
 
 
7833
# Allow CC to be a program name with arguments.
 
7834
lt_save_CC=$CC
 
7835
lt_save_CFLAGS=$CFLAGS
 
7836
lt_save_GCC=$GCC
 
7837
GCC=yes
 
7838
CC=${GOC-"gccgo"}
 
7839
CFLAGS=$GOFLAGS
 
7840
compiler=$CC
 
7841
_LT_TAGVAR(compiler, $1)=$CC
 
7842
_LT_TAGVAR(LD, $1)="$LD"
 
7843
_LT_CC_BASENAME([$compiler])
 
7844
 
 
7845
# Go did not exist at the time GCC didn't implicitly link libc in.
 
7846
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7847
 
 
7848
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7849
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7850
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
7851
 
 
7852
if test -n "$compiler"; then
 
7853
  _LT_COMPILER_NO_RTTI($1)
 
7854
  _LT_COMPILER_PIC($1)
 
7855
  _LT_COMPILER_C_O($1)
 
7856
  _LT_COMPILER_FILE_LOCKS($1)
 
7857
  _LT_LINKER_SHLIBS($1)
 
7858
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7859
 
 
7860
  _LT_CONFIG($1)
 
7861
fi
 
7862
 
 
7863
AC_LANG_RESTORE
 
7864
 
 
7865
GCC=$lt_save_GCC
 
7866
CC=$lt_save_CC
 
7867
CFLAGS=$lt_save_CFLAGS
 
7868
])# _LT_LANG_GO_CONFIG
 
7869
 
 
7870
 
8722
7871
# _LT_LANG_RC_CONFIG([TAG])
8723
7872
# -------------------------
8724
7873
# Ensure that the configuration variables for the Windows resource compiler
8788
7937
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8789
7938
 
8790
7939
 
 
7940
# LT_PROG_GO
 
7941
# ----------
 
7942
AC_DEFUN([LT_PROG_GO],
 
7943
[AC_CHECK_TOOL(GOC, gccgo,)
 
7944
])
 
7945
 
 
7946
 
8791
7947
# LT_PROG_RC
8792
7948
# ----------
8793
7949
AC_DEFUN([LT_PROG_RC],
9452
8608
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
9453
8609
m4_define([_LT_WITH_PIC],
9454
8610
[AC_ARG_WITH([pic],
9455
 
    [AS_HELP_STRING([--with-pic],
 
8611
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9456
8612
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9457
 
    [pic_mode="$withval"],
 
8613
    [lt_p=${PACKAGE-default}
 
8614
    case $withval in
 
8615
    yes|no) pic_mode=$withval ;;
 
8616
    *)
 
8617
      pic_mode=default
 
8618
      # Look at the argument we got.  We use all the common list separators.
 
8619
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8620
      for lt_pkg in $withval; do
 
8621
        IFS="$lt_save_ifs"
 
8622
        if test "X$lt_pkg" = "X$lt_p"; then
 
8623
          pic_mode=yes
 
8624
        fi
 
8625
      done
 
8626
      IFS="$lt_save_ifs"
 
8627
      ;;
 
8628
    esac],
9458
8629
    [pic_mode=default])
9459
8630
 
9460
8631
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9626
8797
 
9627
8798
# @configure_input@
9628
8799
 
9629
 
# serial 3293 ltversion.m4
 
8800
# serial 3337 ltversion.m4
9630
8801
# This file is part of GNU Libtool
9631
8802
 
9632
 
m4_define([LT_PACKAGE_VERSION], [2.4])
9633
 
m4_define([LT_PACKAGE_REVISION], [1.3293])
 
8803
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
8804
m4_define([LT_PACKAGE_REVISION], [1.3337])
9634
8805
 
9635
8806
AC_DEFUN([LTVERSION_VERSION],
9636
 
[macro_version='2.4'
9637
 
macro_revision='1.3293'
 
8807
[macro_version='2.4.2'
 
8808
macro_revision='1.3337'
9638
8809
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9639
8810
_LT_DECL(, macro_revision, 0)
9640
8811
])
9799
8970
# ----------------------------------
9800
8971
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9801
8972
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9802
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
8973
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
8974
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
9803
8975
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9804
8976
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9805
8977
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9845
9017
    pkg_cv_[]$1="$$1"
9846
9018
 elif test -n "$PKG_CONFIG"; then
9847
9019
    PKG_CHECK_EXISTS([$3],
9848
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9020
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
9021
                      test "x$?" != "x0" && pkg_failed=yes ],
9849
9022
                     [pkg_failed=yes])
9850
9023
 else
9851
9024
    pkg_failed=untried
9893
9066
        AC_MSG_RESULT([no])
9894
9067
        _PKG_SHORT_ERRORS_SUPPORTED
9895
9068
        if test $_pkg_short_errors_supported = yes; then
9896
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9069
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9897
9070
        else 
9898
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9071
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9899
9072
        fi
9900
9073
        # Put the nasty error message in config.log where it belongs
9901
9074
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9908
9081
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9909
9082
installed software in a non-standard prefix.
9910
9083
 
9911
 
_PKG_TEXT])
 
9084
_PKG_TEXT])[]dnl
9912
9085
        ])
9913
9086
elif test $pkg_failed = untried; then
9914
9087
        AC_MSG_RESULT([no])
9919
9092
 
9920
9093
_PKG_TEXT
9921
9094
 
9922
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
9095
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9923
9096
        ])
9924
9097
else
9925
9098
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9929
9102
fi[]dnl
9930
9103
])# PKG_CHECK_MODULES
9931
9104
 
9932
 
# Copyright (C) 2009  Free Software Foundation, Inc.
9933
 
#
9934
 
# This file is free software; the Free Software Foundation
9935
 
# gives unlimited permission to copy and/or distribute it,
9936
 
# with or without modifications, as long as this notice is preserved.
9937
 
 
9938
 
# serial 1
 
9105
 
 
9106
# PKG_INSTALLDIR(DIRECTORY)
 
9107
# -------------------------
 
9108
# Substitutes the variable pkgconfigdir as the location where a module
 
9109
# should install pkg-config .pc files. By default the directory is
 
9110
# $libdir/pkgconfig, but the default can be changed by passing
 
9111
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
9112
# parameter.
 
9113
AC_DEFUN([PKG_INSTALLDIR],
 
9114
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
9115
m4_pushdef([pkg_description],
 
9116
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
9117
AC_ARG_WITH([pkgconfigdir],
 
9118
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
9119
    [with_pkgconfigdir=]pkg_default)
 
9120
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
9121
m4_popdef([pkg_default])
 
9122
m4_popdef([pkg_description])
 
9123
]) dnl PKG_INSTALLDIR
 
9124
 
 
9125
 
 
9126
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
9127
# -------------------------
 
9128
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
9129
# module should install arch-independent pkg-config .pc files. By
 
9130
# default the directory is $datadir/pkgconfig, but the default can be
 
9131
# changed by passing DIRECTORY. The user can override through the
 
9132
# --with-noarch-pkgconfigdir parameter.
 
9133
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
9134
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
9135
m4_pushdef([pkg_description],
 
9136
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
9137
AC_ARG_WITH([noarch-pkgconfigdir],
 
9138
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
9139
    [with_noarch_pkgconfigdir=]pkg_default)
 
9140
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
9141
m4_popdef([pkg_default])
 
9142
m4_popdef([pkg_description])
 
9143
]) dnl PKG_NOARCH_INSTALLDIR
 
9144
 
 
9145
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 
9146
#
 
9147
# This file is free software; the Free Software Foundation
 
9148
# gives unlimited permission to copy and/or distribute it,
 
9149
# with or without modifications, as long as this notice is preserved.
 
9150
 
 
9151
# serial 8
 
9152
 
 
9153
# AM_AUTOMAKE_VERSION(VERSION)
 
9154
# ----------------------------
 
9155
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
9156
# generated from the m4 files accompanying Automake X.Y.
 
9157
# (This private macro should not be called outside this file.)
 
9158
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
9159
[am__api_version='1.12'
 
9160
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
9161
dnl require some minimum version.  Point them to the right macro.
 
9162
m4_if([$1], [1.12.2], [],
 
9163
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
9164
])
 
9165
 
 
9166
# _AM_AUTOCONF_VERSION(VERSION)
 
9167
# -----------------------------
 
9168
# aclocal traces this macro to find the Autoconf version.
 
9169
# This is a private macro too.  Using m4_define simplifies
 
9170
# the logic in aclocal, which can simply ignore this definition.
 
9171
m4_define([_AM_AUTOCONF_VERSION], [])
 
9172
 
 
9173
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
9174
# -------------------------------
 
9175
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
9176
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
9177
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
9178
[AM_AUTOMAKE_VERSION([1.12.2])dnl
 
9179
m4_ifndef([AC_AUTOCONF_VERSION],
 
9180
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
9181
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
9182
 
 
9183
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
9184
 
 
9185
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9186
#
 
9187
# This file is free software; the Free Software Foundation
 
9188
# gives unlimited permission to copy and/or distribute it,
 
9189
# with or without modifications, as long as this notice is preserved.
 
9190
 
 
9191
# serial 2
 
9192
 
 
9193
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
9194
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
9195
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
 
9196
#
 
9197
# Of course, Automake must honor this variable whenever it calls a
 
9198
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
9199
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
9200
# depending on how configure is run.  This is pretty annoying, since
 
9201
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
9202
# source directory, any form will work fine, but in subdirectories a
 
9203
# relative path needs to be adjusted first.
 
9204
#
 
9205
# $ac_aux_dir/missing
 
9206
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
9207
# $top_srcdir/$ac_aux_dir/missing
 
9208
#    fails if $ac_aux_dir is absolute,
 
9209
#    fails when called from a subdirectory in a VPATH build with
 
9210
#          a relative $ac_aux_dir
 
9211
#
 
9212
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
9213
# are both prefixed by $srcdir.  In an in-source build this is usually
 
9214
# harmless because $srcdir is '.', but things will broke when you
 
9215
# start a VPATH build or use an absolute $srcdir.
 
9216
#
 
9217
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
9218
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
9219
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
9220
# and then we would define $MISSING as
 
9221
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
9222
# This will work as long as MISSING is not called from configure, because
 
9223
# unfortunately $(top_srcdir) has no meaning in configure.
 
9224
# However there are other variables, like CC, which are often used in
 
9225
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
9226
#
 
9227
# Another solution, used here, is to always expand $ac_aux_dir to an
 
9228
# absolute PATH.  The drawback is that using absolute paths prevent a
 
9229
# configured tree to be moved without reconfiguration.
 
9230
 
 
9231
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
9232
[dnl Rely on autoconf to set up CDPATH properly.
 
9233
AC_PREREQ([2.50])dnl
 
9234
# expand $ac_aux_dir to an absolute path
 
9235
am_aux_dir=`cd $ac_aux_dir && pwd`
 
9236
])
 
9237
 
 
9238
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
9239
 
 
9240
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
9241
#
 
9242
# This file is free software; the Free Software Foundation
 
9243
# gives unlimited permission to copy and/or distribute it,
 
9244
# with or without modifications, as long as this notice is preserved.
 
9245
 
 
9246
# serial 10
 
9247
 
 
9248
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
9249
# -------------------------------------
 
9250
# Define a conditional.
 
9251
AC_DEFUN([AM_CONDITIONAL],
 
9252
[AC_PREREQ([2.52])dnl
 
9253
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
9254
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
9255
AC_SUBST([$1_TRUE])dnl
 
9256
AC_SUBST([$1_FALSE])dnl
 
9257
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
9258
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
9259
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
9260
if $2; then
 
9261
  $1_TRUE=
 
9262
  $1_FALSE='#'
 
9263
else
 
9264
  $1_TRUE='#'
 
9265
  $1_FALSE=
 
9266
fi
 
9267
AC_CONFIG_COMMANDS_PRE(
 
9268
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
9269
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
9270
Usually this means the macro was only invoked conditionally.]])
 
9271
fi])])
 
9272
 
 
9273
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
9274
#
 
9275
# This file is free software; the Free Software Foundation
 
9276
# gives unlimited permission to copy and/or distribute it,
 
9277
# with or without modifications, as long as this notice is preserved.
 
9278
 
 
9279
# serial 17
 
9280
 
 
9281
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
 
9282
# written in clear, in which case automake, when reading aclocal.m4,
 
9283
# will think it sees a *use*, and therefore will trigger all it's
 
9284
# C support machinery.  Also note that it means that autoscan, seeing
 
9285
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
9286
 
 
9287
 
 
9288
# _AM_DEPENDENCIES(NAME)
 
9289
# ----------------------
 
9290
# See how the compiler implements dependency checking.
 
9291
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
 
9292
# We try a few techniques and use that to set a single cache variable.
 
9293
#
 
9294
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
9295
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
9296
# dependency, and given that the user is not expected to run this macro,
 
9297
# just rely on AC_PROG_CC.
 
9298
AC_DEFUN([_AM_DEPENDENCIES],
 
9299
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
9300
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
9301
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
9302
AC_REQUIRE([AM_DEP_TRACK])dnl
 
9303
 
 
9304
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
9305
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
9306
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
9307
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
9308
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
9309
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
9310
                    [depcc="$$1"   am_compiler_list=])
 
9311
 
 
9312
AC_CACHE_CHECK([dependency style of $depcc],
 
9313
               [am_cv_$1_dependencies_compiler_type],
 
9314
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
9315
  # We make a subdir and do the tests there.  Otherwise we can end up
 
9316
  # making bogus files that we don't know about and never remove.  For
 
9317
  # instance it was reported that on HP-UX the gcc test will end up
 
9318
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
9319
  # in D".
 
9320
  rm -rf conftest.dir
 
9321
  mkdir conftest.dir
 
9322
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
9323
  # using a relative directory.
 
9324
  cp "$am_depcomp" conftest.dir
 
9325
  cd conftest.dir
 
9326
  # We will build objects and dependencies in a subdirectory because
 
9327
  # it helps to detect inapplicable dependency modes.  For instance
 
9328
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
9329
  # side effect of compilation, but ICC will put the dependencies in
 
9330
  # the current directory while Tru64 will put them in the object
 
9331
  # directory.
 
9332
  mkdir sub
 
9333
 
 
9334
  am_cv_$1_dependencies_compiler_type=none
 
9335
  if test "$am_compiler_list" = ""; then
 
9336
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
9337
  fi
 
9338
  am__universal=false
 
9339
  m4_case([$1], [CC],
 
9340
    [case " $depcc " in #(
 
9341
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9342
     esac],
 
9343
    [CXX],
 
9344
    [case " $depcc " in #(
 
9345
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9346
     esac])
 
9347
 
 
9348
  for depmode in $am_compiler_list; do
 
9349
    # Setup a source with many dependencies, because some compilers
 
9350
    # like to wrap large dependency lists on column 80 (with \), and
 
9351
    # we should not choose a depcomp mode which is confused by this.
 
9352
    #
 
9353
    # We need to recreate these files for each test, as the compiler may
 
9354
    # overwrite some of them when testing with obscure command lines.
 
9355
    # This happens at least with the AIX C compiler.
 
9356
    : > sub/conftest.c
 
9357
    for i in 1 2 3 4 5 6; do
 
9358
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
9359
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
9360
      # Solaris 10 /bin/sh.
 
9361
      echo '/* dummy */' > sub/conftst$i.h
 
9362
    done
 
9363
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
9364
 
 
9365
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
9366
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9367
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
9368
    # versions had trouble with output in subdirs.
 
9369
    am__obj=sub/conftest.${OBJEXT-o}
 
9370
    am__minus_obj="-o $am__obj"
 
9371
    case $depmode in
 
9372
    gcc)
 
9373
      # This depmode causes a compiler race in universal mode.
 
9374
      test "$am__universal" = false || continue
 
9375
      ;;
 
9376
    nosideeffect)
 
9377
      # After this tag, mechanisms are not by side-effect, so they'll
 
9378
      # only be used when explicitly requested.
 
9379
      if test "x$enable_dependency_tracking" = xyes; then
 
9380
        continue
 
9381
      else
 
9382
        break
 
9383
      fi
 
9384
      ;;
 
9385
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
9386
      # This compiler won't grok '-c -o', but also, the minuso test has
 
9387
      # not run yet.  These depmodes are late enough in the game, and
 
9388
      # so weak that their functioning should not be impacted.
 
9389
      am__obj=conftest.${OBJEXT-o}
 
9390
      am__minus_obj=
 
9391
      ;;
 
9392
    none) break ;;
 
9393
    esac
 
9394
    if depmode=$depmode \
 
9395
       source=sub/conftest.c object=$am__obj \
 
9396
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
9397
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
9398
         >/dev/null 2>conftest.err &&
 
9399
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
9400
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
9401
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
9402
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
9403
      # icc doesn't choke on unknown options, it will just issue warnings
 
9404
      # or remarks (even with -Werror).  So we grep stderr for any message
 
9405
      # that says an option was ignored or not supported.
 
9406
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
9407
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
9408
      # The diagnosis changed in icc 8.0:
 
9409
      #   icc: Command line remark: option '-MP' not supported
 
9410
      if (grep 'ignoring option' conftest.err ||
 
9411
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
9412
        am_cv_$1_dependencies_compiler_type=$depmode
 
9413
        break
 
9414
      fi
 
9415
    fi
 
9416
  done
 
9417
 
 
9418
  cd ..
 
9419
  rm -rf conftest.dir
 
9420
else
 
9421
  am_cv_$1_dependencies_compiler_type=none
 
9422
fi
 
9423
])
 
9424
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
9425
AM_CONDITIONAL([am__fastdep$1], [
 
9426
  test "x$enable_dependency_tracking" != xno \
 
9427
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
9428
])
 
9429
 
 
9430
 
 
9431
# AM_SET_DEPDIR
 
9432
# -------------
 
9433
# Choose a directory name for dependency files.
 
9434
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
 
9435
AC_DEFUN([AM_SET_DEPDIR],
 
9436
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9437
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
9438
])
 
9439
 
 
9440
 
 
9441
# AM_DEP_TRACK
 
9442
# ------------
 
9443
AC_DEFUN([AM_DEP_TRACK],
 
9444
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
9445
AS_HELP_STRING(
 
9446
  [--enable-dependency-tracking],
 
9447
  [do not reject slow dependency extractors])
 
9448
AS_HELP_STRING(
 
9449
  [--disable-dependency-tracking],
 
9450
  [speeds up one-time build])])
 
9451
if test "x$enable_dependency_tracking" != xno; then
 
9452
  am_depcomp="$ac_aux_dir/depcomp"
 
9453
  AMDEPBACKSLASH='\'
 
9454
  am__nodep='_no'
 
9455
fi
 
9456
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
9457
AC_SUBST([AMDEPBACKSLASH])dnl
 
9458
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9459
AC_SUBST([am__nodep])dnl
 
9460
_AM_SUBST_NOTMAKE([am__nodep])dnl
 
9461
])
 
9462
 
 
9463
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
9464
 
 
9465
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
9466
#
 
9467
# This file is free software; the Free Software Foundation
 
9468
# gives unlimited permission to copy and/or distribute it,
 
9469
# with or without modifications, as long as this notice is preserved.
 
9470
 
 
9471
# serial 6
 
9472
 
 
9473
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
9474
# ------------------------------
 
9475
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9476
[{
 
9477
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9478
  # are listed without --file.  Let's play safe and only enable the eval
 
9479
  # if we detect the quoting.
 
9480
  case $CONFIG_FILES in
 
9481
  *\'*) eval set x "$CONFIG_FILES" ;;
 
9482
  *)   set x $CONFIG_FILES ;;
 
9483
  esac
 
9484
  shift
 
9485
  for mf
 
9486
  do
 
9487
    # Strip MF so we end up with the name of the file.
 
9488
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9489
    # Check whether this is an Automake generated Makefile or not.
 
9490
    # We used to match only the files named 'Makefile.in', but
 
9491
    # some people rename them; so instead we look at the file content.
 
9492
    # Grep'ing the first line is not enough: some people post-process
 
9493
    # each Makefile.in and add a new line on top of each file to say so.
 
9494
    # Grep'ing the whole file is not good either: AIX grep has a line
 
9495
    # limit of 2048, but all sed's we know have understand at least 4000.
 
9496
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9497
      dirpart=`AS_DIRNAME("$mf")`
 
9498
    else
 
9499
      continue
 
9500
    fi
 
9501
    # Extract the definition of DEPDIR, am__include, and am__quote
 
9502
    # from the Makefile without running 'make'.
 
9503
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9504
    test -z "$DEPDIR" && continue
 
9505
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9506
    test -z "am__include" && continue
 
9507
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9508
    # Find all dependency output files, they are included files with
 
9509
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9510
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
9511
    # expansion.
 
9512
    for file in `sed -n "
 
9513
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9514
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
9515
      # Make sure the directory exists.
 
9516
      test -f "$dirpart/$file" && continue
 
9517
      fdir=`AS_DIRNAME(["$file"])`
 
9518
      AS_MKDIR_P([$dirpart/$fdir])
 
9519
      # echo "creating $dirpart/$file"
 
9520
      echo '# dummy' > "$dirpart/$file"
 
9521
    done
 
9522
  done
 
9523
}
 
9524
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
9525
 
 
9526
 
 
9527
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
9528
# -----------------------------
 
9529
# This macro should only be invoked once -- use via AC_REQUIRE.
 
9530
#
 
9531
# This code is only required when automatic dependency tracking
 
9532
# is enabled.  FIXME.  This creates each '.P' file that we will
 
9533
# need in order to bootstrap the dependency handling code.
 
9534
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9535
[AC_CONFIG_COMMANDS([depfiles],
 
9536
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9537
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
9538
])
 
9539
 
 
9540
# Do all the work for Automake.                             -*- Autoconf -*-
 
9541
 
 
9542
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
9543
#
 
9544
# This file is free software; the Free Software Foundation
 
9545
# gives unlimited permission to copy and/or distribute it,
 
9546
# with or without modifications, as long as this notice is preserved.
 
9547
 
 
9548
# serial 19
 
9549
 
 
9550
# This macro actually does too much.  Some checks are only needed if
 
9551
# your package does certain things.  But this isn't really a big deal.
 
9552
 
 
9553
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
9554
# AM_INIT_AUTOMAKE([OPTIONS])
 
9555
# -----------------------------------------------
 
9556
# The call with PACKAGE and VERSION arguments is the old style
 
9557
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
9558
# and VERSION should now be passed to AC_INIT and removed from
 
9559
# the call to AM_INIT_AUTOMAKE.
 
9560
# We support both call styles for the transition.  After
 
9561
# the next Automake release, Autoconf can make the AC_INIT
 
9562
# arguments mandatory, and then we can depend on a new Autoconf
 
9563
# release and drop the old call support.
 
9564
AC_DEFUN([AM_INIT_AUTOMAKE],
 
9565
[AC_PREREQ([2.62])dnl
 
9566
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
9567
dnl the ones we care about.
 
9568
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
9569
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
9570
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
9571
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
9572
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
9573
  # is not polluted with repeated "-I."
 
9574
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
9575
  # test to see if srcdir already configured
 
9576
  if test -f $srcdir/config.status; then
 
9577
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
9578
  fi
 
9579
fi
 
9580
 
 
9581
# test whether we have cygpath
 
9582
if test -z "$CYGPATH_W"; then
 
9583
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
9584
    CYGPATH_W='cygpath -w'
 
9585
  else
 
9586
    CYGPATH_W=echo
 
9587
  fi
 
9588
fi
 
9589
AC_SUBST([CYGPATH_W])
 
9590
 
 
9591
# Define the identity of the package.
 
9592
dnl Distinguish between old-style and new-style calls.
 
9593
m4_ifval([$2],
 
9594
[AC_DIAGNOSE([obsolete],
 
9595
[$0: two- and three-arguments forms are deprecated.  For more info, see:
 
9596
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
9597
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
9598
 AC_SUBST([PACKAGE], [$1])dnl
 
9599
 AC_SUBST([VERSION], [$2])],
 
9600
[_AM_SET_OPTIONS([$1])dnl
 
9601
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
9602
m4_if(
 
9603
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
9604
  [ok:ok],,
 
9605
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
9606
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
9607
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
9608
 
 
9609
_AM_IF_OPTION([no-define],,
 
9610
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
9611
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 
9612
 
 
9613
# Some tools Automake needs.
 
9614
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
9615
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
9616
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
9617
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
9618
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
9619
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
9620
AM_MISSING_PROG([MAKEINFO], [makeinfo])
 
9621
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
9622
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
9623
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
9624
# For better backward compatibility.  To be removed once Automake 1.9.x
 
9625
# dies out for good.  For more background, see:
 
9626
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
9627
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
9628
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 
9629
# We need awk for the "check" target.  The system "awk" is bad on
 
9630
# some platforms.
 
9631
AC_REQUIRE([AC_PROG_AWK])dnl
 
9632
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
9633
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9634
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
9635
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
9636
                             [_AM_PROG_TAR([v7])])])
 
9637
_AM_IF_OPTION([no-dependencies],,
 
9638
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
9639
                  [_AM_DEPENDENCIES([CC])],
 
9640
                  [m4_define([AC_PROG_CC],
 
9641
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 
9642
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
9643
                  [_AM_DEPENDENCIES([CXX])],
 
9644
                  [m4_define([AC_PROG_CXX],
 
9645
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 
9646
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
9647
                  [_AM_DEPENDENCIES([OBJC])],
 
9648
                  [m4_define([AC_PROG_OBJC],
 
9649
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
9650
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
 
9651
dnl but we still cater to Autoconf 2.62.
 
9652
m4_ifdef([AC_PROG_OBJCXX],
 
9653
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
9654
                  [_AM_DEPENDENCIES([OBJCXX])],
 
9655
                  [m4_define([AC_PROG_OBJCXX],
 
9656
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
9657
])
 
9658
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
9659
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
 
9660
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
9661
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9662
AC_CONFIG_COMMANDS_PRE(dnl
 
9663
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
9664
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
9665
])
 
9666
 
 
9667
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
9668
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
9669
dnl mangled by Autoconf and run in a shell conditional statement.
 
9670
m4_define([_AC_COMPILER_EXEEXT],
 
9671
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
9672
 
 
9673
 
 
9674
# When config.status generates a header, we must update the stamp-h file.
 
9675
# This file resides in the same directory as the config header
 
9676
# that is generated.  The stamp files are numbered to have different names.
 
9677
 
 
9678
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
9679
# loop where config.status creates the headers, so we can generate
 
9680
# our stamp files there.
 
9681
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
9682
[# Compute $1's index in $config_headers.
 
9683
_am_arg=$1
 
9684
_am_stamp_count=1
 
9685
for _am_header in $config_headers :; do
 
9686
  case $_am_header in
 
9687
    $_am_arg | $_am_arg:* )
 
9688
      break ;;
 
9689
    * )
 
9690
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
9691
  esac
 
9692
done
 
9693
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
9694
 
 
9695
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9696
#
 
9697
# This file is free software; the Free Software Foundation
 
9698
# gives unlimited permission to copy and/or distribute it,
 
9699
# with or without modifications, as long as this notice is preserved.
 
9700
 
 
9701
# serial 8
 
9702
 
 
9703
# AM_PROG_INSTALL_SH
 
9704
# ------------------
 
9705
# Define $install_sh.
 
9706
AC_DEFUN([AM_PROG_INSTALL_SH],
 
9707
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9708
if test x"${install_sh}" != xset; then
 
9709
  case $am_aux_dir in
 
9710
  *\ * | *\     *)
 
9711
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
9712
  *)
 
9713
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
9714
  esac
 
9715
fi
 
9716
AC_SUBST([install_sh])])
 
9717
 
 
9718
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
9719
#
 
9720
# This file is free software; the Free Software Foundation
 
9721
# gives unlimited permission to copy and/or distribute it,
 
9722
# with or without modifications, as long as this notice is preserved.
 
9723
 
 
9724
# serial 2
 
9725
 
 
9726
# Check whether the underlying file-system supports filenames
 
9727
# with a leading dot.  For instance MS-DOS doesn't.
 
9728
AC_DEFUN([AM_SET_LEADING_DOT],
 
9729
[rm -rf .tst 2>/dev/null
 
9730
mkdir .tst 2>/dev/null
 
9731
if test -d .tst; then
 
9732
  am__leading_dot=.
 
9733
else
 
9734
  am__leading_dot=_
 
9735
fi
 
9736
rmdir .tst 2>/dev/null
 
9737
AC_SUBST([am__leading_dot])])
 
9738
 
 
9739
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
9740
 
 
9741
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9742
#
 
9743
# This file is free software; the Free Software Foundation
 
9744
# gives unlimited permission to copy and/or distribute it,
 
9745
# with or without modifications, as long as this notice is preserved.
 
9746
 
 
9747
# serial 5
 
9748
 
 
9749
# AM_MAKE_INCLUDE()
 
9750
# -----------------
 
9751
# Check to see how make treats includes.
 
9752
AC_DEFUN([AM_MAKE_INCLUDE],
 
9753
[am_make=${MAKE-make}
 
9754
cat > confinc << 'END'
 
9755
am__doit:
 
9756
        @echo this is the am__doit target
 
9757
.PHONY: am__doit
 
9758
END
 
9759
# If we don't find an include directive, just comment out the code.
 
9760
AC_MSG_CHECKING([for style of include used by $am_make])
 
9761
am__include="#"
 
9762
am__quote=
 
9763
_am_result=none
 
9764
# First try GNU make style include.
 
9765
echo "include confinc" > confmf
 
9766
# Ignore all kinds of additional output from 'make'.
 
9767
case `$am_make -s -f confmf 2> /dev/null` in #(
 
9768
*the\ am__doit\ target*)
 
9769
  am__include=include
 
9770
  am__quote=
 
9771
  _am_result=GNU
 
9772
  ;;
 
9773
esac
 
9774
# Now try BSD make style include.
 
9775
if test "$am__include" = "#"; then
 
9776
   echo '.include "confinc"' > confmf
 
9777
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
9778
   *the\ am__doit\ target*)
 
9779
     am__include=.include
 
9780
     am__quote="\""
 
9781
     _am_result=BSD
 
9782
     ;;
 
9783
   esac
 
9784
fi
 
9785
AC_SUBST([am__include])
 
9786
AC_SUBST([am__quote])
 
9787
AC_MSG_RESULT([$_am_result])
 
9788
rm -f confinc confmf
 
9789
])
 
9790
 
 
9791
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
9792
#
 
9793
# This file is free software; the Free Software Foundation
 
9794
# gives unlimited permission to copy and/or distribute it,
 
9795
# with or without modifications, as long as this notice is preserved.
 
9796
 
 
9797
# serial 6
 
9798
 
 
9799
# AM_PROG_CC_C_O
 
9800
# --------------
 
9801
# Like AC_PROG_CC_C_O, but changed for automake.
 
9802
AC_DEFUN([AM_PROG_CC_C_O],
 
9803
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
9804
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9805
AC_REQUIRE_AUX_FILE([compile])dnl
 
9806
# FIXME: we rely on the cache variable name because
 
9807
# there is no other way.
 
9808
set dummy $CC
 
9809
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
9810
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
9811
if test "$am_t" != yes; then
 
9812
   # Losing compiler, so override with the script.
 
9813
   # FIXME: It is wrong to rewrite CC.
 
9814
   # But if we don't then we get into trouble of one sort or another.
 
9815
   # A longer-term fix would be to have automake use am__CC in this case,
 
9816
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
9817
   CC="$am_aux_dir/compile $CC"
 
9818
fi
 
9819
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
9820
dnl setting of CC.
 
9821
m4_define([AC_PROG_CC],
 
9822
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
9823
])
 
9824
 
 
9825
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
9826
 
 
9827
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
9828
#
 
9829
# This file is free software; the Free Software Foundation
 
9830
# gives unlimited permission to copy and/or distribute it,
 
9831
# with or without modifications, as long as this notice is preserved.
 
9832
 
 
9833
# serial 7
 
9834
 
 
9835
# AM_MISSING_PROG(NAME, PROGRAM)
 
9836
# ------------------------------
 
9837
AC_DEFUN([AM_MISSING_PROG],
 
9838
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
9839
$1=${$1-"${am_missing_run}$2"}
 
9840
AC_SUBST($1)])
 
9841
 
 
9842
 
 
9843
# AM_MISSING_HAS_RUN
 
9844
# ------------------
 
9845
# Define MISSING if not defined so far and test if it supports --run.
 
9846
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
9847
AC_DEFUN([AM_MISSING_HAS_RUN],
 
9848
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9849
AC_REQUIRE_AUX_FILE([missing])dnl
 
9850
if test x"${MISSING+set}" != xset; then
 
9851
  case $am_aux_dir in
 
9852
  *\ * | *\     *)
 
9853
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
9854
  *)
 
9855
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
9856
  esac
 
9857
fi
 
9858
# Use eval to expand $SHELL
 
9859
if eval "$MISSING --run true"; then
 
9860
  am_missing_run="$MISSING --run "
 
9861
else
 
9862
  am_missing_run=
 
9863
  AC_MSG_WARN(['missing' script is too old or missing])
 
9864
fi
 
9865
])
 
9866
 
 
9867
# Helper functions for option handling.                     -*- Autoconf -*-
 
9868
 
 
9869
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9870
#
 
9871
# This file is free software; the Free Software Foundation
 
9872
# gives unlimited permission to copy and/or distribute it,
 
9873
# with or without modifications, as long as this notice is preserved.
 
9874
 
 
9875
# serial 6
 
9876
 
 
9877
# _AM_MANGLE_OPTION(NAME)
 
9878
# -----------------------
 
9879
AC_DEFUN([_AM_MANGLE_OPTION],
 
9880
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
9881
 
 
9882
# _AM_SET_OPTION(NAME)
 
9883
# --------------------
 
9884
# Set option NAME.  Presently that only means defining a flag for this option.
 
9885
AC_DEFUN([_AM_SET_OPTION],
 
9886
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 
9887
 
 
9888
# _AM_SET_OPTIONS(OPTIONS)
 
9889
# ------------------------
 
9890
# OPTIONS is a space-separated list of Automake options.
 
9891
AC_DEFUN([_AM_SET_OPTIONS],
 
9892
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
9893
 
 
9894
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
9895
# -------------------------------------------
 
9896
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
9897
AC_DEFUN([_AM_IF_OPTION],
 
9898
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
9899
 
 
9900
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
9901
 
 
9902
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
9903
#
 
9904
# This file is free software; the Free Software Foundation
 
9905
# gives unlimited permission to copy and/or distribute it,
 
9906
# with or without modifications, as long as this notice is preserved.
 
9907
 
 
9908
# serial 9
 
9909
 
 
9910
# AM_SANITY_CHECK
 
9911
# ---------------
 
9912
AC_DEFUN([AM_SANITY_CHECK],
 
9913
[AC_MSG_CHECKING([whether build environment is sane])
 
9914
# Reject unsafe characters in $srcdir or the absolute working directory
 
9915
# name.  Accept space and tab only in the latter.
 
9916
am_lf='
 
9917
'
 
9918
case `pwd` in
 
9919
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
9920
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
9921
esac
 
9922
case $srcdir in
 
9923
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
9924
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 
9925
esac
 
9926
 
 
9927
# Do 'set' in a subshell so we don't clobber the current shell's
 
9928
# arguments.  Must try -L first in case configure is actually a
 
9929
# symlink; some systems play weird games with the mod time of symlinks
 
9930
# (eg FreeBSD returns the mod time of the symlink's containing
 
9931
# directory).
 
9932
if (
 
9933
   am_has_slept=no
 
9934
   for am_try in 1 2; do
 
9935
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
9936
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
9937
     if test "$[*]" = "X"; then
 
9938
        # -L didn't work.
 
9939
        set X `ls -t "$srcdir/configure" conftest.file`
 
9940
     fi
 
9941
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
9942
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
9943
 
 
9944
        # If neither matched, then we have a broken ls.  This can happen
 
9945
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
9946
        # broken ls alias from the environment.  This has actually
 
9947
        # happened.  Such a system could not be considered "sane".
 
9948
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
9949
  alias in your environment])
 
9950
     fi
 
9951
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
9952
       break
 
9953
     fi
 
9954
     # Just in case.
 
9955
     sleep 1
 
9956
     am_has_slept=yes
 
9957
   done
 
9958
   test "$[2]" = conftest.file
 
9959
   )
 
9960
then
 
9961
   # Ok.
 
9962
   :
 
9963
else
 
9964
   AC_MSG_ERROR([newly created file is older than distributed files!
 
9965
Check your system clock])
 
9966
fi
 
9967
AC_MSG_RESULT([yes])
 
9968
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
9969
# generated files are strictly newer.
 
9970
am_sleep_pid=
 
9971
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
9972
  ( sleep 1 ) &
 
9973
  am_sleep_pid=$!
 
9974
fi
 
9975
AC_CONFIG_COMMANDS_PRE(
 
9976
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
9977
   if test -n "$am_sleep_pid"; then
 
9978
     # Hide warnings about reused PIDs.
 
9979
     wait $am_sleep_pid 2>/dev/null
 
9980
   fi
 
9981
   AC_MSG_RESULT([done])])
 
9982
rm -f conftest.file
 
9983
])
 
9984
 
 
9985
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
9986
#
 
9987
# This file is free software; the Free Software Foundation
 
9988
# gives unlimited permission to copy and/or distribute it,
 
9989
# with or without modifications, as long as this notice is preserved.
 
9990
 
 
9991
# serial 3
9939
9992
 
9940
9993
# AM_SILENT_RULES([DEFAULT])
9941
9994
# --------------------------
9942
9995
# Enable less verbose build rules; with the default set to DEFAULT
9943
 
# (`yes' being less verbose, `no' or empty being verbose).
 
9996
# ("yes" being less verbose, "no" or empty being verbose).
9944
9997
AC_DEFUN([AM_SILENT_RULES],
9945
 
[AC_ARG_ENABLE([silent-rules],
9946
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
9947
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
9948
 
case $enable_silent_rules in
9949
 
yes) AM_DEFAULT_VERBOSITY=0;;
9950
 
no)  AM_DEFAULT_VERBOSITY=1;;
9951
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
9998
[AC_ARG_ENABLE([silent-rules], [dnl
 
9999
AS_HELP_STRING(
 
10000
  [--enable-silent-rules],
 
10001
  [less verbose build output (undo: "make V=1")])
 
10002
AS_HELP_STRING(
 
10003
  [--disable-silent-rules],
 
10004
  [verbose build output (undo: "make V=0")])dnl
 
10005
])
 
10006
case $enable_silent_rules in @%:@ (((
 
10007
  yes) AM_DEFAULT_VERBOSITY=0;;
 
10008
   no) AM_DEFAULT_VERBOSITY=1;;
 
10009
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9952
10010
esac
 
10011
dnl
 
10012
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
10013
dnl do not support nested variable expansions.
 
10014
dnl See automake bug#9928 and bug#10237.
 
10015
am_make=${MAKE-make}
 
10016
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
10017
   [am_cv_make_support_nested_variables],
 
10018
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
10019
BAR0=false
 
10020
BAR1=true
 
10021
V=1
 
10022
am__doit:
 
10023
        @$(TRUE)
 
10024
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
10025
  am_cv_make_support_nested_variables=yes
 
10026
else
 
10027
  am_cv_make_support_nested_variables=no
 
10028
fi])
 
10029
if test $am_cv_make_support_nested_variables = yes; then
 
10030
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
10031
  AM_V='$(V)'
 
10032
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
10033
else
 
10034
  AM_V=$AM_DEFAULT_VERBOSITY
 
10035
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
10036
fi
 
10037
AC_SUBST([AM_V])dnl
 
10038
AM_SUBST_NOTMAKE([AM_V])dnl
 
10039
AC_SUBST([AM_DEFAULT_V])dnl
 
10040
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9953
10041
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9954
10042
AM_BACKSLASH='\'
9955
10043
AC_SUBST([AM_BACKSLASH])dnl
9956
10044
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9957
10045
])
9958
10046
 
 
10047
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
10048
#
 
10049
# This file is free software; the Free Software Foundation
 
10050
# gives unlimited permission to copy and/or distribute it,
 
10051
# with or without modifications, as long as this notice is preserved.
 
10052
 
 
10053
# serial 2
 
10054
 
 
10055
# AM_PROG_INSTALL_STRIP
 
10056
# ---------------------
 
10057
# One issue with vendor 'install' (even GNU) is that you can't
 
10058
# specify the program used to strip binaries.  This is especially
 
10059
# annoying in cross-compiling environments, where the build's strip
 
10060
# is unlikely to handle the host's binaries.
 
10061
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
10062
# always use install-sh in "make install-strip", and initialize
 
10063
# STRIPPROG with the value of the STRIP variable (set by the user).
 
10064
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
10065
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
10066
# Installed binaries are usually stripped using 'strip' when the user
 
10067
# run "make install-strip".  However 'strip' might not be the right
 
10068
# tool to use in cross-compilation environments, therefore Automake
 
10069
# will honor the 'STRIP' environment variable to overrule this program.
 
10070
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
 
10071
if test "$cross_compiling" != no; then
 
10072
  AC_CHECK_TOOL([STRIP], [strip], :)
 
10073
fi
 
10074
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
10075
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
10076
 
 
10077
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
10078
#
 
10079
# This file is free software; the Free Software Foundation
 
10080
# gives unlimited permission to copy and/or distribute it,
 
10081
# with or without modifications, as long as this notice is preserved.
 
10082
 
 
10083
# serial 3
 
10084
 
 
10085
# _AM_SUBST_NOTMAKE(VARIABLE)
 
10086
# ---------------------------
 
10087
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
10088
# This macro is traced by Automake.
 
10089
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
10090
 
 
10091
# AM_SUBST_NOTMAKE(VARIABLE)
 
10092
# --------------------------
 
10093
# Public sister of _AM_SUBST_NOTMAKE.
 
10094
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
10095
 
 
10096
# Check how to create a tarball.                            -*- Autoconf -*-
 
10097
 
 
10098
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
10099
#
 
10100
# This file is free software; the Free Software Foundation
 
10101
# gives unlimited permission to copy and/or distribute it,
 
10102
# with or without modifications, as long as this notice is preserved.
 
10103
 
 
10104
# serial 3
 
10105
 
 
10106
# _AM_PROG_TAR(FORMAT)
 
10107
# --------------------
 
10108
# Check how to create a tarball in format FORMAT.
 
10109
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
 
10110
#
 
10111
# Substitute a variable $(am__tar) that is a command
 
10112
# writing to stdout a FORMAT-tarball containing the directory
 
10113
# $tardir.
 
10114
#     tardir=directory && $(am__tar) > result.tar
 
10115
#
 
10116
# Substitute a variable $(am__untar) that extract such
 
10117
# a tarball read from stdin.
 
10118
#     $(am__untar) < result.tar
 
10119
AC_DEFUN([_AM_PROG_TAR],
 
10120
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
10121
# in the wild :-(  We should find a proper way to deprecate it ...
 
10122
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
10123
m4_if([$1], [v7],
 
10124
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
10125
     [m4_case([$1], [ustar],, [pax],,
 
10126
              [m4_fatal([Unknown tar format])])
 
10127
AC_MSG_CHECKING([how to create a $1 tar archive])
 
10128
# Loop over all known methods to create a tar archive until one works.
 
10129
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
10130
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
10131
# Do not fold the above two line into one, because Tru64 sh and
 
10132
# Solaris sh will not grok spaces in the rhs of '-'.
 
10133
for _am_tool in $_am_tools
 
10134
do
 
10135
  case $_am_tool in
 
10136
  gnutar)
 
10137
    for _am_tar in tar gnutar gtar;
 
10138
    do
 
10139
      AM_RUN_LOG([$_am_tar --version]) && break
 
10140
    done
 
10141
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
10142
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
10143
    am__untar="$_am_tar -xf -"
 
10144
    ;;
 
10145
  plaintar)
 
10146
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
10147
    # ustar tarball either.
 
10148
    (tar --version) >/dev/null 2>&1 && continue
 
10149
    am__tar='tar chf - "$$tardir"'
 
10150
    am__tar_='tar chf - "$tardir"'
 
10151
    am__untar='tar xf -'
 
10152
    ;;
 
10153
  pax)
 
10154
    am__tar='pax -L -x $1 -w "$$tardir"'
 
10155
    am__tar_='pax -L -x $1 -w "$tardir"'
 
10156
    am__untar='pax -r'
 
10157
    ;;
 
10158
  cpio)
 
10159
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
10160
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
10161
    am__untar='cpio -i -H $1 -d'
 
10162
    ;;
 
10163
  none)
 
10164
    am__tar=false
 
10165
    am__tar_=false
 
10166
    am__untar=false
 
10167
    ;;
 
10168
  esac
 
10169
 
 
10170
  # If the value was cached, stop now.  We just wanted to have am__tar
 
10171
  # and am__untar set.
 
10172
  test -n "${am_cv_prog_tar_$1}" && break
 
10173
 
 
10174
  # tar/untar a dummy directory, and stop if the command works
 
10175
  rm -rf conftest.dir
 
10176
  mkdir conftest.dir
 
10177
  echo GrepMe > conftest.dir/file
 
10178
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
10179
  rm -rf conftest.dir
 
10180
  if test -s conftest.tar; then
 
10181
    AM_RUN_LOG([$am__untar <conftest.tar])
 
10182
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
10183
  fi
 
10184
done
 
10185
rm -rf conftest.dir
 
10186
 
 
10187
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
10188
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10189
AC_SUBST([am__tar])
 
10190
AC_SUBST([am__untar])
 
10191
]) # _AM_PROG_TAR
 
10192