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