~ubuntu-branches/debian/jessie/make-dfsg/jessie

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2010-03-21 12:42:55 UTC
  • Revision ID: james.westby@ubuntu.com-20100321124255-ukc2euswom49jf2z
Tags: 3.81-8
* New bug fixing release.
* [a6f53b8]: [topic--overlap-strcpy-fix]: make corrupts commands with
  latest eglibc make uses strcpy() on overlapping strings, recent
  (e)glibc doesn't tolerate this. strcpy is not defined to work on
  overlapping regions. This is upstream bug
  https://savannah.gnu.org/bugs/index.php?29253 The fix comes thanks
  to Roderich Schupp and Max Bowsher.
  Bug fix: "make corrupts commands with latest eglibc (strcpy of
  overlapping strings)", thanks to Roderich Schupp    (Closes: #568665).
* Bug fix: "make package built from source missing libc6 dependency",
  thanks to Daniel Schepler                           (Closes: #569924).
* Bug fix: "Please build-depend on autopoint", thanks to Santiago Vila
                                                       (Closes: #572474).

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.65],,
 
17
[m4_warning([this file was generated for autoconf 2.65.
 
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
 
85
110
 
86
111
# AM_CONDITIONAL                                            -*- Autoconf -*-
87
112
 
88
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
89
114
# Free Software Foundation, Inc.
90
115
#
91
116
# This file is free software; the Free Software Foundation
92
117
# gives unlimited permission to copy and/or distribute it,
93
118
# with or without modifications, as long as this notice is preserved.
94
119
 
95
 
# serial 7
 
120
# serial 9
96
121
 
97
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
98
123
# -------------------------------------
101
126
[AC_PREREQ(2.52)dnl
102
127
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
103
128
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
104
 
AC_SUBST([$1_TRUE])
105
 
AC_SUBST([$1_FALSE])
 
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
106
134
if $2; then
107
135
  $1_TRUE=
108
136
  $1_FALSE='#'
116
144
Usually this means the macro was only invoked conditionally.]])
117
145
fi])])
118
146
 
119
 
 
120
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
121
148
# Free Software Foundation, Inc.
122
149
#
123
150
# This file is free software; the Free Software Foundation
124
151
# gives unlimited permission to copy and/or distribute it,
125
152
# with or without modifications, as long as this notice is preserved.
126
153
 
127
 
# serial 8
 
154
# serial 10
128
155
 
129
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
130
157
# written in clear, in which case automake, when reading aclocal.m4,
152
179
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
153
180
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
154
181
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
182
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
155
183
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
156
184
                   [depcc="$$1"   am_compiler_list=])
157
185
 
180
208
  if test "$am_compiler_list" = ""; then
181
209
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
182
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
 
183
221
  for depmode in $am_compiler_list; do
184
222
    # Setup a source with many dependencies, because some compilers
185
223
    # like to wrap large dependency lists on column 80 (with \), and
197
235
    done
198
236
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
199
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"
200
244
    case $depmode in
 
245
    gcc)
 
246
      # This depmode causes a compiler race in universal mode.
 
247
      test "$am__universal" = false || continue
 
248
      ;;
201
249
    nosideeffect)
202
250
      # after this tag, mechanisms are not by side-effect, so they'll
203
251
      # only be used when explicitly requested
207
255
        break
208
256
      fi
209
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
      ;;
210
265
    none) break ;;
211
266
    esac
212
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
213
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
214
 
    # handle `-M -o', and we need to detect this.
215
267
    if depmode=$depmode \
216
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
268
       source=sub/conftest.c object=$am__obj \
217
269
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
218
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
270
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
219
271
         >/dev/null 2>conftest.err &&
 
272
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
220
273
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
221
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
274
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
222
275
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
223
276
      # icc doesn't choke on unknown options, it will just issue warnings
224
277
      # or remarks (even with -Werror).  So we grep stderr for any message
269
322
  AMDEPBACKSLASH='\'
270
323
fi
271
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
272
 
AC_SUBST([AMDEPBACKSLASH])
 
325
AC_SUBST([AMDEPBACKSLASH])dnl
 
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
273
327
])
274
328
 
275
329
# Generate code to set up dependency tracking.              -*- Autoconf -*-
276
330
 
277
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
278
332
# Free Software Foundation, Inc.
279
333
#
280
334
# This file is free software; the Free Software Foundation
281
335
# gives unlimited permission to copy and/or distribute it,
282
336
# with or without modifications, as long as this notice is preserved.
283
337
 
284
 
#serial 3
 
338
#serial 5
285
339
 
286
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
287
341
# ------------------------------
288
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
289
 
[for mf in $CONFIG_FILES; do
290
 
  # Strip MF so we end up with the name of the file.
291
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
292
 
  # Check whether this is an Automake generated Makefile or not.
293
 
  # We used to match only the files named `Makefile.in', but
294
 
  # some people rename them; so instead we look at the file content.
295
 
  # Grep'ing the first line is not enough: some people post-process
296
 
  # each Makefile.in and add a new line on top of each file to say so.
297
 
  # So let's grep whole file.
298
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
299
 
    dirpart=`AS_DIRNAME("$mf")`
300
 
  else
301
 
    continue
302
 
  fi
303
 
  # Extract the definition of DEPDIR, am__include, and am__quote
304
 
  # from the Makefile without running `make'.
305
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
306
 
  test -z "$DEPDIR" && continue
307
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
308
 
  test -z "am__include" && continue
309
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
310
 
  # When using ansi2knr, U may be empty or an underscore; expand it
311
 
  U=`sed -n 's/^U = //p' < "$mf"`
312
 
  # Find all dependency output files, they are included files with
313
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
314
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
315
 
  # expansion.
316
 
  for file in `sed -n "
317
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
318
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
319
 
    # Make sure the directory exists.
320
 
    test -f "$dirpart/$file" && continue
321
 
    fdir=`AS_DIRNAME(["$file"])`
322
 
    AS_MKDIR_P([$dirpart/$fdir])
323
 
    # echo "creating $dirpart/$file"
324
 
    echo '# dummy' > "$dirpart/$file"
 
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
325
391
  done
326
 
done
 
392
}
327
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
328
394
 
329
395
 
370
436
 
371
437
# Do all the work for Automake.                             -*- Autoconf -*-
372
438
 
373
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
374
 
# Free Software Foundation, Inc.
 
439
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
440
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
375
441
#
376
442
# This file is free software; the Free Software Foundation
377
443
# gives unlimited permission to copy and/or distribute it,
378
444
# with or without modifications, as long as this notice is preserved.
379
445
 
380
 
# serial 12
 
446
# serial 16
381
447
 
382
448
# This macro actually does too much.  Some checks are only needed if
383
449
# your package does certain things.  But this isn't really a big deal.
394
460
# arguments mandatory, and then we can depend on a new Autoconf
395
461
# release and drop the old call support.
396
462
AC_DEFUN([AM_INIT_AUTOMAKE],
397
 
[AC_PREREQ([2.58])dnl
 
463
[AC_PREREQ([2.62])dnl
398
464
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
399
465
dnl the ones we care about.
400
466
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
401
467
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
402
468
AC_REQUIRE([AC_PROG_INSTALL])dnl
403
 
# test to see if srcdir already configured
404
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
405
 
   test -f $srcdir/config.status; then
406
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
469
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
470
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
471
  # is not polluted with repeated "-I."
 
472
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
473
  # test to see if srcdir already configured
 
474
  if test -f $srcdir/config.status; then
 
475
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
476
  fi
407
477
fi
408
478
 
409
479
# test whether we have cygpath
423
493
 AC_SUBST([PACKAGE], [$1])dnl
424
494
 AC_SUBST([VERSION], [$2])],
425
495
[_AM_SET_OPTIONS([$1])dnl
 
496
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
497
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
498
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
426
499
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
427
500
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
428
501
 
438
511
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
439
512
AM_MISSING_PROG(AUTOHEADER, autoheader)
440
513
AM_MISSING_PROG(MAKEINFO, makeinfo)
441
 
AM_PROG_INSTALL_SH
442
 
AM_PROG_INSTALL_STRIP
 
514
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
515
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
443
516
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
444
517
# We need awk for the "check" target.  The system "awk" is bad on
445
518
# some platforms.
447
520
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
448
521
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
449
522
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
450
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
451
 
                             [_AM_PROG_TAR([v7])])])
 
523
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
524
                             [_AM_PROG_TAR([v7])])])
452
525
_AM_IF_OPTION([no-dependencies],,
453
526
[AC_PROVIDE_IFELSE([AC_PROG_CC],
454
 
                  [_AM_DEPENDENCIES(CC)],
455
 
                  [define([AC_PROG_CC],
456
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
527
                  [_AM_DEPENDENCIES(CC)],
 
528
                  [define([AC_PROG_CC],
 
529
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
457
530
AC_PROVIDE_IFELSE([AC_PROG_CXX],
458
 
                  [_AM_DEPENDENCIES(CXX)],
459
 
                  [define([AC_PROG_CXX],
460
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
461
 
])
462
 
])
 
531
                  [_AM_DEPENDENCIES(CXX)],
 
532
                  [define([AC_PROG_CXX],
 
533
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
534
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
535
                  [_AM_DEPENDENCIES(OBJC)],
 
536
                  [define([AC_PROG_OBJC],
 
537
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
538
])
 
539
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
540
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
541
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
542
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
543
AC_CONFIG_COMMANDS_PRE(dnl
 
544
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
545
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
546
])
 
547
 
 
548
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
549
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
550
dnl mangled by Autoconf and run in a shell conditional statement.
 
551
m4_define([_AC_COMPILER_EXEEXT],
 
552
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
463
553
 
464
554
 
465
555
# When config.status generates a header, we must update the stamp-h file.
471
561
# our stamp files there.
472
562
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
473
563
[# Compute $1's index in $config_headers.
 
564
_am_arg=$1
474
565
_am_stamp_count=1
475
566
for _am_header in $config_headers :; do
476
567
  case $_am_header in
477
 
    $1 | $1:* )
 
568
    $_am_arg | $_am_arg:* )
478
569
      break ;;
479
570
    * )
480
571
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
481
572
  esac
482
573
done
483
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
574
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
484
575
 
485
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
576
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
486
577
#
487
578
# This file is free software; the Free Software Foundation
488
579
# gives unlimited permission to copy and/or distribute it,
493
584
# Define $install_sh.
494
585
AC_DEFUN([AM_PROG_INSTALL_SH],
495
586
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
496
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
587
if test x"${install_sh}" != xset; then
 
588
  case $am_aux_dir in
 
589
  *\ * | *\     *)
 
590
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
591
  *)
 
592
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
593
  esac
 
594
fi
497
595
AC_SUBST(install_sh)])
498
596
 
499
597
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
520
618
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
521
619
# From Jim Meyering
522
620
 
523
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
621
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
524
622
# Free Software Foundation, Inc.
525
623
#
526
624
# This file is free software; the Free Software Foundation
527
625
# gives unlimited permission to copy and/or distribute it,
528
626
# with or without modifications, as long as this notice is preserved.
529
627
 
530
 
# serial 4
 
628
# serial 5
531
629
 
 
630
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
631
# ----------------------------------
 
632
# Control maintainer-specific portions of Makefiles.
 
633
# Default is to disable them, unless `enable' is passed literally.
 
634
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
635
# can override the default with the --enable/--disable switch.
532
636
AC_DEFUN([AM_MAINTAINER_MODE],
533
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
534
 
  dnl maintainer-mode is disabled by default
535
 
  AC_ARG_ENABLE(maintainer-mode,
536
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
637
[m4_case(m4_default([$1], [disable]),
 
638
       [enable], [m4_define([am_maintainer_other], [disable])],
 
639
       [disable], [m4_define([am_maintainer_other], [enable])],
 
640
       [m4_define([am_maintainer_other], [enable])
 
641
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
642
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
643
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
644
  AC_ARG_ENABLE([maintainer-mode],
 
645
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
537
646
                          (and sometimes confusing) to the casual installer],
538
 
      USE_MAINTAINER_MODE=$enableval,
539
 
      USE_MAINTAINER_MODE=no)
 
647
      [USE_MAINTAINER_MODE=$enableval],
 
648
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
540
649
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
541
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
650
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
542
651
  MAINT=$MAINTAINER_MODE_TRUE
543
 
  AC_SUBST(MAINT)dnl
 
652
  AC_SUBST([MAINT])dnl
544
653
]
545
654
)
546
655
 
548
657
 
549
658
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
550
659
 
551
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
660
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
552
661
#
553
662
# This file is free software; the Free Software Foundation
554
663
# gives unlimited permission to copy and/or distribute it,
555
664
# with or without modifications, as long as this notice is preserved.
556
665
 
557
 
# serial 3
 
666
# serial 4
558
667
 
559
668
# AM_MAKE_INCLUDE()
560
669
# -----------------
563
672
[am_make=${MAKE-make}
564
673
cat > confinc << 'END'
565
674
am__doit:
566
 
        @echo done
 
675
        @echo this is the am__doit target
567
676
.PHONY: am__doit
568
677
END
569
678
# If we don't find an include directive, just comment out the code.
573
682
_am_result=none
574
683
# First try GNU make style include.
575
684
echo "include confinc" > confmf
576
 
# We grep out `Entering directory' and `Leaving directory'
577
 
# messages which can occur if `w' ends up in MAKEFLAGS.
578
 
# In particular we don't look at `^make:' because GNU make might
579
 
# be invoked under some other name (usually "gmake"), in which
580
 
# case it prints its new name instead of `make'.
581
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
582
 
   am__include=include
583
 
   am__quote=
584
 
   _am_result=GNU
585
 
fi
 
685
# Ignore all kinds of additional output from `make'.
 
686
case `$am_make -s -f confmf 2> /dev/null` in #(
 
687
*the\ am__doit\ target*)
 
688
  am__include=include
 
689
  am__quote=
 
690
  _am_result=GNU
 
691
  ;;
 
692
esac
586
693
# Now try BSD make style include.
587
694
if test "$am__include" = "#"; then
588
695
   echo '.include "confinc"' > confmf
589
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
590
 
      am__include=.include
591
 
      am__quote="\""
592
 
      _am_result=BSD
593
 
   fi
 
696
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
697
   *the\ am__doit\ target*)
 
698
     am__include=.include
 
699
     am__quote="\""
 
700
     _am_result=BSD
 
701
     ;;
 
702
   esac
594
703
fi
595
704
AC_SUBST([am__include])
596
705
AC_SUBST([am__quote])
598
707
rm -f confinc confmf
599
708
])
600
709
 
601
 
# Copyright (C) 1999, 2000, 2001, 2003, 2005  Free Software Foundation, Inc.
 
710
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
711
# Free Software Foundation, Inc.
602
712
#
603
713
# This file is free software; the Free Software Foundation
604
714
# gives unlimited permission to copy and/or distribute it,
605
715
# with or without modifications, as long as this notice is preserved.
606
716
 
607
 
# serial 3
 
717
# serial 6
608
718
 
609
719
# AM_PROG_CC_C_O
610
720
# --------------
612
722
AC_DEFUN([AM_PROG_CC_C_O],
613
723
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
614
724
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
725
AC_REQUIRE_AUX_FILE([compile])dnl
615
726
# FIXME: we rely on the cache variable name because
616
727
# there is no other way.
617
728
set dummy $CC
618
 
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
619
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
729
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
730
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
731
if test "$am_t" != yes; then
620
732
   # Losing compiler, so override with the script.
621
733
   # FIXME: It is wrong to rewrite CC.
622
734
   # But if we don't then we get into trouble of one sort or another.
624
736
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
625
737
   CC="$am_aux_dir/compile $CC"
626
738
fi
 
739
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
740
dnl setting of CC.
 
741
m4_define([AC_PROG_CC],
 
742
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
627
743
])
628
744
 
629
745
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
630
746
 
631
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
747
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
632
748
# Free Software Foundation, Inc.
633
749
#
634
750
# This file is free software; the Free Software Foundation
635
751
# gives unlimited permission to copy and/or distribute it,
636
752
# with or without modifications, as long as this notice is preserved.
637
753
 
638
 
# serial 4
 
754
# serial 6
639
755
 
640
756
# AM_MISSING_PROG(NAME, PROGRAM)
641
757
# ------------------------------
651
767
# If it does, set am_missing_run to use it, otherwise, to nothing.
652
768
AC_DEFUN([AM_MISSING_HAS_RUN],
653
769
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
654
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
770
AC_REQUIRE_AUX_FILE([missing])dnl
 
771
if test x"${MISSING+set}" != xset; then
 
772
  case $am_aux_dir in
 
773
  *\ * | *\     *)
 
774
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
775
  *)
 
776
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
777
  esac
 
778
fi
655
779
# Use eval to expand $SHELL
656
780
if eval "$MISSING --run true"; then
657
781
  am_missing_run="$MISSING --run "
661
785
fi
662
786
])
663
787
 
664
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
788
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
665
789
#
666
790
# This file is free software; the Free Software Foundation
667
791
# gives unlimited permission to copy and/or distribute it,
669
793
 
670
794
# AM_PROG_MKDIR_P
671
795
# ---------------
672
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
673
 
#
674
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
675
 
# created by `make install' are always world readable, even if the
676
 
# installer happens to have an overly restrictive umask (e.g. 077).
677
 
# This was a mistake.  There are at least two reasons why we must not
678
 
# use `-m 0755':
679
 
#   - it causes special bits like SGID to be ignored,
680
 
#   - it may be too restrictive (some setups expect 775 directories).
681
 
#
682
 
# Do not use -m 0755 and let people choose whatever they expect by
683
 
# setting umask.
684
 
#
685
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
686
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
687
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
688
 
# concurrently, both version can detect that a/ is missing, but only
689
 
# one can create it and the other will error out.  Consequently we
690
 
# restrict ourselves to GNU make (using the --version option ensures
691
 
# this.)
 
796
# Check for `mkdir -p'.
692
797
AC_DEFUN([AM_PROG_MKDIR_P],
693
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
694
 
  # We used to keeping the `.' as first argument, in order to
695
 
  # allow $(mkdir_p) to be used without argument.  As in
696
 
  #   $(mkdir_p) $(somedir)
697
 
  # where $(somedir) is conditionally defined.  However this is wrong
698
 
  # for two reasons:
699
 
  #  1. if the package is installed by a user who cannot write `.'
700
 
  #     make install will fail,
701
 
  #  2. the above comment should most certainly read
702
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
703
 
  #     so it does not work when $(somedir) is undefined and
704
 
  #     $(DESTDIR) is not.
705
 
  #  To support the latter case, we have to write
706
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
707
 
  #  so the `.' trick is pointless.
708
 
  mkdir_p='mkdir -p --'
709
 
else
710
 
  # On NextStep and OpenStep, the `mkdir' command does not
711
 
  # recognize any option.  It will interpret all options as
712
 
  # directories to create, and then abort because `.' already
713
 
  # exists.
714
 
  for d in ./-p ./--version;
715
 
  do
716
 
    test -d $d && rmdir $d
717
 
  done
718
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
719
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
720
 
    mkdir_p='$(mkinstalldirs)'
721
 
  else
722
 
    mkdir_p='$(install_sh) -d'
723
 
  fi
724
 
fi
725
 
AC_SUBST([mkdir_p])])
 
798
[AC_PREREQ([2.60])dnl
 
799
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
800
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
801
dnl while keeping a definition of mkdir_p for backward compatibility.
 
802
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
803
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
804
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
805
dnl adjustment using top_builddir (which is defined more often than
 
806
dnl MKDIR_P).
 
807
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
808
case $mkdir_p in
 
809
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
810
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
811
esac
 
812
])
726
813
 
727
814
# Helper functions for option handling.                     -*- Autoconf -*-
728
815
 
729
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
816
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
730
817
#
731
818
# This file is free software; the Free Software Foundation
732
819
# gives unlimited permission to copy and/or distribute it,
733
820
# with or without modifications, as long as this notice is preserved.
734
821
 
735
 
# serial 3
 
822
# serial 4
736
823
 
737
824
# _AM_MANGLE_OPTION(NAME)
738
825
# -----------------------
749
836
# ----------------------------------
750
837
# OPTIONS is a space-separated list of Automake options.
751
838
AC_DEFUN([_AM_SET_OPTIONS],
752
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
839
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
753
840
 
754
841
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
755
842
# -------------------------------------------
757
844
AC_DEFUN([_AM_IF_OPTION],
758
845
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
759
846
 
760
 
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
 
847
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
761
848
# Free Software Foundation, Inc.
762
849
#
763
850
# This file is free software; the Free Software Foundation
764
851
# gives unlimited permission to copy and/or distribute it,
765
852
# with or without modifications, as long as this notice is preserved.
766
853
 
767
 
# serial 4
 
854
# serial 5
768
855
 
769
856
AC_DEFUN([AM_C_PROTOTYPES],
770
857
[AC_REQUIRE([AC_C_PROTOTYPES])
775
862
fi
776
863
# Ensure some checks needed by ansi2knr itself.
777
864
AC_REQUIRE([AC_HEADER_STDC])
778
 
AC_CHECK_HEADERS(string.h)
779
 
AC_SUBST(U)dnl
780
 
AC_SUBST(ANSI2KNR)dnl
 
865
AC_CHECK_HEADERS([string.h])
 
866
AC_SUBST([U])dnl
 
867
AC_SUBST([ANSI2KNR])dnl
 
868
_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
781
869
])
782
870
 
783
871
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
784
872
 
785
873
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
786
874
 
787
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
875
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
788
876
# Free Software Foundation, Inc.
789
877
#
790
878
# This file is free software; the Free Software Foundation
791
879
# gives unlimited permission to copy and/or distribute it,
792
880
# with or without modifications, as long as this notice is preserved.
793
881
 
794
 
# serial 4
 
882
# serial 5
795
883
 
796
884
# AM_SANITY_CHECK
797
885
# ---------------
800
888
# Just in case
801
889
sleep 1
802
890
echo timestamp > conftest.file
 
891
# Reject unsafe characters in $srcdir or the absolute working directory
 
892
# name.  Accept space and tab only in the latter.
 
893
am_lf='
 
894
'
 
895
case `pwd` in
 
896
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
897
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
898
esac
 
899
case $srcdir in
 
900
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
901
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
902
esac
 
903
 
803
904
# Do `set' in a subshell so we don't clobber the current shell's
804
905
# arguments.  Must try -L first in case configure is actually a
805
906
# symlink; some systems play weird games with the mod time of symlinks
806
907
# (eg FreeBSD returns the mod time of the symlink's containing
807
908
# directory).
808
909
if (
809
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
910
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
810
911
   if test "$[*]" = "X"; then
811
912
      # -L didn't work.
812
 
      set X `ls -t $srcdir/configure conftest.file`
 
913
      set X `ls -t "$srcdir/configure" conftest.file`
813
914
   fi
814
915
   rm -f conftest.file
815
916
   if test "$[*]" != "X $srcdir/configure conftest.file" \
859
960
if test "$cross_compiling" != no; then
860
961
  AC_CHECK_TOOL([STRIP], [strip], :)
861
962
fi
862
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
963
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
863
964
AC_SUBST([INSTALL_STRIP_PROGRAM])])
864
965
 
 
966
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
967
#
 
968
# This file is free software; the Free Software Foundation
 
969
# gives unlimited permission to copy and/or distribute it,
 
970
# with or without modifications, as long as this notice is preserved.
 
971
 
 
972
# serial 2
 
973
 
 
974
# _AM_SUBST_NOTMAKE(VARIABLE)
 
975
# ---------------------------
 
976
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
977
# This macro is traced by Automake.
 
978
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
979
 
 
980
# AM_SUBST_NOTMAKE(VARIABLE)
 
981
# ---------------------------
 
982
# Public sister of _AM_SUBST_NOTMAKE.
 
983
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
984
 
865
985
# Check how to create a tarball.                            -*- Autoconf -*-
866
986
 
867
987
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
961
1081
m4_include([config/dospaths.m4])
962
1082
m4_include([config/gettext.m4])
963
1083
m4_include([config/iconv.m4])
 
1084
m4_include([config/isc-posix.m4])
964
1085
m4_include([config/lib-ld.m4])
965
1086
m4_include([config/lib-link.m4])
966
1087
m4_include([config/lib-prefix.m4])