~ubuntu-branches/ubuntu/precise/pdnsd/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Mahyuddin Susanto
  • Date: 2011-03-09 18:54:22 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110309185422-33hwmg565m18dpu4
Tags: 1.2.8-par-1
* New Maintainer. (Closes: #596302)
* New Upstream Releases. (Closes: #596302, LP: #712938)
* debian/patches/05_fix_spelling.patch: Fix spelling errors.
* debian/patches/04_ipv6_localhost.patch. Adding ipv6 in localhost.
  (Closes: #466332, #504211)
* debian/init.d:
  - Add init status. (Closes: #476538)
  - Don't says starting pdnsd if already started. (Closes: #487467)
* deban/changelog: Fix incorrect date in 1.2.7-par-1 (Closes: #527352)
* debian/control:
  - Add Vcs-Browser and Vcs-Git to alioth.
  - Bump Standards-Version to 3.9.1.
* debian/copyright: Updated as per DEP-5 specification.
* debian/pdnsd-recurse.conf:
  - Adding recurse mode. (Closes: #602262)
  - Fixing recursive neg section. (Closes: #519656)
* doc/pdnsd.conf.in: Separate ip address by new line. Thanks to
  Raphael Geissert. (Closes: #597734)
* perm_cache size set to default. (Closes: #602329)
  - doc/pdnsd.conf.in
  - debian/pdnsd.conf
  - debian/pdnsd-recurse.conf
  - debian/pdnsd-resolvconf.conf
* debian/002_NetMan_pdnsd: add compabilty with WiFi. 
  (Closes: #617373, LP: #452351)
* Ack'd NMU upload. (Closes: #548173)
* Update debconf Indonesian translations. (Closes: #610148)
* Switch to quilt system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
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.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
 
17
[m4_warning([this file was generated for autoconf 2.67.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
 
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
15
23
#
16
24
# This file is free software; the Free Software Foundation
17
25
# gives unlimited permission to copy and/or distribute it,
21
29
# ----------------------------
22
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
23
31
# generated from the m4 files accompanying Automake X.Y.
24
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
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], [])
25
47
 
26
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
27
49
# -------------------------------
28
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
29
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
30
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
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]))])
32
57
 
33
58
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
34
59
 
108
133
 
109
134
# AM_CONDITIONAL                                            -*- Autoconf -*-
110
135
 
111
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
136
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
112
137
# Free Software Foundation, Inc.
113
138
#
114
139
# This file is free software; the Free Software Foundation
115
140
# gives unlimited permission to copy and/or distribute it,
116
141
# with or without modifications, as long as this notice is preserved.
117
142
 
118
 
# serial 7
 
143
# serial 9
119
144
 
120
145
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
121
146
# -------------------------------------
124
149
[AC_PREREQ(2.52)dnl
125
150
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
126
151
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
127
 
AC_SUBST([$1_TRUE])
128
 
AC_SUBST([$1_FALSE])
 
152
AC_SUBST([$1_TRUE])dnl
 
153
AC_SUBST([$1_FALSE])dnl
 
154
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
155
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
156
m4_define([_AM_COND_VALUE_$1], [$2])dnl
129
157
if $2; then
130
158
  $1_TRUE=
131
159
  $1_FALSE='#'
139
167
Usually this means the macro was only invoked conditionally.]])
140
168
fi])])
141
169
 
142
 
 
143
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
170
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
144
171
# Free Software Foundation, Inc.
145
172
#
146
173
# This file is free software; the Free Software Foundation
147
174
# gives unlimited permission to copy and/or distribute it,
148
175
# with or without modifications, as long as this notice is preserved.
149
176
 
150
 
# serial 8
 
177
# serial 10
151
178
 
152
179
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
153
180
# written in clear, in which case automake, when reading aclocal.m4,
175
202
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
176
203
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
177
204
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
205
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
178
206
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
179
207
                   [depcc="$$1"   am_compiler_list=])
180
208
 
203
231
  if test "$am_compiler_list" = ""; then
204
232
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
205
233
  fi
 
234
  am__universal=false
 
235
  m4_case([$1], [CC],
 
236
    [case " $depcc " in #(
 
237
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
238
     esac],
 
239
    [CXX],
 
240
    [case " $depcc " in #(
 
241
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
242
     esac])
 
243
 
206
244
  for depmode in $am_compiler_list; do
207
245
    # Setup a source with many dependencies, because some compilers
208
246
    # like to wrap large dependency lists on column 80 (with \), and
220
258
    done
221
259
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
222
260
 
 
261
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
262
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
263
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
264
    # versions had trouble with output in subdirs
 
265
    am__obj=sub/conftest.${OBJEXT-o}
 
266
    am__minus_obj="-o $am__obj"
223
267
    case $depmode in
 
268
    gcc)
 
269
      # This depmode causes a compiler race in universal mode.
 
270
      test "$am__universal" = false || continue
 
271
      ;;
224
272
    nosideeffect)
225
273
      # after this tag, mechanisms are not by side-effect, so they'll
226
274
      # only be used when explicitly requested
230
278
        break
231
279
      fi
232
280
      ;;
 
281
    msvisualcpp | msvcmsys)
 
282
      # This compiler won't grok `-c -o', but also, the minuso test has
 
283
      # not run yet.  These depmodes are late enough in the game, and
 
284
      # so weak that their functioning should not be impacted.
 
285
      am__obj=conftest.${OBJEXT-o}
 
286
      am__minus_obj=
 
287
      ;;
233
288
    none) break ;;
234
289
    esac
235
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
236
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
237
 
    # handle `-M -o', and we need to detect this.
238
290
    if depmode=$depmode \
239
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
291
       source=sub/conftest.c object=$am__obj \
240
292
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
241
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
293
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
242
294
         >/dev/null 2>conftest.err &&
 
295
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
243
296
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
244
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
297
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
245
298
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
246
299
      # icc doesn't choke on unknown options, it will just issue warnings
247
300
      # or remarks (even with -Werror).  So we grep stderr for any message
292
345
  AMDEPBACKSLASH='\'
293
346
fi
294
347
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
295
 
AC_SUBST([AMDEPBACKSLASH])
 
348
AC_SUBST([AMDEPBACKSLASH])dnl
 
349
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
296
350
])
297
351
 
298
352
# Generate code to set up dependency tracking.              -*- Autoconf -*-
299
353
 
300
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
354
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
301
355
# Free Software Foundation, Inc.
302
356
#
303
357
# This file is free software; the Free Software Foundation
304
358
# gives unlimited permission to copy and/or distribute it,
305
359
# with or without modifications, as long as this notice is preserved.
306
360
 
307
 
#serial 3
 
361
#serial 5
308
362
 
309
363
# _AM_OUTPUT_DEPENDENCY_COMMANDS
310
364
# ------------------------------
311
365
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
312
 
[for mf in $CONFIG_FILES; do
313
 
  # Strip MF so we end up with the name of the file.
314
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
315
 
  # Check whether this is an Automake generated Makefile or not.
316
 
  # We used to match only the files named `Makefile.in', but
317
 
  # some people rename them; so instead we look at the file content.
318
 
  # Grep'ing the first line is not enough: some people post-process
319
 
  # each Makefile.in and add a new line on top of each file to say so.
320
 
  # So let's grep whole file.
321
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
322
 
    dirpart=`AS_DIRNAME("$mf")`
323
 
  else
324
 
    continue
325
 
  fi
326
 
  # Extract the definition of DEPDIR, am__include, and am__quote
327
 
  # from the Makefile without running `make'.
328
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
329
 
  test -z "$DEPDIR" && continue
330
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
331
 
  test -z "am__include" && continue
332
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
333
 
  # When using ansi2knr, U may be empty or an underscore; expand it
334
 
  U=`sed -n 's/^U = //p' < "$mf"`
335
 
  # Find all dependency output files, they are included files with
336
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
337
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
338
 
  # expansion.
339
 
  for file in `sed -n "
340
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
341
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
342
 
    # Make sure the directory exists.
343
 
    test -f "$dirpart/$file" && continue
344
 
    fdir=`AS_DIRNAME(["$file"])`
345
 
    AS_MKDIR_P([$dirpart/$fdir])
346
 
    # echo "creating $dirpart/$file"
347
 
    echo '# dummy' > "$dirpart/$file"
 
366
[{
 
367
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
368
  # are listed without --file.  Let's play safe and only enable the eval
 
369
  # if we detect the quoting.
 
370
  case $CONFIG_FILES in
 
371
  *\'*) eval set x "$CONFIG_FILES" ;;
 
372
  *)   set x $CONFIG_FILES ;;
 
373
  esac
 
374
  shift
 
375
  for mf
 
376
  do
 
377
    # Strip MF so we end up with the name of the file.
 
378
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
379
    # Check whether this is an Automake generated Makefile or not.
 
380
    # We used to match only the files named `Makefile.in', but
 
381
    # some people rename them; so instead we look at the file content.
 
382
    # Grep'ing the first line is not enough: some people post-process
 
383
    # each Makefile.in and add a new line on top of each file to say so.
 
384
    # Grep'ing the whole file is not good either: AIX grep has a line
 
385
    # limit of 2048, but all sed's we know have understand at least 4000.
 
386
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
387
      dirpart=`AS_DIRNAME("$mf")`
 
388
    else
 
389
      continue
 
390
    fi
 
391
    # Extract the definition of DEPDIR, am__include, and am__quote
 
392
    # from the Makefile without running `make'.
 
393
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
394
    test -z "$DEPDIR" && continue
 
395
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
396
    test -z "am__include" && continue
 
397
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
398
    # When using ansi2knr, U may be empty or an underscore; expand it
 
399
    U=`sed -n 's/^U = //p' < "$mf"`
 
400
    # Find all dependency output files, they are included files with
 
401
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
402
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
403
    # expansion.
 
404
    for file in `sed -n "
 
405
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
406
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
407
      # Make sure the directory exists.
 
408
      test -f "$dirpart/$file" && continue
 
409
      fdir=`AS_DIRNAME(["$file"])`
 
410
      AS_MKDIR_P([$dirpart/$fdir])
 
411
      # echo "creating $dirpart/$file"
 
412
      echo '# dummy' > "$dirpart/$file"
 
413
    done
348
414
  done
349
 
done
 
415
}
350
416
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
351
417
 
352
418
 
377
443
 
378
444
# Do all the work for Automake.                             -*- Autoconf -*-
379
445
 
380
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
381
 
# Free Software Foundation, Inc.
 
446
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
447
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
382
448
#
383
449
# This file is free software; the Free Software Foundation
384
450
# gives unlimited permission to copy and/or distribute it,
385
451
# with or without modifications, as long as this notice is preserved.
386
452
 
387
 
# serial 12
 
453
# serial 16
388
454
 
389
455
# This macro actually does too much.  Some checks are only needed if
390
456
# your package does certain things.  But this isn't really a big deal.
401
467
# arguments mandatory, and then we can depend on a new Autoconf
402
468
# release and drop the old call support.
403
469
AC_DEFUN([AM_INIT_AUTOMAKE],
404
 
[AC_PREREQ([2.58])dnl
 
470
[AC_PREREQ([2.62])dnl
405
471
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
406
472
dnl the ones we care about.
407
473
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
408
474
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
409
475
AC_REQUIRE([AC_PROG_INSTALL])dnl
410
 
# test to see if srcdir already configured
411
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
412
 
   test -f $srcdir/config.status; then
413
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
476
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
477
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
478
  # is not polluted with repeated "-I."
 
479
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
480
  # test to see if srcdir already configured
 
481
  if test -f $srcdir/config.status; then
 
482
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
483
  fi
414
484
fi
415
485
 
416
486
# test whether we have cygpath
430
500
 AC_SUBST([PACKAGE], [$1])dnl
431
501
 AC_SUBST([VERSION], [$2])],
432
502
[_AM_SET_OPTIONS([$1])dnl
 
503
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
504
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
505
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
433
506
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
434
507
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
435
508
 
445
518
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
446
519
AM_MISSING_PROG(AUTOHEADER, autoheader)
447
520
AM_MISSING_PROG(MAKEINFO, makeinfo)
448
 
AM_PROG_INSTALL_SH
449
 
AM_PROG_INSTALL_STRIP
 
521
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
522
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
450
523
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
451
524
# We need awk for the "check" target.  The system "awk" is bad on
452
525
# some platforms.
454
527
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
455
528
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
456
529
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
457
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
458
 
                             [_AM_PROG_TAR([v7])])])
 
530
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
531
                             [_AM_PROG_TAR([v7])])])
459
532
_AM_IF_OPTION([no-dependencies],,
460
533
[AC_PROVIDE_IFELSE([AC_PROG_CC],
461
 
                  [_AM_DEPENDENCIES(CC)],
462
 
                  [define([AC_PROG_CC],
463
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
534
                  [_AM_DEPENDENCIES(CC)],
 
535
                  [define([AC_PROG_CC],
 
536
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
464
537
AC_PROVIDE_IFELSE([AC_PROG_CXX],
465
 
                  [_AM_DEPENDENCIES(CXX)],
466
 
                  [define([AC_PROG_CXX],
467
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
468
 
])
469
 
])
 
538
                  [_AM_DEPENDENCIES(CXX)],
 
539
                  [define([AC_PROG_CXX],
 
540
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
541
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
542
                  [_AM_DEPENDENCIES(OBJC)],
 
543
                  [define([AC_PROG_OBJC],
 
544
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
545
])
 
546
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
547
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
548
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
549
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
550
AC_CONFIG_COMMANDS_PRE(dnl
 
551
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
552
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
553
])
 
554
 
 
555
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
556
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
557
dnl mangled by Autoconf and run in a shell conditional statement.
 
558
m4_define([_AC_COMPILER_EXEEXT],
 
559
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
470
560
 
471
561
 
472
562
# When config.status generates a header, we must update the stamp-h file.
478
568
# our stamp files there.
479
569
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
480
570
[# Compute $1's index in $config_headers.
 
571
_am_arg=$1
481
572
_am_stamp_count=1
482
573
for _am_header in $config_headers :; do
483
574
  case $_am_header in
484
 
    $1 | $1:* )
 
575
    $_am_arg | $_am_arg:* )
485
576
      break ;;
486
577
    * )
487
578
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
488
579
  esac
489
580
done
490
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
581
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
491
582
 
492
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
583
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
493
584
#
494
585
# This file is free software; the Free Software Foundation
495
586
# gives unlimited permission to copy and/or distribute it,
500
591
# Define $install_sh.
501
592
AC_DEFUN([AM_PROG_INSTALL_SH],
502
593
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
503
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
594
if test x"${install_sh}" != xset; then
 
595
  case $am_aux_dir in
 
596
  *\ * | *\     *)
 
597
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
598
  *)
 
599
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
600
  esac
 
601
fi
504
602
AC_SUBST(install_sh)])
505
603
 
506
604
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
526
624
 
527
625
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
528
626
 
529
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
627
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
530
628
#
531
629
# This file is free software; the Free Software Foundation
532
630
# gives unlimited permission to copy and/or distribute it,
533
631
# with or without modifications, as long as this notice is preserved.
534
632
 
535
 
# serial 3
 
633
# serial 4
536
634
 
537
635
# AM_MAKE_INCLUDE()
538
636
# -----------------
541
639
[am_make=${MAKE-make}
542
640
cat > confinc << 'END'
543
641
am__doit:
544
 
        @echo done
 
642
        @echo this is the am__doit target
545
643
.PHONY: am__doit
546
644
END
547
645
# If we don't find an include directive, just comment out the code.
551
649
_am_result=none
552
650
# First try GNU make style include.
553
651
echo "include confinc" > confmf
554
 
# We grep out `Entering directory' and `Leaving directory'
555
 
# messages which can occur if `w' ends up in MAKEFLAGS.
556
 
# In particular we don't look at `^make:' because GNU make might
557
 
# be invoked under some other name (usually "gmake"), in which
558
 
# case it prints its new name instead of `make'.
559
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
560
 
   am__include=include
561
 
   am__quote=
562
 
   _am_result=GNU
563
 
fi
 
652
# Ignore all kinds of additional output from `make'.
 
653
case `$am_make -s -f confmf 2> /dev/null` in #(
 
654
*the\ am__doit\ target*)
 
655
  am__include=include
 
656
  am__quote=
 
657
  _am_result=GNU
 
658
  ;;
 
659
esac
564
660
# Now try BSD make style include.
565
661
if test "$am__include" = "#"; then
566
662
   echo '.include "confinc"' > confmf
567
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
568
 
      am__include=.include
569
 
      am__quote="\""
570
 
      _am_result=BSD
571
 
   fi
 
663
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
664
   *the\ am__doit\ target*)
 
665
     am__include=.include
 
666
     am__quote="\""
 
667
     _am_result=BSD
 
668
     ;;
 
669
   esac
572
670
fi
573
671
AC_SUBST([am__include])
574
672
AC_SUBST([am__quote])
578
676
 
579
677
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
580
678
 
581
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
679
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
582
680
# Free Software Foundation, Inc.
583
681
#
584
682
# This file is free software; the Free Software Foundation
585
683
# gives unlimited permission to copy and/or distribute it,
586
684
# with or without modifications, as long as this notice is preserved.
587
685
 
588
 
# serial 4
 
686
# serial 6
589
687
 
590
688
# AM_MISSING_PROG(NAME, PROGRAM)
591
689
# ------------------------------
601
699
# If it does, set am_missing_run to use it, otherwise, to nothing.
602
700
AC_DEFUN([AM_MISSING_HAS_RUN],
603
701
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
604
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
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
605
711
# Use eval to expand $SHELL
606
712
if eval "$MISSING --run true"; then
607
713
  am_missing_run="$MISSING --run "
611
717
fi
612
718
])
613
719
 
614
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
720
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
615
721
#
616
722
# This file is free software; the Free Software Foundation
617
723
# gives unlimited permission to copy and/or distribute it,
619
725
 
620
726
# AM_PROG_MKDIR_P
621
727
# ---------------
622
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
623
 
#
624
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
625
 
# created by `make install' are always world readable, even if the
626
 
# installer happens to have an overly restrictive umask (e.g. 077).
627
 
# This was a mistake.  There are at least two reasons why we must not
628
 
# use `-m 0755':
629
 
#   - it causes special bits like SGID to be ignored,
630
 
#   - it may be too restrictive (some setups expect 775 directories).
631
 
#
632
 
# Do not use -m 0755 and let people choose whatever they expect by
633
 
# setting umask.
634
 
#
635
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
636
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
637
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
638
 
# concurrently, both version can detect that a/ is missing, but only
639
 
# one can create it and the other will error out.  Consequently we
640
 
# restrict ourselves to GNU make (using the --version option ensures
641
 
# this.)
 
728
# Check for `mkdir -p'.
642
729
AC_DEFUN([AM_PROG_MKDIR_P],
643
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
644
 
  # We used to keeping the `.' as first argument, in order to
645
 
  # allow $(mkdir_p) to be used without argument.  As in
646
 
  #   $(mkdir_p) $(somedir)
647
 
  # where $(somedir) is conditionally defined.  However this is wrong
648
 
  # for two reasons:
649
 
  #  1. if the package is installed by a user who cannot write `.'
650
 
  #     make install will fail,
651
 
  #  2. the above comment should most certainly read
652
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
653
 
  #     so it does not work when $(somedir) is undefined and
654
 
  #     $(DESTDIR) is not.
655
 
  #  To support the latter case, we have to write
656
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
657
 
  #  so the `.' trick is pointless.
658
 
  mkdir_p='mkdir -p --'
659
 
else
660
 
  # On NextStep and OpenStep, the `mkdir' command does not
661
 
  # recognize any option.  It will interpret all options as
662
 
  # directories to create, and then abort because `.' already
663
 
  # exists.
664
 
  for d in ./-p ./--version;
665
 
  do
666
 
    test -d $d && rmdir $d
667
 
  done
668
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
669
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
670
 
    mkdir_p='$(mkinstalldirs)'
671
 
  else
672
 
    mkdir_p='$(install_sh) -d'
673
 
  fi
674
 
fi
675
 
AC_SUBST([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
])
676
745
 
677
746
# Helper functions for option handling.                     -*- Autoconf -*-
678
747
 
679
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
748
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
680
749
#
681
750
# This file is free software; the Free Software Foundation
682
751
# gives unlimited permission to copy and/or distribute it,
683
752
# with or without modifications, as long as this notice is preserved.
684
753
 
685
 
# serial 3
 
754
# serial 4
686
755
 
687
756
# _AM_MANGLE_OPTION(NAME)
688
757
# -----------------------
699
768
# ----------------------------------
700
769
# OPTIONS is a space-separated list of Automake options.
701
770
AC_DEFUN([_AM_SET_OPTIONS],
702
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
771
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
703
772
 
704
773
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
705
774
# -------------------------------------------
709
778
 
710
779
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
711
780
 
712
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
781
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
713
782
# Free Software Foundation, Inc.
714
783
#
715
784
# This file is free software; the Free Software Foundation
716
785
# gives unlimited permission to copy and/or distribute it,
717
786
# with or without modifications, as long as this notice is preserved.
718
787
 
719
 
# serial 4
 
788
# serial 5
720
789
 
721
790
# AM_SANITY_CHECK
722
791
# ---------------
725
794
# Just in case
726
795
sleep 1
727
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
 
728
810
# Do `set' in a subshell so we don't clobber the current shell's
729
811
# arguments.  Must try -L first in case configure is actually a
730
812
# symlink; some systems play weird games with the mod time of symlinks
731
813
# (eg FreeBSD returns the mod time of the symlink's containing
732
814
# directory).
733
815
if (
734
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
816
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
735
817
   if test "$[*]" = "X"; then
736
818
      # -L didn't work.
737
 
      set X `ls -t $srcdir/configure conftest.file`
 
819
      set X `ls -t "$srcdir/configure" conftest.file`
738
820
   fi
739
821
   rm -f conftest.file
740
822
   if test "$[*]" != "X $srcdir/configure conftest.file" \
784
866
if test "$cross_compiling" != no; then
785
867
  AC_CHECK_TOOL([STRIP], [strip], :)
786
868
fi
787
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
869
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
788
870
AC_SUBST([INSTALL_STRIP_PROGRAM])])
789
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
 
790
891
# Check how to create a tarball.                            -*- Autoconf -*-
791
892
 
792
893
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.