~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-06-07 17:30:03 UTC
  • mto: (16.2.1 experimental) (2.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090607173003-rg37ui3h2bbv7wl0
Tags: upstream-1.5.19
ImportĀ upstreamĀ versionĀ 1.5.19

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.10.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  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
 
# isc-posix.m4 serial 2 (gettext-0.11.2)
15
 
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
16
 
dnl This file is free software; the Free Software Foundation
17
 
dnl gives unlimited permission to copy and/or distribute it,
18
 
dnl with or without modifications, as long as this notice is preserved.
19
 
 
20
 
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
21
 
 
22
 
# This test replaces the one in autoconf.
23
 
# Currently this macro should have the same name as the autoconf macro
24
 
# because gettext's gettext.m4 (distributed in the automake package)
25
 
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
26
 
# give these diagnostics:
27
 
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
28
 
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
29
 
 
30
 
undefine([AC_ISC_POSIX])
31
 
 
32
 
AC_DEFUN([AC_ISC_POSIX],
33
 
  [
34
 
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
35
 
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
36
 
  ]
37
 
)
38
 
 
39
 
# 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(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
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  Free Software Foundation, Inc.
40
23
#
41
24
# This file is free software; the Free Software Foundation
42
25
# gives unlimited permission to copy and/or distribute it,
46
29
# ----------------------------
47
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
48
31
# generated from the m4 files accompanying Automake X.Y.
49
 
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.10'
 
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.10.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], [])
50
47
 
51
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
52
49
# -------------------------------
53
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54
51
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
55
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
53
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
54
m4_ifndef([AC_AUTOCONF_VERSION],
 
55
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
56
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
57
57
 
58
58
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
59
 
110
110
 
111
111
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
112
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
114
114
# Free Software Foundation, Inc.
115
115
#
116
116
# This file is free software; the Free Software Foundation
117
117
# gives unlimited permission to copy and/or distribute it,
118
118
# with or without modifications, as long as this notice is preserved.
119
119
 
120
 
# serial 7
 
120
# serial 8
121
121
 
122
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
123
# -------------------------------------
126
126
[AC_PREREQ(2.52)dnl
127
127
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128
128
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
 
AC_SUBST([$1_TRUE])
130
 
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
131
133
if $2; then
132
134
  $1_TRUE=
133
135
  $1_FALSE='#'
141
143
Usually this means the macro was only invoked conditionally.]])
142
144
fi])])
143
145
 
144
 
 
145
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
146
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
146
147
# Free Software Foundation, Inc.
147
148
#
148
149
# This file is free software; the Free Software Foundation
149
150
# gives unlimited permission to copy and/or distribute it,
150
151
# with or without modifications, as long as this notice is preserved.
151
152
 
152
 
# serial 8
 
153
# serial 9
153
154
 
154
155
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
155
156
# written in clear, in which case automake, when reading aclocal.m4,
177
178
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
178
179
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
179
180
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
181
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
180
182
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
181
183
                   [depcc="$$1"   am_compiler_list=])
182
184
 
242
244
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
243
245
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
244
246
         >/dev/null 2>conftest.err &&
 
247
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
245
248
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
246
249
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
247
250
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
294
297
  AMDEPBACKSLASH='\'
295
298
fi
296
299
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
297
 
AC_SUBST([AMDEPBACKSLASH])
 
300
AC_SUBST([AMDEPBACKSLASH])dnl
 
301
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
298
302
])
299
303
 
300
304
# Generate code to set up dependency tracking.              -*- Autoconf -*-
319
323
  # some people rename them; so instead we look at the file content.
320
324
  # Grep'ing the first line is not enough: some people post-process
321
325
  # each Makefile.in and add a new line on top of each file to say so.
322
 
  # So let's grep whole file.
323
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
326
  # Grep'ing the whole file is not good either: AIX grep has a line
 
327
  # limit of 2048, but all sed's we know have understand at least 4000.
 
328
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
324
329
    dirpart=`AS_DIRNAME("$mf")`
325
330
  else
326
331
    continue
379
384
 
380
385
# Do all the work for Automake.                             -*- Autoconf -*-
381
386
 
382
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
383
 
# Free Software Foundation, Inc.
 
387
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
388
# 2005, 2006, 2008 Free Software Foundation, Inc.
384
389
#
385
390
# This file is free software; the Free Software Foundation
386
391
# gives unlimited permission to copy and/or distribute it,
387
392
# with or without modifications, as long as this notice is preserved.
388
393
 
389
 
# serial 12
 
394
# serial 13
390
395
 
391
396
# This macro actually does too much.  Some checks are only needed if
392
397
# your package does certain things.  But this isn't really a big deal.
403
408
# arguments mandatory, and then we can depend on a new Autoconf
404
409
# release and drop the old call support.
405
410
AC_DEFUN([AM_INIT_AUTOMAKE],
406
 
[AC_PREREQ([2.58])dnl
 
411
[AC_PREREQ([2.60])dnl
407
412
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
408
413
dnl the ones we care about.
409
414
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
410
415
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
411
416
AC_REQUIRE([AC_PROG_INSTALL])dnl
412
 
# test to see if srcdir already configured
413
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
414
 
   test -f $srcdir/config.status; then
415
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
417
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
418
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
419
  # is not polluted with repeated "-I."
 
420
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
421
  # test to see if srcdir already configured
 
422
  if test -f $srcdir/config.status; then
 
423
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
424
  fi
416
425
fi
417
426
 
418
427
# test whether we have cygpath
432
441
 AC_SUBST([PACKAGE], [$1])dnl
433
442
 AC_SUBST([VERSION], [$2])],
434
443
[_AM_SET_OPTIONS([$1])dnl
 
444
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
445
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
446
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
435
447
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
436
448
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
437
449
 
467
479
                  [_AM_DEPENDENCIES(CXX)],
468
480
                  [define([AC_PROG_CXX],
469
481
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
482
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
483
                  [_AM_DEPENDENCIES(OBJC)],
 
484
                  [define([AC_PROG_OBJC],
 
485
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
470
486
])
471
487
])
472
488
 
480
496
# our stamp files there.
481
497
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
482
498
[# Compute $1's index in $config_headers.
 
499
_am_arg=$1
483
500
_am_stamp_count=1
484
501
for _am_header in $config_headers :; do
485
502
  case $_am_header in
486
 
    $1 | $1:* )
 
503
    $_am_arg | $_am_arg:* )
487
504
      break ;;
488
505
    * )
489
506
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
490
507
  esac
491
508
done
492
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
509
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
493
510
 
494
511
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
495
512
#
502
519
# Define $install_sh.
503
520
AC_DEFUN([AM_PROG_INSTALL_SH],
504
521
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
505
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
522
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
506
523
AC_SUBST(install_sh)])
507
524
 
508
525
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
580
597
 
581
598
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
582
599
 
583
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
600
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
584
601
# Free Software Foundation, Inc.
585
602
#
586
603
# This file is free software; the Free Software Foundation
587
604
# gives unlimited permission to copy and/or distribute it,
588
605
# with or without modifications, as long as this notice is preserved.
589
606
 
590
 
# serial 4
 
607
# serial 5
591
608
 
592
609
# AM_MISSING_PROG(NAME, PROGRAM)
593
610
# ------------------------------
603
620
# If it does, set am_missing_run to use it, otherwise, to nothing.
604
621
AC_DEFUN([AM_MISSING_HAS_RUN],
605
622
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
623
AC_REQUIRE_AUX_FILE([missing])dnl
606
624
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
607
625
# Use eval to expand $SHELL
608
626
if eval "$MISSING --run true"; then
613
631
fi
614
632
])
615
633
 
616
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
634
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
617
635
#
618
636
# This file is free software; the Free Software Foundation
619
637
# gives unlimited permission to copy and/or distribute it,
621
639
 
622
640
# AM_PROG_MKDIR_P
623
641
# ---------------
624
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
625
 
#
626
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
627
 
# created by `make install' are always world readable, even if the
628
 
# installer happens to have an overly restrictive umask (e.g. 077).
629
 
# This was a mistake.  There are at least two reasons why we must not
630
 
# use `-m 0755':
631
 
#   - it causes special bits like SGID to be ignored,
632
 
#   - it may be too restrictive (some setups expect 775 directories).
633
 
#
634
 
# Do not use -m 0755 and let people choose whatever they expect by
635
 
# setting umask.
636
 
#
637
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
638
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
639
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
640
 
# concurrently, both version can detect that a/ is missing, but only
641
 
# one can create it and the other will error out.  Consequently we
642
 
# restrict ourselves to GNU make (using the --version option ensures
643
 
# this.)
 
642
# Check for `mkdir -p'.
644
643
AC_DEFUN([AM_PROG_MKDIR_P],
645
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
646
 
  # We used to keeping the `.' as first argument, in order to
647
 
  # allow $(mkdir_p) to be used without argument.  As in
648
 
  #   $(mkdir_p) $(somedir)
649
 
  # where $(somedir) is conditionally defined.  However this is wrong
650
 
  # for two reasons:
651
 
  #  1. if the package is installed by a user who cannot write `.'
652
 
  #     make install will fail,
653
 
  #  2. the above comment should most certainly read
654
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
655
 
  #     so it does not work when $(somedir) is undefined and
656
 
  #     $(DESTDIR) is not.
657
 
  #  To support the latter case, we have to write
658
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
659
 
  #  so the `.' trick is pointless.
660
 
  mkdir_p='mkdir -p --'
661
 
else
662
 
  # On NextStep and OpenStep, the `mkdir' command does not
663
 
  # recognize any option.  It will interpret all options as
664
 
  # directories to create, and then abort because `.' already
665
 
  # exists.
666
 
  for d in ./-p ./--version;
667
 
  do
668
 
    test -d $d && rmdir $d
669
 
  done
670
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
671
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
672
 
    mkdir_p='$(mkinstalldirs)'
673
 
  else
674
 
    mkdir_p='$(install_sh) -d'
675
 
  fi
676
 
fi
677
 
AC_SUBST([mkdir_p])])
 
644
[AC_PREREQ([2.60])dnl
 
645
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
646
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
647
dnl while keeping a definition of mkdir_p for backward compatibility.
 
648
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
649
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
650
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
651
dnl adjustment using top_builddir (which is defined more often than
 
652
dnl MKDIR_P).
 
653
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
654
case $mkdir_p in
 
655
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
656
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
657
esac
 
658
])
678
659
 
679
660
# Helper functions for option handling.                     -*- Autoconf -*-
680
661
 
709
690
AC_DEFUN([_AM_IF_OPTION],
710
691
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
711
692
 
712
 
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
 
693
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
713
694
# Free Software Foundation, Inc.
714
695
#
715
696
# This file is free software; the Free Software Foundation
716
697
# gives unlimited permission to copy and/or distribute it,
717
698
# with or without modifications, as long as this notice is preserved.
718
699
 
719
 
# serial 4
 
700
# serial 5
720
701
 
721
702
AC_DEFUN([AM_C_PROTOTYPES],
722
703
[AC_REQUIRE([AC_C_PROTOTYPES])
727
708
fi
728
709
# Ensure some checks needed by ansi2knr itself.
729
710
AC_REQUIRE([AC_HEADER_STDC])
730
 
AC_CHECK_HEADERS(string.h)
731
 
AC_SUBST(U)dnl
732
 
AC_SUBST(ANSI2KNR)dnl
 
711
AC_CHECK_HEADERS([string.h])
 
712
AC_SUBST([U])dnl
 
713
AC_SUBST([ANSI2KNR])dnl
 
714
_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
733
715
])
734
716
 
735
717
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
811
793
if test "$cross_compiling" != no; then
812
794
  AC_CHECK_TOOL([STRIP], [strip], :)
813
795
fi
814
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
796
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
815
797
AC_SUBST([INSTALL_STRIP_PROGRAM])])
816
798
 
 
799
# Copyright (C) 2006  Free Software Foundation, Inc.
 
800
#
 
801
# This file is free software; the Free Software Foundation
 
802
# gives unlimited permission to copy and/or distribute it,
 
803
# with or without modifications, as long as this notice is preserved.
 
804
 
 
805
# _AM_SUBST_NOTMAKE(VARIABLE)
 
806
# ---------------------------
 
807
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
808
# This macro is traced by Automake.
 
809
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
810
 
817
811
# Check how to create a tarball.                            -*- Autoconf -*-
818
812
 
819
813
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.