annotate aclocal.m4 @ 500:614a3177b15c noffle tip

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