1 |
root |
1.1 |
# generated automatically by aclocal 1.7.9 -*- Autoconf -*- |
2 |
|
|
|
3 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
4 |
|
|
# Free Software Foundation, Inc. |
5 |
|
|
# This file is free software; the Free Software Foundation |
6 |
|
|
# gives unlimited permission to copy and/or distribute it, |
7 |
|
|
# with or without modifications, as long as this notice is preserved. |
8 |
|
|
|
9 |
|
|
# This program is distributed in the hope that it will be useful, |
10 |
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
11 |
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 |
|
|
# PARTICULAR PURPOSE. |
13 |
|
|
|
14 |
|
|
# Do all the work for Automake. -*- Autoconf -*- |
15 |
|
|
|
16 |
|
|
# This macro actually does too much some checks are only needed if |
17 |
|
|
# your package does certain things. But this isn't really a big deal. |
18 |
|
|
|
19 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 |
20 |
|
|
# Free Software Foundation, Inc. |
21 |
|
|
|
22 |
|
|
# This program is free software; you can redistribute it and/or modify |
23 |
|
|
# it under the terms of the GNU General Public License as published by |
24 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
25 |
|
|
# any later version. |
26 |
|
|
|
27 |
|
|
# This program is distributed in the hope that it will be useful, |
28 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
29 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
30 |
|
|
# GNU General Public License for more details. |
31 |
|
|
|
32 |
|
|
# You should have received a copy of the GNU General Public License |
33 |
|
|
# along with this program; if not, write to the Free Software |
34 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
35 |
|
|
# 02111-1307, USA. |
36 |
|
|
|
37 |
|
|
# serial 10 |
38 |
|
|
|
39 |
|
|
AC_PREREQ([2.54]) |
40 |
|
|
|
41 |
|
|
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
42 |
|
|
# the ones we care about. |
43 |
|
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
44 |
|
|
|
45 |
|
|
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
46 |
|
|
# AM_INIT_AUTOMAKE([OPTIONS]) |
47 |
|
|
# ----------------------------------------------- |
48 |
|
|
# The call with PACKAGE and VERSION arguments is the old style |
49 |
|
|
# call (pre autoconf-2.50), which is being phased out. PACKAGE |
50 |
|
|
# and VERSION should now be passed to AC_INIT and removed from |
51 |
|
|
# the call to AM_INIT_AUTOMAKE. |
52 |
|
|
# We support both call styles for the transition. After |
53 |
|
|
# the next Automake release, Autoconf can make the AC_INIT |
54 |
|
|
# arguments mandatory, and then we can depend on a new Autoconf |
55 |
|
|
# release and drop the old call support. |
56 |
|
|
AC_DEFUN([AM_INIT_AUTOMAKE], |
57 |
|
|
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
58 |
|
|
AC_REQUIRE([AC_PROG_INSTALL])dnl |
59 |
|
|
# test to see if srcdir already configured |
60 |
|
|
if test "`cd $srcdir && pwd`" != "`pwd`" && |
61 |
|
|
test -f $srcdir/config.status; then |
62 |
|
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
63 |
|
|
fi |
64 |
|
|
|
65 |
|
|
# test whether we have cygpath |
66 |
|
|
if test -z "$CYGPATH_W"; then |
67 |
|
|
if (cygpath --version) >/dev/null 2>/dev/null; then |
68 |
|
|
CYGPATH_W='cygpath -w' |
69 |
|
|
else |
70 |
|
|
CYGPATH_W=echo |
71 |
|
|
fi |
72 |
|
|
fi |
73 |
|
|
AC_SUBST([CYGPATH_W]) |
74 |
|
|
|
75 |
|
|
# Define the identity of the package. |
76 |
|
|
dnl Distinguish between old-style and new-style calls. |
77 |
|
|
m4_ifval([$2], |
78 |
|
|
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
79 |
|
|
AC_SUBST([PACKAGE], [$1])dnl |
80 |
|
|
AC_SUBST([VERSION], [$2])], |
81 |
|
|
[_AM_SET_OPTIONS([$1])dnl |
82 |
|
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
83 |
|
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
84 |
|
|
|
85 |
|
|
_AM_IF_OPTION([no-define],, |
86 |
|
|
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
87 |
|
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
88 |
|
|
|
89 |
|
|
# Some tools Automake needs. |
90 |
|
|
AC_REQUIRE([AM_SANITY_CHECK])dnl |
91 |
|
|
AC_REQUIRE([AC_ARG_PROGRAM])dnl |
92 |
|
|
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
93 |
|
|
AM_MISSING_PROG(AUTOCONF, autoconf) |
94 |
|
|
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
95 |
|
|
AM_MISSING_PROG(AUTOHEADER, autoheader) |
96 |
|
|
AM_MISSING_PROG(MAKEINFO, makeinfo) |
97 |
|
|
AM_MISSING_PROG(AMTAR, tar) |
98 |
|
|
AM_PROG_INSTALL_SH |
99 |
|
|
AM_PROG_INSTALL_STRIP |
100 |
|
|
# We need awk for the "check" target. The system "awk" is bad on |
101 |
|
|
# some platforms. |
102 |
|
|
AC_REQUIRE([AC_PROG_AWK])dnl |
103 |
|
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
104 |
|
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
105 |
|
|
|
106 |
|
|
_AM_IF_OPTION([no-dependencies],, |
107 |
|
|
[AC_PROVIDE_IFELSE([AC_PROG_CC], |
108 |
|
|
[_AM_DEPENDENCIES(CC)], |
109 |
|
|
[define([AC_PROG_CC], |
110 |
|
|
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
111 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
112 |
|
|
[_AM_DEPENDENCIES(CXX)], |
113 |
|
|
[define([AC_PROG_CXX], |
114 |
|
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
115 |
|
|
]) |
116 |
|
|
]) |
117 |
|
|
|
118 |
|
|
|
119 |
|
|
# When config.status generates a header, we must update the stamp-h file. |
120 |
|
|
# This file resides in the same directory as the config header |
121 |
|
|
# that is generated. The stamp files are numbered to have different names. |
122 |
|
|
|
123 |
|
|
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
124 |
|
|
# loop where config.status creates the headers, so we can generate |
125 |
|
|
# our stamp files there. |
126 |
|
|
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
127 |
|
|
[# Compute $1's index in $config_headers. |
128 |
|
|
_am_stamp_count=1 |
129 |
|
|
for _am_header in $config_headers :; do |
130 |
|
|
case $_am_header in |
131 |
|
|
$1 | $1:* ) |
132 |
|
|
break ;; |
133 |
|
|
* ) |
134 |
|
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
135 |
|
|
esac |
136 |
|
|
done |
137 |
|
|
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
138 |
|
|
|
139 |
|
|
# Copyright 2002 Free Software Foundation, Inc. |
140 |
|
|
|
141 |
|
|
# This program is free software; you can redistribute it and/or modify |
142 |
|
|
# it under the terms of the GNU General Public License as published by |
143 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
144 |
|
|
# any later version. |
145 |
|
|
|
146 |
|
|
# This program is distributed in the hope that it will be useful, |
147 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
148 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
149 |
|
|
# GNU General Public License for more details. |
150 |
|
|
|
151 |
|
|
# You should have received a copy of the GNU General Public License |
152 |
|
|
# along with this program; if not, write to the Free Software |
153 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
154 |
|
|
|
155 |
|
|
# AM_AUTOMAKE_VERSION(VERSION) |
156 |
|
|
# ---------------------------- |
157 |
|
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been |
158 |
|
|
# generated from the m4 files accompanying Automake X.Y. |
159 |
|
|
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) |
160 |
|
|
|
161 |
|
|
# AM_SET_CURRENT_AUTOMAKE_VERSION |
162 |
|
|
# ------------------------------- |
163 |
|
|
# Call AM_AUTOMAKE_VERSION so it can be traced. |
164 |
|
|
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
165 |
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
166 |
|
|
[AM_AUTOMAKE_VERSION([1.7.9])]) |
167 |
|
|
|
168 |
|
|
# Helper functions for option handling. -*- Autoconf -*- |
169 |
|
|
|
170 |
|
|
# Copyright 2001, 2002 Free Software Foundation, Inc. |
171 |
|
|
|
172 |
|
|
# This program is free software; you can redistribute it and/or modify |
173 |
|
|
# it under the terms of the GNU General Public License as published by |
174 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
175 |
|
|
# any later version. |
176 |
|
|
|
177 |
|
|
# This program is distributed in the hope that it will be useful, |
178 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
179 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
180 |
|
|
# GNU General Public License for more details. |
181 |
|
|
|
182 |
|
|
# You should have received a copy of the GNU General Public License |
183 |
|
|
# along with this program; if not, write to the Free Software |
184 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
185 |
|
|
# 02111-1307, USA. |
186 |
|
|
|
187 |
|
|
# serial 2 |
188 |
|
|
|
189 |
|
|
# _AM_MANGLE_OPTION(NAME) |
190 |
|
|
# ----------------------- |
191 |
|
|
AC_DEFUN([_AM_MANGLE_OPTION], |
192 |
|
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
193 |
|
|
|
194 |
|
|
# _AM_SET_OPTION(NAME) |
195 |
|
|
# ------------------------------ |
196 |
|
|
# Set option NAME. Presently that only means defining a flag for this option. |
197 |
|
|
AC_DEFUN([_AM_SET_OPTION], |
198 |
|
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
199 |
|
|
|
200 |
|
|
# _AM_SET_OPTIONS(OPTIONS) |
201 |
|
|
# ---------------------------------- |
202 |
|
|
# OPTIONS is a space-separated list of Automake options. |
203 |
|
|
AC_DEFUN([_AM_SET_OPTIONS], |
204 |
|
|
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
205 |
|
|
|
206 |
|
|
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
207 |
|
|
# ------------------------------------------- |
208 |
|
|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
209 |
|
|
AC_DEFUN([_AM_IF_OPTION], |
210 |
|
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
211 |
|
|
|
212 |
|
|
# |
213 |
|
|
# Check to make sure that the build environment is sane. |
214 |
|
|
# |
215 |
|
|
|
216 |
|
|
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
217 |
|
|
|
218 |
|
|
# This program is free software; you can redistribute it and/or modify |
219 |
|
|
# it under the terms of the GNU General Public License as published by |
220 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
221 |
|
|
# any later version. |
222 |
|
|
|
223 |
|
|
# This program is distributed in the hope that it will be useful, |
224 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
225 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
226 |
|
|
# GNU General Public License for more details. |
227 |
|
|
|
228 |
|
|
# You should have received a copy of the GNU General Public License |
229 |
|
|
# along with this program; if not, write to the Free Software |
230 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
231 |
|
|
# 02111-1307, USA. |
232 |
|
|
|
233 |
|
|
# serial 3 |
234 |
|
|
|
235 |
|
|
# AM_SANITY_CHECK |
236 |
|
|
# --------------- |
237 |
|
|
AC_DEFUN([AM_SANITY_CHECK], |
238 |
|
|
[AC_MSG_CHECKING([whether build environment is sane]) |
239 |
|
|
# Just in case |
240 |
|
|
sleep 1 |
241 |
|
|
echo timestamp > conftest.file |
242 |
|
|
# Do `set' in a subshell so we don't clobber the current shell's |
243 |
|
|
# arguments. Must try -L first in case configure is actually a |
244 |
|
|
# symlink; some systems play weird games with the mod time of symlinks |
245 |
|
|
# (eg FreeBSD returns the mod time of the symlink's containing |
246 |
|
|
# directory). |
247 |
|
|
if ( |
248 |
|
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
249 |
|
|
if test "$[*]" = "X"; then |
250 |
|
|
# -L didn't work. |
251 |
|
|
set X `ls -t $srcdir/configure conftest.file` |
252 |
|
|
fi |
253 |
|
|
rm -f conftest.file |
254 |
|
|
if test "$[*]" != "X $srcdir/configure conftest.file" \ |
255 |
|
|
&& test "$[*]" != "X conftest.file $srcdir/configure"; then |
256 |
|
|
|
257 |
|
|
# If neither matched, then we have a broken ls. This can happen |
258 |
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a |
259 |
|
|
# broken ls alias from the environment. This has actually |
260 |
|
|
# happened. Such a system could not be considered "sane". |
261 |
|
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
262 |
|
|
alias in your environment]) |
263 |
|
|
fi |
264 |
|
|
|
265 |
|
|
test "$[2]" = conftest.file |
266 |
|
|
) |
267 |
|
|
then |
268 |
|
|
# Ok. |
269 |
|
|
: |
270 |
|
|
else |
271 |
|
|
AC_MSG_ERROR([newly created file is older than distributed files! |
272 |
|
|
Check your system clock]) |
273 |
|
|
fi |
274 |
|
|
AC_MSG_RESULT(yes)]) |
275 |
|
|
|
276 |
|
|
# -*- Autoconf -*- |
277 |
|
|
|
278 |
|
|
|
279 |
|
|
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. |
280 |
|
|
|
281 |
|
|
# This program is free software; you can redistribute it and/or modify |
282 |
|
|
# it under the terms of the GNU General Public License as published by |
283 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
284 |
|
|
# any later version. |
285 |
|
|
|
286 |
|
|
# This program is distributed in the hope that it will be useful, |
287 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
288 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
289 |
|
|
# GNU General Public License for more details. |
290 |
|
|
|
291 |
|
|
# You should have received a copy of the GNU General Public License |
292 |
|
|
# along with this program; if not, write to the Free Software |
293 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
294 |
|
|
# 02111-1307, USA. |
295 |
|
|
|
296 |
|
|
# serial 3 |
297 |
|
|
|
298 |
|
|
# AM_MISSING_PROG(NAME, PROGRAM) |
299 |
|
|
# ------------------------------ |
300 |
|
|
AC_DEFUN([AM_MISSING_PROG], |
301 |
|
|
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
302 |
|
|
$1=${$1-"${am_missing_run}$2"} |
303 |
|
|
AC_SUBST($1)]) |
304 |
|
|
|
305 |
|
|
|
306 |
|
|
# AM_MISSING_HAS_RUN |
307 |
|
|
# ------------------ |
308 |
|
|
# Define MISSING if not defined so far and test if it supports --run. |
309 |
|
|
# If it does, set am_missing_run to use it, otherwise, to nothing. |
310 |
|
|
AC_DEFUN([AM_MISSING_HAS_RUN], |
311 |
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
312 |
|
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
313 |
|
|
# Use eval to expand $SHELL |
314 |
|
|
if eval "$MISSING --run true"; then |
315 |
|
|
am_missing_run="$MISSING --run " |
316 |
|
|
else |
317 |
|
|
am_missing_run= |
318 |
|
|
AC_MSG_WARN([`missing' script is too old or missing]) |
319 |
|
|
fi |
320 |
|
|
]) |
321 |
|
|
|
322 |
|
|
# AM_AUX_DIR_EXPAND |
323 |
|
|
|
324 |
|
|
# Copyright 2001 Free Software Foundation, Inc. |
325 |
|
|
|
326 |
|
|
# This program is free software; you can redistribute it and/or modify |
327 |
|
|
# it under the terms of the GNU General Public License as published by |
328 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
329 |
|
|
# any later version. |
330 |
|
|
|
331 |
|
|
# This program is distributed in the hope that it will be useful, |
332 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
333 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
334 |
|
|
# GNU General Public License for more details. |
335 |
|
|
|
336 |
|
|
# You should have received a copy of the GNU General Public License |
337 |
|
|
# along with this program; if not, write to the Free Software |
338 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
339 |
|
|
# 02111-1307, USA. |
340 |
|
|
|
341 |
|
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
342 |
|
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
343 |
|
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
344 |
|
|
# |
345 |
|
|
# Of course, Automake must honor this variable whenever it calls a |
346 |
|
|
# tool from the auxiliary directory. The problem is that $srcdir (and |
347 |
|
|
# therefore $ac_aux_dir as well) can be either absolute or relative, |
348 |
|
|
# depending on how configure is run. This is pretty annoying, since |
349 |
|
|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
350 |
|
|
# source directory, any form will work fine, but in subdirectories a |
351 |
|
|
# relative path needs to be adjusted first. |
352 |
|
|
# |
353 |
|
|
# $ac_aux_dir/missing |
354 |
|
|
# fails when called from a subdirectory if $ac_aux_dir is relative |
355 |
|
|
# $top_srcdir/$ac_aux_dir/missing |
356 |
|
|
# fails if $ac_aux_dir is absolute, |
357 |
|
|
# fails when called from a subdirectory in a VPATH build with |
358 |
|
|
# a relative $ac_aux_dir |
359 |
|
|
# |
360 |
|
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
361 |
|
|
# are both prefixed by $srcdir. In an in-source build this is usually |
362 |
|
|
# harmless because $srcdir is `.', but things will broke when you |
363 |
|
|
# start a VPATH build or use an absolute $srcdir. |
364 |
|
|
# |
365 |
|
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
366 |
|
|
# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
367 |
|
|
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
368 |
|
|
# and then we would define $MISSING as |
369 |
|
|
# MISSING="\${SHELL} $am_aux_dir/missing" |
370 |
|
|
# This will work as long as MISSING is not called from configure, because |
371 |
|
|
# unfortunately $(top_srcdir) has no meaning in configure. |
372 |
|
|
# However there are other variables, like CC, which are often used in |
373 |
|
|
# configure, and could therefore not use this "fixed" $ac_aux_dir. |
374 |
|
|
# |
375 |
|
|
# Another solution, used here, is to always expand $ac_aux_dir to an |
376 |
|
|
# absolute PATH. The drawback is that using absolute paths prevent a |
377 |
|
|
# configured tree to be moved without reconfiguration. |
378 |
|
|
|
379 |
|
|
# Rely on autoconf to set up CDPATH properly. |
380 |
|
|
AC_PREREQ([2.50]) |
381 |
|
|
|
382 |
|
|
AC_DEFUN([AM_AUX_DIR_EXPAND], [ |
383 |
|
|
# expand $ac_aux_dir to an absolute path |
384 |
|
|
am_aux_dir=`cd $ac_aux_dir && pwd` |
385 |
|
|
]) |
386 |
|
|
|
387 |
|
|
# AM_PROG_INSTALL_SH |
388 |
|
|
# ------------------ |
389 |
|
|
# Define $install_sh. |
390 |
|
|
|
391 |
|
|
# Copyright 2001 Free Software Foundation, Inc. |
392 |
|
|
|
393 |
|
|
# This program is free software; you can redistribute it and/or modify |
394 |
|
|
# it under the terms of the GNU General Public License as published by |
395 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
396 |
|
|
# any later version. |
397 |
|
|
|
398 |
|
|
# This program is distributed in the hope that it will be useful, |
399 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
400 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
401 |
|
|
# GNU General Public License for more details. |
402 |
|
|
|
403 |
|
|
# You should have received a copy of the GNU General Public License |
404 |
|
|
# along with this program; if not, write to the Free Software |
405 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
406 |
|
|
# 02111-1307, USA. |
407 |
|
|
|
408 |
|
|
AC_DEFUN([AM_PROG_INSTALL_SH], |
409 |
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
410 |
|
|
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
411 |
|
|
AC_SUBST(install_sh)]) |
412 |
|
|
|
413 |
|
|
# AM_PROG_INSTALL_STRIP |
414 |
|
|
|
415 |
|
|
# Copyright 2001 Free Software Foundation, Inc. |
416 |
|
|
|
417 |
|
|
# This program is free software; you can redistribute it and/or modify |
418 |
|
|
# it under the terms of the GNU General Public License as published by |
419 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
420 |
|
|
# any later version. |
421 |
|
|
|
422 |
|
|
# This program is distributed in the hope that it will be useful, |
423 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
424 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
425 |
|
|
# GNU General Public License for more details. |
426 |
|
|
|
427 |
|
|
# You should have received a copy of the GNU General Public License |
428 |
|
|
# along with this program; if not, write to the Free Software |
429 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
430 |
|
|
# 02111-1307, USA. |
431 |
|
|
|
432 |
|
|
# One issue with vendor `install' (even GNU) is that you can't |
433 |
|
|
# specify the program used to strip binaries. This is especially |
434 |
|
|
# annoying in cross-compiling environments, where the build's strip |
435 |
|
|
# is unlikely to handle the host's binaries. |
436 |
|
|
# Fortunately install-sh will honor a STRIPPROG variable, so we |
437 |
|
|
# always use install-sh in `make install-strip', and initialize |
438 |
|
|
# STRIPPROG with the value of the STRIP variable (set by the user). |
439 |
|
|
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
440 |
|
|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
441 |
|
|
# Installed binaries are usually stripped using `strip' when the user |
442 |
|
|
# run `make install-strip'. However `strip' might not be the right |
443 |
|
|
# tool to use in cross-compilation environments, therefore Automake |
444 |
|
|
# will honor the `STRIP' environment variable to overrule this program. |
445 |
|
|
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
446 |
|
|
if test "$cross_compiling" != no; then |
447 |
|
|
AC_CHECK_TOOL([STRIP], [strip], :) |
448 |
|
|
fi |
449 |
|
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
450 |
|
|
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
451 |
|
|
|
452 |
|
|
# -*- Autoconf -*- |
453 |
|
|
# Copyright (C) 2003 Free Software Foundation, Inc. |
454 |
|
|
|
455 |
|
|
# This program is free software; you can redistribute it and/or modify |
456 |
|
|
# it under the terms of the GNU General Public License as published by |
457 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
458 |
|
|
# any later version. |
459 |
|
|
|
460 |
|
|
# This program is distributed in the hope that it will be useful, |
461 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
462 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
463 |
|
|
# GNU General Public License for more details. |
464 |
|
|
|
465 |
|
|
# You should have received a copy of the GNU General Public License |
466 |
|
|
# along with this program; if not, write to the Free Software |
467 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
468 |
|
|
# 02111-1307, USA. |
469 |
|
|
|
470 |
|
|
# serial 1 |
471 |
|
|
|
472 |
|
|
# Check whether the underlying file-system supports filenames |
473 |
|
|
# with a leading dot. For instance MS-DOS doesn't. |
474 |
|
|
AC_DEFUN([AM_SET_LEADING_DOT], |
475 |
|
|
[rm -rf .tst 2>/dev/null |
476 |
|
|
mkdir .tst 2>/dev/null |
477 |
|
|
if test -d .tst; then |
478 |
|
|
am__leading_dot=. |
479 |
|
|
else |
480 |
|
|
am__leading_dot=_ |
481 |
|
|
fi |
482 |
|
|
rmdir .tst 2>/dev/null |
483 |
|
|
AC_SUBST([am__leading_dot])]) |
484 |
|
|
|
485 |
|
|
# serial 5 -*- Autoconf -*- |
486 |
|
|
|
487 |
|
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
488 |
|
|
|
489 |
|
|
# This program is free software; you can redistribute it and/or modify |
490 |
|
|
# it under the terms of the GNU General Public License as published by |
491 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
492 |
|
|
# any later version. |
493 |
|
|
|
494 |
|
|
# This program is distributed in the hope that it will be useful, |
495 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
496 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
497 |
|
|
# GNU General Public License for more details. |
498 |
|
|
|
499 |
|
|
# You should have received a copy of the GNU General Public License |
500 |
|
|
# along with this program; if not, write to the Free Software |
501 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
502 |
|
|
# 02111-1307, USA. |
503 |
|
|
|
504 |
|
|
|
505 |
|
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
506 |
|
|
# written in clear, in which case automake, when reading aclocal.m4, |
507 |
|
|
# will think it sees a *use*, and therefore will trigger all it's |
508 |
|
|
# C support machinery. Also note that it means that autoscan, seeing |
509 |
|
|
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
510 |
|
|
|
511 |
|
|
|
512 |
|
|
|
513 |
|
|
# _AM_DEPENDENCIES(NAME) |
514 |
|
|
# ---------------------- |
515 |
|
|
# See how the compiler implements dependency checking. |
516 |
|
|
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
517 |
|
|
# We try a few techniques and use that to set a single cache variable. |
518 |
|
|
# |
519 |
|
|
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
520 |
|
|
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
521 |
|
|
# dependency, and given that the user is not expected to run this macro, |
522 |
|
|
# just rely on AC_PROG_CC. |
523 |
|
|
AC_DEFUN([_AM_DEPENDENCIES], |
524 |
|
|
[AC_REQUIRE([AM_SET_DEPDIR])dnl |
525 |
|
|
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
526 |
|
|
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
527 |
|
|
AC_REQUIRE([AM_DEP_TRACK])dnl |
528 |
|
|
|
529 |
|
|
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
530 |
|
|
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
531 |
|
|
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
532 |
|
|
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
533 |
|
|
[depcc="$$1" am_compiler_list=]) |
534 |
|
|
|
535 |
|
|
AC_CACHE_CHECK([dependency style of $depcc], |
536 |
|
|
[am_cv_$1_dependencies_compiler_type], |
537 |
|
|
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
538 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up |
539 |
|
|
# making bogus files that we don't know about and never remove. For |
540 |
|
|
# instance it was reported that on HP-UX the gcc test will end up |
541 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output |
542 |
|
|
# in D'. |
543 |
|
|
mkdir conftest.dir |
544 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
545 |
|
|
# using a relative directory. |
546 |
|
|
cp "$am_depcomp" conftest.dir |
547 |
|
|
cd conftest.dir |
548 |
|
|
# We will build objects and dependencies in a subdirectory because |
549 |
|
|
# it helps to detect inapplicable dependency modes. For instance |
550 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a |
551 |
|
|
# side effect of compilation, but ICC will put the dependencies in |
552 |
|
|
# the current directory while Tru64 will put them in the object |
553 |
|
|
# directory. |
554 |
|
|
mkdir sub |
555 |
|
|
|
556 |
|
|
am_cv_$1_dependencies_compiler_type=none |
557 |
|
|
if test "$am_compiler_list" = ""; then |
558 |
|
|
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
559 |
|
|
fi |
560 |
|
|
for depmode in $am_compiler_list; do |
561 |
|
|
# Setup a source with many dependencies, because some compilers |
562 |
|
|
# like to wrap large dependency lists on column 80 (with \), and |
563 |
|
|
# we should not choose a depcomp mode which is confused by this. |
564 |
|
|
# |
565 |
|
|
# We need to recreate these files for each test, as the compiler may |
566 |
|
|
# overwrite some of them when testing with obscure command lines. |
567 |
|
|
# This happens at least with the AIX C compiler. |
568 |
|
|
: > sub/conftest.c |
569 |
|
|
for i in 1 2 3 4 5 6; do |
570 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
571 |
|
|
: > sub/conftst$i.h |
572 |
|
|
done |
573 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
574 |
|
|
|
575 |
|
|
case $depmode in |
576 |
|
|
nosideeffect) |
577 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll |
578 |
|
|
# only be used when explicitly requested |
579 |
|
|
if test "x$enable_dependency_tracking" = xyes; then |
580 |
|
|
continue |
581 |
|
|
else |
582 |
|
|
break |
583 |
|
|
fi |
584 |
|
|
;; |
585 |
|
|
none) break ;; |
586 |
|
|
esac |
587 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
588 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly |
589 |
|
|
# handle `-M -o', and we need to detect this. |
590 |
|
|
if depmode=$depmode \ |
591 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
592 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
593 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
594 |
|
|
>/dev/null 2>conftest.err && |
595 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
596 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
597 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
598 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings |
599 |
|
|
# (even with -Werror). So we grep stderr for any message |
600 |
|
|
# that says an option was ignored. |
601 |
|
|
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
602 |
|
|
am_cv_$1_dependencies_compiler_type=$depmode |
603 |
|
|
break |
604 |
|
|
fi |
605 |
|
|
fi |
606 |
|
|
done |
607 |
|
|
|
608 |
|
|
cd .. |
609 |
|
|
rm -rf conftest.dir |
610 |
|
|
else |
611 |
|
|
am_cv_$1_dependencies_compiler_type=none |
612 |
|
|
fi |
613 |
|
|
]) |
614 |
|
|
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
615 |
|
|
AM_CONDITIONAL([am__fastdep$1], [ |
616 |
|
|
test "x$enable_dependency_tracking" != xno \ |
617 |
|
|
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
618 |
|
|
]) |
619 |
|
|
|
620 |
|
|
|
621 |
|
|
# AM_SET_DEPDIR |
622 |
|
|
# ------------- |
623 |
|
|
# Choose a directory name for dependency files. |
624 |
|
|
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
625 |
|
|
AC_DEFUN([AM_SET_DEPDIR], |
626 |
|
|
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
627 |
|
|
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
628 |
|
|
]) |
629 |
|
|
|
630 |
|
|
|
631 |
|
|
# AM_DEP_TRACK |
632 |
|
|
# ------------ |
633 |
|
|
AC_DEFUN([AM_DEP_TRACK], |
634 |
|
|
[AC_ARG_ENABLE(dependency-tracking, |
635 |
|
|
[ --disable-dependency-tracking Speeds up one-time builds |
636 |
|
|
--enable-dependency-tracking Do not reject slow dependency extractors]) |
637 |
|
|
if test "x$enable_dependency_tracking" != xno; then |
638 |
|
|
am_depcomp="$ac_aux_dir/depcomp" |
639 |
|
|
AMDEPBACKSLASH='\' |
640 |
|
|
fi |
641 |
|
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
642 |
|
|
AC_SUBST([AMDEPBACKSLASH]) |
643 |
|
|
]) |
644 |
|
|
|
645 |
|
|
# Generate code to set up dependency tracking. -*- Autoconf -*- |
646 |
|
|
|
647 |
|
|
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
648 |
|
|
|
649 |
|
|
# This program is free software; you can redistribute it and/or modify |
650 |
|
|
# it under the terms of the GNU General Public License as published by |
651 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
652 |
|
|
# any later version. |
653 |
|
|
|
654 |
|
|
# This program is distributed in the hope that it will be useful, |
655 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
656 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
657 |
|
|
# GNU General Public License for more details. |
658 |
|
|
|
659 |
|
|
# You should have received a copy of the GNU General Public License |
660 |
|
|
# along with this program; if not, write to the Free Software |
661 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
662 |
|
|
# 02111-1307, USA. |
663 |
|
|
|
664 |
|
|
#serial 2 |
665 |
|
|
|
666 |
|
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
667 |
|
|
# ------------------------------ |
668 |
|
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
669 |
|
|
[for mf in $CONFIG_FILES; do |
670 |
|
|
# Strip MF so we end up with the name of the file. |
671 |
|
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
672 |
|
|
# Check whether this is an Automake generated Makefile or not. |
673 |
|
|
# We used to match only the files named `Makefile.in', but |
674 |
|
|
# some people rename them; so instead we look at the file content. |
675 |
|
|
# Grep'ing the first line is not enough: some people post-process |
676 |
|
|
# each Makefile.in and add a new line on top of each file to say so. |
677 |
|
|
# So let's grep whole file. |
678 |
|
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
679 |
|
|
dirpart=`AS_DIRNAME("$mf")` |
680 |
|
|
else |
681 |
|
|
continue |
682 |
|
|
fi |
683 |
|
|
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue |
684 |
|
|
# Extract the definition of DEP_FILES from the Makefile without |
685 |
|
|
# running `make'. |
686 |
|
|
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
687 |
|
|
test -z "$DEPDIR" && continue |
688 |
|
|
# When using ansi2knr, U may be empty or an underscore; expand it |
689 |
|
|
U=`sed -n -e '/^U = / s///p' < "$mf"` |
690 |
|
|
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
691 |
|
|
# We invoke sed twice because it is the simplest approach to |
692 |
|
|
# changing $(DEPDIR) to its actual value in the expansion. |
693 |
|
|
for file in `sed -n -e ' |
694 |
|
|
/^DEP_FILES = .*\\\\$/ { |
695 |
|
|
s/^DEP_FILES = // |
696 |
|
|
:loop |
697 |
|
|
s/\\\\$// |
698 |
|
|
p |
699 |
|
|
n |
700 |
|
|
/\\\\$/ b loop |
701 |
|
|
p |
702 |
|
|
} |
703 |
|
|
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
704 |
|
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
705 |
|
|
# Make sure the directory exists. |
706 |
|
|
test -f "$dirpart/$file" && continue |
707 |
|
|
fdir=`AS_DIRNAME(["$file"])` |
708 |
|
|
AS_MKDIR_P([$dirpart/$fdir]) |
709 |
|
|
# echo "creating $dirpart/$file" |
710 |
|
|
echo '# dummy' > "$dirpart/$file" |
711 |
|
|
done |
712 |
|
|
done |
713 |
|
|
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
714 |
|
|
|
715 |
|
|
|
716 |
|
|
# AM_OUTPUT_DEPENDENCY_COMMANDS |
717 |
|
|
# ----------------------------- |
718 |
|
|
# This macro should only be invoked once -- use via AC_REQUIRE. |
719 |
|
|
# |
720 |
|
|
# This code is only required when automatic dependency tracking |
721 |
|
|
# is enabled. FIXME. This creates each `.P' file that we will |
722 |
|
|
# need in order to bootstrap the dependency handling code. |
723 |
|
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
724 |
|
|
[AC_CONFIG_COMMANDS([depfiles], |
725 |
|
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
726 |
|
|
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
727 |
|
|
]) |
728 |
|
|
|
729 |
|
|
# Check to see how 'make' treats includes. -*- Autoconf -*- |
730 |
|
|
|
731 |
|
|
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
732 |
|
|
|
733 |
|
|
# This program is free software; you can redistribute it and/or modify |
734 |
|
|
# it under the terms of the GNU General Public License as published by |
735 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
736 |
|
|
# any later version. |
737 |
|
|
|
738 |
|
|
# This program is distributed in the hope that it will be useful, |
739 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
740 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
741 |
|
|
# GNU General Public License for more details. |
742 |
|
|
|
743 |
|
|
# You should have received a copy of the GNU General Public License |
744 |
|
|
# along with this program; if not, write to the Free Software |
745 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
746 |
|
|
# 02111-1307, USA. |
747 |
|
|
|
748 |
|
|
# serial 2 |
749 |
|
|
|
750 |
|
|
# AM_MAKE_INCLUDE() |
751 |
|
|
# ----------------- |
752 |
|
|
# Check to see how make treats includes. |
753 |
|
|
AC_DEFUN([AM_MAKE_INCLUDE], |
754 |
|
|
[am_make=${MAKE-make} |
755 |
|
|
cat > confinc << 'END' |
756 |
|
|
am__doit: |
757 |
|
|
@echo done |
758 |
|
|
.PHONY: am__doit |
759 |
|
|
END |
760 |
|
|
# If we don't find an include directive, just comment out the code. |
761 |
|
|
AC_MSG_CHECKING([for style of include used by $am_make]) |
762 |
|
|
am__include="#" |
763 |
|
|
am__quote= |
764 |
|
|
_am_result=none |
765 |
|
|
# First try GNU make style include. |
766 |
|
|
echo "include confinc" > confmf |
767 |
|
|
# We grep out `Entering directory' and `Leaving directory' |
768 |
|
|
# messages which can occur if `w' ends up in MAKEFLAGS. |
769 |
|
|
# In particular we don't look at `^make:' because GNU make might |
770 |
|
|
# be invoked under some other name (usually "gmake"), in which |
771 |
|
|
# case it prints its new name instead of `make'. |
772 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
773 |
|
|
am__include=include |
774 |
|
|
am__quote= |
775 |
|
|
_am_result=GNU |
776 |
|
|
fi |
777 |
|
|
# Now try BSD make style include. |
778 |
|
|
if test "$am__include" = "#"; then |
779 |
|
|
echo '.include "confinc"' > confmf |
780 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
781 |
|
|
am__include=.include |
782 |
|
|
am__quote="\"" |
783 |
|
|
_am_result=BSD |
784 |
|
|
fi |
785 |
|
|
fi |
786 |
|
|
AC_SUBST([am__include]) |
787 |
|
|
AC_SUBST([am__quote]) |
788 |
|
|
AC_MSG_RESULT([$_am_result]) |
789 |
|
|
rm -f confinc confmf |
790 |
|
|
]) |
791 |
|
|
|
792 |
|
|
# AM_CONDITIONAL -*- Autoconf -*- |
793 |
|
|
|
794 |
|
|
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. |
795 |
|
|
|
796 |
|
|
# This program is free software; you can redistribute it and/or modify |
797 |
|
|
# it under the terms of the GNU General Public License as published by |
798 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
799 |
|
|
# any later version. |
800 |
|
|
|
801 |
|
|
# This program is distributed in the hope that it will be useful, |
802 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
803 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
804 |
|
|
# GNU General Public License for more details. |
805 |
|
|
|
806 |
|
|
# You should have received a copy of the GNU General Public License |
807 |
|
|
# along with this program; if not, write to the Free Software |
808 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
809 |
|
|
# 02111-1307, USA. |
810 |
|
|
|
811 |
|
|
# serial 5 |
812 |
|
|
|
813 |
|
|
AC_PREREQ(2.52) |
814 |
|
|
|
815 |
|
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
816 |
|
|
# ------------------------------------- |
817 |
|
|
# Define a conditional. |
818 |
|
|
AC_DEFUN([AM_CONDITIONAL], |
819 |
|
|
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
820 |
|
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
821 |
|
|
AC_SUBST([$1_TRUE]) |
822 |
|
|
AC_SUBST([$1_FALSE]) |
823 |
|
|
if $2; then |
824 |
|
|
$1_TRUE= |
825 |
|
|
$1_FALSE='#' |
826 |
|
|
else |
827 |
|
|
$1_TRUE='#' |
828 |
|
|
$1_FALSE= |
829 |
|
|
fi |
830 |
|
|
AC_CONFIG_COMMANDS_PRE( |
831 |
|
|
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
832 |
|
|
AC_MSG_ERROR([conditional "$1" was never defined. |
833 |
|
|
Usually this means the macro was only invoked conditionally.]) |
834 |
|
|
fi])]) |
835 |
|
|
|
836 |
|
|
# Add --enable-maintainer-mode option to configure. |
837 |
|
|
# From Jim Meyering |
838 |
|
|
|
839 |
|
|
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc. |
840 |
|
|
|
841 |
|
|
# This program is free software; you can redistribute it and/or modify |
842 |
|
|
# it under the terms of the GNU General Public License as published by |
843 |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
844 |
|
|
# any later version. |
845 |
|
|
|
846 |
|
|
# This program is distributed in the hope that it will be useful, |
847 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
848 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
849 |
|
|
# GNU General Public License for more details. |
850 |
|
|
|
851 |
|
|
# You should have received a copy of the GNU General Public License |
852 |
|
|
# along with this program; if not, write to the Free Software |
853 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
854 |
|
|
# 02111-1307, USA. |
855 |
|
|
|
856 |
|
|
# serial 2 |
857 |
|
|
|
858 |
|
|
AC_DEFUN([AM_MAINTAINER_MODE], |
859 |
|
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
860 |
|
|
dnl maintainer-mode is disabled by default |
861 |
|
|
AC_ARG_ENABLE(maintainer-mode, |
862 |
|
|
[ --enable-maintainer-mode enable make rules and dependencies not useful |
863 |
|
|
(and sometimes confusing) to the casual installer], |
864 |
|
|
USE_MAINTAINER_MODE=$enableval, |
865 |
|
|
USE_MAINTAINER_MODE=no) |
866 |
|
|
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
867 |
|
|
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
868 |
|
|
MAINT=$MAINTAINER_MODE_TRUE |
869 |
|
|
AC_SUBST(MAINT)dnl |
870 |
|
|
] |
871 |
|
|
) |
872 |
|
|
|
873 |
|
|
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
874 |
|
|
|
875 |
|
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
876 |
|
|
|
877 |
|
|
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL |
878 |
|
|
|
879 |
|
|
|
880 |
|
|
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
881 |
|
|
# ----------------------------------------------------------- |
882 |
|
|
# If this macro is not defined by Autoconf, define it here. |
883 |
|
|
m4_ifdef([AC_PROVIDE_IFELSE], |
884 |
|
|
[], |
885 |
|
|
[m4_define([AC_PROVIDE_IFELSE], |
886 |
|
|
[m4_ifdef([AC_PROVIDE_$1], |
887 |
|
|
[$2], [$3])])]) |
888 |
|
|
|
889 |
|
|
|
890 |
|
|
# AC_PROG_LIBTOOL |
891 |
|
|
# --------------- |
892 |
|
|
AC_DEFUN([AC_PROG_LIBTOOL], |
893 |
|
|
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
894 |
|
|
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
895 |
|
|
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
896 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_CXX], |
897 |
|
|
[AC_LIBTOOL_CXX], |
898 |
|
|
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
899 |
|
|
])]) |
900 |
|
|
dnl And a similar setup for Fortran 77 support |
901 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_F77], |
902 |
|
|
[AC_LIBTOOL_F77], |
903 |
|
|
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
904 |
|
|
])]) |
905 |
|
|
|
906 |
|
|
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
907 |
|
|
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
908 |
|
|
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
909 |
|
|
AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
910 |
|
|
[AC_LIBTOOL_GCJ], |
911 |
|
|
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
912 |
|
|
[AC_LIBTOOL_GCJ], |
913 |
|
|
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
914 |
|
|
[AC_LIBTOOL_GCJ], |
915 |
|
|
[ifdef([AC_PROG_GCJ], |
916 |
|
|
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
917 |
|
|
ifdef([A][M_PROG_GCJ], |
918 |
|
|
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
919 |
|
|
ifdef([LT_AC_PROG_GCJ], |
920 |
|
|
[define([LT_AC_PROG_GCJ], |
921 |
|
|
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
922 |
|
|
])])# AC_PROG_LIBTOOL |
923 |
|
|
|
924 |
|
|
|
925 |
|
|
# _AC_PROG_LIBTOOL |
926 |
|
|
# ---------------- |
927 |
|
|
AC_DEFUN([_AC_PROG_LIBTOOL], |
928 |
|
|
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
929 |
|
|
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
930 |
|
|
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
931 |
|
|
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
932 |
|
|
|
933 |
|
|
# This can be used to rebuild libtool when needed |
934 |
|
|
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
935 |
|
|
|
936 |
|
|
# Always use our own libtool. |
937 |
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
938 |
|
|
AC_SUBST(LIBTOOL)dnl |
939 |
|
|
|
940 |
|
|
# Prevent multiple expansion |
941 |
|
|
define([AC_PROG_LIBTOOL], []) |
942 |
|
|
])# _AC_PROG_LIBTOOL |
943 |
|
|
|
944 |
|
|
|
945 |
|
|
# AC_LIBTOOL_SETUP |
946 |
|
|
# ---------------- |
947 |
|
|
AC_DEFUN([AC_LIBTOOL_SETUP], |
948 |
|
|
[AC_PREREQ(2.50)dnl |
949 |
|
|
AC_REQUIRE([AC_ENABLE_SHARED])dnl |
950 |
|
|
AC_REQUIRE([AC_ENABLE_STATIC])dnl |
951 |
|
|
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
952 |
|
|
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
953 |
|
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
954 |
|
|
AC_REQUIRE([AC_PROG_CC])dnl |
955 |
|
|
AC_REQUIRE([AC_PROG_LD])dnl |
956 |
|
|
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
957 |
|
|
AC_REQUIRE([AC_PROG_NM])dnl |
958 |
|
|
|
959 |
|
|
AC_REQUIRE([AC_PROG_LN_S])dnl |
960 |
|
|
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
961 |
|
|
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
962 |
|
|
AC_REQUIRE([AC_OBJEXT])dnl |
963 |
|
|
AC_REQUIRE([AC_EXEEXT])dnl |
964 |
|
|
dnl |
965 |
|
|
|
966 |
|
|
AC_LIBTOOL_SYS_MAX_CMD_LEN |
967 |
|
|
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
968 |
|
|
AC_LIBTOOL_OBJDIR |
969 |
|
|
|
970 |
|
|
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
971 |
|
|
_LT_AC_PROG_ECHO_BACKSLASH |
972 |
|
|
|
973 |
|
|
case $host_os in |
974 |
|
|
aix3*) |
975 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some |
976 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
977 |
|
|
# vanish in a puff of smoke. |
978 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
979 |
|
|
COLLECT_NAMES= |
980 |
|
|
export COLLECT_NAMES |
981 |
|
|
fi |
982 |
|
|
;; |
983 |
|
|
esac |
984 |
|
|
|
985 |
|
|
# Sed substitution that helps us do robust quoting. It backslashifies |
986 |
|
|
# metacharacters that are still active within double-quoted strings. |
987 |
|
|
Xsed='sed -e 1s/^X//' |
988 |
|
|
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
989 |
|
|
|
990 |
|
|
# Same as above, but do not quote variable references. |
991 |
|
|
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
992 |
|
|
|
993 |
|
|
# Sed substitution to delay expansion of an escaped shell variable in a |
994 |
|
|
# double_quote_subst'ed string. |
995 |
|
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
996 |
|
|
|
997 |
|
|
# Sed substitution to avoid accidental globbing in evaled expressions |
998 |
|
|
no_glob_subst='s/\*/\\\*/g' |
999 |
|
|
|
1000 |
|
|
# Constants: |
1001 |
|
|
rm="rm -f" |
1002 |
|
|
|
1003 |
|
|
# Global variables: |
1004 |
|
|
default_ofile=libtool |
1005 |
|
|
can_build_shared=yes |
1006 |
|
|
|
1007 |
|
|
# All known linkers require a `.a' archive for static linking (except MSVC, |
1008 |
|
|
# which needs '.lib'). |
1009 |
|
|
libext=a |
1010 |
|
|
ltmain="$ac_aux_dir/ltmain.sh" |
1011 |
|
|
ofile="$default_ofile" |
1012 |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld" |
1013 |
|
|
|
1014 |
|
|
AC_CHECK_TOOL(AR, ar, false) |
1015 |
|
|
AC_CHECK_TOOL(RANLIB, ranlib, :) |
1016 |
|
|
AC_CHECK_TOOL(STRIP, strip, :) |
1017 |
|
|
|
1018 |
|
|
old_CC="$CC" |
1019 |
|
|
old_CFLAGS="$CFLAGS" |
1020 |
|
|
|
1021 |
|
|
# Set sane defaults for various variables |
1022 |
|
|
test -z "$AR" && AR=ar |
1023 |
|
|
test -z "$AR_FLAGS" && AR_FLAGS=cru |
1024 |
|
|
test -z "$AS" && AS=as |
1025 |
|
|
test -z "$CC" && CC=cc |
1026 |
|
|
test -z "$LTCC" && LTCC=$CC |
1027 |
|
|
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
1028 |
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
1029 |
|
|
test -z "$LD" && LD=ld |
1030 |
|
|
test -z "$LN_S" && LN_S="ln -s" |
1031 |
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
1032 |
|
|
test -z "$NM" && NM=nm |
1033 |
|
|
test -z "$SED" && SED=sed |
1034 |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump |
1035 |
|
|
test -z "$RANLIB" && RANLIB=: |
1036 |
|
|
test -z "$STRIP" && STRIP=: |
1037 |
|
|
test -z "$ac_objext" && ac_objext=o |
1038 |
|
|
|
1039 |
|
|
# Determine commands to create old-style static archives. |
1040 |
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
1041 |
|
|
old_postinstall_cmds='chmod 644 $oldlib' |
1042 |
|
|
old_postuninstall_cmds= |
1043 |
|
|
|
1044 |
|
|
if test -n "$RANLIB"; then |
1045 |
|
|
case $host_os in |
1046 |
|
|
openbsd*) |
1047 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
1048 |
|
|
;; |
1049 |
|
|
*) |
1050 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
1051 |
|
|
;; |
1052 |
|
|
esac |
1053 |
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
1054 |
|
|
fi |
1055 |
|
|
|
1056 |
|
|
_LT_CC_BASENAME([$compiler]) |
1057 |
|
|
|
1058 |
|
|
# Only perform the check for file, if the check method requires it |
1059 |
|
|
case $deplibs_check_method in |
1060 |
|
|
file_magic*) |
1061 |
|
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
1062 |
|
|
AC_PATH_MAGIC |
1063 |
|
|
fi |
1064 |
|
|
;; |
1065 |
|
|
esac |
1066 |
|
|
|
1067 |
|
|
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
1068 |
|
|
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
1069 |
|
|
enable_win32_dll=yes, enable_win32_dll=no) |
1070 |
|
|
|
1071 |
|
|
AC_ARG_ENABLE([libtool-lock], |
1072 |
|
|
[AC_HELP_STRING([--disable-libtool-lock], |
1073 |
|
|
[avoid locking (might break parallel builds)])]) |
1074 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1075 |
|
|
|
1076 |
|
|
AC_ARG_WITH([pic], |
1077 |
|
|
[AC_HELP_STRING([--with-pic], |
1078 |
|
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
1079 |
|
|
[pic_mode="$withval"], |
1080 |
|
|
[pic_mode=default]) |
1081 |
|
|
test -z "$pic_mode" && pic_mode=default |
1082 |
|
|
|
1083 |
|
|
# Use C for the default configuration in the libtool script |
1084 |
|
|
tagname= |
1085 |
|
|
AC_LIBTOOL_LANG_C_CONFIG |
1086 |
|
|
_LT_AC_TAGCONFIG |
1087 |
|
|
])# AC_LIBTOOL_SETUP |
1088 |
|
|
|
1089 |
|
|
|
1090 |
|
|
# _LT_AC_SYS_COMPILER |
1091 |
|
|
# ------------------- |
1092 |
|
|
AC_DEFUN([_LT_AC_SYS_COMPILER], |
1093 |
|
|
[AC_REQUIRE([AC_PROG_CC])dnl |
1094 |
|
|
|
1095 |
|
|
# If no C compiler was specified, use CC. |
1096 |
|
|
LTCC=${LTCC-"$CC"} |
1097 |
|
|
|
1098 |
|
|
# If no C compiler flags were specified, use CFLAGS. |
1099 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
1100 |
|
|
|
1101 |
|
|
# Allow CC to be a program name with arguments. |
1102 |
|
|
compiler=$CC |
1103 |
|
|
])# _LT_AC_SYS_COMPILER |
1104 |
|
|
|
1105 |
|
|
|
1106 |
|
|
# _LT_CC_BASENAME(CC) |
1107 |
|
|
# ------------------- |
1108 |
|
|
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
1109 |
|
|
AC_DEFUN([_LT_CC_BASENAME], |
1110 |
|
|
[for cc_temp in $1""; do |
1111 |
|
|
case $cc_temp in |
1112 |
|
|
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
1113 |
|
|
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
1114 |
|
|
\-*) ;; |
1115 |
|
|
*) break;; |
1116 |
|
|
esac |
1117 |
|
|
done |
1118 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
1119 |
|
|
]) |
1120 |
|
|
|
1121 |
|
|
|
1122 |
|
|
# _LT_COMPILER_BOILERPLATE |
1123 |
|
|
# ------------------------ |
1124 |
|
|
# Check for compiler boilerplate output or warnings with |
1125 |
|
|
# the simple compiler test code. |
1126 |
|
|
AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
1127 |
|
|
[ac_outfile=conftest.$ac_objext |
1128 |
|
|
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
1129 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
1130 |
|
|
_lt_compiler_boilerplate=`cat conftest.err` |
1131 |
|
|
$rm conftest* |
1132 |
|
|
])# _LT_COMPILER_BOILERPLATE |
1133 |
|
|
|
1134 |
|
|
|
1135 |
|
|
# _LT_LINKER_BOILERPLATE |
1136 |
|
|
# ---------------------- |
1137 |
|
|
# Check for linker boilerplate output or warnings with |
1138 |
|
|
# the simple link test code. |
1139 |
|
|
AC_DEFUN([_LT_LINKER_BOILERPLATE], |
1140 |
|
|
[ac_outfile=conftest.$ac_objext |
1141 |
|
|
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
1142 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
1143 |
|
|
_lt_linker_boilerplate=`cat conftest.err` |
1144 |
|
|
$rm conftest* |
1145 |
|
|
])# _LT_LINKER_BOILERPLATE |
1146 |
|
|
|
1147 |
|
|
|
1148 |
|
|
# _LT_AC_SYS_LIBPATH_AIX |
1149 |
|
|
# ---------------------- |
1150 |
|
|
# Links a minimal program and checks the executable |
1151 |
|
|
# for the system default hardcoded library path. In most cases, |
1152 |
|
|
# this is /usr/lib:/lib, but when the MPI compilers are used |
1153 |
|
|
# the location of the communication and MPI libs are included too. |
1154 |
|
|
# If we don't find anything, use the default library path according |
1155 |
|
|
# to the aix ld manual. |
1156 |
|
|
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
1157 |
|
|
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
1158 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
1159 |
|
|
}'` |
1160 |
|
|
# Check for a 64-bit object if we didn't find anything. |
1161 |
|
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
1162 |
|
|
}'`; fi],[]) |
1163 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
1164 |
|
|
])# _LT_AC_SYS_LIBPATH_AIX |
1165 |
|
|
|
1166 |
|
|
|
1167 |
|
|
# _LT_AC_SHELL_INIT(ARG) |
1168 |
|
|
# ---------------------- |
1169 |
|
|
AC_DEFUN([_LT_AC_SHELL_INIT], |
1170 |
|
|
[ifdef([AC_DIVERSION_NOTICE], |
1171 |
|
|
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
1172 |
|
|
[AC_DIVERT_PUSH(NOTICE)]) |
1173 |
|
|
$1 |
1174 |
|
|
AC_DIVERT_POP |
1175 |
|
|
])# _LT_AC_SHELL_INIT |
1176 |
|
|
|
1177 |
|
|
|
1178 |
|
|
# _LT_AC_PROG_ECHO_BACKSLASH |
1179 |
|
|
# -------------------------- |
1180 |
|
|
# Add some code to the start of the generated configure script which |
1181 |
|
|
# will find an echo command which doesn't interpret backslashes. |
1182 |
|
|
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
1183 |
|
|
[_LT_AC_SHELL_INIT([ |
1184 |
|
|
# Check that we are running under the correct shell. |
1185 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh} |
1186 |
|
|
|
1187 |
|
|
case X$ECHO in |
1188 |
|
|
X*--fallback-echo) |
1189 |
|
|
# Remove one level of quotation (which was required for Make). |
1190 |
|
|
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
1191 |
|
|
;; |
1192 |
|
|
esac |
1193 |
|
|
|
1194 |
|
|
echo=${ECHO-echo} |
1195 |
|
|
if test "X[$]1" = X--no-reexec; then |
1196 |
|
|
# Discard the --no-reexec flag, and continue. |
1197 |
|
|
shift |
1198 |
|
|
elif test "X[$]1" = X--fallback-echo; then |
1199 |
|
|
# Avoid inline document here, it may be left over |
1200 |
|
|
: |
1201 |
|
|
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
1202 |
|
|
# Yippee, $echo works! |
1203 |
|
|
: |
1204 |
|
|
else |
1205 |
|
|
# Restart under the correct shell. |
1206 |
|
|
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1207 |
|
|
fi |
1208 |
|
|
|
1209 |
|
|
if test "X[$]1" = X--fallback-echo; then |
1210 |
|
|
# used as fallback echo |
1211 |
|
|
shift |
1212 |
|
|
cat <<EOF |
1213 |
|
|
[$]* |
1214 |
|
|
EOF |
1215 |
|
|
exit 0 |
1216 |
|
|
fi |
1217 |
|
|
|
1218 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
1219 |
|
|
# if CDPATH is set. |
1220 |
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
1221 |
|
|
|
1222 |
|
|
if test -z "$ECHO"; then |
1223 |
|
|
if test "X${echo_test_string+set}" != Xset; then |
1224 |
|
|
# find a string as large as possible, as long as the shell can cope with it |
1225 |
|
|
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
1226 |
|
|
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
1227 |
|
|
if (echo_test_string=`eval $cmd`) 2>/dev/null && |
1228 |
|
|
echo_test_string=`eval $cmd` && |
1229 |
|
|
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
1230 |
|
|
then |
1231 |
|
|
break |
1232 |
|
|
fi |
1233 |
|
|
done |
1234 |
|
|
fi |
1235 |
|
|
|
1236 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
1237 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
1238 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
1239 |
|
|
: |
1240 |
|
|
else |
1241 |
|
|
# The Solaris, AIX, and Digital Unix default echo programs unquote |
1242 |
|
|
# backslashes. This makes it impossible to quote backslashes using |
1243 |
|
|
# echo "$something" | sed 's/\\/\\\\/g' |
1244 |
|
|
# |
1245 |
|
|
# So, first we look for a working echo in the user's PATH. |
1246 |
|
|
|
1247 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
1248 |
|
|
for dir in $PATH /usr/ucb; do |
1249 |
|
|
IFS="$lt_save_ifs" |
1250 |
|
|
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
1251 |
|
|
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
1252 |
|
|
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
1253 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
1254 |
|
|
echo="$dir/echo" |
1255 |
|
|
break |
1256 |
|
|
fi |
1257 |
|
|
done |
1258 |
|
|
IFS="$lt_save_ifs" |
1259 |
|
|
|
1260 |
|
|
if test "X$echo" = Xecho; then |
1261 |
|
|
# We didn't find a better echo, so look for alternatives. |
1262 |
|
|
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
1263 |
|
|
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
1264 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
1265 |
|
|
# This shell has a builtin print -r that does the trick. |
1266 |
|
|
echo='print -r' |
1267 |
|
|
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
1268 |
|
|
test "X$CONFIG_SHELL" != X/bin/ksh; then |
1269 |
|
|
# If we have ksh, try running configure again with it. |
1270 |
|
|
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
1271 |
|
|
export ORIGINAL_CONFIG_SHELL |
1272 |
|
|
CONFIG_SHELL=/bin/ksh |
1273 |
|
|
export CONFIG_SHELL |
1274 |
|
|
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1275 |
|
|
else |
1276 |
|
|
# Try using printf. |
1277 |
|
|
echo='printf %s\n' |
1278 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
1279 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
1280 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
1281 |
|
|
# Cool, printf works |
1282 |
|
|
: |
1283 |
|
|
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1284 |
|
|
test "X$echo_testing_string" = 'X\t' && |
1285 |
|
|
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1286 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
1287 |
|
|
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
1288 |
|
|
export CONFIG_SHELL |
1289 |
|
|
SHELL="$CONFIG_SHELL" |
1290 |
|
|
export SHELL |
1291 |
|
|
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
1292 |
|
|
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1293 |
|
|
test "X$echo_testing_string" = 'X\t' && |
1294 |
|
|
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1295 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
1296 |
|
|
echo="$CONFIG_SHELL [$]0 --fallback-echo" |
1297 |
|
|
else |
1298 |
|
|
# maybe with a smaller string... |
1299 |
|
|
prev=: |
1300 |
|
|
|
1301 |
|
|
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
1302 |
|
|
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
1303 |
|
|
then |
1304 |
|
|
break |
1305 |
|
|
fi |
1306 |
|
|
prev="$cmd" |
1307 |
|
|
done |
1308 |
|
|
|
1309 |
|
|
if test "$prev" != 'sed 50q "[$]0"'; then |
1310 |
|
|
echo_test_string=`eval $prev` |
1311 |
|
|
export echo_test_string |
1312 |
|
|
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
1313 |
|
|
else |
1314 |
|
|
# Oops. We lost completely, so just stick with echo. |
1315 |
|
|
echo=echo |
1316 |
|
|
fi |
1317 |
|
|
fi |
1318 |
|
|
fi |
1319 |
|
|
fi |
1320 |
|
|
fi |
1321 |
|
|
fi |
1322 |
|
|
|
1323 |
|
|
# Copy echo and quote the copy suitably for passing to libtool from |
1324 |
|
|
# the Makefile, instead of quoting the original, which is used later. |
1325 |
|
|
ECHO=$echo |
1326 |
|
|
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
1327 |
|
|
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
1328 |
|
|
fi |
1329 |
|
|
|
1330 |
|
|
AC_SUBST(ECHO) |
1331 |
|
|
])])# _LT_AC_PROG_ECHO_BACKSLASH |
1332 |
|
|
|
1333 |
|
|
|
1334 |
|
|
# _LT_AC_LOCK |
1335 |
|
|
# ----------- |
1336 |
|
|
AC_DEFUN([_LT_AC_LOCK], |
1337 |
|
|
[AC_ARG_ENABLE([libtool-lock], |
1338 |
|
|
[AC_HELP_STRING([--disable-libtool-lock], |
1339 |
|
|
[avoid locking (might break parallel builds)])]) |
1340 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1341 |
|
|
|
1342 |
|
|
# Some flags need to be propagated to the compiler or linker for good |
1343 |
|
|
# libtool support. |
1344 |
|
|
case $host in |
1345 |
|
|
ia64-*-hpux*) |
1346 |
|
|
# Find out which ABI we are using. |
1347 |
|
|
echo 'int i;' > conftest.$ac_ext |
1348 |
|
|
if AC_TRY_EVAL(ac_compile); then |
1349 |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
1350 |
|
|
*ELF-32*) |
1351 |
|
|
HPUX_IA64_MODE="32" |
1352 |
|
|
;; |
1353 |
|
|
*ELF-64*) |
1354 |
|
|
HPUX_IA64_MODE="64" |
1355 |
|
|
;; |
1356 |
|
|
esac |
1357 |
|
|
fi |
1358 |
|
|
rm -rf conftest* |
1359 |
|
|
;; |
1360 |
|
|
*-*-irix6*) |
1361 |
|
|
# Find out which ABI we are using. |
1362 |
|
|
echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
1363 |
|
|
if AC_TRY_EVAL(ac_compile); then |
1364 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
1365 |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
1366 |
|
|
*32-bit*) |
1367 |
|
|
LD="${LD-ld} -melf32bsmip" |
1368 |
|
|
;; |
1369 |
|
|
*N32*) |
1370 |
|
|
LD="${LD-ld} -melf32bmipn32" |
1371 |
|
|
;; |
1372 |
|
|
*64-bit*) |
1373 |
|
|
LD="${LD-ld} -melf64bmip" |
1374 |
|
|
;; |
1375 |
|
|
esac |
1376 |
|
|
else |
1377 |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
1378 |
|
|
*32-bit*) |
1379 |
|
|
LD="${LD-ld} -32" |
1380 |
|
|
;; |
1381 |
|
|
*N32*) |
1382 |
|
|
LD="${LD-ld} -n32" |
1383 |
|
|
;; |
1384 |
|
|
*64-bit*) |
1385 |
|
|
LD="${LD-ld} -64" |
1386 |
|
|
;; |
1387 |
|
|
esac |
1388 |
|
|
fi |
1389 |
|
|
fi |
1390 |
|
|
rm -rf conftest* |
1391 |
|
|
;; |
1392 |
|
|
|
1393 |
|
|
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
1394 |
|
|
# Find out which ABI we are using. |
1395 |
|
|
echo 'int i;' > conftest.$ac_ext |
1396 |
|
|
if AC_TRY_EVAL(ac_compile); then |
1397 |
|
|
case `/usr/bin/file conftest.o` in |
1398 |
|
|
*32-bit*) |
1399 |
|
|
case $host in |
1400 |
|
|
x86_64-*linux*) |
1401 |
|
|
LD="${LD-ld} -m elf_i386" |
1402 |
|
|
;; |
1403 |
|
|
ppc64-*linux*|powerpc64-*linux*) |
1404 |
|
|
LD="${LD-ld} -m elf32ppclinux" |
1405 |
|
|
;; |
1406 |
|
|
s390x-*linux*) |
1407 |
|
|
LD="${LD-ld} -m elf_s390" |
1408 |
|
|
;; |
1409 |
|
|
sparc64-*linux*) |
1410 |
|
|
LD="${LD-ld} -m elf32_sparc" |
1411 |
|
|
;; |
1412 |
|
|
esac |
1413 |
|
|
;; |
1414 |
|
|
*64-bit*) |
1415 |
|
|
case $host in |
1416 |
|
|
x86_64-*linux*) |
1417 |
|
|
LD="${LD-ld} -m elf_x86_64" |
1418 |
|
|
;; |
1419 |
|
|
ppc*-*linux*|powerpc*-*linux*) |
1420 |
|
|
LD="${LD-ld} -m elf64ppc" |
1421 |
|
|
;; |
1422 |
|
|
s390*-*linux*) |
1423 |
|
|
LD="${LD-ld} -m elf64_s390" |
1424 |
|
|
;; |
1425 |
|
|
sparc*-*linux*) |
1426 |
|
|
LD="${LD-ld} -m elf64_sparc" |
1427 |
|
|
;; |
1428 |
|
|
esac |
1429 |
|
|
;; |
1430 |
|
|
esac |
1431 |
|
|
fi |
1432 |
|
|
rm -rf conftest* |
1433 |
|
|
;; |
1434 |
|
|
|
1435 |
|
|
*-*-sco3.2v5*) |
1436 |
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1437 |
|
|
SAVE_CFLAGS="$CFLAGS" |
1438 |
|
|
CFLAGS="$CFLAGS -belf" |
1439 |
|
|
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
1440 |
|
|
[AC_LANG_PUSH(C) |
1441 |
|
|
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
1442 |
|
|
AC_LANG_POP]) |
1443 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
1444 |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1445 |
|
|
CFLAGS="$SAVE_CFLAGS" |
1446 |
|
|
fi |
1447 |
|
|
;; |
1448 |
|
|
sparc*-*solaris*) |
1449 |
|
|
# Find out which ABI we are using. |
1450 |
|
|
echo 'int i;' > conftest.$ac_ext |
1451 |
|
|
if AC_TRY_EVAL(ac_compile); then |
1452 |
|
|
case `/usr/bin/file conftest.o` in |
1453 |
|
|
*64-bit*) |
1454 |
|
|
case $lt_cv_prog_gnu_ld in |
1455 |
|
|
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
1456 |
|
|
*) LD="${LD-ld} -64" ;; |
1457 |
|
|
esac |
1458 |
|
|
;; |
1459 |
|
|
esac |
1460 |
|
|
fi |
1461 |
|
|
rm -rf conftest* |
1462 |
|
|
;; |
1463 |
|
|
|
1464 |
|
|
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
1465 |
|
|
[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
1466 |
|
|
AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
1467 |
|
|
AC_CHECK_TOOL(AS, as, false) |
1468 |
|
|
AC_CHECK_TOOL(OBJDUMP, objdump, false) |
1469 |
|
|
;; |
1470 |
|
|
]) |
1471 |
|
|
esac |
1472 |
|
|
|
1473 |
|
|
need_locks="$enable_libtool_lock" |
1474 |
|
|
|
1475 |
|
|
])# _LT_AC_LOCK |
1476 |
|
|
|
1477 |
|
|
|
1478 |
|
|
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1479 |
|
|
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
1480 |
|
|
# ---------------------------------------------------------------- |
1481 |
|
|
# Check whether the given compiler option works |
1482 |
|
|
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
1483 |
|
|
[AC_REQUIRE([LT_AC_PROG_SED]) |
1484 |
|
|
AC_CACHE_CHECK([$1], [$2], |
1485 |
|
|
[$2=no |
1486 |
|
|
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
1487 |
|
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
1488 |
|
|
lt_compiler_flag="$3" |
1489 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or |
1490 |
|
|
# (2) before a word containing "conftest.", or (3) at the end. |
1491 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins |
1492 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
1493 |
|
|
# The option is referenced via a variable to avoid confusing sed. |
1494 |
|
|
lt_compile=`echo "$ac_compile" | $SED \ |
1495 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1496 |
|
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1497 |
|
|
-e 's:$: $lt_compiler_flag:'` |
1498 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1499 |
|
|
(eval "$lt_compile" 2>conftest.err) |
1500 |
|
|
ac_status=$? |
1501 |
|
|
cat conftest.err >&AS_MESSAGE_LOG_FD |
1502 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1503 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
1504 |
|
|
# The compiler can only warn and ignore the option if not recognized |
1505 |
|
|
# So say no if there are warnings other than the usual output. |
1506 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
1507 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1508 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
1509 |
|
|
$2=yes |
1510 |
|
|
fi |
1511 |
|
|
fi |
1512 |
|
|
$rm conftest* |
1513 |
|
|
]) |
1514 |
|
|
|
1515 |
|
|
if test x"[$]$2" = xyes; then |
1516 |
|
|
ifelse([$5], , :, [$5]) |
1517 |
|
|
else |
1518 |
|
|
ifelse([$6], , :, [$6]) |
1519 |
|
|
fi |
1520 |
|
|
])# AC_LIBTOOL_COMPILER_OPTION |
1521 |
|
|
|
1522 |
|
|
|
1523 |
|
|
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1524 |
|
|
# [ACTION-SUCCESS], [ACTION-FAILURE]) |
1525 |
|
|
# ------------------------------------------------------------ |
1526 |
|
|
# Check whether the given compiler option works |
1527 |
|
|
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
1528 |
|
|
[AC_CACHE_CHECK([$1], [$2], |
1529 |
|
|
[$2=no |
1530 |
|
|
save_LDFLAGS="$LDFLAGS" |
1531 |
|
|
LDFLAGS="$LDFLAGS $3" |
1532 |
|
|
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
1533 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
1534 |
|
|
# The linker can only warn and ignore the option if not recognized |
1535 |
|
|
# So say no if there are warnings |
1536 |
|
|
if test -s conftest.err; then |
1537 |
|
|
# Append any errors to the config.log. |
1538 |
|
|
cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1539 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
1540 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1541 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then |
1542 |
|
|
$2=yes |
1543 |
|
|
fi |
1544 |
|
|
else |
1545 |
|
|
$2=yes |
1546 |
|
|
fi |
1547 |
|
|
fi |
1548 |
|
|
$rm conftest* |
1549 |
|
|
LDFLAGS="$save_LDFLAGS" |
1550 |
|
|
]) |
1551 |
|
|
|
1552 |
|
|
if test x"[$]$2" = xyes; then |
1553 |
|
|
ifelse([$4], , :, [$4]) |
1554 |
|
|
else |
1555 |
|
|
ifelse([$5], , :, [$5]) |
1556 |
|
|
fi |
1557 |
|
|
])# AC_LIBTOOL_LINKER_OPTION |
1558 |
|
|
|
1559 |
|
|
|
1560 |
|
|
# AC_LIBTOOL_SYS_MAX_CMD_LEN |
1561 |
|
|
# -------------------------- |
1562 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
1563 |
|
|
[# find the maximum length of command line arguments |
1564 |
|
|
AC_MSG_CHECKING([the maximum length of command line arguments]) |
1565 |
|
|
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
1566 |
|
|
i=0 |
1567 |
|
|
teststring="ABCD" |
1568 |
|
|
|
1569 |
|
|
case $build_os in |
1570 |
|
|
msdosdjgpp*) |
1571 |
|
|
# On DJGPP, this test can blow up pretty badly due to problems in libc |
1572 |
|
|
# (any single argument exceeding 2000 bytes causes a buffer overrun |
1573 |
|
|
# during glob expansion). Even if it were fixed, the result of this |
1574 |
|
|
# check would be larger than it should be. |
1575 |
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
1576 |
|
|
;; |
1577 |
|
|
|
1578 |
|
|
gnu*) |
1579 |
|
|
# Under GNU Hurd, this test is not required because there is |
1580 |
|
|
# no limit to the length of command line arguments. |
1581 |
|
|
# Libtool will interpret -1 as no limit whatsoever |
1582 |
|
|
lt_cv_sys_max_cmd_len=-1; |
1583 |
|
|
;; |
1584 |
|
|
|
1585 |
|
|
cygwin* | mingw*) |
1586 |
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes |
1587 |
|
|
# about 5 minutes as the teststring grows exponentially. |
1588 |
|
|
# Worse, since 9x/ME are not pre-emptively multitasking, |
1589 |
|
|
# you end up with a "frozen" computer, even though with patience |
1590 |
|
|
# the test eventually succeeds (with a max line length of 256k). |
1591 |
|
|
# Instead, let's just punt: use the minimum linelength reported by |
1592 |
|
|
# all of the supported platforms: 8192 (on NT/2K/XP). |
1593 |
|
|
lt_cv_sys_max_cmd_len=8192; |
1594 |
|
|
;; |
1595 |
|
|
|
1596 |
|
|
amigaos*) |
1597 |
|
|
# On AmigaOS with pdksh, this test takes hours, literally. |
1598 |
|
|
# So we just punt and use a minimum line length of 8192. |
1599 |
|
|
lt_cv_sys_max_cmd_len=8192; |
1600 |
|
|
;; |
1601 |
|
|
|
1602 |
|
|
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
1603 |
|
|
# This has been around since 386BSD, at least. Likely further. |
1604 |
|
|
if test -x /sbin/sysctl; then |
1605 |
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
1606 |
|
|
elif test -x /usr/sbin/sysctl; then |
1607 |
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
1608 |
|
|
else |
1609 |
|
|
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
1610 |
|
|
fi |
1611 |
|
|
# And add a safety zone |
1612 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1613 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
1614 |
|
|
;; |
1615 |
|
|
|
1616 |
|
|
interix*) |
1617 |
|
|
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
1618 |
|
|
lt_cv_sys_max_cmd_len=196608 |
1619 |
|
|
;; |
1620 |
|
|
|
1621 |
|
|
osf*) |
1622 |
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
1623 |
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
1624 |
|
|
# nice to cause kernel panics so lets avoid the loop below. |
1625 |
|
|
# First set a reasonable default. |
1626 |
|
|
lt_cv_sys_max_cmd_len=16384 |
1627 |
|
|
# |
1628 |
|
|
if test -x /sbin/sysconfig; then |
1629 |
|
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
1630 |
|
|
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
1631 |
|
|
esac |
1632 |
|
|
fi |
1633 |
|
|
;; |
1634 |
|
|
sco3.2v5*) |
1635 |
|
|
lt_cv_sys_max_cmd_len=102400 |
1636 |
|
|
;; |
1637 |
|
|
sysv5* | sco5v6* | sysv4.2uw2*) |
1638 |
|
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
1639 |
|
|
if test -n "$kargmax"; then |
1640 |
|
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
1641 |
|
|
else |
1642 |
|
|
lt_cv_sys_max_cmd_len=32768 |
1643 |
|
|
fi |
1644 |
|
|
;; |
1645 |
|
|
*) |
1646 |
|
|
# If test is not a shell built-in, we'll probably end up computing a |
1647 |
|
|
# maximum length that is only half of the actual maximum length, but |
1648 |
|
|
# we can't tell. |
1649 |
|
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
1650 |
|
|
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
1651 |
|
|
= "XX$teststring") >/dev/null 2>&1 && |
1652 |
|
|
new_result=`expr "X$teststring" : ".*" 2>&1` && |
1653 |
|
|
lt_cv_sys_max_cmd_len=$new_result && |
1654 |
|
|
test $i != 17 # 1/2 MB should be enough |
1655 |
|
|
do |
1656 |
|
|
i=`expr $i + 1` |
1657 |
|
|
teststring=$teststring$teststring |
1658 |
|
|
done |
1659 |
|
|
teststring= |
1660 |
|
|
# Add a significant safety factor because C++ compilers can tack on massive |
1661 |
|
|
# amounts of additional arguments before passing them to the linker. |
1662 |
|
|
# It appears as though 1/2 is a usable value. |
1663 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
1664 |
|
|
;; |
1665 |
|
|
esac |
1666 |
|
|
]) |
1667 |
|
|
if test -n $lt_cv_sys_max_cmd_len ; then |
1668 |
|
|
AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
1669 |
|
|
else |
1670 |
|
|
AC_MSG_RESULT(none) |
1671 |
|
|
fi |
1672 |
|
|
])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
1673 |
|
|
|
1674 |
|
|
|
1675 |
|
|
# _LT_AC_CHECK_DLFCN |
1676 |
|
|
# ------------------ |
1677 |
|
|
AC_DEFUN([_LT_AC_CHECK_DLFCN], |
1678 |
|
|
[AC_CHECK_HEADERS(dlfcn.h)dnl |
1679 |
|
|
])# _LT_AC_CHECK_DLFCN |
1680 |
|
|
|
1681 |
|
|
|
1682 |
|
|
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
1683 |
|
|
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
1684 |
|
|
# --------------------------------------------------------------------- |
1685 |
|
|
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
1686 |
|
|
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
1687 |
|
|
if test "$cross_compiling" = yes; then : |
1688 |
|
|
[$4] |
1689 |
|
|
else |
1690 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
1691 |
|
|
lt_status=$lt_dlunknown |
1692 |
|
|
cat > conftest.$ac_ext <<EOF |
1693 |
|
|
[#line __oline__ "configure" |
1694 |
|
|
#include "confdefs.h" |
1695 |
|
|
|
1696 |
|
|
#if HAVE_DLFCN_H |
1697 |
|
|
#include <dlfcn.h> |
1698 |
|
|
#endif |
1699 |
|
|
|
1700 |
|
|
#include <stdio.h> |
1701 |
|
|
|
1702 |
|
|
#ifdef RTLD_GLOBAL |
1703 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL |
1704 |
|
|
#else |
1705 |
|
|
# ifdef DL_GLOBAL |
1706 |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
1707 |
|
|
# else |
1708 |
|
|
# define LT_DLGLOBAL 0 |
1709 |
|
|
# endif |
1710 |
|
|
#endif |
1711 |
|
|
|
1712 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
1713 |
|
|
find out it does not work in some platform. */ |
1714 |
|
|
#ifndef LT_DLLAZY_OR_NOW |
1715 |
|
|
# ifdef RTLD_LAZY |
1716 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
1717 |
|
|
# else |
1718 |
|
|
# ifdef DL_LAZY |
1719 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
1720 |
|
|
# else |
1721 |
|
|
# ifdef RTLD_NOW |
1722 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
1723 |
|
|
# else |
1724 |
|
|
# ifdef DL_NOW |
1725 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW |
1726 |
|
|
# else |
1727 |
|
|
# define LT_DLLAZY_OR_NOW 0 |
1728 |
|
|
# endif |
1729 |
|
|
# endif |
1730 |
|
|
# endif |
1731 |
|
|
# endif |
1732 |
|
|
#endif |
1733 |
|
|
|
1734 |
|
|
#ifdef __cplusplus |
1735 |
|
|
extern "C" void exit (int); |
1736 |
|
|
#endif |
1737 |
|
|
|
1738 |
|
|
void fnord() { int i=42;} |
1739 |
|
|
int main () |
1740 |
|
|
{ |
1741 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
1742 |
|
|
int status = $lt_dlunknown; |
1743 |
|
|
|
1744 |
|
|
if (self) |
1745 |
|
|
{ |
1746 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
1747 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
1748 |
|
|
/* dlclose (self); */ |
1749 |
|
|
} |
1750 |
|
|
else |
1751 |
|
|
puts (dlerror ()); |
1752 |
|
|
|
1753 |
|
|
exit (status); |
1754 |
|
|
}] |
1755 |
|
|
EOF |
1756 |
|
|
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
1757 |
|
|
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
1758 |
|
|
lt_status=$? |
1759 |
|
|
case x$lt_status in |
1760 |
|
|
x$lt_dlno_uscore) $1 ;; |
1761 |
|
|
x$lt_dlneed_uscore) $2 ;; |
1762 |
|
|
x$lt_dlunknown|x*) $3 ;; |
1763 |
|
|
esac |
1764 |
|
|
else : |
1765 |
|
|
# compilation failed |
1766 |
|
|
$3 |
1767 |
|
|
fi |
1768 |
|
|
fi |
1769 |
|
|
rm -fr conftest* |
1770 |
|
|
])# _LT_AC_TRY_DLOPEN_SELF |
1771 |
|
|
|
1772 |
|
|
|
1773 |
|
|
# AC_LIBTOOL_DLOPEN_SELF |
1774 |
|
|
# ---------------------- |
1775 |
|
|
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
1776 |
|
|
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
1777 |
|
|
if test "x$enable_dlopen" != xyes; then |
1778 |
|
|
enable_dlopen=unknown |
1779 |
|
|
enable_dlopen_self=unknown |
1780 |
|
|
enable_dlopen_self_static=unknown |
1781 |
|
|
else |
1782 |
|
|
lt_cv_dlopen=no |
1783 |
|
|
lt_cv_dlopen_libs= |
1784 |
|
|
|
1785 |
|
|
case $host_os in |
1786 |
|
|
beos*) |
1787 |
|
|
lt_cv_dlopen="load_add_on" |
1788 |
|
|
lt_cv_dlopen_libs= |
1789 |
|
|
lt_cv_dlopen_self=yes |
1790 |
|
|
;; |
1791 |
|
|
|
1792 |
|
|
mingw* | pw32*) |
1793 |
|
|
lt_cv_dlopen="LoadLibrary" |
1794 |
|
|
lt_cv_dlopen_libs= |
1795 |
|
|
;; |
1796 |
|
|
|
1797 |
|
|
cygwin*) |
1798 |
|
|
lt_cv_dlopen="dlopen" |
1799 |
|
|
lt_cv_dlopen_libs= |
1800 |
|
|
;; |
1801 |
|
|
|
1802 |
|
|
darwin*) |
1803 |
|
|
# if libdl is installed we need to link against it |
1804 |
|
|
AC_CHECK_LIB([dl], [dlopen], |
1805 |
|
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
1806 |
|
|
lt_cv_dlopen="dyld" |
1807 |
|
|
lt_cv_dlopen_libs= |
1808 |
|
|
lt_cv_dlopen_self=yes |
1809 |
|
|
]) |
1810 |
|
|
;; |
1811 |
|
|
|
1812 |
|
|
*) |
1813 |
|
|
AC_CHECK_FUNC([shl_load], |
1814 |
|
|
[lt_cv_dlopen="shl_load"], |
1815 |
|
|
[AC_CHECK_LIB([dld], [shl_load], |
1816 |
|
|
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
1817 |
|
|
[AC_CHECK_FUNC([dlopen], |
1818 |
|
|
[lt_cv_dlopen="dlopen"], |
1819 |
|
|
[AC_CHECK_LIB([dl], [dlopen], |
1820 |
|
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
1821 |
|
|
[AC_CHECK_LIB([svld], [dlopen], |
1822 |
|
|
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
1823 |
|
|
[AC_CHECK_LIB([dld], [dld_link], |
1824 |
|
|
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
1825 |
|
|
]) |
1826 |
|
|
]) |
1827 |
|
|
]) |
1828 |
|
|
]) |
1829 |
|
|
]) |
1830 |
|
|
;; |
1831 |
|
|
esac |
1832 |
|
|
|
1833 |
|
|
if test "x$lt_cv_dlopen" != xno; then |
1834 |
|
|
enable_dlopen=yes |
1835 |
|
|
else |
1836 |
|
|
enable_dlopen=no |
1837 |
|
|
fi |
1838 |
|
|
|
1839 |
|
|
case $lt_cv_dlopen in |
1840 |
|
|
dlopen) |
1841 |
|
|
save_CPPFLAGS="$CPPFLAGS" |
1842 |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
1843 |
|
|
|
1844 |
|
|
save_LDFLAGS="$LDFLAGS" |
1845 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
1846 |
|
|
|
1847 |
|
|
save_LIBS="$LIBS" |
1848 |
|
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
1849 |
|
|
|
1850 |
|
|
AC_CACHE_CHECK([whether a program can dlopen itself], |
1851 |
|
|
lt_cv_dlopen_self, [dnl |
1852 |
|
|
_LT_AC_TRY_DLOPEN_SELF( |
1853 |
|
|
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
1854 |
|
|
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
1855 |
|
|
]) |
1856 |
|
|
|
1857 |
|
|
if test "x$lt_cv_dlopen_self" = xyes; then |
1858 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
1859 |
|
|
AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
1860 |
|
|
lt_cv_dlopen_self_static, [dnl |
1861 |
|
|
_LT_AC_TRY_DLOPEN_SELF( |
1862 |
|
|
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
1863 |
|
|
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
1864 |
|
|
]) |
1865 |
|
|
fi |
1866 |
|
|
|
1867 |
|
|
CPPFLAGS="$save_CPPFLAGS" |
1868 |
|
|
LDFLAGS="$save_LDFLAGS" |
1869 |
|
|
LIBS="$save_LIBS" |
1870 |
|
|
;; |
1871 |
|
|
esac |
1872 |
|
|
|
1873 |
|
|
case $lt_cv_dlopen_self in |
1874 |
|
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
1875 |
|
|
*) enable_dlopen_self=unknown ;; |
1876 |
|
|
esac |
1877 |
|
|
|
1878 |
|
|
case $lt_cv_dlopen_self_static in |
1879 |
|
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
1880 |
|
|
*) enable_dlopen_self_static=unknown ;; |
1881 |
|
|
esac |
1882 |
|
|
fi |
1883 |
|
|
])# AC_LIBTOOL_DLOPEN_SELF |
1884 |
|
|
|
1885 |
|
|
|
1886 |
|
|
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
1887 |
|
|
# --------------------------------- |
1888 |
|
|
# Check to see if options -c and -o are simultaneously supported by compiler |
1889 |
|
|
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
1890 |
|
|
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
1891 |
|
|
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
1892 |
|
|
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
1893 |
|
|
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
1894 |
|
|
$rm -r conftest 2>/dev/null |
1895 |
|
|
mkdir conftest |
1896 |
|
|
cd conftest |
1897 |
|
|
mkdir out |
1898 |
|
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
1899 |
|
|
|
1900 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
1901 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or |
1902 |
|
|
# (2) before a word containing "conftest.", or (3) at the end. |
1903 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins |
1904 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
1905 |
|
|
lt_compile=`echo "$ac_compile" | $SED \ |
1906 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1907 |
|
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1908 |
|
|
-e 's:$: $lt_compiler_flag:'` |
1909 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1910 |
|
|
(eval "$lt_compile" 2>out/conftest.err) |
1911 |
|
|
ac_status=$? |
1912 |
|
|
cat out/conftest.err >&AS_MESSAGE_LOG_FD |
1913 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1914 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
1915 |
|
|
then |
1916 |
|
|
# The compiler can only warn and ignore the option if not recognized |
1917 |
|
|
# So say no if there are warnings |
1918 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
1919 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1920 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1921 |
|
|
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1922 |
|
|
fi |
1923 |
|
|
fi |
1924 |
|
|
chmod u+w . 2>&AS_MESSAGE_LOG_FD |
1925 |
|
|
$rm conftest* |
1926 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for |
1927 |
|
|
# template instantiation |
1928 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
1929 |
|
|
$rm out/* && rmdir out |
1930 |
|
|
cd .. |
1931 |
|
|
rmdir conftest |
1932 |
|
|
$rm conftest* |
1933 |
|
|
]) |
1934 |
|
|
])# AC_LIBTOOL_PROG_CC_C_O |
1935 |
|
|
|
1936 |
|
|
|
1937 |
|
|
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
1938 |
|
|
# ----------------------------------------- |
1939 |
|
|
# Check to see if we can do hard links to lock some files if needed |
1940 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
1941 |
|
|
[AC_REQUIRE([_LT_AC_LOCK])dnl |
1942 |
|
|
|
1943 |
|
|
hard_links="nottested" |
1944 |
|
|
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
1945 |
|
|
# do not overwrite the value of need_locks provided by the user |
1946 |
|
|
AC_MSG_CHECKING([if we can lock with hard links]) |
1947 |
|
|
hard_links=yes |
1948 |
|
|
$rm conftest* |
1949 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
1950 |
|
|
touch conftest.a |
1951 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
1952 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
1953 |
|
|
AC_MSG_RESULT([$hard_links]) |
1954 |
|
|
if test "$hard_links" = no; then |
1955 |
|
|
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
1956 |
|
|
need_locks=warn |
1957 |
|
|
fi |
1958 |
|
|
else |
1959 |
|
|
need_locks=no |
1960 |
|
|
fi |
1961 |
|
|
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
1962 |
|
|
|
1963 |
|
|
|
1964 |
|
|
# AC_LIBTOOL_OBJDIR |
1965 |
|
|
# ----------------- |
1966 |
|
|
AC_DEFUN([AC_LIBTOOL_OBJDIR], |
1967 |
|
|
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
1968 |
|
|
[rm -f .libs 2>/dev/null |
1969 |
|
|
mkdir .libs 2>/dev/null |
1970 |
|
|
if test -d .libs; then |
1971 |
|
|
lt_cv_objdir=.libs |
1972 |
|
|
else |
1973 |
|
|
# MS-DOS does not allow filenames that begin with a dot. |
1974 |
|
|
lt_cv_objdir=_libs |
1975 |
|
|
fi |
1976 |
|
|
rmdir .libs 2>/dev/null]) |
1977 |
|
|
objdir=$lt_cv_objdir |
1978 |
|
|
])# AC_LIBTOOL_OBJDIR |
1979 |
|
|
|
1980 |
|
|
|
1981 |
|
|
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
1982 |
|
|
# ---------------------------------------------- |
1983 |
|
|
# Check hardcoding attributes. |
1984 |
|
|
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
1985 |
|
|
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1986 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)= |
1987 |
|
|
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1988 |
|
|
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
1989 |
|
|
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
1990 |
|
|
|
1991 |
|
|
# We can hardcode non-existant directories. |
1992 |
|
|
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1993 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
1994 |
|
|
# have to relink, otherwise we might link with an installed library |
1995 |
|
|
# when we should be linking with a yet-to-be-installed one |
1996 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
1997 |
|
|
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
1998 |
|
|
# Linking always hardcodes the temporary library directory. |
1999 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)=relink |
2000 |
|
|
else |
2001 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
2002 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)=immediate |
2003 |
|
|
fi |
2004 |
|
|
else |
2005 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing |
2006 |
|
|
# directories. |
2007 |
|
|
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
2008 |
|
|
fi |
2009 |
|
|
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
2010 |
|
|
|
2011 |
|
|
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
2012 |
|
|
# Fast installation is not supported |
2013 |
|
|
enable_fast_install=no |
2014 |
|
|
elif test "$shlibpath_overrides_runpath" = yes || |
2015 |
|
|
test "$enable_shared" = no; then |
2016 |
|
|
# Fast installation is not necessary |
2017 |
|
|
enable_fast_install=needless |
2018 |
|
|
fi |
2019 |
|
|
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
2020 |
|
|
|
2021 |
|
|
|
2022 |
|
|
# AC_LIBTOOL_SYS_LIB_STRIP |
2023 |
|
|
# ------------------------ |
2024 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
2025 |
|
|
[striplib= |
2026 |
|
|
old_striplib= |
2027 |
|
|
AC_MSG_CHECKING([whether stripping libraries is possible]) |
2028 |
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
2029 |
|
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
2030 |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
2031 |
|
|
AC_MSG_RESULT([yes]) |
2032 |
|
|
else |
2033 |
|
|
# FIXME - insert some real tests, host_os isn't really good enough |
2034 |
|
|
case $host_os in |
2035 |
|
|
darwin*) |
2036 |
|
|
if test -n "$STRIP" ; then |
2037 |
|
|
striplib="$STRIP -x" |
2038 |
|
|
AC_MSG_RESULT([yes]) |
2039 |
|
|
else |
2040 |
|
|
AC_MSG_RESULT([no]) |
2041 |
|
|
fi |
2042 |
|
|
;; |
2043 |
|
|
*) |
2044 |
|
|
AC_MSG_RESULT([no]) |
2045 |
|
|
;; |
2046 |
|
|
esac |
2047 |
|
|
fi |
2048 |
|
|
])# AC_LIBTOOL_SYS_LIB_STRIP |
2049 |
|
|
|
2050 |
|
|
|
2051 |
|
|
# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
2052 |
|
|
# ----------------------------- |
2053 |
|
|
# PORTME Fill in your ld.so characteristics |
2054 |
|
|
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
2055 |
|
|
[AC_MSG_CHECKING([dynamic linker characteristics]) |
2056 |
|
|
library_names_spec= |
2057 |
|
|
libname_spec='lib$name' |
2058 |
|
|
soname_spec= |
2059 |
|
|
shrext_cmds=".so" |
2060 |
|
|
postinstall_cmds= |
2061 |
|
|
postuninstall_cmds= |
2062 |
|
|
finish_cmds= |
2063 |
|
|
finish_eval= |
2064 |
|
|
shlibpath_var= |
2065 |
|
|
shlibpath_overrides_runpath=unknown |
2066 |
|
|
version_type=none |
2067 |
|
|
dynamic_linker="$host_os ld.so" |
2068 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
2069 |
|
|
if test "$GCC" = yes; then |
2070 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2071 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
2072 |
|
|
# if the path contains ";" then we assume it to be the separator |
2073 |
|
|
# otherwise default to the standard path separator (i.e. ":") - it is |
2074 |
|
|
# assumed that no part of a normal pathname contains ";" but that should |
2075 |
|
|
# okay in the real world where ";" in dirpaths is itself problematic. |
2076 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2077 |
|
|
else |
2078 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2079 |
|
|
fi |
2080 |
|
|
else |
2081 |
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2082 |
|
|
fi |
2083 |
|
|
need_lib_prefix=unknown |
2084 |
|
|
hardcode_into_libs=no |
2085 |
|
|
|
2086 |
|
|
# when you set need_version to no, make sure it does not cause -set_version |
2087 |
|
|
# flags to be left without arguments |
2088 |
|
|
need_version=unknown |
2089 |
|
|
|
2090 |
|
|
case $host_os in |
2091 |
|
|
aix3*) |
2092 |
|
|
version_type=linux |
2093 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2094 |
|
|
shlibpath_var=LIBPATH |
2095 |
|
|
|
2096 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name. |
2097 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2098 |
|
|
;; |
2099 |
|
|
|
2100 |
|
|
aix4* | aix5*) |
2101 |
|
|
version_type=linux |
2102 |
|
|
need_lib_prefix=no |
2103 |
|
|
need_version=no |
2104 |
|
|
hardcode_into_libs=yes |
2105 |
|
|
if test "$host_cpu" = ia64; then |
2106 |
|
|
# AIX 5 supports IA64 |
2107 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
2108 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2109 |
|
|
else |
2110 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file |
2111 |
|
|
# for dependence libraries. The import file would start with |
2112 |
|
|
# the line `#! .'. This would cause the generated library to |
2113 |
|
|
# depend on `.', always an invalid library. This was fixed in |
2114 |
|
|
# development snapshots of GCC prior to 3.0. |
2115 |
|
|
case $host_os in |
2116 |
|
|
aix4 | aix4.[[01]] | aix4.[[01]].*) |
2117 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
2118 |
|
|
echo ' yes ' |
2119 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
2120 |
|
|
: |
2121 |
|
|
else |
2122 |
|
|
can_build_shared=no |
2123 |
|
|
fi |
2124 |
|
|
;; |
2125 |
|
|
esac |
2126 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
2127 |
|
|
# soname into executable. Probably we can add versioning support to |
2128 |
|
|
# collect2, so additional links can be useful in future. |
2129 |
|
|
if test "$aix_use_runtimelinking" = yes; then |
2130 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
2131 |
|
|
# instead of lib<name>.a to let people know that these are not |
2132 |
|
|
# typical AIX shared libraries. |
2133 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2134 |
|
|
else |
2135 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2 |
2136 |
|
|
# and later when we are not doing run time linking. |
2137 |
|
|
library_names_spec='${libname}${release}.a $libname.a' |
2138 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2139 |
|
|
fi |
2140 |
|
|
shlibpath_var=LIBPATH |
2141 |
|
|
fi |
2142 |
|
|
;; |
2143 |
|
|
|
2144 |
|
|
amigaos*) |
2145 |
|
|
library_names_spec='$libname.ixlibrary $libname.a' |
2146 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
2147 |
|
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
2148 |
|
|
;; |
2149 |
|
|
|
2150 |
|
|
beos*) |
2151 |
|
|
library_names_spec='${libname}${shared_ext}' |
2152 |
|
|
dynamic_linker="$host_os ld.so" |
2153 |
|
|
shlibpath_var=LIBRARY_PATH |
2154 |
|
|
;; |
2155 |
|
|
|
2156 |
|
|
bsdi[[45]]*) |
2157 |
|
|
version_type=linux |
2158 |
|
|
need_version=no |
2159 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2160 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2161 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
2162 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2163 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
2164 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
2165 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and |
2166 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
2167 |
|
|
# libtool to hard-code these into programs |
2168 |
|
|
;; |
2169 |
|
|
|
2170 |
|
|
cygwin* | mingw* | pw32*) |
2171 |
|
|
version_type=windows |
2172 |
|
|
shrext_cmds=".dll" |
2173 |
|
|
need_version=no |
2174 |
|
|
need_lib_prefix=no |
2175 |
|
|
|
2176 |
|
|
case $GCC,$host_os in |
2177 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
2178 |
|
|
library_names_spec='$libname.dll.a' |
2179 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
2180 |
|
|
postinstall_cmds='base_file=`basename \${file}`~ |
2181 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
2182 |
|
|
dldir=$destdir/`dirname \$dlpath`~ |
2183 |
|
|
test -d \$dldir || mkdir -p \$dldir~ |
2184 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~ |
2185 |
|
|
chmod a+x \$dldir/$dlname' |
2186 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2187 |
|
|
dlpath=$dir/\$dldll~ |
2188 |
|
|
$rm \$dlpath' |
2189 |
|
|
shlibpath_overrides_runpath=yes |
2190 |
|
|
|
2191 |
|
|
case $host_os in |
2192 |
|
|
cygwin*) |
2193 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2194 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2195 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
2196 |
|
|
;; |
2197 |
|
|
mingw*) |
2198 |
|
|
# MinGW DLLs use traditional 'lib' prefix |
2199 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2200 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2201 |
|
|
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
2202 |
|
|
# It is most probably a Windows format PATH printed by |
2203 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
2204 |
|
|
# path with ; separators, and with drive letters. We can handle the |
2205 |
|
|
# drive letters (cygwin fileutils understands them), so leave them, |
2206 |
|
|
# especially as we might pass files found there to a mingw objdump, |
2207 |
|
|
# which wouldn't understand a cygwinified path. Ahh. |
2208 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2209 |
|
|
else |
2210 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2211 |
|
|
fi |
2212 |
|
|
;; |
2213 |
|
|
pw32*) |
2214 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
2215 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2216 |
|
|
;; |
2217 |
|
|
esac |
2218 |
|
|
;; |
2219 |
|
|
|
2220 |
|
|
*) |
2221 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
2222 |
|
|
;; |
2223 |
|
|
esac |
2224 |
|
|
dynamic_linker='Win32 ld.exe' |
2225 |
|
|
# FIXME: first we should search . and the directory the executable is in |
2226 |
|
|
shlibpath_var=PATH |
2227 |
|
|
;; |
2228 |
|
|
|
2229 |
|
|
darwin* | rhapsody*) |
2230 |
|
|
dynamic_linker="$host_os dyld" |
2231 |
|
|
version_type=darwin |
2232 |
|
|
need_lib_prefix=no |
2233 |
|
|
need_version=no |
2234 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
2235 |
|
|
soname_spec='${libname}${release}${major}$shared_ext' |
2236 |
|
|
shlibpath_overrides_runpath=yes |
2237 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH |
2238 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
2239 |
|
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
2240 |
|
|
if test "$GCC" = yes; then |
2241 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
2242 |
|
|
else |
2243 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
2244 |
|
|
fi |
2245 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2246 |
|
|
;; |
2247 |
|
|
|
2248 |
|
|
dgux*) |
2249 |
|
|
version_type=linux |
2250 |
|
|
need_lib_prefix=no |
2251 |
|
|
need_version=no |
2252 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2253 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2254 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2255 |
|
|
;; |
2256 |
|
|
|
2257 |
|
|
freebsd1*) |
2258 |
|
|
dynamic_linker=no |
2259 |
|
|
;; |
2260 |
|
|
|
2261 |
|
|
freebsd* | dragonfly*) |
2262 |
|
|
# DragonFly does not have aout. When/if they implement a new |
2263 |
|
|
# versioning mechanism, adjust this. |
2264 |
|
|
if test -x /usr/bin/objformat; then |
2265 |
|
|
objformat=`/usr/bin/objformat` |
2266 |
|
|
else |
2267 |
|
|
case $host_os in |
2268 |
|
|
freebsd[[123]]*) objformat=aout ;; |
2269 |
|
|
*) objformat=elf ;; |
2270 |
|
|
esac |
2271 |
|
|
fi |
2272 |
|
|
version_type=freebsd-$objformat |
2273 |
|
|
case $version_type in |
2274 |
|
|
freebsd-elf*) |
2275 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2276 |
|
|
need_version=no |
2277 |
|
|
need_lib_prefix=no |
2278 |
|
|
;; |
2279 |
|
|
freebsd-*) |
2280 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
2281 |
|
|
need_version=yes |
2282 |
|
|
;; |
2283 |
|
|
esac |
2284 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2285 |
|
|
case $host_os in |
2286 |
|
|
freebsd2*) |
2287 |
|
|
shlibpath_overrides_runpath=yes |
2288 |
|
|
;; |
2289 |
|
|
freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2290 |
|
|
shlibpath_overrides_runpath=yes |
2291 |
|
|
hardcode_into_libs=yes |
2292 |
|
|
;; |
2293 |
|
|
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
2294 |
|
|
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
2295 |
|
|
shlibpath_overrides_runpath=no |
2296 |
|
|
hardcode_into_libs=yes |
2297 |
|
|
;; |
2298 |
|
|
freebsd*) # from 4.6 on |
2299 |
|
|
shlibpath_overrides_runpath=yes |
2300 |
|
|
hardcode_into_libs=yes |
2301 |
|
|
;; |
2302 |
|
|
esac |
2303 |
|
|
;; |
2304 |
|
|
|
2305 |
|
|
gnu*) |
2306 |
|
|
version_type=linux |
2307 |
|
|
need_lib_prefix=no |
2308 |
|
|
need_version=no |
2309 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2310 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2311 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2312 |
|
|
hardcode_into_libs=yes |
2313 |
|
|
;; |
2314 |
|
|
|
2315 |
|
|
hpux9* | hpux10* | hpux11*) |
2316 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
2317 |
|
|
# link against other versions. |
2318 |
|
|
version_type=sunos |
2319 |
|
|
need_lib_prefix=no |
2320 |
|
|
need_version=no |
2321 |
|
|
case $host_cpu in |
2322 |
|
|
ia64*) |
2323 |
|
|
shrext_cmds='.so' |
2324 |
|
|
hardcode_into_libs=yes |
2325 |
|
|
dynamic_linker="$host_os dld.so" |
2326 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2327 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2328 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2329 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2330 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then |
2331 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
2332 |
|
|
else |
2333 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
2334 |
|
|
fi |
2335 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2336 |
|
|
;; |
2337 |
|
|
hppa*64*) |
2338 |
|
|
shrext_cmds='.sl' |
2339 |
|
|
hardcode_into_libs=yes |
2340 |
|
|
dynamic_linker="$host_os dld.sl" |
2341 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
2342 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2343 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2344 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2345 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
2346 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2347 |
|
|
;; |
2348 |
|
|
*) |
2349 |
|
|
shrext_cmds='.sl' |
2350 |
|
|
dynamic_linker="$host_os dld.sl" |
2351 |
|
|
shlibpath_var=SHLIB_PATH |
2352 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2353 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2354 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2355 |
|
|
;; |
2356 |
|
|
esac |
2357 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
2358 |
|
|
postinstall_cmds='chmod 555 $lib' |
2359 |
|
|
;; |
2360 |
|
|
|
2361 |
|
|
interix3*) |
2362 |
|
|
version_type=linux |
2363 |
|
|
need_lib_prefix=no |
2364 |
|
|
need_version=no |
2365 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2366 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2367 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
2368 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2369 |
|
|
shlibpath_overrides_runpath=no |
2370 |
|
|
hardcode_into_libs=yes |
2371 |
|
|
;; |
2372 |
|
|
|
2373 |
|
|
irix5* | irix6* | nonstopux*) |
2374 |
|
|
case $host_os in |
2375 |
|
|
nonstopux*) version_type=nonstopux ;; |
2376 |
|
|
*) |
2377 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
2378 |
|
|
version_type=linux |
2379 |
|
|
else |
2380 |
|
|
version_type=irix |
2381 |
|
|
fi ;; |
2382 |
|
|
esac |
2383 |
|
|
need_lib_prefix=no |
2384 |
|
|
need_version=no |
2385 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2386 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
2387 |
|
|
case $host_os in |
2388 |
|
|
irix5* | nonstopux*) |
2389 |
|
|
libsuff= shlibsuff= |
2390 |
|
|
;; |
2391 |
|
|
*) |
2392 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD |
2393 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
2394 |
|
|
libsuff= shlibsuff= libmagic=32-bit;; |
2395 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
2396 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
2397 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
2398 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
2399 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;; |
2400 |
|
|
esac |
2401 |
|
|
;; |
2402 |
|
|
esac |
2403 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
2404 |
|
|
shlibpath_overrides_runpath=no |
2405 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
2406 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
2407 |
|
|
hardcode_into_libs=yes |
2408 |
|
|
;; |
2409 |
|
|
|
2410 |
|
|
# No shared lib support for Linux oldld, aout, or coff. |
2411 |
|
|
linux*oldld* | linux*aout* | linux*coff*) |
2412 |
|
|
dynamic_linker=no |
2413 |
|
|
;; |
2414 |
|
|
|
2415 |
|
|
# This must be Linux ELF. |
2416 |
|
|
linux* | k*bsd*-gnu) |
2417 |
|
|
version_type=linux |
2418 |
|
|
need_lib_prefix=no |
2419 |
|
|
need_version=no |
2420 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2421 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2422 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2423 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2424 |
|
|
shlibpath_overrides_runpath=no |
2425 |
|
|
# This implies no fast_install, which is unacceptable. |
2426 |
|
|
# Some rework will be needed to allow for fast_install |
2427 |
|
|
# before this can be enabled. |
2428 |
|
|
hardcode_into_libs=yes |
2429 |
|
|
|
2430 |
|
|
# Append ld.so.conf contents to the search path |
2431 |
|
|
if test -f /etc/ld.so.conf; then |
2432 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
2433 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
2434 |
|
|
fi |
2435 |
|
|
|
2436 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
2437 |
|
|
# powerpc, because MkLinux only supported shared libraries with the |
2438 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers, |
2439 |
|
|
# most powerpc-linux boxes support dynamic linking these days and |
2440 |
|
|
# people can always --disable-shared, the test was removed, and we |
2441 |
|
|
# assume the GNU/Linux dynamic linker is in use. |
2442 |
|
|
dynamic_linker='GNU/Linux ld.so' |
2443 |
|
|
;; |
2444 |
|
|
|
2445 |
|
|
netbsdelf*-gnu) |
2446 |
|
|
version_type=linux |
2447 |
|
|
need_lib_prefix=no |
2448 |
|
|
need_version=no |
2449 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2450 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2451 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2452 |
|
|
shlibpath_overrides_runpath=no |
2453 |
|
|
hardcode_into_libs=yes |
2454 |
|
|
dynamic_linker='NetBSD ld.elf_so' |
2455 |
|
|
;; |
2456 |
|
|
|
2457 |
|
|
netbsd*) |
2458 |
|
|
version_type=sunos |
2459 |
|
|
need_lib_prefix=no |
2460 |
|
|
need_version=no |
2461 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
2462 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2463 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2464 |
|
|
dynamic_linker='NetBSD (a.out) ld.so' |
2465 |
|
|
else |
2466 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2467 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2468 |
|
|
dynamic_linker='NetBSD ld.elf_so' |
2469 |
|
|
fi |
2470 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2471 |
|
|
shlibpath_overrides_runpath=yes |
2472 |
|
|
hardcode_into_libs=yes |
2473 |
|
|
;; |
2474 |
|
|
|
2475 |
|
|
newsos6) |
2476 |
|
|
version_type=linux |
2477 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2478 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2479 |
|
|
shlibpath_overrides_runpath=yes |
2480 |
|
|
;; |
2481 |
|
|
|
2482 |
|
|
nto-qnx*) |
2483 |
|
|
version_type=linux |
2484 |
|
|
need_lib_prefix=no |
2485 |
|
|
need_version=no |
2486 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2487 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2488 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2489 |
|
|
shlibpath_overrides_runpath=yes |
2490 |
|
|
;; |
2491 |
|
|
|
2492 |
|
|
openbsd*) |
2493 |
|
|
version_type=sunos |
2494 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib" |
2495 |
|
|
need_lib_prefix=no |
2496 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
2497 |
|
|
case $host_os in |
2498 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
2499 |
|
|
*) need_version=no ;; |
2500 |
|
|
esac |
2501 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2502 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2503 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2504 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2505 |
|
|
case $host_os in |
2506 |
|
|
openbsd2.[[89]] | openbsd2.[[89]].*) |
2507 |
|
|
shlibpath_overrides_runpath=no |
2508 |
|
|
;; |
2509 |
|
|
*) |
2510 |
|
|
shlibpath_overrides_runpath=yes |
2511 |
|
|
;; |
2512 |
|
|
esac |
2513 |
|
|
else |
2514 |
|
|
shlibpath_overrides_runpath=yes |
2515 |
|
|
fi |
2516 |
|
|
;; |
2517 |
|
|
|
2518 |
|
|
os2*) |
2519 |
|
|
libname_spec='$name' |
2520 |
|
|
shrext_cmds=".dll" |
2521 |
|
|
need_lib_prefix=no |
2522 |
|
|
library_names_spec='$libname${shared_ext} $libname.a' |
2523 |
|
|
dynamic_linker='OS/2 ld.exe' |
2524 |
|
|
shlibpath_var=LIBPATH |
2525 |
|
|
;; |
2526 |
|
|
|
2527 |
|
|
osf3* | osf4* | osf5*) |
2528 |
|
|
version_type=osf |
2529 |
|
|
need_lib_prefix=no |
2530 |
|
|
need_version=no |
2531 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2532 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2533 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2534 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
2535 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
2536 |
|
|
;; |
2537 |
|
|
|
2538 |
|
|
solaris*) |
2539 |
|
|
version_type=linux |
2540 |
|
|
need_lib_prefix=no |
2541 |
|
|
need_version=no |
2542 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2543 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2544 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2545 |
|
|
shlibpath_overrides_runpath=yes |
2546 |
|
|
hardcode_into_libs=yes |
2547 |
|
|
# ldd complains unless libraries are executable |
2548 |
|
|
postinstall_cmds='chmod +x $lib' |
2549 |
|
|
;; |
2550 |
|
|
|
2551 |
|
|
sunos4*) |
2552 |
|
|
version_type=sunos |
2553 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2554 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
2555 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2556 |
|
|
shlibpath_overrides_runpath=yes |
2557 |
|
|
if test "$with_gnu_ld" = yes; then |
2558 |
|
|
need_lib_prefix=no |
2559 |
|
|
fi |
2560 |
|
|
need_version=yes |
2561 |
|
|
;; |
2562 |
|
|
|
2563 |
|
|
sysv4 | sysv4.3*) |
2564 |
|
|
version_type=linux |
2565 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2566 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2567 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2568 |
|
|
case $host_vendor in |
2569 |
|
|
sni) |
2570 |
|
|
shlibpath_overrides_runpath=no |
2571 |
|
|
need_lib_prefix=no |
2572 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
2573 |
|
|
runpath_var=LD_RUN_PATH |
2574 |
|
|
;; |
2575 |
|
|
siemens) |
2576 |
|
|
need_lib_prefix=no |
2577 |
|
|
;; |
2578 |
|
|
motorola) |
2579 |
|
|
need_lib_prefix=no |
2580 |
|
|
need_version=no |
2581 |
|
|
shlibpath_overrides_runpath=no |
2582 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
2583 |
|
|
;; |
2584 |
|
|
esac |
2585 |
|
|
;; |
2586 |
|
|
|
2587 |
|
|
sysv4*MP*) |
2588 |
|
|
if test -d /usr/nec ;then |
2589 |
|
|
version_type=linux |
2590 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
2591 |
|
|
soname_spec='$libname${shared_ext}.$major' |
2592 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2593 |
|
|
fi |
2594 |
|
|
;; |
2595 |
|
|
|
2596 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2597 |
|
|
version_type=freebsd-elf |
2598 |
|
|
need_lib_prefix=no |
2599 |
|
|
need_version=no |
2600 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2601 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2602 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2603 |
|
|
hardcode_into_libs=yes |
2604 |
|
|
if test "$with_gnu_ld" = yes; then |
2605 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
2606 |
|
|
shlibpath_overrides_runpath=no |
2607 |
|
|
else |
2608 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
2609 |
|
|
shlibpath_overrides_runpath=yes |
2610 |
|
|
case $host_os in |
2611 |
|
|
sco3.2v5*) |
2612 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
2613 |
|
|
;; |
2614 |
|
|
esac |
2615 |
|
|
fi |
2616 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib' |
2617 |
|
|
;; |
2618 |
|
|
|
2619 |
|
|
uts4*) |
2620 |
|
|
version_type=linux |
2621 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2622 |
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
2623 |
|
|
shlibpath_var=LD_LIBRARY_PATH |
2624 |
|
|
;; |
2625 |
|
|
|
2626 |
|
|
*) |
2627 |
|
|
dynamic_linker=no |
2628 |
|
|
;; |
2629 |
|
|
esac |
2630 |
|
|
AC_MSG_RESULT([$dynamic_linker]) |
2631 |
|
|
test "$dynamic_linker" = no && can_build_shared=no |
2632 |
|
|
|
2633 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
2634 |
|
|
if test "$GCC" = yes; then |
2635 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
2636 |
|
|
fi |
2637 |
|
|
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
2638 |
|
|
|
2639 |
|
|
|
2640 |
|
|
# _LT_AC_TAGCONFIG |
2641 |
|
|
# ---------------- |
2642 |
|
|
AC_DEFUN([_LT_AC_TAGCONFIG], |
2643 |
|
|
[AC_ARG_WITH([tags], |
2644 |
|
|
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
2645 |
|
|
[include additional configurations @<:@automatic@:>@])], |
2646 |
|
|
[tagnames="$withval"]) |
2647 |
|
|
|
2648 |
|
|
if test -f "$ltmain" && test -n "$tagnames"; then |
2649 |
|
|
if test ! -f "${ofile}"; then |
2650 |
|
|
AC_MSG_WARN([output file `$ofile' does not exist]) |
2651 |
|
|
fi |
2652 |
|
|
|
2653 |
|
|
if test -z "$LTCC"; then |
2654 |
|
|
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
2655 |
|
|
if test -z "$LTCC"; then |
2656 |
|
|
AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
2657 |
|
|
else |
2658 |
|
|
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
2659 |
|
|
fi |
2660 |
|
|
fi |
2661 |
|
|
if test -z "$LTCFLAGS"; then |
2662 |
|
|
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
2663 |
|
|
fi |
2664 |
|
|
|
2665 |
|
|
# Extract list of available tagged configurations in $ofile. |
2666 |
|
|
# Note that this assumes the entire list is on one line. |
2667 |
|
|
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
2668 |
|
|
|
2669 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2670 |
|
|
for tagname in $tagnames; do |
2671 |
|
|
IFS="$lt_save_ifs" |
2672 |
|
|
# Check whether tagname contains only valid characters |
2673 |
|
|
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
2674 |
|
|
"") ;; |
2675 |
|
|
*) AC_MSG_ERROR([invalid tag name: $tagname]) |
2676 |
|
|
;; |
2677 |
|
|
esac |
2678 |
|
|
|
2679 |
|
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
2680 |
|
|
then |
2681 |
|
|
AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
2682 |
|
|
fi |
2683 |
|
|
|
2684 |
|
|
# Update the list of available tags. |
2685 |
|
|
if test -n "$tagname"; then |
2686 |
|
|
echo appending configuration tag \"$tagname\" to $ofile |
2687 |
|
|
|
2688 |
|
|
case $tagname in |
2689 |
|
|
CXX) |
2690 |
|
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
2691 |
|
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
2692 |
|
|
(test "X$CXX" != "Xg++"))) ; then |
2693 |
|
|
AC_LIBTOOL_LANG_CXX_CONFIG |
2694 |
|
|
else |
2695 |
|
|
tagname="" |
2696 |
|
|
fi |
2697 |
|
|
;; |
2698 |
|
|
|
2699 |
|
|
F77) |
2700 |
|
|
if test -n "$F77" && test "X$F77" != "Xno"; then |
2701 |
|
|
AC_LIBTOOL_LANG_F77_CONFIG |
2702 |
|
|
else |
2703 |
|
|
tagname="" |
2704 |
|
|
fi |
2705 |
|
|
;; |
2706 |
|
|
|
2707 |
|
|
GCJ) |
2708 |
|
|
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
2709 |
|
|
AC_LIBTOOL_LANG_GCJ_CONFIG |
2710 |
|
|
else |
2711 |
|
|
tagname="" |
2712 |
|
|
fi |
2713 |
|
|
;; |
2714 |
|
|
|
2715 |
|
|
RC) |
2716 |
|
|
AC_LIBTOOL_LANG_RC_CONFIG |
2717 |
|
|
;; |
2718 |
|
|
|
2719 |
|
|
*) |
2720 |
|
|
AC_MSG_ERROR([Unsupported tag name: $tagname]) |
2721 |
|
|
;; |
2722 |
|
|
esac |
2723 |
|
|
|
2724 |
|
|
# Append the new tag name to the list of available tags. |
2725 |
|
|
if test -n "$tagname" ; then |
2726 |
|
|
available_tags="$available_tags $tagname" |
2727 |
|
|
fi |
2728 |
|
|
fi |
2729 |
|
|
done |
2730 |
|
|
IFS="$lt_save_ifs" |
2731 |
|
|
|
2732 |
|
|
# Now substitute the updated list of available tags. |
2733 |
|
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
2734 |
|
|
mv "${ofile}T" "$ofile" |
2735 |
|
|
chmod +x "$ofile" |
2736 |
|
|
else |
2737 |
|
|
rm -f "${ofile}T" |
2738 |
|
|
AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
2739 |
|
|
fi |
2740 |
|
|
fi |
2741 |
|
|
])# _LT_AC_TAGCONFIG |
2742 |
|
|
|
2743 |
|
|
|
2744 |
|
|
# AC_LIBTOOL_DLOPEN |
2745 |
|
|
# ----------------- |
2746 |
|
|
# enable checks for dlopen support |
2747 |
|
|
AC_DEFUN([AC_LIBTOOL_DLOPEN], |
2748 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
2749 |
|
|
])# AC_LIBTOOL_DLOPEN |
2750 |
|
|
|
2751 |
|
|
|
2752 |
|
|
# AC_LIBTOOL_WIN32_DLL |
2753 |
|
|
# -------------------- |
2754 |
|
|
# declare package support for building win32 DLLs |
2755 |
|
|
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
2756 |
|
|
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
2757 |
|
|
])# AC_LIBTOOL_WIN32_DLL |
2758 |
|
|
|
2759 |
|
|
|
2760 |
|
|
# AC_ENABLE_SHARED([DEFAULT]) |
2761 |
|
|
# --------------------------- |
2762 |
|
|
# implement the --enable-shared flag |
2763 |
|
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
2764 |
|
|
AC_DEFUN([AC_ENABLE_SHARED], |
2765 |
|
|
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
2766 |
|
|
AC_ARG_ENABLE([shared], |
2767 |
|
|
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
2768 |
|
|
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
2769 |
|
|
[p=${PACKAGE-default} |
2770 |
|
|
case $enableval in |
2771 |
|
|
yes) enable_shared=yes ;; |
2772 |
|
|
no) enable_shared=no ;; |
2773 |
|
|
*) |
2774 |
|
|
enable_shared=no |
2775 |
|
|
# Look at the argument we got. We use all the common list separators. |
2776 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2777 |
|
|
for pkg in $enableval; do |
2778 |
|
|
IFS="$lt_save_ifs" |
2779 |
|
|
if test "X$pkg" = "X$p"; then |
2780 |
|
|
enable_shared=yes |
2781 |
|
|
fi |
2782 |
|
|
done |
2783 |
|
|
IFS="$lt_save_ifs" |
2784 |
|
|
;; |
2785 |
|
|
esac], |
2786 |
|
|
[enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
2787 |
|
|
])# AC_ENABLE_SHARED |
2788 |
|
|
|
2789 |
|
|
|
2790 |
|
|
# AC_DISABLE_SHARED |
2791 |
|
|
# ----------------- |
2792 |
|
|
# set the default shared flag to --disable-shared |
2793 |
|
|
AC_DEFUN([AC_DISABLE_SHARED], |
2794 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2795 |
|
|
AC_ENABLE_SHARED(no) |
2796 |
|
|
])# AC_DISABLE_SHARED |
2797 |
|
|
|
2798 |
|
|
|
2799 |
|
|
# AC_ENABLE_STATIC([DEFAULT]) |
2800 |
|
|
# --------------------------- |
2801 |
|
|
# implement the --enable-static flag |
2802 |
|
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
2803 |
|
|
AC_DEFUN([AC_ENABLE_STATIC], |
2804 |
|
|
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
2805 |
|
|
AC_ARG_ENABLE([static], |
2806 |
|
|
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
2807 |
|
|
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
2808 |
|
|
[p=${PACKAGE-default} |
2809 |
|
|
case $enableval in |
2810 |
|
|
yes) enable_static=yes ;; |
2811 |
|
|
no) enable_static=no ;; |
2812 |
|
|
*) |
2813 |
|
|
enable_static=no |
2814 |
|
|
# Look at the argument we got. We use all the common list separators. |
2815 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2816 |
|
|
for pkg in $enableval; do |
2817 |
|
|
IFS="$lt_save_ifs" |
2818 |
|
|
if test "X$pkg" = "X$p"; then |
2819 |
|
|
enable_static=yes |
2820 |
|
|
fi |
2821 |
|
|
done |
2822 |
|
|
IFS="$lt_save_ifs" |
2823 |
|
|
;; |
2824 |
|
|
esac], |
2825 |
|
|
[enable_static=]AC_ENABLE_STATIC_DEFAULT) |
2826 |
|
|
])# AC_ENABLE_STATIC |
2827 |
|
|
|
2828 |
|
|
|
2829 |
|
|
# AC_DISABLE_STATIC |
2830 |
|
|
# ----------------- |
2831 |
|
|
# set the default static flag to --disable-static |
2832 |
|
|
AC_DEFUN([AC_DISABLE_STATIC], |
2833 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2834 |
|
|
AC_ENABLE_STATIC(no) |
2835 |
|
|
])# AC_DISABLE_STATIC |
2836 |
|
|
|
2837 |
|
|
|
2838 |
|
|
# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
2839 |
|
|
# --------------------------------- |
2840 |
|
|
# implement the --enable-fast-install flag |
2841 |
|
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
2842 |
|
|
AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
2843 |
|
|
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
2844 |
|
|
AC_ARG_ENABLE([fast-install], |
2845 |
|
|
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
2846 |
|
|
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
2847 |
|
|
[p=${PACKAGE-default} |
2848 |
|
|
case $enableval in |
2849 |
|
|
yes) enable_fast_install=yes ;; |
2850 |
|
|
no) enable_fast_install=no ;; |
2851 |
|
|
*) |
2852 |
|
|
enable_fast_install=no |
2853 |
|
|
# Look at the argument we got. We use all the common list separators. |
2854 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2855 |
|
|
for pkg in $enableval; do |
2856 |
|
|
IFS="$lt_save_ifs" |
2857 |
|
|
if test "X$pkg" = "X$p"; then |
2858 |
|
|
enable_fast_install=yes |
2859 |
|
|
fi |
2860 |
|
|
done |
2861 |
|
|
IFS="$lt_save_ifs" |
2862 |
|
|
;; |
2863 |
|
|
esac], |
2864 |
|
|
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
2865 |
|
|
])# AC_ENABLE_FAST_INSTALL |
2866 |
|
|
|
2867 |
|
|
|
2868 |
|
|
# AC_DISABLE_FAST_INSTALL |
2869 |
|
|
# ----------------------- |
2870 |
|
|
# set the default to --disable-fast-install |
2871 |
|
|
AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
2872 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2873 |
|
|
AC_ENABLE_FAST_INSTALL(no) |
2874 |
|
|
])# AC_DISABLE_FAST_INSTALL |
2875 |
|
|
|
2876 |
|
|
|
2877 |
|
|
# AC_LIBTOOL_PICMODE([MODE]) |
2878 |
|
|
# -------------------------- |
2879 |
|
|
# implement the --with-pic flag |
2880 |
|
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
2881 |
|
|
AC_DEFUN([AC_LIBTOOL_PICMODE], |
2882 |
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2883 |
|
|
pic_mode=ifelse($#,1,$1,default) |
2884 |
|
|
])# AC_LIBTOOL_PICMODE |
2885 |
|
|
|
2886 |
|
|
|
2887 |
|
|
# AC_PROG_EGREP |
2888 |
|
|
# ------------- |
2889 |
|
|
# This is predefined starting with Autoconf 2.54, so this conditional |
2890 |
|
|
# definition can be removed once we require Autoconf 2.54 or later. |
2891 |
|
|
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
2892 |
|
|
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
2893 |
|
|
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2894 |
|
|
then ac_cv_prog_egrep='grep -E' |
2895 |
|
|
else ac_cv_prog_egrep='egrep' |
2896 |
|
|
fi]) |
2897 |
|
|
EGREP=$ac_cv_prog_egrep |
2898 |
|
|
AC_SUBST([EGREP]) |
2899 |
|
|
])]) |
2900 |
|
|
|
2901 |
|
|
|
2902 |
|
|
# AC_PATH_TOOL_PREFIX |
2903 |
|
|
# ------------------- |
2904 |
|
|
# find a file program which can recognise shared library |
2905 |
|
|
AC_DEFUN([AC_PATH_TOOL_PREFIX], |
2906 |
|
|
[AC_REQUIRE([AC_PROG_EGREP])dnl |
2907 |
|
|
AC_MSG_CHECKING([for $1]) |
2908 |
|
|
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
2909 |
|
|
[case $MAGIC_CMD in |
2910 |
|
|
[[\\/*] | ?:[\\/]*]) |
2911 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
2912 |
|
|
;; |
2913 |
|
|
*) |
2914 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
2915 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2916 |
|
|
dnl $ac_dummy forces splitting on constant user-supplied paths. |
2917 |
|
|
dnl POSIX.2 word splitting is done only on the output of word expansions, |
2918 |
|
|
dnl not every word. This closes a longstanding sh security hole. |
2919 |
|
|
ac_dummy="ifelse([$2], , $PATH, [$2])" |
2920 |
|
|
for ac_dir in $ac_dummy; do |
2921 |
|
|
IFS="$lt_save_ifs" |
2922 |
|
|
test -z "$ac_dir" && ac_dir=. |
2923 |
|
|
if test -f $ac_dir/$1; then |
2924 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
2925 |
|
|
if test -n "$file_magic_test_file"; then |
2926 |
|
|
case $deplibs_check_method in |
2927 |
|
|
"file_magic "*) |
2928 |
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
2929 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2930 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2931 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then |
2932 |
|
|
: |
2933 |
|
|
else |
2934 |
|
|
cat <<EOF 1>&2 |
2935 |
|
|
|
2936 |
|
|
*** Warning: the command libtool uses to detect shared libraries, |
2937 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
2938 |
|
|
*** The result is that libtool may fail to recognize shared libraries |
2939 |
|
|
*** as such. This will affect the creation of libtool libraries that |
2940 |
|
|
*** depend on shared libraries, but programs linked with such libtool |
2941 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you |
2942 |
|
|
*** may want to report the problem to your system manager and/or to |
2943 |
|
|
*** bug-libtool@gnu.org |
2944 |
|
|
|
2945 |
|
|
EOF |
2946 |
|
|
fi ;; |
2947 |
|
|
esac |
2948 |
|
|
fi |
2949 |
|
|
break |
2950 |
|
|
fi |
2951 |
|
|
done |
2952 |
|
|
IFS="$lt_save_ifs" |
2953 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
2954 |
|
|
;; |
2955 |
|
|
esac]) |
2956 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2957 |
|
|
if test -n "$MAGIC_CMD"; then |
2958 |
|
|
AC_MSG_RESULT($MAGIC_CMD) |
2959 |
|
|
else |
2960 |
|
|
AC_MSG_RESULT(no) |
2961 |
|
|
fi |
2962 |
|
|
])# AC_PATH_TOOL_PREFIX |
2963 |
|
|
|
2964 |
|
|
|
2965 |
|
|
# AC_PATH_MAGIC |
2966 |
|
|
# ------------- |
2967 |
|
|
# find a file program which can recognise a shared library |
2968 |
|
|
AC_DEFUN([AC_PATH_MAGIC], |
2969 |
|
|
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
2970 |
|
|
if test -z "$lt_cv_path_MAGIC_CMD"; then |
2971 |
|
|
if test -n "$ac_tool_prefix"; then |
2972 |
|
|
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
2973 |
|
|
else |
2974 |
|
|
MAGIC_CMD=: |
2975 |
|
|
fi |
2976 |
|
|
fi |
2977 |
|
|
])# AC_PATH_MAGIC |
2978 |
|
|
|
2979 |
|
|
|
2980 |
|
|
# AC_PROG_LD |
2981 |
|
|
# ---------- |
2982 |
|
|
# find the pathname to the GNU or non-GNU linker |
2983 |
|
|
AC_DEFUN([AC_PROG_LD], |
2984 |
|
|
[AC_ARG_WITH([gnu-ld], |
2985 |
|
|
[AC_HELP_STRING([--with-gnu-ld], |
2986 |
|
|
[assume the C compiler uses GNU ld @<:@default=no@:>@])], |
2987 |
|
|
[test "$withval" = no || with_gnu_ld=yes], |
2988 |
|
|
[with_gnu_ld=no]) |
2989 |
|
|
AC_REQUIRE([LT_AC_PROG_SED])dnl |
2990 |
|
|
AC_REQUIRE([AC_PROG_CC])dnl |
2991 |
|
|
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2992 |
|
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2993 |
|
|
ac_prog=ld |
2994 |
|
|
if test "$GCC" = yes; then |
2995 |
|
|
# Check if gcc -print-prog-name=ld gives a path. |
2996 |
|
|
AC_MSG_CHECKING([for ld used by $CC]) |
2997 |
|
|
case $host in |
2998 |
|
|
*-*-mingw*) |
2999 |
|
|
# gcc leaves a trailing carriage return which upsets mingw |
3000 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3001 |
|
|
*) |
3002 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3003 |
|
|
esac |
3004 |
|
|
case $ac_prog in |
3005 |
|
|
# Accept absolute paths. |
3006 |
|
|
[[\\/]]* | ?:[[\\/]]*) |
3007 |
|
|
re_direlt='/[[^/]][[^/]]*/\.\./' |
3008 |
|
|
# Canonicalize the pathname of ld |
3009 |
|
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3010 |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3011 |
|
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3012 |
|
|
done |
3013 |
|
|
test -z "$LD" && LD="$ac_prog" |
3014 |
|
|
;; |
3015 |
|
|
"") |
3016 |
|
|
# If it fails, then pretend we aren't using GCC. |
3017 |
|
|
ac_prog=ld |
3018 |
|
|
;; |
3019 |
|
|
*) |
3020 |
|
|
# If it is relative, then search for the first ld in PATH. |
3021 |
|
|
with_gnu_ld=unknown |
3022 |
|
|
;; |
3023 |
|
|
esac |
3024 |
|
|
elif test "$with_gnu_ld" = yes; then |
3025 |
|
|
AC_MSG_CHECKING([for GNU ld]) |
3026 |
|
|
else |
3027 |
|
|
AC_MSG_CHECKING([for non-GNU ld]) |
3028 |
|
|
fi |
3029 |
|
|
AC_CACHE_VAL(lt_cv_path_LD, |
3030 |
|
|
[if test -z "$LD"; then |
3031 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3032 |
|
|
for ac_dir in $PATH; do |
3033 |
|
|
IFS="$lt_save_ifs" |
3034 |
|
|
test -z "$ac_dir" && ac_dir=. |
3035 |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3036 |
|
|
lt_cv_path_LD="$ac_dir/$ac_prog" |
3037 |
|
|
# Check to see if the program is GNU ld. I'd rather use --version, |
3038 |
|
|
# but apparently some variants of GNU ld only accept -v. |
3039 |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
3040 |
|
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3041 |
|
|
*GNU* | *'with BFD'*) |
3042 |
|
|
test "$with_gnu_ld" != no && break |
3043 |
|
|
;; |
3044 |
|
|
*) |
3045 |
|
|
test "$with_gnu_ld" != yes && break |
3046 |
|
|
;; |
3047 |
|
|
esac |
3048 |
|
|
fi |
3049 |
|
|
done |
3050 |
|
|
IFS="$lt_save_ifs" |
3051 |
|
|
else |
3052 |
|
|
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3053 |
|
|
fi]) |
3054 |
|
|
LD="$lt_cv_path_LD" |
3055 |
|
|
if test -n "$LD"; then |
3056 |
|
|
AC_MSG_RESULT($LD) |
3057 |
|
|
else |
3058 |
|
|
AC_MSG_RESULT(no) |
3059 |
|
|
fi |
3060 |
|
|
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
3061 |
|
|
AC_PROG_LD_GNU |
3062 |
|
|
])# AC_PROG_LD |
3063 |
|
|
|
3064 |
|
|
|
3065 |
|
|
# AC_PROG_LD_GNU |
3066 |
|
|
# -------------- |
3067 |
|
|
AC_DEFUN([AC_PROG_LD_GNU], |
3068 |
|
|
[AC_REQUIRE([AC_PROG_EGREP])dnl |
3069 |
|
|
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
3070 |
|
|
[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
3071 |
|
|
case `$LD -v 2>&1 </dev/null` in |
3072 |
|
|
*GNU* | *'with BFD'*) |
3073 |
|
|
lt_cv_prog_gnu_ld=yes |
3074 |
|
|
;; |
3075 |
|
|
*) |
3076 |
|
|
lt_cv_prog_gnu_ld=no |
3077 |
|
|
;; |
3078 |
|
|
esac]) |
3079 |
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld |
3080 |
|
|
])# AC_PROG_LD_GNU |
3081 |
|
|
|
3082 |
|
|
|
3083 |
|
|
# AC_PROG_LD_RELOAD_FLAG |
3084 |
|
|
# ---------------------- |
3085 |
|
|
# find reload flag for linker |
3086 |
|
|
# -- PORTME Some linkers may need a different reload flag. |
3087 |
|
|
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
3088 |
|
|
[AC_CACHE_CHECK([for $LD option to reload object files], |
3089 |
|
|
lt_cv_ld_reload_flag, |
3090 |
|
|
[lt_cv_ld_reload_flag='-r']) |
3091 |
|
|
reload_flag=$lt_cv_ld_reload_flag |
3092 |
|
|
case $reload_flag in |
3093 |
|
|
"" | " "*) ;; |
3094 |
|
|
*) reload_flag=" $reload_flag" ;; |
3095 |
|
|
esac |
3096 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3097 |
|
|
case $host_os in |
3098 |
|
|
darwin*) |
3099 |
|
|
if test "$GCC" = yes; then |
3100 |
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3101 |
|
|
else |
3102 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3103 |
|
|
fi |
3104 |
|
|
;; |
3105 |
|
|
esac |
3106 |
|
|
])# AC_PROG_LD_RELOAD_FLAG |
3107 |
|
|
|
3108 |
|
|
|
3109 |
|
|
# AC_DEPLIBS_CHECK_METHOD |
3110 |
|
|
# ----------------------- |
3111 |
|
|
# how to check for library dependencies |
3112 |
|
|
# -- PORTME fill in with the dynamic library characteristics |
3113 |
|
|
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
3114 |
|
|
[AC_CACHE_CHECK([how to recognise dependent libraries], |
3115 |
|
|
lt_cv_deplibs_check_method, |
3116 |
|
|
[lt_cv_file_magic_cmd='$MAGIC_CMD' |
3117 |
|
|
lt_cv_file_magic_test_file= |
3118 |
|
|
lt_cv_deplibs_check_method='unknown' |
3119 |
|
|
# Need to set the preceding variable on all platforms that support |
3120 |
|
|
# interlibrary dependencies. |
3121 |
|
|
# 'none' -- dependencies not supported. |
3122 |
|
|
# `unknown' -- same as none, but documents that we really don't know. |
3123 |
|
|
# 'pass_all' -- all dependencies passed with no checks. |
3124 |
|
|
# 'test_compile' -- check by making test program. |
3125 |
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path |
3126 |
|
|
# which responds to the $file_magic_cmd with a given extended regex. |
3127 |
|
|
# If you have `file' or equivalent on your system and you're not sure |
3128 |
|
|
# whether `pass_all' will *always* work, you probably want this one. |
3129 |
|
|
|
3130 |
|
|
case $host_os in |
3131 |
|
|
aix4* | aix5*) |
3132 |
|
|
lt_cv_deplibs_check_method=pass_all |
3133 |
|
|
;; |
3134 |
|
|
|
3135 |
|
|
beos*) |
3136 |
|
|
lt_cv_deplibs_check_method=pass_all |
3137 |
|
|
;; |
3138 |
|
|
|
3139 |
|
|
bsdi[[45]]*) |
3140 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3141 |
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
3142 |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so |
3143 |
|
|
;; |
3144 |
|
|
|
3145 |
|
|
cygwin*) |
3146 |
|
|
# func_win32_libid is a shell function defined in ltmain.sh |
3147 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3148 |
|
|
lt_cv_file_magic_cmd='func_win32_libid' |
3149 |
|
|
;; |
3150 |
|
|
|
3151 |
|
|
mingw* | pw32*) |
3152 |
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
3153 |
|
|
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3154 |
|
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3155 |
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f' |
3156 |
|
|
;; |
3157 |
|
|
|
3158 |
|
|
darwin* | rhapsody*) |
3159 |
|
|
lt_cv_deplibs_check_method=pass_all |
3160 |
|
|
;; |
3161 |
|
|
|
3162 |
|
|
freebsd* | dragonfly*) |
3163 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3164 |
|
|
case $host_cpu in |
3165 |
|
|
i*86 ) |
3166 |
|
|
# Not sure whether the presence of OpenBSD here was a mistake. |
3167 |
|
|
# Let's accept both of them until this is cleared up. |
3168 |
|
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
3169 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file |
3170 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3171 |
|
|
;; |
3172 |
|
|
esac |
3173 |
|
|
else |
3174 |
|
|
lt_cv_deplibs_check_method=pass_all |
3175 |
|
|
fi |
3176 |
|
|
;; |
3177 |
|
|
|
3178 |
|
|
gnu*) |
3179 |
|
|
lt_cv_deplibs_check_method=pass_all |
3180 |
|
|
;; |
3181 |
|
|
|
3182 |
|
|
hpux10.20* | hpux11*) |
3183 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file |
3184 |
|
|
case $host_cpu in |
3185 |
|
|
ia64*) |
3186 |
|
|
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3187 |
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3188 |
|
|
;; |
3189 |
|
|
hppa*64*) |
3190 |
|
|
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
3191 |
|
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3192 |
|
|
;; |
3193 |
|
|
*) |
3194 |
|
|
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
3195 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3196 |
|
|
;; |
3197 |
|
|
esac |
3198 |
|
|
;; |
3199 |
|
|
|
3200 |
|
|
interix3*) |
3201 |
|
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3202 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
3203 |
|
|
;; |
3204 |
|
|
|
3205 |
|
|
irix5* | irix6* | nonstopux*) |
3206 |
|
|
case $LD in |
3207 |
|
|
*-32|*"-32 ") libmagic=32-bit;; |
3208 |
|
|
*-n32|*"-n32 ") libmagic=N32;; |
3209 |
|
|
*-64|*"-64 ") libmagic=64-bit;; |
3210 |
|
|
*) libmagic=never-match;; |
3211 |
|
|
esac |
3212 |
|
|
lt_cv_deplibs_check_method=pass_all |
3213 |
|
|
;; |
3214 |
|
|
|
3215 |
|
|
# This must be Linux ELF. |
3216 |
|
|
linux* | k*bsd*-gnu) |
3217 |
|
|
lt_cv_deplibs_check_method=pass_all |
3218 |
|
|
;; |
3219 |
|
|
|
3220 |
|
|
netbsd* | netbsdelf*-gnu) |
3221 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3222 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3223 |
|
|
else |
3224 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
3225 |
|
|
fi |
3226 |
|
|
;; |
3227 |
|
|
|
3228 |
|
|
newos6*) |
3229 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
3230 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file |
3231 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3232 |
|
|
;; |
3233 |
|
|
|
3234 |
|
|
nto-qnx*) |
3235 |
|
|
lt_cv_deplibs_check_method=unknown |
3236 |
|
|
;; |
3237 |
|
|
|
3238 |
|
|
openbsd*) |
3239 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3240 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
3241 |
|
|
else |
3242 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3243 |
|
|
fi |
3244 |
|
|
;; |
3245 |
|
|
|
3246 |
|
|
osf3* | osf4* | osf5*) |
3247 |
|
|
lt_cv_deplibs_check_method=pass_all |
3248 |
|
|
;; |
3249 |
|
|
|
3250 |
|
|
solaris*) |
3251 |
|
|
lt_cv_deplibs_check_method=pass_all |
3252 |
|
|
;; |
3253 |
|
|
|
3254 |
|
|
sysv4 | sysv4.3*) |
3255 |
|
|
case $host_vendor in |
3256 |
|
|
motorola) |
3257 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
3258 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3259 |
|
|
;; |
3260 |
|
|
ncr) |
3261 |
|
|
lt_cv_deplibs_check_method=pass_all |
3262 |
|
|
;; |
3263 |
|
|
sequent) |
3264 |
|
|
lt_cv_file_magic_cmd='/bin/file' |
3265 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
3266 |
|
|
;; |
3267 |
|
|
sni) |
3268 |
|
|
lt_cv_file_magic_cmd='/bin/file' |
3269 |
|
|
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
3270 |
|
|
lt_cv_file_magic_test_file=/lib/libc.so |
3271 |
|
|
;; |
3272 |
|
|
siemens) |
3273 |
|
|
lt_cv_deplibs_check_method=pass_all |
3274 |
|
|
;; |
3275 |
|
|
pc) |
3276 |
|
|
lt_cv_deplibs_check_method=pass_all |
3277 |
|
|
;; |
3278 |
|
|
esac |
3279 |
|
|
;; |
3280 |
|
|
|
3281 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3282 |
|
|
lt_cv_deplibs_check_method=pass_all |
3283 |
|
|
;; |
3284 |
|
|
esac |
3285 |
|
|
]) |
3286 |
|
|
file_magic_cmd=$lt_cv_file_magic_cmd |
3287 |
|
|
deplibs_check_method=$lt_cv_deplibs_check_method |
3288 |
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3289 |
|
|
])# AC_DEPLIBS_CHECK_METHOD |
3290 |
|
|
|
3291 |
|
|
|
3292 |
|
|
# AC_PROG_NM |
3293 |
|
|
# ---------- |
|