~ubuntu-branches/ubuntu/vivid/fyre/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Haas
  • Date: 2005-05-25 21:59:19 UTC
  • Revision ID: james.westby@ubuntu.com-20050525215919-jawtso5ic23qb401
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

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