|
a/unac/aclocal.m4 |
|
b/unac/aclocal.m4 |
1 |
# aclocal.m4 generated automatically by aclocal 1.5
|
1 |
# generated automatically by aclocal 1.14 -*- Autoconf -*-
|
2 |
|
2 |
|
3 |
# Copyright 1996, 1997, 1998, 1999, 2000, 2001
|
3 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
4 |
# Free Software Foundation, Inc.
|
4 |
|
5 |
# This file is free software; the Free Software Foundation
|
5 |
# This file is free software; the Free Software Foundation
|
6 |
# gives unlimited permission to copy and/or distribute it,
|
6 |
# gives unlimited permission to copy and/or distribute it,
|
7 |
# with or without modifications, as long as this notice is preserved.
|
7 |
# with or without modifications, as long as this notice is preserved.
|
8 |
|
8 |
|
9 |
# This program is distributed in the hope that it will be useful,
|
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
|
10 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
11 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
11 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
12 |
# PARTICULAR PURPOSE.
|
12 |
# PARTICULAR PURPOSE.
|
13 |
|
13 |
|
14 |
dnl Copyright (C) 2000, 2001, 2002 Loic Dachary <loic@senga.org>
|
14 |
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
15 |
dnl
|
15 |
m4_ifndef([AC_AUTOCONF_VERSION],
|
16 |
dnl This program is free software; you can redistribute it and/or modify
|
16 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
17 |
dnl it under the terms of the GNU General Public License as published by
|
17 |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
18 |
dnl the Free Software Foundation; either version 2 of the License, or
|
18 |
[m4_warning([this file was generated for autoconf 2.69.
|
19 |
dnl (at your option) any later version.
|
19 |
You have another version of autoconf. It may work, but is not guaranteed to.
|
20 |
dnl
|
20 |
If you have problems, you may need to regenerate the build system entirely.
|
21 |
dnl This program is distributed in the hope that it will be useful,
|
21 |
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
22 |
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
23 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
24 |
dnl GNU General Public License for more details.
|
|
|
25 |
dnl
|
|
|
26 |
dnl You should have received a copy of the GNU General Public License
|
|
|
27 |
dnl along with this program; if not, write to the Free Software
|
|
|
28 |
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
29 |
dnl
|
|
|
30 |
dnl Local autoconf definitions. Try to follow the guidelines of the autoconf
|
|
|
31 |
dnl macro repository so that integration in the repository is easy.
|
|
|
32 |
dnl To submit a macro to the repository send the macro (one macro per mail)
|
|
|
33 |
dnl to Peter Simons <simons@cryp.to>.
|
|
|
34 |
dnl The repository itself is at httphttp://savannah.gnu.org/projects/ac-archive/
|
|
|
35 |
dnl
|
|
|
36 |
|
22 |
|
37 |
dnl @synopsis AC_MANDATORY_HEADER(HEADER-FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
23 |
# iconv.m4 serial 18 (gettext-0.18.2)
|
38 |
dnl
|
24 |
dnl Copyright (C) 2000-2002, 2007-2013 Free Software Foundation, Inc.
|
39 |
dnl Same semantic as AC_CHECK_HEADER except that it aborts the configuration
|
25 |
dnl This file is free software; the Free Software Foundation
|
40 |
dnl script if the header file is not found.
|
26 |
dnl gives unlimited permission to copy and/or distribute it,
|
41 |
dnl
|
27 |
dnl with or without modifications, as long as this notice is preserved.
|
42 |
dnl @version $Id: aclocal.m4,v 1.10 2002/09/02 10:51:42 loic Exp $
|
28 |
|
43 |
dnl @author Loic Dachary <loic@senga.org>
|
29 |
dnl From Bruno Haible.
|
44 |
dnl
|
30 |
|
45 |
AC_DEFUN([AC_MANDATORY_HEADER],
|
31 |
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
|
46 |
[dnl Do the transliteration at runtime so arg 1 can be a shell variable.
|
32 |
[
|
47 |
ac_safe=`echo "$1" | sed 'y%./+-%__p_%'`
|
33 |
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
|
48 |
AC_MSG_CHECKING([for $1])
|
34 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
49 |
AC_CACHE_VAL(ac_cv_header_$ac_safe,
|
35 |
AC_REQUIRE([AC_LIB_RPATH])
|
50 |
[AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_safe=yes",
|
36 |
|
51 |
eval "ac_cv_header_$ac_safe=no")])dnl
|
37 |
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
52 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
38 |
dnl accordingly.
|
53 |
AC_MSG_RESULT(yes)
|
39 |
AC_LIB_LINKFLAGS_BODY([iconv])
|
54 |
ifelse([$2], , :, [$2])
|
|
|
55 |
else
|
|
|
56 |
AC_MSG_ERROR(header not found check config.log)
|
|
|
57 |
ifelse([$3], , , [$3
|
|
|
58 |
])dnl
|
|
|
59 |
fi
|
|
|
60 |
])
|
40 |
])
|
61 |
|
41 |
|
62 |
dnl @synopsis AC_MANDATORY_HEADERS(HEADER-FILE... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
42 |
AC_DEFUN([AM_ICONV_LINK],
|
63 |
dnl
|
43 |
[
|
64 |
dnl Same semantic as AC_CHECK_HEADERS except that it aborts the configuration
|
44 |
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
|
65 |
dnl script if one of the headers file is not found.
|
45 |
dnl those with the standalone portable GNU libiconv installed).
|
66 |
dnl
|
46 |
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
|
67 |
dnl @version $Id: aclocal.m4,v 1.10 2002/09/02 10:51:42 loic Exp $
|
|
|
68 |
dnl @author Loic Dachary <loic@senga.org>
|
|
|
69 |
dnl
|
|
|
70 |
AC_DEFUN([AC_MANDATORY_HEADERS],
|
|
|
71 |
[for ac_hdr in $1
|
|
|
72 |
do
|
|
|
73 |
AC_MANDATORY_HEADER($ac_hdr,
|
|
|
74 |
[changequote(, )dnl
|
|
|
75 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
76 |
changequote([, ])dnl
|
|
|
77 |
AC_DEFINE_UNQUOTED($ac_tr_hdr) $2], $3)dnl
|
|
|
78 |
done
|
|
|
79 |
])
|
|
|
80 |
|
47 |
|
81 |
dnl @synopsis AC_MANDATORY_LIB(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
|
48 |
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
82 |
dnl
|
49 |
dnl accordingly.
|
83 |
dnl Same semantic as AC_CHECK_LIB except that it aborts the configuration
|
50 |
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
|
84 |
dnl script if the library is not found or compilation fails.
|
51 |
|
85 |
dnl
|
52 |
dnl Add $INCICONV to CPPFLAGS before performing the following checks,
|
86 |
dnl @version $Id: aclocal.m4,v 1.10 2002/09/02 10:51:42 loic Exp $
|
53 |
dnl because if the user has installed libiconv and not disabled its use
|
87 |
dnl @author Loic Dachary <loic@senga.org>
|
54 |
dnl via --without-libiconv-prefix, he wants to use it. The first
|
88 |
dnl
|
55 |
dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
|
89 |
AC_DEFUN([AC_MANDATORY_LIB],
|
56 |
am_save_CPPFLAGS="$CPPFLAGS"
|
90 |
[AC_MSG_CHECKING([for $2 in -l$1])
|
57 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
|
91 |
dnl Use a cache variable name containing both the library and function name,
|
58 |
|
92 |
dnl because the test really is for library $1 defining function $2, not
|
59 |
AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
|
93 |
dnl just for library $1. Separate tests with the same $1 and different $2s
|
60 |
am_cv_func_iconv="no, consider installing GNU libiconv"
|
94 |
dnl may have different results.
|
61 |
am_cv_lib_iconv=no
|
95 |
ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
|
62 |
AC_LINK_IFELSE(
|
96 |
AC_CACHE_VAL(ac_cv_lib_$ac_lib_var,
|
63 |
[AC_LANG_PROGRAM(
|
|
|
64 |
[[
|
|
|
65 |
#include <stdlib.h>
|
|
|
66 |
#include <iconv.h>
|
|
|
67 |
]],
|
|
|
68 |
[[iconv_t cd = iconv_open("","");
|
|
|
69 |
iconv(cd,NULL,NULL,NULL,NULL);
|
|
|
70 |
iconv_close(cd);]])],
|
|
|
71 |
[am_cv_func_iconv=yes])
|
|
|
72 |
if test "$am_cv_func_iconv" != yes; then
|
97 |
[ac_save_LIBS="$LIBS"
|
73 |
am_save_LIBS="$LIBS"
|
98 |
LIBS="-l$1 $5 $LIBS"
|
74 |
LIBS="$LIBS $LIBICONV"
|
99 |
AC_TRY_LINK(dnl
|
75 |
AC_LINK_IFELSE(
|
100 |
ifelse(AC_LANG, [FORTRAN77], ,
|
76 |
[AC_LANG_PROGRAM(
|
101 |
ifelse([$2], [main], , dnl Avoid conflicting decl of main.
|
77 |
[[
|
102 |
[/* Override any gcc2 internal prototype to avoid an error. */
|
78 |
#include <stdlib.h>
|
103 |
]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
|
79 |
#include <iconv.h>
|
104 |
extern "C"
|
80 |
]],
|
105 |
#endif
|
81 |
[[iconv_t cd = iconv_open("","");
|
106 |
])dnl
|
82 |
iconv(cd,NULL,NULL,NULL,NULL);
|
107 |
[/* We use char because int might match the return type of a gcc2
|
83 |
iconv_close(cd);]])],
|
108 |
builtin and then its argument prototype would still apply. */
|
84 |
[am_cv_lib_iconv=yes]
|
109 |
char $2();
|
85 |
[am_cv_func_iconv=yes])
|
110 |
])),
|
|
|
111 |
[$2()],
|
|
|
112 |
eval "ac_cv_lib_$ac_lib_var=yes",
|
|
|
113 |
eval "ac_cv_lib_$ac_lib_var=no")
|
|
|
114 |
LIBS="$ac_save_LIBS"
|
86 |
LIBS="$am_save_LIBS"
|
115 |
])dnl
|
|
|
116 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
117 |
AC_MSG_RESULT(yes)
|
|
|
118 |
ifelse([$3], ,
|
|
|
119 |
[changequote(, )dnl
|
|
|
120 |
ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
121 |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
122 |
changequote([, ])dnl
|
|
|
123 |
AC_DEFINE_UNQUOTED($ac_tr_lib)
|
|
|
124 |
LIBS="-l$1 $LIBS"
|
|
|
125 |
], [$3])
|
|
|
126 |
else
|
|
|
127 |
AC_MSG_ERROR(library not found check config.log)
|
|
|
128 |
ifelse([$4], , , [$4
|
|
|
129 |
])dnl
|
|
|
130 |
fi
|
|
|
131 |
])
|
|
|
132 |
|
|
|
133 |
dnl @synopsis AC_COMPILE_WARNINGS
|
|
|
134 |
dnl
|
|
|
135 |
dnl Set the maximum warning verbosity according to compiler used.
|
|
|
136 |
dnl Currently supports g++ and gcc.
|
|
|
137 |
dnl This macro must be put after AC_PROG_CC and AC_PROG_CXX in
|
|
|
138 |
dnl configure.in
|
|
|
139 |
dnl
|
|
|
140 |
dnl @version $Id: aclocal.m4,v 1.10 2002/09/02 10:51:42 loic Exp $
|
|
|
141 |
dnl @author Loic Dachary <loic@senga.org>
|
|
|
142 |
dnl
|
|
|
143 |
|
|
|
144 |
AC_DEFUN(AC_COMPILE_WARNINGS,
|
|
|
145 |
[AC_MSG_CHECKING(maximum warning verbosity option)
|
|
|
146 |
if test -n "$CXX"
|
|
|
147 |
then
|
|
|
148 |
if test "$GXX" = "yes"
|
|
|
149 |
then
|
|
|
150 |
ac_compile_warnings_opt='-Wall -Woverloaded-virtual'
|
|
|
151 |
fi
|
|
|
152 |
CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
|
|
|
153 |
ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
|
|
|
154 |
fi
|
|
|
155 |
|
|
|
156 |
if test -n "$CC"
|
|
|
157 |
then
|
|
|
158 |
if test "$GCC" = "yes"
|
|
|
159 |
then
|
|
|
160 |
ac_compile_warnings_opt='-Wall -Wmissing-declarations -Wmissing-prototypes'
|
|
|
161 |
fi
|
|
|
162 |
CFLAGS="$CFLAGS $ac_compile_warnings_opt"
|
|
|
163 |
ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
|
|
|
164 |
fi
|
|
|
165 |
AC_MSG_RESULT($ac_compile_warnings_msg)
|
|
|
166 |
unset ac_compile_warnings_msg
|
|
|
167 |
unset ac_compile_warnings_opt
|
|
|
168 |
])
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
# Do all the work for Automake. This macro actually does too much --
|
|
|
172 |
# some checks are only needed if your package does certain things.
|
|
|
173 |
# But this isn't really a big deal.
|
|
|
174 |
|
|
|
175 |
# serial 5
|
|
|
176 |
|
|
|
177 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
|
|
178 |
# written in clear, in which case automake, when reading aclocal.m4,
|
|
|
179 |
# will think it sees a *use*, and therefore will trigger all it's
|
|
|
180 |
# C support machinery. Also note that it means that autoscan, seeing
|
|
|
181 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
# We require 2.13 because we rely on SHELL being computed by configure.
|
|
|
185 |
AC_PREREQ([2.13])
|
|
|
186 |
|
|
|
187 |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
|
|
188 |
# -----------------------------------------------------------
|
|
|
189 |
# If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.
|
|
|
190 |
# The purpose of this macro is to provide the user with a means to
|
|
|
191 |
# check macros which are provided without letting her know how the
|
|
|
192 |
# information is coded.
|
|
|
193 |
# If this macro is not defined by Autoconf, define it here.
|
|
|
194 |
ifdef([AC_PROVIDE_IFELSE],
|
|
|
195 |
[],
|
|
|
196 |
[define([AC_PROVIDE_IFELSE],
|
|
|
197 |
[ifdef([AC_PROVIDE_$1],
|
|
|
198 |
[$2], [$3])])])
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
# AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
|
|
|
202 |
# ----------------------------------------------
|
|
|
203 |
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
|
204 |
[AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
|
205 |
# test to see if srcdir already configured
|
|
|
206 |
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
|
|
|
207 |
test -f $srcdir/config.status; then
|
|
|
208 |
AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
|
|
|
209 |
fi
|
|
|
210 |
|
|
|
211 |
# Define the identity of the package.
|
|
|
212 |
PACKAGE=$1
|
|
|
213 |
AC_SUBST(PACKAGE)dnl
|
|
|
214 |
VERSION=$2
|
|
|
215 |
AC_SUBST(VERSION)dnl
|
|
|
216 |
ifelse([$3],,
|
|
|
217 |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
|
|
218 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
|
|
|
219 |
|
|
|
220 |
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
|
|
|
221 |
# the ones we care about.
|
|
|
222 |
ifdef([m4_pattern_allow],
|
|
|
223 |
[m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl
|
|
|
224 |
|
|
|
225 |
# Autoconf 2.50 always computes EXEEXT. However we need to be
|
|
|
226 |
# compatible with 2.13, for now. So we always define EXEEXT, but we
|
|
|
227 |
# don't compute it.
|
|
|
228 |
AC_SUBST(EXEEXT)
|
|
|
229 |
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
|
|
|
230 |
# requests that it be used. This is a bit dumb.
|
|
|
231 |
: ${OBJEXT=o}
|
|
|
232 |
AC_SUBST(OBJEXT)
|
|
|
233 |
|
|
|
234 |
# Some tools Automake needs.
|
|
|
235 |
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
|
236 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
|
237 |
AM_MISSING_PROG(ACLOCAL, aclocal)
|
|
|
238 |
AM_MISSING_PROG(AUTOCONF, autoconf)
|
|
|
239 |
AM_MISSING_PROG(AUTOMAKE, automake)
|
|
|
240 |
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
|
|
241 |
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
|
|
242 |
AM_MISSING_PROG(AMTAR, tar)
|
|
|
243 |
AM_PROG_INSTALL_SH
|
|
|
244 |
AM_PROG_INSTALL_STRIP
|
|
|
245 |
# We need awk for the "check" target. The system "awk" is bad on
|
|
|
246 |
# some platforms.
|
|
|
247 |
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
|
248 |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
|
249 |
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
|
250 |
AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
|
251 |
AC_PROVIDE_IFELSE([AC_PROG_][CC],
|
|
|
252 |
[_AM_DEPENDENCIES(CC)],
|
|
|
253 |
[define([AC_PROG_][CC],
|
|
|
254 |
defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
|
|
|
255 |
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
|
|
|
256 |
[_AM_DEPENDENCIES(CXX)],
|
|
|
257 |
[define([AC_PROG_][CXX],
|
|
|
258 |
defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
|
|
259 |
])
|
|
|
260 |
|
|
|
261 |
#
|
|
|
262 |
# Check to make sure that the build environment is sane.
|
|
|
263 |
#
|
|
|
264 |
|
|
|
265 |
# serial 3
|
|
|
266 |
|
|
|
267 |
# AM_SANITY_CHECK
|
|
|
268 |
# ---------------
|
|
|
269 |
AC_DEFUN([AM_SANITY_CHECK],
|
|
|
270 |
[AC_MSG_CHECKING([whether build environment is sane])
|
|
|
271 |
# Just in case
|
|
|
272 |
sleep 1
|
|
|
273 |
echo timestamp > conftest.file
|
|
|
274 |
# Do `set' in a subshell so we don't clobber the current shell's
|
|
|
275 |
# arguments. Must try -L first in case configure is actually a
|
|
|
276 |
# symlink; some systems play weird games with the mod time of symlinks
|
|
|
277 |
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
|
278 |
# directory).
|
|
|
279 |
if (
|
|
|
280 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
|
|
281 |
if test "$[*]" = "X"; then
|
|
|
282 |
# -L didn't work.
|
|
|
283 |
set X `ls -t $srcdir/configure conftest.file`
|
|
|
284 |
fi
|
87 |
fi
|
285 |
rm -f conftest.file
|
|
|
286 |
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
|
287 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
|
288 |
|
|
|
289 |
# If neither matched, then we have a broken ls. This can happen
|
|
|
290 |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
|
291 |
# broken ls alias from the environment. This has actually
|
|
|
292 |
# happened. Such a system could not be considered "sane".
|
|
|
293 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
|
294 |
alias in your environment])
|
|
|
295 |
fi
|
|
|
296 |
|
|
|
297 |
test "$[2]" = conftest.file
|
|
|
298 |
)
|
88 |
])
|
299 |
then
|
89 |
if test "$am_cv_func_iconv" = yes; then
|
300 |
# Ok.
|
90 |
AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
|
301 |
:
|
91 |
dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
|
302 |
else
|
92 |
dnl Solaris 10.
|
303 |
AC_MSG_ERROR([newly created file is older than distributed files!
|
93 |
am_save_LIBS="$LIBS"
|
304 |
Check your system clock])
|
94 |
if test $am_cv_lib_iconv = yes; then
|
305 |
fi
|
95 |
LIBS="$LIBS $LIBICONV"
|
306 |
AC_MSG_RESULT(yes)])
|
|
|
307 |
|
|
|
308 |
|
|
|
309 |
# serial 2
|
|
|
310 |
|
|
|
311 |
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
|
312 |
# ------------------------------
|
|
|
313 |
AC_DEFUN([AM_MISSING_PROG],
|
|
|
314 |
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
|
315 |
$1=${$1-"${am_missing_run}$2"}
|
|
|
316 |
AC_SUBST($1)])
|
|
|
317 |
|
|
|
318 |
|
|
|
319 |
# AM_MISSING_HAS_RUN
|
|
|
320 |
# ------------------
|
|
|
321 |
# Define MISSING if not defined so far and test if it supports --run.
|
|
|
322 |
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
|
|
323 |
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
|
324 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
|
325 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
|
|
326 |
# Use eval to expand $SHELL
|
|
|
327 |
if eval "$MISSING --run true"; then
|
|
|
328 |
am_missing_run="$MISSING --run "
|
|
|
329 |
else
|
|
|
330 |
am_missing_run=
|
|
|
331 |
am_backtick='`'
|
|
|
332 |
AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
|
|
|
333 |
fi
|
|
|
334 |
])
|
|
|
335 |
|
|
|
336 |
# AM_AUX_DIR_EXPAND
|
|
|
337 |
|
|
|
338 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
|
339 |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
|
|
340 |
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
|
|
341 |
#
|
|
|
342 |
# Of course, Automake must honor this variable whenever it calls a
|
|
|
343 |
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
|
344 |
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
|
345 |
# depending on how configure is run. This is pretty annoying, since
|
|
|
346 |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
|
347 |
# source directory, any form will work fine, but in subdirectories a
|
|
|
348 |
# relative path needs to be adjusted first.
|
|
|
349 |
#
|
|
|
350 |
# $ac_aux_dir/missing
|
|
|
351 |
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
|
352 |
# $top_srcdir/$ac_aux_dir/missing
|
|
|
353 |
# fails if $ac_aux_dir is absolute,
|
|
|
354 |
# fails when called from a subdirectory in a VPATH build with
|
|
|
355 |
# a relative $ac_aux_dir
|
|
|
356 |
#
|
|
|
357 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
|
358 |
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
|
359 |
# harmless because $srcdir is `.', but things will broke when you
|
|
|
360 |
# start a VPATH build or use an absolute $srcdir.
|
|
|
361 |
#
|
|
|
362 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
|
363 |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
|
364 |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
|
365 |
# and then we would define $MISSING as
|
|
|
366 |
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
|
367 |
# This will work as long as MISSING is not called from configure, because
|
|
|
368 |
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
|
369 |
# However there are other variables, like CC, which are often used in
|
|
|
370 |
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
|
371 |
#
|
|
|
372 |
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
|
373 |
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
|
374 |
# configured tree to be moved without reconfiguration.
|
|
|
375 |
|
|
|
376 |
AC_DEFUN([AM_AUX_DIR_EXPAND], [
|
|
|
377 |
# expand $ac_aux_dir to an absolute path
|
|
|
378 |
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
|
|
|
379 |
])
|
|
|
380 |
|
|
|
381 |
# AM_PROG_INSTALL_SH
|
|
|
382 |
# ------------------
|
|
|
383 |
# Define $install_sh.
|
|
|
384 |
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
|
385 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
|
386 |
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
|
|
387 |
AC_SUBST(install_sh)])
|
|
|
388 |
|
|
|
389 |
# One issue with vendor `install' (even GNU) is that you can't
|
|
|
390 |
# specify the program used to strip binaries. This is especially
|
|
|
391 |
# annoying in cross-compiling environments, where the build's strip
|
|
|
392 |
# is unlikely to handle the host's binaries.
|
|
|
393 |
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
|
394 |
# always use install-sh in `make install-strip', and initialize
|
|
|
395 |
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
|
396 |
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
|
397 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
|
398 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
|
|
399 |
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
|
400 |
|
|
|
401 |
# serial 4 -*- Autoconf -*-
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
|
|
|
405 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
|
|
406 |
# written in clear, in which case automake, when reading aclocal.m4,
|
|
|
407 |
# will think it sees a *use*, and therefore will trigger all it's
|
|
|
408 |
# C support machinery. Also note that it means that autoscan, seeing
|
|
|
409 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
|
410 |
|
|
|
411 |
|
|
|
412 |
|
|
|
413 |
# _AM_DEPENDENCIES(NAME)
|
|
|
414 |
# ---------------------
|
|
|
415 |
# See how the compiler implements dependency checking.
|
|
|
416 |
# NAME is "CC", "CXX" or "OBJC".
|
|
|
417 |
# We try a few techniques and use that to set a single cache variable.
|
|
|
418 |
#
|
|
|
419 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|
|
420 |
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
|
421 |
# dependency, and given that the user is not expected to run this macro,
|
|
|
422 |
# just rely on AC_PROG_CC.
|
|
|
423 |
AC_DEFUN([_AM_DEPENDENCIES],
|
|
|
424 |
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
|
425 |
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
|
426 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
|
427 |
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
|
428 |
|
|
|
429 |
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
|
|
430 |
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
|
|
431 |
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
|
|
|
432 |
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
|
433 |
[depcc="$$1" am_compiler_list=])
|
|
|
434 |
|
|
|
435 |
AC_CACHE_CHECK([dependency style of $depcc],
|
|
|
436 |
[am_cv_$1_dependencies_compiler_type],
|
|
|
437 |
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
|
438 |
# We make a subdir and do the tests there. Otherwise we can end up
|
|
|
439 |
# making bogus files that we don't know about and never remove. For
|
|
|
440 |
# instance it was reported that on HP-UX the gcc test will end up
|
|
|
441 |
# making a dummy file named `D' -- because `-MD' means `put the output
|
|
|
442 |
# in D'.
|
|
|
443 |
mkdir conftest.dir
|
|
|
444 |
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
|
445 |
# using a relative directory.
|
|
|
446 |
cp "$am_depcomp" conftest.dir
|
|
|
447 |
cd conftest.dir
|
|
|
448 |
|
|
|
449 |
am_cv_$1_dependencies_compiler_type=none
|
|
|
450 |
if test "$am_compiler_list" = ""; then
|
|
|
451 |
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|
|
452 |
fi
|
|
|
453 |
for depmode in $am_compiler_list; do
|
|
|
454 |
# We need to recreate these files for each test, as the compiler may
|
|
|
455 |
# overwrite some of them when testing with obscure command lines.
|
|
|
456 |
# This happens at least with the AIX C compiler.
|
|
|
457 |
echo '#include "conftest.h"' > conftest.c
|
|
|
458 |
echo 'int i;' > conftest.h
|
|
|
459 |
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
|
|
|
460 |
|
|
|
461 |
case $depmode in
|
|
|
462 |
nosideeffect)
|
|
|
463 |
# after this tag, mechanisms are not by side-effect, so they'll
|
|
|
464 |
# only be used when explicitly requested
|
|
|
465 |
if test "x$enable_dependency_tracking" = xyes; then
|
|
|
466 |
continue
|
|
|
467 |
else
|
|
|
468 |
break
|
|
|
469 |
fi
|
96 |
fi
|
470 |
;;
|
97 |
AC_RUN_IFELSE(
|
471 |
none) break ;;
|
98 |
[AC_LANG_SOURCE([[
|
472 |
esac
|
|
|
473 |
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
|
|
474 |
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
|
475 |
# handle `-M -o', and we need to detect this.
|
|
|
476 |
if depmode=$depmode \
|
|
|
477 |
source=conftest.c object=conftest.o \
|
|
|
478 |
depfile=conftest.Po tmpdepfile=conftest.TPo \
|
|
|
479 |
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
|
|
|
480 |
grep conftest.h conftest.Po > /dev/null 2>&1 &&
|
|
|
481 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
|
482 |
am_cv_$1_dependencies_compiler_type=$depmode
|
|
|
483 |
break
|
|
|
484 |
fi
|
|
|
485 |
done
|
|
|
486 |
|
|
|
487 |
cd ..
|
|
|
488 |
rm -rf conftest.dir
|
|
|
489 |
else
|
|
|
490 |
am_cv_$1_dependencies_compiler_type=none
|
|
|
491 |
fi
|
|
|
492 |
])
|
|
|
493 |
$1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"
|
|
|
494 |
AC_SUBST([$1DEPMODE])
|
|
|
495 |
])
|
|
|
496 |
|
|
|
497 |
|
|
|
498 |
# AM_SET_DEPDIR
|
|
|
499 |
# -------------
|
|
|
500 |
# Choose a directory name for dependency files.
|
|
|
501 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
|
|
502 |
AC_DEFUN([AM_SET_DEPDIR],
|
|
|
503 |
[rm -f .deps 2>/dev/null
|
|
|
504 |
mkdir .deps 2>/dev/null
|
|
|
505 |
if test -d .deps; then
|
|
|
506 |
DEPDIR=.deps
|
|
|
507 |
else
|
|
|
508 |
# MS-DOS does not allow filenames that begin with a dot.
|
|
|
509 |
DEPDIR=_deps
|
|
|
510 |
fi
|
|
|
511 |
rmdir .deps 2>/dev/null
|
|
|
512 |
AC_SUBST(DEPDIR)
|
|
|
513 |
])
|
|
|
514 |
|
|
|
515 |
|
|
|
516 |
# AM_DEP_TRACK
|
|
|
517 |
# ------------
|
|
|
518 |
AC_DEFUN([AM_DEP_TRACK],
|
|
|
519 |
[AC_ARG_ENABLE(dependency-tracking,
|
|
|
520 |
[ --disable-dependency-tracking Speeds up one-time builds
|
|
|
521 |
--enable-dependency-tracking Do not reject slow dependency extractors])
|
|
|
522 |
if test "x$enable_dependency_tracking" != xno; then
|
|
|
523 |
am_depcomp="$ac_aux_dir/depcomp"
|
|
|
524 |
AMDEPBACKSLASH='\'
|
|
|
525 |
fi
|
|
|
526 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
|
527 |
pushdef([subst], defn([AC_SUBST]))
|
|
|
528 |
subst(AMDEPBACKSLASH)
|
|
|
529 |
popdef([subst])
|
|
|
530 |
])
|
|
|
531 |
|
|
|
532 |
# Generate code to set up dependency tracking.
|
|
|
533 |
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
|
534 |
# Usage:
|
|
|
535 |
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
|
536 |
|
|
|
537 |
#
|
|
|
538 |
# This code is only required when automatic dependency tracking
|
|
|
539 |
# is enabled. FIXME. This creates each `.P' file that we will
|
|
|
540 |
# need in order to bootstrap the dependency handling code.
|
|
|
541 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[
|
|
|
542 |
AC_OUTPUT_COMMANDS([
|
|
|
543 |
test x"$AMDEP_TRUE" != x"" ||
|
|
|
544 |
for mf in $CONFIG_FILES; do
|
|
|
545 |
case "$mf" in
|
|
|
546 |
Makefile) dirpart=.;;
|
|
|
547 |
*/Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
|
|
|
548 |
*) continue;;
|
|
|
549 |
esac
|
|
|
550 |
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
|
|
|
551 |
# Extract the definition of DEP_FILES from the Makefile without
|
|
|
552 |
# running `make'.
|
|
|
553 |
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
|
|
|
554 |
test -z "$DEPDIR" && continue
|
|
|
555 |
# When using ansi2knr, U may be empty or an underscore; expand it
|
|
|
556 |
U=`sed -n -e '/^U = / s///p' < "$mf"`
|
|
|
557 |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
|
|
|
558 |
# We invoke sed twice because it is the simplest approach to
|
|
|
559 |
# changing $(DEPDIR) to its actual value in the expansion.
|
|
|
560 |
for file in `sed -n -e '
|
|
|
561 |
/^DEP_FILES = .*\\\\$/ {
|
|
|
562 |
s/^DEP_FILES = //
|
|
|
563 |
:loop
|
|
|
564 |
s/\\\\$//
|
|
|
565 |
p
|
|
|
566 |
n
|
|
|
567 |
/\\\\$/ b loop
|
|
|
568 |
p
|
|
|
569 |
}
|
|
|
570 |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
|
|
|
571 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|
|
572 |
# Make sure the directory exists.
|
|
|
573 |
test -f "$dirpart/$file" && continue
|
|
|
574 |
fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
|
|
|
575 |
$ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
|
|
|
576 |
# echo "creating $dirpart/$file"
|
|
|
577 |
echo '# dummy' > "$dirpart/$file"
|
|
|
578 |
done
|
|
|
579 |
done
|
|
|
580 |
], [AMDEP_TRUE="$AMDEP_TRUE"
|
|
|
581 |
ac_aux_dir="$ac_aux_dir"])])
|
|
|
582 |
|
|
|
583 |
# AM_MAKE_INCLUDE()
|
|
|
584 |
# -----------------
|
|
|
585 |
# Check to see how make treats includes.
|
|
|
586 |
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
|
587 |
[am_make=${MAKE-make}
|
|
|
588 |
cat > confinc << 'END'
|
|
|
589 |
doit:
|
|
|
590 |
@echo done
|
|
|
591 |
END
|
|
|
592 |
# If we don't find an include directive, just comment out the code.
|
|
|
593 |
AC_MSG_CHECKING([for style of include used by $am_make])
|
|
|
594 |
am__include='#'
|
|
|
595 |
am__quote=
|
|
|
596 |
_am_result=none
|
|
|
597 |
# First try GNU make style include.
|
|
|
598 |
echo "include confinc" > confmf
|
|
|
599 |
# We grep out `Entering directory' and `Leaving directory'
|
|
|
600 |
# messages which can occur if `w' ends up in MAKEFLAGS.
|
|
|
601 |
# In particular we don't look at `^make:' because GNU make might
|
|
|
602 |
# be invoked under some other name (usually "gmake"), in which
|
|
|
603 |
# case it prints its new name instead of `make'.
|
|
|
604 |
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
|
|
|
605 |
am__include=include
|
|
|
606 |
am__quote=
|
|
|
607 |
_am_result=GNU
|
|
|
608 |
fi
|
|
|
609 |
# Now try BSD make style include.
|
|
|
610 |
if test "$am__include" = "#"; then
|
|
|
611 |
echo '.include "confinc"' > confmf
|
|
|
612 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
|
|
613 |
am__include=.include
|
|
|
614 |
am__quote='"'
|
|
|
615 |
_am_result=BSD
|
|
|
616 |
fi
|
|
|
617 |
fi
|
|
|
618 |
AC_SUBST(am__include)
|
|
|
619 |
AC_SUBST(am__quote)
|
|
|
620 |
AC_MSG_RESULT($_am_result)
|
|
|
621 |
rm -f confinc confmf
|
|
|
622 |
])
|
|
|
623 |
|
|
|
624 |
# serial 3
|
|
|
625 |
|
|
|
626 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
|
627 |
# -------------------------------------
|
|
|
628 |
# Define a conditional.
|
|
|
629 |
#
|
|
|
630 |
# FIXME: Once using 2.50, use this:
|
|
|
631 |
# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
|
632 |
AC_DEFUN([AM_CONDITIONAL],
|
|
|
633 |
[ifelse([$1], [TRUE],
|
|
|
634 |
[errprint(__file__:__line__: [$0: invalid condition: $1
|
|
|
635 |
])dnl
|
|
|
636 |
m4exit(1)])dnl
|
|
|
637 |
ifelse([$1], [FALSE],
|
|
|
638 |
[errprint(__file__:__line__: [$0: invalid condition: $1
|
|
|
639 |
])dnl
|
|
|
640 |
m4exit(1)])dnl
|
|
|
641 |
AC_SUBST([$1_TRUE])
|
|
|
642 |
AC_SUBST([$1_FALSE])
|
|
|
643 |
if $2; then
|
|
|
644 |
$1_TRUE=
|
|
|
645 |
$1_FALSE='#'
|
|
|
646 |
else
|
|
|
647 |
$1_TRUE='#'
|
|
|
648 |
$1_FALSE=
|
|
|
649 |
fi])
|
|
|
650 |
|
|
|
651 |
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
|
|
652 |
|
|
|
653 |
# serial 3
|
|
|
654 |
|
|
|
655 |
# When config.status generates a header, we must update the stamp-h file.
|
|
|
656 |
# This file resides in the same directory as the config header
|
|
|
657 |
# that is generated. We must strip everything past the first ":",
|
|
|
658 |
# and everything past the last "/".
|
|
|
659 |
|
|
|
660 |
AC_PREREQ([2.12])
|
|
|
661 |
|
|
|
662 |
AC_DEFUN([AM_CONFIG_HEADER],
|
|
|
663 |
[ifdef([AC_FOREACH],dnl
|
|
|
664 |
[dnl init our file count if it isn't already
|
|
|
665 |
m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))
|
|
|
666 |
dnl prepare to store our destination file list for use in config.status
|
|
|
667 |
AC_FOREACH([_AM_File], [$1],
|
|
|
668 |
[m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))
|
|
|
669 |
m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))
|
|
|
670 |
dnl and add it to the list of files AC keeps track of, along
|
|
|
671 |
dnl with our hook
|
|
|
672 |
AC_CONFIG_HEADERS(_AM_File,
|
|
|
673 |
dnl COMMANDS, [, INIT-CMDS]
|
|
|
674 |
[# update the timestamp
|
|
|
675 |
echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["
|
|
|
676 |
][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS
|
|
|
677 |
m4_popdef([_AM_Dest])])],dnl
|
|
|
678 |
[AC_CONFIG_HEADER([$1])
|
|
|
679 |
AC_OUTPUT_COMMANDS(
|
|
|
680 |
ifelse(patsubst([$1], [[^ ]], []),
|
|
|
681 |
[],
|
|
|
682 |
[test -z "$CONFIG_HEADERS" || echo timestamp >dnl
|
|
|
683 |
patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl
|
|
|
684 |
[am_indx=1
|
|
|
685 |
for am_file in $1; do
|
|
|
686 |
case " \$CONFIG_HEADERS " in
|
|
|
687 |
*" \$am_file "*)
|
|
|
688 |
am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
|
|
|
689 |
if test -n "\$am_dir"; then
|
|
|
690 |
am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
|
|
|
691 |
for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
|
|
|
692 |
am_tmpdir=\$am_tmpdir\$am_subdir/
|
|
|
693 |
if test ! -d \$am_tmpdir; then
|
|
|
694 |
mkdir \$am_tmpdir
|
|
|
695 |
fi
|
|
|
696 |
done
|
|
|
697 |
fi
|
|
|
698 |
echo timestamp > "\$am_dir"stamp-h\$am_indx
|
|
|
699 |
;;
|
|
|
700 |
esac
|
|
|
701 |
am_indx=\`expr \$am_indx + 1\`
|
|
|
702 |
done])
|
|
|
703 |
])]) # AM_CONFIG_HEADER
|
|
|
704 |
|
|
|
705 |
# _AM_DIRNAME(PATH)
|
|
|
706 |
# -----------------
|
|
|
707 |
# Like AS_DIRNAME, only do it during macro expansion
|
|
|
708 |
AC_DEFUN([_AM_DIRNAME],
|
|
|
709 |
[m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
|
|
|
710 |
m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,
|
|
|
711 |
m4_if(m4_regexp([$1], [^/.*]), -1,
|
|
|
712 |
[.],
|
|
|
713 |
m4_patsubst([$1], [^\(/\).*], [\1])),
|
|
|
714 |
m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
|
|
|
715 |
m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
|
|
|
716 |
]) # _AM_DIRNAME
|
|
|
717 |
|
|
|
718 |
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
|
|
|
719 |
|
|
|
720 |
# serial 46 AC_PROG_LIBTOOL
|
|
|
721 |
|
|
|
722 |
AC_DEFUN([AC_PROG_LIBTOOL],
|
|
|
723 |
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
|
|
724 |
|
|
|
725 |
# This can be used to rebuild libtool when needed
|
|
|
726 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
|
|
727 |
|
|
|
728 |
# Always use our own libtool.
|
|
|
729 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
|
730 |
AC_SUBST(LIBTOOL)dnl
|
|
|
731 |
|
|
|
732 |
# Prevent multiple expansion
|
|
|
733 |
define([AC_PROG_LIBTOOL], [])
|
|
|
734 |
])
|
|
|
735 |
|
|
|
736 |
AC_DEFUN([AC_LIBTOOL_SETUP],
|
|
|
737 |
[AC_PREREQ(2.13)dnl
|
|
|
738 |
AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
|
|
739 |
AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
|
|
740 |
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
|
|
741 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
742 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
|
743 |
AC_REQUIRE([AC_PROG_CC])dnl
|
|
|
744 |
AC_REQUIRE([AC_PROG_LD])dnl
|
|
|
745 |
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
|
|
|
746 |
AC_REQUIRE([AC_PROG_NM])dnl
|
|
|
747 |
AC_REQUIRE([LT_AC_PROG_SED])dnl
|
|
|
748 |
|
|
|
749 |
AC_REQUIRE([AC_PROG_LN_S])dnl
|
|
|
750 |
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
|
|
|
751 |
AC_REQUIRE([AC_OBJEXT])dnl
|
|
|
752 |
AC_REQUIRE([AC_EXEEXT])dnl
|
|
|
753 |
dnl
|
|
|
754 |
|
|
|
755 |
_LT_AC_PROG_ECHO_BACKSLASH
|
|
|
756 |
# Only perform the check for file, if the check method requires it
|
|
|
757 |
case $deplibs_check_method in
|
|
|
758 |
file_magic*)
|
|
|
759 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|
|
760 |
AC_PATH_MAGIC
|
|
|
761 |
fi
|
|
|
762 |
;;
|
|
|
763 |
esac
|
|
|
764 |
|
|
|
765 |
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
|
|
766 |
AC_CHECK_TOOL(STRIP, strip, :)
|
|
|
767 |
|
|
|
768 |
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
|
|
|
769 |
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
|
|
|
770 |
enable_win32_dll=yes, enable_win32_dll=no)
|
|
|
771 |
|
|
|
772 |
AC_ARG_ENABLE(libtool-lock,
|
|
|
773 |
[ --disable-libtool-lock avoid locking (might break parallel builds)])
|
|
|
774 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|
|
775 |
|
|
|
776 |
# Some flags need to be propagated to the compiler or linker for good
|
|
|
777 |
# libtool support.
|
|
|
778 |
case $host in
|
|
|
779 |
*-*-irix6*)
|
|
|
780 |
# Find out which ABI we are using.
|
|
|
781 |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
|
|
782 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
783 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
|
784 |
*32-bit*)
|
|
|
785 |
LD="${LD-ld} -32"
|
|
|
786 |
;;
|
|
|
787 |
*N32*)
|
|
|
788 |
LD="${LD-ld} -n32"
|
|
|
789 |
;;
|
|
|
790 |
*64-bit*)
|
|
|
791 |
LD="${LD-ld} -64"
|
|
|
792 |
;;
|
|
|
793 |
esac
|
|
|
794 |
fi
|
|
|
795 |
rm -rf conftest*
|
|
|
796 |
;;
|
|
|
797 |
|
|
|
798 |
*-*-sco3.2v5*)
|
|
|
799 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
|
800 |
SAVE_CFLAGS="$CFLAGS"
|
|
|
801 |
CFLAGS="$CFLAGS -belf"
|
|
|
802 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
|
|
803 |
[AC_LANG_SAVE
|
|
|
804 |
AC_LANG_C
|
|
|
805 |
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
|
|
806 |
AC_LANG_RESTORE])
|
|
|
807 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
|
808 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
|
809 |
CFLAGS="$SAVE_CFLAGS"
|
|
|
810 |
fi
|
|
|
811 |
;;
|
|
|
812 |
|
|
|
813 |
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
|
|
|
814 |
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
|
|
815 |
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|
|
816 |
AC_CHECK_TOOL(AS, as, false)
|
|
|
817 |
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
|
|
818 |
|
|
|
819 |
# recent cygwin and mingw systems supply a stub DllMain which the user
|
|
|
820 |
# can override, but on older systems we have to supply one
|
|
|
821 |
AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
|
|
|
822 |
[AC_TRY_LINK([],
|
|
|
823 |
[extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
|
|
|
824 |
DllMain (0, 0, 0);],
|
|
|
825 |
[lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
|
|
|
826 |
|
|
|
827 |
case $host/$CC in
|
|
|
828 |
*-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
|
|
|
829 |
# old mingw systems require "-dll" to link a DLL, while more recent ones
|
|
|
830 |
# require "-mdll"
|
|
|
831 |
SAVE_CFLAGS="$CFLAGS"
|
|
|
832 |
CFLAGS="$CFLAGS -mdll"
|
|
|
833 |
AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
|
|
|
834 |
[AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
|
|
|
835 |
CFLAGS="$SAVE_CFLAGS" ;;
|
|
|
836 |
*-*-cygwin* | *-*-pw32*)
|
|
|
837 |
# cygwin systems need to pass --dll to the linker, and not link
|
|
|
838 |
# crt.o which will require a WinMain@16 definition.
|
|
|
839 |
lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
|
|
|
840 |
esac
|
|
|
841 |
;;
|
|
|
842 |
])
|
|
|
843 |
esac
|
|
|
844 |
|
|
|
845 |
_LT_AC_LTCONFIG_HACK
|
|
|
846 |
|
|
|
847 |
])
|
|
|
848 |
|
|
|
849 |
# AC_LIBTOOL_HEADER_ASSERT
|
|
|
850 |
# ------------------------
|
|
|
851 |
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
|
|
|
852 |
[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
|
|
|
853 |
[lt_cv_func_assert_works],
|
|
|
854 |
[case $host in
|
|
|
855 |
*-*-solaris*)
|
|
|
856 |
if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
|
|
|
857 |
case `$CC --version 2>/dev/null` in
|
|
|
858 |
[[12]].*) lt_cv_func_assert_works=no ;;
|
|
|
859 |
*) lt_cv_func_assert_works=yes ;;
|
|
|
860 |
esac
|
|
|
861 |
fi
|
|
|
862 |
;;
|
|
|
863 |
esac])
|
|
|
864 |
|
|
|
865 |
if test "x$lt_cv_func_assert_works" = xyes; then
|
|
|
866 |
AC_CHECK_HEADERS(assert.h)
|
|
|
867 |
fi
|
|
|
868 |
])# AC_LIBTOOL_HEADER_ASSERT
|
|
|
869 |
|
|
|
870 |
# _LT_AC_CHECK_DLFCN
|
|
|
871 |
# --------------------
|
|
|
872 |
AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
|
|
873 |
[AC_CHECK_HEADERS(dlfcn.h)
|
|
|
874 |
])# _LT_AC_CHECK_DLFCN
|
|
|
875 |
|
|
|
876 |
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
|
|
877 |
# ---------------------------------
|
|
|
878 |
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
|
|
|
879 |
[AC_REQUIRE([AC_CANONICAL_HOST])
|
|
|
880 |
AC_REQUIRE([AC_PROG_NM])
|
|
|
881 |
AC_REQUIRE([AC_OBJEXT])
|
|
|
882 |
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
|
883 |
AC_MSG_CHECKING([command to parse $NM output])
|
|
|
884 |
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
|
|
|
885 |
|
|
|
886 |
# These are sane defaults that work on at least a few old systems.
|
|
|
887 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
|
|
888 |
|
|
|
889 |
# Character class describing NM global symbol codes.
|
|
|
890 |
symcode='[[BCDEGRST]]'
|
|
|
891 |
|
|
|
892 |
# Regexp to match symbols that can be accessed directly from C.
|
|
|
893 |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
|
|
894 |
|
|
|
895 |
# Transform the above into a raw symbol and a C symbol.
|
|
|
896 |
symxfrm='\1 \2\3 \3'
|
|
|
897 |
|
|
|
898 |
# Transform an extracted symbol line into a proper C declaration
|
|
|
899 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
|
|
|
900 |
|
|
|
901 |
# Transform an extracted symbol line into symbol name and symbol address
|
|
|
902 |
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|
|
903 |
|
|
|
904 |
# Define system-specific variables.
|
|
|
905 |
case $host_os in
|
|
|
906 |
aix*)
|
|
|
907 |
symcode='[[BCDT]]'
|
|
|
908 |
;;
|
|
|
909 |
cygwin* | mingw* | pw32*)
|
|
|
910 |
symcode='[[ABCDGISTW]]'
|
|
|
911 |
;;
|
|
|
912 |
hpux*) # Its linker distinguishes data from code symbols
|
|
|
913 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
914 |
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|
|
915 |
;;
|
|
|
916 |
irix* | nonstopux*)
|
|
|
917 |
symcode='[[BCDEGRST]]'
|
|
|
918 |
;;
|
|
|
919 |
solaris* | sysv5*)
|
|
|
920 |
symcode='[[BDT]]'
|
|
|
921 |
;;
|
|
|
922 |
sysv4)
|
|
|
923 |
symcode='[[DFNSTU]]'
|
|
|
924 |
;;
|
|
|
925 |
esac
|
|
|
926 |
|
|
|
927 |
# Handle CRLF in mingw tool chain
|
|
|
928 |
opt_cr=
|
|
|
929 |
case $host_os in
|
|
|
930 |
mingw*)
|
|
|
931 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|
|
932 |
;;
|
|
|
933 |
esac
|
|
|
934 |
|
|
|
935 |
# If we're using GNU nm, then use its standard symbol codes.
|
|
|
936 |
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
|
|
|
937 |
symcode='[[ABCDGISTW]]'
|
|
|
938 |
fi
|
|
|
939 |
|
|
|
940 |
# Try without a prefix undercore, then with it.
|
|
|
941 |
for ac_symprfx in "" "_"; do
|
|
|
942 |
|
|
|
943 |
# Write the raw and C identifiers.
|
|
|
944 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
|
|
|
945 |
|
|
|
946 |
# Check to see that the pipe works correctly.
|
|
|
947 |
pipe_works=no
|
|
|
948 |
rm -f conftest*
|
|
|
949 |
cat > conftest.$ac_ext <<EOF
|
|
|
950 |
#ifdef __cplusplus
|
|
|
951 |
extern "C" {
|
|
|
952 |
#endif
|
|
|
953 |
char nm_test_var;
|
|
|
954 |
void nm_test_func(){}
|
|
|
955 |
#ifdef __cplusplus
|
|
|
956 |
}
|
|
|
957 |
#endif
|
|
|
958 |
int main(){nm_test_var='a';nm_test_func();return(0);}
|
|
|
959 |
EOF
|
|
|
960 |
|
|
|
961 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
962 |
# Now try to grab the symbols.
|
|
|
963 |
nlist=conftest.nm
|
|
|
964 |
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
|
|
965 |
# Try sorting and uniquifying the output.
|
|
|
966 |
if sort "$nlist" | uniq > "$nlist"T; then
|
|
|
967 |
mv -f "$nlist"T "$nlist"
|
|
|
968 |
else
|
|
|
969 |
rm -f "$nlist"T
|
|
|
970 |
fi
|
|
|
971 |
|
|
|
972 |
# Make sure that we snagged all the symbols we need.
|
|
|
973 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
|
|
|
974 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
|
|
|
975 |
cat <<EOF > conftest.$ac_ext
|
|
|
976 |
#ifdef __cplusplus
|
|
|
977 |
extern "C" {
|
|
|
978 |
#endif
|
|
|
979 |
|
|
|
980 |
EOF
|
|
|
981 |
# Now generate the symbol file.
|
|
|
982 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
|
|
|
983 |
|
|
|
984 |
cat <<EOF >> conftest.$ac_ext
|
|
|
985 |
#if defined (__STDC__) && __STDC__
|
|
|
986 |
# define lt_ptr void *
|
|
|
987 |
#else
|
|
|
988 |
# define lt_ptr char *
|
|
|
989 |
# define const
|
|
|
990 |
#endif
|
|
|
991 |
|
|
|
992 |
/* The mapping between symbol names and symbols. */
|
|
|
993 |
const struct {
|
|
|
994 |
const char *name;
|
|
|
995 |
lt_ptr address;
|
|
|
996 |
}
|
|
|
997 |
lt_preloaded_symbols[[]] =
|
|
|
998 |
{
|
|
|
999 |
EOF
|
|
|
1000 |
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
|
|
|
1001 |
cat <<\EOF >> conftest.$ac_ext
|
|
|
1002 |
{0, (lt_ptr) 0}
|
|
|
1003 |
};
|
|
|
1004 |
|
|
|
1005 |
#ifdef __cplusplus
|
|
|
1006 |
}
|
|
|
1007 |
#endif
|
|
|
1008 |
EOF
|
|
|
1009 |
# Now try linking the two files.
|
|
|
1010 |
mv conftest.$ac_objext conftstm.$ac_objext
|
|
|
1011 |
save_LIBS="$LIBS"
|
|
|
1012 |
save_CFLAGS="$CFLAGS"
|
|
|
1013 |
LIBS="conftstm.$ac_objext"
|
|
|
1014 |
CFLAGS="$CFLAGS$no_builtin_flag"
|
|
|
1015 |
if AC_TRY_EVAL(ac_link) && test -s conftest; then
|
|
|
1016 |
pipe_works=yes
|
|
|
1017 |
fi
|
|
|
1018 |
LIBS="$save_LIBS"
|
|
|
1019 |
CFLAGS="$save_CFLAGS"
|
|
|
1020 |
else
|
|
|
1021 |
echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
|
|
|
1022 |
fi
|
|
|
1023 |
else
|
|
|
1024 |
echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
|
|
|
1025 |
fi
|
|
|
1026 |
else
|
|
|
1027 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
|
|
|
1028 |
fi
|
|
|
1029 |
else
|
|
|
1030 |
echo "$progname: failed program was:" >&AC_FD_CC
|
|
|
1031 |
cat conftest.$ac_ext >&5
|
|
|
1032 |
fi
|
|
|
1033 |
rm -f conftest* conftst*
|
|
|
1034 |
|
|
|
1035 |
# Do not use the global_symbol_pipe unless it works.
|
|
|
1036 |
if test "$pipe_works" = yes; then
|
|
|
1037 |
break
|
|
|
1038 |
else
|
|
|
1039 |
lt_cv_sys_global_symbol_pipe=
|
|
|
1040 |
fi
|
|
|
1041 |
done
|
|
|
1042 |
])
|
|
|
1043 |
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
|
|
|
1044 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
|
|
1045 |
global_symbol_to_cdecl=
|
|
|
1046 |
global_symbol_to_c_name_address=
|
|
|
1047 |
else
|
|
|
1048 |
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
|
|
|
1049 |
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
|
|
|
1050 |
fi
|
|
|
1051 |
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
|
|
|
1052 |
then
|
|
|
1053 |
AC_MSG_RESULT(failed)
|
|
|
1054 |
else
|
|
|
1055 |
AC_MSG_RESULT(ok)
|
|
|
1056 |
fi
|
|
|
1057 |
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
|
|
1058 |
|
|
|
1059 |
# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
|
|
|
1060 |
# ---------------------------------
|
|
|
1061 |
AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
|
|
|
1062 |
[# Find the correct PATH separator. Usually this is `:', but
|
|
|
1063 |
# DJGPP uses `;' like DOS.
|
|
|
1064 |
if test "X${PATH_SEPARATOR+set}" != Xset; then
|
|
|
1065 |
UNAME=${UNAME-`uname 2>/dev/null`}
|
|
|
1066 |
case X$UNAME in
|
|
|
1067 |
*-DOS) lt_cv_sys_path_separator=';' ;;
|
|
|
1068 |
*) lt_cv_sys_path_separator=':' ;;
|
|
|
1069 |
esac
|
|
|
1070 |
PATH_SEPARATOR=$lt_cv_sys_path_separator
|
|
|
1071 |
fi
|
|
|
1072 |
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
|
|
|
1073 |
|
|
|
1074 |
# _LT_AC_PROG_ECHO_BACKSLASH
|
|
|
1075 |
# --------------------------
|
|
|
1076 |
# Add some code to the start of the generated configure script which
|
|
|
1077 |
# will find an echo command which doesn't interpret backslashes.
|
|
|
1078 |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
|
|
|
1079 |
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
|
|
1080 |
[AC_DIVERT_PUSH(NOTICE)])
|
|
|
1081 |
_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
|
|
|
1082 |
|
|
|
1083 |
# Check that we are running under the correct shell.
|
|
|
1084 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
1085 |
|
|
|
1086 |
case X$ECHO in
|
|
|
1087 |
X*--fallback-echo)
|
|
|
1088 |
# Remove one level of quotation (which was required for Make).
|
|
|
1089 |
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
|
|
1090 |
;;
|
|
|
1091 |
esac
|
|
|
1092 |
|
|
|
1093 |
echo=${ECHO-echo}
|
|
|
1094 |
if test "X[$]1" = X--no-reexec; then
|
|
|
1095 |
# Discard the --no-reexec flag, and continue.
|
|
|
1096 |
shift
|
|
|
1097 |
elif test "X[$]1" = X--fallback-echo; then
|
|
|
1098 |
# Avoid inline document here, it may be left over
|
|
|
1099 |
:
|
|
|
1100 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
|
|
|
1101 |
# Yippee, $echo works!
|
|
|
1102 |
:
|
|
|
1103 |
else
|
|
|
1104 |
# Restart under the correct shell.
|
|
|
1105 |
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
|
|
1106 |
fi
|
|
|
1107 |
|
|
|
1108 |
if test "X[$]1" = X--fallback-echo; then
|
|
|
1109 |
# used as fallback echo
|
|
|
1110 |
shift
|
|
|
1111 |
cat <<EOF
|
|
|
1112 |
$*
|
|
|
1113 |
EOF
|
|
|
1114 |
exit 0
|
|
|
1115 |
fi
|
|
|
1116 |
|
|
|
1117 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
|
1118 |
# if CDPATH is set.
|
|
|
1119 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
|
|
|
1120 |
|
|
|
1121 |
if test -z "$ECHO"; then
|
|
|
1122 |
if test "X${echo_test_string+set}" != Xset; then
|
|
|
1123 |
# find a string as large as possible, as long as the shell can cope with it
|
|
|
1124 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
|
|
1125 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
|
|
1126 |
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
|
|
|
1127 |
echo_test_string="`eval $cmd`" &&
|
|
|
1128 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
|
|
1129 |
then
|
|
|
1130 |
break
|
|
|
1131 |
fi
|
|
|
1132 |
done
|
|
|
1133 |
fi
|
|
|
1134 |
|
|
|
1135 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
1136 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
|
|
1137 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
1138 |
:
|
|
|
1139 |
else
|
|
|
1140 |
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
|
|
1141 |
# backslashes. This makes it impossible to quote backslashes using
|
|
|
1142 |
# echo "$something" | sed 's/\\/\\\\/g'
|
|
|
1143 |
#
|
|
|
1144 |
# So, first we look for a working echo in the user's PATH.
|
|
|
1145 |
|
|
|
1146 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
1147 |
for dir in $PATH /usr/ucb; do
|
|
|
1148 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
|
|
1149 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
1150 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
|
|
1151 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
1152 |
echo="$dir/echo"
|
|
|
1153 |
break
|
|
|
1154 |
fi
|
|
|
1155 |
done
|
|
|
1156 |
IFS="$save_ifs"
|
|
|
1157 |
|
|
|
1158 |
if test "X$echo" = Xecho; then
|
|
|
1159 |
# We didn't find a better echo, so look for alternatives.
|
|
|
1160 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
1161 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
|
|
1162 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
1163 |
# This shell has a builtin print -r that does the trick.
|
|
|
1164 |
echo='print -r'
|
|
|
1165 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
|
|
1166 |
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
|
|
1167 |
# If we have ksh, try running configure again with it.
|
|
|
1168 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
1169 |
export ORIGINAL_CONFIG_SHELL
|
|
|
1170 |
CONFIG_SHELL=/bin/ksh
|
|
|
1171 |
export CONFIG_SHELL
|
|
|
1172 |
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
|
|
1173 |
else
|
|
|
1174 |
# Try using printf.
|
|
|
1175 |
echo='printf %s\n'
|
|
|
1176 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
1177 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
|
|
1178 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
1179 |
# Cool, printf works
|
|
|
1180 |
:
|
|
|
1181 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|
|
1182 |
test "X$echo_testing_string" = 'X\t' &&
|
|
|
1183 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
|
1184 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
1185 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
|
|
1186 |
export CONFIG_SHELL
|
|
|
1187 |
SHELL="$CONFIG_SHELL"
|
|
|
1188 |
export SHELL
|
|
|
1189 |
echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
|
|
1190 |
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|
|
1191 |
test "X$echo_testing_string" = 'X\t' &&
|
|
|
1192 |
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
|
1193 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
1194 |
echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
|
|
1195 |
else
|
|
|
1196 |
# maybe with a smaller string...
|
|
|
1197 |
prev=:
|
|
|
1198 |
|
|
|
1199 |
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
|
|
1200 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
|
|
1201 |
then
|
|
|
1202 |
break
|
|
|
1203 |
fi
|
|
|
1204 |
prev="$cmd"
|
|
|
1205 |
done
|
|
|
1206 |
|
|
|
1207 |
if test "$prev" != 'sed 50q "[$]0"'; then
|
|
|
1208 |
echo_test_string=`eval $prev`
|
|
|
1209 |
export echo_test_string
|
|
|
1210 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
|
|
1211 |
else
|
|
|
1212 |
# Oops. We lost completely, so just stick with echo.
|
|
|
1213 |
echo=echo
|
|
|
1214 |
fi
|
|
|
1215 |
fi
|
|
|
1216 |
fi
|
|
|
1217 |
fi
|
|
|
1218 |
fi
|
|
|
1219 |
fi
|
|
|
1220 |
|
|
|
1221 |
# Copy echo and quote the copy suitably for passing to libtool from
|
|
|
1222 |
# the Makefile, instead of quoting the original, which is used later.
|
|
|
1223 |
ECHO=$echo
|
|
|
1224 |
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
|
|
1225 |
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
|
|
1226 |
fi
|
|
|
1227 |
|
|
|
1228 |
AC_SUBST(ECHO)
|
|
|
1229 |
AC_DIVERT_POP
|
|
|
1230 |
])# _LT_AC_PROG_ECHO_BACKSLASH
|
|
|
1231 |
|
|
|
1232 |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
|
|
1233 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
|
|
1234 |
# ------------------------------------------------------------------
|
|
|
1235 |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
|
|
1236 |
[if test "$cross_compiling" = yes; then :
|
|
|
1237 |
[$4]
|
|
|
1238 |
else
|
|
|
1239 |
AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|
|
1240 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
1241 |
lt_status=$lt_dlunknown
|
|
|
1242 |
cat > conftest.$ac_ext <<EOF
|
|
|
1243 |
[#line __oline__ "configure"
|
|
|
1244 |
#include "confdefs.h"
|
|
|
1245 |
|
|
|
1246 |
#if HAVE_DLFCN_H
|
|
|
1247 |
#include <dlfcn.h>
|
99 |
#include <iconv.h>
|
1248 |
#endif
|
|
|
1249 |
|
|
|
1250 |
#include <stdio.h>
|
100 |
#include <string.h>
|
1251 |
|
|
|
1252 |
#ifdef RTLD_GLOBAL
|
|
|
1253 |
# define LT_DLGLOBAL RTLD_GLOBAL
|
|
|
1254 |
#else
|
|
|
1255 |
# ifdef DL_GLOBAL
|
|
|
1256 |
# define LT_DLGLOBAL DL_GLOBAL
|
|
|
1257 |
# else
|
|
|
1258 |
# define LT_DLGLOBAL 0
|
|
|
1259 |
# endif
|
|
|
1260 |
#endif
|
|
|
1261 |
|
|
|
1262 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|
|
1263 |
find out it does not work in some platform. */
|
|
|
1264 |
#ifndef LT_DLLAZY_OR_NOW
|
|
|
1265 |
# ifdef RTLD_LAZY
|
|
|
1266 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|
|
1267 |
# else
|
|
|
1268 |
# ifdef DL_LAZY
|
|
|
1269 |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
|
|
1270 |
# else
|
|
|
1271 |
# ifdef RTLD_NOW
|
|
|
1272 |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
|
|
1273 |
# else
|
|
|
1274 |
# ifdef DL_NOW
|
|
|
1275 |
# define LT_DLLAZY_OR_NOW DL_NOW
|
|
|
1276 |
# else
|
|
|
1277 |
# define LT_DLLAZY_OR_NOW 0
|
|
|
1278 |
# endif
|
|
|
1279 |
# endif
|
|
|
1280 |
# endif
|
|
|
1281 |
# endif
|
|
|
1282 |
#endif
|
|
|
1283 |
|
|
|
1284 |
#ifdef __cplusplus
|
|
|
1285 |
extern "C" void exit (int);
|
|
|
1286 |
#endif
|
|
|
1287 |
|
|
|
1288 |
void fnord() { int i=42;}
|
|
|
1289 |
int main ()
|
101 |
int main ()
|
1290 |
{
|
102 |
{
|
1291 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
103 |
int result = 0;
|
1292 |
int status = $lt_dlunknown;
|
104 |
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
|
1293 |
|
105 |
returns. */
|
1294 |
if (self)
|
106 |
{
|
|
|
107 |
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
|
|
|
108 |
if (cd_utf8_to_88591 != (iconv_t)(-1))
|
1295 |
{
|
109 |
{
|
1296 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
110 |
static const char input[] = "\342\202\254"; /* EURO SIGN */
|
1297 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
111 |
char buf[10];
|
1298 |
/* dlclose (self); */
|
112 |
const char *inptr = input;
|
|
|
113 |
size_t inbytesleft = strlen (input);
|
|
|
114 |
char *outptr = buf;
|
|
|
115 |
size_t outbytesleft = sizeof (buf);
|
|
|
116 |
size_t res = iconv (cd_utf8_to_88591,
|
|
|
117 |
(char **) &inptr, &inbytesleft,
|
|
|
118 |
&outptr, &outbytesleft);
|
|
|
119 |
if (res == 0)
|
|
|
120 |
result |= 1;
|
|
|
121 |
iconv_close (cd_utf8_to_88591);
|
1299 |
}
|
122 |
}
|
1300 |
|
123 |
}
|
1301 |
exit (status);
|
124 |
/* Test against Solaris 10 bug: Failures are not distinguishable from
|
1302 |
}]
|
125 |
successful returns. */
|
1303 |
EOF
|
126 |
{
|
1304 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
127 |
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
|
1305 |
(./conftest; exit; ) 2>/dev/null
|
128 |
if (cd_ascii_to_88591 != (iconv_t)(-1))
|
1306 |
lt_status=$?
|
129 |
{
|
1307 |
case x$lt_status in
|
130 |
static const char input[] = "\263";
|
1308 |
x$lt_dlno_uscore) $1 ;;
|
131 |
char buf[10];
|
1309 |
x$lt_dlneed_uscore) $2 ;;
|
132 |
const char *inptr = input;
|
1310 |
x$lt_unknown|x*) $3 ;;
|
133 |
size_t inbytesleft = strlen (input);
|
1311 |
esac
|
134 |
char *outptr = buf;
|
1312 |
else :
|
135 |
size_t outbytesleft = sizeof (buf);
|
1313 |
# compilation failed
|
136 |
size_t res = iconv (cd_ascii_to_88591,
|
1314 |
$3
|
137 |
(char **) &inptr, &inbytesleft,
|
1315 |
fi
|
138 |
&outptr, &outbytesleft);
|
1316 |
fi
|
139 |
if (res == 0)
|
1317 |
rm -fr conftest*
|
140 |
result |= 2;
|
1318 |
])# _LT_AC_TRY_DLOPEN_SELF
|
141 |
iconv_close (cd_ascii_to_88591);
|
1319 |
|
142 |
}
|
1320 |
# AC_LIBTOOL_DLOPEN_SELF
|
143 |
}
|
1321 |
# -------------------
|
144 |
/* Test against AIX 6.1..7.1 bug: Buffer overrun. */
|
1322 |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
145 |
{
|
1323 |
[if test "x$enable_dlopen" != xyes; then
|
146 |
iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
|
1324 |
enable_dlopen=unknown
|
147 |
if (cd_88591_to_utf8 != (iconv_t)(-1))
|
1325 |
enable_dlopen_self=unknown
|
148 |
{
|
1326 |
enable_dlopen_self_static=unknown
|
149 |
static const char input[] = "\304";
|
1327 |
else
|
150 |
static char buf[2] = { (char)0xDE, (char)0xAD };
|
1328 |
lt_cv_dlopen=no
|
151 |
const char *inptr = input;
|
1329 |
lt_cv_dlopen_libs=
|
152 |
size_t inbytesleft = 1;
|
1330 |
|
153 |
char *outptr = buf;
|
|
|
154 |
size_t outbytesleft = 1;
|
|
|
155 |
size_t res = iconv (cd_88591_to_utf8,
|
|
|
156 |
(char **) &inptr, &inbytesleft,
|
|
|
157 |
&outptr, &outbytesleft);
|
|
|
158 |
if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
|
|
|
159 |
result |= 4;
|
|
|
160 |
iconv_close (cd_88591_to_utf8);
|
|
|
161 |
}
|
|
|
162 |
}
|
|
|
163 |
#if 0 /* This bug could be worked around by the caller. */
|
|
|
164 |
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
|
|
|
165 |
{
|
|
|
166 |
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
|
|
|
167 |
if (cd_88591_to_utf8 != (iconv_t)(-1))
|
|
|
168 |
{
|
|
|
169 |
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
|
|
|
170 |
char buf[50];
|
|
|
171 |
const char *inptr = input;
|
|
|
172 |
size_t inbytesleft = strlen (input);
|
|
|
173 |
char *outptr = buf;
|
|
|
174 |
size_t outbytesleft = sizeof (buf);
|
|
|
175 |
size_t res = iconv (cd_88591_to_utf8,
|
|
|
176 |
(char **) &inptr, &inbytesleft,
|
|
|
177 |
&outptr, &outbytesleft);
|
|
|
178 |
if ((int)res > 0)
|
|
|
179 |
result |= 8;
|
|
|
180 |
iconv_close (cd_88591_to_utf8);
|
|
|
181 |
}
|
|
|
182 |
}
|
|
|
183 |
#endif
|
|
|
184 |
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
|
|
|
185 |
provided. */
|
|
|
186 |
if (/* Try standardized names. */
|
|
|
187 |
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
|
|
|
188 |
/* Try IRIX, OSF/1 names. */
|
|
|
189 |
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
|
|
|
190 |
/* Try AIX names. */
|
|
|
191 |
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
|
|
|
192 |
/* Try HP-UX names. */
|
|
|
193 |
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
|
|
|
194 |
result |= 16;
|
|
|
195 |
return result;
|
|
|
196 |
}]])],
|
|
|
197 |
[am_cv_func_iconv_works=yes],
|
|
|
198 |
[am_cv_func_iconv_works=no],
|
|
|
199 |
[
|
|
|
200 |
changequote(,)dnl
|
1331 |
case $host_os in
|
201 |
case "$host_os" in
|
1332 |
beos*)
|
202 |
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
|
1333 |
lt_cv_dlopen="load_add_on"
|
203 |
*) am_cv_func_iconv_works="guessing yes" ;;
|
1334 |
lt_cv_dlopen_libs=
|
204 |
esac
|
1335 |
lt_cv_dlopen_self=yes
|
205 |
changequote([,])dnl
|
1336 |
;;
|
|
|
1337 |
|
|
|
1338 |
cygwin* | mingw* | pw32*)
|
|
|
1339 |
lt_cv_dlopen="LoadLibrary"
|
|
|
1340 |
lt_cv_dlopen_libs=
|
|
|
1341 |
;;
|
|
|
1342 |
|
|
|
1343 |
*)
|
|
|
1344 |
AC_CHECK_FUNC([shl_load],
|
|
|
1345 |
[lt_cv_dlopen="shl_load"],
|
|
|
1346 |
[AC_CHECK_LIB([dld], [shl_load],
|
|
|
1347 |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
|
|
|
1348 |
[AC_CHECK_FUNC([dlopen],
|
|
|
1349 |
[lt_cv_dlopen="dlopen"],
|
|
|
1350 |
[AC_CHECK_LIB([dl], [dlopen],
|
|
|
1351 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
|
|
1352 |
[AC_CHECK_LIB([svld], [dlopen],
|
|
|
1353 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
|
|
1354 |
[AC_CHECK_LIB([dld], [dld_link],
|
|
|
1355 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
|
|
1356 |
])
|
|
|
1357 |
])
|
|
|
1358 |
])
|
|
|
1359 |
])
|
|
|
1360 |
])
|
206 |
])
|
1361 |
;;
|
207 |
LIBS="$am_save_LIBS"
|
1362 |
esac
|
|
|
1363 |
|
|
|
1364 |
if test "x$lt_cv_dlopen" != xno; then
|
|
|
1365 |
enable_dlopen=yes
|
|
|
1366 |
else
|
|
|
1367 |
enable_dlopen=no
|
|
|
1368 |
fi
|
|
|
1369 |
|
|
|
1370 |
case $lt_cv_dlopen in
|
|
|
1371 |
dlopen)
|
|
|
1372 |
save_CPPFLAGS="$CPPFLAGS"
|
|
|
1373 |
AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|
|
1374 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
|
|
1375 |
|
|
|
1376 |
save_LDFLAGS="$LDFLAGS"
|
|
|
1377 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
|
1378 |
|
|
|
1379 |
save_LIBS="$LIBS"
|
|
|
1380 |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
|
|
1381 |
|
|
|
1382 |
AC_CACHE_CHECK([whether a program can dlopen itself],
|
|
|
1383 |
lt_cv_dlopen_self, [dnl
|
|
|
1384 |
_LT_AC_TRY_DLOPEN_SELF(
|
|
|
1385 |
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
|
|
1386 |
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
|
|
1387 |
])
|
208 |
])
|
1388 |
|
209 |
case "$am_cv_func_iconv_works" in
|
1389 |
if test "x$lt_cv_dlopen_self" = xyes; then
|
210 |
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
|
1390 |
LDFLAGS="$LDFLAGS $link_static_flag"
|
211 |
*) am_func_iconv=yes ;;
|
1391 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
|
|
1392 |
lt_cv_dlopen_self_static, [dnl
|
|
|
1393 |
_LT_AC_TRY_DLOPEN_SELF(
|
|
|
1394 |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
|
|
1395 |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
|
|
1396 |
])
|
|
|
1397 |
fi
|
|
|
1398 |
|
|
|
1399 |
CPPFLAGS="$save_CPPFLAGS"
|
|
|
1400 |
LDFLAGS="$save_LDFLAGS"
|
|
|
1401 |
LIBS="$save_LIBS"
|
|
|
1402 |
;;
|
|
|
1403 |
esac
|
|
|
1404 |
|
|
|
1405 |
case $lt_cv_dlopen_self in
|
|
|
1406 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
|
|
1407 |
*) enable_dlopen_self=unknown ;;
|
|
|
1408 |
esac
|
|
|
1409 |
|
|
|
1410 |
case $lt_cv_dlopen_self_static in
|
|
|
1411 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
|
|
1412 |
*) enable_dlopen_self_static=unknown ;;
|
|
|
1413 |
esac
|
|
|
1414 |
fi
|
|
|
1415 |
])# AC_LIBTOOL_DLOPEN_SELF
|
|
|
1416 |
|
|
|
1417 |
AC_DEFUN([_LT_AC_LTCONFIG_HACK],
|
|
|
1418 |
[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
|
|
|
1419 |
# Sed substitution that helps us do robust quoting. It backslashifies
|
|
|
1420 |
# metacharacters that are still active within double-quoted strings.
|
|
|
1421 |
Xsed='sed -e s/^X//'
|
|
|
1422 |
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
|
|
|
1423 |
|
|
|
1424 |
# Same as above, but do not quote variable references.
|
|
|
1425 |
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
|
|
|
1426 |
|
|
|
1427 |
# Sed substitution to delay expansion of an escaped shell variable in a
|
|
|
1428 |
# double_quote_subst'ed string.
|
|
|
1429 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
|
|
1430 |
|
|
|
1431 |
# Constants:
|
|
|
1432 |
rm="rm -f"
|
|
|
1433 |
|
|
|
1434 |
# Global variables:
|
|
|
1435 |
default_ofile=libtool
|
|
|
1436 |
can_build_shared=yes
|
|
|
1437 |
|
|
|
1438 |
# All known linkers require a `.a' archive for static linking (except M$VC,
|
|
|
1439 |
# which needs '.lib').
|
|
|
1440 |
libext=a
|
|
|
1441 |
ltmain="$ac_aux_dir/ltmain.sh"
|
|
|
1442 |
ofile="$default_ofile"
|
|
|
1443 |
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
|
|
1444 |
need_locks="$enable_libtool_lock"
|
|
|
1445 |
|
|
|
1446 |
old_CC="$CC"
|
|
|
1447 |
old_CFLAGS="$CFLAGS"
|
|
|
1448 |
|
|
|
1449 |
# Set sane defaults for various variables
|
|
|
1450 |
test -z "$AR" && AR=ar
|
|
|
1451 |
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
1452 |
test -z "$AS" && AS=as
|
|
|
1453 |
test -z "$CC" && CC=cc
|
|
|
1454 |
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
|
1455 |
test -z "$LD" && LD=ld
|
|
|
1456 |
test -z "$LN_S" && LN_S="ln -s"
|
|
|
1457 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
|
|
1458 |
test -z "$NM" && NM=nm
|
|
|
1459 |
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
|
1460 |
test -z "$RANLIB" && RANLIB=:
|
|
|
1461 |
test -z "$STRIP" && STRIP=:
|
|
|
1462 |
test -z "$ac_objext" && ac_objext=o
|
|
|
1463 |
|
|
|
1464 |
if test x"$host" != x"$build"; then
|
|
|
1465 |
ac_tool_prefix=${host_alias}-
|
|
|
1466 |
else
|
|
|
1467 |
ac_tool_prefix=
|
|
|
1468 |
fi
|
|
|
1469 |
|
|
|
1470 |
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
|
|
1471 |
case $host_os in
|
|
|
1472 |
linux-gnu*) ;;
|
|
|
1473 |
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
|
|
1474 |
esac
|
|
|
1475 |
|
|
|
1476 |
case $host_os in
|
|
|
1477 |
aix3*)
|
|
|
1478 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
1479 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
1480 |
# vanish in a puff of smoke.
|
|
|
1481 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
|
1482 |
COLLECT_NAMES=
|
|
|
1483 |
export COLLECT_NAMES
|
|
|
1484 |
fi
|
|
|
1485 |
;;
|
|
|
1486 |
esac
|
|
|
1487 |
|
|
|
1488 |
# Determine commands to create old-style static archives.
|
|
|
1489 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
|
|
1490 |
old_postinstall_cmds='chmod 644 $oldlib'
|
|
|
1491 |
old_postuninstall_cmds=
|
|
|
1492 |
|
|
|
1493 |
if test -n "$RANLIB"; then
|
|
|
1494 |
case $host_os in
|
|
|
1495 |
openbsd*)
|
|
|
1496 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
|
|
|
1497 |
;;
|
|
|
1498 |
*)
|
|
|
1499 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
|
|
|
1500 |
;;
|
|
|
1501 |
esac
|
|
|
1502 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
|
1503 |
fi
|
|
|
1504 |
|
|
|
1505 |
# Allow CC to be a program name with arguments.
|
|
|
1506 |
set dummy $CC
|
|
|
1507 |
compiler="[$]2"
|
|
|
1508 |
|
|
|
1509 |
AC_MSG_CHECKING([for objdir])
|
|
|
1510 |
rm -f .libs 2>/dev/null
|
|
|
1511 |
mkdir .libs 2>/dev/null
|
|
|
1512 |
if test -d .libs; then
|
|
|
1513 |
objdir=.libs
|
|
|
1514 |
else
|
|
|
1515 |
# MS-DOS does not allow filenames that begin with a dot.
|
|
|
1516 |
objdir=_libs
|
|
|
1517 |
fi
|
|
|
1518 |
rmdir .libs 2>/dev/null
|
|
|
1519 |
AC_MSG_RESULT($objdir)
|
|
|
1520 |
|
|
|
1521 |
|
|
|
1522 |
AC_ARG_WITH(pic,
|
|
|
1523 |
[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
|
|
|
1524 |
pic_mode="$withval", pic_mode=default)
|
|
|
1525 |
test -z "$pic_mode" && pic_mode=default
|
|
|
1526 |
|
|
|
1527 |
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
|
|
|
1528 |
# in isolation, and that seeing it set (from the cache) indicates that
|
|
|
1529 |
# the associated values are set (in the cache) correctly too.
|
|
|
1530 |
AC_MSG_CHECKING([for $compiler option to produce PIC])
|
|
|
1531 |
AC_CACHE_VAL(lt_cv_prog_cc_pic,
|
|
|
1532 |
[ lt_cv_prog_cc_pic=
|
|
|
1533 |
lt_cv_prog_cc_shlib=
|
|
|
1534 |
lt_cv_prog_cc_wl=
|
|
|
1535 |
lt_cv_prog_cc_static=
|
|
|
1536 |
lt_cv_prog_cc_no_builtin=
|
|
|
1537 |
lt_cv_prog_cc_can_build_shared=$can_build_shared
|
|
|
1538 |
|
|
|
1539 |
if test "$GCC" = yes; then
|
|
|
1540 |
lt_cv_prog_cc_wl='-Wl,'
|
|
|
1541 |
lt_cv_prog_cc_static='-static'
|
|
|
1542 |
|
|
|
1543 |
case $host_os in
|
|
|
1544 |
aix*)
|
|
|
1545 |
# Below there is a dirty hack to force normal static linking with -ldl
|
|
|
1546 |
# The problem is because libdl dynamically linked with both libc and
|
|
|
1547 |
# libC (AIX C++ library), which obviously doesn't included in libraries
|
|
|
1548 |
# list by gcc. This cause undefined symbols with -static flags.
|
|
|
1549 |
# This hack allows C programs to be linked with "-static -ldl", but
|
|
|
1550 |
# not sure about C++ programs.
|
|
|
1551 |
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
|
|
|
1552 |
;;
|
|
|
1553 |
amigaos*)
|
|
|
1554 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
|
1555 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
|
|
1556 |
# like `-m68040'.
|
|
|
1557 |
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
|
|
|
1558 |
;;
|
|
|
1559 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
|
1560 |
# PIC is the default for these OSes.
|
|
|
1561 |
;;
|
|
|
1562 |
darwin* | rhapsody*)
|
|
|
1563 |
# PIC is the default on this platform
|
|
|
1564 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
1565 |
lt_cv_prog_cc_pic='-fno-common'
|
|
|
1566 |
;;
|
|
|
1567 |
cygwin* | mingw* | pw32* | os2*)
|
|
|
1568 |
# This hack is so that the source file can tell whether it is being
|
|
|
1569 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
1570 |
lt_cv_prog_cc_pic='-DDLL_EXPORT'
|
|
|
1571 |
;;
|
|
|
1572 |
sysv4*MP*)
|
|
|
1573 |
if test -d /usr/nec; then
|
|
|
1574 |
lt_cv_prog_cc_pic=-Kconform_pic
|
|
|
1575 |
fi
|
|
|
1576 |
;;
|
|
|
1577 |
*)
|
|
|
1578 |
lt_cv_prog_cc_pic='-fPIC'
|
|
|
1579 |
;;
|
|
|
1580 |
esac
|
212 |
esac
|
1581 |
else
|
213 |
else
|
1582 |
# PORTME Check for PIC flags for the system compiler.
|
214 |
am_func_iconv=no am_cv_lib_iconv=no
|
1583 |
case $host_os in
|
215 |
fi
|
1584 |
aix3* | aix4* | aix5*)
|
216 |
if test "$am_func_iconv" = yes; then
|
1585 |
lt_cv_prog_cc_wl='-Wl,'
|
217 |
AC_DEFINE([HAVE_ICONV], [1],
|
1586 |
# All AIX code is PIC.
|
218 |
[Define if you have the iconv() function and it works.])
|
1587 |
if test "$host_cpu" = ia64; then
|
219 |
fi
|
1588 |
# AIX 5 now supports IA64 processor
|
220 |
if test "$am_cv_lib_iconv" = yes; then
|
1589 |
lt_cv_prog_cc_static='-Bstatic'
|
221 |
AC_MSG_CHECKING([how to link with libiconv])
|
|
|
222 |
AC_MSG_RESULT([$LIBICONV])
|
1590 |
else
|
223 |
else
|
1591 |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
|
224 |
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
|
|
|
225 |
dnl either.
|
|
|
226 |
CPPFLAGS="$am_save_CPPFLAGS"
|
|
|
227 |
LIBICONV=
|
|
|
228 |
LTLIBICONV=
|
|
|
229 |
fi
|
|
|
230 |
AC_SUBST([LIBICONV])
|
|
|
231 |
AC_SUBST([LTLIBICONV])
|
|
|
232 |
])
|
|
|
233 |
|
|
|
234 |
dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
|
|
|
235 |
dnl avoid warnings like
|
|
|
236 |
dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
|
|
|
237 |
dnl This is tricky because of the way 'aclocal' is implemented:
|
|
|
238 |
dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
|
|
|
239 |
dnl Otherwise aclocal's initial scan pass would miss the macro definition.
|
|
|
240 |
dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
|
|
|
241 |
dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
|
|
|
242 |
dnl warnings.
|
|
|
243 |
m4_define([gl_iconv_AC_DEFUN],
|
|
|
244 |
m4_version_prereq([2.64],
|
|
|
245 |
[[AC_DEFUN_ONCE(
|
|
|
246 |
[$1], [$2])]],
|
|
|
247 |
[m4_ifdef([gl_00GNULIB],
|
|
|
248 |
[[AC_DEFUN_ONCE(
|
|
|
249 |
[$1], [$2])]],
|
|
|
250 |
[[AC_DEFUN(
|
|
|
251 |
[$1], [$2])]])]))
|
|
|
252 |
gl_iconv_AC_DEFUN([AM_ICONV],
|
|
|
253 |
[
|
|
|
254 |
AM_ICONV_LINK
|
|
|
255 |
if test "$am_cv_func_iconv" = yes; then
|
|
|
256 |
AC_MSG_CHECKING([for iconv declaration])
|
|
|
257 |
AC_CACHE_VAL([am_cv_proto_iconv], [
|
|
|
258 |
AC_COMPILE_IFELSE(
|
|
|
259 |
[AC_LANG_PROGRAM(
|
|
|
260 |
[[
|
|
|
261 |
#include <stdlib.h>
|
|
|
262 |
#include <iconv.h>
|
|
|
263 |
extern
|
|
|
264 |
#ifdef __cplusplus
|
|
|
265 |
"C"
|
|
|
266 |
#endif
|
|
|
267 |
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
|
|
|
268 |
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
|
|
269 |
#else
|
|
|
270 |
size_t iconv();
|
|
|
271 |
#endif
|
|
|
272 |
]],
|
|
|
273 |
[[]])],
|
|
|
274 |
[am_cv_proto_iconv_arg1=""],
|
|
|
275 |
[am_cv_proto_iconv_arg1="const"])
|
|
|
276 |
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
|
|
|
277 |
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
|
|
278 |
AC_MSG_RESULT([
|
|
|
279 |
$am_cv_proto_iconv])
|
|
|
280 |
AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
|
|
|
281 |
[Define as const if the declaration of iconv() needs const.])
|
|
|
282 |
dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
|
|
|
283 |
m4_ifdef([gl_ICONV_H_DEFAULTS],
|
|
|
284 |
[AC_REQUIRE([gl_ICONV_H_DEFAULTS])
|
|
|
285 |
if test -n "$am_cv_proto_iconv_arg1"; then
|
|
|
286 |
ICONV_CONST="const"
|
1592 |
fi
|
287 |
fi
|
1593 |
;;
|
288 |
])
|
1594 |
|
|
|
1595 |
hpux9* | hpux10* | hpux11*)
|
|
|
1596 |
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
|
|
|
1597 |
lt_cv_prog_cc_wl='-Wl,'
|
|
|
1598 |
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
|
|
|
1599 |
lt_cv_prog_cc_pic='+Z'
|
|
|
1600 |
;;
|
|
|
1601 |
|
|
|
1602 |
irix5* | irix6* | nonstopux*)
|
|
|
1603 |
lt_cv_prog_cc_wl='-Wl,'
|
|
|
1604 |
lt_cv_prog_cc_static='-non_shared'
|
|
|
1605 |
# PIC (with -KPIC) is the default.
|
|
|
1606 |
;;
|
|
|
1607 |
|
|
|
1608 |
cygwin* | mingw* | pw32* | os2*)
|
|
|
1609 |
# This hack is so that the source file can tell whether it is being
|
|
|
1610 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
1611 |
lt_cv_prog_cc_pic='-DDLL_EXPORT'
|
|
|
1612 |
;;
|
|
|
1613 |
|
|
|
1614 |
newsos6)
|
|
|
1615 |
lt_cv_prog_cc_pic='-KPIC'
|
|
|
1616 |
lt_cv_prog_cc_static='-Bstatic'
|
|
|
1617 |
;;
|
|
|
1618 |
|
|
|
1619 |
osf3* | osf4* | osf5*)
|
|
|
1620 |
# All OSF/1 code is PIC.
|
|
|
1621 |
lt_cv_prog_cc_wl='-Wl,'
|
|
|
1622 |
lt_cv_prog_cc_static='-non_shared'
|
|
|
1623 |
;;
|
|
|
1624 |
|
|
|
1625 |
sco3.2v5*)
|
|
|
1626 |
lt_cv_prog_cc_pic='-Kpic'
|
|
|
1627 |
lt_cv_prog_cc_static='-dn'
|
|
|
1628 |
lt_cv_prog_cc_shlib='-belf'
|
|
|
1629 |
;;
|
|
|
1630 |
|
|
|
1631 |
solaris*)
|
|
|
1632 |
lt_cv_prog_cc_pic='-KPIC'
|
|
|
1633 |
lt_cv_prog_cc_static='-Bstatic'
|
|
|
1634 |
lt_cv_prog_cc_wl='-Wl,'
|
|
|
1635 |
;;
|
|
|
1636 |
|
|
|
1637 |
sunos4*)
|
|
|
1638 |
lt_cv_prog_cc_pic='-PIC'
|
|
|
1639 |
lt_cv_prog_cc_static='-Bstatic'
|
|
|
1640 |
lt_cv_prog_cc_wl='-Qoption ld '
|
|
|
1641 |
;;
|
|
|
1642 |
|
|
|
1643 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
|
1644 |
lt_cv_prog_cc_pic='-KPIC'
|
|
|
1645 |
lt_cv_prog_cc_static='-Bstatic'
|
|
|
1646 |
lt_cv_prog_cc_wl='-Wl,'
|
|
|
1647 |
;;
|
|
|
1648 |
|
|
|
1649 |
uts4*)
|
|
|
1650 |
lt_cv_prog_cc_pic='-pic'
|
|
|
1651 |
lt_cv_prog_cc_static='-Bstatic'
|
|
|
1652 |
;;
|
|
|
1653 |
|
|
|
1654 |
sysv4*MP*)
|
|
|
1655 |
if test -d /usr/nec ;then
|
|
|
1656 |
lt_cv_prog_cc_pic='-Kconform_pic'
|
|
|
1657 |
lt_cv_prog_cc_static='-Bstatic'
|
|
|
1658 |
fi
|
|
|
1659 |
;;
|
|
|
1660 |
|
|
|
1661 |
*)
|
|
|
1662 |
lt_cv_prog_cc_can_build_shared=no
|
|
|
1663 |
;;
|
|
|
1664 |
esac
|
|
|
1665 |
fi
|
289 |
fi
|
1666 |
])
|
290 |
])
|
1667 |
if test -z "$lt_cv_prog_cc_pic"; then
|
|
|
1668 |
AC_MSG_RESULT([none])
|
|
|
1669 |
else
|
|
|
1670 |
AC_MSG_RESULT([$lt_cv_prog_cc_pic])
|
|
|
1671 |
|
291 |
|
1672 |
# Check to make sure the pic_flag actually works.
|
292 |
# lib-ld.m4 serial 6
|
1673 |
AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
|
293 |
dnl Copyright (C) 1996-2003, 2009-2013 Free Software Foundation, Inc.
|
1674 |
AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
|
294 |
dnl This file is free software; the Free Software Foundation
|
1675 |
save_CFLAGS="$CFLAGS"
|
295 |
dnl gives unlimited permission to copy and/or distribute it,
|
1676 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
|
296 |
dnl with or without modifications, as long as this notice is preserved.
|
1677 |
AC_TRY_COMPILE([], [], [dnl
|
|
|
1678 |
case $host_os in
|
|
|
1679 |
hpux9* | hpux10* | hpux11*)
|
|
|
1680 |
# On HP-UX, both CC and GCC only warn that PIC is supported... then
|
|
|
1681 |
# they create non-PIC objects. So, if there were any warnings, we
|
|
|
1682 |
# assume that PIC is not supported.
|
|
|
1683 |
if test -s conftest.err; then
|
|
|
1684 |
lt_cv_prog_cc_pic_works=no
|
|
|
1685 |
else
|
|
|
1686 |
lt_cv_prog_cc_pic_works=yes
|
|
|
1687 |
fi
|
|
|
1688 |
;;
|
|
|
1689 |
*)
|
|
|
1690 |
lt_cv_prog_cc_pic_works=yes
|
|
|
1691 |
;;
|
|
|
1692 |
esac
|
|
|
1693 |
], [dnl
|
|
|
1694 |
lt_cv_prog_cc_pic_works=no
|
|
|
1695 |
])
|
|
|
1696 |
CFLAGS="$save_CFLAGS"
|
|
|
1697 |
])
|
|
|
1698 |
|
297 |
|
1699 |
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
|
298 |
dnl Subroutines of libtool.m4,
|
1700 |
lt_cv_prog_cc_pic=
|
299 |
dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid
|
1701 |
lt_cv_prog_cc_can_build_shared=no
|
300 |
dnl collision with libtool.m4.
|
1702 |
else
|
|
|
1703 |
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
|
|
|
1704 |
fi
|
|
|
1705 |
|
301 |
|
1706 |
AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
|
302 |
dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no.
|
1707 |
fi
|
303 |
AC_DEFUN([AC_LIB_PROG_LD_GNU],
|
1708 |
|
304 |
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
|
1709 |
# Check for any special shared library compilation flags.
|
305 |
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
1710 |
if test -n "$lt_cv_prog_cc_shlib"; then
|
306 |
case `$LD -v 2>&1 </dev/null` in
|
1711 |
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
|
307 |
*GNU* | *'with BFD'*)
|
1712 |
if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
|
308 |
acl_cv_prog_gnu_ld=yes
|
1713 |
else
|
|
|
1714 |
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
|
|
|
1715 |
lt_cv_prog_cc_can_build_shared=no
|
|
|
1716 |
fi
|
|
|
1717 |
fi
|
|
|
1718 |
|
|
|
1719 |
AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
|
|
|
1720 |
AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
|
|
|
1721 |
lt_cv_prog_cc_static_works=no
|
|
|
1722 |
save_LDFLAGS="$LDFLAGS"
|
|
|
1723 |
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
|
|
|
1724 |
AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
|
|
|
1725 |
LDFLAGS="$save_LDFLAGS"
|
|
|
1726 |
])
|
|
|
1727 |
|
|
|
1728 |
# Belt *and* braces to stop my trousers falling down:
|
|
|
1729 |
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
|
|
|
1730 |
AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
|
|
|
1731 |
|
|
|
1732 |
pic_flag="$lt_cv_prog_cc_pic"
|
|
|
1733 |
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
|
|
|
1734 |
wl="$lt_cv_prog_cc_wl"
|
|
|
1735 |
link_static_flag="$lt_cv_prog_cc_static"
|
|
|
1736 |
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
|
|
|
1737 |
can_build_shared="$lt_cv_prog_cc_can_build_shared"
|
|
|
1738 |
|
|
|
1739 |
|
|
|
1740 |
# Check to see if options -o and -c are simultaneously supported by compiler
|
|
|
1741 |
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
|
|
|
1742 |
AC_CACHE_VAL([lt_cv_compiler_c_o], [
|
|
|
1743 |
$rm -r conftest 2>/dev/null
|
|
|
1744 |
mkdir conftest
|
|
|
1745 |
cd conftest
|
|
|
1746 |
echo "int some_variable = 0;" > conftest.$ac_ext
|
|
|
1747 |
mkdir out
|
|
|
1748 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
|
|
|
1749 |
# that will create temporary files in the current directory regardless of
|
|
|
1750 |
# the output directory. Thus, making CWD read-only will cause this test
|
|
|
1751 |
# to fail, enabling locking or at least warning the user not to do parallel
|
|
|
1752 |
# builds.
|
|
|
1753 |
chmod -w .
|
|
|
1754 |
save_CFLAGS="$CFLAGS"
|
|
|
1755 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
|
|
|
1756 |
compiler_c_o=no
|
|
|
1757 |
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
|
|
|
1758 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
1759 |
# So say no if there are warnings
|
|
|
1760 |
if test -s out/conftest.err; then
|
|
|
1761 |
lt_cv_compiler_c_o=no
|
|
|
1762 |
else
|
|
|
1763 |
lt_cv_compiler_c_o=yes
|
|
|
1764 |
fi
|
|
|
1765 |
else
|
|
|
1766 |
# Append any errors to the config.log.
|
|
|
1767 |
cat out/conftest.err 1>&AC_FD_CC
|
|
|
1768 |
lt_cv_compiler_c_o=no
|
|
|
1769 |
fi
|
|
|
1770 |
CFLAGS="$save_CFLAGS"
|
|
|
1771 |
chmod u+w .
|
|
|
1772 |
$rm conftest* out/*
|
|
|
1773 |
rmdir out
|
|
|
1774 |
cd ..
|
|
|
1775 |
rmdir conftest
|
|
|
1776 |
$rm -r conftest 2>/dev/null
|
|
|
1777 |
])
|
|
|
1778 |
compiler_c_o=$lt_cv_compiler_c_o
|
|
|
1779 |
AC_MSG_RESULT([$compiler_c_o])
|
|
|
1780 |
|
|
|
1781 |
if test x"$compiler_c_o" = x"yes"; then
|
|
|
1782 |
# Check to see if we can write to a .lo
|
|
|
1783 |
AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
|
|
|
1784 |
AC_CACHE_VAL([lt_cv_compiler_o_lo], [
|
|
|
1785 |
lt_cv_compiler_o_lo=no
|
|
|
1786 |
save_CFLAGS="$CFLAGS"
|
|
|
1787 |
CFLAGS="$CFLAGS -c -o conftest.lo"
|
|
|
1788 |
save_objext="$ac_objext"
|
|
|
1789 |
ac_objext=lo
|
|
|
1790 |
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
|
|
|
1791 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
1792 |
# So say no if there are warnings
|
|
|
1793 |
if test -s conftest.err; then
|
|
|
1794 |
lt_cv_compiler_o_lo=no
|
|
|
1795 |
else
|
|
|
1796 |
lt_cv_compiler_o_lo=yes
|
|
|
1797 |
fi
|
|
|
1798 |
])
|
|
|
1799 |
ac_objext="$save_objext"
|
|
|
1800 |
CFLAGS="$save_CFLAGS"
|
|
|
1801 |
])
|
|
|
1802 |
compiler_o_lo=$lt_cv_compiler_o_lo
|
|
|
1803 |
AC_MSG_RESULT([$compiler_o_lo])
|
|
|
1804 |
else
|
|
|
1805 |
compiler_o_lo=no
|
|
|
1806 |
fi
|
|
|
1807 |
|
|
|
1808 |
# Check to see if we can do hard links to lock some files if needed
|
|
|
1809 |
hard_links="nottested"
|
|
|
1810 |
if test "$compiler_c_o" = no && test "$need_locks" != no; then
|
|
|
1811 |
# do not overwrite the value of need_locks provided by the user
|
|
|
1812 |
AC_MSG_CHECKING([if we can lock with hard links])
|
|
|
1813 |
hard_links=yes
|
|
|
1814 |
$rm conftest*
|
|
|
1815 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
1816 |
touch conftest.a
|
|
|
1817 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
|
1818 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
1819 |
AC_MSG_RESULT([$hard_links])
|
|
|
1820 |
if test "$hard_links" = no; then
|
|
|
1821 |
AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
|
|
|
1822 |
need_locks=warn
|
|
|
1823 |
fi
|
|
|
1824 |
else
|
|
|
1825 |
need_locks=no
|
|
|
1826 |
fi
|
|
|
1827 |
|
|
|
1828 |
if test "$GCC" = yes; then
|
|
|
1829 |
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
|
|
|
1830 |
AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
|
|
|
1831 |
echo "int some_variable = 0;" > conftest.$ac_ext
|
|
|
1832 |
save_CFLAGS="$CFLAGS"
|
|
|
1833 |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
|
|
|
1834 |
compiler_rtti_exceptions=no
|
|
|
1835 |
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
|
|
|
1836 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
1837 |
# So say no if there are warnings
|
|
|
1838 |
if test -s conftest.err; then
|
|
|
1839 |
compiler_rtti_exceptions=no
|
|
|
1840 |
else
|
|
|
1841 |
compiler_rtti_exceptions=yes
|
|
|
1842 |
fi
|
|
|
1843 |
])
|
|
|
1844 |
CFLAGS="$save_CFLAGS"
|
|
|
1845 |
AC_MSG_RESULT([$compiler_rtti_exceptions])
|
|
|
1846 |
|
|
|
1847 |
if test "$compiler_rtti_exceptions" = "yes"; then
|
|
|
1848 |
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
|
|
|
1849 |
else
|
|
|
1850 |
no_builtin_flag=' -fno-builtin'
|
|
|
1851 |
fi
|
|
|
1852 |
fi
|
|
|
1853 |
|
|
|
1854 |
# See if the linker supports building shared libraries.
|
|
|
1855 |
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
|
|
|
1856 |
|
|
|
1857 |
allow_undefined_flag=
|
|
|
1858 |
no_undefined_flag=
|
|
|
1859 |
need_lib_prefix=unknown
|
|
|
1860 |
need_version=unknown
|
|
|
1861 |
# when you set need_version to no, make sure it does not cause -set_version
|
|
|
1862 |
# flags to be left without arguments
|
|
|
1863 |
archive_cmds=
|
|
|
1864 |
archive_expsym_cmds=
|
|
|
1865 |
old_archive_from_new_cmds=
|
|
|
1866 |
old_archive_from_expsyms_cmds=
|
|
|
1867 |
export_dynamic_flag_spec=
|
|
|
1868 |
whole_archive_flag_spec=
|
|
|
1869 |
thread_safe_flag_spec=
|
|
|
1870 |
hardcode_into_libs=no
|
|
|
1871 |
hardcode_libdir_flag_spec=
|
|
|
1872 |
hardcode_libdir_separator=
|
|
|
1873 |
hardcode_direct=no
|
|
|
1874 |
hardcode_minus_L=no
|
|
|
1875 |
hardcode_shlibpath_var=unsupported
|
|
|
1876 |
runpath_var=
|
|
|
1877 |
link_all_deplibs=unknown
|
|
|
1878 |
always_export_symbols=no
|
|
|
1879 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
1880 |
# include_expsyms should be a list of space-separated symbols to be *always*
|
|
|
1881 |
# included in the symbol list
|
|
|
1882 |
include_expsyms=
|
|
|
1883 |
# exclude_expsyms can be an egrep regular expression of symbols to exclude
|
|
|
1884 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
|
|
1885 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
|
|
1886 |
# as well as any symbol that contains `d'.
|
|
|
1887 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
|
|
|
1888 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|
|
1889 |
# platforms (ab)use it in PIC code, but their linkers get confused if
|
|
|
1890 |
# the symbol is explicitly referenced. Since portable code cannot
|
|
|
1891 |
# rely on this symbol name, it's probably fine to never include it in
|
|
|
1892 |
# preloaded symbol tables.
|
|
|
1893 |
extract_expsyms_cmds=
|
|
|
1894 |
|
|
|
1895 |
case $host_os in
|
|
|
1896 |
cygwin* | mingw* | pw32*)
|
|
|
1897 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|
|
1898 |
# When not using gcc, we currently assume that we are using
|
|
|
1899 |
# Microsoft Visual C++.
|
|
|
1900 |
if test "$GCC" != yes; then
|
|
|
1901 |
with_gnu_ld=no
|
|
|
1902 |
fi
|
|
|
1903 |
;;
|
309 |
;;
|
1904 |
openbsd*)
|
|
|
1905 |
with_gnu_ld=no
|
|
|
1906 |
;;
|
|
|
1907 |
esac
|
|
|
1908 |
|
|
|
1909 |
ld_shlibs=yes
|
|
|
1910 |
if test "$with_gnu_ld" = yes; then
|
|
|
1911 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
|
1912 |
wlarc='${wl}'
|
|
|
1913 |
|
|
|
1914 |
# See if GNU ld supports shared libraries.
|
|
|
1915 |
case $host_os in
|
|
|
1916 |
aix3* | aix4* | aix5*)
|
|
|
1917 |
# On AIX, the GNU linker is very broken
|
|
|
1918 |
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
|
|
|
1919 |
ld_shlibs=no
|
|
|
1920 |
cat <<EOF 1>&2
|
|
|
1921 |
|
|
|
1922 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
|
|
1923 |
*** to be unable to reliably create shared libraries on AIX.
|
|
|
1924 |
*** Therefore, libtool is disabling shared libraries support. If you
|
|
|
1925 |
*** really care for shared libraries, you may want to modify your PATH
|
|
|
1926 |
*** so that a non-GNU linker is found, and then restart.
|
|
|
1927 |
|
|
|
1928 |
EOF
|
|
|
1929 |
;;
|
|
|
1930 |
|
|
|
1931 |
amigaos*)
|
|
|
1932 |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|
|
1933 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
1934 |
hardcode_minus_L=yes
|
|
|
1935 |
|
|
|
1936 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
|
|
1937 |
# that the semantics of dynamic libraries on AmigaOS, at least up
|
|
|
1938 |
# to version 4, is to share data among multiple programs linked
|
|
|
1939 |
# with the same dynamic library. Since this doesn't match the
|
|
|
1940 |
# behavior of shared libraries on other platforms, we can use
|
|
|
1941 |
# them.
|
|
|
1942 |
ld_shlibs=no
|
|
|
1943 |
;;
|
|
|
1944 |
|
|
|
1945 |
beos*)
|
|
|
1946 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
|
1947 |
allow_undefined_flag=unsupported
|
|
|
1948 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
|
1949 |
# support --undefined. This deserves some investigation. FIXME
|
|
|
1950 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
1951 |
else
|
|
|
1952 |
ld_shlibs=no
|
|
|
1953 |
fi
|
|
|
1954 |
;;
|
|
|
1955 |
|
|
|
1956 |
cygwin* | mingw* | pw32*)
|
|
|
1957 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
|
1958 |
# no search path for DLLs.
|
|
|
1959 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
1960 |
allow_undefined_flag=unsupported
|
|
|
1961 |
always_export_symbols=yes
|
|
|
1962 |
|
|
|
1963 |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
|
|
|
1964 |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
|
|
|
1965 |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
|
|
|
1966 |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
|
|
|
1967 |
else $CC -o impgen impgen.c ; fi)~
|
|
|
1968 |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
|
|
|
1969 |
|
|
|
1970 |
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
|
|
|
1971 |
|
|
|
1972 |
# cygwin and mingw dlls have different entry points and sets of symbols
|
|
|
1973 |
# to exclude.
|
|
|
1974 |
# FIXME: what about values for MSVC?
|
|
|
1975 |
dll_entry=__cygwin_dll_entry@12
|
|
|
1976 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
|
|
|
1977 |
case $host_os in
|
|
|
1978 |
mingw*)
|
|
|
1979 |
# mingw values
|
|
|
1980 |
dll_entry=_DllMainCRTStartup@12
|
|
|
1981 |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
|
|
|
1982 |
;;
|
|
|
1983 |
esac
|
|
|
1984 |
|
|
|
1985 |
# mingw and cygwin differ, and it's simplest to just exclude the union
|
|
|
1986 |
# of the two symbol sets.
|
|
|
1987 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
|
|
|
1988 |
|
|
|
1989 |
# recent cygwin and mingw systems supply a stub DllMain which the user
|
|
|
1990 |
# can override, but on older systems we have to supply one (in ltdll.c)
|
|
|
1991 |
if test "x$lt_cv_need_dllmain" = "xyes"; then
|
|
|
1992 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
|
|
|
1993 |
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
|
|
|
1994 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
|
|
|
1995 |
else
|
|
|
1996 |
ltdll_obj=
|
|
|
1997 |
ltdll_cmds=
|
|
|
1998 |
fi
|
|
|
1999 |
|
|
|
2000 |
# Extract the symbol export list from an `--export-all' def file,
|
|
|
2001 |
# then regenerate the def file from the symbol export list, so that
|
|
|
2002 |
# the compiled dll only exports the symbol export list.
|
|
|
2003 |
# Be careful not to strip the DATA tag left be newer dlltools.
|
|
|
2004 |
export_symbols_cmds="$ltdll_cmds"'
|
|
|
2005 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
|
|
|
2006 |
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
|
|
|
2007 |
|
|
|
2008 |
# If the export-symbols file already is a .def file (1st line
|
|
|
2009 |
# is EXPORTS), use it as is.
|
|
|
2010 |
# If DATA tags from a recent dlltool are present, honour them!
|
|
|
2011 |
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
|
|
|
2012 |
cp $export_symbols $output_objdir/$soname-def;
|
|
|
2013 |
else
|
|
|
2014 |
echo EXPORTS > $output_objdir/$soname-def;
|
|
|
2015 |
_lt_hint=1;
|
|
|
2016 |
cat $export_symbols | while read symbol; do
|
|
|
2017 |
set dummy \$symbol;
|
|
|
2018 |
case \[$]# in
|
|
|
2019 |
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
|
|
|
2020 |
4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
|
|
|
2021 |
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
|
|
|
2022 |
esac;
|
|
|
2023 |
_lt_hint=`expr 1 + \$_lt_hint`;
|
|
|
2024 |
done;
|
|
|
2025 |
fi~
|
|
|
2026 |
'"$ltdll_cmds"'
|
|
|
2027 |
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
|
|
|
2028 |
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
|
|
|
2029 |
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
|
|
|
2030 |
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
|
|
|
2031 |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
|
|
|
2032 |
;;
|
|
|
2033 |
|
|
|
2034 |
netbsd*)
|
|
|
2035 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
2036 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
|
2037 |
wlarc=
|
|
|
2038 |
else
|
|
|
2039 |
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
2040 |
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
2041 |
fi
|
|
|
2042 |
;;
|
|
|
2043 |
|
|
|
2044 |
solaris* | sysv5*)
|
|
|
2045 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
|
|
|
2046 |
ld_shlibs=no
|
|
|
2047 |
cat <<EOF 1>&2
|
|
|
2048 |
|
|
|
2049 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|
|
2050 |
*** create shared libraries on Solaris systems. Therefore, libtool
|
|
|
2051 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
2052 |
*** binutils to release 2.9.1 or newer. Another option is to modify
|
|
|
2053 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
2054 |
*** used, and then restart.
|
|
|
2055 |
|
|
|
2056 |
EOF
|
|
|
2057 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
|
2058 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
2059 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
2060 |
else
|
|
|
2061 |
ld_shlibs=no
|
|
|
2062 |
fi
|
|
|
2063 |
;;
|
|
|
2064 |
|
|
|
2065 |
sunos4*)
|
|
|
2066 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2067 |
wlarc=
|
|
|
2068 |
hardcode_direct=yes
|
|
|
2069 |
hardcode_shlibpath_var=no
|
|
|
2070 |
;;
|
|
|
2071 |
|
|
|
2072 |
*)
|
|
|
2073 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
|
2074 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
2075 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
2076 |
else
|
|
|
2077 |
ld_shlibs=no
|
|
|
2078 |
fi
|
|
|
2079 |
;;
|
|
|
2080 |
esac
|
|
|
2081 |
|
|
|
2082 |
if test "$ld_shlibs" = yes; then
|
|
|
2083 |
runpath_var=LD_RUN_PATH
|
|
|
2084 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
|
|
|
2085 |
export_dynamic_flag_spec='${wl}--export-dynamic'
|
|
|
2086 |
case $host_os in
|
|
|
2087 |
cygwin* | mingw* | pw32*)
|
|
|
2088 |
# dlltool doesn't understand --whole-archive et. al.
|
|
|
2089 |
whole_archive_flag_spec=
|
|
|
2090 |
;;
|
|
|
2091 |
*)
|
|
|
2092 |
# ancient GNU ld didn't support --whole-archive et. al.
|
|
|
2093 |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
|
|
|
2094 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
2095 |
else
|
|
|
2096 |
whole_archive_flag_spec=
|
|
|
2097 |
fi
|
|
|
2098 |
;;
|
|
|
2099 |
esac
|
|
|
2100 |
fi
|
|
|
2101 |
else
|
|
|
2102 |
# PORTME fill in a description of your system's linker (not GNU ld)
|
|
|
2103 |
case $host_os in
|
|
|
2104 |
aix3*)
|
|
|
2105 |
allow_undefined_flag=unsupported
|
|
|
2106 |
always_export_symbols=yes
|
|
|
2107 |
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
|
|
2108 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
|
|
2109 |
# are no directories specified by -L.
|
|
|
2110 |
hardcode_minus_L=yes
|
|
|
2111 |
if test "$GCC" = yes && test -z "$link_static_flag"; then
|
|
|
2112 |
# Neither direct hardcoding nor static linking is supported with a
|
|
|
2113 |
# broken collect2.
|
|
|
2114 |
hardcode_direct=unsupported
|
|
|
2115 |
fi
|
|
|
2116 |
;;
|
|
|
2117 |
|
|
|
2118 |
aix4* | aix5*)
|
|
|
2119 |
if test "$host_cpu" = ia64; then
|
|
|
2120 |
# On IA64, the linker does run time linking by default, so we don't
|
|
|
2121 |
# have to do anything special.
|
|
|
2122 |
aix_use_runtimelinking=no
|
|
|
2123 |
exp_sym_flag='-Bexport'
|
|
|
2124 |
no_entry_flag=""
|
|
|
2125 |
else
|
|
|
2126 |
aix_use_runtimelinking=no
|
|
|
2127 |
|
|
|
2128 |
# Test if we are trying to use run time linking or normal
|
|
|
2129 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
|
2130 |
# need to do runtime linking.
|
|
|
2131 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
|
|
2132 |
for ld_flag in $LDFLAGS; do
|
|
|
2133 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
|
|
2134 |
aix_use_runtimelinking=yes
|
|
|
2135 |
break
|
|
|
2136 |
fi
|
|
|
2137 |
done
|
|
|
2138 |
esac
|
|
|
2139 |
|
|
|
2140 |
exp_sym_flag='-bexport'
|
|
|
2141 |
no_entry_flag='-bnoentry'
|
|
|
2142 |
fi
|
|
|
2143 |
|
|
|
2144 |
# When large executables or shared objects are built, AIX ld can
|
|
|
2145 |
# have problems creating the table of contents. If linking a library
|
|
|
2146 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
|
2147 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
|
2148 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
2149 |
|
|
|
2150 |
hardcode_direct=yes
|
|
|
2151 |
archive_cmds=''
|
|
|
2152 |
hardcode_libdir_separator=':'
|
|
|
2153 |
if test "$GCC" = yes; then
|
|
|
2154 |
case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
|
|
2155 |
collect2name=`${CC} -print-prog-name=collect2`
|
|
|
2156 |
if test -f "$collect2name" && \
|
|
|
2157 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
|
2158 |
then
|
|
|
2159 |
# We have reworked collect2
|
|
|
2160 |
hardcode_direct=yes
|
|
|
2161 |
else
|
|
|
2162 |
# We have old collect2
|
|
|
2163 |
hardcode_direct=unsupported
|
|
|
2164 |
# It fails to find uninstalled libraries when the uninstalled
|
|
|
2165 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
|
2166 |
# to unsupported forces relinking
|
|
|
2167 |
hardcode_minus_L=yes
|
|
|
2168 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
2169 |
hardcode_libdir_separator=
|
|
|
2170 |
fi
|
|
|
2171 |
esac
|
|
|
2172 |
|
|
|
2173 |
shared_flag='-shared'
|
|
|
2174 |
else
|
|
|
2175 |
# not using gcc
|
|
|
2176 |
if test "$host_cpu" = ia64; then
|
|
|
2177 |
shared_flag='${wl}-G'
|
|
|
2178 |
else
|
|
|
2179 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
2180 |
shared_flag='${wl}-G'
|
|
|
2181 |
else
|
|
|
2182 |
shared_flag='${wl}-bM:SRE'
|
|
|
2183 |
fi
|
|
|
2184 |
fi
|
|
|
2185 |
fi
|
|
|
2186 |
|
|
|
2187 |
# It seems that -bexpall can do strange things, so it is better to
|
|
|
2188 |
# generate a list of symbols to export.
|
|
|
2189 |
always_export_symbols=yes
|
|
|
2190 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
2191 |
# Warning - without using the other runtime loading flags (-brtl),
|
|
|
2192 |
# -berok will link without error, but may produce a broken library.
|
|
|
2193 |
allow_undefined_flag='-berok'
|
|
|
2194 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
|
|
|
2195 |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
|
2196 |
else
|
|
|
2197 |
if test "$host_cpu" = ia64; then
|
|
|
2198 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
|
|
2199 |
allow_undefined_flag="-z nodefs"
|
|
|
2200 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
|
|
2201 |
else
|
|
|
2202 |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
|
|
|
2203 |
# Warning - without using the other run time loading flags,
|
|
|
2204 |
# -berok will link without error, but may produce a broken library.
|
|
|
2205 |
allow_undefined_flag='${wl}-berok'
|
|
|
2206 |
# This is a bit strange, but is similar to how AIX traditionally builds
|
|
|
2207 |
# it's shared libraries.
|
|
|
2208 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
|
|
|
2209 |
fi
|
|
|
2210 |
fi
|
|
|
2211 |
;;
|
|
|
2212 |
|
|
|
2213 |
amigaos*)
|
|
|
2214 |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|
|
2215 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
2216 |
hardcode_minus_L=yes
|
|
|
2217 |
# see comment about different semantics on the GNU ld section
|
|
|
2218 |
ld_shlibs=no
|
|
|
2219 |
;;
|
|
|
2220 |
|
|
|
2221 |
cygwin* | mingw* | pw32*)
|
|
|
2222 |
# When not using gcc, we currently assume that we are using
|
|
|
2223 |
# Microsoft Visual C++.
|
|
|
2224 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
|
2225 |
# no search path for DLLs.
|
|
|
2226 |
hardcode_libdir_flag_spec=' '
|
|
|
2227 |
allow_undefined_flag=unsupported
|
|
|
2228 |
# Tell ltmain to make .lib files, not .a files.
|
|
|
2229 |
libext=lib
|
|
|
2230 |
# FIXME: Setting linknames here is a bad hack.
|
|
|
2231 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
|
2232 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
|
2233 |
old_archive_from_new_cmds='true'
|
|
|
2234 |
# FIXME: Should let the user specify the lib program.
|
|
|
2235 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
|
|
2236 |
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
|
2237 |
;;
|
|
|
2238 |
|
|
|
2239 |
darwin* | rhapsody*)
|
|
|
2240 |
case "$host_os" in
|
|
|
2241 |
rhapsody* | darwin1.[[012]])
|
|
|
2242 |
allow_undefined_flag='-undefined suppress'
|
|
|
2243 |
;;
|
|
|
2244 |
*) # Darwin 1.3 on
|
|
|
2245 |
allow_undefined_flag='-flat_namespace -undefined suppress'
|
|
|
2246 |
;;
|
|
|
2247 |
esac
|
|
|
2248 |
# FIXME: Relying on posixy $() will cause problems for
|
|
|
2249 |
# cross-compilation, but unfortunately the echo tests do not
|
|
|
2250 |
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
|
|
|
2251 |
# `"' quotes if we put them in here... so don't!
|
|
|
2252 |
archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
|
|
|
2253 |
# We need to add '_' to the symbols in $export_symbols first
|
|
|
2254 |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
|
|
|
2255 |
hardcode_direct=yes
|
|
|
2256 |
hardcode_shlibpath_var=no
|
|
|
2257 |
whole_archive_flag_spec='-all_load $convenience'
|
|
|
2258 |
;;
|
|
|
2259 |
|
|
|
2260 |
freebsd1*)
|
|
|
2261 |
ld_shlibs=no
|
|
|
2262 |
;;
|
|
|
2263 |
|
|
|
2264 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
|
2265 |
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
|
2266 |
# does not break anything, and helps significantly (at the cost of a little
|
|
|
2267 |
# extra space).
|
|
|
2268 |
freebsd2.2*)
|
|
|
2269 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|
|
2270 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
2271 |
hardcode_direct=yes
|
|
|
2272 |
hardcode_shlibpath_var=no
|
|
|
2273 |
;;
|
|
|
2274 |
|
|
|
2275 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
|
2276 |
freebsd2*)
|
|
|
2277 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2278 |
hardcode_direct=yes
|
|
|
2279 |
hardcode_minus_L=yes
|
|
|
2280 |
hardcode_shlibpath_var=no
|
|
|
2281 |
;;
|
|
|
2282 |
|
|
|
2283 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
|
2284 |
freebsd*)
|
|
|
2285 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
2286 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
2287 |
hardcode_direct=yes
|
|
|
2288 |
hardcode_shlibpath_var=no
|
|
|
2289 |
;;
|
|
|
2290 |
|
|
|
2291 |
hpux9* | hpux10* | hpux11*)
|
|
|
2292 |
case $host_os in
|
|
|
2293 |
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
|
|
|
2294 |
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
|
|
|
2295 |
esac
|
|
|
2296 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
|
|
2297 |
hardcode_libdir_separator=:
|
|
|
2298 |
hardcode_direct=yes
|
|
|
2299 |
hardcode_minus_L=yes # Not in the search PATH, but as the default
|
|
|
2300 |
# location of the library.
|
|
|
2301 |
export_dynamic_flag_spec='${wl}-E'
|
|
|
2302 |
;;
|
|
|
2303 |
|
|
|
2304 |
irix5* | irix6* | nonstopux*)
|
|
|
2305 |
if test "$GCC" = yes; then
|
|
|
2306 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
2307 |
else
|
|
|
2308 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
2309 |
fi
|
|
|
2310 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
2311 |
hardcode_libdir_separator=:
|
|
|
2312 |
link_all_deplibs=yes
|
|
|
2313 |
;;
|
|
|
2314 |
|
|
|
2315 |
netbsd*)
|
|
|
2316 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
2317 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
|
2318 |
else
|
|
|
2319 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|
|
2320 |
fi
|
|
|
2321 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
2322 |
hardcode_direct=yes
|
|
|
2323 |
hardcode_shlibpath_var=no
|
|
|
2324 |
;;
|
|
|
2325 |
|
|
|
2326 |
newsos6)
|
|
|
2327 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2328 |
hardcode_direct=yes
|
|
|
2329 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
2330 |
hardcode_libdir_separator=:
|
|
|
2331 |
hardcode_shlibpath_var=no
|
|
|
2332 |
;;
|
|
|
2333 |
|
|
|
2334 |
openbsd*)
|
|
|
2335 |
hardcode_direct=yes
|
|
|
2336 |
hardcode_shlibpath_var=no
|
|
|
2337 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
2338 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2339 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
|
2340 |
export_dynamic_flag_spec='${wl}-E'
|
|
|
2341 |
else
|
|
|
2342 |
case "$host_os" in
|
|
|
2343 |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
|
|
2344 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2345 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
2346 |
;;
|
|
|
2347 |
*)
|
|
|
2348 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2349 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
|
2350 |
;;
|
|
|
2351 |
esac
|
|
|
2352 |
fi
|
|
|
2353 |
;;
|
|
|
2354 |
|
|
|
2355 |
os2*)
|
|
|
2356 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
2357 |
hardcode_minus_L=yes
|
|
|
2358 |
allow_undefined_flag=unsupported
|
|
|
2359 |
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
|
|
2360 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
|
|
2361 |
;;
|
|
|
2362 |
|
|
|
2363 |
osf3*)
|
|
|
2364 |
if test "$GCC" = yes; then
|
|
|
2365 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
2366 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
2367 |
else
|
|
|
2368 |
allow_undefined_flag=' -expect_unresolved \*'
|
|
|
2369 |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
2370 |
fi
|
|
|
2371 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
2372 |
hardcode_libdir_separator=:
|
|
|
2373 |
;;
|
|
|
2374 |
|
|
|
2375 |
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
|
2376 |
if test "$GCC" = yes; then
|
|
|
2377 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
2378 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
2379 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
2380 |
else
|
|
|
2381 |
allow_undefined_flag=' -expect_unresolved \*'
|
|
|
2382 |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
2383 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
|
|
2384 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
|
|
|
2385 |
|
|
|
2386 |
#Both c and cxx compiler support -rpath directly
|
|
|
2387 |
hardcode_libdir_flag_spec='-rpath $libdir'
|
|
|
2388 |
fi
|
|
|
2389 |
hardcode_libdir_separator=:
|
|
|
2390 |
;;
|
|
|
2391 |
|
|
|
2392 |
sco3.2v5*)
|
|
|
2393 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2394 |
hardcode_shlibpath_var=no
|
|
|
2395 |
runpath_var=LD_RUN_PATH
|
|
|
2396 |
hardcode_runpath_var=yes
|
|
|
2397 |
export_dynamic_flag_spec='${wl}-Bexport'
|
|
|
2398 |
;;
|
|
|
2399 |
|
|
|
2400 |
solaris*)
|
|
|
2401 |
# gcc --version < 3.0 without binutils cannot create self contained
|
|
|
2402 |
# shared libraries reliably, requiring libgcc.a to resolve some of
|
|
|
2403 |
# the object symbols generated in some cases. Libraries that use
|
|
|
2404 |
# assert need libgcc.a to resolve __eprintf, for example. Linking
|
|
|
2405 |
# a copy of libgcc.a into every shared library to guarantee resolving
|
|
|
2406 |
# such symbols causes other problems: According to Tim Van Holder
|
|
|
2407 |
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
|
|
|
2408 |
# (to the application) exception stack for one thing.
|
|
|
2409 |
no_undefined_flag=' -z defs'
|
|
|
2410 |
if test "$GCC" = yes; then
|
|
|
2411 |
case `$CC --version 2>/dev/null` in
|
|
|
2412 |
[[12]].*)
|
|
|
2413 |
cat <<EOF 1>&2
|
|
|
2414 |
|
|
|
2415 |
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
|
|
|
2416 |
*** create self contained shared libraries on Solaris systems, without
|
|
|
2417 |
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
|
|
|
2418 |
*** -no-undefined support, which will at least allow you to build shared
|
|
|
2419 |
*** libraries. However, you may find that when you link such libraries
|
|
|
2420 |
*** into an application without using GCC, you have to manually add
|
|
|
2421 |
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
|
|
|
2422 |
*** upgrade to a newer version of GCC. Another option is to rebuild your
|
|
|
2423 |
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
|
|
|
2424 |
|
|
|
2425 |
EOF
|
|
|
2426 |
no_undefined_flag=
|
|
|
2427 |
;;
|
|
|
2428 |
esac
|
|
|
2429 |
fi
|
|
|
2430 |
# $CC -shared without GNU ld will not create a library from C++
|
|
|
2431 |
# object files and a static libstdc++, better avoid it by now
|
|
|
2432 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2433 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
2434 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|
|
2435 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
2436 |
hardcode_shlibpath_var=no
|
|
|
2437 |
case $host_os in
|
|
|
2438 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
|
2439 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
|
2440 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
|
|
|
2441 |
esac
|
|
|
2442 |
link_all_deplibs=yes
|
|
|
2443 |
;;
|
|
|
2444 |
|
|
|
2445 |
sunos4*)
|
|
|
2446 |
if test "x$host_vendor" = xsequent; then
|
|
|
2447 |
# Use $CC to link under sequent, because it throws in some extra .o
|
|
|
2448 |
# files that make .init and .fini sections work.
|
|
|
2449 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
2450 |
else
|
|
|
2451 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2452 |
fi
|
|
|
2453 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
2454 |
hardcode_direct=yes
|
|
|
2455 |
hardcode_minus_L=yes
|
|
|
2456 |
hardcode_shlibpath_var=no
|
|
|
2457 |
;;
|
|
|
2458 |
|
|
|
2459 |
sysv4)
|
|
|
2460 |
case $host_vendor in
|
|
|
2461 |
sni)
|
|
|
2462 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2463 |
hardcode_direct=yes # is this really true???
|
|
|
2464 |
;;
|
|
|
2465 |
siemens)
|
|
|
2466 |
## LD is ld it makes a PLAMLIB
|
|
|
2467 |
## CC just makes a GrossModule.
|
|
|
2468 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2469 |
reload_cmds='$CC -r -o $output$reload_objs'
|
|
|
2470 |
hardcode_direct=no
|
|
|
2471 |
;;
|
|
|
2472 |
motorola)
|
|
|
2473 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2474 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
|
|
2475 |
;;
|
|
|
2476 |
esac
|
|
|
2477 |
runpath_var='LD_RUN_PATH'
|
|
|
2478 |
hardcode_shlibpath_var=no
|
|
|
2479 |
;;
|
|
|
2480 |
|
|
|
2481 |
sysv4.3*)
|
|
|
2482 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2483 |
hardcode_shlibpath_var=no
|
|
|
2484 |
export_dynamic_flag_spec='-Bexport'
|
|
|
2485 |
;;
|
|
|
2486 |
|
|
|
2487 |
sysv5*)
|
|
|
2488 |
no_undefined_flag=' -z text'
|
|
|
2489 |
# $CC -shared without GNU ld will not create a library from C++
|
|
|
2490 |
# object files and a static libstdc++, better avoid it by now
|
|
|
2491 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2492 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
2493 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|
|
2494 |
hardcode_libdir_flag_spec=
|
|
|
2495 |
hardcode_shlibpath_var=no
|
|
|
2496 |
runpath_var='LD_RUN_PATH'
|
|
|
2497 |
;;
|
|
|
2498 |
|
|
|
2499 |
uts4*)
|
|
|
2500 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2501 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
2502 |
hardcode_shlibpath_var=no
|
|
|
2503 |
;;
|
|
|
2504 |
|
|
|
2505 |
dgux*)
|
|
|
2506 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2507 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
2508 |
hardcode_shlibpath_var=no
|
|
|
2509 |
;;
|
|
|
2510 |
|
|
|
2511 |
sysv4*MP*)
|
|
|
2512 |
if test -d /usr/nec; then
|
|
|
2513 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2514 |
hardcode_shlibpath_var=no
|
|
|
2515 |
runpath_var=LD_RUN_PATH
|
|
|
2516 |
hardcode_runpath_var=yes
|
|
|
2517 |
ld_shlibs=yes
|
|
|
2518 |
fi
|
|
|
2519 |
;;
|
|
|
2520 |
|
|
|
2521 |
sysv4.2uw2*)
|
|
|
2522 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
|
2523 |
hardcode_direct=yes
|
|
|
2524 |
hardcode_minus_L=no
|
|
|
2525 |
hardcode_shlibpath_var=no
|
|
|
2526 |
hardcode_runpath_var=yes
|
|
|
2527 |
runpath_var=LD_RUN_PATH
|
|
|
2528 |
;;
|
|
|
2529 |
|
|
|
2530 |
sysv5uw7* | unixware7*)
|
|
|
2531 |
no_undefined_flag='${wl}-z ${wl}text'
|
|
|
2532 |
if test "$GCC" = yes; then
|
|
|
2533 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
2534 |
else
|
|
|
2535 |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
2536 |
fi
|
|
|
2537 |
runpath_var='LD_RUN_PATH'
|
|
|
2538 |
hardcode_shlibpath_var=no
|
|
|
2539 |
;;
|
|
|
2540 |
|
|
|
2541 |
*)
|
|
|
2542 |
ld_shlibs=no
|
|
|
2543 |
;;
|
|
|
2544 |
esac
|
|
|
2545 |
fi
|
|
|
2546 |
AC_MSG_RESULT([$ld_shlibs])
|
|
|
2547 |
test "$ld_shlibs" = no && can_build_shared=no
|
|
|
2548 |
|
|
|
2549 |
# Check hardcoding attributes.
|
|
|
2550 |
AC_MSG_CHECKING([how to hardcode library paths into programs])
|
|
|
2551 |
hardcode_action=
|
|
|
2552 |
if test -n "$hardcode_libdir_flag_spec" || \
|
|
|
2553 |
test -n "$runpath_var"; then
|
|
|
2554 |
|
|
|
2555 |
# We can hardcode non-existant directories.
|
|
|
2556 |
if test "$hardcode_direct" != no &&
|
|
|
2557 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
|
2558 |
# have to relink, otherwise we might link with an installed library
|
|
|
2559 |
# when we should be linking with a yet-to-be-installed one
|
|
|
2560 |
## test "$hardcode_shlibpath_var" != no &&
|
|
|
2561 |
test "$hardcode_minus_L" != no; then
|
|
|
2562 |
# Linking always hardcodes the temporary library directory.
|
|
|
2563 |
hardcode_action=relink
|
|
|
2564 |
else
|
|
|
2565 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
|
2566 |
hardcode_action=immediate
|
|
|
2567 |
fi
|
|
|
2568 |
else
|
|
|
2569 |
# We cannot hardcode anything, or else we can only hardcode existing
|
|
|
2570 |
# directories.
|
|
|
2571 |
hardcode_action=unsupported
|
|
|
2572 |
fi
|
|
|
2573 |
AC_MSG_RESULT([$hardcode_action])
|
|
|
2574 |
|
|
|
2575 |
striplib=
|
|
|
2576 |
old_striplib=
|
|
|
2577 |
AC_MSG_CHECKING([whether stripping libraries is possible])
|
|
|
2578 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
|
|
2579 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
|
|
2580 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
|
|
2581 |
AC_MSG_RESULT([yes])
|
|
|
2582 |
else
|
|
|
2583 |
AC_MSG_RESULT([no])
|
|
|
2584 |
fi
|
|
|
2585 |
|
|
|
2586 |
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
|
2587 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
2588 |
|
|
|
2589 |
# PORTME Fill in your ld.so characteristics
|
|
|
2590 |
AC_MSG_CHECKING([dynamic linker characteristics])
|
|
|
2591 |
library_names_spec=
|
|
|
2592 |
libname_spec='lib$name'
|
|
|
2593 |
soname_spec=
|
|
|
2594 |
postinstall_cmds=
|
|
|
2595 |
postuninstall_cmds=
|
|
|
2596 |
finish_cmds=
|
|
|
2597 |
finish_eval=
|
|
|
2598 |
shlibpath_var=
|
|
|
2599 |
shlibpath_overrides_runpath=unknown
|
|
|
2600 |
version_type=none
|
|
|
2601 |
dynamic_linker="$host_os ld.so"
|
|
|
2602 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
2603 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
|
2604 |
|
|
|
2605 |
case $host_os in
|
|
|
2606 |
aix3*)
|
|
|
2607 |
version_type=linux
|
|
|
2608 |
library_names_spec='${libname}${release}.so$versuffix $libname.a'
|
|
|
2609 |
shlibpath_var=LIBPATH
|
|
|
2610 |
|
|
|
2611 |
# AIX has no versioning support, so we append a major version to the name.
|
|
|
2612 |
soname_spec='${libname}${release}.so$major'
|
|
|
2613 |
;;
|
|
|
2614 |
|
|
|
2615 |
aix4* | aix5*)
|
|
|
2616 |
version_type=linux
|
|
|
2617 |
if test "$host_cpu" = ia64; then
|
|
|
2618 |
# AIX 5 supports IA64
|
|
|
2619 |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
|
|
|
2620 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2621 |
else
|
|
|
2622 |
# With GCC up to 2.95.x, collect2 would create an import file
|
|
|
2623 |
# for dependence libraries. The import file would start with
|
|
|
2624 |
# the line `#! .'. This would cause the generated library to
|
|
|
2625 |
# depend on `.', always an invalid library. This was fixed in
|
|
|
2626 |
# development snapshots of GCC prior to 3.0.
|
|
|
2627 |
case $host_os in
|
|
|
2628 |
aix4 | aix4.[[01]] | aix4.[[01]].*)
|
|
|
2629 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
|
2630 |
echo ' yes '
|
|
|
2631 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
|
|
2632 |
:
|
|
|
2633 |
else
|
|
|
2634 |
can_build_shared=no
|
|
|
2635 |
fi
|
|
|
2636 |
;;
|
|
|
2637 |
esac
|
|
|
2638 |
# AIX (on Power*) has no versioning support, so currently we can
|
|
|
2639 |
# not hardcode correct soname into executable. Probably we can
|
|
|
2640 |
# add versioning support to collect2, so additional links can
|
|
|
2641 |
# be useful in future.
|
|
|
2642 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
2643 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
|
2644 |
# instead of lib<name>.a to let people know that these are not
|
|
|
2645 |
# typical AIX shared libraries.
|
|
|
2646 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2647 |
else
|
|
|
2648 |
# We preserve .a as extension for shared libraries through AIX4.2
|
|
|
2649 |
# and later when we are not doing run time linking.
|
|
|
2650 |
library_names_spec='${libname}${release}.a $libname.a'
|
|
|
2651 |
soname_spec='${libname}${release}.so$major'
|
|
|
2652 |
fi
|
|
|
2653 |
shlibpath_var=LIBPATH
|
|
|
2654 |
fi
|
|
|
2655 |
;;
|
|
|
2656 |
|
|
|
2657 |
amigaos*)
|
|
|
2658 |
library_names_spec='$libname.ixlibrary $libname.a'
|
|
|
2659 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
|
2660 |
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'
|
|
|
2661 |
;;
|
|
|
2662 |
|
|
|
2663 |
beos*)
|
|
|
2664 |
library_names_spec='${libname}.so'
|
|
|
2665 |
dynamic_linker="$host_os ld.so"
|
|
|
2666 |
shlibpath_var=LIBRARY_PATH
|
|
|
2667 |
;;
|
|
|
2668 |
|
|
|
2669 |
bsdi4*)
|
|
|
2670 |
version_type=linux
|
|
|
2671 |
need_version=no
|
|
|
2672 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2673 |
soname_spec='${libname}${release}.so$major'
|
|
|
2674 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
|
2675 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2676 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
|
2677 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
|
2678 |
export_dynamic_flag_spec=-rdynamic
|
|
|
2679 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
|
|
2680 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
|
2681 |
# libtool to hard-code these into programs
|
|
|
2682 |
;;
|
|
|
2683 |
|
|
|
2684 |
cygwin* | mingw* | pw32*)
|
|
|
2685 |
version_type=windows
|
|
|
2686 |
need_version=no
|
|
|
2687 |
need_lib_prefix=no
|
|
|
2688 |
case $GCC,$host_os in
|
|
|
2689 |
yes,cygwin*)
|
|
|
2690 |
library_names_spec='$libname.dll.a'
|
|
|
2691 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
|
|
|
2692 |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
|
|
|
2693 |
dldir=$destdir/`dirname \$dlpath`~
|
|
|
2694 |
test -d \$dldir || mkdir -p \$dldir~
|
|
|
2695 |
$install_prog .libs/$dlname \$dldir/$dlname'
|
|
|
2696 |
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
|
2697 |
dlpath=$dir/\$dldll~
|
|
|
2698 |
$rm \$dlpath'
|
|
|
2699 |
;;
|
|
|
2700 |
yes,mingw*)
|
|
|
2701 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
|
|
|
2702 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
|
|
|
2703 |
;;
|
|
|
2704 |
yes,pw32*)
|
|
|
2705 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
|
|
|
2706 |
;;
|
|
|
2707 |
*)
|
|
|
2708 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
|
|
|
2709 |
;;
|
|
|
2710 |
esac
|
|
|
2711 |
dynamic_linker='Win32 ld.exe'
|
|
|
2712 |
# FIXME: first we should search . and the directory the executable is in
|
|
|
2713 |
shlibpath_var=PATH
|
|
|
2714 |
;;
|
|
|
2715 |
|
|
|
2716 |
darwin* | rhapsody*)
|
|
|
2717 |
dynamic_linker="$host_os dyld"
|
|
|
2718 |
version_type=darwin
|
|
|
2719 |
need_lib_prefix=no
|
|
|
2720 |
need_version=no
|
|
|
2721 |
# FIXME: Relying on posixy $() will cause problems for
|
|
|
2722 |
# cross-compilation, but unfortunately the echo tests do not
|
|
|
2723 |
# yet detect zsh echo's removal of \ escapes.
|
|
|
2724 |
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
|
|
|
2725 |
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
|
|
|
2726 |
shlibpath_overrides_runpath=yes
|
|
|
2727 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
|
2728 |
;;
|
|
|
2729 |
|
|
|
2730 |
freebsd1*)
|
|
|
2731 |
dynamic_linker=no
|
|
|
2732 |
;;
|
|
|
2733 |
|
|
|
2734 |
freebsd*)
|
|
|
2735 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
|
|
2736 |
version_type=freebsd-$objformat
|
|
|
2737 |
case $version_type in
|
|
|
2738 |
freebsd-elf*)
|
|
|
2739 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
|
|
|
2740 |
need_version=no
|
|
|
2741 |
need_lib_prefix=no
|
|
|
2742 |
;;
|
|
|
2743 |
freebsd-*)
|
|
|
2744 |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
|
|
|
2745 |
need_version=yes
|
|
|
2746 |
;;
|
|
|
2747 |
esac
|
|
|
2748 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2749 |
case $host_os in
|
|
|
2750 |
freebsd2*)
|
|
|
2751 |
shlibpath_overrides_runpath=yes
|
|
|
2752 |
;;
|
|
|
2753 |
*)
|
|
|
2754 |
shlibpath_overrides_runpath=no
|
|
|
2755 |
hardcode_into_libs=yes
|
|
|
2756 |
;;
|
|
|
2757 |
esac
|
|
|
2758 |
;;
|
|
|
2759 |
|
|
|
2760 |
gnu*)
|
|
|
2761 |
version_type=linux
|
|
|
2762 |
need_lib_prefix=no
|
|
|
2763 |
need_version=no
|
|
|
2764 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
|
|
|
2765 |
soname_spec='${libname}${release}.so$major'
|
|
|
2766 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2767 |
hardcode_into_libs=yes
|
|
|
2768 |
;;
|
|
|
2769 |
|
|
|
2770 |
hpux9* | hpux10* | hpux11*)
|
|
|
2771 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
|
|
2772 |
# link against other versions.
|
|
|
2773 |
dynamic_linker="$host_os dld.sl"
|
|
|
2774 |
version_type=sunos
|
|
|
2775 |
need_lib_prefix=no
|
|
|
2776 |
need_version=no
|
|
|
2777 |
shlibpath_var=SHLIB_PATH
|
|
|
2778 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
|
2779 |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
|
|
|
2780 |
soname_spec='${libname}${release}.sl$major'
|
|
|
2781 |
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
|
|
2782 |
postinstall_cmds='chmod 555 $lib'
|
|
|
2783 |
;;
|
|
|
2784 |
|
|
|
2785 |
irix5* | irix6* | nonstopux*)
|
|
|
2786 |
case $host_os in
|
|
|
2787 |
nonstopux*) version_type=nonstopux ;;
|
|
|
2788 |
*) version_type=irix ;;
|
|
|
2789 |
esac
|
|
|
2790 |
need_lib_prefix=no
|
|
|
2791 |
need_version=no
|
|
|
2792 |
soname_spec='${libname}${release}.so$major'
|
|
|
2793 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
|
|
|
2794 |
case $host_os in
|
|
|
2795 |
irix5* | nonstopux*)
|
|
|
2796 |
libsuff= shlibsuff=
|
|
|
2797 |
;;
|
|
|
2798 |
*)
|
|
|
2799 |
case $LD in # libtool.m4 will add one of these switches to LD
|
|
|
2800 |
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
|
|
|
2801 |
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
|
2802 |
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
|
2803 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
|
|
2804 |
esac
|
|
|
2805 |
;;
|
|
|
2806 |
esac
|
|
|
2807 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
|
2808 |
shlibpath_overrides_runpath=no
|
|
|
2809 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|
|
2810 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
|
2811 |
;;
|
|
|
2812 |
|
|
|
2813 |
# No shared lib support for Linux oldld, aout, or coff.
|
|
|
2814 |
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
|
|
|
2815 |
dynamic_linker=no
|
|
|
2816 |
;;
|
|
|
2817 |
|
|
|
2818 |
# This must be Linux ELF.
|
|
|
2819 |
linux-gnu*)
|
|
|
2820 |
version_type=linux
|
|
|
2821 |
need_lib_prefix=no
|
|
|
2822 |
need_version=no
|
|
|
2823 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2824 |
soname_spec='${libname}${release}.so$major'
|
|
|
2825 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
|
2826 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2827 |
shlibpath_overrides_runpath=no
|
|
|
2828 |
# This implies no fast_install, which is unacceptable.
|
|
|
2829 |
# Some rework will be needed to allow for fast_install
|
|
|
2830 |
# before this can be enabled.
|
|
|
2831 |
hardcode_into_libs=yes
|
|
|
2832 |
|
|
|
2833 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
|
2834 |
# powerpc, because MkLinux only supported shared libraries with the
|
|
|
2835 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
|
2836 |
# most powerpc-linux boxes support dynamic linking these days and
|
|
|
2837 |
# people can always --disable-shared, the test was removed, and we
|
|
|
2838 |
# assume the GNU/Linux dynamic linker is in use.
|
|
|
2839 |
dynamic_linker='GNU/Linux ld.so'
|
|
|
2840 |
;;
|
|
|
2841 |
|
|
|
2842 |
netbsd*)
|
|
|
2843 |
version_type=sunos
|
|
|
2844 |
need_lib_prefix=no
|
|
|
2845 |
need_version=no
|
|
|
2846 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
2847 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
|
|
2848 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
2849 |
dynamic_linker='NetBSD (a.out) ld.so'
|
|
|
2850 |
else
|
|
|
2851 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
|
|
|
2852 |
soname_spec='${libname}${release}.so$major'
|
|
|
2853 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
2854 |
fi
|
|
|
2855 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2856 |
shlibpath_overrides_runpath=yes
|
|
|
2857 |
hardcode_into_libs=yes
|
|
|
2858 |
;;
|
|
|
2859 |
|
|
|
2860 |
newsos6)
|
|
|
2861 |
version_type=linux
|
|
|
2862 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2863 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2864 |
shlibpath_overrides_runpath=yes
|
|
|
2865 |
;;
|
|
|
2866 |
|
|
|
2867 |
openbsd*)
|
|
|
2868 |
version_type=sunos
|
|
|
2869 |
need_lib_prefix=no
|
|
|
2870 |
need_version=no
|
|
|
2871 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
2872 |
case "$host_os" in
|
|
|
2873 |
openbsd2.[[89]] | openbsd2.[[89]].*)
|
|
|
2874 |
shlibpath_overrides_runpath=no
|
|
|
2875 |
;;
|
|
|
2876 |
*)
|
|
|
2877 |
shlibpath_overrides_runpath=yes
|
|
|
2878 |
;;
|
|
|
2879 |
esac
|
|
|
2880 |
else
|
|
|
2881 |
shlibpath_overrides_runpath=yes
|
|
|
2882 |
fi
|
|
|
2883 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
|
|
2884 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
2885 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2886 |
;;
|
|
|
2887 |
|
|
|
2888 |
os2*)
|
|
|
2889 |
libname_spec='$name'
|
|
|
2890 |
need_lib_prefix=no
|
|
|
2891 |
library_names_spec='$libname.dll $libname.a'
|
|
|
2892 |
dynamic_linker='OS/2 ld.exe'
|
|
|
2893 |
shlibpath_var=LIBPATH
|
|
|
2894 |
;;
|
|
|
2895 |
|
|
|
2896 |
osf3* | osf4* | osf5*)
|
|
|
2897 |
version_type=osf
|
|
|
2898 |
need_version=no
|
|
|
2899 |
soname_spec='${libname}${release}.so'
|
|
|
2900 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
|
|
|
2901 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2902 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
|
2903 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
|
2904 |
;;
|
|
|
2905 |
|
|
|
2906 |
sco3.2v5*)
|
|
|
2907 |
version_type=osf
|
|
|
2908 |
soname_spec='${libname}${release}.so$major'
|
|
|
2909 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2910 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2911 |
;;
|
|
|
2912 |
|
|
|
2913 |
solaris*)
|
|
|
2914 |
version_type=linux
|
|
|
2915 |
need_lib_prefix=no
|
|
|
2916 |
need_version=no
|
|
|
2917 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2918 |
soname_spec='${libname}${release}.so$major'
|
|
|
2919 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2920 |
shlibpath_overrides_runpath=yes
|
|
|
2921 |
hardcode_into_libs=yes
|
|
|
2922 |
# ldd complains unless libraries are executable
|
|
|
2923 |
postinstall_cmds='chmod +x $lib'
|
|
|
2924 |
;;
|
|
|
2925 |
|
|
|
2926 |
sunos4*)
|
|
|
2927 |
version_type=sunos
|
|
|
2928 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
|
|
2929 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
|
2930 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2931 |
shlibpath_overrides_runpath=yes
|
|
|
2932 |
if test "$with_gnu_ld" = yes; then
|
|
|
2933 |
need_lib_prefix=no
|
|
|
2934 |
fi
|
|
|
2935 |
need_version=yes
|
|
|
2936 |
;;
|
|
|
2937 |
|
|
|
2938 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
|
2939 |
version_type=linux
|
|
|
2940 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2941 |
soname_spec='${libname}${release}.so$major'
|
|
|
2942 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2943 |
case $host_vendor in
|
|
|
2944 |
sni)
|
|
|
2945 |
shlibpath_overrides_runpath=no
|
|
|
2946 |
need_lib_prefix=no
|
|
|
2947 |
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
|
|
2948 |
runpath_var=LD_RUN_PATH
|
|
|
2949 |
;;
|
|
|
2950 |
siemens)
|
|
|
2951 |
need_lib_prefix=no
|
|
|
2952 |
;;
|
|
|
2953 |
motorola)
|
|
|
2954 |
need_lib_prefix=no
|
|
|
2955 |
need_version=no
|
|
|
2956 |
shlibpath_overrides_runpath=no
|
|
|
2957 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
|
2958 |
;;
|
|
|
2959 |
esac
|
|
|
2960 |
;;
|
|
|
2961 |
|
|
|
2962 |
uts4*)
|
|
|
2963 |
version_type=linux
|
|
|
2964 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2965 |
soname_spec='${libname}${release}.so$major'
|
|
|
2966 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2967 |
;;
|
|
|
2968 |
|
|
|
2969 |
dgux*)
|
|
|
2970 |
version_type=linux
|
|
|
2971 |
need_lib_prefix=no
|
|
|
2972 |
need_version=no
|
|
|
2973 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
|
2974 |
soname_spec='${libname}${release}.so$major'
|
|
|
2975 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2976 |
;;
|
|
|
2977 |
|
|
|
2978 |
sysv4*MP*)
|
|
|
2979 |
if test -d /usr/nec ;then
|
|
|
2980 |
version_type=linux
|
|
|
2981 |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
|
|
|
2982 |
soname_spec='$libname.so.$major'
|
|
|
2983 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
2984 |
fi
|
|
|
2985 |
;;
|
|
|
2986 |
|
|
|
2987 |
*)
|
310 |
*)
|
2988 |
dynamic_linker=no
|
311 |
acl_cv_prog_gnu_ld=no
|
2989 |
;;
|
|
|
2990 |
esac
|
|
|
2991 |
AC_MSG_RESULT([$dynamic_linker])
|
|
|
2992 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
|
2993 |
|
|
|
2994 |
# Report the final consequences.
|
|
|
2995 |
AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
|
2996 |
AC_MSG_RESULT([$can_build_shared])
|
|
|
2997 |
|
|
|
2998 |
AC_MSG_CHECKING([whether to build shared libraries])
|
|
|
2999 |
test "$can_build_shared" = "no" && enable_shared=no
|
|
|
3000 |
|
|
|
3001 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
|
3002 |
# are all built from PIC.
|
|
|
3003 |
case "$host_os" in
|
|
|
3004 |
aix3*)
|
|
|
3005 |
test "$enable_shared" = yes && enable_static=no
|
|
|
3006 |
if test -n "$RANLIB"; then
|
|
|
3007 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
|
3008 |
postinstall_cmds='$RANLIB $lib'
|
|
|
3009 |
fi
|
|
|
3010 |
;;
|
|
|
3011 |
|
|
|
3012 |
aix4*)
|
|
|
3013 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
|
3014 |
test "$enable_shared" = yes && enable_static=no
|
|
|
3015 |
fi
|
|
|
3016 |
;;
|
|
|
3017 |
esac
|
|
|
3018 |
AC_MSG_RESULT([$enable_shared])
|
|
|
3019 |
|
|
|
3020 |
AC_MSG_CHECKING([whether to build static libraries])
|
|
|
3021 |
# Make sure either enable_shared or enable_static is yes.
|
|
|
3022 |
test "$enable_shared" = yes || enable_static=yes
|
|
|
3023 |
AC_MSG_RESULT([$enable_static])
|
|
|
3024 |
|
|
|
3025 |
if test "$hardcode_action" = relink; then
|
|
|
3026 |
# Fast installation is not supported
|
|
|
3027 |
enable_fast_install=no
|
|
|
3028 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
|
|
3029 |
test "$enable_shared" = no; then
|
|
|
3030 |
# Fast installation is not necessary
|
|
|
3031 |
enable_fast_install=needless
|
|
|
3032 |
fi
|
|
|
3033 |
|
|
|
3034 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
|
3035 |
if test "$GCC" = yes; then
|
|
|
3036 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
|
3037 |
fi
|
|
|
3038 |
|
|
|
3039 |
AC_LIBTOOL_DLOPEN_SELF
|
|
|
3040 |
|
|
|
3041 |
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|
|
3042 |
case $archive_cmds in
|
|
|
3043 |
*'~'*)
|
|
|
3044 |
# FIXME: we may have to deal with multi-command sequences.
|
|
|
3045 |
;;
|
|
|
3046 |
'$CC '*)
|
|
|
3047 |
# Test whether the compiler implicitly links with -lc since on some
|
|
|
3048 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
|
3049 |
# to ld, don't add -lc before -lgcc.
|
|
|
3050 |
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
|
|
3051 |
AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
|
|
|
3052 |
[$rm conftest*
|
|
|
3053 |
echo 'static int dummy;' > conftest.$ac_ext
|
|
|
3054 |
|
|
|
3055 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
3056 |
soname=conftest
|
|
|
3057 |
lib=conftest
|
|
|
3058 |
libobjs=conftest.$ac_objext
|
|
|
3059 |
deplibs=
|
|
|
3060 |
wl=$lt_cv_prog_cc_wl
|
|
|
3061 |
compiler_flags=-v
|
|
|
3062 |
linker_flags=-v
|
|
|
3063 |
verstring=
|
|
|
3064 |
output_objdir=.
|
|
|
3065 |
libname=conftest
|
|
|
3066 |
save_allow_undefined_flag=$allow_undefined_flag
|
|
|
3067 |
allow_undefined_flag=
|
|
|
3068 |
if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
|
|
|
3069 |
then
|
|
|
3070 |
lt_cv_archive_cmds_need_lc=no
|
|
|
3071 |
else
|
|
|
3072 |
lt_cv_archive_cmds_need_lc=yes
|
|
|
3073 |
fi
|
|
|
3074 |
allow_undefined_flag=$save_allow_undefined_flag
|
|
|
3075 |
else
|
|
|
3076 |
cat conftest.err 1>&5
|
|
|
3077 |
fi])
|
|
|
3078 |
AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
|
|
|
3079 |
;;
|
|
|
3080 |
esac
|
|
|
3081 |
fi
|
|
|
3082 |
need_lc=${lt_cv_archive_cmds_need_lc-yes}
|
|
|
3083 |
|
|
|
3084 |
# The second clause should only fire when bootstrapping the
|
|
|
3085 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
|
3086 |
# with your package, and you will get complaints that there are
|
|
|
3087 |
# no rules to generate ltmain.sh.
|
|
|
3088 |
if test -f "$ltmain"; then
|
|
|
3089 |
:
|
|
|
3090 |
else
|
|
|
3091 |
# If there is no Makefile yet, we rely on a make rule to execute
|
|
|
3092 |
# `config.status --recheck' to rerun these tests and create the
|
|
|
3093 |
# libtool script then.
|
|
|
3094 |
test -f Makefile && make "$ltmain"
|
|
|
3095 |
fi
|
|
|
3096 |
|
|
|
3097 |
if test -f "$ltmain"; then
|
|
|
3098 |
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
|
|
|
3099 |
$rm -f "${ofile}T"
|
|
|
3100 |
|
|
|
3101 |
echo creating $ofile
|
|
|
3102 |
|
|
|
3103 |
# Now quote all the things that may contain metacharacters while being
|
|
|
3104 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
|
|
3105 |
# variables and quote the copies for generation of the libtool script.
|
|
|
3106 |
for var in echo old_CC old_CFLAGS SED \
|
|
|
3107 |
AR AR_FLAGS CC LD LN_S NM SHELL \
|
|
|
3108 |
reload_flag reload_cmds wl \
|
|
|
3109 |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
|
|
|
3110 |
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
|
|
|
3111 |
library_names_spec soname_spec \
|
|
|
3112 |
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
|
|
|
3113 |
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
|
|
|
3114 |
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
|
|
|
3115 |
old_striplib striplib file_magic_cmd export_symbols_cmds \
|
|
|
3116 |
deplibs_check_method allow_undefined_flag no_undefined_flag \
|
|
|
3117 |
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
|
|
|
3118 |
global_symbol_to_c_name_address \
|
|
|
3119 |
hardcode_libdir_flag_spec hardcode_libdir_separator \
|
|
|
3120 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
|
|
3121 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
|
|
|
3122 |
|
|
|
3123 |
case $var in
|
|
|
3124 |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
|
|
|
3125 |
old_postinstall_cmds | old_postuninstall_cmds | \
|
|
|
3126 |
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
|
|
|
3127 |
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
|
|
|
3128 |
postinstall_cmds | postuninstall_cmds | \
|
|
|
3129 |
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
|
|
3130 |
# Double-quote double-evaled strings.
|
|
|
3131 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
|
|
3132 |
;;
|
|
|
3133 |
*)
|
|
|
3134 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
|
|
3135 |
;;
|
|
|
3136 |
esac
|
|
|
3137 |
done
|
|
|
3138 |
|
|
|
3139 |
cat <<__EOF__ > "${ofile}T"
|
|
|
3140 |
#! $SHELL
|
|
|
3141 |
|
|
|
3142 |
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
|
|
3143 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
|
|
3144 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
|
3145 |
#
|
|
|
3146 |
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
|
|
|
3147 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
|
|
3148 |
#
|
|
|
3149 |
# This program is free software; you can redistribute it and/or modify
|
|
|
3150 |
# it under the terms of the GNU General Public License as published by
|
|
|
3151 |
# the Free Software Foundation; either version 2 of the License, or
|
|
|
3152 |
# (at your option) any later version.
|
|
|
3153 |
#
|
|
|
3154 |
# This program is distributed in the hope that it will be useful, but
|
|
|
3155 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
3156 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
3157 |
# General Public License for more details.
|
|
|
3158 |
#
|
|
|
3159 |
# You should have received a copy of the GNU General Public License
|
|
|
3160 |
# along with this program; if not, write to the Free Software
|
|
|
3161 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
3162 |
#
|
|
|
3163 |
# As a special exception to the GNU General Public License, if you
|
|
|
3164 |
# distribute this file as part of a program that contains a
|
|
|
3165 |
# configuration script generated by Autoconf, you may include it under
|
|
|
3166 |
# the same distribution terms that you use for the rest of that program.
|
|
|
3167 |
|
|
|
3168 |
# A sed that does not truncate output.
|
|
|
3169 |
SED=$lt_SED
|
|
|
3170 |
|
|
|
3171 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
|
|
3172 |
Xsed="${SED} -e s/^X//"
|
|
|
3173 |
|
|
|
3174 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
|
3175 |
# if CDPATH is set.
|
|
|
3176 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
|
|
|
3177 |
|
|
|
3178 |
# ### BEGIN LIBTOOL CONFIG
|
|
|
3179 |
|
|
|
3180 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
3181 |
|
|
|
3182 |
# Shell to use when invoking shell scripts.
|
|
|
3183 |
SHELL=$lt_SHELL
|
|
|
3184 |
|
|
|
3185 |
# Whether or not to build shared libraries.
|
|
|
3186 |
build_libtool_libs=$enable_shared
|
|
|
3187 |
|
|
|
3188 |
# Whether or not to build static libraries.
|
|
|
3189 |
build_old_libs=$enable_static
|
|
|
3190 |
|
|
|
3191 |
# Whether or not to add -lc for building shared libraries.
|
|
|
3192 |
build_libtool_need_lc=$need_lc
|
|
|
3193 |
|
|
|
3194 |
# Whether or not to optimize for fast installation.
|
|
|
3195 |
fast_install=$enable_fast_install
|
|
|
3196 |
|
|
|
3197 |
# The host system.
|
|
|
3198 |
host_alias=$host_alias
|
|
|
3199 |
host=$host
|
|
|
3200 |
|
|
|
3201 |
# An echo program that does not interpret backslashes.
|
|
|
3202 |
echo=$lt_echo
|
|
|
3203 |
|
|
|
3204 |
# The archiver.
|
|
|
3205 |
AR=$lt_AR
|
|
|
3206 |
AR_FLAGS=$lt_AR_FLAGS
|
|
|
3207 |
|
|
|
3208 |
# The default C compiler.
|
|
|
3209 |
CC=$lt_CC
|
|
|
3210 |
|
|
|
3211 |
# Is the compiler the GNU C compiler?
|
|
|
3212 |
with_gcc=$GCC
|
|
|
3213 |
|
|
|
3214 |
# The linker used to build libraries.
|
|
|
3215 |
LD=$lt_LD
|
|
|
3216 |
|
|
|
3217 |
# Whether we need hard or soft links.
|
|
|
3218 |
LN_S=$lt_LN_S
|
|
|
3219 |
|
|
|
3220 |
# A BSD-compatible nm program.
|
|
|
3221 |
NM=$lt_NM
|
|
|
3222 |
|
|
|
3223 |
# A symbol stripping program
|
|
|
3224 |
STRIP=$STRIP
|
|
|
3225 |
|
|
|
3226 |
# Used to examine libraries when file_magic_cmd begins "file"
|
|
|
3227 |
MAGIC_CMD=$MAGIC_CMD
|
|
|
3228 |
|
|
|
3229 |
# Used on cygwin: DLL creation program.
|
|
|
3230 |
DLLTOOL="$DLLTOOL"
|
|
|
3231 |
|
|
|
3232 |
# Used on cygwin: object dumper.
|
|
|
3233 |
OBJDUMP="$OBJDUMP"
|
|
|
3234 |
|
|
|
3235 |
# Used on cygwin: assembler.
|
|
|
3236 |
AS="$AS"
|
|
|
3237 |
|
|
|
3238 |
# The name of the directory that contains temporary libtool files.
|
|
|
3239 |
objdir=$objdir
|
|
|
3240 |
|
|
|
3241 |
# How to create reloadable object files.
|
|
|
3242 |
reload_flag=$lt_reload_flag
|
|
|
3243 |
reload_cmds=$lt_reload_cmds
|
|
|
3244 |
|
|
|
3245 |
# How to pass a linker flag through the compiler.
|
|
|
3246 |
wl=$lt_wl
|
|
|
3247 |
|
|
|
3248 |
# Object file suffix (normally "o").
|
|
|
3249 |
objext="$ac_objext"
|
|
|
3250 |
|
|
|
3251 |
# Old archive suffix (normally "a").
|
|
|
3252 |
libext="$libext"
|
|
|
3253 |
|
|
|
3254 |
# Executable file suffix (normally "").
|
|
|
3255 |
exeext="$exeext"
|
|
|
3256 |
|
|
|
3257 |
# Additional compiler flags for building library objects.
|
|
|
3258 |
pic_flag=$lt_pic_flag
|
|
|
3259 |
pic_mode=$pic_mode
|
|
|
3260 |
|
|
|
3261 |
# Does compiler simultaneously support -c and -o options?
|
|
|
3262 |
compiler_c_o=$lt_compiler_c_o
|
|
|
3263 |
|
|
|
3264 |
# Can we write directly to a .lo ?
|
|
|
3265 |
compiler_o_lo=$lt_compiler_o_lo
|
|
|
3266 |
|
|
|
3267 |
# Must we lock files when doing compilation ?
|
|
|
3268 |
need_locks=$lt_need_locks
|
|
|
3269 |
|
|
|
3270 |
# Do we need the lib prefix for modules?
|
|
|
3271 |
need_lib_prefix=$need_lib_prefix
|
|
|
3272 |
|
|
|
3273 |
# Do we need a version for libraries?
|
|
|
3274 |
need_version=$need_version
|
|
|
3275 |
|
|
|
3276 |
# Whether dlopen is supported.
|
|
|
3277 |
dlopen_support=$enable_dlopen
|
|
|
3278 |
|
|
|
3279 |
# Whether dlopen of programs is supported.
|
|
|
3280 |
dlopen_self=$enable_dlopen_self
|
|
|
3281 |
|
|
|
3282 |
# Whether dlopen of statically linked programs is supported.
|
|
|
3283 |
dlopen_self_static=$enable_dlopen_self_static
|
|
|
3284 |
|
|
|
3285 |
# Compiler flag to prevent dynamic linking.
|
|
|
3286 |
link_static_flag=$lt_link_static_flag
|
|
|
3287 |
|
|
|
3288 |
# Compiler flag to turn off builtin functions.
|
|
|
3289 |
no_builtin_flag=$lt_no_builtin_flag
|
|
|
3290 |
|
|
|
3291 |
# Compiler flag to allow reflexive dlopens.
|
|
|
3292 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
|
|
3293 |
|
|
|
3294 |
# Compiler flag to generate shared objects directly from archives.
|
|
|
3295 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
|
|
3296 |
|
|
|
3297 |
# Compiler flag to generate thread-safe objects.
|
|
|
3298 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec
|
|
|
3299 |
|
|
|
3300 |
# Library versioning type.
|
|
|
3301 |
version_type=$version_type
|
|
|
3302 |
|
|
|
3303 |
# Format of library name prefix.
|
|
|
3304 |
libname_spec=$lt_libname_spec
|
|
|
3305 |
|
|
|
3306 |
# List of archive names. First name is the real one, the rest are links.
|
|
|
3307 |
# The last name is the one that the linker finds with -lNAME.
|
|
|
3308 |
library_names_spec=$lt_library_names_spec
|
|
|
3309 |
|
|
|
3310 |
# The coded name of the library, if different from the real name.
|
|
|
3311 |
soname_spec=$lt_soname_spec
|
|
|
3312 |
|
|
|
3313 |
# Commands used to build and install an old-style archive.
|
|
|
3314 |
RANLIB=$lt_RANLIB
|
|
|
3315 |
old_archive_cmds=$lt_old_archive_cmds
|
|
|
3316 |
old_postinstall_cmds=$lt_old_postinstall_cmds
|
|
|
3317 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|
|
3318 |
|
|
|
3319 |
# Create an old-style archive from a shared archive.
|
|
|
3320 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
|
|
3321 |
|
|
|
3322 |
# Create a temporary old-style archive to link instead of a shared archive.
|
|
|
3323 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
|
|
3324 |
|
|
|
3325 |
# Commands used to build and install a shared archive.
|
|
|
3326 |
archive_cmds=$lt_archive_cmds
|
|
|
3327 |
archive_expsym_cmds=$lt_archive_expsym_cmds
|
|
|
3328 |
postinstall_cmds=$lt_postinstall_cmds
|
|
|
3329 |
postuninstall_cmds=$lt_postuninstall_cmds
|
|
|
3330 |
|
|
|
3331 |
# Commands to strip libraries.
|
|
|
3332 |
old_striplib=$lt_old_striplib
|
|
|
3333 |
striplib=$lt_striplib
|
|
|
3334 |
|
|
|
3335 |
# Method to check whether dependent libraries are shared objects.
|
|
|
3336 |
deplibs_check_method=$lt_deplibs_check_method
|
|
|
3337 |
|
|
|
3338 |
# Command to use when deplibs_check_method == file_magic.
|
|
|
3339 |
file_magic_cmd=$lt_file_magic_cmd
|
|
|
3340 |
|
|
|
3341 |
# Flag that allows shared libraries with undefined symbols to be built.
|
|
|
3342 |
allow_undefined_flag=$lt_allow_undefined_flag
|
|
|
3343 |
|
|
|
3344 |
# Flag that forces no undefined symbols.
|
|
|
3345 |
no_undefined_flag=$lt_no_undefined_flag
|
|
|
3346 |
|
|
|
3347 |
# Commands used to finish a libtool library installation in a directory.
|
|
|
3348 |
finish_cmds=$lt_finish_cmds
|
|
|
3349 |
|
|
|
3350 |
# Same as above, but a single script fragment to be evaled but not shown.
|
|
|
3351 |
finish_eval=$lt_finish_eval
|
|
|
3352 |
|
|
|
3353 |
# Take the output of nm and produce a listing of raw symbols and C names.
|
|
|
3354 |
global_symbol_pipe=$lt_global_symbol_pipe
|
|
|
3355 |
|
|
|
3356 |
# Transform the output of nm in a proper C declaration
|
|
|
3357 |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
|
|
|
3358 |
|
|
|
3359 |
# Transform the output of nm in a C name address pair
|
|
|
3360 |
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
|
|
|
3361 |
|
|
|
3362 |
# This is the shared library runtime path variable.
|
|
|
3363 |
runpath_var=$runpath_var
|
|
|
3364 |
|
|
|
3365 |
# This is the shared library path variable.
|
|
|
3366 |
shlibpath_var=$shlibpath_var
|
|
|
3367 |
|
|
|
3368 |
# Is shlibpath searched before the hard-coded library search path?
|
|
|
3369 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|
|
3370 |
|
|
|
3371 |
# How to hardcode a shared library path into an executable.
|
|
|
3372 |
hardcode_action=$hardcode_action
|
|
|
3373 |
|
|
|
3374 |
# Whether we should hardcode library paths into libraries.
|
|
|
3375 |
hardcode_into_libs=$hardcode_into_libs
|
|
|
3376 |
|
|
|
3377 |
# Flag to hardcode \$libdir into a binary during linking.
|
|
|
3378 |
# This must work even if \$libdir does not exist.
|
|
|
3379 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
|
|
3380 |
|
|
|
3381 |
# Whether we need a single -rpath flag with a separated argument.
|
|
|
3382 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
|
|
3383 |
|
|
|
3384 |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
|
|
|
3385 |
# resulting binary.
|
|
|
3386 |
hardcode_direct=$hardcode_direct
|
|
|
3387 |
|
|
|
3388 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
|
|
3389 |
# resulting binary.
|
|
|
3390 |
hardcode_minus_L=$hardcode_minus_L
|
|
|
3391 |
|
|
|
3392 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
|
|
3393 |
# the resulting binary.
|
|
|
3394 |
hardcode_shlibpath_var=$hardcode_shlibpath_var
|
|
|
3395 |
|
|
|
3396 |
# Variables whose values should be saved in libtool wrapper scripts and
|
|
|
3397 |
# restored at relink time.
|
|
|
3398 |
variables_saved_for_relink="$variables_saved_for_relink"
|
|
|
3399 |
|
|
|
3400 |
# Whether libtool must link a program against all its dependency libraries.
|
|
|
3401 |
link_all_deplibs=$link_all_deplibs
|
|
|
3402 |
|
|
|
3403 |
# Compile-time system search path for libraries
|
|
|
3404 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|
|
3405 |
|
|
|
3406 |
# Run-time system search path for libraries
|
|
|
3407 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
|
3408 |
|
|
|
3409 |
# Fix the shell variable \$srcfile for the compiler.
|
|
|
3410 |
fix_srcfile_path="$fix_srcfile_path"
|
|
|
3411 |
|
|
|
3412 |
# Set to yes if exported symbols are required.
|
|
|
3413 |
always_export_symbols=$always_export_symbols
|
|
|
3414 |
|
|
|
3415 |
# The commands to list exported symbols.
|
|
|
3416 |
export_symbols_cmds=$lt_export_symbols_cmds
|
|
|
3417 |
|
|
|
3418 |
# The commands to extract the exported symbol list from a shared archive.
|
|
|
3419 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|
|
3420 |
|
|
|
3421 |
# Symbols that should not be listed in the preloaded symbols.
|
|
|
3422 |
exclude_expsyms=$lt_exclude_expsyms
|
|
|
3423 |
|
|
|
3424 |
# Symbols that must always be exported.
|
|
|
3425 |
include_expsyms=$lt_include_expsyms
|
|
|
3426 |
|
|
|
3427 |
# ### END LIBTOOL CONFIG
|
|
|
3428 |
|
|
|
3429 |
__EOF__
|
|
|
3430 |
|
|
|
3431 |
case $host_os in
|
|
|
3432 |
aix3*)
|
|
|
3433 |
cat <<\EOF >> "${ofile}T"
|
|
|
3434 |
|
|
|
3435 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
3436 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
3437 |
# vanish in a puff of smoke.
|
|
|
3438 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
|
3439 |
COLLECT_NAMES=
|
|
|
3440 |
export COLLECT_NAMES
|
|
|
3441 |
fi
|
|
|
3442 |
EOF
|
|
|
3443 |
;;
|
|
|
3444 |
esac
|
|
|
3445 |
|
|
|
3446 |
case $host_os in
|
|
|
3447 |
cygwin* | mingw* | pw32* | os2*)
|
|
|
3448 |
cat <<'EOF' >> "${ofile}T"
|
|
|
3449 |
# This is a source program that is used to create dlls on Windows
|
|
|
3450 |
# Don't remove nor modify the starting and closing comments
|
|
|
3451 |
# /* ltdll.c starts here */
|
|
|
3452 |
# #define WIN32_LEAN_AND_MEAN
|
|
|
3453 |
# #include <windows.h>
|
|
|
3454 |
# #undef WIN32_LEAN_AND_MEAN
|
|
|
3455 |
# #include <stdio.h>
|
|
|
3456 |
#
|
|
|
3457 |
# #ifndef __CYGWIN__
|
|
|
3458 |
# # ifdef __CYGWIN32__
|
|
|
3459 |
# # define __CYGWIN__ __CYGWIN32__
|
|
|
3460 |
# # endif
|
|
|
3461 |
# #endif
|
|
|
3462 |
#
|
|
|
3463 |
# #ifdef __cplusplus
|
|
|
3464 |
# extern "C" {
|
|
|
3465 |
# #endif
|
|
|
3466 |
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
|
|
|
3467 |
# #ifdef __cplusplus
|
|
|
3468 |
# }
|
|
|
3469 |
# #endif
|
|
|
3470 |
#
|
|
|
3471 |
# #ifdef __CYGWIN__
|
|
|
3472 |
# #include <cygwin/cygwin_dll.h>
|
|
|
3473 |
# DECLARE_CYGWIN_DLL( DllMain );
|
|
|
3474 |
# #endif
|
|
|
3475 |
# HINSTANCE __hDllInstance_base;
|
|
|
3476 |
#
|
|
|
3477 |
# BOOL APIENTRY
|
|
|
3478 |
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
|
|
|
3479 |
# {
|
|
|
3480 |
# __hDllInstance_base = hInst;
|
|
|
3481 |
# return TRUE;
|
|
|
3482 |
# }
|
|
|
3483 |
# /* ltdll.c ends here */
|
|
|
3484 |
# This is a source program that is used to create import libraries
|
|
|
3485 |
# on Windows for dlls which lack them. Don't remove nor modify the
|
|
|
3486 |
# starting and closing comments
|
|
|
3487 |
# /* impgen.c starts here */
|
|
|
3488 |
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
|
|
|
3489 |
#
|
|
|
3490 |
# This file is part of GNU libtool.
|
|
|
3491 |
#
|
|
|
3492 |
# This program is free software; you can redistribute it and/or modify
|
|
|
3493 |
# it under the terms of the GNU General Public License as published by
|
|
|
3494 |
# the Free Software Foundation; either version 2 of the License, or
|
|
|
3495 |
# (at your option) any later version.
|
|
|
3496 |
#
|
|
|
3497 |
# This program is distributed in the hope that it will be useful,
|
|
|
3498 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
3499 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
3500 |
# GNU General Public License for more details.
|
|
|
3501 |
#
|
|
|
3502 |
# You should have received a copy of the GNU General Public License
|
|
|
3503 |
# along with this program; if not, write to the Free Software
|
|
|
3504 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
3505 |
# */
|
|
|
3506 |
#
|
|
|
3507 |
# #include <stdio.h> /* for printf() */
|
|
|
3508 |
# #include <unistd.h> /* for open(), lseek(), read() */
|
|
|
3509 |
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
|
|
|
3510 |
# #include <string.h> /* for strdup() */
|
|
|
3511 |
#
|
|
|
3512 |
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
|
|
|
3513 |
# #ifndef O_BINARY
|
|
|
3514 |
# #define O_BINARY 0
|
|
|
3515 |
# #endif
|
|
|
3516 |
#
|
|
|
3517 |
# static unsigned int
|
|
|
3518 |
# pe_get16 (fd, offset)
|
|
|
3519 |
# int fd;
|
|
|
3520 |
# int offset;
|
|
|
3521 |
# {
|
|
|
3522 |
# unsigned char b[2];
|
|
|
3523 |
# lseek (fd, offset, SEEK_SET);
|
|
|
3524 |
# read (fd, b, 2);
|
|
|
3525 |
# return b[0] + (b[1]<<8);
|
|
|
3526 |
# }
|
|
|
3527 |
#
|
|
|
3528 |
# static unsigned int
|
|
|
3529 |
# pe_get32 (fd, offset)
|
|
|
3530 |
# int fd;
|
|
|
3531 |
# int offset;
|
|
|
3532 |
# {
|
|
|
3533 |
# unsigned char b[4];
|
|
|
3534 |
# lseek (fd, offset, SEEK_SET);
|
|
|
3535 |
# read (fd, b, 4);
|
|
|
3536 |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
|
|
|
3537 |
# }
|
|
|
3538 |
#
|
|
|
3539 |
# static unsigned int
|
|
|
3540 |
# pe_as32 (ptr)
|
|
|
3541 |
# void *ptr;
|
|
|
3542 |
# {
|
|
|
3543 |
# unsigned char *b = ptr;
|
|
|
3544 |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
|
|
|
3545 |
# }
|
|
|
3546 |
#
|
|
|
3547 |
# int
|
|
|
3548 |
# main (argc, argv)
|
|
|
3549 |
# int argc;
|
|
|
3550 |
# char *argv[];
|
|
|
3551 |
# {
|
|
|
3552 |
# int dll;
|
|
|
3553 |
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
|
|
|
3554 |
# unsigned long export_rva, export_size, nsections, secptr, expptr;
|
|
|
3555 |
# unsigned long name_rvas, nexp;
|
|
|
3556 |
# unsigned char *expdata, *erva;
|
|
|
3557 |
# char *filename, *dll_name;
|
|
|
3558 |
#
|
|
|
3559 |
# filename = argv[1];
|
|
|
3560 |
#
|
|
|
3561 |
# dll = open(filename, O_RDONLY|O_BINARY);
|
|
|
3562 |
# if (dll < 1)
|
|
|
3563 |
# return 1;
|
|
|
3564 |
#
|
|
|
3565 |
# dll_name = filename;
|
|
|
3566 |
#
|
|
|
3567 |
# for (i=0; filename[i]; i++)
|
|
|
3568 |
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
|
|
|
3569 |
# dll_name = filename + i +1;
|
|
|
3570 |
#
|
|
|
3571 |
# pe_header_offset = pe_get32 (dll, 0x3c);
|
|
|
3572 |
# opthdr_ofs = pe_header_offset + 4 + 20;
|
|
|
3573 |
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
|
|
|
3574 |
#
|
|
|
3575 |
# if (num_entries < 1) /* no exports */
|
|
|
3576 |
# return 1;
|
|
|
3577 |
#
|
|
|
3578 |
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
|
|
|
3579 |
# export_size = pe_get32 (dll, opthdr_ofs + 100);
|
|
|
3580 |
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
|
|
|
3581 |
# secptr = (pe_header_offset + 4 + 20 +
|
|
|
3582 |
# pe_get16 (dll, pe_header_offset + 4 + 16));
|
|
|
3583 |
#
|
|
|
3584 |
# expptr = 0;
|
|
|
3585 |
# for (i = 0; i < nsections; i++)
|
|
|
3586 |
# {
|
|
|
3587 |
# char sname[8];
|
|
|
3588 |
# unsigned long secptr1 = secptr + 40 * i;
|
|
|
3589 |
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
|
|
|
3590 |
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
|
|
|
3591 |
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
|
|
|
3592 |
# lseek(dll, secptr1, SEEK_SET);
|
|
|
3593 |
# read(dll, sname, 8);
|
|
|
3594 |
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
|
|
|
3595 |
# {
|
|
|
3596 |
# expptr = fptr + (export_rva - vaddr);
|
|
|
3597 |
# if (export_rva + export_size > vaddr + vsize)
|
|
|
3598 |
# export_size = vsize - (export_rva - vaddr);
|
|
|
3599 |
# break;
|
|
|
3600 |
# }
|
|
|
3601 |
# }
|
|
|
3602 |
#
|
|
|
3603 |
# expdata = (unsigned char*)malloc(export_size);
|
|
|
3604 |
# lseek (dll, expptr, SEEK_SET);
|
|
|
3605 |
# read (dll, expdata, export_size);
|
|
|
3606 |
# erva = expdata - export_rva;
|
|
|
3607 |
#
|
|
|
3608 |
# nexp = pe_as32 (expdata+24);
|
|
|
3609 |
# name_rvas = pe_as32 (expdata+32);
|
|
|
3610 |
#
|
|
|
3611 |
# printf ("EXPORTS\n");
|
|
|
3612 |
# for (i = 0; i<nexp; i++)
|
|
|
3613 |
# {
|
|
|
3614 |
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
|
|
|
3615 |
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
|
|
|
3616 |
# }
|
|
|
3617 |
#
|
|
|
3618 |
# return 0;
|
|
|
3619 |
# }
|
|
|
3620 |
# /* impgen.c ends here */
|
|
|
3621 |
|
|
|
3622 |
EOF
|
|
|
3623 |
;;
|
|
|
3624 |
esac
|
|
|
3625 |
|
|
|
3626 |
# We use sed instead of cat because bash on DJGPP gets confused if
|
|
|
3627 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
|
3628 |
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
|
3629 |
# is reportedly fixed, but why not run on old versions too?
|
|
|
3630 |
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
|
|
|
3631 |
|
|
|
3632 |
mv -f "${ofile}T" "$ofile" || \
|
|
|
3633 |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
|
|
|
3634 |
chmod +x "$ofile"
|
|
|
3635 |
fi
|
|
|
3636 |
|
|
|
3637 |
])# _LT_AC_LTCONFIG_HACK
|
|
|
3638 |
|
|
|
3639 |
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
|
|
|
3640 |
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
|
|
|
3641 |
|
|
|
3642 |
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
|
|
|
3643 |
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
|
|
|
3644 |
|
|
|
3645 |
# AC_ENABLE_SHARED - implement the --enable-shared flag
|
|
|
3646 |
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
|
|
|
3647 |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
|
|
|
3648 |
# `yes'.
|
|
|
3649 |
AC_DEFUN([AC_ENABLE_SHARED],
|
|
|
3650 |
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
|
|
3651 |
AC_ARG_ENABLE(shared,
|
|
|
3652 |
changequote(<<, >>)dnl
|
|
|
3653 |
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
|
|
|
3654 |
changequote([, ])dnl
|
|
|
3655 |
[p=${PACKAGE-default}
|
|
|
3656 |
case $enableval in
|
|
|
3657 |
yes) enable_shared=yes ;;
|
|
|
3658 |
no) enable_shared=no ;;
|
|
|
3659 |
*)
|
|
|
3660 |
enable_shared=no
|
|
|
3661 |
# Look at the argument we got. We use all the common list separators.
|
|
|
3662 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|
|
3663 |
for pkg in $enableval; do
|
|
|
3664 |
if test "X$pkg" = "X$p"; then
|
|
|
3665 |
enable_shared=yes
|
|
|
3666 |
fi
|
|
|
3667 |
done
|
|
|
3668 |
IFS="$ac_save_ifs"
|
|
|
3669 |
;;
|
|
|
3670 |
esac],
|
|
|
3671 |
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
|
|
|
3672 |
])
|
|
|
3673 |
|
|
|
3674 |
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
|
|
|
3675 |
AC_DEFUN([AC_DISABLE_SHARED],
|
|
|
3676 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
|
3677 |
AC_ENABLE_SHARED(no)])
|
|
|
3678 |
|
|
|
3679 |
# AC_ENABLE_STATIC - implement the --enable-static flag
|
|
|
3680 |
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
|
|
|
3681 |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
|
|
|
3682 |
# `yes'.
|
|
|
3683 |
AC_DEFUN([AC_ENABLE_STATIC],
|
|
|
3684 |
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
|
|
3685 |
AC_ARG_ENABLE(static,
|
|
|
3686 |
changequote(<<, >>)dnl
|
|
|
3687 |
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
|
|
|
3688 |
changequote([, ])dnl
|
|
|
3689 |
[p=${PACKAGE-default}
|
|
|
3690 |
case $enableval in
|
|
|
3691 |
yes) enable_static=yes ;;
|
|
|
3692 |
no) enable_static=no ;;
|
|
|
3693 |
*)
|
|
|
3694 |
enable_static=no
|
|
|
3695 |
# Look at the argument we got. We use all the common list separators.
|
|
|
3696 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|
|
3697 |
for pkg in $enableval; do
|
|
|
3698 |
if test "X$pkg" = "X$p"; then
|
|
|
3699 |
enable_static=yes
|
|
|
3700 |
fi
|
|
|
3701 |
done
|
|
|
3702 |
IFS="$ac_save_ifs"
|
|
|
3703 |
;;
|
|
|
3704 |
esac],
|
|
|
3705 |
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
|
|
|
3706 |
])
|
|
|
3707 |
|
|
|
3708 |
# AC_DISABLE_STATIC - set the default static flag to --disable-static
|
|
|
3709 |
AC_DEFUN([AC_DISABLE_STATIC],
|
|
|
3710 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
|
3711 |
AC_ENABLE_STATIC(no)])
|
|
|
3712 |
|
|
|
3713 |
|
|
|
3714 |
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
|
|
|
3715 |
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
|
|
|
3716 |
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
|
|
|
3717 |
# `yes'.
|
|
|
3718 |
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
|
|
|
3719 |
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
|
|
|
3720 |
AC_ARG_ENABLE(fast-install,
|
|
|
3721 |
changequote(<<, >>)dnl
|
|
|
3722 |
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
|
|
|
3723 |
changequote([, ])dnl
|
|
|
3724 |
[p=${PACKAGE-default}
|
|
|
3725 |
case $enableval in
|
|
|
3726 |
yes) enable_fast_install=yes ;;
|
|
|
3727 |
no) enable_fast_install=no ;;
|
|
|
3728 |
*)
|
|
|
3729 |
enable_fast_install=no
|
|
|
3730 |
# Look at the argument we got. We use all the common list separators.
|
|
|
3731 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|
|
3732 |
for pkg in $enableval; do
|
|
|
3733 |
if test "X$pkg" = "X$p"; then
|
|
|
3734 |
enable_fast_install=yes
|
|
|
3735 |
fi
|
|
|
3736 |
done
|
|
|
3737 |
IFS="$ac_save_ifs"
|
|
|
3738 |
;;
|
|
|
3739 |
esac],
|
|
|
3740 |
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
|
|
|
3741 |
])
|
|
|
3742 |
|
|
|
3743 |
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
|
|
|
3744 |
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
|
|
|
3745 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
|
3746 |
AC_ENABLE_FAST_INSTALL(no)])
|
|
|
3747 |
|
|
|
3748 |
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
|
|
|
3749 |
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
|
|
|
3750 |
# Where MODE is either `yes' or `no'. If omitted, it defaults to
|
|
|
3751 |
# `both'.
|
|
|
3752 |
AC_DEFUN([AC_LIBTOOL_PICMODE],
|
|
|
3753 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
|
3754 |
pic_mode=ifelse($#,1,$1,default)])
|
|
|
3755 |
|
|
|
3756 |
|
|
|
3757 |
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
|
|
|
3758 |
AC_DEFUN([AC_PATH_TOOL_PREFIX],
|
|
|
3759 |
[AC_MSG_CHECKING([for $1])
|
|
|
3760 |
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
|
|
3761 |
[case $MAGIC_CMD in
|
|
|
3762 |
/*)
|
|
|
3763 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|
|
3764 |
;;
|
|
|
3765 |
?:/*)
|
|
|
3766 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|
|
3767 |
;;
|
|
|
3768 |
*)
|
|
|
3769 |
ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|
|
3770 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
3771 |
dnl $ac_dummy forces splitting on constant user-supplied paths.
|
|
|
3772 |
dnl POSIX.2 word splitting is done only on the output of word expansions,
|
|
|
3773 |
dnl not every word. This closes a longstanding sh security hole.
|
|
|
3774 |
ac_dummy="ifelse([$2], , $PATH, [$2])"
|
|
|
3775 |
for ac_dir in $ac_dummy; do
|
|
|
3776 |
test -z "$ac_dir" && ac_dir=.
|
|
|
3777 |
if test -f $ac_dir/$1; then
|
|
|
3778 |
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
|
|
3779 |
if test -n "$file_magic_test_file"; then
|
|
|
3780 |
case $deplibs_check_method in
|
|
|
3781 |
"file_magic "*)
|
|
|
3782 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|
|
3783 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
|
3784 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
|
3785 |
egrep "$file_magic_regex" > /dev/null; then
|
|
|
3786 |
:
|
|
|
3787 |
else
|
|
|
3788 |
cat <<EOF 1>&2
|
|
|
3789 |
|
|
|
3790 |
*** Warning: the command libtool uses to detect shared libraries,
|
|
|
3791 |
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
|
|
3792 |
*** The result is that libtool may fail to recognize shared libraries
|
|
|
3793 |
*** as such. This will affect the creation of libtool libraries that
|
|
|
3794 |
*** depend on shared libraries, but programs linked with such libtool
|
|
|
3795 |
*** libraries will work regardless of this problem. Nevertheless, you
|
|
|
3796 |
*** may want to report the problem to your system manager and/or to
|
|
|
3797 |
*** bug-libtool@gnu.org
|
|
|
3798 |
|
|
|
3799 |
EOF
|
|
|
3800 |
fi ;;
|
|
|
3801 |
esac
|
|
|
3802 |
fi
|
|
|
3803 |
break
|
|
|
3804 |
fi
|
|
|
3805 |
done
|
|
|
3806 |
IFS="$ac_save_ifs"
|
|
|
3807 |
MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|
|
3808 |
;;
|
312 |
;;
|
3809 |
esac])
|
313 |
esac])
|
3810 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
314 |
with_gnu_ld=$acl_cv_prog_gnu_ld
|
3811 |
if test -n "$MAGIC_CMD"; then
|
315 |
])
|
3812 |
AC_MSG_RESULT($MAGIC_CMD)
|
316 |
|
3813 |
else
|
317 |
dnl From libtool-2.4. Sets the variable LD.
|
3814 |
AC_MSG_RESULT(no)
|
318 |
AC_DEFUN([AC_LIB_PROG_LD],
|
|
|
319 |
[AC_REQUIRE([AC_PROG_CC])dnl
|
|
|
320 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
321 |
|
|
|
322 |
AC_ARG_WITH([gnu-ld],
|
|
|
323 |
[AS_HELP_STRING([--with-gnu-ld],
|
|
|
324 |
[assume the C compiler uses GNU ld [default=no]])],
|
|
|
325 |
[test "$withval" = no || with_gnu_ld=yes],
|
|
|
326 |
[with_gnu_ld=no])dnl
|
|
|
327 |
|
|
|
328 |
# Prepare PATH_SEPARATOR.
|
|
|
329 |
# The user is always right.
|
|
|
330 |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
|
331 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
|
|
|
332 |
# contains only /bin. Note that ksh looks also at the FPATH variable,
|
|
|
333 |
# so we have to set that as well for the test.
|
|
|
334 |
PATH_SEPARATOR=:
|
|
|
335 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
|
|
|
336 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
|
|
|
337 |
|| PATH_SEPARATOR=';'
|
|
|
338 |
}
|
3815 |
fi
|
339 |
fi
|
3816 |
])
|
|
|
3817 |
|
340 |
|
3818 |
|
|
|
3819 |
# AC_PATH_MAGIC - find a file program which can recognise a shared library
|
|
|
3820 |
AC_DEFUN([AC_PATH_MAGIC],
|
|
|
3821 |
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
|
|
|
3822 |
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
|
|
|
3823 |
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|
|
3824 |
if test -n "$ac_tool_prefix"; then
|
|
|
3825 |
AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
|
|
|
3826 |
else
|
|
|
3827 |
MAGIC_CMD=:
|
|
|
3828 |
fi
|
|
|
3829 |
fi
|
|
|
3830 |
])
|
|
|
3831 |
|
|
|
3832 |
|
|
|
3833 |
# AC_PROG_LD - find the path to the GNU or non-GNU linker
|
|
|
3834 |
AC_DEFUN([AC_PROG_LD],
|
|
|
3835 |
[AC_ARG_WITH(gnu-ld,
|
|
|
3836 |
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
|
|
3837 |
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
|
|
3838 |
AC_REQUIRE([AC_PROG_CC])dnl
|
|
|
3839 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
3840 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
|
3841 |
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
|
|
|
3842 |
ac_prog=ld
|
341 |
ac_prog=ld
|
3843 |
if test "$GCC" = yes; then
|
342 |
if test "$GCC" = yes; then
|
3844 |
# Check if gcc -print-prog-name=ld gives a path.
|
343 |
# Check if gcc -print-prog-name=ld gives a path.
|
3845 |
AC_MSG_CHECKING([for ld used by GCC])
|
344 |
AC_MSG_CHECKING([for ld used by $CC])
|
3846 |
case $host in
|
345 |
case $host in
|
3847 |
*-*-mingw*)
|
346 |
*-*-mingw*)
|
3848 |
# gcc leaves a trailing carriage return which upsets mingw
|
347 |
# gcc leaves a trailing carriage return which upsets mingw
|
3849 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
348 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
3850 |
*)
|
349 |
*)
|
3851 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
350 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
3852 |
esac
|
351 |
esac
|
3853 |
case $ac_prog in
|
352 |
case $ac_prog in
|
3854 |
# Accept absolute paths.
|
353 |
# Accept absolute paths.
|
3855 |
[[\\/]]* | [[A-Za-z]]:[[\\/]]*)
|
354 |
[[\\/]]* | ?:[[\\/]]*)
|
3856 |
re_direlt='/[[^/]][[^/]]*/\.\./'
|
355 |
re_direlt='/[[^/]][[^/]]*/\.\./'
|
3857 |
# Canonicalize the path of ld
|
356 |
# Canonicalize the pathname of ld
|
3858 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
357 |
ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
|
3859 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
358 |
while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
|
3860 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
359 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
3861 |
done
|
360 |
done
|
3862 |
test -z "$LD" && LD="$ac_prog"
|
361 |
test -z "$LD" && LD="$ac_prog"
|
3863 |
;;
|
362 |
;;
|
3864 |
"")
|
363 |
"")
|
3865 |
# If it fails, then pretend we aren't using GCC.
|
364 |
# If it fails, then pretend we aren't using GCC.
|
|
... |
|
... |
3873 |
elif test "$with_gnu_ld" = yes; then
|
372 |
elif test "$with_gnu_ld" = yes; then
|
3874 |
AC_MSG_CHECKING([for GNU ld])
|
373 |
AC_MSG_CHECKING([for GNU ld])
|
3875 |
else
|
374 |
else
|
3876 |
AC_MSG_CHECKING([for non-GNU ld])
|
375 |
AC_MSG_CHECKING([for non-GNU ld])
|
3877 |
fi
|
376 |
fi
|
3878 |
AC_CACHE_VAL(lt_cv_path_LD,
|
377 |
AC_CACHE_VAL([acl_cv_path_LD],
|
3879 |
[if test -z "$LD"; then
|
378 |
[if test -z "$LD"; then
|
3880 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
379 |
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
3881 |
for ac_dir in $PATH; do
|
380 |
for ac_dir in $PATH; do
|
|
|
381 |
IFS="$acl_save_ifs"
|
3882 |
test -z "$ac_dir" && ac_dir=.
|
382 |
test -z "$ac_dir" && ac_dir=.
|
3883 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
383 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
3884 |
lt_cv_path_LD="$ac_dir/$ac_prog"
|
384 |
acl_cv_path_LD="$ac_dir/$ac_prog"
|
3885 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
385 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
3886 |
# but apparently some GNU ld's only accept -v.
|
386 |
# but apparently some variants of GNU ld only accept -v.
|
3887 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
387 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
3888 |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
388 |
case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
|
|
|
389 |
*GNU* | *'with BFD'*)
|
3889 |
test "$with_gnu_ld" != no && break
|
390 |
test "$with_gnu_ld" != no && break
|
3890 |
else
|
391 |
;;
|
|
|
392 |
*)
|
3891 |
test "$with_gnu_ld" != yes && break
|
393 |
test "$with_gnu_ld" != yes && break
|
3892 |
fi
|
394 |
;;
|
|
|
395 |
esac
|
3893 |
fi
|
396 |
fi
|
3894 |
done
|
397 |
done
|
3895 |
IFS="$ac_save_ifs"
|
398 |
IFS="$acl_save_ifs"
|
3896 |
else
|
399 |
else
|
3897 |
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
400 |
acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
3898 |
fi])
|
401 |
fi])
|
3899 |
LD="$lt_cv_path_LD"
|
402 |
LD="$acl_cv_path_LD"
|
3900 |
if test -n "$LD"; then
|
403 |
if test -n "$LD"; then
|
3901 |
AC_MSG_RESULT($LD)
|
404 |
AC_MSG_RESULT([$LD])
|
3902 |
else
|
405 |
else
|
3903 |
AC_MSG_RESULT(no)
|
406 |
AC_MSG_RESULT([no])
|
3904 |
fi
|
407 |
fi
|
3905 |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
408 |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
3906 |
AC_PROG_LD_GNU
|
409 |
AC_LIB_PROG_LD_GNU
|
3907 |
])
|
410 |
])
|
3908 |
|
411 |
|
3909 |
# AC_PROG_LD_GNU -
|
|
|
3910 |
AC_DEFUN([AC_PROG_LD_GNU],
|
|
|
3911 |
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
|
|
3912 |
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
|
3913 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
|
3914 |
lt_cv_prog_gnu_ld=yes
|
|
|
3915 |
else
|
|
|
3916 |
lt_cv_prog_gnu_ld=no
|
|
|
3917 |
fi])
|
|
|
3918 |
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
|
3919 |
])
|
|
|
3920 |
|
|
|
3921 |
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
|
|
|
3922 |
# -- PORTME Some linkers may need a different reload flag.
|
|
|
3923 |
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
|
|
|
3924 |
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
|
|
|
3925 |
[lt_cv_ld_reload_flag='-r'])
|
|
|
3926 |
reload_flag=$lt_cv_ld_reload_flag
|
|
|
3927 |
test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|
|
3928 |
])
|
|
|
3929 |
|
|
|
3930 |
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
|
|
|
3931 |
# -- PORTME fill in with the dynamic library characteristics
|
|
|
3932 |
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
|
|
|
3933 |
[AC_CACHE_CHECK([how to recognise dependent libraries],
|
|
|
3934 |
lt_cv_deplibs_check_method,
|
|
|
3935 |
[lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
|
3936 |
lt_cv_file_magic_test_file=
|
|
|
3937 |
lt_cv_deplibs_check_method='unknown'
|
|
|
3938 |
# Need to set the preceding variable on all platforms that support
|
|
|
3939 |
# interlibrary dependencies.
|
|
|
3940 |
# 'none' -- dependencies not supported.
|
|
|
3941 |
# `unknown' -- same as none, but documents that we really don't know.
|
|
|
3942 |
# 'pass_all' -- all dependencies passed with no checks.
|
|
|
3943 |
# 'test_compile' -- check by making test program.
|
|
|
3944 |
# 'file_magic [[regex]]' -- check by looking for files in library path
|
|
|
3945 |
# which responds to the $file_magic_cmd with a given egrep regex.
|
|
|
3946 |
# If you have `file' or equivalent on your system and you're not sure
|
|
|
3947 |
# whether `pass_all' will *always* work, you probably want this one.
|
|
|
3948 |
|
|
|
3949 |
case $host_os in
|
|
|
3950 |
aix4* | aix5*)
|
|
|
3951 |
lt_cv_deplibs_check_method=pass_all
|
|
|
3952 |
;;
|
|
|
3953 |
|
|
|
3954 |
beos*)
|
|
|
3955 |
lt_cv_deplibs_check_method=pass_all
|
|
|
3956 |
;;
|
|
|
3957 |
|
|
|
3958 |
bsdi4*)
|
|
|
3959 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
|
|
3960 |
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
|
3961 |
lt_cv_file_magic_test_file=/shlib/libc.so
|
|
|
3962 |
;;
|
|
|
3963 |
|
|
|
3964 |
cygwin* | mingw* | pw32*)
|
|
|
3965 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
|
3966 |
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
|
3967 |
;;
|
|
|
3968 |
|
|
|
3969 |
darwin* | rhapsody*)
|
|
|
3970 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|
|
3971 |
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
|
3972 |
case "$host_os" in
|
|
|
3973 |
rhapsody* | darwin1.[[012]])
|
|
|
3974 |
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
|
|
|
3975 |
;;
|
|
|
3976 |
*) # Darwin 1.3 on
|
|
|
3977 |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|
|
3978 |
;;
|
|
|
3979 |
esac
|
|
|
3980 |
;;
|
|
|
3981 |
|
|
|
3982 |
freebsd*)
|
|
|
3983 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
|
3984 |
case $host_cpu in
|
|
|
3985 |
i*86 )
|
|
|
3986 |
# Not sure whether the presence of OpenBSD here was a mistake.
|
|
|
3987 |
# Let's accept both of them until this is cleared up.
|
|
|
3988 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
|
|
|
3989 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
3990 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
|
3991 |
;;
|
|
|
3992 |
esac
|
|
|
3993 |
else
|
|
|
3994 |
lt_cv_deplibs_check_method=pass_all
|
|
|
3995 |
fi
|
|
|
3996 |
;;
|
|
|
3997 |
|
|
|
3998 |
gnu*)
|
|
|
3999 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4000 |
;;
|
|
|
4001 |
|
|
|
4002 |
hpux10.20*|hpux11*)
|
|
|
4003 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
|
|
|
4004 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4005 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|
|
4006 |
;;
|
|
|
4007 |
|
|
|
4008 |
irix5* | irix6* | nonstopux*)
|
|
|
4009 |
case $host_os in
|
|
|
4010 |
irix5* | nonstopux*)
|
|
|
4011 |
# this will be overridden with pass_all, but let us keep it just in case
|
|
|
4012 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|
|
4013 |
;;
|
|
|
4014 |
*)
|
|
|
4015 |
case $LD in
|
|
|
4016 |
*-32|*"-32 ") libmagic=32-bit;;
|
|
|
4017 |
*-n32|*"-n32 ") libmagic=N32;;
|
|
|
4018 |
*-64|*"-64 ") libmagic=64-bit;;
|
|
|
4019 |
*) libmagic=never-match;;
|
|
|
4020 |
esac
|
|
|
4021 |
# this will be overridden with pass_all, but let us keep it just in case
|
|
|
4022 |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
|
|
|
4023 |
;;
|
|
|
4024 |
esac
|
|
|
4025 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|
|
4026 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4027 |
;;
|
|
|
4028 |
|
|
|
4029 |
# This must be Linux ELF.
|
|
|
4030 |
linux-gnu*)
|
|
|
4031 |
case $host_cpu in
|
|
|
4032 |
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
|
|
|
4033 |
lt_cv_deplibs_check_method=pass_all ;;
|
|
|
4034 |
*)
|
|
|
4035 |
# glibc up to 2.1.1 does not perform some relocations on ARM
|
|
|
4036 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
|
|
|
4037 |
esac
|
|
|
4038 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|
|
4039 |
;;
|
|
|
4040 |
|
|
|
4041 |
netbsd*)
|
|
|
4042 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
|
4043 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
|
|
|
4044 |
else
|
|
|
4045 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
|
|
|
4046 |
fi
|
|
|
4047 |
;;
|
|
|
4048 |
|
|
|
4049 |
newos6*)
|
|
|
4050 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
|
|
4051 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4052 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|
|
4053 |
;;
|
|
|
4054 |
|
|
|
4055 |
openbsd*)
|
|
|
4056 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4057 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
|
4058 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
4059 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
|
|
|
4060 |
else
|
|
|
4061 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
|
|
|
4062 |
fi
|
|
|
4063 |
;;
|
|
|
4064 |
|
|
|
4065 |
osf3* | osf4* | osf5*)
|
|
|
4066 |
# this will be overridden with pass_all, but let us keep it just in case
|
|
|
4067 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|
|
4068 |
lt_cv_file_magic_test_file=/shlib/libc.so
|
|
|
4069 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4070 |
;;
|
|
|
4071 |
|
|
|
4072 |
sco3.2v5*)
|
|
|
4073 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4074 |
;;
|
|
|
4075 |
|
|
|
4076 |
solaris*)
|
|
|
4077 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4078 |
lt_cv_file_magic_test_file=/lib/libc.so
|
|
|
4079 |
;;
|
|
|
4080 |
|
|
|
4081 |
sysv5uw[[78]]* | sysv4*uw2*)
|
|
|
4082 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4083 |
;;
|
|
|
4084 |
|
|
|
4085 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
|
4086 |
case $host_vendor in
|
|
|
4087 |
motorola)
|
|
|
4088 |
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]]'
|
|
|
4089 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|
|
4090 |
;;
|
|
|
4091 |
ncr)
|
|
|
4092 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4093 |
;;
|
|
|
4094 |
sequent)
|
|
|
4095 |
lt_cv_file_magic_cmd='/bin/file'
|
|
|
4096 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
|
|
4097 |
;;
|
|
|
4098 |
sni)
|
|
|
4099 |
lt_cv_file_magic_cmd='/bin/file'
|
|
|
4100 |
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
|
|
4101 |
lt_cv_file_magic_test_file=/lib/libc.so
|
|
|
4102 |
;;
|
|
|
4103 |
siemens)
|
|
|
4104 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4105 |
;;
|
|
|
4106 |
esac
|
|
|
4107 |
;;
|
|
|
4108 |
esac
|
|
|
4109 |
])
|
|
|
4110 |
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
|
4111 |
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
|
4112 |
])
|
|
|
4113 |
|
|
|
4114 |
|
|
|
4115 |
# AC_PROG_NM - find the path to a BSD-compatible name lister
|
|
|
4116 |
AC_DEFUN([AC_PROG_NM],
|
|
|
4117 |
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
|
|
|
4118 |
AC_MSG_CHECKING([for BSD-compatible nm])
|
|
|
4119 |
AC_CACHE_VAL(lt_cv_path_NM,
|
|
|
4120 |
[if test -n "$NM"; then
|
|
|
4121 |
# Let the user override the test.
|
|
|
4122 |
lt_cv_path_NM="$NM"
|
|
|
4123 |
else
|
|
|
4124 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
4125 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|
|
4126 |
test -z "$ac_dir" && ac_dir=.
|
|
|
4127 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|
|
4128 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|
|
4129 |
# Check to see if the nm accepts a BSD-compat flag.
|
|
|
4130 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
|
4131 |
# nm: unknown option "B" ignored
|
|
|
4132 |
# Tru64's nm complains that /dev/null is an invalid object file
|
|
|
4133 |
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|
|
4134 |
lt_cv_path_NM="$tmp_nm -B"
|
|
|
4135 |
break
|
|
|
4136 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|
|
4137 |
lt_cv_path_NM="$tmp_nm -p"
|
|
|
4138 |
break
|
|
|
4139 |
else
|
|
|
4140 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
|
4141 |
continue # so that we can try to find one that supports BSD flags
|
|
|
4142 |
fi
|
|
|
4143 |
fi
|
|
|
4144 |
done
|
|
|
4145 |
IFS="$ac_save_ifs"
|
|
|
4146 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|
|
4147 |
fi])
|
|
|
4148 |
NM="$lt_cv_path_NM"
|
|
|
4149 |
AC_MSG_RESULT([$NM])
|
|
|
4150 |
])
|
|
|
4151 |
|
|
|
4152 |
# AC_CHECK_LIBM - check for math library
|
|
|
4153 |
AC_DEFUN([AC_CHECK_LIBM],
|
|
|
4154 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
4155 |
LIBM=
|
|
|
4156 |
case $host in
|
|
|
4157 |
*-*-beos* | *-*-cygwin* | *-*-pw32*)
|
|
|
4158 |
# These system don't have libm
|
|
|
4159 |
;;
|
|
|
4160 |
*-ncr-sysv4.3*)
|
|
|
4161 |
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
|
|
4162 |
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
|
|
|
4163 |
;;
|
|
|
4164 |
*)
|
|
|
4165 |
AC_CHECK_LIB(m, main, LIBM="-lm")
|
|
|
4166 |
;;
|
|
|
4167 |
esac
|
|
|
4168 |
])
|
|
|
4169 |
|
|
|
4170 |
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
|
|
|
4171 |
# the libltdl convenience library and LTDLINCL to the include flags for
|
|
|
4172 |
# the libltdl header and adds --enable-ltdl-convenience to the
|
|
|
4173 |
# configure arguments. Note that LIBLTDL and LTDLINCL are not
|
|
|
4174 |
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
|
|
|
4175 |
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
|
|
|
4176 |
# with '${top_builddir}/' and LTDLINCL will be prefixed with
|
|
|
4177 |
# '${top_srcdir}/' (note the single quotes!). If your package is not
|
|
|
4178 |
# flat and you're not using automake, define top_builddir and
|
|
|
4179 |
# top_srcdir appropriately in the Makefiles.
|
|
|
4180 |
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
|
|
4181 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
|
4182 |
case $enable_ltdl_convenience in
|
|
|
4183 |
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
|
|
4184 |
"") enable_ltdl_convenience=yes
|
|
|
4185 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
|
|
4186 |
esac
|
|
|
4187 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
|
|
|
4188 |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
|
|
4189 |
# For backwards non-gettext consistent compatibility...
|
|
|
4190 |
INCLTDL="$LTDLINCL"
|
|
|
4191 |
])
|
|
|
4192 |
|
|
|
4193 |
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
|
|
|
4194 |
# the libltdl installable library and LTDLINCL to the include flags for
|
|
|
4195 |
# the libltdl header and adds --enable-ltdl-install to the configure
|
|
|
4196 |
# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
|
|
|
4197 |
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
|
|
|
4198 |
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
|
|
|
4199 |
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
|
|
|
4200 |
# with '${top_srcdir}/' (note the single quotes!). If your package is
|
|
|
4201 |
# not flat and you're not using automake, define top_builddir and
|
|
|
4202 |
# top_srcdir appropriately in the Makefiles.
|
|
|
4203 |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
|
|
4204 |
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
|
|
4205 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
|
4206 |
AC_CHECK_LIB(ltdl, main,
|
|
|
4207 |
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
|
|
|
4208 |
[if test x"$enable_ltdl_install" = xno; then
|
|
|
4209 |
AC_MSG_WARN([libltdl not installed, but installation disabled])
|
|
|
4210 |
else
|
|
|
4211 |
enable_ltdl_install=yes
|
|
|
4212 |
fi
|
|
|
4213 |
])
|
|
|
4214 |
if test x"$enable_ltdl_install" = x"yes"; then
|
|
|
4215 |
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
|
|
4216 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
|
|
|
4217 |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
|
|
4218 |
else
|
|
|
4219 |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
|
|
4220 |
LIBLTDL="-lltdl"
|
|
|
4221 |
LTDLINCL=
|
|
|
4222 |
fi
|
|
|
4223 |
# For backwards non-gettext consistent compatibility...
|
|
|
4224 |
INCLTDL="$LTDLINCL"
|
|
|
4225 |
])
|
|
|
4226 |
|
|
|
4227 |
# old names
|
|
|
4228 |
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
|
|
|
4229 |
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
|
|
4230 |
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
|
|
4231 |
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
|
|
4232 |
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
|
|
4233 |
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
|
|
|
4234 |
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
|
|
|
4235 |
|
|
|
4236 |
# This is just to silence aclocal about the macro not being used
|
|
|
4237 |
ifelse([AC_DISABLE_FAST_INSTALL])
|
|
|
4238 |
|
|
|
4239 |
# NOTE: This macro has been submitted for inclusion into #
|
|
|
4240 |
# GNU Autoconf as AC_PROG_SED. When it is available in #
|
|
|
4241 |
# a released version of Autoconf we should remove this #
|
|
|
4242 |
# macro and use it instead. #
|
|
|
4243 |
# LT_AC_PROG_SED
|
|
|
4244 |
# --------------
|
|
|
4245 |
# Check for a fully-functional sed program, that truncates
|
|
|
4246 |
# as few characters as possible. Prefer GNU sed if found.
|
|
|
4247 |
AC_DEFUN([LT_AC_PROG_SED],
|
|
|
4248 |
[AC_MSG_CHECKING([for a sed that does not truncate output])
|
|
|
4249 |
AC_CACHE_VAL(lt_cv_path_SED,
|
|
|
4250 |
[# Loop through the user's path and test for sed and gsed.
|
|
|
4251 |
# Then use that list of sed's as ones to test for truncation.
|
|
|
4252 |
as_executable_p="test -f"
|
|
|
4253 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
4254 |
for as_dir in $PATH
|
|
|
4255 |
do
|
|
|
4256 |
IFS=$as_save_IFS
|
|
|
4257 |
test -z "$as_dir" && as_dir=.
|
|
|
4258 |
for ac_prog in sed gsed; do
|
|
|
4259 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
4260 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
|
|
4261 |
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
|
|
|
4262 |
fi
|
|
|
4263 |
done
|
|
|
4264 |
done
|
|
|
4265 |
done
|
|
|
4266 |
|
|
|
4267 |
# Create a temporary directory, and hook for its removal unless debugging.
|
|
|
4268 |
$debug ||
|
|
|
4269 |
{
|
|
|
4270 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
|
|
4271 |
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
|
|
4272 |
}
|
|
|
4273 |
|
|
|
4274 |
# Create a (secure) tmp directory for tmp files.
|
|
|
4275 |
: ${TMPDIR=/tmp}
|
|
|
4276 |
{
|
|
|
4277 |
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
|
|
|
4278 |
test -n "$tmp" && test -d "$tmp"
|
|
|
4279 |
} ||
|
|
|
4280 |
{
|
|
|
4281 |
tmp=$TMPDIR/sed$$-$RANDOM
|
|
|
4282 |
(umask 077 && mkdir $tmp)
|
|
|
4283 |
} ||
|
|
|
4284 |
{
|
|
|
4285 |
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
|
|
|
4286 |
{ (exit 1); exit 1; }
|
|
|
4287 |
}
|
|
|
4288 |
_max=0
|
|
|
4289 |
_count=0
|
|
|
4290 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
|
|
4291 |
# along with /bin/sed that truncates output.
|
|
|
4292 |
for _sed in $_sed_list /usr/xpg4/bin/sed; do
|
|
|
4293 |
test ! -f ${_sed} && break
|
|
|
4294 |
cat /dev/null > "$tmp/sed.in"
|
|
|
4295 |
_count=0
|
|
|
4296 |
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
|
|
|
4297 |
# Check for GNU sed and select it if it is found.
|
|
|
4298 |
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
|
|
|
4299 |
lt_cv_path_SED=${_sed}
|
|
|
4300 |
break;
|
|
|
4301 |
fi
|
|
|
4302 |
while true; do
|
|
|
4303 |
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
|
|
|
4304 |
mv "$tmp/sed.tmp" "$tmp/sed.in"
|
|
|
4305 |
cp "$tmp/sed.in" "$tmp/sed.nl"
|
|
|
4306 |
echo >>"$tmp/sed.nl"
|
|
|
4307 |
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
|
|
|
4308 |
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
|
|
|
4309 |
# 40000 chars as input seems more than enough
|
|
|
4310 |
test $_count -gt 10 && break
|
|
|
4311 |
_count=`expr $_count + 1`
|
|
|
4312 |
if test $_count -gt $_max; then
|
|
|
4313 |
_max=$_count
|
|
|
4314 |
lt_cv_path_SED=$_sed
|
|
|
4315 |
fi
|
|
|
4316 |
done
|
|
|
4317 |
done
|
|
|
4318 |
rm -rf "$tmp"
|
|
|
4319 |
])
|
|
|
4320 |
if test "X$SED" != "X"; then
|
|
|
4321 |
lt_cv_path_SED=$SED
|
|
|
4322 |
else
|
|
|
4323 |
SED=$lt_cv_path_SED
|
|
|
4324 |
fi
|
|
|
4325 |
AC_MSG_RESULT([$SED])
|
|
|
4326 |
])
|
|
|
4327 |
|
|
|
4328 |
# Add --enable-maintainer-mode option to configure.
|
|
|
4329 |
# From Jim Meyering
|
|
|
4330 |
|
|
|
4331 |
# serial 1
|
|
|
4332 |
|
|
|
4333 |
AC_DEFUN([AM_MAINTAINER_MODE],
|
|
|
4334 |
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
|
4335 |
dnl maintainer-mode is disabled by default
|
|
|
4336 |
AC_ARG_ENABLE(maintainer-mode,
|
|
|
4337 |
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
|
|
4338 |
(and sometimes confusing) to the casual installer],
|
|
|
4339 |
USE_MAINTAINER_MODE=$enableval,
|
|
|
4340 |
USE_MAINTAINER_MODE=no)
|
|
|
4341 |
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
|
|
4342 |
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
|
|
4343 |
MAINT=$MAINTAINER_MODE_TRUE
|
|
|
4344 |
AC_SUBST(MAINT)dnl
|
|
|
4345 |
]
|
|
|
4346 |
)
|
|
|
4347 |
|
|
|
4348 |
# iconv.m4 serial AM4 (gettext-0.11.3)
|
412 |
# lib-link.m4 serial 26 (gettext-0.18.2)
|
4349 |
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
|
413 |
dnl Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
4350 |
dnl This file is free software, distributed under the terms of the GNU
|
414 |
dnl This file is free software; the Free Software Foundation
|
4351 |
dnl General Public License. As a special exception to the GNU General
|
415 |
dnl gives unlimited permission to copy and/or distribute it,
|
4352 |
dnl Public License, this file may be distributed as part of a program
|
416 |
dnl with or without modifications, as long as this notice is preserved.
|
4353 |
dnl that contains a configuration script generated by Autoconf, under
|
|
|
4354 |
dnl the same distribution terms as the rest of that program.
|
|
|
4355 |
|
417 |
|
4356 |
dnl From Bruno Haible.
|
418 |
dnl From Bruno Haible.
|
4357 |
|
419 |
|
|
|
420 |
AC_PREREQ([2.54])
|
|
|
421 |
|
|
|
422 |
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
|
|
|
423 |
dnl the libraries corresponding to explicit and implicit dependencies.
|
|
|
424 |
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
|
|
|
425 |
dnl augments the CPPFLAGS variable.
|
|
|
426 |
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
|
|
|
427 |
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
|
4358 |
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
|
428 |
AC_DEFUN([AC_LIB_LINKFLAGS],
|
4359 |
[
|
429 |
[
|
4360 |
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
|
|
|
4361 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
430 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
4362 |
AC_REQUIRE([AC_LIB_RPATH])
|
431 |
AC_REQUIRE([AC_LIB_RPATH])
|
|
|
432 |
pushdef([Name],[m4_translit([$1],[./+-], [____])])
|
|
|
433 |
pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
|
|
|
434 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
|
|
|
435 |
AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
|
|
|
436 |
AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
|
|
437 |
ac_cv_lib[]Name[]_libs="$LIB[]NAME"
|
|
|
438 |
ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
|
|
|
439 |
ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
|
|
|
440 |
ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
|
|
|
441 |
])
|
|
|
442 |
LIB[]NAME="$ac_cv_lib[]Name[]_libs"
|
|
|
443 |
LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
|
|
|
444 |
INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
|
|
|
445 |
LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
|
|
|
446 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
|
|
447 |
AC_SUBST([LIB]NAME)
|
|
|
448 |
AC_SUBST([LTLIB]NAME)
|
|
|
449 |
AC_SUBST([LIB]NAME[_PREFIX])
|
|
|
450 |
dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
|
|
|
451 |
dnl results of this search when this library appears as a dependency.
|
|
|
452 |
HAVE_LIB[]NAME=yes
|
|
|
453 |
popdef([NAME])
|
|
|
454 |
popdef([Name])
|
|
|
455 |
])
|
4363 |
|
456 |
|
4364 |
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
457 |
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
|
|
|
458 |
dnl searches for libname and the libraries corresponding to explicit and
|
|
|
459 |
dnl implicit dependencies, together with the specified include files and
|
|
|
460 |
dnl the ability to compile and link the specified testcode. The missing-message
|
|
|
461 |
dnl defaults to 'no' and may contain additional hints for the user.
|
|
|
462 |
dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
|
|
|
463 |
dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
|
|
|
464 |
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
|
|
|
465 |
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
|
|
|
466 |
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
|
|
|
467 |
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
|
|
|
468 |
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
|
|
|
469 |
[
|
|
|
470 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
|
|
471 |
AC_REQUIRE([AC_LIB_RPATH])
|
|
|
472 |
pushdef([Name],[m4_translit([$1],[./+-], [____])])
|
|
|
473 |
pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
|
|
|
474 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
|
|
|
475 |
|
|
|
476 |
dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
|
4365 |
dnl accordingly.
|
477 |
dnl accordingly.
|
4366 |
AC_LIB_LINKFLAGS_BODY([iconv])
|
478 |
AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
|
|
479 |
|
|
|
480 |
dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
|
|
|
481 |
dnl because if the user has installed lib[]Name and not disabled its use
|
|
|
482 |
dnl via --without-lib[]Name-prefix, he wants to use it.
|
|
|
483 |
ac_save_CPPFLAGS="$CPPFLAGS"
|
|
|
484 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
|
|
485 |
|
|
|
486 |
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
|
|
|
487 |
ac_save_LIBS="$LIBS"
|
|
|
488 |
dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
|
|
|
489 |
dnl because these -l options might require -L options that are present in
|
|
|
490 |
dnl LIBS. -l options benefit only from the -L options listed before it.
|
|
|
491 |
dnl Otherwise, add it to the front of LIBS, because it may be a static
|
|
|
492 |
dnl library that depends on another static library that is present in LIBS.
|
|
|
493 |
dnl Static libraries benefit only from the static libraries listed after
|
|
|
494 |
dnl it.
|
|
|
495 |
case " $LIB[]NAME" in
|
|
|
496 |
*" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
|
|
|
497 |
*) LIBS="$LIB[]NAME $LIBS" ;;
|
|
|
498 |
esac
|
|
|
499 |
AC_LINK_IFELSE(
|
|
|
500 |
[AC_LANG_PROGRAM([[$3]], [[$4]])],
|
|
|
501 |
[ac_cv_lib[]Name=yes],
|
|
|
502 |
[ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
|
|
|
503 |
LIBS="$ac_save_LIBS"
|
|
|
504 |
])
|
|
|
505 |
if test "$ac_cv_lib[]Name" = yes; then
|
|
|
506 |
HAVE_LIB[]NAME=yes
|
|
|
507 |
AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
|
|
|
508 |
AC_MSG_CHECKING([how to link with lib[]$1])
|
|
|
509 |
AC_MSG_RESULT([$LIB[]NAME])
|
|
|
510 |
else
|
|
|
511 |
HAVE_LIB[]NAME=no
|
|
|
512 |
dnl If $LIB[]NAME didn't lead to a usable library, we don't need
|
|
|
513 |
dnl $INC[]NAME either.
|
|
|
514 |
CPPFLAGS="$ac_save_CPPFLAGS"
|
|
|
515 |
LIB[]NAME=
|
|
|
516 |
LTLIB[]NAME=
|
|
|
517 |
LIB[]NAME[]_PREFIX=
|
|
|
518 |
fi
|
|
|
519 |
AC_SUBST([HAVE_LIB]NAME)
|
|
|
520 |
AC_SUBST([LIB]NAME)
|
|
|
521 |
AC_SUBST([LTLIB]NAME)
|
|
|
522 |
AC_SUBST([LIB]NAME[_PREFIX])
|
|
|
523 |
popdef([NAME])
|
|
|
524 |
popdef([Name])
|
4367 |
])
|
525 |
])
|
4368 |
|
526 |
|
4369 |
AC_DEFUN([AM_ICONV_LINK],
|
527 |
dnl Determine the platform dependent parameters needed to use rpath:
|
|
|
528 |
dnl acl_libext,
|
|
|
529 |
dnl acl_shlibext,
|
|
|
530 |
dnl acl_libname_spec,
|
|
|
531 |
dnl acl_library_names_spec,
|
|
|
532 |
dnl acl_hardcode_libdir_flag_spec,
|
|
|
533 |
dnl acl_hardcode_libdir_separator,
|
|
|
534 |
dnl acl_hardcode_direct,
|
|
|
535 |
dnl acl_hardcode_minus_L.
|
|
|
536 |
AC_DEFUN([AC_LIB_RPATH],
|
4370 |
[
|
537 |
[
|
4371 |
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
|
538 |
dnl Tell automake >= 1.10 to complain if config.rpath is missing.
|
4372 |
dnl those with the standalone portable GNU libiconv installed).
|
539 |
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
|
4373 |
|
540 |
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
|
4374 |
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
541 |
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
|
4375 |
dnl accordingly.
|
542 |
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
|
4376 |
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
|
543 |
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
|
4377 |
|
544 |
AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
|
4378 |
dnl Add $INCICONV to CPPFLAGS before performing the following checks,
|
545 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
|
4379 |
dnl because if the user has installed libiconv and not disabled its use
|
546 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
|
4380 |
dnl via --without-libiconv-prefix, he wants to use it. The first
|
547 |
. ./conftest.sh
|
4381 |
dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
|
548 |
rm -f ./conftest.sh
|
4382 |
am_save_CPPFLAGS="$CPPFLAGS"
|
549 |
acl_cv_rpath=done
|
4383 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
|
|
|
4384 |
|
|
|
4385 |
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
|
|
|
4386 |
am_cv_func_iconv="no, consider installing GNU libiconv"
|
|
|
4387 |
am_cv_lib_iconv=no
|
|
|
4388 |
AC_TRY_LINK([#include <stdlib.h>
|
|
|
4389 |
#include <iconv.h>],
|
|
|
4390 |
[iconv_t cd = iconv_open("","");
|
|
|
4391 |
iconv(cd,NULL,NULL,NULL,NULL);
|
|
|
4392 |
iconv_close(cd);],
|
|
|
4393 |
am_cv_func_iconv=yes)
|
|
|
4394 |
if test "$am_cv_func_iconv" != yes; then
|
|
|
4395 |
am_save_LIBS="$LIBS"
|
|
|
4396 |
LIBS="$LIBS $LIBICONV"
|
|
|
4397 |
AC_TRY_LINK([#include <stdlib.h>
|
|
|
4398 |
#include <iconv.h>],
|
|
|
4399 |
[iconv_t cd = iconv_open("","");
|
|
|
4400 |
iconv(cd,NULL,NULL,NULL,NULL);
|
|
|
4401 |
iconv_close(cd);],
|
|
|
4402 |
am_cv_lib_iconv=yes
|
|
|
4403 |
am_cv_func_iconv=yes)
|
|
|
4404 |
LIBS="$am_save_LIBS"
|
|
|
4405 |
fi
|
|
|
4406 |
])
|
550 |
])
|
4407 |
if test "$am_cv_func_iconv" = yes; then
|
551 |
wl="$acl_cv_wl"
|
4408 |
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
|
552 |
acl_libext="$acl_cv_libext"
|
4409 |
fi
|
553 |
acl_shlibext="$acl_cv_shlibext"
|
4410 |
if test "$am_cv_lib_iconv" = yes; then
|
554 |
acl_libname_spec="$acl_cv_libname_spec"
|
4411 |
AC_MSG_CHECKING([how to link with libiconv])
|
555 |
acl_library_names_spec="$acl_cv_library_names_spec"
|
4412 |
AC_MSG_RESULT([$LIBICONV])
|
556 |
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
|
4413 |
else
|
557 |
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
|
4414 |
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
|
558 |
acl_hardcode_direct="$acl_cv_hardcode_direct"
|
4415 |
dnl either.
|
559 |
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
|
4416 |
CPPFLAGS="$am_save_CPPFLAGS"
|
560 |
dnl Determine whether the user wants rpath handling at all.
|
4417 |
LIBICONV=
|
561 |
AC_ARG_ENABLE([rpath],
|
4418 |
LTLIBICONV=
|
562 |
[ --disable-rpath do not hardcode runtime library paths],
|
4419 |
fi
|
563 |
:, enable_rpath=yes)
|
4420 |
AC_SUBST(LIBICONV)
|
|
|
4421 |
AC_SUBST(LTLIBICONV)
|
|
|
4422 |
])
|
564 |
])
|
4423 |
|
565 |
|
4424 |
AC_DEFUN([AM_ICONV],
|
566 |
dnl AC_LIB_FROMPACKAGE(name, package)
|
|
|
567 |
dnl declares that libname comes from the given package. The configure file
|
|
|
568 |
dnl will then not have a --with-libname-prefix option but a
|
|
|
569 |
dnl --with-package-prefix option. Several libraries can come from the same
|
|
|
570 |
dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
|
|
|
571 |
dnl macro call that searches for libname.
|
|
|
572 |
AC_DEFUN([AC_LIB_FROMPACKAGE],
|
4425 |
[
|
573 |
[
|
4426 |
AM_ICONV_LINK
|
574 |
pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
|
4427 |
if test "$am_cv_func_iconv" = yes; then
|
575 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
|
4428 |
AC_MSG_CHECKING([for iconv declaration])
|
576 |
define([acl_frompackage_]NAME, [$2])
|
4429 |
AC_CACHE_VAL(am_cv_proto_iconv, [
|
577 |
popdef([NAME])
|
4430 |
AC_TRY_COMPILE([
|
578 |
pushdef([PACK],[$2])
|
4431 |
#include <stdlib.h>
|
579 |
pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
|
4432 |
#include <iconv.h>
|
580 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
|
4433 |
extern
|
581 |
define([acl_libsinpackage_]PACKUP,
|
4434 |
#ifdef __cplusplus
|
582 |
m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
|
4435 |
"C"
|
583 |
popdef([PACKUP])
|
4436 |
#endif
|
584 |
popdef([PACK])
|
4437 |
#if defined(__STDC__) || defined(__cplusplus)
|
|
|
4438 |
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
|
|
4439 |
#else
|
|
|
4440 |
size_t iconv();
|
|
|
4441 |
#endif
|
|
|
4442 |
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
|
|
|
4443 |
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
|
|
|
4444 |
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
|
|
4445 |
AC_MSG_RESULT([$]{ac_t:-
|
|
|
4446 |
}[$]am_cv_proto_iconv)
|
|
|
4447 |
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
|
|
|
4448 |
[Define as const if the declaration of iconv() needs const.])
|
|
|
4449 |
fi
|
|
|
4450 |
])
|
585 |
])
|
4451 |
|
586 |
|
4452 |
# lib-prefix.m4 serial 1 (gettext-0.11)
|
587 |
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
|
4453 |
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
|
588 |
dnl the libraries corresponding to explicit and implicit dependencies.
|
4454 |
dnl This file is free software, distributed under the terms of the GNU
|
589 |
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
|
4455 |
dnl General Public License. As a special exception to the GNU General
|
590 |
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
|
4456 |
dnl Public License, this file may be distributed as part of a program
|
591 |
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
|
4457 |
dnl that contains a configuration script generated by Autoconf, under
|
592 |
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
|
4458 |
dnl the same distribution terms as the rest of that program.
|
|
|
4459 |
|
|
|
4460 |
dnl From Bruno Haible.
|
|
|
4461 |
|
|
|
4462 |
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
|
|
|
4463 |
dnl to access previously installed libraries. The basic assumption is that
|
|
|
4464 |
dnl a user will want packages to use other packages he previously installed
|
|
|
4465 |
dnl with the same --prefix option.
|
|
|
4466 |
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
|
|
|
4467 |
dnl libraries, but is otherwise very convenient.
|
|
|
4468 |
AC_DEFUN([AC_LIB_PREFIX],
|
|
|
4469 |
[
|
593 |
[
|
4470 |
AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
|
|
|
4471 |
AC_REQUIRE([AC_PROG_CC])
|
|
|
4472 |
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
|
4473 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
594 |
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
|
|
|
595 |
pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
|
|
|
596 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
|
|
|
597 |
pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
|
|
|
598 |
pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
|
|
|
599 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
|
|
|
600 |
pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
|
|
|
601 |
dnl Autoconf >= 2.61 supports dots in --with options.
|
|
|
602 |
pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
|
4474 |
dnl By default, look in $includedir and $libdir.
|
603 |
dnl By default, look in $includedir and $libdir.
|
4475 |
use_additional=yes
|
604 |
use_additional=yes
|
4476 |
AC_LIB_WITH_FINAL_PREFIX([
|
605 |
AC_LIB_WITH_FINAL_PREFIX([
|
4477 |
eval additional_includedir=\"$includedir\"
|
606 |
eval additional_includedir=\"$includedir\"
|
4478 |
eval additional_libdir=\"$libdir\"
|
607 |
eval additional_libdir=\"$libdir\"
|
4479 |
])
|
608 |
])
|
4480 |
AC_ARG_WITH([lib-prefix],
|
609 |
AC_ARG_WITH(P_A_C_K[-prefix],
|
4481 |
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
|
610 |
[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
|
4482 |
--without-lib-prefix don't search for libraries in includedir and libdir],
|
611 |
--without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
|
4483 |
[
|
612 |
[
|
4484 |
if test "X$withval" = "Xno"; then
|
613 |
if test "X$withval" = "Xno"; then
|
4485 |
use_additional=no
|
614 |
use_additional=no
|
4486 |
else
|
615 |
else
|
4487 |
if test "X$withval" = "X"; then
|
616 |
if test "X$withval" = "X"; then
|
|
... |
|
... |
4489 |
eval additional_includedir=\"$includedir\"
|
618 |
eval additional_includedir=\"$includedir\"
|
4490 |
eval additional_libdir=\"$libdir\"
|
619 |
eval additional_libdir=\"$libdir\"
|
4491 |
])
|
620 |
])
|
4492 |
else
|
621 |
else
|
4493 |
additional_includedir="$withval/include"
|
622 |
additional_includedir="$withval/include"
|
4494 |
additional_libdir="$withval/lib"
|
623 |
additional_libdir="$withval/$acl_libdirstem"
|
4495 |
fi
|
624 |
if test "$acl_libdirstem2" != "$acl_libdirstem" \
|
4496 |
fi
|
625 |
&& ! test -d "$withval/$acl_libdirstem"; then
|
4497 |
])
|
626 |
additional_libdir="$withval/$acl_libdirstem2"
|
4498 |
if test $use_additional = yes; then
|
|
|
4499 |
dnl Potentially add $additional_includedir to $CPPFLAGS.
|
|
|
4500 |
dnl But don't add it
|
|
|
4501 |
dnl 1. if it's the standard /usr/include,
|
|
|
4502 |
dnl 2. if it's already present in $CPPFLAGS,
|
|
|
4503 |
dnl 3. if it's /usr/local/include and we are using GCC on Linux,
|
|
|
4504 |
dnl 4. if it doesn't exist as a directory.
|
|
|
4505 |
if test "X$additional_includedir" != "X/usr/include"; then
|
|
|
4506 |
haveit=
|
|
|
4507 |
for x in $CPPFLAGS; do
|
|
|
4508 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
|
|
4509 |
if test "X$x" = "X-I$additional_includedir"; then
|
|
|
4510 |
haveit=yes
|
|
|
4511 |
break
|
|
|
4512 |
fi
|
627 |
fi
|
4513 |
done
|
|
|
4514 |
if test -z "$haveit"; then
|
|
|
4515 |
if test "X$additional_includedir" = "X/usr/local/include"; then
|
|
|
4516 |
if test -n "$GCC"; then
|
|
|
4517 |
case $host_os in
|
|
|
4518 |
linux*) haveit=yes;;
|
|
|
4519 |
esac
|
|
|
4520 |
fi
|
|
|
4521 |
fi
|
|
|
4522 |
if test -z "$haveit"; then
|
|
|
4523 |
if test -d "$additional_includedir"; then
|
|
|
4524 |
dnl Really add $additional_includedir to $CPPFLAGS.
|
|
|
4525 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
|
|
|
4526 |
fi
|
|
|
4527 |
fi
|
|
|
4528 |
fi
|
|
|
4529 |
fi
|
|
|
4530 |
dnl Potentially add $additional_libdir to $LDFLAGS.
|
|
|
4531 |
dnl But don't add it
|
|
|
4532 |
dnl 1. if it's the standard /usr/lib,
|
|
|
4533 |
dnl 2. if it's already present in $LDFLAGS,
|
|
|
4534 |
dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
|
|
|
4535 |
dnl 4. if it doesn't exist as a directory.
|
|
|
4536 |
if test "X$additional_libdir" != "X/usr/lib"; then
|
|
|
4537 |
haveit=
|
|
|
4538 |
for x in $LDFLAGS; do
|
|
|
4539 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
|
|
4540 |
if test "X$x" = "X-L$additional_libdir"; then
|
|
|
4541 |
haveit=yes
|
|
|
4542 |
break
|
|
|
4543 |
fi
|
|
|
4544 |
done
|
|
|
4545 |
if test -z "$haveit"; then
|
|
|
4546 |
if test "X$additional_libdir" = "X/usr/local/lib"; then
|
|
|
4547 |
if test -n "$GCC"; then
|
|
|
4548 |
case $host_os in
|
|
|
4549 |
linux*) haveit=yes;;
|
|
|
4550 |
esac
|
|
|
4551 |
fi
|
|
|
4552 |
fi
|
|
|
4553 |
if test -z "$haveit"; then
|
|
|
4554 |
if test -d "$additional_libdir"; then
|
|
|
4555 |
dnl Really add $additional_libdir to $LDFLAGS.
|
|
|
4556 |
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
|
|
|
4557 |
fi
|
|
|
4558 |
fi
|
|
|
4559 |
fi
|
|
|
4560 |
fi
|
|
|
4561 |
fi
|
|
|
4562 |
])
|
|
|
4563 |
|
|
|
4564 |
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
|
|
|
4565 |
dnl acl_final_exec_prefix, containing the values to which $prefix and
|
|
|
4566 |
dnl $exec_prefix will expand at the end of the configure script.
|
|
|
4567 |
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
|
|
|
4568 |
[
|
|
|
4569 |
dnl Unfortunately, prefix and exec_prefix get only finally determined
|
|
|
4570 |
dnl at the end of configure.
|
|
|
4571 |
if test "X$prefix" = "XNONE"; then
|
|
|
4572 |
acl_final_prefix="$ac_default_prefix"
|
|
|
4573 |
else
|
|
|
4574 |
acl_final_prefix="$prefix"
|
|
|
4575 |
fi
|
|
|
4576 |
if test "X$exec_prefix" = "XNONE"; then
|
|
|
4577 |
acl_final_exec_prefix='${prefix}'
|
|
|
4578 |
else
|
|
|
4579 |
acl_final_exec_prefix="$exec_prefix"
|
|
|
4580 |
fi
|
|
|
4581 |
acl_save_prefix="$prefix"
|
|
|
4582 |
prefix="$acl_final_prefix"
|
|
|
4583 |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
|
|
|
4584 |
prefix="$acl_save_prefix"
|
|
|
4585 |
])
|
|
|
4586 |
|
|
|
4587 |
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
|
|
|
4588 |
dnl variables prefix and exec_prefix bound to the values they will have
|
|
|
4589 |
dnl at the end of the configure script.
|
|
|
4590 |
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
|
|
|
4591 |
[
|
|
|
4592 |
acl_save_prefix="$prefix"
|
|
|
4593 |
prefix="$acl_final_prefix"
|
|
|
4594 |
acl_save_exec_prefix="$exec_prefix"
|
|
|
4595 |
exec_prefix="$acl_final_exec_prefix"
|
|
|
4596 |
$1
|
|
|
4597 |
exec_prefix="$acl_save_exec_prefix"
|
|
|
4598 |
prefix="$acl_save_prefix"
|
|
|
4599 |
])
|
|
|
4600 |
|
|
|
4601 |
# lib-link.m4 serial 3 (gettext-0.11.3)
|
|
|
4602 |
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
|
|
|
4603 |
dnl This file is free software, distributed under the terms of the GNU
|
|
|
4604 |
dnl General Public License. As a special exception to the GNU General
|
|
|
4605 |
dnl Public License, this file may be distributed as part of a program
|
|
|
4606 |
dnl that contains a configuration script generated by Autoconf, under
|
|
|
4607 |
dnl the same distribution terms as the rest of that program.
|
|
|
4608 |
|
|
|
4609 |
dnl From Bruno Haible.
|
|
|
4610 |
|
|
|
4611 |
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
|
|
|
4612 |
dnl the libraries corresponding to explicit and implicit dependencies.
|
|
|
4613 |
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
|
|
|
4614 |
dnl augments the CPPFLAGS variable.
|
|
|
4615 |
AC_DEFUN([AC_LIB_LINKFLAGS],
|
|
|
4616 |
[
|
|
|
4617 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
|
|
4618 |
AC_REQUIRE([AC_LIB_RPATH])
|
|
|
4619 |
define([Name],[translit([$1],[./-], [___])])
|
|
|
4620 |
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
|
|
4621 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
|
|
4622 |
AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
|
|
|
4623 |
AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
|
|
4624 |
ac_cv_lib[]Name[]_libs="$LIB[]NAME"
|
|
|
4625 |
ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
|
|
|
4626 |
ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
|
|
|
4627 |
])
|
|
|
4628 |
LIB[]NAME="$ac_cv_lib[]Name[]_libs"
|
|
|
4629 |
LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
|
|
|
4630 |
INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
|
|
|
4631 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
|
|
4632 |
AC_SUBST([LIB]NAME)
|
|
|
4633 |
AC_SUBST([LTLIB]NAME)
|
|
|
4634 |
dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
|
|
|
4635 |
dnl results of this search when this library appears as a dependency.
|
|
|
4636 |
HAVE_LIB[]NAME=yes
|
|
|
4637 |
undefine([Name])
|
|
|
4638 |
undefine([NAME])
|
|
|
4639 |
])
|
|
|
4640 |
|
|
|
4641 |
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
|
|
|
4642 |
dnl searches for libname and the libraries corresponding to explicit and
|
|
|
4643 |
dnl implicit dependencies, together with the specified include files and
|
|
|
4644 |
dnl the ability to compile and link the specified testcode. If found, it
|
|
|
4645 |
dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
|
|
|
4646 |
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
|
|
|
4647 |
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
|
|
|
4648 |
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
|
|
|
4649 |
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
|
|
|
4650 |
[
|
|
|
4651 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
|
|
4652 |
AC_REQUIRE([AC_LIB_RPATH])
|
|
|
4653 |
define([Name],[translit([$1],[./-], [___])])
|
|
|
4654 |
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
|
|
4655 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
|
|
4656 |
|
|
|
4657 |
dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
|
|
|
4658 |
dnl accordingly.
|
|
|
4659 |
AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
|
|
4660 |
|
|
|
4661 |
dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
|
|
|
4662 |
dnl because if the user has installed lib[]Name and not disabled its use
|
|
|
4663 |
dnl via --without-lib[]Name-prefix, he wants to use it.
|
|
|
4664 |
ac_save_CPPFLAGS="$CPPFLAGS"
|
|
|
4665 |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
|
|
4666 |
|
|
|
4667 |
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
|
|
|
4668 |
ac_save_LIBS="$LIBS"
|
|
|
4669 |
LIBS="$LIBS $LIB[]NAME"
|
|
|
4670 |
AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
|
|
|
4671 |
LIBS="$ac_save_LIBS"
|
|
|
4672 |
])
|
|
|
4673 |
if test "$ac_cv_lib[]Name" = yes; then
|
|
|
4674 |
HAVE_LIB[]NAME=yes
|
|
|
4675 |
AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
|
|
|
4676 |
AC_MSG_CHECKING([how to link with lib[]$1])
|
|
|
4677 |
AC_MSG_RESULT([$LIB[]NAME])
|
|
|
4678 |
else
|
|
|
4679 |
HAVE_LIB[]NAME=no
|
|
|
4680 |
dnl If $LIB[]NAME didn't lead to a usable library, we don't need
|
|
|
4681 |
dnl $INC[]NAME either.
|
|
|
4682 |
CPPFLAGS="$ac_save_CPPFLAGS"
|
|
|
4683 |
LIB[]NAME=
|
|
|
4684 |
LTLIB[]NAME=
|
|
|
4685 |
fi
|
|
|
4686 |
AC_SUBST([HAVE_LIB]NAME)
|
|
|
4687 |
AC_SUBST([LIB]NAME)
|
|
|
4688 |
AC_SUBST([LTLIB]NAME)
|
|
|
4689 |
undefine([Name])
|
|
|
4690 |
undefine([NAME])
|
|
|
4691 |
])
|
|
|
4692 |
|
|
|
4693 |
dnl Determine the platform dependent parameters needed to use rpath:
|
|
|
4694 |
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
|
|
|
4695 |
dnl hardcode_direct, hardcode_minus_L,
|
|
|
4696 |
dnl sys_lib_search_path_spec, sys_lib_dlsearch_path_spec.
|
|
|
4697 |
AC_DEFUN([AC_LIB_RPATH],
|
|
|
4698 |
[
|
|
|
4699 |
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
|
|
|
4700 |
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
|
|
|
4701 |
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
|
|
|
4702 |
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
|
|
|
4703 |
AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
|
|
|
4704 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
|
|
|
4705 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
|
|
|
4706 |
. ./conftest.sh
|
|
|
4707 |
rm -f ./conftest.sh
|
|
|
4708 |
acl_cv_rpath=done
|
|
|
4709 |
])
|
|
|
4710 |
wl="$acl_cv_wl"
|
|
|
4711 |
libext="$acl_cv_libext"
|
|
|
4712 |
shlibext="$acl_cv_shlibext"
|
|
|
4713 |
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
|
|
|
4714 |
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
|
|
|
4715 |
hardcode_direct="$acl_cv_hardcode_direct"
|
|
|
4716 |
hardcode_minus_L="$acl_cv_hardcode_minus_L"
|
|
|
4717 |
sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
|
|
|
4718 |
sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
|
|
|
4719 |
dnl Determine whether the user wants rpath handling at all.
|
|
|
4720 |
AC_ARG_ENABLE(rpath,
|
|
|
4721 |
[ --disable-rpath do not hardcode runtime library paths],
|
|
|
4722 |
:, enable_rpath=yes)
|
|
|
4723 |
])
|
|
|
4724 |
|
|
|
4725 |
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
|
|
|
4726 |
dnl the libraries corresponding to explicit and implicit dependencies.
|
|
|
4727 |
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
|
|
|
4728 |
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
|
|
|
4729 |
[
|
|
|
4730 |
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
|
|
4731 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
|
|
4732 |
dnl By default, look in $includedir and $libdir.
|
|
|
4733 |
use_additional=yes
|
|
|
4734 |
AC_LIB_WITH_FINAL_PREFIX([
|
|
|
4735 |
eval additional_includedir=\"$includedir\"
|
|
|
4736 |
eval additional_libdir=\"$libdir\"
|
|
|
4737 |
])
|
|
|
4738 |
AC_ARG_WITH([lib$1-prefix],
|
|
|
4739 |
[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
|
|
|
4740 |
--without-lib$1-prefix don't search for lib$1 in includedir and libdir],
|
|
|
4741 |
[
|
|
|
4742 |
if test "X$withval" = "Xno"; then
|
|
|
4743 |
use_additional=no
|
|
|
4744 |
else
|
|
|
4745 |
if test "X$withval" = "X"; then
|
|
|
4746 |
AC_LIB_WITH_FINAL_PREFIX([
|
|
|
4747 |
eval additional_includedir=\"$includedir\"
|
|
|
4748 |
eval additional_libdir=\"$libdir\"
|
|
|
4749 |
])
|
|
|
4750 |
else
|
|
|
4751 |
additional_includedir="$withval/include"
|
|
|
4752 |
additional_libdir="$withval/lib"
|
|
|
4753 |
fi
|
628 |
fi
|
4754 |
fi
|
629 |
fi
|
4755 |
])
|
630 |
])
|
4756 |
dnl Search the library and its dependencies in $additional_libdir and
|
631 |
dnl Search the library and its dependencies in $additional_libdir and
|
4757 |
dnl $LDFLAGS. Using breadth-first-seach.
|
632 |
dnl $LDFLAGS. Using breadth-first-seach.
|
4758 |
LIB[]NAME=
|
633 |
LIB[]NAME=
|
4759 |
LTLIB[]NAME=
|
634 |
LTLIB[]NAME=
|
4760 |
INC[]NAME=
|
635 |
INC[]NAME=
|
|
|
636 |
LIB[]NAME[]_PREFIX=
|
|
|
637 |
dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
|
|
|
638 |
dnl computed. So it has to be reset here.
|
|
|
639 |
HAVE_LIB[]NAME=
|
4761 |
rpathdirs=
|
640 |
rpathdirs=
|
4762 |
ltrpathdirs=
|
641 |
ltrpathdirs=
|
4763 |
names_already_handled=
|
642 |
names_already_handled=
|
4764 |
names_next_round='$1 $2'
|
643 |
names_next_round='$1 $2'
|
4765 |
while test -n "$names_next_round"; do
|
644 |
while test -n "$names_next_round"; do
|
|
... |
|
... |
4775 |
done
|
654 |
done
|
4776 |
if test -z "$already_handled"; then
|
655 |
if test -z "$already_handled"; then
|
4777 |
names_already_handled="$names_already_handled $name"
|
656 |
names_already_handled="$names_already_handled $name"
|
4778 |
dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
|
657 |
dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
|
4779 |
dnl or AC_LIB_HAVE_LINKFLAGS call.
|
658 |
dnl or AC_LIB_HAVE_LINKFLAGS call.
|
4780 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
|
659 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
|
4781 |
eval value=\"\$HAVE_LIB$uppername\"
|
660 |
eval value=\"\$HAVE_LIB$uppername\"
|
4782 |
if test -n "$value"; then
|
661 |
if test -n "$value"; then
|
4783 |
if test "$value" = yes; then
|
662 |
if test "$value" = yes; then
|
4784 |
eval value=\"\$LIB$uppername\"
|
663 |
eval value=\"\$LIB$uppername\"
|
4785 |
test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
|
664 |
test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
|
|
... |
|
... |
4795 |
dnl and the already constructed $LIBNAME/$LTLIBNAME.
|
674 |
dnl and the already constructed $LIBNAME/$LTLIBNAME.
|
4796 |
found_dir=
|
675 |
found_dir=
|
4797 |
found_la=
|
676 |
found_la=
|
4798 |
found_so=
|
677 |
found_so=
|
4799 |
found_a=
|
678 |
found_a=
|
|
|
679 |
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
|
|
|
680 |
if test -n "$acl_shlibext"; then
|
|
|
681 |
shrext=".$acl_shlibext" # typically: shrext=.so
|
|
|
682 |
else
|
|
|
683 |
shrext=
|
|
|
684 |
fi
|
4800 |
if test $use_additional = yes; then
|
685 |
if test $use_additional = yes; then
|
4801 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
|
|
|
4802 |
found_dir="$additional_libdir"
|
686 |
dir="$additional_libdir"
|
|
|
687 |
dnl The same code as in the loop below:
|
|
|
688 |
dnl First look for a shared library.
|
|
|
689 |
if test -n "$acl_shlibext"; then
|
|
|
690 |
if test -f "$dir/$libname$shrext"; then
|
|
|
691 |
found_dir="$dir"
|
4803 |
found_so="$additional_libdir/lib$name.$shlibext"
|
692 |
found_so="$dir/$libname$shrext"
|
4804 |
if test -f "$additional_libdir/lib$name.la"; then
|
693 |
else
|
4805 |
found_la="$additional_libdir/lib$name.la"
|
694 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
|
|
|
695 |
ver=`(cd "$dir" && \
|
|
|
696 |
for f in "$libname$shrext".*; do echo "$f"; done \
|
|
|
697 |
| sed -e "s,^$libname$shrext\\\\.,," \
|
|
|
698 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
|
|
699 |
| sed 1q ) 2>/dev/null`
|
|
|
700 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
|
|
|
701 |
found_dir="$dir"
|
|
|
702 |
found_so="$dir/$libname$shrext.$ver"
|
|
|
703 |
fi
|
|
|
704 |
else
|
|
|
705 |
eval library_names=\"$acl_library_names_spec\"
|
|
|
706 |
for f in $library_names; do
|
|
|
707 |
if test -f "$dir/$f"; then
|
|
|
708 |
found_dir="$dir"
|
|
|
709 |
found_so="$dir/$f"
|
|
|
710 |
break
|
|
|
711 |
fi
|
|
|
712 |
done
|
|
|
713 |
fi
|
4806 |
fi
|
714 |
fi
|
4807 |
else
|
715 |
fi
|
|
|
716 |
dnl Then look for a static library.
|
|
|
717 |
if test "X$found_dir" = "X"; then
|
4808 |
if test -f "$additional_libdir/lib$name.$libext"; then
|
718 |
if test -f "$dir/$libname.$acl_libext"; then
|
4809 |
found_dir="$additional_libdir"
|
719 |
found_dir="$dir"
|
4810 |
found_a="$additional_libdir/lib$name.$libext"
|
720 |
found_a="$dir/$libname.$acl_libext"
|
4811 |
if test -f "$additional_libdir/lib$name.la"; then
|
|
|
4812 |
found_la="$additional_libdir/lib$name.la"
|
|
|
4813 |
fi
|
721 |
fi
|
|
|
722 |
fi
|
|
|
723 |
if test "X$found_dir" != "X"; then
|
|
|
724 |
if test -f "$dir/$libname.la"; then
|
|
|
725 |
found_la="$dir/$libname.la"
|
4814 |
fi
|
726 |
fi
|
4815 |
fi
|
727 |
fi
|
4816 |
fi
|
728 |
fi
|
4817 |
if test "X$found_dir" = "X"; then
|
729 |
if test "X$found_dir" = "X"; then
|
4818 |
for x in $LDFLAGS $LTLIB[]NAME; do
|
730 |
for x in $LDFLAGS $LTLIB[]NAME; do
|
4819 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
731 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
4820 |
case "$x" in
|
732 |
case "$x" in
|
4821 |
-L*)
|
733 |
-L*)
|
4822 |
dir=`echo "X$x" | sed -e 's/^X-L//'`
|
734 |
dir=`echo "X$x" | sed -e 's/^X-L//'`
|
|
|
735 |
dnl First look for a shared library.
|
|
|
736 |
if test -n "$acl_shlibext"; then
|
4823 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
|
737 |
if test -f "$dir/$libname$shrext"; then
|
4824 |
found_dir="$dir"
|
738 |
found_dir="$dir"
|
4825 |
found_so="$dir/lib$name.$shlibext"
|
739 |
found_so="$dir/$libname$shrext"
|
|
|
740 |
else
|
|
|
741 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
|
|
|
742 |
ver=`(cd "$dir" && \
|
|
|
743 |
for f in "$libname$shrext".*; do echo "$f"; done \
|
|
|
744 |
| sed -e "s,^$libname$shrext\\\\.,," \
|
|
|
745 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
|
|
746 |
| sed 1q ) 2>/dev/null`
|
|
|
747 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
|
|
|
748 |
found_dir="$dir"
|
|
|
749 |
found_so="$dir/$libname$shrext.$ver"
|
|
|
750 |
fi
|
|
|
751 |
else
|
|
|
752 |
eval library_names=\"$acl_library_names_spec\"
|
|
|
753 |
for f in $library_names; do
|
4826 |
if test -f "$dir/lib$name.la"; then
|
754 |
if test -f "$dir/$f"; then
|
|
|
755 |
found_dir="$dir"
|
4827 |
found_la="$dir/lib$name.la"
|
756 |
found_so="$dir/$f"
|
|
|
757 |
break
|
|
|
758 |
fi
|
|
|
759 |
done
|
|
|
760 |
fi
|
4828 |
fi
|
761 |
fi
|
4829 |
else
|
762 |
fi
|
|
|
763 |
dnl Then look for a static library.
|
|
|
764 |
if test "X$found_dir" = "X"; then
|
4830 |
if test -f "$dir/lib$name.$libext"; then
|
765 |
if test -f "$dir/$libname.$acl_libext"; then
|
4831 |
found_dir="$dir"
|
766 |
found_dir="$dir"
|
4832 |
found_a="$dir/lib$name.$libext"
|
767 |
found_a="$dir/$libname.$acl_libext"
|
|
|
768 |
fi
|
|
|
769 |
fi
|
|
|
770 |
if test "X$found_dir" != "X"; then
|
4833 |
if test -f "$dir/lib$name.la"; then
|
771 |
if test -f "$dir/$libname.la"; then
|
4834 |
found_la="$dir/lib$name.la"
|
772 |
found_la="$dir/$libname.la"
|
4835 |
fi
|
|
|
4836 |
fi
|
773 |
fi
|
4837 |
fi
|
774 |
fi
|
4838 |
;;
|
775 |
;;
|
4839 |
esac
|
776 |
esac
|
4840 |
if test "X$found_dir" != "X"; then
|
777 |
if test "X$found_dir" != "X"; then
|
|
... |
|
... |
4847 |
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
|
784 |
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
|
4848 |
if test "X$found_so" != "X"; then
|
785 |
if test "X$found_so" != "X"; then
|
4849 |
dnl Linking with a shared library. We attempt to hardcode its
|
786 |
dnl Linking with a shared library. We attempt to hardcode its
|
4850 |
dnl directory into the executable's runpath, unless it's the
|
787 |
dnl directory into the executable's runpath, unless it's the
|
4851 |
dnl standard /usr/lib.
|
788 |
dnl standard /usr/lib.
|
4852 |
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
|
789 |
if test "$enable_rpath" = no \
|
|
|
790 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
|
|
|
791 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
|
4853 |
dnl No hardcoding is needed.
|
792 |
dnl No hardcoding is needed.
|
4854 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
793 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
4855 |
else
|
794 |
else
|
4856 |
dnl Use an explicit option to hardcode DIR into the resulting
|
795 |
dnl Use an explicit option to hardcode DIR into the resulting
|
4857 |
dnl binary.
|
796 |
dnl binary.
|
|
... |
|
... |
4866 |
done
|
805 |
done
|
4867 |
if test -z "$haveit"; then
|
806 |
if test -z "$haveit"; then
|
4868 |
ltrpathdirs="$ltrpathdirs $found_dir"
|
807 |
ltrpathdirs="$ltrpathdirs $found_dir"
|
4869 |
fi
|
808 |
fi
|
4870 |
dnl The hardcoding into $LIBNAME is system dependent.
|
809 |
dnl The hardcoding into $LIBNAME is system dependent.
|
4871 |
if test "$hardcode_direct" = yes; then
|
810 |
if test "$acl_hardcode_direct" = yes; then
|
4872 |
dnl Using DIR/libNAME.so during linking hardcodes DIR into the
|
811 |
dnl Using DIR/libNAME.so during linking hardcodes DIR into the
|
4873 |
dnl resulting binary.
|
812 |
dnl resulting binary.
|
4874 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
813 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
4875 |
else
|
814 |
else
|
4876 |
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
|
815 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
|
4877 |
dnl Use an explicit option to hardcode DIR into the resulting
|
816 |
dnl Use an explicit option to hardcode DIR into the resulting
|
4878 |
dnl binary.
|
817 |
dnl binary.
|
4879 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
818 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
4880 |
dnl Potentially add DIR to rpathdirs.
|
819 |
dnl Potentially add DIR to rpathdirs.
|
4881 |
dnl The rpathdirs will be appended to $LIBNAME at the end.
|
820 |
dnl The rpathdirs will be appended to $LIBNAME at the end.
|
|
... |
|
... |
4902 |
fi
|
841 |
fi
|
4903 |
done
|
842 |
done
|
4904 |
if test -z "$haveit"; then
|
843 |
if test -z "$haveit"; then
|
4905 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
|
844 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
|
4906 |
fi
|
845 |
fi
|
4907 |
if test "$hardcode_minus_L" != no; then
|
846 |
if test "$acl_hardcode_minus_L" != no; then
|
4908 |
dnl FIXME: Not sure whether we should use
|
847 |
dnl FIXME: Not sure whether we should use
|
4909 |
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
848 |
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
4910 |
dnl here.
|
849 |
dnl here.
|
4911 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
850 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
4912 |
else
|
851 |
else
|
4913 |
dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
|
852 |
dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
|
4914 |
dnl here, because this doesn't fit in flags passed to the
|
853 |
dnl here, because this doesn't fit in flags passed to the
|
4915 |
dnl compiler. So give up. No hardcoding. This affects only
|
854 |
dnl compiler. So give up. No hardcoding. This affects only
|
4916 |
dnl very old systems.
|
855 |
dnl very old systems.
|
4917 |
dnl FIXME: Not sure whether we should use
|
856 |
dnl FIXME: Not sure whether we should use
|
4918 |
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
857 |
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
|
... |
|
... |
4933 |
fi
|
872 |
fi
|
4934 |
fi
|
873 |
fi
|
4935 |
dnl Assume the include files are nearby.
|
874 |
dnl Assume the include files are nearby.
|
4936 |
additional_includedir=
|
875 |
additional_includedir=
|
4937 |
case "$found_dir" in
|
876 |
case "$found_dir" in
|
4938 |
*/lib | */lib/)
|
877 |
*/$acl_libdirstem | */$acl_libdirstem/)
|
4939 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
|
878 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
|
|
|
879 |
if test "$name" = '$1'; then
|
|
|
880 |
LIB[]NAME[]_PREFIX="$basedir"
|
|
|
881 |
fi
|
|
|
882 |
additional_includedir="$basedir/include"
|
|
|
883 |
;;
|
|
|
884 |
*/$acl_libdirstem2 | */$acl_libdirstem2/)
|
|
|
885 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
|
|
|
886 |
if test "$name" = '$1'; then
|
|
|
887 |
LIB[]NAME[]_PREFIX="$basedir"
|
|
|
888 |
fi
|
4940 |
additional_includedir="$basedir/include"
|
889 |
additional_includedir="$basedir/include"
|
4941 |
;;
|
890 |
;;
|
4942 |
esac
|
891 |
esac
|
4943 |
if test "X$additional_includedir" != "X"; then
|
892 |
if test "X$additional_includedir" != "X"; then
|
4944 |
dnl Potentially add $additional_includedir to $INCNAME.
|
893 |
dnl Potentially add $additional_includedir to $INCNAME.
|
|
... |
|
... |
4951 |
if test "X$additional_includedir" != "X/usr/include"; then
|
900 |
if test "X$additional_includedir" != "X/usr/include"; then
|
4952 |
haveit=
|
901 |
haveit=
|
4953 |
if test "X$additional_includedir" = "X/usr/local/include"; then
|
902 |
if test "X$additional_includedir" = "X/usr/local/include"; then
|
4954 |
if test -n "$GCC"; then
|
903 |
if test -n "$GCC"; then
|
4955 |
case $host_os in
|
904 |
case $host_os in
|
4956 |
linux*) haveit=yes;;
|
905 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
4957 |
esac
|
906 |
esac
|
4958 |
fi
|
907 |
fi
|
4959 |
fi
|
908 |
fi
|
4960 |
if test -z "$haveit"; then
|
909 |
if test -z "$haveit"; then
|
4961 |
for x in $CPPFLAGS $INC[]NAME; do
|
910 |
for x in $CPPFLAGS $INC[]NAME; do
|
|
... |
|
... |
4995 |
dnl 1. if it's the standard /usr/lib,
|
944 |
dnl 1. if it's the standard /usr/lib,
|
4996 |
dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
|
945 |
dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
|
4997 |
dnl 3. if it's already present in $LDFLAGS or the already
|
946 |
dnl 3. if it's already present in $LDFLAGS or the already
|
4998 |
dnl constructed $LIBNAME,
|
947 |
dnl constructed $LIBNAME,
|
4999 |
dnl 4. if it doesn't exist as a directory.
|
948 |
dnl 4. if it doesn't exist as a directory.
|
|
|
949 |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
|
5000 |
if test "X$additional_libdir" != "X/usr/lib"; then
|
950 |
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
|
5001 |
haveit=
|
951 |
haveit=
|
|
|
952 |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
|
5002 |
if test "X$additional_libdir" = "X/usr/local/lib"; then
|
953 |
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
|
5003 |
if test -n "$GCC"; then
|
954 |
if test -n "$GCC"; then
|
5004 |
case $host_os in
|
955 |
case $host_os in
|
5005 |
linux*) haveit=yes;;
|
956 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
5006 |
esac
|
957 |
esac
|
5007 |
fi
|
958 |
fi
|
5008 |
fi
|
959 |
fi
|
5009 |
if test -z "$haveit"; then
|
960 |
if test -z "$haveit"; then
|
5010 |
haveit=
|
961 |
haveit=
|
|
... |
|
... |
5096 |
fi
|
1047 |
fi
|
5097 |
fi
|
1048 |
fi
|
5098 |
done
|
1049 |
done
|
5099 |
done
|
1050 |
done
|
5100 |
if test "X$rpathdirs" != "X"; then
|
1051 |
if test "X$rpathdirs" != "X"; then
|
5101 |
if test -n "$hardcode_libdir_separator"; then
|
1052 |
if test -n "$acl_hardcode_libdir_separator"; then
|
5102 |
dnl Weird platform: only the last -rpath option counts, the user must
|
1053 |
dnl Weird platform: only the last -rpath option counts, the user must
|
5103 |
dnl pass all path elements in one option. We can arrange that for a
|
1054 |
dnl pass all path elements in one option. We can arrange that for a
|
5104 |
dnl single library, but not when more than one $LIBNAMEs are used.
|
1055 |
dnl single library, but not when more than one $LIBNAMEs are used.
|
5105 |
alldirs=
|
1056 |
alldirs=
|
5106 |
for found_dir in $rpathdirs; do
|
1057 |
for found_dir in $rpathdirs; do
|
5107 |
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
|
1058 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
|
5108 |
done
|
1059 |
done
|
5109 |
dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
|
1060 |
dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
|
5110 |
acl_save_libdir="$libdir"
|
1061 |
acl_save_libdir="$libdir"
|
5111 |
libdir="$alldirs"
|
1062 |
libdir="$alldirs"
|
5112 |
eval flag=\"$hardcode_libdir_flag_spec\"
|
1063 |
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
5113 |
libdir="$acl_save_libdir"
|
1064 |
libdir="$acl_save_libdir"
|
5114 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
1065 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
5115 |
else
|
1066 |
else
|
5116 |
dnl The -rpath options are cumulative.
|
1067 |
dnl The -rpath options are cumulative.
|
5117 |
for found_dir in $rpathdirs; do
|
1068 |
for found_dir in $rpathdirs; do
|
5118 |
acl_save_libdir="$libdir"
|
1069 |
acl_save_libdir="$libdir"
|
5119 |
libdir="$found_dir"
|
1070 |
libdir="$found_dir"
|
5120 |
eval flag=\"$hardcode_libdir_flag_spec\"
|
1071 |
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
5121 |
libdir="$acl_save_libdir"
|
1072 |
libdir="$acl_save_libdir"
|
5122 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
1073 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
5123 |
done
|
1074 |
done
|
5124 |
fi
|
1075 |
fi
|
5125 |
fi
|
1076 |
fi
|
|
... |
|
... |
5128 |
dnl executables is -R. The -R options are cumulative.
|
1079 |
dnl executables is -R. The -R options are cumulative.
|
5129 |
for found_dir in $ltrpathdirs; do
|
1080 |
for found_dir in $ltrpathdirs; do
|
5130 |
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
|
1081 |
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
|
5131 |
done
|
1082 |
done
|
5132 |
fi
|
1083 |
fi
|
|
|
1084 |
popdef([P_A_C_K])
|
|
|
1085 |
popdef([PACKLIBS])
|
|
|
1086 |
popdef([PACKUP])
|
|
|
1087 |
popdef([PACK])
|
|
|
1088 |
popdef([NAME])
|
5133 |
])
|
1089 |
])
|
5134 |
|
1090 |
|
5135 |
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
|
1091 |
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
|
5136 |
dnl unless already present in VAR.
|
1092 |
dnl unless already present in VAR.
|
5137 |
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
|
1093 |
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
|
|
... |
|
... |
5151 |
[$1]="${[$1]}${[$1]:+ }$element"
|
1107 |
[$1]="${[$1]}${[$1]:+ }$element"
|
5152 |
fi
|
1108 |
fi
|
5153 |
done
|
1109 |
done
|
5154 |
])
|
1110 |
])
|
5155 |
|
1111 |
|
|
|
1112 |
dnl For those cases where a variable contains several -L and -l options
|
|
|
1113 |
dnl referring to unknown libraries and directories, this macro determines the
|
|
|
1114 |
dnl necessary additional linker options for the runtime path.
|
|
|
1115 |
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
|
|
|
1116 |
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
|
|
|
1117 |
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
|
|
|
1118 |
dnl otherwise linking without libtool is assumed.
|
|
|
1119 |
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
|
|
|
1120 |
[
|
|
|
1121 |
AC_REQUIRE([AC_LIB_RPATH])
|
|
|
1122 |
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
|
|
|
1123 |
$1=
|
|
|
1124 |
if test "$enable_rpath" != no; then
|
|
|
1125 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
|
|
|
1126 |
dnl Use an explicit option to hardcode directories into the resulting
|
|
|
1127 |
dnl binary.
|
|
|
1128 |
rpathdirs=
|
|
|
1129 |
next=
|
|
|
1130 |
for opt in $2; do
|
|
|
1131 |
if test -n "$next"; then
|
|
|
1132 |
dir="$next"
|
|
|
1133 |
dnl No need to hardcode the standard /usr/lib.
|
|
|
1134 |
if test "X$dir" != "X/usr/$acl_libdirstem" \
|
|
|
1135 |
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
|
|
|
1136 |
rpathdirs="$rpathdirs $dir"
|
|
|
1137 |
fi
|
|
|
1138 |
next=
|
|
|
1139 |
else
|
|
|
1140 |
case $opt in
|
|
|
1141 |
-L) next=yes ;;
|
|
|
1142 |
-L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
|
|
|
1143 |
dnl No need to hardcode the standard /usr/lib.
|
|
|
1144 |
if test "X$dir" != "X/usr/$acl_libdirstem" \
|
|
|
1145 |
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
|
|
|
1146 |
rpathdirs="$rpathdirs $dir"
|
|
|
1147 |
fi
|
|
|
1148 |
next= ;;
|
|
|
1149 |
*) next= ;;
|
|
|
1150 |
esac
|
|
|
1151 |
fi
|
|
|
1152 |
done
|
|
|
1153 |
if test "X$rpathdirs" != "X"; then
|
|
|
1154 |
if test -n ""$3""; then
|
|
|
1155 |
dnl libtool is used for linking. Use -R options.
|
|
|
1156 |
for dir in $rpathdirs; do
|
|
|
1157 |
$1="${$1}${$1:+ }-R$dir"
|
|
|
1158 |
done
|
|
|
1159 |
else
|
|
|
1160 |
dnl The linker is used for linking directly.
|
|
|
1161 |
if test -n "$acl_hardcode_libdir_separator"; then
|
|
|
1162 |
dnl Weird platform: only the last -rpath option counts, the user
|
|
|
1163 |
dnl must pass all path elements in one option.
|
|
|
1164 |
alldirs=
|
|
|
1165 |
for dir in $rpathdirs; do
|
|
|
1166 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
|
|
|
1167 |
done
|
|
|
1168 |
acl_save_libdir="$libdir"
|
|
|
1169 |
libdir="$alldirs"
|
|
|
1170 |
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
|
|
1171 |
libdir="$acl_save_libdir"
|
|
|
1172 |
$1="$flag"
|
|
|
1173 |
else
|
|
|
1174 |
dnl The -rpath options are cumulative.
|
|
|
1175 |
for dir in $rpathdirs; do
|
|
|
1176 |
acl_save_libdir="$libdir"
|
|
|
1177 |
libdir="$dir"
|
|
|
1178 |
eval flag=\"$acl_hardcode_libdir_flag_spec\"
|
|
|
1179 |
libdir="$acl_save_libdir"
|
|
|
1180 |
$1="${$1}${$1:+ }$flag"
|
|
|
1181 |
done
|
|
|
1182 |
fi
|
|
|
1183 |
fi
|
|
|
1184 |
fi
|
|
|
1185 |
fi
|
|
|
1186 |
fi
|
|
|
1187 |
AC_SUBST([$1])
|
|
|
1188 |
])
|
|
|
1189 |
|
5156 |
# lib-ld.m4 serial 1 (gettext-0.11)
|
1190 |
# lib-prefix.m4 serial 7 (gettext-0.18)
|
|
|
1191 |
dnl Copyright (C) 2001-2005, 2008-2013 Free Software Foundation, Inc.
|
|
|
1192 |
dnl This file is free software; the Free Software Foundation
|
|
|
1193 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
|
1194 |
dnl with or without modifications, as long as this notice is preserved.
|
|
|
1195 |
|
|
|
1196 |
dnl From Bruno Haible.
|
|
|
1197 |
|
|
|
1198 |
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
|
|
|
1199 |
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
|
|
|
1200 |
dnl require excessive bracketing.
|
|
|
1201 |
ifdef([AC_HELP_STRING],
|
|
|
1202 |
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
|
|
|
1203 |
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
|
|
|
1204 |
|
|
|
1205 |
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
|
|
|
1206 |
dnl to access previously installed libraries. The basic assumption is that
|
|
|
1207 |
dnl a user will want packages to use other packages he previously installed
|
|
|
1208 |
dnl with the same --prefix option.
|
|
|
1209 |
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
|
|
|
1210 |
dnl libraries, but is otherwise very convenient.
|
|
|
1211 |
AC_DEFUN([AC_LIB_PREFIX],
|
|
|
1212 |
[
|
|
|
1213 |
AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
|
|
|
1214 |
AC_REQUIRE([AC_PROG_CC])
|
|
|
1215 |
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
|
1216 |
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
|
|
|
1217 |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
|
|
1218 |
dnl By default, look in $includedir and $libdir.
|
|
|
1219 |
use_additional=yes
|
|
|
1220 |
AC_LIB_WITH_FINAL_PREFIX([
|
|
|
1221 |
eval additional_includedir=\"$includedir\"
|
|
|
1222 |
eval additional_libdir=\"$libdir\"
|
|
|
1223 |
])
|
|
|
1224 |
AC_LIB_ARG_WITH([lib-prefix],
|
|
|
1225 |
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
|
|
|
1226 |
--without-lib-prefix don't search for libraries in includedir and libdir],
|
|
|
1227 |
[
|
|
|
1228 |
if test "X$withval" = "Xno"; then
|
|
|
1229 |
use_additional=no
|
|
|
1230 |
else
|
|
|
1231 |
if test "X$withval" = "X"; then
|
|
|
1232 |
AC_LIB_WITH_FINAL_PREFIX([
|
|
|
1233 |
eval additional_includedir=\"$includedir\"
|
|
|
1234 |
eval additional_libdir=\"$libdir\"
|
|
|
1235 |
])
|
|
|
1236 |
else
|
|
|
1237 |
additional_includedir="$withval/include"
|
|
|
1238 |
additional_libdir="$withval/$acl_libdirstem"
|
|
|
1239 |
fi
|
|
|
1240 |
fi
|
|
|
1241 |
])
|
|
|
1242 |
if test $use_additional = yes; then
|
|
|
1243 |
dnl Potentially add $additional_includedir to $CPPFLAGS.
|
|
|
1244 |
dnl But don't add it
|
|
|
1245 |
dnl 1. if it's the standard /usr/include,
|
|
|
1246 |
dnl 2. if it's already present in $CPPFLAGS,
|
|
|
1247 |
dnl 3. if it's /usr/local/include and we are using GCC on Linux,
|
|
|
1248 |
dnl 4. if it doesn't exist as a directory.
|
|
|
1249 |
if test "X$additional_includedir" != "X/usr/include"; then
|
|
|
1250 |
haveit=
|
|
|
1251 |
for x in $CPPFLAGS; do
|
|
|
1252 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
|
|
1253 |
if test "X$x" = "X-I$additional_includedir"; then
|
|
|
1254 |
haveit=yes
|
|
|
1255 |
break
|
|
|
1256 |
fi
|
|
|
1257 |
done
|
|
|
1258 |
if test -z "$haveit"; then
|
|
|
1259 |
if test "X$additional_includedir" = "X/usr/local/include"; then
|
|
|
1260 |
if test -n "$GCC"; then
|
|
|
1261 |
case $host_os in
|
|
|
1262 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
|
|
1263 |
esac
|
|
|
1264 |
fi
|
|
|
1265 |
fi
|
|
|
1266 |
if test -z "$haveit"; then
|
|
|
1267 |
if test -d "$additional_includedir"; then
|
|
|
1268 |
dnl Really add $additional_includedir to $CPPFLAGS.
|
|
|
1269 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
|
|
|
1270 |
fi
|
|
|
1271 |
fi
|
|
|
1272 |
fi
|
|
|
1273 |
fi
|
|
|
1274 |
dnl Potentially add $additional_libdir to $LDFLAGS.
|
|
|
1275 |
dnl But don't add it
|
|
|
1276 |
dnl 1. if it's the standard /usr/lib,
|
|
|
1277 |
dnl 2. if it's already present in $LDFLAGS,
|
|
|
1278 |
dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
|
|
|
1279 |
dnl 4. if it doesn't exist as a directory.
|
|
|
1280 |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
|
|
|
1281 |
haveit=
|
|
|
1282 |
for x in $LDFLAGS; do
|
|
|
1283 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
|
|
1284 |
if test "X$x" = "X-L$additional_libdir"; then
|
|
|
1285 |
haveit=yes
|
|
|
1286 |
break
|
|
|
1287 |
fi
|
|
|
1288 |
done
|
|
|
1289 |
if test -z "$haveit"; then
|
|
|
1290 |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
|
|
|
1291 |
if test -n "$GCC"; then
|
|
|
1292 |
case $host_os in
|
|
|
1293 |
linux*) haveit=yes;;
|
|
|
1294 |
esac
|
|
|
1295 |
fi
|
|
|
1296 |
fi
|
|
|
1297 |
if test -z "$haveit"; then
|
|
|
1298 |
if test -d "$additional_libdir"; then
|
|
|
1299 |
dnl Really add $additional_libdir to $LDFLAGS.
|
|
|
1300 |
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
|
|
|
1301 |
fi
|
|
|
1302 |
fi
|
|
|
1303 |
fi
|
|
|
1304 |
fi
|
|
|
1305 |
fi
|
|
|
1306 |
])
|
|
|
1307 |
|
|
|
1308 |
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
|
|
|
1309 |
dnl acl_final_exec_prefix, containing the values to which $prefix and
|
|
|
1310 |
dnl $exec_prefix will expand at the end of the configure script.
|
|
|
1311 |
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
|
|
|
1312 |
[
|
|
|
1313 |
dnl Unfortunately, prefix and exec_prefix get only finally determined
|
|
|
1314 |
dnl at the end of configure.
|
|
|
1315 |
if test "X$prefix" = "XNONE"; then
|
|
|
1316 |
acl_final_prefix="$ac_default_prefix"
|
|
|
1317 |
else
|
|
|
1318 |
acl_final_prefix="$prefix"
|
|
|
1319 |
fi
|
|
|
1320 |
if test "X$exec_prefix" = "XNONE"; then
|
|
|
1321 |
acl_final_exec_prefix='${prefix}'
|
|
|
1322 |
else
|
|
|
1323 |
acl_final_exec_prefix="$exec_prefix"
|
|
|
1324 |
fi
|
|
|
1325 |
acl_save_prefix="$prefix"
|
|
|
1326 |
prefix="$acl_final_prefix"
|
|
|
1327 |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
|
|
|
1328 |
prefix="$acl_save_prefix"
|
|
|
1329 |
])
|
|
|
1330 |
|
|
|
1331 |
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
|
|
|
1332 |
dnl variables prefix and exec_prefix bound to the values they will have
|
|
|
1333 |
dnl at the end of the configure script.
|
|
|
1334 |
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
|
|
|
1335 |
[
|
|
|
1336 |
acl_save_prefix="$prefix"
|
|
|
1337 |
prefix="$acl_final_prefix"
|
|
|
1338 |
acl_save_exec_prefix="$exec_prefix"
|
|
|
1339 |
exec_prefix="$acl_final_exec_prefix"
|
|
|
1340 |
$1
|
|
|
1341 |
exec_prefix="$acl_save_exec_prefix"
|
|
|
1342 |
prefix="$acl_save_prefix"
|
|
|
1343 |
])
|
|
|
1344 |
|
|
|
1345 |
dnl AC_LIB_PREPARE_MULTILIB creates
|
|
|
1346 |
dnl - a variable acl_libdirstem, containing the basename of the libdir, either
|
|
|
1347 |
dnl "lib" or "lib64" or "lib/64",
|
|
|
1348 |
dnl - a variable acl_libdirstem2, as a secondary possible value for
|
|
|
1349 |
dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
|
|
|
1350 |
dnl "lib/amd64".
|
|
|
1351 |
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
|
|
|
1352 |
[
|
|
|
1353 |
dnl There is no formal standard regarding lib and lib64.
|
|
|
1354 |
dnl On glibc systems, the current practice is that on a system supporting
|
|
|
1355 |
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
|
|
|
1356 |
dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
|
|
|
1357 |
dnl the compiler's default mode by looking at the compiler's library search
|
|
|
1358 |
dnl path. If at least one of its elements ends in /lib64 or points to a
|
|
|
1359 |
dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
|
|
|
1360 |
dnl Otherwise we use the default, namely "lib".
|
|
|
1361 |
dnl On Solaris systems, the current practice is that on a system supporting
|
|
|
1362 |
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
|
|
|
1363 |
dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
|
|
|
1364 |
dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
|
|
|
1365 |
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
|
1366 |
acl_libdirstem=lib
|
|
|
1367 |
acl_libdirstem2=
|
|
|
1368 |
case "$host_os" in
|
|
|
1369 |
solaris*)
|
|
|
1370 |
dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
|
|
|
1371 |
dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
|
|
|
1372 |
dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
|
|
|
1373 |
dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
|
|
|
1374 |
dnl symlink is missing, so we set acl_libdirstem2 too.
|
|
|
1375 |
AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
|
|
|
1376 |
[AC_EGREP_CPP([sixtyfour bits], [
|
|
|
1377 |
#ifdef _LP64
|
|
|
1378 |
sixtyfour bits
|
|
|
1379 |
#endif
|
|
|
1380 |
], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
|
|
|
1381 |
])
|
|
|
1382 |
if test $gl_cv_solaris_64bit = yes; then
|
|
|
1383 |
acl_libdirstem=lib/64
|
|
|
1384 |
case "$host_cpu" in
|
|
|
1385 |
sparc*) acl_libdirstem2=lib/sparcv9 ;;
|
|
|
1386 |
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
|
|
|
1387 |
esac
|
|
|
1388 |
fi
|
|
|
1389 |
;;
|
|
|
1390 |
*)
|
|
|
1391 |
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
|
|
|
1392 |
if test -n "$searchpath"; then
|
|
|
1393 |
acl_save_IFS="${IFS= }"; IFS=":"
|
|
|
1394 |
for searchdir in $searchpath; do
|
|
|
1395 |
if test -d "$searchdir"; then
|
|
|
1396 |
case "$searchdir" in
|
|
|
1397 |
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
|
|
|
1398 |
*/../ | */.. )
|
|
|
1399 |
# Better ignore directories of this form. They are misleading.
|
|
|
1400 |
;;
|
|
|
1401 |
*) searchdir=`cd "$searchdir" && pwd`
|
|
|
1402 |
case "$searchdir" in
|
|
|
1403 |
*/lib64 ) acl_libdirstem=lib64 ;;
|
|
|
1404 |
esac ;;
|
|
|
1405 |
esac
|
|
|
1406 |
fi
|
|
|
1407 |
done
|
|
|
1408 |
IFS="$acl_save_IFS"
|
|
|
1409 |
fi
|
|
|
1410 |
;;
|
|
|
1411 |
esac
|
|
|
1412 |
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
|
|
|
1413 |
])
|
|
|
1414 |
|
|
|
1415 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
|
1416 |
#
|
|
|
1417 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
|
1418 |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
|
|
1419 |
# Foundation, Inc.
|
|
|
1420 |
# Written by Gordon Matzigkeit, 1996
|
|
|
1421 |
#
|
|
|
1422 |
# This file is free software; the Free Software Foundation gives
|
|
|
1423 |
# unlimited permission to copy and/or distribute it, with or without
|
|
|
1424 |
# modifications, as long as this notice is preserved.
|
|
|
1425 |
|
|
|
1426 |
m4_define([_LT_COPYING], [dnl
|
|
|
1427 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
|
1428 |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
|
|
1429 |
# Foundation, Inc.
|
|
|
1430 |
# Written by Gordon Matzigkeit, 1996
|
|
|
1431 |
#
|
|
|
1432 |
# This file is part of GNU Libtool.
|
|
|
1433 |
#
|
|
|
1434 |
# GNU Libtool is free software; you can redistribute it and/or
|
|
|
1435 |
# modify it under the terms of the GNU General Public License as
|
|
|
1436 |
# published by the Free Software Foundation; either version 2 of
|
|
|
1437 |
# the License, or (at your option) any later version.
|
|
|
1438 |
#
|
|
|
1439 |
# As a special exception to the GNU General Public License,
|
|
|
1440 |
# if you distribute this file as part of a program or library that
|
|
|
1441 |
# is built using GNU Libtool, you may include this file under the
|
|
|
1442 |
# same distribution terms that you use for the rest of that program.
|
|
|
1443 |
#
|
|
|
1444 |
# GNU Libtool is distributed in the hope that it will be useful,
|
|
|
1445 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
1446 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
1447 |
# GNU General Public License for more details.
|
|
|
1448 |
#
|
|
|
1449 |
# You should have received a copy of the GNU General Public License
|
|
|
1450 |
# along with GNU Libtool; see the file COPYING. If not, a copy
|
|
|
1451 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
|
|
1452 |
# obtained by writing to the Free Software Foundation, Inc.,
|
|
|
1453 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
1454 |
])
|
|
|
1455 |
|
|
|
1456 |
# serial 57 LT_INIT
|
|
|
1457 |
|
|
|
1458 |
|
|
|
1459 |
# LT_PREREQ(VERSION)
|
|
|
1460 |
# ------------------
|
|
|
1461 |
# Complain and exit if this libtool version is less that VERSION.
|
|
|
1462 |
m4_defun([LT_PREREQ],
|
|
|
1463 |
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
|
|
|
1464 |
[m4_default([$3],
|
|
|
1465 |
[m4_fatal([Libtool version $1 or higher is required],
|
|
|
1466 |
63)])],
|
|
|
1467 |
[$2])])
|
|
|
1468 |
|
|
|
1469 |
|
|
|
1470 |
# _LT_CHECK_BUILDDIR
|
|
|
1471 |
# ------------------
|
|
|
1472 |
# Complain if the absolute build directory name contains unusual characters
|
|
|
1473 |
m4_defun([_LT_CHECK_BUILDDIR],
|
|
|
1474 |
[case `pwd` in
|
|
|
1475 |
*\ * | *\ *)
|
|
|
1476 |
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
|
|
|
1477 |
esac
|
|
|
1478 |
])
|
|
|
1479 |
|
|
|
1480 |
|
|
|
1481 |
# LT_INIT([OPTIONS])
|
|
|
1482 |
# ------------------
|
|
|
1483 |
AC_DEFUN([LT_INIT],
|
|
|
1484 |
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
|
|
|
1485 |
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
|
|
1486 |
AC_BEFORE([$0], [LT_LANG])dnl
|
|
|
1487 |
AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
|
1488 |
AC_BEFORE([$0], [LTDL_INIT])dnl
|
|
|
1489 |
m4_require([_LT_CHECK_BUILDDIR])dnl
|
|
|
1490 |
|
|
|
1491 |
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
|
|
|
1492 |
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
|
|
|
1493 |
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
|
|
|
1494 |
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
|
|
|
1495 |
dnl unless we require an AC_DEFUNed macro:
|
|
|
1496 |
AC_REQUIRE([LTOPTIONS_VERSION])dnl
|
|
|
1497 |
AC_REQUIRE([LTSUGAR_VERSION])dnl
|
|
|
1498 |
AC_REQUIRE([LTVERSION_VERSION])dnl
|
|
|
1499 |
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
|
|
1500 |
m4_require([_LT_PROG_LTMAIN])dnl
|
|
|
1501 |
|
|
|
1502 |
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
|
|
|
1503 |
|
|
|
1504 |
dnl Parse OPTIONS
|
|
|
1505 |
_LT_SET_OPTIONS([$0], [$1])
|
|
|
1506 |
|
|
|
1507 |
# This can be used to rebuild libtool when needed
|
|
|
1508 |
LIBTOOL_DEPS="$ltmain"
|
|
|
1509 |
|
|
|
1510 |
# Always use our own libtool.
|
|
|
1511 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
|
1512 |
AC_SUBST(LIBTOOL)dnl
|
|
|
1513 |
|
|
|
1514 |
_LT_SETUP
|
|
|
1515 |
|
|
|
1516 |
# Only expand once:
|
|
|
1517 |
m4_define([LT_INIT])
|
|
|
1518 |
])# LT_INIT
|
|
|
1519 |
|
|
|
1520 |
# Old names:
|
|
|
1521 |
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
|
|
|
1522 |
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
|
|
|
1523 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
1524 |
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
|
|
|
1525 |
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
|
|
|
1526 |
|
|
|
1527 |
|
|
|
1528 |
# _LT_CC_BASENAME(CC)
|
|
|
1529 |
# -------------------
|
|
|
1530 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
|
|
1531 |
m4_defun([_LT_CC_BASENAME],
|
|
|
1532 |
[for cc_temp in $1""; do
|
|
|
1533 |
case $cc_temp in
|
|
|
1534 |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
|
|
1535 |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
|
|
1536 |
\-*) ;;
|
|
|
1537 |
*) break;;
|
|
|
1538 |
esac
|
|
|
1539 |
done
|
|
|
1540 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
|
|
1541 |
])
|
|
|
1542 |
|
|
|
1543 |
|
|
|
1544 |
# _LT_FILEUTILS_DEFAULTS
|
|
|
1545 |
# ----------------------
|
|
|
1546 |
# It is okay to use these file commands and assume they have been set
|
|
|
1547 |
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
|
|
|
1548 |
m4_defun([_LT_FILEUTILS_DEFAULTS],
|
|
|
1549 |
[: ${CP="cp -f"}
|
|
|
1550 |
: ${MV="mv -f"}
|
|
|
1551 |
: ${RM="rm -f"}
|
|
|
1552 |
])# _LT_FILEUTILS_DEFAULTS
|
|
|
1553 |
|
|
|
1554 |
|
|
|
1555 |
# _LT_SETUP
|
|
|
1556 |
# ---------
|
|
|
1557 |
m4_defun([_LT_SETUP],
|
|
|
1558 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
1559 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
|
1560 |
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
|
|
1561 |
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
|
|
1562 |
|
|
|
1563 |
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
|
|
|
1564 |
dnl
|
|
|
1565 |
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
|
|
1566 |
_LT_DECL([], [host], [0])dnl
|
|
|
1567 |
_LT_DECL([], [host_os], [0])dnl
|
|
|
1568 |
dnl
|
|
|
1569 |
_LT_DECL([], [build_alias], [0], [The build system])dnl
|
|
|
1570 |
_LT_DECL([], [build], [0])dnl
|
|
|
1571 |
_LT_DECL([], [build_os], [0])dnl
|
|
|
1572 |
dnl
|
|
|
1573 |
AC_REQUIRE([AC_PROG_CC])dnl
|
|
|
1574 |
AC_REQUIRE([LT_PATH_LD])dnl
|
|
|
1575 |
AC_REQUIRE([LT_PATH_NM])dnl
|
|
|
1576 |
dnl
|
|
|
1577 |
AC_REQUIRE([AC_PROG_LN_S])dnl
|
|
|
1578 |
test -z "$LN_S" && LN_S="ln -s"
|
|
|
1579 |
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
|
|
|
1580 |
dnl
|
|
|
1581 |
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
|
|
|
1582 |
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
|
|
|
1583 |
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
|
|
1584 |
dnl
|
|
|
1585 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
1586 |
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
|
|
1587 |
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
|
|
|
1588 |
m4_require([_LT_CMD_RELOAD])dnl
|
|
|
1589 |
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
|
|
1590 |
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
|
|
|
1591 |
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
|
|
1592 |
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
|
1593 |
m4_require([_LT_WITH_SYSROOT])dnl
|
|
|
1594 |
|
|
|
1595 |
_LT_CONFIG_LIBTOOL_INIT([
|
|
|
1596 |
# See if we are running on zsh, and set the options which allow our
|
|
|
1597 |
# commands through without removal of \ escapes INIT.
|
|
|
1598 |
if test -n "\${ZSH_VERSION+set}" ; then
|
|
|
1599 |
setopt NO_GLOB_SUBST
|
|
|
1600 |
fi
|
|
|
1601 |
])
|
|
|
1602 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
|
1603 |
setopt NO_GLOB_SUBST
|
|
|
1604 |
fi
|
|
|
1605 |
|
|
|
1606 |
_LT_CHECK_OBJDIR
|
|
|
1607 |
|
|
|
1608 |
m4_require([_LT_TAG_COMPILER])dnl
|
|
|
1609 |
|
|
|
1610 |
case $host_os in
|
|
|
1611 |
aix3*)
|
|
|
1612 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
1613 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
1614 |
# vanish in a puff of smoke.
|
|
|
1615 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
|
1616 |
COLLECT_NAMES=
|
|
|
1617 |
export COLLECT_NAMES
|
|
|
1618 |
fi
|
|
|
1619 |
;;
|
|
|
1620 |
esac
|
|
|
1621 |
|
|
|
1622 |
# Global variables:
|
|
|
1623 |
ofile=libtool
|
|
|
1624 |
can_build_shared=yes
|
|
|
1625 |
|
|
|
1626 |
# All known linkers require a `.a' archive for static linking (except MSVC,
|
|
|
1627 |
# which needs '.lib').
|
|
|
1628 |
libext=a
|
|
|
1629 |
|
|
|
1630 |
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
|
|
1631 |
|
|
|
1632 |
old_CC="$CC"
|
|
|
1633 |
old_CFLAGS="$CFLAGS"
|
|
|
1634 |
|
|
|
1635 |
# Set sane defaults for various variables
|
|
|
1636 |
test -z "$CC" && CC=cc
|
|
|
1637 |
test -z "$LTCC" && LTCC=$CC
|
|
|
1638 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
|
|
1639 |
test -z "$LD" && LD=ld
|
|
|
1640 |
test -z "$ac_objext" && ac_objext=o
|
|
|
1641 |
|
|
|
1642 |
_LT_CC_BASENAME([$compiler])
|
|
|
1643 |
|
|
|
1644 |
# Only perform the check for file, if the check method requires it
|
|
|
1645 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
|
|
1646 |
case $deplibs_check_method in
|
|
|
1647 |
file_magic*)
|
|
|
1648 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|
|
1649 |
_LT_PATH_MAGIC
|
|
|
1650 |
fi
|
|
|
1651 |
;;
|
|
|
1652 |
esac
|
|
|
1653 |
|
|
|
1654 |
# Use C for the default configuration in the libtool script
|
|
|
1655 |
LT_SUPPORTED_TAG([CC])
|
|
|
1656 |
_LT_LANG_C_CONFIG
|
|
|
1657 |
_LT_LANG_DEFAULT_CONFIG
|
|
|
1658 |
_LT_CONFIG_COMMANDS
|
|
|
1659 |
])# _LT_SETUP
|
|
|
1660 |
|
|
|
1661 |
|
|
|
1662 |
# _LT_PREPARE_SED_QUOTE_VARS
|
|
|
1663 |
# --------------------------
|
|
|
1664 |
# Define a few sed substitution that help us do robust quoting.
|
|
|
1665 |
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
|
|
|
1666 |
[# Backslashify metacharacters that are still active within
|
|
|
1667 |
# double-quoted strings.
|
|
|
1668 |
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
|
|
1669 |
|
|
|
1670 |
# Same as above, but do not quote variable references.
|
|
|
1671 |
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
|
|
1672 |
|
|
|
1673 |
# Sed substitution to delay expansion of an escaped shell variable in a
|
|
|
1674 |
# double_quote_subst'ed string.
|
|
|
1675 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
|
|
1676 |
|
|
|
1677 |
# Sed substitution to delay expansion of an escaped single quote.
|
|
|
1678 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
|
|
1679 |
|
|
|
1680 |
# Sed substitution to avoid accidental globbing in evaled expressions
|
|
|
1681 |
no_glob_subst='s/\*/\\\*/g'
|
|
|
1682 |
])
|
|
|
1683 |
|
|
|
1684 |
# _LT_PROG_LTMAIN
|
|
|
1685 |
# ---------------
|
|
|
1686 |
# Note that this code is called both from `configure', and `config.status'
|
|
|
1687 |
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
|
|
|
1688 |
# `config.status' has no value for ac_aux_dir unless we are using Automake,
|
|
|
1689 |
# so we pass a copy along to make sure it has a sensible value anyway.
|
|
|
1690 |
m4_defun([_LT_PROG_LTMAIN],
|
|
|
1691 |
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
|
|
|
1692 |
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
|
|
|
1693 |
ltmain="$ac_aux_dir/ltmain.sh"
|
|
|
1694 |
])# _LT_PROG_LTMAIN
|
|
|
1695 |
|
|
|
1696 |
|
|
|
1697 |
|
|
|
1698 |
# So that we can recreate a full libtool script including additional
|
|
|
1699 |
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
|
|
1700 |
# in macros and then make a single call at the end using the `libtool'
|
|
|
1701 |
# label.
|
|
|
1702 |
|
|
|
1703 |
|
|
|
1704 |
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
|
|
|
1705 |
# ----------------------------------------
|
|
|
1706 |
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
|
1707 |
m4_define([_LT_CONFIG_LIBTOOL_INIT],
|
|
|
1708 |
[m4_ifval([$1],
|
|
|
1709 |
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
|
|
|
1710 |
[$1
|
|
|
1711 |
])])])
|
|
|
1712 |
|
|
|
1713 |
# Initialize.
|
|
|
1714 |
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
|
|
|
1715 |
|
|
|
1716 |
|
|
|
1717 |
# _LT_CONFIG_LIBTOOL([COMMANDS])
|
|
|
1718 |
# ------------------------------
|
|
|
1719 |
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
|
1720 |
m4_define([_LT_CONFIG_LIBTOOL],
|
|
|
1721 |
[m4_ifval([$1],
|
|
|
1722 |
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
|
|
|
1723 |
[$1
|
|
|
1724 |
])])])
|
|
|
1725 |
|
|
|
1726 |
# Initialize.
|
|
|
1727 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
|
|
|
1728 |
|
|
|
1729 |
|
|
|
1730 |
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
|
|
|
1731 |
# -----------------------------------------------------
|
|
|
1732 |
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
|
|
|
1733 |
[_LT_CONFIG_LIBTOOL([$1])
|
|
|
1734 |
_LT_CONFIG_LIBTOOL_INIT([$2])
|
|
|
1735 |
])
|
|
|
1736 |
|
|
|
1737 |
|
|
|
1738 |
# _LT_FORMAT_COMMENT([COMMENT])
|
|
|
1739 |
# -----------------------------
|
|
|
1740 |
# Add leading comment marks to the start of each line, and a trailing
|
|
|
1741 |
# full-stop to the whole comment if one is not present already.
|
|
|
1742 |
m4_define([_LT_FORMAT_COMMENT],
|
|
|
1743 |
[m4_ifval([$1], [
|
|
|
1744 |
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
|
|
1745 |
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
|
|
|
1746 |
)])
|
|
|
1747 |
|
|
|
1748 |
|
|
|
1749 |
|
|
|
1750 |
|
|
|
1751 |
|
|
|
1752 |
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
|
|
1753 |
# -------------------------------------------------------------------
|
|
|
1754 |
# CONFIGNAME is the name given to the value in the libtool script.
|
|
|
1755 |
# VARNAME is the (base) name used in the configure script.
|
|
|
1756 |
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
|
|
|
1757 |
# VARNAME. Any other value will be used directly.
|
|
|
1758 |
m4_define([_LT_DECL],
|
|
|
1759 |
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
|
|
|
1760 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
|
|
|
1761 |
[m4_ifval([$1], [$1], [$2])])
|
|
|
1762 |
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
|
|
|
1763 |
m4_ifval([$4],
|
|
|
1764 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
|
|
|
1765 |
lt_dict_add_subkey([lt_decl_dict], [$2],
|
|
|
1766 |
[tagged?], [m4_ifval([$5], [yes], [no])])])
|
|
|
1767 |
])
|
|
|
1768 |
|
|
|
1769 |
|
|
|
1770 |
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
|
|
|
1771 |
# --------------------------------------------------------
|
|
|
1772 |
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
|
|
|
1773 |
|
|
|
1774 |
|
|
|
1775 |
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
|
|
|
1776 |
# ------------------------------------------------
|
|
|
1777 |
m4_define([lt_decl_tag_varnames],
|
|
|
1778 |
[_lt_decl_filter([tagged?], [yes], $@)])
|
|
|
1779 |
|
|
|
1780 |
|
|
|
1781 |
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
|
|
|
1782 |
# ---------------------------------------------------------
|
|
|
1783 |
m4_define([_lt_decl_filter],
|
|
|
1784 |
[m4_case([$#],
|
|
|
1785 |
[0], [m4_fatal([$0: too few arguments: $#])],
|
|
|
1786 |
[1], [m4_fatal([$0: too few arguments: $#: $1])],
|
|
|
1787 |
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
|
|
|
1788 |
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
|
|
|
1789 |
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
|
|
|
1790 |
])
|
|
|
1791 |
|
|
|
1792 |
|
|
|
1793 |
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
|
|
|
1794 |
# --------------------------------------------------
|
|
|
1795 |
m4_define([lt_decl_quote_varnames],
|
|
|
1796 |
[_lt_decl_filter([value], [1], $@)])
|
|
|
1797 |
|
|
|
1798 |
|
|
|
1799 |
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
|
|
|
1800 |
# ---------------------------------------------------
|
|
|
1801 |
m4_define([lt_decl_dquote_varnames],
|
|
|
1802 |
[_lt_decl_filter([value], [2], $@)])
|
|
|
1803 |
|
|
|
1804 |
|
|
|
1805 |
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
|
|
|
1806 |
# ---------------------------------------------------
|
|
|
1807 |
m4_define([lt_decl_varnames_tagged],
|
|
|
1808 |
[m4_assert([$# <= 2])dnl
|
|
|
1809 |
_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
|
1810 |
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
|
|
|
1811 |
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
|
|
|
1812 |
m4_define([_lt_decl_varnames_tagged],
|
|
|
1813 |
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
|
|
|
1814 |
|
|
|
1815 |
|
|
|
1816 |
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
|
|
|
1817 |
# ------------------------------------------------
|
|
|
1818 |
m4_define([lt_decl_all_varnames],
|
|
|
1819 |
[_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
|
1820 |
m4_if([$2], [],
|
|
|
1821 |
m4_quote(lt_decl_varnames),
|
|
|
1822 |
m4_quote(m4_shift($@))))[]dnl
|
|
|
1823 |
])
|
|
|
1824 |
m4_define([_lt_decl_all_varnames],
|
|
|
1825 |
[lt_join($@, lt_decl_varnames_tagged([$1],
|
|
|
1826 |
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
|
|
|
1827 |
])
|
|
|
1828 |
|
|
|
1829 |
|
|
|
1830 |
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
|
|
|
1831 |
# ------------------------------------
|
|
|
1832 |
# Quote a variable value, and forward it to `config.status' so that its
|
|
|
1833 |
# declaration there will have the same value as in `configure'. VARNAME
|
|
|
1834 |
# must have a single quote delimited value for this to work.
|
|
|
1835 |
m4_define([_LT_CONFIG_STATUS_DECLARE],
|
|
|
1836 |
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
|
|
|
1837 |
|
|
|
1838 |
|
|
|
1839 |
# _LT_CONFIG_STATUS_DECLARATIONS
|
|
|
1840 |
# ------------------------------
|
|
|
1841 |
# We delimit libtool config variables with single quotes, so when
|
|
|
1842 |
# we write them to config.status, we have to be sure to quote all
|
|
|
1843 |
# embedded single quotes properly. In configure, this macro expands
|
|
|
1844 |
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
|
|
1845 |
#
|
|
|
1846 |
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
|
|
|
1847 |
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
|
|
1848 |
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
|
|
1849 |
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
|
|
1850 |
|
|
|
1851 |
|
|
|
1852 |
# _LT_LIBTOOL_TAGS
|
|
|
1853 |
# ----------------
|
|
|
1854 |
# Output comment and list of tags supported by the script
|
|
|
1855 |
m4_defun([_LT_LIBTOOL_TAGS],
|
|
|
1856 |
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
|
|
|
1857 |
available_tags="_LT_TAGS"dnl
|
|
|
1858 |
])
|
|
|
1859 |
|
|
|
1860 |
|
|
|
1861 |
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
|
|
|
1862 |
# -----------------------------------
|
|
|
1863 |
# Extract the dictionary values for VARNAME (optionally with TAG) and
|
|
|
1864 |
# expand to a commented shell variable setting:
|
|
|
1865 |
#
|
|
|
1866 |
# # Some comment about what VAR is for.
|
|
|
1867 |
# visible_name=$lt_internal_name
|
|
|
1868 |
m4_define([_LT_LIBTOOL_DECLARE],
|
|
|
1869 |
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
|
|
|
1870 |
[description])))[]dnl
|
|
|
1871 |
m4_pushdef([_libtool_name],
|
|
|
1872 |
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
|
|
|
1873 |
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
|
|
|
1874 |
[0], [_libtool_name=[$]$1],
|
|
|
1875 |
[1], [_libtool_name=$lt_[]$1],
|
|
|
1876 |
[2], [_libtool_name=$lt_[]$1],
|
|
|
1877 |
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
|
|
|
1878 |
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
|
|
|
1879 |
])
|
|
|
1880 |
|
|
|
1881 |
|
|
|
1882 |
# _LT_LIBTOOL_CONFIG_VARS
|
|
|
1883 |
# -----------------------
|
|
|
1884 |
# Produce commented declarations of non-tagged libtool config variables
|
|
|
1885 |
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
|
|
|
1886 |
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
|
|
|
1887 |
# section) are produced by _LT_LIBTOOL_TAG_VARS.
|
|
|
1888 |
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
|
|
|
1889 |
[m4_foreach([_lt_var],
|
|
|
1890 |
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
|
|
|
1891 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
|
|
|
1892 |
|
|
|
1893 |
|
|
|
1894 |
# _LT_LIBTOOL_TAG_VARS(TAG)
|
|
|
1895 |
# -------------------------
|
|
|
1896 |
m4_define([_LT_LIBTOOL_TAG_VARS],
|
|
|
1897 |
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
|
|
|
1898 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
|
|
|
1899 |
|
|
|
1900 |
|
|
|
1901 |
# _LT_TAGVAR(VARNAME, [TAGNAME])
|
|
|
1902 |
# ------------------------------
|
|
|
1903 |
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
|
|
|
1904 |
|
|
|
1905 |
|
|
|
1906 |
# _LT_CONFIG_COMMANDS
|
|
|
1907 |
# -------------------
|
|
|
1908 |
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
|
|
|
1909 |
# variables for single and double quote escaping we saved from calls
|
|
|
1910 |
# to _LT_DECL, we can put quote escaped variables declarations
|
|
|
1911 |
# into `config.status', and then the shell code to quote escape them in
|
|
|
1912 |
# for loops in `config.status'. Finally, any additional code accumulated
|
|
|
1913 |
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
|
|
|
1914 |
m4_defun([_LT_CONFIG_COMMANDS],
|
|
|
1915 |
[AC_PROVIDE_IFELSE([LT_OUTPUT],
|
|
|
1916 |
dnl If the libtool generation code has been placed in $CONFIG_LT,
|
|
|
1917 |
dnl instead of duplicating it all over again into config.status,
|
|
|
1918 |
dnl then we will have config.status run $CONFIG_LT later, so it
|
|
|
1919 |
dnl needs to know what name is stored there:
|
|
|
1920 |
[AC_CONFIG_COMMANDS([libtool],
|
|
|
1921 |
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
|
|
|
1922 |
dnl If the libtool generation code is destined for config.status,
|
|
|
1923 |
dnl expand the accumulated commands and init code now:
|
|
|
1924 |
[AC_CONFIG_COMMANDS([libtool],
|
|
|
1925 |
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
|
|
|
1926 |
])#_LT_CONFIG_COMMANDS
|
|
|
1927 |
|
|
|
1928 |
|
|
|
1929 |
# Initialize.
|
|
|
1930 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
|
|
|
1931 |
[
|
|
|
1932 |
|
|
|
1933 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
|
1934 |
# if CDPATH is set.
|
|
|
1935 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
1936 |
|
|
|
1937 |
sed_quote_subst='$sed_quote_subst'
|
|
|
1938 |
double_quote_subst='$double_quote_subst'
|
|
|
1939 |
delay_variable_subst='$delay_variable_subst'
|
|
|
1940 |
_LT_CONFIG_STATUS_DECLARATIONS
|
|
|
1941 |
LTCC='$LTCC'
|
|
|
1942 |
LTCFLAGS='$LTCFLAGS'
|
|
|
1943 |
compiler='$compiler_DEFAULT'
|
|
|
1944 |
|
|
|
1945 |
# A function that is used when there is no print builtin or printf.
|
|
|
1946 |
func_fallback_echo ()
|
|
|
1947 |
{
|
|
|
1948 |
eval 'cat <<_LTECHO_EOF
|
|
|
1949 |
\$[]1
|
|
|
1950 |
_LTECHO_EOF'
|
|
|
1951 |
}
|
|
|
1952 |
|
|
|
1953 |
# Quote evaled strings.
|
|
|
1954 |
for var in lt_decl_all_varnames([[ \
|
|
|
1955 |
]], lt_decl_quote_varnames); do
|
|
|
1956 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
|
|
1957 |
*[[\\\\\\\`\\"\\\$]]*)
|
|
|
1958 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
|
|
1959 |
;;
|
|
|
1960 |
*)
|
|
|
1961 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
|
1962 |
;;
|
|
|
1963 |
esac
|
|
|
1964 |
done
|
|
|
1965 |
|
|
|
1966 |
# Double-quote double-evaled strings.
|
|
|
1967 |
for var in lt_decl_all_varnames([[ \
|
|
|
1968 |
]], lt_decl_dquote_varnames); do
|
|
|
1969 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
|
|
1970 |
*[[\\\\\\\`\\"\\\$]]*)
|
|
|
1971 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
|
|
1972 |
;;
|
|
|
1973 |
*)
|
|
|
1974 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
|
1975 |
;;
|
|
|
1976 |
esac
|
|
|
1977 |
done
|
|
|
1978 |
|
|
|
1979 |
_LT_OUTPUT_LIBTOOL_INIT
|
|
|
1980 |
])
|
|
|
1981 |
|
|
|
1982 |
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
|
|
|
1983 |
# ------------------------------------
|
|
|
1984 |
# Generate a child script FILE with all initialization necessary to
|
|
|
1985 |
# reuse the environment learned by the parent script, and make the
|
|
|
1986 |
# file executable. If COMMENT is supplied, it is inserted after the
|
|
|
1987 |
# `#!' sequence but before initialization text begins. After this
|
|
|
1988 |
# macro, additional text can be appended to FILE to form the body of
|
|
|
1989 |
# the child script. The macro ends with non-zero status if the
|
|
|
1990 |
# file could not be fully written (such as if the disk is full).
|
|
|
1991 |
m4_ifdef([AS_INIT_GENERATED],
|
|
|
1992 |
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
|
|
|
1993 |
[m4_defun([_LT_GENERATED_FILE_INIT],
|
|
|
1994 |
[m4_require([AS_PREPARE])]dnl
|
|
|
1995 |
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
|
|
|
1996 |
[lt_write_fail=0
|
|
|
1997 |
cat >$1 <<_ASEOF || lt_write_fail=1
|
|
|
1998 |
#! $SHELL
|
|
|
1999 |
# Generated by $as_me.
|
|
|
2000 |
$2
|
|
|
2001 |
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
|
2002 |
export SHELL
|
|
|
2003 |
_ASEOF
|
|
|
2004 |
cat >>$1 <<\_ASEOF || lt_write_fail=1
|
|
|
2005 |
AS_SHELL_SANITIZE
|
|
|
2006 |
_AS_PREPARE
|
|
|
2007 |
exec AS_MESSAGE_FD>&1
|
|
|
2008 |
_ASEOF
|
|
|
2009 |
test $lt_write_fail = 0 && chmod +x $1[]dnl
|
|
|
2010 |
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
|
|
|
2011 |
|
|
|
2012 |
# LT_OUTPUT
|
|
|
2013 |
# ---------
|
|
|
2014 |
# This macro allows early generation of the libtool script (before
|
|
|
2015 |
# AC_OUTPUT is called), incase it is used in configure for compilation
|
|
|
2016 |
# tests.
|
|
|
2017 |
AC_DEFUN([LT_OUTPUT],
|
|
|
2018 |
[: ${CONFIG_LT=./config.lt}
|
|
|
2019 |
AC_MSG_NOTICE([creating $CONFIG_LT])
|
|
|
2020 |
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
|
|
|
2021 |
[# Run this file to recreate a libtool stub with the current configuration.])
|
|
|
2022 |
|
|
|
2023 |
cat >>"$CONFIG_LT" <<\_LTEOF
|
|
|
2024 |
lt_cl_silent=false
|
|
|
2025 |
exec AS_MESSAGE_LOG_FD>>config.log
|
|
|
2026 |
{
|
|
|
2027 |
echo
|
|
|
2028 |
AS_BOX([Running $as_me.])
|
|
|
2029 |
} >&AS_MESSAGE_LOG_FD
|
|
|
2030 |
|
|
|
2031 |
lt_cl_help="\
|
|
|
2032 |
\`$as_me' creates a local libtool stub from the current configuration,
|
|
|
2033 |
for use in further configure time tests before the real libtool is
|
|
|
2034 |
generated.
|
|
|
2035 |
|
|
|
2036 |
Usage: $[0] [[OPTIONS]]
|
|
|
2037 |
|
|
|
2038 |
-h, --help print this help, then exit
|
|
|
2039 |
-V, --version print version number, then exit
|
|
|
2040 |
-q, --quiet do not print progress messages
|
|
|
2041 |
-d, --debug don't remove temporary files
|
|
|
2042 |
|
|
|
2043 |
Report bugs to <bug-libtool@gnu.org>."
|
|
|
2044 |
|
|
|
2045 |
lt_cl_version="\
|
|
|
2046 |
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
|
2047 |
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
|
|
2048 |
configured by $[0], generated by m4_PACKAGE_STRING.
|
|
|
2049 |
|
5157 |
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
|
2050 |
Copyright (C) 2011 Free Software Foundation, Inc.
|
5158 |
dnl This file is free software, distributed under the terms of the GNU
|
2051 |
This config.lt script is free software; the Free Software Foundation
|
5159 |
dnl General Public License. As a special exception to the GNU General
|
2052 |
gives unlimited permision to copy, distribute and modify it."
|
5160 |
dnl Public License, this file may be distributed as part of a program
|
|
|
5161 |
dnl that contains a configuration script generated by Autoconf, under
|
|
|
5162 |
dnl the same distribution terms as the rest of that program.
|
|
|
5163 |
|
2053 |
|
5164 |
dnl Subroutines of libtool.m4,
|
2054 |
while test $[#] != 0
|
5165 |
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
|
2055 |
do
|
5166 |
dnl with libtool.m4.
|
2056 |
case $[1] in
|
|
|
2057 |
--version | --v* | -V )
|
|
|
2058 |
echo "$lt_cl_version"; exit 0 ;;
|
|
|
2059 |
--help | --h* | -h )
|
|
|
2060 |
echo "$lt_cl_help"; exit 0 ;;
|
|
|
2061 |
--debug | --d* | -d )
|
|
|
2062 |
debug=: ;;
|
|
|
2063 |
--quiet | --q* | --silent | --s* | -q )
|
|
|
2064 |
lt_cl_silent=: ;;
|
5167 |
|
2065 |
|
5168 |
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
|
2066 |
-*) AC_MSG_ERROR([unrecognized option: $[1]
|
5169 |
AC_DEFUN([AC_LIB_PROG_LD_GNU],
|
2067 |
Try \`$[0] --help' for more information.]) ;;
|
5170 |
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
|
2068 |
|
5171 |
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
2069 |
*) AC_MSG_ERROR([unrecognized argument: $[1]
|
5172 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
2070 |
Try \`$[0] --help' for more information.]) ;;
|
5173 |
acl_cv_prog_gnu_ld=yes
|
2071 |
esac
|
|
|
2072 |
shift
|
|
|
2073 |
done
|
|
|
2074 |
|
|
|
2075 |
if $lt_cl_silent; then
|
|
|
2076 |
exec AS_MESSAGE_FD>/dev/null
|
|
|
2077 |
fi
|
|
|
2078 |
_LTEOF
|
|
|
2079 |
|
|
|
2080 |
cat >>"$CONFIG_LT" <<_LTEOF
|
|
|
2081 |
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
|
|
|
2082 |
_LTEOF
|
|
|
2083 |
|
|
|
2084 |
cat >>"$CONFIG_LT" <<\_LTEOF
|
|
|
2085 |
AC_MSG_NOTICE([creating $ofile])
|
|
|
2086 |
_LT_OUTPUT_LIBTOOL_COMMANDS
|
|
|
2087 |
AS_EXIT(0)
|
|
|
2088 |
_LTEOF
|
|
|
2089 |
chmod +x "$CONFIG_LT"
|
|
|
2090 |
|
|
|
2091 |
# configure is writing to config.log, but config.lt does its own redirection,
|
|
|
2092 |
# appending to config.log, which fails on DOS, as config.log is still kept
|
|
|
2093 |
# open by configure. Here we exec the FD to /dev/null, effectively closing
|
|
|
2094 |
# config.log, so it can be properly (re)opened and appended to by config.lt.
|
|
|
2095 |
lt_cl_success=:
|
|
|
2096 |
test "$silent" = yes &&
|
|
|
2097 |
lt_config_lt_args="$lt_config_lt_args --quiet"
|
|
|
2098 |
exec AS_MESSAGE_LOG_FD>/dev/null
|
|
|
2099 |
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
|
|
2100 |
exec AS_MESSAGE_LOG_FD>>config.log
|
|
|
2101 |
$lt_cl_success || AS_EXIT(1)
|
|
|
2102 |
])# LT_OUTPUT
|
|
|
2103 |
|
|
|
2104 |
|
|
|
2105 |
# _LT_CONFIG(TAG)
|
|
|
2106 |
# ---------------
|
|
|
2107 |
# If TAG is the built-in tag, create an initial libtool script with a
|
|
|
2108 |
# default configuration from the untagged config vars. Otherwise add code
|
|
|
2109 |
# to config.status for appending the configuration named by TAG from the
|
|
|
2110 |
# matching tagged config vars.
|
|
|
2111 |
m4_defun([_LT_CONFIG],
|
|
|
2112 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
2113 |
_LT_CONFIG_SAVE_COMMANDS([
|
|
|
2114 |
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
|
|
|
2115 |
m4_if(_LT_TAG, [C], [
|
|
|
2116 |
# See if we are running on zsh, and set the options which allow our
|
|
|
2117 |
# commands through without removal of \ escapes.
|
|
|
2118 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
|
2119 |
setopt NO_GLOB_SUBST
|
|
|
2120 |
fi
|
|
|
2121 |
|
|
|
2122 |
cfgfile="${ofile}T"
|
|
|
2123 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
|
|
2124 |
$RM "$cfgfile"
|
|
|
2125 |
|
|
|
2126 |
cat <<_LT_EOF >> "$cfgfile"
|
|
|
2127 |
#! $SHELL
|
|
|
2128 |
|
|
|
2129 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
|
|
2130 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
|
|
2131 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
2132 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
|
2133 |
#
|
|
|
2134 |
_LT_COPYING
|
|
|
2135 |
_LT_LIBTOOL_TAGS
|
|
|
2136 |
|
|
|
2137 |
# ### BEGIN LIBTOOL CONFIG
|
|
|
2138 |
_LT_LIBTOOL_CONFIG_VARS
|
|
|
2139 |
_LT_LIBTOOL_TAG_VARS
|
|
|
2140 |
# ### END LIBTOOL CONFIG
|
|
|
2141 |
|
|
|
2142 |
_LT_EOF
|
|
|
2143 |
|
|
|
2144 |
case $host_os in
|
|
|
2145 |
aix3*)
|
|
|
2146 |
cat <<\_LT_EOF >> "$cfgfile"
|
|
|
2147 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
2148 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
2149 |
# vanish in a puff of smoke.
|
|
|
2150 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
|
2151 |
COLLECT_NAMES=
|
|
|
2152 |
export COLLECT_NAMES
|
|
|
2153 |
fi
|
|
|
2154 |
_LT_EOF
|
|
|
2155 |
;;
|
|
|
2156 |
esac
|
|
|
2157 |
|
|
|
2158 |
_LT_PROG_LTMAIN
|
|
|
2159 |
|
|
|
2160 |
# We use sed instead of cat because bash on DJGPP gets confused if
|
|
|
2161 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
|
2162 |
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
|
2163 |
# is reportedly fixed, but why not run on old versions too?
|
|
|
2164 |
sed '$q' "$ltmain" >> "$cfgfile" \
|
|
|
2165 |
|| (rm -f "$cfgfile"; exit 1)
|
|
|
2166 |
|
|
|
2167 |
_LT_PROG_REPLACE_SHELLFNS
|
|
|
2168 |
|
|
|
2169 |
mv -f "$cfgfile" "$ofile" ||
|
|
|
2170 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
|
2171 |
chmod +x "$ofile"
|
|
|
2172 |
],
|
|
|
2173 |
[cat <<_LT_EOF >> "$ofile"
|
|
|
2174 |
|
|
|
2175 |
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
|
|
|
2176 |
dnl in a comment (ie after a #).
|
|
|
2177 |
# ### BEGIN LIBTOOL TAG CONFIG: $1
|
|
|
2178 |
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
|
|
|
2179 |
# ### END LIBTOOL TAG CONFIG: $1
|
|
|
2180 |
_LT_EOF
|
|
|
2181 |
])dnl /m4_if
|
|
|
2182 |
],
|
|
|
2183 |
[m4_if([$1], [], [
|
|
|
2184 |
PACKAGE='$PACKAGE'
|
|
|
2185 |
VERSION='$VERSION'
|
|
|
2186 |
TIMESTAMP='$TIMESTAMP'
|
|
|
2187 |
RM='$RM'
|
|
|
2188 |
ofile='$ofile'], [])
|
|
|
2189 |
])dnl /_LT_CONFIG_SAVE_COMMANDS
|
|
|
2190 |
])# _LT_CONFIG
|
|
|
2191 |
|
|
|
2192 |
|
|
|
2193 |
# LT_SUPPORTED_TAG(TAG)
|
|
|
2194 |
# ---------------------
|
|
|
2195 |
# Trace this macro to discover what tags are supported by the libtool
|
|
|
2196 |
# --tag option, using:
|
|
|
2197 |
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
|
|
|
2198 |
AC_DEFUN([LT_SUPPORTED_TAG], [])
|
|
|
2199 |
|
|
|
2200 |
|
|
|
2201 |
# C support is built-in for now
|
|
|
2202 |
m4_define([_LT_LANG_C_enabled], [])
|
|
|
2203 |
m4_define([_LT_TAGS], [])
|
|
|
2204 |
|
|
|
2205 |
|
|
|
2206 |
# LT_LANG(LANG)
|
|
|
2207 |
# -------------
|
|
|
2208 |
# Enable libtool support for the given language if not already enabled.
|
|
|
2209 |
AC_DEFUN([LT_LANG],
|
|
|
2210 |
[AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
|
2211 |
m4_case([$1],
|
|
|
2212 |
[C], [_LT_LANG(C)],
|
|
|
2213 |
[C++], [_LT_LANG(CXX)],
|
|
|
2214 |
[Go], [_LT_LANG(GO)],
|
|
|
2215 |
[Java], [_LT_LANG(GCJ)],
|
|
|
2216 |
[Fortran 77], [_LT_LANG(F77)],
|
|
|
2217 |
[Fortran], [_LT_LANG(FC)],
|
|
|
2218 |
[Windows Resource], [_LT_LANG(RC)],
|
|
|
2219 |
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
|
|
|
2220 |
[_LT_LANG($1)],
|
|
|
2221 |
[m4_fatal([$0: unsupported language: "$1"])])])dnl
|
|
|
2222 |
])# LT_LANG
|
|
|
2223 |
|
|
|
2224 |
|
|
|
2225 |
# _LT_LANG(LANGNAME)
|
|
|
2226 |
# ------------------
|
|
|
2227 |
m4_defun([_LT_LANG],
|
|
|
2228 |
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
|
|
|
2229 |
[LT_SUPPORTED_TAG([$1])dnl
|
|
|
2230 |
m4_append([_LT_TAGS], [$1 ])dnl
|
|
|
2231 |
m4_define([_LT_LANG_]$1[_enabled], [])dnl
|
|
|
2232 |
_LT_LANG_$1_CONFIG($1)])dnl
|
|
|
2233 |
])# _LT_LANG
|
|
|
2234 |
|
|
|
2235 |
|
|
|
2236 |
m4_ifndef([AC_PROG_GO], [
|
|
|
2237 |
# NOTE: This macro has been submitted for inclusion into #
|
|
|
2238 |
# GNU Autoconf as AC_PROG_GO. When it is available in #
|
|
|
2239 |
# a released version of Autoconf we should remove this #
|
|
|
2240 |
# macro and use it instead. #
|
|
|
2241 |
m4_defun([AC_PROG_GO],
|
|
|
2242 |
[AC_LANG_PUSH(Go)dnl
|
|
|
2243 |
AC_ARG_VAR([GOC], [Go compiler command])dnl
|
|
|
2244 |
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
|
|
|
2245 |
_AC_ARG_VAR_LDFLAGS()dnl
|
|
|
2246 |
AC_CHECK_TOOL(GOC, gccgo)
|
|
|
2247 |
if test -z "$GOC"; then
|
|
|
2248 |
if test -n "$ac_tool_prefix"; then
|
|
|
2249 |
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
|
|
|
2250 |
fi
|
|
|
2251 |
fi
|
|
|
2252 |
if test -z "$GOC"; then
|
|
|
2253 |
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
|
|
|
2254 |
fi
|
|
|
2255 |
])#m4_defun
|
|
|
2256 |
])#m4_ifndef
|
|
|
2257 |
|
|
|
2258 |
|
|
|
2259 |
# _LT_LANG_DEFAULT_CONFIG
|
|
|
2260 |
# -----------------------
|
|
|
2261 |
m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
|
|
2262 |
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
|
2263 |
[LT_LANG(CXX)],
|
|
|
2264 |
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
|
|
|
2265 |
|
|
|
2266 |
AC_PROVIDE_IFELSE([AC_PROG_F77],
|
|
|
2267 |
[LT_LANG(F77)],
|
|
|
2268 |
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
|
|
|
2269 |
|
|
|
2270 |
AC_PROVIDE_IFELSE([AC_PROG_FC],
|
|
|
2271 |
[LT_LANG(FC)],
|
|
|
2272 |
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
|
|
|
2273 |
|
|
|
2274 |
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
|
|
|
2275 |
dnl pulling things in needlessly.
|
|
|
2276 |
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
|
|
2277 |
[LT_LANG(GCJ)],
|
|
|
2278 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
|
|
2279 |
[LT_LANG(GCJ)],
|
|
|
2280 |
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
|
|
|
2281 |
[LT_LANG(GCJ)],
|
|
|
2282 |
[m4_ifdef([AC_PROG_GCJ],
|
|
|
2283 |
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
|
|
|
2284 |
m4_ifdef([A][M_PROG_GCJ],
|
|
|
2285 |
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
|
|
|
2286 |
m4_ifdef([LT_PROG_GCJ],
|
|
|
2287 |
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
|
|
2288 |
|
|
|
2289 |
AC_PROVIDE_IFELSE([AC_PROG_GO],
|
|
|
2290 |
[LT_LANG(GO)],
|
|
|
2291 |
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
|
|
|
2292 |
|
|
|
2293 |
AC_PROVIDE_IFELSE([LT_PROG_RC],
|
|
|
2294 |
[LT_LANG(RC)],
|
|
|
2295 |
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
|
|
2296 |
])# _LT_LANG_DEFAULT_CONFIG
|
|
|
2297 |
|
|
|
2298 |
# Obsolete macros:
|
|
|
2299 |
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
|
|
|
2300 |
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
|
|
|
2301 |
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
|
|
|
2302 |
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
|
|
|
2303 |
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
|
|
|
2304 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
2305 |
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
|
|
|
2306 |
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
|
|
|
2307 |
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
|
|
|
2308 |
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
|
|
|
2309 |
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
|
|
|
2310 |
|
|
|
2311 |
|
|
|
2312 |
# _LT_TAG_COMPILER
|
|
|
2313 |
# ----------------
|
|
|
2314 |
m4_defun([_LT_TAG_COMPILER],
|
|
|
2315 |
[AC_REQUIRE([AC_PROG_CC])dnl
|
|
|
2316 |
|
|
|
2317 |
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
|
|
|
2318 |
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
|
|
|
2319 |
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
|
|
|
2320 |
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
|
|
|
2321 |
|
|
|
2322 |
# If no C compiler was specified, use CC.
|
|
|
2323 |
LTCC=${LTCC-"$CC"}
|
|
|
2324 |
|
|
|
2325 |
# If no C compiler flags were specified, use CFLAGS.
|
|
|
2326 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
2327 |
|
|
|
2328 |
# Allow CC to be a program name with arguments.
|
|
|
2329 |
compiler=$CC
|
|
|
2330 |
])# _LT_TAG_COMPILER
|
|
|
2331 |
|
|
|
2332 |
|
|
|
2333 |
# _LT_COMPILER_BOILERPLATE
|
|
|
2334 |
# ------------------------
|
|
|
2335 |
# Check for compiler boilerplate output or warnings with
|
|
|
2336 |
# the simple compiler test code.
|
|
|
2337 |
m4_defun([_LT_COMPILER_BOILERPLATE],
|
|
|
2338 |
[m4_require([_LT_DECL_SED])dnl
|
|
|
2339 |
ac_outfile=conftest.$ac_objext
|
|
|
2340 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
|
2341 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
2342 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
|
2343 |
$RM conftest*
|
|
|
2344 |
])# _LT_COMPILER_BOILERPLATE
|
|
|
2345 |
|
|
|
2346 |
|
|
|
2347 |
# _LT_LINKER_BOILERPLATE
|
|
|
2348 |
# ----------------------
|
|
|
2349 |
# Check for linker boilerplate output or warnings with
|
|
|
2350 |
# the simple link test code.
|
|
|
2351 |
m4_defun([_LT_LINKER_BOILERPLATE],
|
|
|
2352 |
[m4_require([_LT_DECL_SED])dnl
|
|
|
2353 |
ac_outfile=conftest.$ac_objext
|
|
|
2354 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
|
2355 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
2356 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
|
2357 |
$RM -r conftest*
|
|
|
2358 |
])# _LT_LINKER_BOILERPLATE
|
|
|
2359 |
|
|
|
2360 |
# _LT_REQUIRED_DARWIN_CHECKS
|
|
|
2361 |
# -------------------------
|
|
|
2362 |
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
|
2363 |
case $host_os in
|
|
|
2364 |
rhapsody* | darwin*)
|
|
|
2365 |
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
|
|
|
2366 |
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
|
|
|
2367 |
AC_CHECK_TOOL([LIPO], [lipo], [:])
|
|
|
2368 |
AC_CHECK_TOOL([OTOOL], [otool], [:])
|
|
|
2369 |
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
|
|
|
2370 |
_LT_DECL([], [DSYMUTIL], [1],
|
|
|
2371 |
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
|
|
|
2372 |
_LT_DECL([], [NMEDIT], [1],
|
|
|
2373 |
[Tool to change global to local symbols on Mac OS X])
|
|
|
2374 |
_LT_DECL([], [LIPO], [1],
|
|
|
2375 |
[Tool to manipulate fat objects and archives on Mac OS X])
|
|
|
2376 |
_LT_DECL([], [OTOOL], [1],
|
|
|
2377 |
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
|
|
|
2378 |
_LT_DECL([], [OTOOL64], [1],
|
|
|
2379 |
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
|
|
|
2380 |
|
|
|
2381 |
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
|
|
|
2382 |
[lt_cv_apple_cc_single_mod=no
|
|
|
2383 |
if test -z "${LT_MULTI_MODULE}"; then
|
|
|
2384 |
# By default we will add the -single_module flag. You can override
|
|
|
2385 |
# by either setting the environment variable LT_MULTI_MODULE
|
|
|
2386 |
# non-empty at configure time, or by adding -multi_module to the
|
|
|
2387 |
# link flags.
|
|
|
2388 |
rm -rf libconftest.dylib*
|
|
|
2389 |
echo "int foo(void){return 1;}" > conftest.c
|
|
|
2390 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
|
2391 |
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
|
|
|
2392 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
|
2393 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
|
2394 |
_lt_result=$?
|
|
|
2395 |
# If there is a non-empty error log, and "single_module"
|
|
|
2396 |
# appears in it, assume the flag caused a linker warning
|
|
|
2397 |
if test -s conftest.err && $GREP single_module conftest.err; then
|
|
|
2398 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
2399 |
# Otherwise, if the output was created with a 0 exit code from
|
|
|
2400 |
# the compiler, it worked.
|
|
|
2401 |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
|
|
|
2402 |
lt_cv_apple_cc_single_mod=yes
|
|
|
2403 |
else
|
|
|
2404 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
2405 |
fi
|
|
|
2406 |
rm -rf libconftest.dylib*
|
|
|
2407 |
rm -f conftest.*
|
|
|
2408 |
fi])
|
|
|
2409 |
|
|
|
2410 |
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
|
|
2411 |
[lt_cv_ld_exported_symbols_list],
|
|
|
2412 |
[lt_cv_ld_exported_symbols_list=no
|
|
|
2413 |
save_LDFLAGS=$LDFLAGS
|
|
|
2414 |
echo "_main" > conftest.sym
|
|
|
2415 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
|
|
2416 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
|
|
2417 |
[lt_cv_ld_exported_symbols_list=yes],
|
|
|
2418 |
[lt_cv_ld_exported_symbols_list=no])
|
|
|
2419 |
LDFLAGS="$save_LDFLAGS"
|
|
|
2420 |
])
|
|
|
2421 |
|
|
|
2422 |
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
|
|
|
2423 |
[lt_cv_ld_force_load=no
|
|
|
2424 |
cat > conftest.c << _LT_EOF
|
|
|
2425 |
int forced_loaded() { return 2;}
|
|
|
2426 |
_LT_EOF
|
|
|
2427 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
|
|
|
2428 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
|
|
|
2429 |
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
|
|
|
2430 |
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
|
|
|
2431 |
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
|
|
|
2432 |
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
|
|
|
2433 |
cat > conftest.c << _LT_EOF
|
|
|
2434 |
int main() { return 0;}
|
|
|
2435 |
_LT_EOF
|
|
|
2436 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
|
|
|
2437 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
|
|
2438 |
_lt_result=$?
|
|
|
2439 |
if test -s conftest.err && $GREP force_load conftest.err; then
|
|
|
2440 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
2441 |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
|
|
|
2442 |
lt_cv_ld_force_load=yes
|
|
|
2443 |
else
|
|
|
2444 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
2445 |
fi
|
|
|
2446 |
rm -f conftest.err libconftest.a conftest conftest.c
|
|
|
2447 |
rm -rf conftest.dSYM
|
|
|
2448 |
])
|
|
|
2449 |
case $host_os in
|
|
|
2450 |
rhapsody* | darwin1.[[012]])
|
|
|
2451 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
|
|
2452 |
darwin1.*)
|
|
|
2453 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
|
2454 |
darwin*) # darwin 5.x on
|
|
|
2455 |
# if running on 10.5 or later, the deployment target defaults
|
|
|
2456 |
# to the OS version, if on x86, and 10.4, the deployment
|
|
|
2457 |
# target defaults to 10.4. Don't you love it?
|
|
|
2458 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
|
|
2459 |
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
|
|
|
2460 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
|
2461 |
10.[[012]]*)
|
|
|
2462 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
|
2463 |
10.*)
|
|
|
2464 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
|
2465 |
esac
|
|
|
2466 |
;;
|
|
|
2467 |
esac
|
|
|
2468 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
|
|
2469 |
_lt_dar_single_mod='$single_module'
|
|
|
2470 |
fi
|
|
|
2471 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
|
|
2472 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
|
|
2473 |
else
|
|
|
2474 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
2475 |
fi
|
|
|
2476 |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
|
|
|
2477 |
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
|
|
2478 |
else
|
|
|
2479 |
_lt_dsymutil=
|
|
|
2480 |
fi
|
|
|
2481 |
;;
|
|
|
2482 |
esac
|
|
|
2483 |
])
|
|
|
2484 |
|
|
|
2485 |
|
|
|
2486 |
# _LT_DARWIN_LINKER_FEATURES([TAG])
|
|
|
2487 |
# ---------------------------------
|
|
|
2488 |
# Checks for linker and compiler features on darwin
|
|
|
2489 |
m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
|
2490 |
[
|
|
|
2491 |
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
|
|
|
2492 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
2493 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
2494 |
_LT_TAGVAR(hardcode_automatic, $1)=yes
|
|
|
2495 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
|
2496 |
if test "$lt_cv_ld_force_load" = "yes"; then
|
|
|
2497 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
|
|
|
2498 |
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
|
|
|
2499 |
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
|
|
|
2500 |
else
|
|
|
2501 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
|
|
2502 |
fi
|
|
|
2503 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
2504 |
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
|
|
|
2505 |
case $cc_basename in
|
|
|
2506 |
ifort*) _lt_dar_can_shared=yes ;;
|
|
|
2507 |
*) _lt_dar_can_shared=$GCC ;;
|
|
|
2508 |
esac
|
|
|
2509 |
if test "$_lt_dar_can_shared" = "yes"; then
|
|
|
2510 |
output_verbose_link_cmd=func_echo_all
|
|
|
2511 |
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
|
|
|
2512 |
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
|
|
2513 |
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
|
|
|
2514 |
_LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
|
|
|
2515 |
m4_if([$1], [CXX],
|
|
|
2516 |
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
|
|
|
2517 |
_LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
|
|
|
2518 |
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
|
|
|
2519 |
fi
|
|
|
2520 |
],[])
|
|
|
2521 |
else
|
|
|
2522 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
2523 |
fi
|
|
|
2524 |
])
|
|
|
2525 |
|
|
|
2526 |
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
|
|
|
2527 |
# ----------------------------------
|
|
|
2528 |
# Links a minimal program and checks the executable
|
|
|
2529 |
# for the system default hardcoded library path. In most cases,
|
|
|
2530 |
# this is /usr/lib:/lib, but when the MPI compilers are used
|
|
|
2531 |
# the location of the communication and MPI libs are included too.
|
|
|
2532 |
# If we don't find anything, use the default library path according
|
|
|
2533 |
# to the aix ld manual.
|
|
|
2534 |
# Store the results from the different compilers for each TAGNAME.
|
|
|
2535 |
# Allow to override them for all tags through lt_cv_aix_libpath.
|
|
|
2536 |
m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
|
|
2537 |
[m4_require([_LT_DECL_SED])dnl
|
|
|
2538 |
if test "${lt_cv_aix_libpath+set}" = set; then
|
|
|
2539 |
aix_libpath=$lt_cv_aix_libpath
|
5174 |
else
|
2540 |
else
|
5175 |
acl_cv_prog_gnu_ld=no
|
2541 |
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
|
|
|
2542 |
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
|
|
|
2543 |
lt_aix_libpath_sed='[
|
|
|
2544 |
/Import File Strings/,/^$/ {
|
|
|
2545 |
/^0/ {
|
|
|
2546 |
s/^0 *\([^ ]*\) *$/\1/
|
|
|
2547 |
p
|
|
|
2548 |
}
|
|
|
2549 |
}]'
|
|
|
2550 |
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
2551 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
2552 |
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
|
|
2553 |
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
2554 |
fi],[])
|
|
|
2555 |
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
|
|
2556 |
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
|
|
|
2557 |
fi
|
|
|
2558 |
])
|
|
|
2559 |
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
|
|
|
2560 |
fi
|
|
|
2561 |
])# _LT_SYS_MODULE_PATH_AIX
|
|
|
2562 |
|
|
|
2563 |
|
|
|
2564 |
# _LT_SHELL_INIT(ARG)
|
|
|
2565 |
# -------------------
|
|
|
2566 |
m4_define([_LT_SHELL_INIT],
|
|
|
2567 |
[m4_divert_text([M4SH-INIT], [$1
|
|
|
2568 |
])])# _LT_SHELL_INIT
|
|
|
2569 |
|
|
|
2570 |
|
|
|
2571 |
|
|
|
2572 |
# _LT_PROG_ECHO_BACKSLASH
|
|
|
2573 |
# -----------------------
|
|
|
2574 |
# Find how we can fake an echo command that does not interpret backslash.
|
|
|
2575 |
# In particular, with Autoconf 2.60 or later we add some code to the start
|
|
|
2576 |
# of the generated configure script which will find a shell with a builtin
|
|
|
2577 |
# printf (which we can use as an echo command).
|
|
|
2578 |
m4_defun([_LT_PROG_ECHO_BACKSLASH],
|
|
|
2579 |
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
|
2580 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
|
2581 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
|
2582 |
|
|
|
2583 |
AC_MSG_CHECKING([how to print strings])
|
|
|
2584 |
# Test print first, because it will be a builtin if present.
|
|
|
2585 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
|
2586 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
|
2587 |
ECHO='print -r --'
|
|
|
2588 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
|
2589 |
ECHO='printf %s\n'
|
|
|
2590 |
else
|
|
|
2591 |
# Use this function as a fallback that always works.
|
|
|
2592 |
func_fallback_echo ()
|
|
|
2593 |
{
|
|
|
2594 |
eval 'cat <<_LTECHO_EOF
|
|
|
2595 |
$[]1
|
|
|
2596 |
_LTECHO_EOF'
|
|
|
2597 |
}
|
|
|
2598 |
ECHO='func_fallback_echo'
|
|
|
2599 |
fi
|
|
|
2600 |
|
|
|
2601 |
# func_echo_all arg...
|
|
|
2602 |
# Invoke $ECHO with all args, space-separated.
|
|
|
2603 |
func_echo_all ()
|
|
|
2604 |
{
|
|
|
2605 |
$ECHO "$*"
|
|
|
2606 |
}
|
|
|
2607 |
|
|
|
2608 |
case "$ECHO" in
|
|
|
2609 |
printf*) AC_MSG_RESULT([printf]) ;;
|
|
|
2610 |
print*) AC_MSG_RESULT([print -r]) ;;
|
|
|
2611 |
*) AC_MSG_RESULT([cat]) ;;
|
|
|
2612 |
esac
|
|
|
2613 |
|
|
|
2614 |
m4_ifdef([_AS_DETECT_SUGGESTED],
|
|
|
2615 |
[_AS_DETECT_SUGGESTED([
|
|
|
2616 |
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
|
|
|
2617 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
|
2618 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
|
2619 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
|
2620 |
PATH=/empty FPATH=/empty; export PATH FPATH
|
|
|
2621 |
test "X`printf %s $ECHO`" = "X$ECHO" \
|
|
|
2622 |
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
|
|
|
2623 |
|
|
|
2624 |
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
|
|
|
2625 |
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
|
|
|
2626 |
])# _LT_PROG_ECHO_BACKSLASH
|
|
|
2627 |
|
|
|
2628 |
|
|
|
2629 |
# _LT_WITH_SYSROOT
|
|
|
2630 |
# ----------------
|
|
|
2631 |
AC_DEFUN([_LT_WITH_SYSROOT],
|
|
|
2632 |
[AC_MSG_CHECKING([for sysroot])
|
|
|
2633 |
AC_ARG_WITH([sysroot],
|
|
|
2634 |
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
|
|
|
2635 |
(or the compiler's sysroot if not specified).],
|
|
|
2636 |
[], [with_sysroot=no])
|
|
|
2637 |
|
|
|
2638 |
dnl lt_sysroot will always be passed unquoted. We quote it here
|
|
|
2639 |
dnl in case the user passed a directory name.
|
|
|
2640 |
lt_sysroot=
|
|
|
2641 |
case ${with_sysroot} in #(
|
|
|
2642 |
yes)
|
|
|
2643 |
if test "$GCC" = yes; then
|
|
|
2644 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
|
2645 |
fi
|
|
|
2646 |
;; #(
|
|
|
2647 |
/*)
|
|
|
2648 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
|
|
2649 |
;; #(
|
|
|
2650 |
no|'')
|
|
|
2651 |
;; #(
|
|
|
2652 |
*)
|
|
|
2653 |
AC_MSG_RESULT([${with_sysroot}])
|
|
|
2654 |
AC_MSG_ERROR([The sysroot must be an absolute path.])
|
|
|
2655 |
;;
|
|
|
2656 |
esac
|
|
|
2657 |
|
|
|
2658 |
AC_MSG_RESULT([${lt_sysroot:-no}])
|
|
|
2659 |
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
|
|
|
2660 |
[dependent libraries, and in which our libraries should be installed.])])
|
|
|
2661 |
|
|
|
2662 |
# _LT_ENABLE_LOCK
|
|
|
2663 |
# ---------------
|
|
|
2664 |
m4_defun([_LT_ENABLE_LOCK],
|
|
|
2665 |
[AC_ARG_ENABLE([libtool-lock],
|
|
|
2666 |
[AS_HELP_STRING([--disable-libtool-lock],
|
|
|
2667 |
[avoid locking (might break parallel builds)])])
|
|
|
2668 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|
|
2669 |
|
|
|
2670 |
# Some flags need to be propagated to the compiler or linker for good
|
|
|
2671 |
# libtool support.
|
|
|
2672 |
case $host in
|
|
|
2673 |
ia64-*-hpux*)
|
|
|
2674 |
# Find out which ABI we are using.
|
|
|
2675 |
echo 'int i;' > conftest.$ac_ext
|
|
|
2676 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
2677 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
|
2678 |
*ELF-32*)
|
|
|
2679 |
HPUX_IA64_MODE="32"
|
|
|
2680 |
;;
|
|
|
2681 |
*ELF-64*)
|
|
|
2682 |
HPUX_IA64_MODE="64"
|
|
|
2683 |
;;
|
|
|
2684 |
esac
|
|
|
2685 |
fi
|
|
|
2686 |
rm -rf conftest*
|
|
|
2687 |
;;
|
|
|
2688 |
*-*-irix6*)
|
|
|
2689 |
# Find out which ABI we are using.
|
|
|
2690 |
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
|
|
|
2691 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
2692 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
|
2693 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
|
2694 |
*32-bit*)
|
|
|
2695 |
LD="${LD-ld} -melf32bsmip"
|
|
|
2696 |
;;
|
|
|
2697 |
*N32*)
|
|
|
2698 |
LD="${LD-ld} -melf32bmipn32"
|
|
|
2699 |
;;
|
|
|
2700 |
*64-bit*)
|
|
|
2701 |
LD="${LD-ld} -melf64bmip"
|
|
|
2702 |
;;
|
|
|
2703 |
esac
|
|
|
2704 |
else
|
|
|
2705 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
|
2706 |
*32-bit*)
|
|
|
2707 |
LD="${LD-ld} -32"
|
|
|
2708 |
;;
|
|
|
2709 |
*N32*)
|
|
|
2710 |
LD="${LD-ld} -n32"
|
|
|
2711 |
;;
|
|
|
2712 |
*64-bit*)
|
|
|
2713 |
LD="${LD-ld} -64"
|
|
|
2714 |
;;
|
|
|
2715 |
esac
|
|
|
2716 |
fi
|
|
|
2717 |
fi
|
|
|
2718 |
rm -rf conftest*
|
|
|
2719 |
;;
|
|
|
2720 |
|
|
|
2721 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
|
|
2722 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
|
2723 |
# Find out which ABI we are using.
|
|
|
2724 |
echo 'int i;' > conftest.$ac_ext
|
|
|
2725 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
2726 |
case `/usr/bin/file conftest.o` in
|
|
|
2727 |
*32-bit*)
|
|
|
2728 |
case $host in
|
|
|
2729 |
x86_64-*kfreebsd*-gnu)
|
|
|
2730 |
LD="${LD-ld} -m elf_i386_fbsd"
|
|
|
2731 |
;;
|
|
|
2732 |
x86_64-*linux*)
|
|
|
2733 |
LD="${LD-ld} -m elf_i386"
|
|
|
2734 |
;;
|
|
|
2735 |
ppc64-*linux*|powerpc64-*linux*)
|
|
|
2736 |
LD="${LD-ld} -m elf32ppclinux"
|
|
|
2737 |
;;
|
|
|
2738 |
s390x-*linux*)
|
|
|
2739 |
LD="${LD-ld} -m elf_s390"
|
|
|
2740 |
;;
|
|
|
2741 |
sparc64-*linux*)
|
|
|
2742 |
LD="${LD-ld} -m elf32_sparc"
|
|
|
2743 |
;;
|
|
|
2744 |
esac
|
|
|
2745 |
;;
|
|
|
2746 |
*64-bit*)
|
|
|
2747 |
case $host in
|
|
|
2748 |
x86_64-*kfreebsd*-gnu)
|
|
|
2749 |
LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
|
2750 |
;;
|
|
|
2751 |
x86_64-*linux*)
|
|
|
2752 |
LD="${LD-ld} -m elf_x86_64"
|
|
|
2753 |
;;
|
|
|
2754 |
ppc*-*linux*|powerpc*-*linux*)
|
|
|
2755 |
LD="${LD-ld} -m elf64ppc"
|
|
|
2756 |
;;
|
|
|
2757 |
s390*-*linux*|s390*-*tpf*)
|
|
|
2758 |
LD="${LD-ld} -m elf64_s390"
|
|
|
2759 |
;;
|
|
|
2760 |
sparc*-*linux*)
|
|
|
2761 |
LD="${LD-ld} -m elf64_sparc"
|
|
|
2762 |
;;
|
|
|
2763 |
esac
|
|
|
2764 |
;;
|
|
|
2765 |
esac
|
|
|
2766 |
fi
|
|
|
2767 |
rm -rf conftest*
|
|
|
2768 |
;;
|
|
|
2769 |
|
|
|
2770 |
*-*-sco3.2v5*)
|
|
|
2771 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
|
2772 |
SAVE_CFLAGS="$CFLAGS"
|
|
|
2773 |
CFLAGS="$CFLAGS -belf"
|
|
|
2774 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
|
|
2775 |
[AC_LANG_PUSH(C)
|
|
|
2776 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
|
|
2777 |
AC_LANG_POP])
|
|
|
2778 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
|
2779 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
|
2780 |
CFLAGS="$SAVE_CFLAGS"
|
|
|
2781 |
fi
|
|
|
2782 |
;;
|
|
|
2783 |
*-*solaris*)
|
|
|
2784 |
# Find out which ABI we are using.
|
|
|
2785 |
echo 'int i;' > conftest.$ac_ext
|
|
|
2786 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
2787 |
case `/usr/bin/file conftest.o` in
|
|
|
2788 |
*64-bit*)
|
|
|
2789 |
case $lt_cv_prog_gnu_ld in
|
|
|
2790 |
yes*)
|
|
|
2791 |
case $host in
|
|
|
2792 |
i?86-*-solaris*)
|
|
|
2793 |
LD="${LD-ld} -m elf_x86_64"
|
|
|
2794 |
;;
|
|
|
2795 |
sparc*-*-solaris*)
|
|
|
2796 |
LD="${LD-ld} -m elf64_sparc"
|
|
|
2797 |
;;
|
|
|
2798 |
esac
|
|
|
2799 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
|
|
2800 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
|
|
2801 |
LD="${LD-ld}_sol2"
|
|
|
2802 |
fi
|
|
|
2803 |
;;
|
|
|
2804 |
*)
|
|
|
2805 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
|
2806 |
LD="${LD-ld} -64"
|
|
|
2807 |
fi
|
|
|
2808 |
;;
|
|
|
2809 |
esac
|
|
|
2810 |
;;
|
|
|
2811 |
esac
|
|
|
2812 |
fi
|
|
|
2813 |
rm -rf conftest*
|
|
|
2814 |
;;
|
|
|
2815 |
esac
|
|
|
2816 |
|
|
|
2817 |
need_locks="$enable_libtool_lock"
|
|
|
2818 |
])# _LT_ENABLE_LOCK
|
|
|
2819 |
|
|
|
2820 |
|
|
|
2821 |
# _LT_PROG_AR
|
|
|
2822 |
# -----------
|
|
|
2823 |
m4_defun([_LT_PROG_AR],
|
|
|
2824 |
[AC_CHECK_TOOLS(AR, [ar], false)
|
|
|
2825 |
: ${AR=ar}
|
|
|
2826 |
: ${AR_FLAGS=cru}
|
|
|
2827 |
_LT_DECL([], [AR], [1], [The archiver])
|
|
|
2828 |
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
|
|
|
2829 |
|
|
|
2830 |
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
|
|
|
2831 |
[lt_cv_ar_at_file=no
|
|
|
2832 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
|
|
|
2833 |
[echo conftest.$ac_objext > conftest.lst
|
|
|
2834 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
|
|
|
2835 |
AC_TRY_EVAL([lt_ar_try])
|
|
|
2836 |
if test "$ac_status" -eq 0; then
|
|
|
2837 |
# Ensure the archiver fails upon bogus file names.
|
|
|
2838 |
rm -f conftest.$ac_objext libconftest.a
|
|
|
2839 |
AC_TRY_EVAL([lt_ar_try])
|
|
|
2840 |
if test "$ac_status" -ne 0; then
|
|
|
2841 |
lt_cv_ar_at_file=@
|
|
|
2842 |
fi
|
|
|
2843 |
fi
|
|
|
2844 |
rm -f conftest.* libconftest.a
|
|
|
2845 |
])
|
|
|
2846 |
])
|
|
|
2847 |
|
|
|
2848 |
if test "x$lt_cv_ar_at_file" = xno; then
|
|
|
2849 |
archiver_list_spec=
|
|
|
2850 |
else
|
|
|
2851 |
archiver_list_spec=$lt_cv_ar_at_file
|
|
|
2852 |
fi
|
|
|
2853 |
_LT_DECL([], [archiver_list_spec], [1],
|
|
|
2854 |
[How to feed a file listing to the archiver])
|
|
|
2855 |
])# _LT_PROG_AR
|
|
|
2856 |
|
|
|
2857 |
|
|
|
2858 |
# _LT_CMD_OLD_ARCHIVE
|
|
|
2859 |
# -------------------
|
|
|
2860 |
m4_defun([_LT_CMD_OLD_ARCHIVE],
|
|
|
2861 |
[_LT_PROG_AR
|
|
|
2862 |
|
|
|
2863 |
AC_CHECK_TOOL(STRIP, strip, :)
|
|
|
2864 |
test -z "$STRIP" && STRIP=:
|
|
|
2865 |
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
|
|
|
2866 |
|
|
|
2867 |
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
|
|
2868 |
test -z "$RANLIB" && RANLIB=:
|
|
|
2869 |
_LT_DECL([], [RANLIB], [1],
|
|
|
2870 |
[Commands used to install an old-style archive])
|
|
|
2871 |
|
|
|
2872 |
# Determine commands to create old-style static archives.
|
|
|
2873 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
|
2874 |
old_postinstall_cmds='chmod 644 $oldlib'
|
|
|
2875 |
old_postuninstall_cmds=
|
|
|
2876 |
|
|
|
2877 |
if test -n "$RANLIB"; then
|
|
|
2878 |
case $host_os in
|
|
|
2879 |
openbsd*)
|
|
|
2880 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
|
|
2881 |
;;
|
|
|
2882 |
*)
|
|
|
2883 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
|
|
2884 |
;;
|
|
|
2885 |
esac
|
|
|
2886 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
|
|
2887 |
fi
|
|
|
2888 |
|
|
|
2889 |
case $host_os in
|
|
|
2890 |
darwin*)
|
|
|
2891 |
lock_old_archive_extraction=yes ;;
|
|
|
2892 |
*)
|
|
|
2893 |
lock_old_archive_extraction=no ;;
|
|
|
2894 |
esac
|
|
|
2895 |
_LT_DECL([], [old_postinstall_cmds], [2])
|
|
|
2896 |
_LT_DECL([], [old_postuninstall_cmds], [2])
|
|
|
2897 |
_LT_TAGDECL([], [old_archive_cmds], [2],
|
|
|
2898 |
[Commands used to build an old-style archive])
|
|
|
2899 |
_LT_DECL([], [lock_old_archive_extraction], [0],
|
|
|
2900 |
[Whether to use a lock for old archive extraction])
|
|
|
2901 |
])# _LT_CMD_OLD_ARCHIVE
|
|
|
2902 |
|
|
|
2903 |
|
|
|
2904 |
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|
|
2905 |
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
|
|
2906 |
# ----------------------------------------------------------------
|
|
|
2907 |
# Check whether the given compiler option works
|
|
|
2908 |
AC_DEFUN([_LT_COMPILER_OPTION],
|
|
|
2909 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
2910 |
m4_require([_LT_DECL_SED])dnl
|
|
|
2911 |
AC_CACHE_CHECK([$1], [$2],
|
|
|
2912 |
[$2=no
|
|
|
2913 |
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
|
|
2914 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
2915 |
lt_compiler_flag="$3"
|
|
|
2916 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
2917 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
2918 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
2919 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
2920 |
# The option is referenced via a variable to avoid confusing sed.
|
|
|
2921 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
2922 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
2923 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
2924 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
2925 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
|
2926 |
(eval "$lt_compile" 2>conftest.err)
|
|
|
2927 |
ac_status=$?
|
|
|
2928 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
2929 |
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
|
2930 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
2931 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
2932 |
# So say no if there are warnings other than the usual output.
|
|
|
2933 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
|
|
2934 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
2935 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
2936 |
$2=yes
|
|
|
2937 |
fi
|
|
|
2938 |
fi
|
|
|
2939 |
$RM conftest*
|
|
|
2940 |
])
|
|
|
2941 |
|
|
|
2942 |
if test x"[$]$2" = xyes; then
|
|
|
2943 |
m4_if([$5], , :, [$5])
|
|
|
2944 |
else
|
|
|
2945 |
m4_if([$6], , :, [$6])
|
|
|
2946 |
fi
|
|
|
2947 |
])# _LT_COMPILER_OPTION
|
|
|
2948 |
|
|
|
2949 |
# Old name:
|
|
|
2950 |
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
|
|
|
2951 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
2952 |
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
|
|
|
2953 |
|
|
|
2954 |
|
|
|
2955 |
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|
|
2956 |
# [ACTION-SUCCESS], [ACTION-FAILURE])
|
|
|
2957 |
# ----------------------------------------------------
|
|
|
2958 |
# Check whether the given linker option works
|
|
|
2959 |
AC_DEFUN([_LT_LINKER_OPTION],
|
|
|
2960 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
2961 |
m4_require([_LT_DECL_SED])dnl
|
|
|
2962 |
AC_CACHE_CHECK([$1], [$2],
|
|
|
2963 |
[$2=no
|
|
|
2964 |
save_LDFLAGS="$LDFLAGS"
|
|
|
2965 |
LDFLAGS="$LDFLAGS $3"
|
|
|
2966 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
|
2967 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
|
2968 |
# The linker can only warn and ignore the option if not recognized
|
|
|
2969 |
# So say no if there are warnings
|
|
|
2970 |
if test -s conftest.err; then
|
|
|
2971 |
# Append any errors to the config.log.
|
|
|
2972 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
|
|
2973 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
|
|
2974 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
2975 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
2976 |
$2=yes
|
|
|
2977 |
fi
|
|
|
2978 |
else
|
|
|
2979 |
$2=yes
|
|
|
2980 |
fi
|
|
|
2981 |
fi
|
|
|
2982 |
$RM -r conftest*
|
|
|
2983 |
LDFLAGS="$save_LDFLAGS"
|
|
|
2984 |
])
|
|
|
2985 |
|
|
|
2986 |
if test x"[$]$2" = xyes; then
|
|
|
2987 |
m4_if([$4], , :, [$4])
|
|
|
2988 |
else
|
|
|
2989 |
m4_if([$5], , :, [$5])
|
|
|
2990 |
fi
|
|
|
2991 |
])# _LT_LINKER_OPTION
|
|
|
2992 |
|
|
|
2993 |
# Old name:
|
|
|
2994 |
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
|
|
|
2995 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
2996 |
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
|
|
|
2997 |
|
|
|
2998 |
|
|
|
2999 |
# LT_CMD_MAX_LEN
|
|
|
3000 |
#---------------
|
|
|
3001 |
AC_DEFUN([LT_CMD_MAX_LEN],
|
|
|
3002 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
3003 |
# find the maximum length of command line arguments
|
|
|
3004 |
AC_MSG_CHECKING([the maximum length of command line arguments])
|
|
|
3005 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
|
3006 |
i=0
|
|
|
3007 |
teststring="ABCD"
|
|
|
3008 |
|
|
|
3009 |
case $build_os in
|
|
|
3010 |
msdosdjgpp*)
|
|
|
3011 |
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
|
|
3012 |
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
|
|
3013 |
# during glob expansion). Even if it were fixed, the result of this
|
|
|
3014 |
# check would be larger than it should be.
|
|
|
3015 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
|
|
3016 |
;;
|
|
|
3017 |
|
|
|
3018 |
gnu*)
|
|
|
3019 |
# Under GNU Hurd, this test is not required because there is
|
|
|
3020 |
# no limit to the length of command line arguments.
|
|
|
3021 |
# Libtool will interpret -1 as no limit whatsoever
|
|
|
3022 |
lt_cv_sys_max_cmd_len=-1;
|
|
|
3023 |
;;
|
|
|
3024 |
|
|
|
3025 |
cygwin* | mingw* | cegcc*)
|
|
|
3026 |
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
|
|
3027 |
# about 5 minutes as the teststring grows exponentially.
|
|
|
3028 |
# Worse, since 9x/ME are not pre-emptively multitasking,
|
|
|
3029 |
# you end up with a "frozen" computer, even though with patience
|
|
|
3030 |
# the test eventually succeeds (with a max line length of 256k).
|
|
|
3031 |
# Instead, let's just punt: use the minimum linelength reported by
|
|
|
3032 |
# all of the supported platforms: 8192 (on NT/2K/XP).
|
|
|
3033 |
lt_cv_sys_max_cmd_len=8192;
|
|
|
3034 |
;;
|
|
|
3035 |
|
|
|
3036 |
mint*)
|
|
|
3037 |
# On MiNT this can take a long time and run out of memory.
|
|
|
3038 |
lt_cv_sys_max_cmd_len=8192;
|
|
|
3039 |
;;
|
|
|
3040 |
|
|
|
3041 |
amigaos*)
|
|
|
3042 |
# On AmigaOS with pdksh, this test takes hours, literally.
|
|
|
3043 |
# So we just punt and use a minimum line length of 8192.
|
|
|
3044 |
lt_cv_sys_max_cmd_len=8192;
|
|
|
3045 |
;;
|
|
|
3046 |
|
|
|
3047 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
|
|
3048 |
# This has been around since 386BSD, at least. Likely further.
|
|
|
3049 |
if test -x /sbin/sysctl; then
|
|
|
3050 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
|
|
3051 |
elif test -x /usr/sbin/sysctl; then
|
|
|
3052 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|
|
3053 |
else
|
|
|
3054 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
|
|
3055 |
fi
|
|
|
3056 |
# And add a safety zone
|
|
|
3057 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
|
3058 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
|
3059 |
;;
|
|
|
3060 |
|
|
|
3061 |
interix*)
|
|
|
3062 |
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
|
3063 |
lt_cv_sys_max_cmd_len=196608
|
|
|
3064 |
;;
|
|
|
3065 |
|
|
|
3066 |
os2*)
|
|
|
3067 |
# The test takes a long time on OS/2.
|
|
|
3068 |
lt_cv_sys_max_cmd_len=8192
|
|
|
3069 |
;;
|
|
|
3070 |
|
|
|
3071 |
osf*)
|
|
|
3072 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|
|
3073 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
|
3074 |
# nice to cause kernel panics so lets avoid the loop below.
|
|
|
3075 |
# First set a reasonable default.
|
|
|
3076 |
lt_cv_sys_max_cmd_len=16384
|
|
|
3077 |
#
|
|
|
3078 |
if test -x /sbin/sysconfig; then
|
|
|
3079 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
|
|
3080 |
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
|
|
3081 |
esac
|
|
|
3082 |
fi
|
|
|
3083 |
;;
|
|
|
3084 |
sco3.2v5*)
|
|
|
3085 |
lt_cv_sys_max_cmd_len=102400
|
|
|
3086 |
;;
|
|
|
3087 |
sysv5* | sco5v6* | sysv4.2uw2*)
|
|
|
3088 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
|
3089 |
if test -n "$kargmax"; then
|
|
|
3090 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
|
|
3091 |
else
|
|
|
3092 |
lt_cv_sys_max_cmd_len=32768
|
|
|
3093 |
fi
|
|
|
3094 |
;;
|
|
|
3095 |
*)
|
|
|
3096 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
|
|
3097 |
if test -n "$lt_cv_sys_max_cmd_len"; then
|
|
|
3098 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
|
3099 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
|
3100 |
else
|
|
|
3101 |
# Make teststring a little bigger before we do anything with it.
|
|
|
3102 |
# a 1K string should be a reasonable start.
|
|
|
3103 |
for i in 1 2 3 4 5 6 7 8 ; do
|
|
|
3104 |
teststring=$teststring$teststring
|
|
|
3105 |
done
|
|
|
3106 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
|
3107 |
# If test is not a shell built-in, we'll probably end up computing a
|
|
|
3108 |
# maximum length that is only half of the actual maximum length, but
|
|
|
3109 |
# we can't tell.
|
|
|
3110 |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
|
|
|
3111 |
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
|
|
3112 |
test $i != 17 # 1/2 MB should be enough
|
|
|
3113 |
do
|
|
|
3114 |
i=`expr $i + 1`
|
|
|
3115 |
teststring=$teststring$teststring
|
|
|
3116 |
done
|
|
|
3117 |
# Only check the string length outside the loop.
|
|
|
3118 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
|
|
3119 |
teststring=
|
|
|
3120 |
# Add a significant safety factor because C++ compilers can tack on
|
|
|
3121 |
# massive amounts of additional arguments before passing them to the
|
|
|
3122 |
# linker. It appears as though 1/2 is a usable value.
|
|
|
3123 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
|
3124 |
fi
|
|
|
3125 |
;;
|
|
|
3126 |
esac
|
|
|
3127 |
])
|
|
|
3128 |
if test -n $lt_cv_sys_max_cmd_len ; then
|
|
|
3129 |
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
|
|
3130 |
else
|
|
|
3131 |
AC_MSG_RESULT(none)
|
|
|
3132 |
fi
|
|
|
3133 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
3134 |
_LT_DECL([], [max_cmd_len], [0],
|
|
|
3135 |
[What is the maximum length of a command?])
|
|
|
3136 |
])# LT_CMD_MAX_LEN
|
|
|
3137 |
|
|
|
3138 |
# Old name:
|
|
|
3139 |
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
|
|
|
3140 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
3141 |
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
|
|
|
3142 |
|
|
|
3143 |
|
|
|
3144 |
# _LT_HEADER_DLFCN
|
|
|
3145 |
# ----------------
|
|
|
3146 |
m4_defun([_LT_HEADER_DLFCN],
|
|
|
3147 |
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
|
|
|
3148 |
])# _LT_HEADER_DLFCN
|
|
|
3149 |
|
|
|
3150 |
|
|
|
3151 |
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
|
|
3152 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
|
|
3153 |
# ----------------------------------------------------------------
|
|
|
3154 |
m4_defun([_LT_TRY_DLOPEN_SELF],
|
|
|
3155 |
[m4_require([_LT_HEADER_DLFCN])dnl
|
|
|
3156 |
if test "$cross_compiling" = yes; then :
|
|
|
3157 |
[$4]
|
|
|
3158 |
else
|
|
|
3159 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
3160 |
lt_status=$lt_dlunknown
|
|
|
3161 |
cat > conftest.$ac_ext <<_LT_EOF
|
|
|
3162 |
[#line $LINENO "configure"
|
|
|
3163 |
#include "confdefs.h"
|
|
|
3164 |
|
|
|
3165 |
#if HAVE_DLFCN_H
|
|
|
3166 |
#include <dlfcn.h>
|
|
|
3167 |
#endif
|
|
|
3168 |
|
|
|
3169 |
#include <stdio.h>
|
|
|
3170 |
|
|
|
3171 |
#ifdef RTLD_GLOBAL
|
|
|
3172 |
# define LT_DLGLOBAL RTLD_GLOBAL
|
|
|
3173 |
#else
|
|
|
3174 |
# ifdef DL_GLOBAL
|
|
|
3175 |
# define LT_DLGLOBAL DL_GLOBAL
|
|
|
3176 |
# else
|
|
|
3177 |
# define LT_DLGLOBAL 0
|
|
|
3178 |
# endif
|
|
|
3179 |
#endif
|
|
|
3180 |
|
|
|
3181 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|
|
3182 |
find out it does not work in some platform. */
|
|
|
3183 |
#ifndef LT_DLLAZY_OR_NOW
|
|
|
3184 |
# ifdef RTLD_LAZY
|
|
|
3185 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|
|
3186 |
# else
|
|
|
3187 |
# ifdef DL_LAZY
|
|
|
3188 |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
|
|
3189 |
# else
|
|
|
3190 |
# ifdef RTLD_NOW
|
|
|
3191 |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
|
|
3192 |
# else
|
|
|
3193 |
# ifdef DL_NOW
|
|
|
3194 |
# define LT_DLLAZY_OR_NOW DL_NOW
|
|
|
3195 |
# else
|
|
|
3196 |
# define LT_DLLAZY_OR_NOW 0
|
|
|
3197 |
# endif
|
|
|
3198 |
# endif
|
|
|
3199 |
# endif
|
|
|
3200 |
# endif
|
|
|
3201 |
#endif
|
|
|
3202 |
|
|
|
3203 |
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
|
3204 |
correspondingly for the symbols needed. */
|
|
|
3205 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
|
3206 |
int fnord () __attribute__((visibility("default")));
|
|
|
3207 |
#endif
|
|
|
3208 |
|
|
|
3209 |
int fnord () { return 42; }
|
|
|
3210 |
int main ()
|
|
|
3211 |
{
|
|
|
3212 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
|
3213 |
int status = $lt_dlunknown;
|
|
|
3214 |
|
|
|
3215 |
if (self)
|
|
|
3216 |
{
|
|
|
3217 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
|
|
3218 |
else
|
|
|
3219 |
{
|
|
|
3220 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|
|
3221 |
else puts (dlerror ());
|
|
|
3222 |
}
|
|
|
3223 |
/* dlclose (self); */
|
|
|
3224 |
}
|
|
|
3225 |
else
|
|
|
3226 |
puts (dlerror ());
|
|
|
3227 |
|
|
|
3228 |
return status;
|
|
|
3229 |
}]
|
|
|
3230 |
_LT_EOF
|
|
|
3231 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
|
|
3232 |
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
|
|
3233 |
lt_status=$?
|
|
|
3234 |
case x$lt_status in
|
|
|
3235 |
x$lt_dlno_uscore) $1 ;;
|
|
|
3236 |
x$lt_dlneed_uscore) $2 ;;
|
|
|
3237 |
x$lt_dlunknown|x*) $3 ;;
|
|
|
3238 |
esac
|
|
|
3239 |
else :
|
|
|
3240 |
# compilation failed
|
|
|
3241 |
$3
|
|
|
3242 |
fi
|
|
|
3243 |
fi
|
|
|
3244 |
rm -fr conftest*
|
|
|
3245 |
])# _LT_TRY_DLOPEN_SELF
|
|
|
3246 |
|
|
|
3247 |
|
|
|
3248 |
# LT_SYS_DLOPEN_SELF
|
|
|
3249 |
# ------------------
|
|
|
3250 |
AC_DEFUN([LT_SYS_DLOPEN_SELF],
|
|
|
3251 |
[m4_require([_LT_HEADER_DLFCN])dnl
|
|
|
3252 |
if test "x$enable_dlopen" != xyes; then
|
|
|
3253 |
enable_dlopen=unknown
|
|
|
3254 |
enable_dlopen_self=unknown
|
|
|
3255 |
enable_dlopen_self_static=unknown
|
|
|
3256 |
else
|
|
|
3257 |
lt_cv_dlopen=no
|
|
|
3258 |
lt_cv_dlopen_libs=
|
|
|
3259 |
|
|
|
3260 |
case $host_os in
|
|
|
3261 |
beos*)
|
|
|
3262 |
lt_cv_dlopen="load_add_on"
|
|
|
3263 |
lt_cv_dlopen_libs=
|
|
|
3264 |
lt_cv_dlopen_self=yes
|
|
|
3265 |
;;
|
|
|
3266 |
|
|
|
3267 |
mingw* | pw32* | cegcc*)
|
|
|
3268 |
lt_cv_dlopen="LoadLibrary"
|
|
|
3269 |
lt_cv_dlopen_libs=
|
|
|
3270 |
;;
|
|
|
3271 |
|
|
|
3272 |
cygwin*)
|
|
|
3273 |
lt_cv_dlopen="dlopen"
|
|
|
3274 |
lt_cv_dlopen_libs=
|
|
|
3275 |
;;
|
|
|
3276 |
|
|
|
3277 |
darwin*)
|
|
|
3278 |
# if libdl is installed we need to link against it
|
|
|
3279 |
AC_CHECK_LIB([dl], [dlopen],
|
|
|
3280 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
|
|
3281 |
lt_cv_dlopen="dyld"
|
|
|
3282 |
lt_cv_dlopen_libs=
|
|
|
3283 |
lt_cv_dlopen_self=yes
|
|
|
3284 |
])
|
|
|
3285 |
;;
|
|
|
3286 |
|
|
|
3287 |
*)
|
|
|
3288 |
AC_CHECK_FUNC([shl_load],
|
|
|
3289 |
[lt_cv_dlopen="shl_load"],
|
|
|
3290 |
[AC_CHECK_LIB([dld], [shl_load],
|
|
|
3291 |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
|
|
|
3292 |
[AC_CHECK_FUNC([dlopen],
|
|
|
3293 |
[lt_cv_dlopen="dlopen"],
|
|
|
3294 |
[AC_CHECK_LIB([dl], [dlopen],
|
|
|
3295 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
|
|
3296 |
[AC_CHECK_LIB([svld], [dlopen],
|
|
|
3297 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
|
|
3298 |
[AC_CHECK_LIB([dld], [dld_link],
|
|
|
3299 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
|
|
|
3300 |
])
|
|
|
3301 |
])
|
|
|
3302 |
])
|
|
|
3303 |
])
|
|
|
3304 |
])
|
|
|
3305 |
;;
|
|
|
3306 |
esac
|
|
|
3307 |
|
|
|
3308 |
if test "x$lt_cv_dlopen" != xno; then
|
|
|
3309 |
enable_dlopen=yes
|
|
|
3310 |
else
|
|
|
3311 |
enable_dlopen=no
|
|
|
3312 |
fi
|
|
|
3313 |
|
|
|
3314 |
case $lt_cv_dlopen in
|
|
|
3315 |
dlopen)
|
|
|
3316 |
save_CPPFLAGS="$CPPFLAGS"
|
|
|
3317 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
|
|
3318 |
|
|
|
3319 |
save_LDFLAGS="$LDFLAGS"
|
|
|
3320 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
|
3321 |
|
|
|
3322 |
save_LIBS="$LIBS"
|
|
|
3323 |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
|
|
3324 |
|
|
|
3325 |
AC_CACHE_CHECK([whether a program can dlopen itself],
|
|
|
3326 |
lt_cv_dlopen_self, [dnl
|
|
|
3327 |
_LT_TRY_DLOPEN_SELF(
|
|
|
3328 |
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
|
|
3329 |
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
|
|
3330 |
])
|
|
|
3331 |
|
|
|
3332 |
if test "x$lt_cv_dlopen_self" = xyes; then
|
|
|
3333 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
|
|
3334 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
|
|
3335 |
lt_cv_dlopen_self_static, [dnl
|
|
|
3336 |
_LT_TRY_DLOPEN_SELF(
|
|
|
3337 |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
|
|
3338 |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
|
|
3339 |
])
|
|
|
3340 |
fi
|
|
|
3341 |
|
|
|
3342 |
CPPFLAGS="$save_CPPFLAGS"
|
|
|
3343 |
LDFLAGS="$save_LDFLAGS"
|
|
|
3344 |
LIBS="$save_LIBS"
|
|
|
3345 |
;;
|
|
|
3346 |
esac
|
|
|
3347 |
|
|
|
3348 |
case $lt_cv_dlopen_self in
|
|
|
3349 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
|
|
3350 |
*) enable_dlopen_self=unknown ;;
|
|
|
3351 |
esac
|
|
|
3352 |
|
|
|
3353 |
case $lt_cv_dlopen_self_static in
|
|
|
3354 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
|
|
3355 |
*) enable_dlopen_self_static=unknown ;;
|
|
|
3356 |
esac
|
|
|
3357 |
fi
|
|
|
3358 |
_LT_DECL([dlopen_support], [enable_dlopen], [0],
|
|
|
3359 |
[Whether dlopen is supported])
|
|
|
3360 |
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
|
|
|
3361 |
[Whether dlopen of programs is supported])
|
|
|
3362 |
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
|
|
|
3363 |
[Whether dlopen of statically linked programs is supported])
|
|
|
3364 |
])# LT_SYS_DLOPEN_SELF
|
|
|
3365 |
|
|
|
3366 |
# Old name:
|
|
|
3367 |
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
|
|
|
3368 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
3369 |
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
|
|
|
3370 |
|
|
|
3371 |
|
|
|
3372 |
# _LT_COMPILER_C_O([TAGNAME])
|
|
|
3373 |
# ---------------------------
|
|
|
3374 |
# Check to see if options -c and -o are simultaneously supported by compiler.
|
|
|
3375 |
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
|
|
|
3376 |
m4_defun([_LT_COMPILER_C_O],
|
|
|
3377 |
[m4_require([_LT_DECL_SED])dnl
|
|
|
3378 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
3379 |
m4_require([_LT_TAG_COMPILER])dnl
|
|
|
3380 |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
|
|
3381 |
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
|
|
3382 |
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
|
|
3383 |
$RM -r conftest 2>/dev/null
|
|
|
3384 |
mkdir conftest
|
|
|
3385 |
cd conftest
|
|
|
3386 |
mkdir out
|
|
|
3387 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
3388 |
|
|
|
3389 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
|
3390 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
3391 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
3392 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
3393 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
3394 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
3395 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
3396 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
3397 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
3398 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
|
3399 |
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
3400 |
ac_status=$?
|
|
|
3401 |
cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
3402 |
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
|
3403 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
3404 |
then
|
|
|
3405 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
3406 |
# So say no if there are warnings
|
|
|
3407 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
|
|
3408 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
|
3409 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
|
3410 |
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|
|
3411 |
fi
|
|
|
3412 |
fi
|
|
|
3413 |
chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
|
|
3414 |
$RM conftest*
|
|
|
3415 |
# SGI C++ compiler will create directory out/ii_files/ for
|
|
|
3416 |
# template instantiation
|
|
|
3417 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
|
|
3418 |
$RM out/* && rmdir out
|
|
|
3419 |
cd ..
|
|
|
3420 |
$RM -r conftest
|
|
|
3421 |
$RM conftest*
|
|
|
3422 |
])
|
|
|
3423 |
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
|
|
|
3424 |
[Does compiler simultaneously support -c and -o options?])
|
|
|
3425 |
])# _LT_COMPILER_C_O
|
|
|
3426 |
|
|
|
3427 |
|
|
|
3428 |
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
|
|
|
3429 |
# ----------------------------------
|
|
|
3430 |
# Check to see if we can do hard links to lock some files if needed
|
|
|
3431 |
m4_defun([_LT_COMPILER_FILE_LOCKS],
|
|
|
3432 |
[m4_require([_LT_ENABLE_LOCK])dnl
|
|
|
3433 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
3434 |
_LT_COMPILER_C_O([$1])
|
|
|
3435 |
|
|
|
3436 |
hard_links="nottested"
|
|
|
3437 |
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
|
|
3438 |
# do not overwrite the value of need_locks provided by the user
|
|
|
3439 |
AC_MSG_CHECKING([if we can lock with hard links])
|
|
|
3440 |
hard_links=yes
|
|
|
3441 |
$RM conftest*
|
|
|
3442 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
3443 |
touch conftest.a
|
|
|
3444 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
|
3445 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
3446 |
AC_MSG_RESULT([$hard_links])
|
|
|
3447 |
if test "$hard_links" = no; then
|
|
|
3448 |
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
|
|
3449 |
need_locks=warn
|
|
|
3450 |
fi
|
|
|
3451 |
else
|
|
|
3452 |
need_locks=no
|
|
|
3453 |
fi
|
|
|
3454 |
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
|
|
|
3455 |
])# _LT_COMPILER_FILE_LOCKS
|
|
|
3456 |
|
|
|
3457 |
|
|
|
3458 |
# _LT_CHECK_OBJDIR
|
|
|
3459 |
# ----------------
|
|
|
3460 |
m4_defun([_LT_CHECK_OBJDIR],
|
|
|
3461 |
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
|
|
3462 |
[rm -f .libs 2>/dev/null
|
|
|
3463 |
mkdir .libs 2>/dev/null
|
|
|
3464 |
if test -d .libs; then
|
|
|
3465 |
lt_cv_objdir=.libs
|
|
|
3466 |
else
|
|
|
3467 |
# MS-DOS does not allow filenames that begin with a dot.
|
|
|
3468 |
lt_cv_objdir=_libs
|
|
|
3469 |
fi
|
|
|
3470 |
rmdir .libs 2>/dev/null])
|
|
|
3471 |
objdir=$lt_cv_objdir
|
|
|
3472 |
_LT_DECL([], [objdir], [0],
|
|
|
3473 |
[The name of the directory that contains temporary libtool files])dnl
|
|
|
3474 |
m4_pattern_allow([LT_OBJDIR])dnl
|
|
|
3475 |
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
|
|
|
3476 |
[Define to the sub-directory in which libtool stores uninstalled libraries.])
|
|
|
3477 |
])# _LT_CHECK_OBJDIR
|
|
|
3478 |
|
|
|
3479 |
|
|
|
3480 |
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
|
|
|
3481 |
# --------------------------------------
|
|
|
3482 |
# Check hardcoding attributes.
|
|
|
3483 |
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
|
|
|
3484 |
[AC_MSG_CHECKING([how to hardcode library paths into programs])
|
|
|
3485 |
_LT_TAGVAR(hardcode_action, $1)=
|
|
|
3486 |
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
|
|
|
3487 |
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
|
|
|
3488 |
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
|
|
3489 |
|
|
|
3490 |
# We can hardcode non-existent directories.
|
|
|
3491 |
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
|
|
|
3492 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
|
3493 |
# have to relink, otherwise we might link with an installed library
|
|
|
3494 |
# when we should be linking with a yet-to-be-installed one
|
|
|
3495 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
|
|
3496 |
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
|
|
|
3497 |
# Linking always hardcodes the temporary library directory.
|
|
|
3498 |
_LT_TAGVAR(hardcode_action, $1)=relink
|
|
|
3499 |
else
|
|
|
3500 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
|
3501 |
_LT_TAGVAR(hardcode_action, $1)=immediate
|
|
|
3502 |
fi
|
|
|
3503 |
else
|
|
|
3504 |
# We cannot hardcode anything, or else we can only hardcode existing
|
|
|
3505 |
# directories.
|
|
|
3506 |
_LT_TAGVAR(hardcode_action, $1)=unsupported
|
|
|
3507 |
fi
|
|
|
3508 |
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
|
|
|
3509 |
|
|
|
3510 |
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
|
|
|
3511 |
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
|
|
|
3512 |
# Fast installation is not supported
|
|
|
3513 |
enable_fast_install=no
|
|
|
3514 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
|
|
3515 |
test "$enable_shared" = no; then
|
|
|
3516 |
# Fast installation is not necessary
|
|
|
3517 |
enable_fast_install=needless
|
|
|
3518 |
fi
|
|
|
3519 |
_LT_TAGDECL([], [hardcode_action], [0],
|
|
|
3520 |
[How to hardcode a shared library path into an executable])
|
|
|
3521 |
])# _LT_LINKER_HARDCODE_LIBPATH
|
|
|
3522 |
|
|
|
3523 |
|
|
|
3524 |
# _LT_CMD_STRIPLIB
|
|
|
3525 |
# ----------------
|
|
|
3526 |
m4_defun([_LT_CMD_STRIPLIB],
|
|
|
3527 |
[m4_require([_LT_DECL_EGREP])
|
|
|
3528 |
striplib=
|
|
|
3529 |
old_striplib=
|
|
|
3530 |
AC_MSG_CHECKING([whether stripping libraries is possible])
|
|
|
3531 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
|
|
3532 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
|
|
3533 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
|
|
3534 |
AC_MSG_RESULT([yes])
|
|
|
3535 |
else
|
|
|
3536 |
# FIXME - insert some real tests, host_os isn't really good enough
|
|
|
3537 |
case $host_os in
|
|
|
3538 |
darwin*)
|
|
|
3539 |
if test -n "$STRIP" ; then
|
|
|
3540 |
striplib="$STRIP -x"
|
|
|
3541 |
old_striplib="$STRIP -S"
|
|
|
3542 |
AC_MSG_RESULT([yes])
|
|
|
3543 |
else
|
|
|
3544 |
AC_MSG_RESULT([no])
|
|
|
3545 |
fi
|
|
|
3546 |
;;
|
|
|
3547 |
*)
|
|
|
3548 |
AC_MSG_RESULT([no])
|
|
|
3549 |
;;
|
|
|
3550 |
esac
|
|
|
3551 |
fi
|
|
|
3552 |
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
|
|
3553 |
_LT_DECL([], [striplib], [1])
|
|
|
3554 |
])# _LT_CMD_STRIPLIB
|
|
|
3555 |
|
|
|
3556 |
|
|
|
3557 |
# _LT_SYS_DYNAMIC_LINKER([TAG])
|
|
|
3558 |
# -----------------------------
|
|
|
3559 |
# PORTME Fill in your ld.so characteristics
|
|
|
3560 |
m4_defun([_LT_SYS_DYNAMIC_LINKER],
|
|
|
3561 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
3562 |
m4_require([_LT_DECL_EGREP])dnl
|
|
|
3563 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
3564 |
m4_require([_LT_DECL_OBJDUMP])dnl
|
|
|
3565 |
m4_require([_LT_DECL_SED])dnl
|
|
|
3566 |
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
|
|
3567 |
AC_MSG_CHECKING([dynamic linker characteristics])
|
|
|
3568 |
m4_if([$1],
|
|
|
3569 |
[], [
|
|
|
3570 |
if test "$GCC" = yes; then
|
|
|
3571 |
case $host_os in
|
|
|
3572 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
|
|
3573 |
*) lt_awk_arg="/^libraries:/" ;;
|
|
|
3574 |
esac
|
|
|
3575 |
case $host_os in
|
|
|
3576 |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
|
|
|
3577 |
*) lt_sed_strip_eq="s,=/,/,g" ;;
|
|
|
3578 |
esac
|
|
|
3579 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
|
|
3580 |
case $lt_search_path_spec in
|
|
|
3581 |
*\;*)
|
|
|
3582 |
# if the path contains ";" then we assume it to be the separator
|
|
|
3583 |
# otherwise default to the standard path separator (i.e. ":") - it is
|
|
|
3584 |
# assumed that no part of a normal pathname contains ";" but that should
|
|
|
3585 |
# okay in the real world where ";" in dirpaths is itself problematic.
|
|
|
3586 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
|
|
3587 |
;;
|
|
|
3588 |
*)
|
|
|
3589 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
|
|
3590 |
;;
|
|
|
3591 |
esac
|
|
|
3592 |
# Ok, now we have the path, separated by spaces, we can step through it
|
|
|
3593 |
# and add multilib dir if necessary.
|
|
|
3594 |
lt_tmp_lt_search_path_spec=
|
|
|
3595 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
|
|
3596 |
for lt_sys_path in $lt_search_path_spec; do
|
|
|
3597 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
|
|
3598 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
|
|
3599 |
else
|
|
|
3600 |
test -d "$lt_sys_path" && \
|
|
|
3601 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
|
|
3602 |
fi
|
|
|
3603 |
done
|
|
|
3604 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
|
|
3605 |
BEGIN {RS=" "; FS="/|\n";} {
|
|
|
3606 |
lt_foo="";
|
|
|
3607 |
lt_count=0;
|
|
|
3608 |
for (lt_i = NF; lt_i > 0; lt_i--) {
|
|
|
3609 |
if ($lt_i != "" && $lt_i != ".") {
|
|
|
3610 |
if ($lt_i == "..") {
|
|
|
3611 |
lt_count++;
|
|
|
3612 |
} else {
|
|
|
3613 |
if (lt_count == 0) {
|
|
|
3614 |
lt_foo="/" $lt_i lt_foo;
|
|
|
3615 |
} else {
|
|
|
3616 |
lt_count--;
|
|
|
3617 |
}
|
|
|
3618 |
}
|
|
|
3619 |
}
|
|
|
3620 |
}
|
|
|
3621 |
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
|
|
3622 |
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
|
|
3623 |
}'`
|
|
|
3624 |
# AWK program above erroneously prepends '/' to C:/dos/paths
|
|
|
3625 |
# for these hosts.
|
|
|
3626 |
case $host_os in
|
|
|
3627 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
|
|
3628 |
$SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
|
|
|
3629 |
esac
|
|
|
3630 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
|
|
3631 |
else
|
|
|
3632 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
5176 |
fi])
|
3633 |
fi])
|
5177 |
with_gnu_ld=$acl_cv_prog_gnu_ld
|
3634 |
library_names_spec=
|
5178 |
])
|
3635 |
libname_spec='lib$name'
|
|
|
3636 |
soname_spec=
|
|
|
3637 |
shrext_cmds=".so"
|
|
|
3638 |
postinstall_cmds=
|
|
|
3639 |
postuninstall_cmds=
|
|
|
3640 |
finish_cmds=
|
|
|
3641 |
finish_eval=
|
|
|
3642 |
shlibpath_var=
|
|
|
3643 |
shlibpath_overrides_runpath=unknown
|
|
|
3644 |
version_type=none
|
|
|
3645 |
dynamic_linker="$host_os ld.so"
|
|
|
3646 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
3647 |
need_lib_prefix=unknown
|
|
|
3648 |
hardcode_into_libs=no
|
5179 |
|
3649 |
|
5180 |
dnl From libtool-1.4. Sets the variable LD.
|
3650 |
# when you set need_version to no, make sure it does not cause -set_version
|
|
|
3651 |
# flags to be left without arguments
|
|
|
3652 |
need_version=unknown
|
|
|
3653 |
|
|
|
3654 |
case $host_os in
|
|
|
3655 |
aix3*)
|
|
|
3656 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
3657 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
|
3658 |
shlibpath_var=LIBPATH
|
|
|
3659 |
|
|
|
3660 |
# AIX 3 has no versioning support, so we append a major version to the name.
|
|
|
3661 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3662 |
;;
|
|
|
3663 |
|
|
|
3664 |
aix[[4-9]]*)
|
|
|
3665 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
3666 |
need_lib_prefix=no
|
|
|
3667 |
need_version=no
|
|
|
3668 |
hardcode_into_libs=yes
|
|
|
3669 |
if test "$host_cpu" = ia64; then
|
|
|
3670 |
# AIX 5 supports IA64
|
|
|
3671 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
|
|
3672 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
3673 |
else
|
|
|
3674 |
# With GCC up to 2.95.x, collect2 would create an import file
|
|
|
3675 |
# for dependence libraries. The import file would start with
|
|
|
3676 |
# the line `#! .'. This would cause the generated library to
|
|
|
3677 |
# depend on `.', always an invalid library. This was fixed in
|
|
|
3678 |
# development snapshots of GCC prior to 3.0.
|
|
|
3679 |
case $host_os in
|
|
|
3680 |
aix4 | aix4.[[01]] | aix4.[[01]].*)
|
|
|
3681 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
|
3682 |
echo ' yes '
|
|
|
3683 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
|
|
3684 |
:
|
|
|
3685 |
else
|
|
|
3686 |
can_build_shared=no
|
|
|
3687 |
fi
|
|
|
3688 |
;;
|
|
|
3689 |
esac
|
|
|
3690 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
|
|
3691 |
# soname into executable. Probably we can add versioning support to
|
|
|
3692 |
# collect2, so additional links can be useful in future.
|
|
|
3693 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
3694 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
|
3695 |
# instead of lib<name>.a to let people know that these are not
|
|
|
3696 |
# typical AIX shared libraries.
|
|
|
3697 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
3698 |
else
|
|
|
3699 |
# We preserve .a as extension for shared libraries through AIX4.2
|
|
|
3700 |
# and later when we are not doing run time linking.
|
|
|
3701 |
library_names_spec='${libname}${release}.a $libname.a'
|
|
|
3702 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3703 |
fi
|
|
|
3704 |
shlibpath_var=LIBPATH
|
|
|
3705 |
fi
|
|
|
3706 |
;;
|
|
|
3707 |
|
|
|
3708 |
amigaos*)
|
|
|
3709 |
case $host_cpu in
|
|
|
3710 |
powerpc)
|
|
|
3711 |
# Since July 2007 AmigaOS4 officially supports .so libraries.
|
|
|
3712 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
|
|
3713 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
3714 |
;;
|
|
|
3715 |
m68k)
|
|
|
3716 |
library_names_spec='$libname.ixlibrary $libname.a'
|
|
|
3717 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
|
3718 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
|
|
|
3719 |
;;
|
|
|
3720 |
esac
|
|
|
3721 |
;;
|
|
|
3722 |
|
|
|
3723 |
beos*)
|
|
|
3724 |
library_names_spec='${libname}${shared_ext}'
|
|
|
3725 |
dynamic_linker="$host_os ld.so"
|
|
|
3726 |
shlibpath_var=LIBRARY_PATH
|
|
|
3727 |
;;
|
|
|
3728 |
|
|
|
3729 |
bsdi[[45]]*)
|
|
|
3730 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
3731 |
need_version=no
|
|
|
3732 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
3733 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3734 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
|
3735 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
3736 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
|
3737 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
|
3738 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
|
|
3739 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
|
3740 |
# libtool to hard-code these into programs
|
|
|
3741 |
;;
|
|
|
3742 |
|
|
|
3743 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
3744 |
version_type=windows
|
|
|
3745 |
shrext_cmds=".dll"
|
|
|
3746 |
need_version=no
|
|
|
3747 |
need_lib_prefix=no
|
|
|
3748 |
|
|
|
3749 |
case $GCC,$cc_basename in
|
|
|
3750 |
yes,*)
|
|
|
3751 |
# gcc
|
|
|
3752 |
library_names_spec='$libname.dll.a'
|
|
|
3753 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
|
3754 |
postinstall_cmds='base_file=`basename \${file}`~
|
|
|
3755 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
|
3756 |
dldir=$destdir/`dirname \$dlpath`~
|
|
|
3757 |
test -d \$dldir || mkdir -p \$dldir~
|
|
|
3758 |
$install_prog $dir/$dlname \$dldir/$dlname~
|
|
|
3759 |
chmod a+x \$dldir/$dlname~
|
|
|
3760 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
|
|
3761 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
|
|
3762 |
fi'
|
|
|
3763 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
|
3764 |
dlpath=$dir/\$dldll~
|
|
|
3765 |
$RM \$dlpath'
|
|
|
3766 |
shlibpath_overrides_runpath=yes
|
|
|
3767 |
|
|
|
3768 |
case $host_os in
|
|
|
3769 |
cygwin*)
|
|
|
3770 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|
|
3771 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
|
3772 |
m4_if([$1], [],[
|
|
|
3773 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
|
|
|
3774 |
;;
|
|
|
3775 |
mingw* | cegcc*)
|
|
|
3776 |
# MinGW DLLs use traditional 'lib' prefix
|
|
|
3777 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
|
3778 |
;;
|
|
|
3779 |
pw32*)
|
|
|
3780 |
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
|
|
3781 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
|
3782 |
;;
|
|
|
3783 |
esac
|
|
|
3784 |
dynamic_linker='Win32 ld.exe'
|
|
|
3785 |
;;
|
|
|
3786 |
|
|
|
3787 |
*,cl*)
|
|
|
3788 |
# Native MSVC
|
|
|
3789 |
libname_spec='$name'
|
|
|
3790 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
|
3791 |
library_names_spec='${libname}.dll.lib'
|
|
|
3792 |
|
|
|
3793 |
case $build_os in
|
|
|
3794 |
mingw*)
|
|
|
3795 |
sys_lib_search_path_spec=
|
|
|
3796 |
lt_save_ifs=$IFS
|
|
|
3797 |
IFS=';'
|
|
|
3798 |
for lt_path in $LIB
|
|
|
3799 |
do
|
|
|
3800 |
IFS=$lt_save_ifs
|
|
|
3801 |
# Let DOS variable expansion print the short 8.3 style file name.
|
|
|
3802 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
|
3803 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
|
3804 |
done
|
|
|
3805 |
IFS=$lt_save_ifs
|
|
|
3806 |
# Convert to MSYS style.
|
|
|
3807 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
|
|
|
3808 |
;;
|
|
|
3809 |
cygwin*)
|
|
|
3810 |
# Convert to unix form, then to dos form, then back to unix form
|
|
|
3811 |
# but this time dos style (no spaces!) so that the unix form looks
|
|
|
3812 |
# like /cygdrive/c/PROGRA~1:/cygdr...
|
|
|
3813 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
|
3814 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
|
3815 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
|
3816 |
;;
|
|
|
3817 |
*)
|
|
|
3818 |
sys_lib_search_path_spec="$LIB"
|
|
|
3819 |
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
|
|
3820 |
# It is most probably a Windows format PATH.
|
|
|
3821 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
|
3822 |
else
|
|
|
3823 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
|
3824 |
fi
|
|
|
3825 |
# FIXME: find the short name or the path components, as spaces are
|
|
|
3826 |
# common. (e.g. "Program Files" -> "PROGRA~1")
|
|
|
3827 |
;;
|
|
|
3828 |
esac
|
|
|
3829 |
|
|
|
3830 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
|
3831 |
postinstall_cmds='base_file=`basename \${file}`~
|
|
|
3832 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
|
3833 |
dldir=$destdir/`dirname \$dlpath`~
|
|
|
3834 |
test -d \$dldir || mkdir -p \$dldir~
|
|
|
3835 |
$install_prog $dir/$dlname \$dldir/$dlname'
|
|
|
3836 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
|
3837 |
dlpath=$dir/\$dldll~
|
|
|
3838 |
$RM \$dlpath'
|
|
|
3839 |
shlibpath_overrides_runpath=yes
|
|
|
3840 |
dynamic_linker='Win32 link.exe'
|
|
|
3841 |
;;
|
|
|
3842 |
|
|
|
3843 |
*)
|
|
|
3844 |
# Assume MSVC wrapper
|
|
|
3845 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
|
3846 |
dynamic_linker='Win32 ld.exe'
|
|
|
3847 |
;;
|
|
|
3848 |
esac
|
|
|
3849 |
# FIXME: first we should search . and the directory the executable is in
|
|
|
3850 |
shlibpath_var=PATH
|
|
|
3851 |
;;
|
|
|
3852 |
|
|
|
3853 |
darwin* | rhapsody*)
|
|
|
3854 |
dynamic_linker="$host_os dyld"
|
|
|
3855 |
version_type=darwin
|
|
|
3856 |
need_lib_prefix=no
|
|
|
3857 |
need_version=no
|
|
|
3858 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|
|
3859 |
soname_spec='${libname}${release}${major}$shared_ext'
|
|
|
3860 |
shlibpath_overrides_runpath=yes
|
|
|
3861 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
|
3862 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
|
3863 |
m4_if([$1], [],[
|
|
|
3864 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
|
|
3865 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
|
3866 |
;;
|
|
|
3867 |
|
|
|
3868 |
dgux*)
|
|
|
3869 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
3870 |
need_lib_prefix=no
|
|
|
3871 |
need_version=no
|
|
|
3872 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
|
|
3873 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3874 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
3875 |
;;
|
|
|
3876 |
|
|
|
3877 |
freebsd* | dragonfly*)
|
|
|
3878 |
# DragonFly does not have aout. When/if they implement a new
|
|
|
3879 |
# versioning mechanism, adjust this.
|
|
|
3880 |
if test -x /usr/bin/objformat; then
|
|
|
3881 |
objformat=`/usr/bin/objformat`
|
|
|
3882 |
else
|
|
|
3883 |
case $host_os in
|
|
|
3884 |
freebsd[[23]].*) objformat=aout ;;
|
|
|
3885 |
*) objformat=elf ;;
|
|
|
3886 |
esac
|
|
|
3887 |
fi
|
|
|
3888 |
version_type=freebsd-$objformat
|
|
|
3889 |
case $version_type in
|
|
|
3890 |
freebsd-elf*)
|
|
|
3891 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
3892 |
need_version=no
|
|
|
3893 |
need_lib_prefix=no
|
|
|
3894 |
;;
|
|
|
3895 |
freebsd-*)
|
|
|
3896 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
|
|
3897 |
need_version=yes
|
|
|
3898 |
;;
|
|
|
3899 |
esac
|
|
|
3900 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
3901 |
case $host_os in
|
|
|
3902 |
freebsd2.*)
|
|
|
3903 |
shlibpath_overrides_runpath=yes
|
|
|
3904 |
;;
|
|
|
3905 |
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
|
|
3906 |
shlibpath_overrides_runpath=yes
|
|
|
3907 |
hardcode_into_libs=yes
|
|
|
3908 |
;;
|
|
|
3909 |
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
|
|
3910 |
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
|
3911 |
shlibpath_overrides_runpath=no
|
|
|
3912 |
hardcode_into_libs=yes
|
|
|
3913 |
;;
|
|
|
3914 |
*) # from 4.6 on, and DragonFly
|
|
|
3915 |
shlibpath_overrides_runpath=yes
|
|
|
3916 |
hardcode_into_libs=yes
|
|
|
3917 |
;;
|
|
|
3918 |
esac
|
|
|
3919 |
;;
|
|
|
3920 |
|
|
|
3921 |
gnu*)
|
|
|
3922 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
3923 |
need_lib_prefix=no
|
|
|
3924 |
need_version=no
|
|
|
3925 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|
|
3926 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3927 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
3928 |
shlibpath_overrides_runpath=no
|
|
|
3929 |
hardcode_into_libs=yes
|
|
|
3930 |
;;
|
|
|
3931 |
|
|
|
3932 |
haiku*)
|
|
|
3933 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
3934 |
need_lib_prefix=no
|
|
|
3935 |
need_version=no
|
|
|
3936 |
dynamic_linker="$host_os runtime_loader"
|
|
|
3937 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|
|
3938 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3939 |
shlibpath_var=LIBRARY_PATH
|
|
|
3940 |
shlibpath_overrides_runpath=yes
|
|
|
3941 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
|
|
3942 |
hardcode_into_libs=yes
|
|
|
3943 |
;;
|
|
|
3944 |
|
|
|
3945 |
hpux9* | hpux10* | hpux11*)
|
|
|
3946 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
|
|
3947 |
# link against other versions.
|
|
|
3948 |
version_type=sunos
|
|
|
3949 |
need_lib_prefix=no
|
|
|
3950 |
need_version=no
|
|
|
3951 |
case $host_cpu in
|
|
|
3952 |
ia64*)
|
|
|
3953 |
shrext_cmds='.so'
|
|
|
3954 |
hardcode_into_libs=yes
|
|
|
3955 |
dynamic_linker="$host_os dld.so"
|
|
|
3956 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
3957 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
3958 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
3959 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3960 |
if test "X$HPUX_IA64_MODE" = X32; then
|
|
|
3961 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|
|
3962 |
else
|
|
|
3963 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|
|
3964 |
fi
|
|
|
3965 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
3966 |
;;
|
|
|
3967 |
hppa*64*)
|
|
|
3968 |
shrext_cmds='.sl'
|
|
|
3969 |
hardcode_into_libs=yes
|
|
|
3970 |
dynamic_linker="$host_os dld.sl"
|
|
|
3971 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
|
3972 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
3973 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
3974 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3975 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
|
3976 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
3977 |
;;
|
|
|
3978 |
*)
|
|
|
3979 |
shrext_cmds='.sl'
|
|
|
3980 |
dynamic_linker="$host_os dld.sl"
|
|
|
3981 |
shlibpath_var=SHLIB_PATH
|
|
|
3982 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
|
3983 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
3984 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3985 |
;;
|
|
|
3986 |
esac
|
|
|
3987 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
|
|
3988 |
postinstall_cmds='chmod 555 $lib'
|
|
|
3989 |
# or fails outright, so override atomically:
|
|
|
3990 |
install_override_mode=555
|
|
|
3991 |
;;
|
|
|
3992 |
|
|
|
3993 |
interix[[3-9]]*)
|
|
|
3994 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
3995 |
need_lib_prefix=no
|
|
|
3996 |
need_version=no
|
|
|
3997 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
3998 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
3999 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
|
4000 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4001 |
shlibpath_overrides_runpath=no
|
|
|
4002 |
hardcode_into_libs=yes
|
|
|
4003 |
;;
|
|
|
4004 |
|
|
|
4005 |
irix5* | irix6* | nonstopux*)
|
|
|
4006 |
case $host_os in
|
|
|
4007 |
nonstopux*) version_type=nonstopux ;;
|
|
|
4008 |
*)
|
|
|
4009 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
|
4010 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4011 |
else
|
|
|
4012 |
version_type=irix
|
|
|
4013 |
fi ;;
|
|
|
4014 |
esac
|
|
|
4015 |
need_lib_prefix=no
|
|
|
4016 |
need_version=no
|
|
|
4017 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4018 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
4019 |
case $host_os in
|
|
|
4020 |
irix5* | nonstopux*)
|
|
|
4021 |
libsuff= shlibsuff=
|
|
|
4022 |
;;
|
|
|
4023 |
*)
|
|
|
4024 |
case $LD in # libtool.m4 will add one of these switches to LD
|
|
|
4025 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|
|
4026 |
libsuff= shlibsuff= libmagic=32-bit;;
|
|
|
4027 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|
|
4028 |
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
|
4029 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|
|
4030 |
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
|
4031 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
|
|
4032 |
esac
|
|
|
4033 |
;;
|
|
|
4034 |
esac
|
|
|
4035 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
|
4036 |
shlibpath_overrides_runpath=no
|
|
|
4037 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|
|
4038 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
|
4039 |
hardcode_into_libs=yes
|
|
|
4040 |
;;
|
|
|
4041 |
|
|
|
4042 |
# No shared lib support for Linux oldld, aout, or coff.
|
|
|
4043 |
linux*oldld* | linux*aout* | linux*coff*)
|
|
|
4044 |
dynamic_linker=no
|
|
|
4045 |
;;
|
|
|
4046 |
|
|
|
4047 |
# This must be glibc/ELF.
|
|
|
4048 |
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
|
4049 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4050 |
need_lib_prefix=no
|
|
|
4051 |
need_version=no
|
|
|
4052 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4053 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4054 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
|
4055 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4056 |
shlibpath_overrides_runpath=no
|
|
|
4057 |
|
|
|
4058 |
# Some binutils ld are patched to set DT_RUNPATH
|
|
|
4059 |
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
|
|
|
4060 |
[lt_cv_shlibpath_overrides_runpath=no
|
|
|
4061 |
save_LDFLAGS=$LDFLAGS
|
|
|
4062 |
save_libdir=$libdir
|
|
|
4063 |
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
|
|
|
4064 |
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
|
|
|
4065 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
|
|
4066 |
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
|
|
|
4067 |
[lt_cv_shlibpath_overrides_runpath=yes])])
|
|
|
4068 |
LDFLAGS=$save_LDFLAGS
|
|
|
4069 |
libdir=$save_libdir
|
|
|
4070 |
])
|
|
|
4071 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
|
|
4072 |
|
|
|
4073 |
# This implies no fast_install, which is unacceptable.
|
|
|
4074 |
# Some rework will be needed to allow for fast_install
|
|
|
4075 |
# before this can be enabled.
|
|
|
4076 |
hardcode_into_libs=yes
|
|
|
4077 |
|
|
|
4078 |
# Append ld.so.conf contents to the search path
|
|
|
4079 |
if test -f /etc/ld.so.conf; then
|
|
|
4080 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
|
4081 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
|
4082 |
fi
|
|
|
4083 |
|
|
|
4084 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
|
4085 |
# powerpc, because MkLinux only supported shared libraries with the
|
|
|
4086 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
|
4087 |
# most powerpc-linux boxes support dynamic linking these days and
|
|
|
4088 |
# people can always --disable-shared, the test was removed, and we
|
|
|
4089 |
# assume the GNU/Linux dynamic linker is in use.
|
|
|
4090 |
dynamic_linker='GNU/Linux ld.so'
|
|
|
4091 |
;;
|
|
|
4092 |
|
|
|
4093 |
netbsd*)
|
|
|
4094 |
version_type=sunos
|
|
|
4095 |
need_lib_prefix=no
|
|
|
4096 |
need_version=no
|
|
|
4097 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
|
4098 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
4099 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
4100 |
dynamic_linker='NetBSD (a.out) ld.so'
|
|
|
4101 |
else
|
|
|
4102 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
4103 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4104 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
4105 |
fi
|
|
|
4106 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4107 |
shlibpath_overrides_runpath=yes
|
|
|
4108 |
hardcode_into_libs=yes
|
|
|
4109 |
;;
|
|
|
4110 |
|
|
|
4111 |
newsos6)
|
|
|
4112 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4113 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4114 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4115 |
shlibpath_overrides_runpath=yes
|
|
|
4116 |
;;
|
|
|
4117 |
|
|
|
4118 |
*nto* | *qnx*)
|
|
|
4119 |
version_type=qnx
|
|
|
4120 |
need_lib_prefix=no
|
|
|
4121 |
need_version=no
|
|
|
4122 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4123 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4124 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4125 |
shlibpath_overrides_runpath=no
|
|
|
4126 |
hardcode_into_libs=yes
|
|
|
4127 |
dynamic_linker='ldqnx.so'
|
|
|
4128 |
;;
|
|
|
4129 |
|
|
|
4130 |
openbsd*)
|
|
|
4131 |
version_type=sunos
|
|
|
4132 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
|
|
4133 |
need_lib_prefix=no
|
|
|
4134 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
|
4135 |
case $host_os in
|
|
|
4136 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
|
4137 |
*) need_version=no ;;
|
|
|
4138 |
esac
|
|
|
4139 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
4140 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
4141 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4142 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
4143 |
case $host_os in
|
|
|
4144 |
openbsd2.[[89]] | openbsd2.[[89]].*)
|
|
|
4145 |
shlibpath_overrides_runpath=no
|
|
|
4146 |
;;
|
|
|
4147 |
*)
|
|
|
4148 |
shlibpath_overrides_runpath=yes
|
|
|
4149 |
;;
|
|
|
4150 |
esac
|
|
|
4151 |
else
|
|
|
4152 |
shlibpath_overrides_runpath=yes
|
|
|
4153 |
fi
|
|
|
4154 |
;;
|
|
|
4155 |
|
|
|
4156 |
os2*)
|
|
|
4157 |
libname_spec='$name'
|
|
|
4158 |
shrext_cmds=".dll"
|
|
|
4159 |
need_lib_prefix=no
|
|
|
4160 |
library_names_spec='$libname${shared_ext} $libname.a'
|
|
|
4161 |
dynamic_linker='OS/2 ld.exe'
|
|
|
4162 |
shlibpath_var=LIBPATH
|
|
|
4163 |
;;
|
|
|
4164 |
|
|
|
4165 |
osf3* | osf4* | osf5*)
|
|
|
4166 |
version_type=osf
|
|
|
4167 |
need_lib_prefix=no
|
|
|
4168 |
need_version=no
|
|
|
4169 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4170 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4171 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4172 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
|
4173 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
|
4174 |
;;
|
|
|
4175 |
|
|
|
4176 |
rdos*)
|
|
|
4177 |
dynamic_linker=no
|
|
|
4178 |
;;
|
|
|
4179 |
|
|
|
4180 |
solaris*)
|
|
|
4181 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4182 |
need_lib_prefix=no
|
|
|
4183 |
need_version=no
|
|
|
4184 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4185 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4186 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4187 |
shlibpath_overrides_runpath=yes
|
|
|
4188 |
hardcode_into_libs=yes
|
|
|
4189 |
# ldd complains unless libraries are executable
|
|
|
4190 |
postinstall_cmds='chmod +x $lib'
|
|
|
4191 |
;;
|
|
|
4192 |
|
|
|
4193 |
sunos4*)
|
|
|
4194 |
version_type=sunos
|
|
|
4195 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
4196 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
|
4197 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4198 |
shlibpath_overrides_runpath=yes
|
|
|
4199 |
if test "$with_gnu_ld" = yes; then
|
|
|
4200 |
need_lib_prefix=no
|
|
|
4201 |
fi
|
|
|
4202 |
need_version=yes
|
|
|
4203 |
;;
|
|
|
4204 |
|
|
|
4205 |
sysv4 | sysv4.3*)
|
|
|
4206 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4207 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4208 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4209 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4210 |
case $host_vendor in
|
|
|
4211 |
sni)
|
|
|
4212 |
shlibpath_overrides_runpath=no
|
|
|
4213 |
need_lib_prefix=no
|
|
|
4214 |
runpath_var=LD_RUN_PATH
|
|
|
4215 |
;;
|
|
|
4216 |
siemens)
|
|
|
4217 |
need_lib_prefix=no
|
|
|
4218 |
;;
|
|
|
4219 |
motorola)
|
|
|
4220 |
need_lib_prefix=no
|
|
|
4221 |
need_version=no
|
|
|
4222 |
shlibpath_overrides_runpath=no
|
|
|
4223 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
|
4224 |
;;
|
|
|
4225 |
esac
|
|
|
4226 |
;;
|
|
|
4227 |
|
|
|
4228 |
sysv4*MP*)
|
|
|
4229 |
if test -d /usr/nec ;then
|
|
|
4230 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4231 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
|
4232 |
soname_spec='$libname${shared_ext}.$major'
|
|
|
4233 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4234 |
fi
|
|
|
4235 |
;;
|
|
|
4236 |
|
|
|
4237 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
4238 |
version_type=freebsd-elf
|
|
|
4239 |
need_lib_prefix=no
|
|
|
4240 |
need_version=no
|
|
|
4241 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
4242 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4243 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4244 |
shlibpath_overrides_runpath=yes
|
|
|
4245 |
hardcode_into_libs=yes
|
|
|
4246 |
if test "$with_gnu_ld" = yes; then
|
|
|
4247 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
|
4248 |
else
|
|
|
4249 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
|
4250 |
case $host_os in
|
|
|
4251 |
sco3.2v5*)
|
|
|
4252 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
|
4253 |
;;
|
|
|
4254 |
esac
|
|
|
4255 |
fi
|
|
|
4256 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
|
4257 |
;;
|
|
|
4258 |
|
|
|
4259 |
tpf*)
|
|
|
4260 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
|
|
4261 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4262 |
need_lib_prefix=no
|
|
|
4263 |
need_version=no
|
|
|
4264 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4265 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4266 |
shlibpath_overrides_runpath=no
|
|
|
4267 |
hardcode_into_libs=yes
|
|
|
4268 |
;;
|
|
|
4269 |
|
|
|
4270 |
uts4*)
|
|
|
4271 |
version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
4272 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
4273 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
4274 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
4275 |
;;
|
|
|
4276 |
|
|
|
4277 |
*)
|
|
|
4278 |
dynamic_linker=no
|
|
|
4279 |
;;
|
|
|
4280 |
esac
|
|
|
4281 |
AC_MSG_RESULT([$dynamic_linker])
|
|
|
4282 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
|
4283 |
|
|
|
4284 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
|
4285 |
if test "$GCC" = yes; then
|
|
|
4286 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
|
4287 |
fi
|
|
|
4288 |
|
|
|
4289 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
|
|
4290 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
|
|
4291 |
fi
|
|
|
4292 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
|
|
4293 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
|
|
4294 |
fi
|
|
|
4295 |
|
|
|
4296 |
_LT_DECL([], [variables_saved_for_relink], [1],
|
|
|
4297 |
[Variables whose values should be saved in libtool wrapper scripts and
|
|
|
4298 |
restored at link time])
|
|
|
4299 |
_LT_DECL([], [need_lib_prefix], [0],
|
|
|
4300 |
[Do we need the "lib" prefix for modules?])
|
|
|
4301 |
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
|
|
|
4302 |
_LT_DECL([], [version_type], [0], [Library versioning type])
|
|
|
4303 |
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
|
|
|
4304 |
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
|
|
|
4305 |
_LT_DECL([], [shlibpath_overrides_runpath], [0],
|
|
|
4306 |
[Is shlibpath searched before the hard-coded library search path?])
|
|
|
4307 |
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
|
|
|
4308 |
_LT_DECL([], [library_names_spec], [1],
|
|
|
4309 |
[[List of archive names. First name is the real one, the rest are links.
|
|
|
4310 |
The last name is the one that the linker finds with -lNAME]])
|
|
|
4311 |
_LT_DECL([], [soname_spec], [1],
|
|
|
4312 |
[[The coded name of the library, if different from the real name]])
|
|
|
4313 |
_LT_DECL([], [install_override_mode], [1],
|
|
|
4314 |
[Permission mode override for installation of shared libraries])
|
|
|
4315 |
_LT_DECL([], [postinstall_cmds], [2],
|
|
|
4316 |
[Command to use after installation of a shared archive])
|
|
|
4317 |
_LT_DECL([], [postuninstall_cmds], [2],
|
|
|
4318 |
[Command to use after uninstallation of a shared archive])
|
|
|
4319 |
_LT_DECL([], [finish_cmds], [2],
|
|
|
4320 |
[Commands used to finish a libtool library installation in a directory])
|
|
|
4321 |
_LT_DECL([], [finish_eval], [1],
|
|
|
4322 |
[[As "finish_cmds", except a single script fragment to be evaled but
|
|
|
4323 |
not shown]])
|
|
|
4324 |
_LT_DECL([], [hardcode_into_libs], [0],
|
|
|
4325 |
[Whether we should hardcode library paths into libraries])
|
|
|
4326 |
_LT_DECL([], [sys_lib_search_path_spec], [2],
|
|
|
4327 |
[Compile-time system search path for libraries])
|
|
|
4328 |
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
|
|
|
4329 |
[Run-time system search path for libraries])
|
|
|
4330 |
])# _LT_SYS_DYNAMIC_LINKER
|
|
|
4331 |
|
|
|
4332 |
|
|
|
4333 |
# _LT_PATH_TOOL_PREFIX(TOOL)
|
|
|
4334 |
# --------------------------
|
|
|
4335 |
# find a file program which can recognize shared library
|
|
|
4336 |
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
|
|
|
4337 |
[m4_require([_LT_DECL_EGREP])dnl
|
|
|
4338 |
AC_MSG_CHECKING([for $1])
|
|
|
4339 |
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
|
|
4340 |
[case $MAGIC_CMD in
|
|
|
4341 |
[[\\/*] | ?:[\\/]*])
|
|
|
4342 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|
|
4343 |
;;
|
|
|
4344 |
*)
|
|
|
4345 |
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
|
|
4346 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
4347 |
dnl $ac_dummy forces splitting on constant user-supplied paths.
|
|
|
4348 |
dnl POSIX.2 word splitting is done only on the output of word expansions,
|
|
|
4349 |
dnl not every word. This closes a longstanding sh security hole.
|
|
|
4350 |
ac_dummy="m4_if([$2], , $PATH, [$2])"
|
|
|
4351 |
for ac_dir in $ac_dummy; do
|
|
|
4352 |
IFS="$lt_save_ifs"
|
|
|
4353 |
test -z "$ac_dir" && ac_dir=.
|
|
|
4354 |
if test -f $ac_dir/$1; then
|
|
|
4355 |
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
|
|
4356 |
if test -n "$file_magic_test_file"; then
|
|
|
4357 |
case $deplibs_check_method in
|
|
|
4358 |
"file_magic "*)
|
|
|
4359 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
|
|
4360 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
|
4361 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
|
4362 |
$EGREP "$file_magic_regex" > /dev/null; then
|
|
|
4363 |
:
|
|
|
4364 |
else
|
|
|
4365 |
cat <<_LT_EOF 1>&2
|
|
|
4366 |
|
|
|
4367 |
*** Warning: the command libtool uses to detect shared libraries,
|
|
|
4368 |
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
|
|
4369 |
*** The result is that libtool may fail to recognize shared libraries
|
|
|
4370 |
*** as such. This will affect the creation of libtool libraries that
|
|
|
4371 |
*** depend on shared libraries, but programs linked with such libtool
|
|
|
4372 |
*** libraries will work regardless of this problem. Nevertheless, you
|
|
|
4373 |
*** may want to report the problem to your system manager and/or to
|
|
|
4374 |
*** bug-libtool@gnu.org
|
|
|
4375 |
|
|
|
4376 |
_LT_EOF
|
|
|
4377 |
fi ;;
|
|
|
4378 |
esac
|
|
|
4379 |
fi
|
|
|
4380 |
break
|
|
|
4381 |
fi
|
|
|
4382 |
done
|
|
|
4383 |
IFS="$lt_save_ifs"
|
|
|
4384 |
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
|
|
4385 |
;;
|
|
|
4386 |
esac])
|
|
|
4387 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
|
4388 |
if test -n "$MAGIC_CMD"; then
|
|
|
4389 |
AC_MSG_RESULT($MAGIC_CMD)
|
|
|
4390 |
else
|
|
|
4391 |
AC_MSG_RESULT(no)
|
|
|
4392 |
fi
|
|
|
4393 |
_LT_DECL([], [MAGIC_CMD], [0],
|
|
|
4394 |
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
|
|
|
4395 |
])# _LT_PATH_TOOL_PREFIX
|
|
|
4396 |
|
|
|
4397 |
# Old name:
|
|
|
4398 |
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
|
|
|
4399 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
4400 |
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
|
|
|
4401 |
|
|
|
4402 |
|
|
|
4403 |
# _LT_PATH_MAGIC
|
|
|
4404 |
# --------------
|
|
|
4405 |
# find a file program which can recognize a shared library
|
|
|
4406 |
m4_defun([_LT_PATH_MAGIC],
|
|
|
4407 |
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
|
|
4408 |
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|
|
4409 |
if test -n "$ac_tool_prefix"; then
|
|
|
4410 |
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
|
|
4411 |
else
|
|
|
4412 |
MAGIC_CMD=:
|
|
|
4413 |
fi
|
|
|
4414 |
fi
|
|
|
4415 |
])# _LT_PATH_MAGIC
|
|
|
4416 |
|
|
|
4417 |
|
|
|
4418 |
# LT_PATH_LD
|
|
|
4419 |
# ----------
|
|
|
4420 |
# find the pathname to the GNU or non-GNU linker
|
5181 |
AC_DEFUN([AC_LIB_PROG_LD],
|
4421 |
AC_DEFUN([LT_PATH_LD],
|
5182 |
[AC_ARG_WITH(gnu-ld,
|
|
|
5183 |
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
|
|
5184 |
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
|
|
5185 |
AC_REQUIRE([AC_PROG_CC])dnl
|
4422 |
[AC_REQUIRE([AC_PROG_CC])dnl
|
5186 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
4423 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
4424 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
|
4425 |
m4_require([_LT_DECL_SED])dnl
|
|
|
4426 |
m4_require([_LT_DECL_EGREP])dnl
|
|
|
4427 |
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
|
|
|
4428 |
|
|
|
4429 |
AC_ARG_WITH([gnu-ld],
|
|
|
4430 |
[AS_HELP_STRING([--with-gnu-ld],
|
|
|
4431 |
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
|
|
4432 |
[test "$withval" = no || with_gnu_ld=yes],
|
|
|
4433 |
[with_gnu_ld=no])dnl
|
|
|
4434 |
|
5187 |
ac_prog=ld
|
4435 |
ac_prog=ld
|
5188 |
if test "$GCC" = yes; then
|
4436 |
if test "$GCC" = yes; then
|
5189 |
# Check if gcc -print-prog-name=ld gives a path.
|
4437 |
# Check if gcc -print-prog-name=ld gives a path.
|
5190 |
AC_MSG_CHECKING([for ld used by GCC])
|
4438 |
AC_MSG_CHECKING([for ld used by $CC])
|
5191 |
case $host in
|
4439 |
case $host in
|
5192 |
*-*-mingw*)
|
4440 |
*-*-mingw*)
|
5193 |
# gcc leaves a trailing carriage return which upsets mingw
|
4441 |
# gcc leaves a trailing carriage return which upsets mingw
|
5194 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
4442 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
5195 |
*)
|
4443 |
*)
|
5196 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
4444 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
5197 |
esac
|
4445 |
esac
|
5198 |
case $ac_prog in
|
4446 |
case $ac_prog in
|
5199 |
# Accept absolute paths.
|
4447 |
# Accept absolute paths.
|
5200 |
[[\\/]* | [A-Za-z]:[\\/]*)]
|
4448 |
[[\\/]]* | ?:[[\\/]]*)
|
5201 |
[re_direlt='/[^/][^/]*/\.\./']
|
4449 |
re_direlt='/[[^/]][[^/]]*/\.\./'
|
5202 |
# Canonicalize the path of ld
|
4450 |
# Canonicalize the pathname of ld
|
5203 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
4451 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
5204 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
4452 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
5205 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
4453 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
5206 |
done
|
4454 |
done
|
5207 |
test -z "$LD" && LD="$ac_prog"
|
4455 |
test -z "$LD" && LD="$ac_prog"
|
5208 |
;;
|
4456 |
;;
|
5209 |
"")
|
4457 |
"")
|
5210 |
# If it fails, then pretend we aren't using GCC.
|
4458 |
# If it fails, then pretend we aren't using GCC.
|
|
... |
|
... |
5218 |
elif test "$with_gnu_ld" = yes; then
|
4466 |
elif test "$with_gnu_ld" = yes; then
|
5219 |
AC_MSG_CHECKING([for GNU ld])
|
4467 |
AC_MSG_CHECKING([for GNU ld])
|
5220 |
else
|
4468 |
else
|
5221 |
AC_MSG_CHECKING([for non-GNU ld])
|
4469 |
AC_MSG_CHECKING([for non-GNU ld])
|
5222 |
fi
|
4470 |
fi
|
5223 |
AC_CACHE_VAL(acl_cv_path_LD,
|
4471 |
AC_CACHE_VAL(lt_cv_path_LD,
|
5224 |
[if test -z "$LD"; then
|
4472 |
[if test -z "$LD"; then
|
5225 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
4473 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
5226 |
for ac_dir in $PATH; do
|
4474 |
for ac_dir in $PATH; do
|
|
|
4475 |
IFS="$lt_save_ifs"
|
5227 |
test -z "$ac_dir" && ac_dir=.
|
4476 |
test -z "$ac_dir" && ac_dir=.
|
5228 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
4477 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
5229 |
acl_cv_path_LD="$ac_dir/$ac_prog"
|
4478 |
lt_cv_path_LD="$ac_dir/$ac_prog"
|
5230 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
4479 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
5231 |
# but apparently some GNU ld's only accept -v.
|
4480 |
# but apparently some variants of GNU ld only accept -v.
|
5232 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
4481 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
5233 |
if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
4482 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|
|
4483 |
*GNU* | *'with BFD'*)
|
5234 |
test "$with_gnu_ld" != no && break
|
4484 |
test "$with_gnu_ld" != no && break
|
5235 |
else
|
4485 |
;;
|
|
|
4486 |
*)
|
5236 |
test "$with_gnu_ld" != yes && break
|
4487 |
test "$with_gnu_ld" != yes && break
|
5237 |
fi
|
4488 |
;;
|
|
|
4489 |
esac
|
5238 |
fi
|
4490 |
fi
|
5239 |
done
|
4491 |
done
|
5240 |
IFS="$ac_save_ifs"
|
4492 |
IFS="$lt_save_ifs"
|
5241 |
else
|
4493 |
else
|
5242 |
acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
4494 |
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
5243 |
fi])
|
4495 |
fi])
|
5244 |
LD="$acl_cv_path_LD"
|
4496 |
LD="$lt_cv_path_LD"
|
5245 |
if test -n "$LD"; then
|
4497 |
if test -n "$LD"; then
|
5246 |
AC_MSG_RESULT($LD)
|
4498 |
AC_MSG_RESULT($LD)
|
5247 |
else
|
4499 |
else
|
5248 |
AC_MSG_RESULT(no)
|
4500 |
AC_MSG_RESULT(no)
|
5249 |
fi
|
4501 |
fi
|
5250 |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
4502 |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
5251 |
AC_LIB_PROG_LD_GNU
|
4503 |
_LT_PATH_LD_GNU
|
|
|
4504 |
AC_SUBST([LD])
|
|
|
4505 |
|
|
|
4506 |
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
|
|
|
4507 |
])# LT_PATH_LD
|
|
|
4508 |
|
|
|
4509 |
# Old names:
|
|
|
4510 |
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
|
|
|
4511 |
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
|
|
|
4512 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
4513 |
dnl AC_DEFUN([AM_PROG_LD], [])
|
|
|
4514 |
dnl AC_DEFUN([AC_PROG_LD], [])
|
|
|
4515 |
|
|
|
4516 |
|
|
|
4517 |
# _LT_PATH_LD_GNU
|
|
|
4518 |
#- --------------
|
|
|
4519 |
m4_defun([_LT_PATH_LD_GNU],
|
|
|
4520 |
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
|
|
4521 |
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
|
|
4522 |
case `$LD -v 2>&1 </dev/null` in
|
|
|
4523 |
*GNU* | *'with BFD'*)
|
|
|
4524 |
lt_cv_prog_gnu_ld=yes
|
|
|
4525 |
;;
|
|
|
4526 |
*)
|
|
|
4527 |
lt_cv_prog_gnu_ld=no
|
|
|
4528 |
;;
|
|
|
4529 |
esac])
|
|
|
4530 |
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
|
4531 |
])# _LT_PATH_LD_GNU
|
|
|
4532 |
|
|
|
4533 |
|
|
|
4534 |
# _LT_CMD_RELOAD
|
|
|
4535 |
# --------------
|
|
|
4536 |
# find reload flag for linker
|
|
|
4537 |
# -- PORTME Some linkers may need a different reload flag.
|
|
|
4538 |
m4_defun([_LT_CMD_RELOAD],
|
|
|
4539 |
[AC_CACHE_CHECK([for $LD option to reload object files],
|
|
|
4540 |
lt_cv_ld_reload_flag,
|
|
|
4541 |
[lt_cv_ld_reload_flag='-r'])
|
|
|
4542 |
reload_flag=$lt_cv_ld_reload_flag
|
|
|
4543 |
case $reload_flag in
|
|
|
4544 |
"" | " "*) ;;
|
|
|
4545 |
*) reload_flag=" $reload_flag" ;;
|
|
|
4546 |
esac
|
|
|
4547 |
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
|
4548 |
case $host_os in
|
|
|
4549 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
4550 |
if test "$GCC" != yes; then
|
|
|
4551 |
reload_cmds=false
|
|
|
4552 |
fi
|
|
|
4553 |
;;
|
|
|
4554 |
darwin*)
|
|
|
4555 |
if test "$GCC" = yes; then
|
|
|
4556 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
|
4557 |
else
|
|
|
4558 |
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
|
4559 |
fi
|
|
|
4560 |
;;
|
|
|
4561 |
esac
|
|
|
4562 |
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
|
|
|
4563 |
_LT_TAGDECL([], [reload_cmds], [2])dnl
|
|
|
4564 |
])# _LT_CMD_RELOAD
|
|
|
4565 |
|
|
|
4566 |
|
|
|
4567 |
# _LT_CHECK_MAGIC_METHOD
|
|
|
4568 |
# ----------------------
|
|
|
4569 |
# how to check for library dependencies
|
|
|
4570 |
# -- PORTME fill in with the dynamic library characteristics
|
|
|
4571 |
m4_defun([_LT_CHECK_MAGIC_METHOD],
|
|
|
4572 |
[m4_require([_LT_DECL_EGREP])
|
|
|
4573 |
m4_require([_LT_DECL_OBJDUMP])
|
|
|
4574 |
AC_CACHE_CHECK([how to recognize dependent libraries],
|
|
|
4575 |
lt_cv_deplibs_check_method,
|
|
|
4576 |
[lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
|
4577 |
lt_cv_file_magic_test_file=
|
|
|
4578 |
lt_cv_deplibs_check_method='unknown'
|
|
|
4579 |
# Need to set the preceding variable on all platforms that support
|
|
|
4580 |
# interlibrary dependencies.
|
|
|
4581 |
# 'none' -- dependencies not supported.
|
|
|
4582 |
# `unknown' -- same as none, but documents that we really don't know.
|
|
|
4583 |
# 'pass_all' -- all dependencies passed with no checks.
|
|
|
4584 |
# 'test_compile' -- check by making test program.
|
|
|
4585 |
# 'file_magic [[regex]]' -- check by looking for files in library path
|
|
|
4586 |
# which responds to the $file_magic_cmd with a given extended regex.
|
|
|
4587 |
# If you have `file' or equivalent on your system and you're not sure
|
|
|
4588 |
# whether `pass_all' will *always* work, you probably want this one.
|
|
|
4589 |
|
|
|
4590 |
case $host_os in
|
|
|
4591 |
aix[[4-9]]*)
|
|
|
4592 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4593 |
;;
|
|
|
4594 |
|
|
|
4595 |
beos*)
|
|
|
4596 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4597 |
;;
|
|
|
4598 |
|
|
|
4599 |
bsdi[[45]]*)
|
|
|
4600 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
|
|
4601 |
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
|
4602 |
lt_cv_file_magic_test_file=/shlib/libc.so
|
|
|
4603 |
;;
|
|
|
4604 |
|
|
|
4605 |
cygwin*)
|
|
|
4606 |
# func_win32_libid is a shell function defined in ltmain.sh
|
|
|
4607 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
|
4608 |
lt_cv_file_magic_cmd='func_win32_libid'
|
|
|
4609 |
;;
|
|
|
4610 |
|
|
|
4611 |
mingw* | pw32*)
|
|
|
4612 |
# Base MSYS/MinGW do not provide the 'file' command needed by
|
|
|
4613 |
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
|
|
4614 |
# unless we find 'file', for example because we are cross-compiling.
|
|
|
4615 |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
|
|
|
4616 |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
|
|
|
4617 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
|
4618 |
lt_cv_file_magic_cmd='func_win32_libid'
|
|
|
4619 |
else
|
|
|
4620 |
# Keep this pattern in sync with the one in func_win32_libid.
|
|
|
4621 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
|
4622 |
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
|
4623 |
fi
|
|
|
4624 |
;;
|
|
|
4625 |
|
|
|
4626 |
cegcc*)
|
|
|
4627 |
# use the weaker test based on 'objdump'. See mingw*.
|
|
|
4628 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
|
|
4629 |
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
|
4630 |
;;
|
|
|
4631 |
|
|
|
4632 |
darwin* | rhapsody*)
|
|
|
4633 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4634 |
;;
|
|
|
4635 |
|
|
|
4636 |
freebsd* | dragonfly*)
|
|
|
4637 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
|
4638 |
case $host_cpu in
|
|
|
4639 |
i*86 )
|
|
|
4640 |
# Not sure whether the presence of OpenBSD here was a mistake.
|
|
|
4641 |
# Let's accept both of them until this is cleared up.
|
|
|
4642 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
|
|
4643 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4644 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
|
4645 |
;;
|
|
|
4646 |
esac
|
|
|
4647 |
else
|
|
|
4648 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4649 |
fi
|
|
|
4650 |
;;
|
|
|
4651 |
|
|
|
4652 |
gnu*)
|
|
|
4653 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4654 |
;;
|
|
|
4655 |
|
|
|
4656 |
haiku*)
|
|
|
4657 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4658 |
;;
|
|
|
4659 |
|
|
|
4660 |
hpux10.20* | hpux11*)
|
|
|
4661 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4662 |
case $host_cpu in
|
|
|
4663 |
ia64*)
|
|
|
4664 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
|
|
4665 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|
|
4666 |
;;
|
|
|
4667 |
hppa*64*)
|
|
|
4668 |
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
|
|
|
4669 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
|
|
4670 |
;;
|
|
|
4671 |
*)
|
|
|
4672 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
|
|
|
4673 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|
|
4674 |
;;
|
|
|
4675 |
esac
|
|
|
4676 |
;;
|
|
|
4677 |
|
|
|
4678 |
interix[[3-9]]*)
|
|
|
4679 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
|
4680 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
|
|
4681 |
;;
|
|
|
4682 |
|
|
|
4683 |
irix5* | irix6* | nonstopux*)
|
|
|
4684 |
case $LD in
|
|
|
4685 |
*-32|*"-32 ") libmagic=32-bit;;
|
|
|
4686 |
*-n32|*"-n32 ") libmagic=N32;;
|
|
|
4687 |
*-64|*"-64 ") libmagic=64-bit;;
|
|
|
4688 |
*) libmagic=never-match;;
|
|
|
4689 |
esac
|
|
|
4690 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4691 |
;;
|
|
|
4692 |
|
|
|
4693 |
# This must be glibc/ELF.
|
|
|
4694 |
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
|
4695 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4696 |
;;
|
|
|
4697 |
|
|
|
4698 |
netbsd*)
|
|
|
4699 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
|
4700 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|
|
4701 |
else
|
|
|
4702 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
|
|
4703 |
fi
|
|
|
4704 |
;;
|
|
|
4705 |
|
|
|
4706 |
newos6*)
|
|
|
4707 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
|
|
4708 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4709 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|
|
4710 |
;;
|
|
|
4711 |
|
|
|
4712 |
*nto* | *qnx*)
|
|
|
4713 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4714 |
;;
|
|
|
4715 |
|
|
|
4716 |
openbsd*)
|
|
|
4717 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
4718 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
|
|
4719 |
else
|
|
|
4720 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|
|
4721 |
fi
|
|
|
4722 |
;;
|
|
|
4723 |
|
|
|
4724 |
osf3* | osf4* | osf5*)
|
|
|
4725 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4726 |
;;
|
|
|
4727 |
|
|
|
4728 |
rdos*)
|
|
|
4729 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4730 |
;;
|
|
|
4731 |
|
|
|
4732 |
solaris*)
|
|
|
4733 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4734 |
;;
|
|
|
4735 |
|
|
|
4736 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
4737 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4738 |
;;
|
|
|
4739 |
|
|
|
4740 |
sysv4 | sysv4.3*)
|
|
|
4741 |
case $host_vendor in
|
|
|
4742 |
motorola)
|
|
|
4743 |
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]]'
|
|
|
4744 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|
|
4745 |
;;
|
|
|
4746 |
ncr)
|
|
|
4747 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4748 |
;;
|
|
|
4749 |
sequent)
|
|
|
4750 |
lt_cv_file_magic_cmd='/bin/file'
|
|
|
4751 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
|
|
4752 |
;;
|
|
|
4753 |
sni)
|
|
|
4754 |
lt_cv_file_magic_cmd='/bin/file'
|
|
|
4755 |
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
|
|
4756 |
lt_cv_file_magic_test_file=/lib/libc.so
|
|
|
4757 |
;;
|
|
|
4758 |
siemens)
|
|
|
4759 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4760 |
;;
|
|
|
4761 |
pc)
|
|
|
4762 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4763 |
;;
|
|
|
4764 |
esac
|
|
|
4765 |
;;
|
|
|
4766 |
|
|
|
4767 |
tpf*)
|
|
|
4768 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4769 |
;;
|
|
|
4770 |
esac
|
5252 |
])
|
4771 |
])
|
5253 |
|
4772 |
|
|
|
4773 |
file_magic_glob=
|
|
|
4774 |
want_nocaseglob=no
|
|
|
4775 |
if test "$build" = "$host"; then
|
|
|
4776 |
case $host_os in
|
|
|
4777 |
mingw* | pw32*)
|
|
|
4778 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
|
4779 |
want_nocaseglob=yes
|
|
|
4780 |
else
|
|
|
4781 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
|
|
|
4782 |
fi
|
|
|
4783 |
;;
|
|
|
4784 |
esac
|
|
|
4785 |
fi
|
|
|
4786 |
|
|
|
4787 |
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
|
4788 |
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
|
4789 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
4790 |
|
|
|
4791 |
_LT_DECL([], [deplibs_check_method], [1],
|
|
|
4792 |
[Method to check whether dependent libraries are shared objects])
|
|
|
4793 |
_LT_DECL([], [file_magic_cmd], [1],
|
|
|
4794 |
[Command to use when deplibs_check_method = "file_magic"])
|
|
|
4795 |
_LT_DECL([], [file_magic_glob], [1],
|
|
|
4796 |
[How to find potential files when deplibs_check_method = "file_magic"])
|
|
|
4797 |
_LT_DECL([], [want_nocaseglob], [1],
|
|
|
4798 |
[Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
|
|
|
4799 |
])# _LT_CHECK_MAGIC_METHOD
|
|
|
4800 |
|
|
|
4801 |
|
|
|
4802 |
# LT_PATH_NM
|
|
|
4803 |
# ----------
|
|
|
4804 |
# find the pathname to a BSD- or MS-compatible name lister
|
|
|
4805 |
AC_DEFUN([LT_PATH_NM],
|
|
|
4806 |
[AC_REQUIRE([AC_PROG_CC])dnl
|
|
|
4807 |
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
|
|
|
4808 |
[if test -n "$NM"; then
|
|
|
4809 |
# Let the user override the test.
|
|
|
4810 |
lt_cv_path_NM="$NM"
|
|
|
4811 |
else
|
|
|
4812 |
lt_nm_to_check="${ac_tool_prefix}nm"
|
|
|
4813 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
|
|
4814 |
lt_nm_to_check="$lt_nm_to_check nm"
|
|
|
4815 |
fi
|
|
|
4816 |
for lt_tmp_nm in $lt_nm_to_check; do
|
|
|
4817 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
4818 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
|
4819 |
IFS="$lt_save_ifs"
|
|
|
4820 |
test -z "$ac_dir" && ac_dir=.
|
|
|
4821 |
tmp_nm="$ac_dir/$lt_tmp_nm"
|
|
|
4822 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|
|
4823 |
# Check to see if the nm accepts a BSD-compat flag.
|
|
|
4824 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
|
4825 |
# nm: unknown option "B" ignored
|
|
|
4826 |
# Tru64's nm complains that /dev/null is an invalid object file
|
|
|
4827 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
|
|
4828 |
*/dev/null* | *'Invalid file or object type'*)
|
|
|
4829 |
lt_cv_path_NM="$tmp_nm -B"
|
|
|
4830 |
break
|
|
|
4831 |
;;
|
|
|
4832 |
*)
|
|
|
4833 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|
|
4834 |
*/dev/null*)
|
|
|
4835 |
lt_cv_path_NM="$tmp_nm -p"
|
|
|
4836 |
break
|
|
|
4837 |
;;
|
|
|
4838 |
*)
|
|
|
4839 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
|
4840 |
continue # so that we can try to find one that supports BSD flags
|
|
|
4841 |
;;
|
|
|
4842 |
esac
|
|
|
4843 |
;;
|
|
|
4844 |
esac
|
|
|
4845 |
fi
|
|
|
4846 |
done
|
|
|
4847 |
IFS="$lt_save_ifs"
|
|
|
4848 |
done
|
|
|
4849 |
: ${lt_cv_path_NM=no}
|
|
|
4850 |
fi])
|
|
|
4851 |
if test "$lt_cv_path_NM" != "no"; then
|
|
|
4852 |
NM="$lt_cv_path_NM"
|
|
|
4853 |
else
|
|
|
4854 |
# Didn't find any BSD compatible name lister, look for dumpbin.
|
|
|
4855 |
if test -n "$DUMPBIN"; then :
|
|
|
4856 |
# Let the user override the test.
|
|
|
4857 |
else
|
|
|
4858 |
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
|
|
|
4859 |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
|
|
|
4860 |
*COFF*)
|
|
|
4861 |
DUMPBIN="$DUMPBIN -symbols"
|
|
|
4862 |
;;
|
|
|
4863 |
*)
|
|
|
4864 |
DUMPBIN=:
|
|
|
4865 |
;;
|
|
|
4866 |
esac
|
|
|
4867 |
fi
|
|
|
4868 |
AC_SUBST([DUMPBIN])
|
|
|
4869 |
if test "$DUMPBIN" != ":"; then
|
|
|
4870 |
NM="$DUMPBIN"
|
|
|
4871 |
fi
|
|
|
4872 |
fi
|
|
|
4873 |
test -z "$NM" && NM=nm
|
|
|
4874 |
AC_SUBST([NM])
|
|
|
4875 |
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
|
|
|
4876 |
|
|
|
4877 |
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
|
|
|
4878 |
[lt_cv_nm_interface="BSD nm"
|
|
|
4879 |
echo "int some_variable = 0;" > conftest.$ac_ext
|
|
|
4880 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
|
4881 |
(eval "$ac_compile" 2>conftest.err)
|
|
|
4882 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
4883 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
|
|
|
4884 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
|
|
4885 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
4886 |
(eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
|
|
|
4887 |
cat conftest.out >&AS_MESSAGE_LOG_FD
|
|
|
4888 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
|
|
4889 |
lt_cv_nm_interface="MS dumpbin"
|
|
|
4890 |
fi
|
|
|
4891 |
rm -f conftest*])
|
|
|
4892 |
])# LT_PATH_NM
|
|
|
4893 |
|
|
|
4894 |
# Old names:
|
|
|
4895 |
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
|
|
|
4896 |
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
|
|
|
4897 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
4898 |
dnl AC_DEFUN([AM_PROG_NM], [])
|
|
|
4899 |
dnl AC_DEFUN([AC_PROG_NM], [])
|
|
|
4900 |
|
|
|
4901 |
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
|
|
4902 |
# --------------------------------
|
|
|
4903 |
# how to determine the name of the shared library
|
|
|
4904 |
# associated with a specific link library.
|
|
|
4905 |
# -- PORTME fill in with the dynamic library characteristics
|
|
|
4906 |
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
|
|
|
4907 |
[m4_require([_LT_DECL_EGREP])
|
|
|
4908 |
m4_require([_LT_DECL_OBJDUMP])
|
|
|
4909 |
m4_require([_LT_DECL_DLLTOOL])
|
|
|
4910 |
AC_CACHE_CHECK([how to associate runtime and link libraries],
|
|
|
4911 |
lt_cv_sharedlib_from_linklib_cmd,
|
|
|
4912 |
[lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
|
4913 |
|
|
|
4914 |
case $host_os in
|
|
|
4915 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
4916 |
# two different shell functions defined in ltmain.sh
|
|
|
4917 |
# decide which to use based on capabilities of $DLLTOOL
|
|
|
4918 |
case `$DLLTOOL --help 2>&1` in
|
|
|
4919 |
*--identify-strict*)
|
|
|
4920 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
|
4921 |
;;
|
|
|
4922 |
*)
|
|
|
4923 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
|
4924 |
;;
|
|
|
4925 |
esac
|
|
|
4926 |
;;
|
|
|
4927 |
*)
|
|
|
4928 |
# fallback: assume linklib IS sharedlib
|
|
|
4929 |
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
|
4930 |
;;
|
|
|
4931 |
esac
|
|
|
4932 |
])
|
|
|
4933 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
|
4934 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
|
4935 |
|
|
|
4936 |
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
|
|
|
4937 |
[Command to associate shared and link libraries])
|
|
|
4938 |
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
|
|
4939 |
|
|
|
4940 |
|
|
|
4941 |
# _LT_PATH_MANIFEST_TOOL
|
|
|
4942 |
# ----------------------
|
|
|
4943 |
# locate the manifest tool
|
|
|
4944 |
m4_defun([_LT_PATH_MANIFEST_TOOL],
|
|
|
4945 |
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
|
|
|
4946 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
|
4947 |
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
|
|
|
4948 |
[lt_cv_path_mainfest_tool=no
|
|
|
4949 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
|
|
|
4950 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
|
4951 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
|
4952 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
|
4953 |
lt_cv_path_mainfest_tool=yes
|
|
|
4954 |
fi
|
|
|
4955 |
rm -f conftest*])
|
|
|
4956 |
if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
|
4957 |
MANIFEST_TOOL=:
|
|
|
4958 |
fi
|
|
|
4959 |
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
|
|
|
4960 |
])# _LT_PATH_MANIFEST_TOOL
|
|
|
4961 |
|
|
|
4962 |
|
|
|
4963 |
# LT_LIB_M
|
|
|
4964 |
# --------
|
|
|
4965 |
# check for math library
|
|
|
4966 |
AC_DEFUN([LT_LIB_M],
|
|
|
4967 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
4968 |
LIBM=
|
|
|
4969 |
case $host in
|
|
|
4970 |
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
|
|
|
4971 |
# These system don't have libm, or don't need it
|
|
|
4972 |
;;
|
|
|
4973 |
*-ncr-sysv4.3*)
|
|
|
4974 |
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
|
|
4975 |
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
|
|
4976 |
;;
|
|
|
4977 |
*)
|
|
|
4978 |
AC_CHECK_LIB(m, cos, LIBM="-lm")
|
|
|
4979 |
;;
|
|
|
4980 |
esac
|
|
|
4981 |
AC_SUBST([LIBM])
|
|
|
4982 |
])# LT_LIB_M
|
|
|
4983 |
|
|
|
4984 |
# Old name:
|
|
|
4985 |
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
|
|
|
4986 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
4987 |
dnl AC_DEFUN([AC_CHECK_LIBM], [])
|
|
|
4988 |
|
|
|
4989 |
|
|
|
4990 |
# _LT_COMPILER_NO_RTTI([TAGNAME])
|
|
|
4991 |
# -------------------------------
|
|
|
4992 |
m4_defun([_LT_COMPILER_NO_RTTI],
|
|
|
4993 |
[m4_require([_LT_TAG_COMPILER])dnl
|
|
|
4994 |
|
|
|
4995 |
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
|
|
4996 |
|
|
|
4997 |
if test "$GCC" = yes; then
|
|
|
4998 |
case $cc_basename in
|
|
|
4999 |
nvcc*)
|
|
|
5000 |
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
|
|
|
5001 |
*)
|
|
|
5002 |
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
|
|
|
5003 |
esac
|
|
|
5004 |
|
|
|
5005 |
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
|
|
5006 |
lt_cv_prog_compiler_rtti_exceptions,
|
|
|
5007 |
[-fno-rtti -fno-exceptions], [],
|
|
|
5008 |
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
|
|
5009 |
fi
|
|
|
5010 |
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
|
|
|
5011 |
[Compiler flag to turn off builtin functions])
|
|
|
5012 |
])# _LT_COMPILER_NO_RTTI
|
|
|
5013 |
|
|
|
5014 |
|
|
|
5015 |
# _LT_CMD_GLOBAL_SYMBOLS
|
|
|
5016 |
# ----------------------
|
|
|
5017 |
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
|
|
|
5018 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
5019 |
AC_REQUIRE([AC_PROG_CC])dnl
|
|
|
5020 |
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
|
5021 |
AC_REQUIRE([LT_PATH_NM])dnl
|
|
|
5022 |
AC_REQUIRE([LT_PATH_LD])dnl
|
|
|
5023 |
m4_require([_LT_DECL_SED])dnl
|
|
|
5024 |
m4_require([_LT_DECL_EGREP])dnl
|
|
|
5025 |
m4_require([_LT_TAG_COMPILER])dnl
|
|
|
5026 |
|
|
|
5027 |
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
|
5028 |
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
|
|
5029 |
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
|
|
5030 |
[
|
|
|
5031 |
# These are sane defaults that work on at least a few old systems.
|
|
|
5032 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
|
|
5033 |
|
|
|
5034 |
# Character class describing NM global symbol codes.
|
|
|
5035 |
symcode='[[BCDEGRST]]'
|
|
|
5036 |
|
|
|
5037 |
# Regexp to match symbols that can be accessed directly from C.
|
|
|
5038 |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
|
|
5039 |
|
|
|
5040 |
# Define system-specific variables.
|
|
|
5041 |
case $host_os in
|
|
|
5042 |
aix*)
|
|
|
5043 |
symcode='[[BCDT]]'
|
|
|
5044 |
;;
|
|
|
5045 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
5046 |
symcode='[[ABCDGISTW]]'
|
|
|
5047 |
;;
|
|
|
5048 |
hpux*)
|
|
|
5049 |
if test "$host_cpu" = ia64; then
|
|
|
5050 |
symcode='[[ABCDEGRST]]'
|
|
|
5051 |
fi
|
|
|
5052 |
;;
|
|
|
5053 |
irix* | nonstopux*)
|
|
|
5054 |
symcode='[[BCDEGRST]]'
|
|
|
5055 |
;;
|
|
|
5056 |
osf*)
|
|
|
5057 |
symcode='[[BCDEGQRST]]'
|
|
|
5058 |
;;
|
|
|
5059 |
solaris*)
|
|
|
5060 |
symcode='[[BDRT]]'
|
|
|
5061 |
;;
|
|
|
5062 |
sco3.2v5*)
|
|
|
5063 |
symcode='[[DT]]'
|
|
|
5064 |
;;
|
|
|
5065 |
sysv4.2uw2*)
|
|
|
5066 |
symcode='[[DT]]'
|
|
|
5067 |
;;
|
|
|
5068 |
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
|
|
5069 |
symcode='[[ABDT]]'
|
|
|
5070 |
;;
|
|
|
5071 |
sysv4)
|
|
|
5072 |
symcode='[[DFNSTU]]'
|
|
|
5073 |
;;
|
|
|
5074 |
esac
|
|
|
5075 |
|
|
|
5076 |
# If we're using GNU nm, then use its standard symbol codes.
|
|
|
5077 |
case `$NM -V 2>&1` in
|
|
|
5078 |
*GNU* | *'with BFD'*)
|
|
|
5079 |
symcode='[[ABCDGIRSTW]]' ;;
|
|
|
5080 |
esac
|
|
|
5081 |
|
|
|
5082 |
# Transform an extracted symbol line into a proper C declaration.
|
|
|
5083 |
# Some systems (esp. on ia64) link data and code symbols differently,
|
|
|
5084 |
# so use this general approach.
|
|
|
5085 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
5086 |
|
|
|
5087 |
# Transform an extracted symbol line into symbol name and symbol address
|
|
|
5088 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
|
5089 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
5090 |
|
|
|
5091 |
# Handle CRLF in mingw tool chain
|
|
|
5092 |
opt_cr=
|
|
|
5093 |
case $build_os in
|
|
|
5094 |
mingw*)
|
|
|
5095 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|
|
5096 |
;;
|
|
|
5097 |
esac
|
|
|
5098 |
|
|
|
5099 |
# Try without a prefix underscore, then with it.
|
|
|
5100 |
for ac_symprfx in "" "_"; do
|
|
|
5101 |
|
|
|
5102 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
|
|
5103 |
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
|
|
5104 |
|
|
|
5105 |
# Write the raw and C identifiers.
|
|
|
5106 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
|
5107 |
# Fake it for dumpbin and say T for any non-static function
|
|
|
5108 |
# and D for any global variable.
|
|
|
5109 |
# Also find C++ and __fastcall symbols from MSVC++,
|
|
|
5110 |
# which start with @ or ?.
|
|
|
5111 |
lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
|
|
5112 |
" {last_section=section; section=\$ 3};"\
|
|
|
5113 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
|
|
5114 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
|
|
5115 |
" \$ 0!~/External *\|/{next};"\
|
|
|
5116 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
|
|
5117 |
" {if(hide[section]) next};"\
|
|
|
5118 |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
|
|
5119 |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
|
|
5120 |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
|
|
5121 |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
|
|
5122 |
" ' prfx=^$ac_symprfx]"
|
|
|
5123 |
else
|
|
|
5124 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
|
5125 |
fi
|
|
|
5126 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
5127 |
|
|
|
5128 |
# Check to see that the pipe works correctly.
|
|
|
5129 |
pipe_works=no
|
|
|
5130 |
|
|
|
5131 |
rm -f conftest*
|
|
|
5132 |
cat > conftest.$ac_ext <<_LT_EOF
|
|
|
5133 |
#ifdef __cplusplus
|
|
|
5134 |
extern "C" {
|
|
|
5135 |
#endif
|
|
|
5136 |
char nm_test_var;
|
|
|
5137 |
void nm_test_func(void);
|
|
|
5138 |
void nm_test_func(void){}
|
|
|
5139 |
#ifdef __cplusplus
|
|
|
5140 |
}
|
|
|
5141 |
#endif
|
|
|
5142 |
int main(){nm_test_var='a';nm_test_func();return(0);}
|
|
|
5143 |
_LT_EOF
|
|
|
5144 |
|
|
|
5145 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
5146 |
# Now try to grab the symbols.
|
|
|
5147 |
nlist=conftest.nm
|
|
|
5148 |
if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
|
|
|
5149 |
# Try sorting and uniquifying the output.
|
|
|
5150 |
if sort "$nlist" | uniq > "$nlist"T; then
|
|
|
5151 |
mv -f "$nlist"T "$nlist"
|
|
|
5152 |
else
|
|
|
5153 |
rm -f "$nlist"T
|
|
|
5154 |
fi
|
|
|
5155 |
|
|
|
5156 |
# Make sure that we snagged all the symbols we need.
|
|
|
5157 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
|
5158 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
|
5159 |
cat <<_LT_EOF > conftest.$ac_ext
|
|
|
5160 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
|
5161 |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
|
5162 |
/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
|
5163 |
relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
|
5164 |
# define LT@&t@_DLSYM_CONST
|
|
|
5165 |
#elif defined(__osf__)
|
|
|
5166 |
/* This system does not cope well with relocations in const data. */
|
|
|
5167 |
# define LT@&t@_DLSYM_CONST
|
|
|
5168 |
#else
|
|
|
5169 |
# define LT@&t@_DLSYM_CONST const
|
|
|
5170 |
#endif
|
|
|
5171 |
|
|
|
5172 |
#ifdef __cplusplus
|
|
|
5173 |
extern "C" {
|
|
|
5174 |
#endif
|
|
|
5175 |
|
|
|
5176 |
_LT_EOF
|
|
|
5177 |
# Now generate the symbol file.
|
|
|
5178 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
|
|
5179 |
|
|
|
5180 |
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
5181 |
|
|
|
5182 |
/* The mapping between symbol names and symbols. */
|
|
|
5183 |
LT@&t@_DLSYM_CONST struct {
|
|
|
5184 |
const char *name;
|
|
|
5185 |
void *address;
|
|
|
5186 |
}
|
|
|
5187 |
lt__PROGRAM__LTX_preloaded_symbols[[]] =
|
|
|
5188 |
{
|
|
|
5189 |
{ "@PROGRAM@", (void *) 0 },
|
|
|
5190 |
_LT_EOF
|
|
|
5191 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
|
|
5192 |
cat <<\_LT_EOF >> conftest.$ac_ext
|
|
|
5193 |
{0, (void *) 0}
|
|
|
5194 |
};
|
|
|
5195 |
|
|
|
5196 |
/* This works around a problem in FreeBSD linker */
|
|
|
5197 |
#ifdef FREEBSD_WORKAROUND
|
|
|
5198 |
static const void *lt_preloaded_setup() {
|
|
|
5199 |
return lt__PROGRAM__LTX_preloaded_symbols;
|
|
|
5200 |
}
|
|
|
5201 |
#endif
|
|
|
5202 |
|
|
|
5203 |
#ifdef __cplusplus
|
|
|
5204 |
}
|
|
|
5205 |
#endif
|
|
|
5206 |
_LT_EOF
|
|
|
5207 |
# Now try linking the two files.
|
|
|
5208 |
mv conftest.$ac_objext conftstm.$ac_objext
|
|
|
5209 |
lt_globsym_save_LIBS=$LIBS
|
|
|
5210 |
lt_globsym_save_CFLAGS=$CFLAGS
|
|
|
5211 |
LIBS="conftstm.$ac_objext"
|
|
|
5212 |
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
|
|
5213 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
|
|
5214 |
pipe_works=yes
|
|
|
5215 |
fi
|
|
|
5216 |
LIBS=$lt_globsym_save_LIBS
|
|
|
5217 |
CFLAGS=$lt_globsym_save_CFLAGS
|
|
|
5218 |
else
|
|
|
5219 |
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
|
|
5220 |
fi
|
|
|
5221 |
else
|
|
|
5222 |
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
|
|
5223 |
fi
|
|
|
5224 |
else
|
|
|
5225 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
|
|
5226 |
fi
|
|
|
5227 |
else
|
|
|
5228 |
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
|
|
5229 |
cat conftest.$ac_ext >&5
|
|
|
5230 |
fi
|
|
|
5231 |
rm -rf conftest* conftst*
|
|
|
5232 |
|
|
|
5233 |
# Do not use the global_symbol_pipe unless it works.
|
|
|
5234 |
if test "$pipe_works" = yes; then
|
|
|
5235 |
break
|
|
|
5236 |
else
|
|
|
5237 |
lt_cv_sys_global_symbol_pipe=
|
|
|
5238 |
fi
|
|
|
5239 |
done
|
|
|
5240 |
])
|
|
|
5241 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
|
|
5242 |
lt_cv_sys_global_symbol_to_cdecl=
|
|
|
5243 |
fi
|
|
|
5244 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
|
|
5245 |
AC_MSG_RESULT(failed)
|
|
|
5246 |
else
|
|
|
5247 |
AC_MSG_RESULT(ok)
|
|
|
5248 |
fi
|
|
|
5249 |
|
|
|
5250 |
# Response file support.
|
|
|
5251 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
|
5252 |
nm_file_list_spec='@'
|
|
|
5253 |
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
|
|
|
5254 |
nm_file_list_spec='@'
|
|
|
5255 |
fi
|
|
|
5256 |
|
|
|
5257 |
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
|
|
|
5258 |
[Take the output of nm and produce a listing of raw symbols and C names])
|
|
|
5259 |
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
|
|
|
5260 |
[Transform the output of nm in a proper C declaration])
|
|
|
5261 |
_LT_DECL([global_symbol_to_c_name_address],
|
|
|
5262 |
[lt_cv_sys_global_symbol_to_c_name_address], [1],
|
|
|
5263 |
[Transform the output of nm in a C name address pair])
|
|
|
5264 |
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
|
|
|
5265 |
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
|
|
|
5266 |
[Transform the output of nm in a C name address pair when lib prefix is needed])
|
|
|
5267 |
_LT_DECL([], [nm_file_list_spec], [1],
|
|
|
5268 |
[Specify filename containing input files for $NM])
|
|
|
5269 |
]) # _LT_CMD_GLOBAL_SYMBOLS
|
|
|
5270 |
|
|
|
5271 |
|
|
|
5272 |
# _LT_COMPILER_PIC([TAGNAME])
|
|
|
5273 |
# ---------------------------
|
|
|
5274 |
m4_defun([_LT_COMPILER_PIC],
|
|
|
5275 |
[m4_require([_LT_TAG_COMPILER])dnl
|
|
|
5276 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
|
|
5277 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
|
5278 |
_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
|
|
5279 |
|
|
|
5280 |
m4_if([$1], [CXX], [
|
|
|
5281 |
# C++ specific cases for pic, static, wl, etc.
|
|
|
5282 |
if test "$GXX" = yes; then
|
|
|
5283 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5284 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
5285 |
|
|
|
5286 |
case $host_os in
|
|
|
5287 |
aix*)
|
|
|
5288 |
# All AIX code is PIC.
|
|
|
5289 |
if test "$host_cpu" = ia64; then
|
|
|
5290 |
# AIX 5 now supports IA64 processor
|
|
|
5291 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5292 |
fi
|
|
|
5293 |
;;
|
|
|
5294 |
|
|
|
5295 |
amigaos*)
|
|
|
5296 |
case $host_cpu in
|
|
|
5297 |
powerpc)
|
|
|
5298 |
# see comment about AmigaOS4 .so support
|
|
|
5299 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5300 |
;;
|
|
|
5301 |
m68k)
|
|
|
5302 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
|
5303 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
|
|
5304 |
# like `-m68040'.
|
|
|
5305 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|
|
5306 |
;;
|
|
|
5307 |
esac
|
|
|
5308 |
;;
|
|
|
5309 |
|
|
|
5310 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
|
5311 |
# PIC is the default for these OSes.
|
|
|
5312 |
;;
|
|
|
5313 |
mingw* | cygwin* | os2* | pw32* | cegcc*)
|
|
|
5314 |
# This hack is so that the source file can tell whether it is being
|
|
|
5315 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
5316 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
|
5317 |
# (--disable-auto-import) libraries
|
|
|
5318 |
m4_if([$1], [GCJ], [],
|
|
|
5319 |
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
|
5320 |
;;
|
|
|
5321 |
darwin* | rhapsody*)
|
|
|
5322 |
# PIC is the default on this platform
|
|
|
5323 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
5324 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|
|
5325 |
;;
|
|
|
5326 |
*djgpp*)
|
|
|
5327 |
# DJGPP does not support shared libraries at all
|
|
|
5328 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
|
5329 |
;;
|
|
|
5330 |
haiku*)
|
|
|
5331 |
# PIC is the default for Haiku.
|
|
|
5332 |
# The "-static" flag exists, but is broken.
|
|
|
5333 |
_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
|
|
5334 |
;;
|
|
|
5335 |
interix[[3-9]]*)
|
|
|
5336 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
|
5337 |
# Instead, we relocate shared libraries at runtime.
|
|
|
5338 |
;;
|
|
|
5339 |
sysv4*MP*)
|
|
|
5340 |
if test -d /usr/nec; then
|
|
|
5341 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
|
|
5342 |
fi
|
|
|
5343 |
;;
|
|
|
5344 |
hpux*)
|
|
|
5345 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
|
|
5346 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
|
|
5347 |
# sets the default TLS model and affects inlining.
|
|
|
5348 |
case $host_cpu in
|
|
|
5349 |
hppa*64*)
|
|
|
5350 |
;;
|
|
|
5351 |
*)
|
|
|
5352 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5353 |
;;
|
|
|
5354 |
esac
|
|
|
5355 |
;;
|
|
|
5356 |
*qnx* | *nto*)
|
|
|
5357 |
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
|
5358 |
# it will coredump.
|
|
|
5359 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
|
5360 |
;;
|
|
|
5361 |
*)
|
|
|
5362 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5363 |
;;
|
|
|
5364 |
esac
|
|
|
5365 |
else
|
|
|
5366 |
case $host_os in
|
|
|
5367 |
aix[[4-9]]*)
|
|
|
5368 |
# All AIX code is PIC.
|
|
|
5369 |
if test "$host_cpu" = ia64; then
|
|
|
5370 |
# AIX 5 now supports IA64 processor
|
|
|
5371 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5372 |
else
|
|
|
5373 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
|
|
5374 |
fi
|
|
|
5375 |
;;
|
|
|
5376 |
chorus*)
|
|
|
5377 |
case $cc_basename in
|
|
|
5378 |
cxch68*)
|
|
|
5379 |
# Green Hills C++ Compiler
|
|
|
5380 |
# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
|
|
|
5381 |
;;
|
|
|
5382 |
esac
|
|
|
5383 |
;;
|
|
|
5384 |
mingw* | cygwin* | os2* | pw32* | cegcc*)
|
|
|
5385 |
# This hack is so that the source file can tell whether it is being
|
|
|
5386 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
5387 |
m4_if([$1], [GCJ], [],
|
|
|
5388 |
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
|
5389 |
;;
|
|
|
5390 |
dgux*)
|
|
|
5391 |
case $cc_basename in
|
|
|
5392 |
ec++*)
|
|
|
5393 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5394 |
;;
|
|
|
5395 |
ghcx*)
|
|
|
5396 |
# Green Hills C++ Compiler
|
|
|
5397 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
|
5398 |
;;
|
|
|
5399 |
*)
|
|
|
5400 |
;;
|
|
|
5401 |
esac
|
|
|
5402 |
;;
|
|
|
5403 |
freebsd* | dragonfly*)
|
|
|
5404 |
# FreeBSD uses GNU C++
|
|
|
5405 |
;;
|
|
|
5406 |
hpux9* | hpux10* | hpux11*)
|
|
|
5407 |
case $cc_basename in
|
|
|
5408 |
CC*)
|
|
|
5409 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5410 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
|
5411 |
if test "$host_cpu" != ia64; then
|
|
|
5412 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|
|
5413 |
fi
|
|
|
5414 |
;;
|
|
|
5415 |
aCC*)
|
|
|
5416 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5417 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
|
5418 |
case $host_cpu in
|
|
|
5419 |
hppa*64*|ia64*)
|
|
|
5420 |
# +Z the default
|
|
|
5421 |
;;
|
|
|
5422 |
*)
|
|
|
5423 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|
|
5424 |
;;
|
|
|
5425 |
esac
|
|
|
5426 |
;;
|
|
|
5427 |
*)
|
|
|
5428 |
;;
|
|
|
5429 |
esac
|
|
|
5430 |
;;
|
|
|
5431 |
interix*)
|
|
|
5432 |
# This is c89, which is MS Visual C++ (no shared libs)
|
|
|
5433 |
# Anyone wants to do a port?
|
|
|
5434 |
;;
|
|
|
5435 |
irix5* | irix6* | nonstopux*)
|
|
|
5436 |
case $cc_basename in
|
|
|
5437 |
CC*)
|
|
|
5438 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5439 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
|
5440 |
# CC pic flag -KPIC is the default.
|
|
|
5441 |
;;
|
|
|
5442 |
*)
|
|
|
5443 |
;;
|
|
|
5444 |
esac
|
|
|
5445 |
;;
|
|
|
5446 |
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
|
5447 |
case $cc_basename in
|
|
|
5448 |
KCC*)
|
|
|
5449 |
# KAI C++ Compiler
|
|
|
5450 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
|
|
5451 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5452 |
;;
|
|
|
5453 |
ecpc* )
|
|
|
5454 |
# old Intel C++ for x86_64 which still supported -KPIC.
|
|
|
5455 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5456 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5457 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
5458 |
;;
|
|
|
5459 |
icpc* )
|
|
|
5460 |
# Intel C++, used to be incompatible with GCC.
|
|
|
5461 |
# ICC 10 doesn't accept -KPIC any more.
|
|
|
5462 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5463 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5464 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
5465 |
;;
|
|
|
5466 |
pgCC* | pgcpp*)
|
|
|
5467 |
# Portland Group C++ compiler
|
|
|
5468 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5469 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
|
5470 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5471 |
;;
|
|
|
5472 |
cxx*)
|
|
|
5473 |
# Compaq C++
|
|
|
5474 |
# Make sure the PIC flag is empty. It appears that all Alpha
|
|
|
5475 |
# Linux and Compaq Tru64 Unix objects are PIC.
|
|
|
5476 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
|
5477 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
|
5478 |
;;
|
|
|
5479 |
xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
|
|
|
5480 |
# IBM XL 8.0, 9.0 on PPC and BlueGene
|
|
|
5481 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5482 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
|
|
5483 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
|
|
5484 |
;;
|
|
|
5485 |
*)
|
|
|
5486 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
5487 |
*Sun\ C*)
|
|
|
5488 |
# Sun C++ 5.9
|
|
|
5489 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5490 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5491 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
|
5492 |
;;
|
|
|
5493 |
esac
|
|
|
5494 |
;;
|
|
|
5495 |
esac
|
|
|
5496 |
;;
|
|
|
5497 |
lynxos*)
|
|
|
5498 |
;;
|
|
|
5499 |
m88k*)
|
|
|
5500 |
;;
|
|
|
5501 |
mvs*)
|
|
|
5502 |
case $cc_basename in
|
|
|
5503 |
cxx*)
|
|
|
5504 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
|
|
5505 |
;;
|
|
|
5506 |
*)
|
|
|
5507 |
;;
|
|
|
5508 |
esac
|
|
|
5509 |
;;
|
|
|
5510 |
netbsd*)
|
|
|
5511 |
;;
|
|
|
5512 |
*qnx* | *nto*)
|
|
|
5513 |
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
|
5514 |
# it will coredump.
|
|
|
5515 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
|
5516 |
;;
|
|
|
5517 |
osf3* | osf4* | osf5*)
|
|
|
5518 |
case $cc_basename in
|
|
|
5519 |
KCC*)
|
|
|
5520 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
|
|
5521 |
;;
|
|
|
5522 |
RCC*)
|
|
|
5523 |
# Rational C++ 2.4.1
|
|
|
5524 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
|
5525 |
;;
|
|
|
5526 |
cxx*)
|
|
|
5527 |
# Digital/Compaq C++
|
|
|
5528 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5529 |
# Make sure the PIC flag is empty. It appears that all Alpha
|
|
|
5530 |
# Linux and Compaq Tru64 Unix objects are PIC.
|
|
|
5531 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
|
5532 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
|
5533 |
;;
|
|
|
5534 |
*)
|
|
|
5535 |
;;
|
|
|
5536 |
esac
|
|
|
5537 |
;;
|
|
|
5538 |
psos*)
|
|
|
5539 |
;;
|
|
|
5540 |
solaris*)
|
|
|
5541 |
case $cc_basename in
|
|
|
5542 |
CC* | sunCC*)
|
|
|
5543 |
# Sun C++ 4.2, 5.x and Centerline C++
|
|
|
5544 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5545 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5546 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
|
5547 |
;;
|
|
|
5548 |
gcx*)
|
|
|
5549 |
# Green Hills C++ Compiler
|
|
|
5550 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|
|
5551 |
;;
|
|
|
5552 |
*)
|
|
|
5553 |
;;
|
|
|
5554 |
esac
|
|
|
5555 |
;;
|
|
|
5556 |
sunos4*)
|
|
|
5557 |
case $cc_basename in
|
|
|
5558 |
CC*)
|
|
|
5559 |
# Sun C++ 4.x
|
|
|
5560 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
|
5561 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5562 |
;;
|
|
|
5563 |
lcc*)
|
|
|
5564 |
# Lucid
|
|
|
5565 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
|
5566 |
;;
|
|
|
5567 |
*)
|
|
|
5568 |
;;
|
|
|
5569 |
esac
|
|
|
5570 |
;;
|
|
|
5571 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
|
5572 |
case $cc_basename in
|
|
|
5573 |
CC*)
|
|
|
5574 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5575 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5576 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5577 |
;;
|
|
|
5578 |
esac
|
|
|
5579 |
;;
|
|
|
5580 |
tandem*)
|
|
|
5581 |
case $cc_basename in
|
|
|
5582 |
NCC*)
|
|
|
5583 |
# NonStop-UX NCC 3.20
|
|
|
5584 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5585 |
;;
|
|
|
5586 |
*)
|
|
|
5587 |
;;
|
|
|
5588 |
esac
|
|
|
5589 |
;;
|
|
|
5590 |
vxworks*)
|
|
|
5591 |
;;
|
|
|
5592 |
*)
|
|
|
5593 |
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
|
5594 |
;;
|
|
|
5595 |
esac
|
|
|
5596 |
fi
|
|
|
5597 |
],
|
|
|
5598 |
[
|
|
|
5599 |
if test "$GCC" = yes; then
|
|
|
5600 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5601 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
5602 |
|
|
|
5603 |
case $host_os in
|
|
|
5604 |
aix*)
|
|
|
5605 |
# All AIX code is PIC.
|
|
|
5606 |
if test "$host_cpu" = ia64; then
|
|
|
5607 |
# AIX 5 now supports IA64 processor
|
|
|
5608 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5609 |
fi
|
|
|
5610 |
;;
|
|
|
5611 |
|
|
|
5612 |
amigaos*)
|
|
|
5613 |
case $host_cpu in
|
|
|
5614 |
powerpc)
|
|
|
5615 |
# see comment about AmigaOS4 .so support
|
|
|
5616 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5617 |
;;
|
|
|
5618 |
m68k)
|
|
|
5619 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
|
5620 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
|
|
5621 |
# like `-m68040'.
|
|
|
5622 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|
|
5623 |
;;
|
|
|
5624 |
esac
|
|
|
5625 |
;;
|
|
|
5626 |
|
|
|
5627 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
|
5628 |
# PIC is the default for these OSes.
|
|
|
5629 |
;;
|
|
|
5630 |
|
|
|
5631 |
mingw* | cygwin* | pw32* | os2* | cegcc*)
|
|
|
5632 |
# This hack is so that the source file can tell whether it is being
|
|
|
5633 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
5634 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
|
5635 |
# (--disable-auto-import) libraries
|
|
|
5636 |
m4_if([$1], [GCJ], [],
|
|
|
5637 |
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
|
5638 |
;;
|
|
|
5639 |
|
|
|
5640 |
darwin* | rhapsody*)
|
|
|
5641 |
# PIC is the default on this platform
|
|
|
5642 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
5643 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|
|
5644 |
;;
|
|
|
5645 |
|
|
|
5646 |
haiku*)
|
|
|
5647 |
# PIC is the default for Haiku.
|
|
|
5648 |
# The "-static" flag exists, but is broken.
|
|
|
5649 |
_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
|
|
5650 |
;;
|
|
|
5651 |
|
|
|
5652 |
hpux*)
|
|
|
5653 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
|
|
5654 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
|
|
5655 |
# sets the default TLS model and affects inlining.
|
|
|
5656 |
case $host_cpu in
|
|
|
5657 |
hppa*64*)
|
|
|
5658 |
# +Z the default
|
|
|
5659 |
;;
|
|
|
5660 |
*)
|
|
|
5661 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5662 |
;;
|
|
|
5663 |
esac
|
|
|
5664 |
;;
|
|
|
5665 |
|
|
|
5666 |
interix[[3-9]]*)
|
|
|
5667 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
|
5668 |
# Instead, we relocate shared libraries at runtime.
|
|
|
5669 |
;;
|
|
|
5670 |
|
|
|
5671 |
msdosdjgpp*)
|
|
|
5672 |
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
|
5673 |
# on systems that don't support them.
|
|
|
5674 |
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
|
5675 |
enable_shared=no
|
|
|
5676 |
;;
|
|
|
5677 |
|
|
|
5678 |
*nto* | *qnx*)
|
|
|
5679 |
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
|
5680 |
# it will coredump.
|
|
|
5681 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
|
5682 |
;;
|
|
|
5683 |
|
|
|
5684 |
sysv4*MP*)
|
|
|
5685 |
if test -d /usr/nec; then
|
|
|
5686 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
|
|
5687 |
fi
|
|
|
5688 |
;;
|
|
|
5689 |
|
|
|
5690 |
*)
|
|
|
5691 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5692 |
;;
|
|
|
5693 |
esac
|
|
|
5694 |
|
|
|
5695 |
case $cc_basename in
|
|
|
5696 |
nvcc*) # Cuda Compiler Driver 2.2
|
|
|
5697 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
|
|
|
5698 |
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
|
|
5699 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
|
|
|
5700 |
fi
|
|
|
5701 |
;;
|
|
|
5702 |
esac
|
|
|
5703 |
else
|
|
|
5704 |
# PORTME Check for flag to pass linker flags through the system compiler.
|
|
|
5705 |
case $host_os in
|
|
|
5706 |
aix*)
|
|
|
5707 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5708 |
if test "$host_cpu" = ia64; then
|
|
|
5709 |
# AIX 5 now supports IA64 processor
|
|
|
5710 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5711 |
else
|
|
|
5712 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
|
|
5713 |
fi
|
|
|
5714 |
;;
|
|
|
5715 |
|
|
|
5716 |
mingw* | cygwin* | pw32* | os2* | cegcc*)
|
|
|
5717 |
# This hack is so that the source file can tell whether it is being
|
|
|
5718 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
5719 |
m4_if([$1], [GCJ], [],
|
|
|
5720 |
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
|
5721 |
;;
|
|
|
5722 |
|
|
|
5723 |
hpux9* | hpux10* | hpux11*)
|
|
|
5724 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5725 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
5726 |
# not for PA HP-UX.
|
|
|
5727 |
case $host_cpu in
|
|
|
5728 |
hppa*64*|ia64*)
|
|
|
5729 |
# +Z the default
|
|
|
5730 |
;;
|
|
|
5731 |
*)
|
|
|
5732 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|
|
5733 |
;;
|
|
|
5734 |
esac
|
|
|
5735 |
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
|
|
5736 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
|
5737 |
;;
|
|
|
5738 |
|
|
|
5739 |
irix5* | irix6* | nonstopux*)
|
|
|
5740 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5741 |
# PIC (with -KPIC) is the default.
|
|
|
5742 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
|
5743 |
;;
|
|
|
5744 |
|
|
|
5745 |
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
|
5746 |
case $cc_basename in
|
|
|
5747 |
# old Intel for x86_64 which still supported -KPIC.
|
|
|
5748 |
ecc*)
|
|
|
5749 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5750 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5751 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
5752 |
;;
|
|
|
5753 |
# icc used to be incompatible with GCC.
|
|
|
5754 |
# ICC 10 doesn't accept -KPIC any more.
|
|
|
5755 |
icc* | ifort*)
|
|
|
5756 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5757 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5758 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
5759 |
;;
|
|
|
5760 |
# Lahey Fortran 8.1.
|
|
|
5761 |
lf95*)
|
|
|
5762 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5763 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
|
|
|
5764 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
|
|
|
5765 |
;;
|
|
|
5766 |
nagfor*)
|
|
|
5767 |
# NAG Fortran compiler
|
|
|
5768 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
|
|
|
5769 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|
|
5770 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5771 |
;;
|
|
|
5772 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
|
5773 |
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
|
5774 |
# which looks to be a dead project)
|
|
|
5775 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5776 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
|
5777 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5778 |
;;
|
|
|
5779 |
ccc*)
|
|
|
5780 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5781 |
# All Alpha code is PIC.
|
|
|
5782 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
|
5783 |
;;
|
|
|
5784 |
xl* | bgxl* | bgf* | mpixl*)
|
|
|
5785 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
|
|
5786 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5787 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
|
|
5788 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
|
|
5789 |
;;
|
|
|
5790 |
*)
|
|
|
5791 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
5792 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
|
|
5793 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
|
5794 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5795 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5796 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
|
|
5797 |
;;
|
|
|
5798 |
*Sun\ F* | *Sun*Fortran*)
|
|
|
5799 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5800 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5801 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
|
5802 |
;;
|
|
|
5803 |
*Sun\ C*)
|
|
|
5804 |
# Sun C 5.9
|
|
|
5805 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5806 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5807 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5808 |
;;
|
|
|
5809 |
*Intel*\ [[CF]]*Compiler*)
|
|
|
5810 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5811 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
|
5812 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
|
5813 |
;;
|
|
|
5814 |
*Portland\ Group*)
|
|
|
5815 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5816 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
|
5817 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5818 |
;;
|
|
|
5819 |
esac
|
|
|
5820 |
;;
|
|
|
5821 |
esac
|
|
|
5822 |
;;
|
|
|
5823 |
|
|
|
5824 |
newsos6)
|
|
|
5825 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5826 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5827 |
;;
|
|
|
5828 |
|
|
|
5829 |
*nto* | *qnx*)
|
|
|
5830 |
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
|
5831 |
# it will coredump.
|
|
|
5832 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
|
5833 |
;;
|
|
|
5834 |
|
|
|
5835 |
osf3* | osf4* | osf5*)
|
|
|
5836 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5837 |
# All OSF/1 code is PIC.
|
|
|
5838 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
|
5839 |
;;
|
|
|
5840 |
|
|
|
5841 |
rdos*)
|
|
|
5842 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
|
5843 |
;;
|
|
|
5844 |
|
|
|
5845 |
solaris*)
|
|
|
5846 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5847 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5848 |
case $cc_basename in
|
|
|
5849 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
|
5850 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
|
|
5851 |
*)
|
|
|
5852 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
|
|
5853 |
esac
|
|
|
5854 |
;;
|
|
|
5855 |
|
|
|
5856 |
sunos4*)
|
|
|
5857 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
|
5858 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|
|
5859 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5860 |
;;
|
|
|
5861 |
|
|
|
5862 |
sysv4 | sysv4.2uw2* | sysv4.3*)
|
|
|
5863 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5864 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5865 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5866 |
;;
|
|
|
5867 |
|
|
|
5868 |
sysv4*MP*)
|
|
|
5869 |
if test -d /usr/nec ;then
|
|
|
5870 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
|
|
5871 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5872 |
fi
|
|
|
5873 |
;;
|
|
|
5874 |
|
|
|
5875 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
|
5876 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5877 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
|
5878 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5879 |
;;
|
|
|
5880 |
|
|
|
5881 |
unicos*)
|
|
|
5882 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
|
5883 |
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
|
5884 |
;;
|
|
|
5885 |
|
|
|
5886 |
uts4*)
|
|
|
5887 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
|
5888 |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
|
5889 |
;;
|
|
|
5890 |
|
|
|
5891 |
*)
|
|
|
5892 |
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
|
5893 |
;;
|
|
|
5894 |
esac
|
|
|
5895 |
fi
|
|
|
5896 |
])
|
|
|
5897 |
case $host_os in
|
|
|
5898 |
# For platforms which do not support PIC, -DPIC is meaningless:
|
|
|
5899 |
*djgpp*)
|
|
|
5900 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
|
5901 |
;;
|
|
|
5902 |
*)
|
|
|
5903 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
|
|
|
5904 |
;;
|
|
|
5905 |
esac
|
|
|
5906 |
|
|
|
5907 |
AC_CACHE_CHECK([for $compiler option to produce PIC],
|
|
|
5908 |
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
|
|
|
5909 |
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
|
|
|
5910 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
|
|
|
5911 |
|
|
|
5912 |
#
|
|
|
5913 |
# Check to make sure the PIC flag actually works.
|
|
|
5914 |
#
|
|
|
5915 |
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
|
|
5916 |
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
|
|
|
5917 |
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
|
|
|
5918 |
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
|
|
|
5919 |
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
|
|
|
5920 |
"" | " "*) ;;
|
|
|
5921 |
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
|
|
5922 |
esac],
|
|
|
5923 |
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
|
5924 |
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
|
|
5925 |
fi
|
|
|
5926 |
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
|
|
|
5927 |
[Additional compiler flags for building library objects])
|
|
|
5928 |
|
|
|
5929 |
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
|
|
|
5930 |
[How to pass a linker flag through the compiler])
|
|
|
5931 |
#
|
|
|
5932 |
# Check to make sure the static flag actually works.
|
|
|
5933 |
#
|
|
|
5934 |
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
|
|
|
5935 |
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
|
|
|
5936 |
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
|
|
|
5937 |
$lt_tmp_static_flag,
|
|
|
5938 |
[],
|
|
|
5939 |
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
|
|
|
5940 |
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
|
|
|
5941 |
[Compiler flag to prevent dynamic linking])
|
|
|
5942 |
])# _LT_COMPILER_PIC
|
|
|
5943 |
|
|
|
5944 |
|
|
|
5945 |
# _LT_LINKER_SHLIBS([TAGNAME])
|
|
|
5946 |
# ----------------------------
|
|
|
5947 |
# See if the linker supports building shared libraries.
|
|
|
5948 |
m4_defun([_LT_LINKER_SHLIBS],
|
|
|
5949 |
[AC_REQUIRE([LT_PATH_LD])dnl
|
|
|
5950 |
AC_REQUIRE([LT_PATH_NM])dnl
|
|
|
5951 |
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
|
|
5952 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
5953 |
m4_require([_LT_DECL_EGREP])dnl
|
|
|
5954 |
m4_require([_LT_DECL_SED])dnl
|
|
|
5955 |
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
|
5956 |
m4_require([_LT_TAG_COMPILER])dnl
|
|
|
5957 |
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
|
|
5958 |
m4_if([$1], [CXX], [
|
|
|
5959 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
5960 |
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
|
|
5961 |
case $host_os in
|
|
|
5962 |
aix[[4-9]]*)
|
|
|
5963 |
# If we're using GNU nm, then we don't want the "-C" option.
|
|
|
5964 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
|
5965 |
# Also, AIX nm treats weak defined symbols like other global defined
|
|
|
5966 |
# symbols, whereas GNU nm marks them as "W".
|
|
|
5967 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
|
|
5968 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
|
|
5969 |
else
|
|
|
5970 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
|
|
5971 |
fi
|
|
|
5972 |
;;
|
|
|
5973 |
pw32*)
|
|
|
5974 |
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
|
|
5975 |
;;
|
|
|
5976 |
cygwin* | mingw* | cegcc*)
|
|
|
5977 |
case $cc_basename in
|
|
|
5978 |
cl*)
|
|
|
5979 |
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
|
|
5980 |
;;
|
|
|
5981 |
*)
|
|
|
5982 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
5983 |
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
|
|
5984 |
;;
|
|
|
5985 |
esac
|
|
|
5986 |
;;
|
|
|
5987 |
*)
|
|
|
5988 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
5989 |
;;
|
|
|
5990 |
esac
|
|
|
5991 |
], [
|
|
|
5992 |
runpath_var=
|
|
|
5993 |
_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
|
5994 |
_LT_TAGVAR(always_export_symbols, $1)=no
|
|
|
5995 |
_LT_TAGVAR(archive_cmds, $1)=
|
|
|
5996 |
_LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
|
5997 |
_LT_TAGVAR(compiler_needs_object, $1)=no
|
|
|
5998 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
|
5999 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
|
6000 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
6001 |
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
|
6002 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
6003 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
|
6004 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
|
6005 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
|
6006 |
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
|
6007 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
|
6008 |
_LT_TAGVAR(inherit_rpath, $1)=no
|
|
|
6009 |
_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
|
6010 |
_LT_TAGVAR(module_cmds, $1)=
|
|
|
6011 |
_LT_TAGVAR(module_expsym_cmds, $1)=
|
|
|
6012 |
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
|
|
|
6013 |
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
|
|
6014 |
_LT_TAGVAR(thread_safe_flag_spec, $1)=
|
|
|
6015 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
6016 |
# include_expsyms should be a list of space-separated symbols to be *always*
|
|
|
6017 |
# included in the symbol list
|
|
|
6018 |
_LT_TAGVAR(include_expsyms, $1)=
|
|
|
6019 |
# exclude_expsyms can be an extended regexp of symbols to exclude
|
|
|
6020 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
|
|
6021 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
|
|
6022 |
# as well as any symbol that contains `d'.
|
|
|
6023 |
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
|
|
6024 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|
|
6025 |
# platforms (ab)use it in PIC code, but their linkers get confused if
|
|
|
6026 |
# the symbol is explicitly referenced. Since portable code cannot
|
|
|
6027 |
# rely on this symbol name, it's probably fine to never include it in
|
|
|
6028 |
# preloaded symbol tables.
|
|
|
6029 |
# Exclude shared library initialization/finalization symbols.
|
|
|
6030 |
dnl Note also adjust exclude_expsyms for C++ above.
|
|
|
6031 |
extract_expsyms_cmds=
|
|
|
6032 |
|
|
|
6033 |
case $host_os in
|
|
|
6034 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
6035 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|
|
6036 |
# When not using gcc, we currently assume that we are using
|
|
|
6037 |
# Microsoft Visual C++.
|
|
|
6038 |
if test "$GCC" != yes; then
|
|
|
6039 |
with_gnu_ld=no
|
|
|
6040 |
fi
|
|
|
6041 |
;;
|
|
|
6042 |
interix*)
|
|
|
6043 |
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
|
6044 |
with_gnu_ld=yes
|
|
|
6045 |
;;
|
|
|
6046 |
openbsd*)
|
|
|
6047 |
with_gnu_ld=no
|
|
|
6048 |
;;
|
|
|
6049 |
esac
|
|
|
6050 |
|
|
|
6051 |
_LT_TAGVAR(ld_shlibs, $1)=yes
|
|
|
6052 |
|
|
|
6053 |
# On some targets, GNU ld is compatible enough with the native linker
|
|
|
6054 |
# that we're better off using the native interface for both.
|
|
|
6055 |
lt_use_gnu_ld_interface=no
|
|
|
6056 |
if test "$with_gnu_ld" = yes; then
|
|
|
6057 |
case $host_os in
|
|
|
6058 |
aix*)
|
|
|
6059 |
# The AIX port of GNU ld has always aspired to compatibility
|
|
|
6060 |
# with the native linker. However, as the warning in the GNU ld
|
|
|
6061 |
# block says, versions before 2.19.5* couldn't really create working
|
|
|
6062 |
# shared libraries, regardless of the interface used.
|
|
|
6063 |
case `$LD -v 2>&1` in
|
|
|
6064 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
|
|
6065 |
*\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
|
|
|
6066 |
*\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
|
|
|
6067 |
*)
|
|
|
6068 |
lt_use_gnu_ld_interface=yes
|
|
|
6069 |
;;
|
|
|
6070 |
esac
|
|
|
6071 |
;;
|
|
|
6072 |
*)
|
|
|
6073 |
lt_use_gnu_ld_interface=yes
|
|
|
6074 |
;;
|
|
|
6075 |
esac
|
|
|
6076 |
fi
|
|
|
6077 |
|
|
|
6078 |
if test "$lt_use_gnu_ld_interface" = yes; then
|
|
|
6079 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
|
6080 |
wlarc='${wl}'
|
|
|
6081 |
|
|
|
6082 |
# Set some defaults for GNU ld with shared library support. These
|
|
|
6083 |
# are reset later if shared libraries are not supported. Putting them
|
|
|
6084 |
# here allows them to be overridden if necessary.
|
|
|
6085 |
runpath_var=LD_RUN_PATH
|
|
|
6086 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
6087 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
|
6088 |
# ancient GNU ld didn't support --whole-archive et. al.
|
|
|
6089 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
|
|
6090 |
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
6091 |
else
|
|
|
6092 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
6093 |
fi
|
|
|
6094 |
supports_anon_versioning=no
|
|
|
6095 |
case `$LD -v 2>&1` in
|
|
|
6096 |
*GNU\ gold*) supports_anon_versioning=yes ;;
|
|
|
6097 |
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
|
|
6098 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
|
|
6099 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
|
|
6100 |
*\ 2.11.*) ;; # other 2.11 versions
|
|
|
6101 |
*) supports_anon_versioning=yes ;;
|
|
|
6102 |
esac
|
|
|
6103 |
|
|
|
6104 |
# See if GNU ld supports shared libraries.
|
|
|
6105 |
case $host_os in
|
|
|
6106 |
aix[[3-9]]*)
|
|
|
6107 |
# On AIX/PPC, the GNU linker is very broken
|
|
|
6108 |
if test "$host_cpu" != ia64; then
|
|
|
6109 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6110 |
cat <<_LT_EOF 1>&2
|
|
|
6111 |
|
|
|
6112 |
*** Warning: the GNU linker, at least up to release 2.19, is reported
|
|
|
6113 |
*** to be unable to reliably create shared libraries on AIX.
|
|
|
6114 |
*** Therefore, libtool is disabling shared libraries support. If you
|
|
|
6115 |
*** really care for shared libraries, you may want to install binutils
|
|
|
6116 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
|
|
6117 |
*** You will then need to restart the configuration process.
|
|
|
6118 |
|
|
|
6119 |
_LT_EOF
|
|
|
6120 |
fi
|
|
|
6121 |
;;
|
|
|
6122 |
|
|
|
6123 |
amigaos*)
|
|
|
6124 |
case $host_cpu in
|
|
|
6125 |
powerpc)
|
|
|
6126 |
# see comment about AmigaOS4 .so support
|
|
|
6127 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6128 |
_LT_TAGVAR(archive_expsym_cmds, $1)=''
|
|
|
6129 |
;;
|
|
|
6130 |
m68k)
|
|
|
6131 |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|
|
6132 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6133 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6134 |
;;
|
|
|
6135 |
esac
|
|
|
6136 |
;;
|
|
|
6137 |
|
|
|
6138 |
beos*)
|
|
|
6139 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
|
6140 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
6141 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
|
6142 |
# support --undefined. This deserves some investigation. FIXME
|
|
|
6143 |
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6144 |
else
|
|
|
6145 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6146 |
fi
|
|
|
6147 |
;;
|
|
|
6148 |
|
|
|
6149 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
6150 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|
|
6151 |
# as there is no search path for DLLs.
|
|
|
6152 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6153 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
|
|
6154 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
6155 |
_LT_TAGVAR(always_export_symbols, $1)=no
|
|
|
6156 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
|
6157 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
6158 |
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
|
|
6159 |
|
|
|
6160 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
|
6161 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
6162 |
# If the export-symbols file already is a .def file (1st line
|
|
|
6163 |
# is EXPORTS), use it as is; otherwise, prepend...
|
|
|
6164 |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
6165 |
cp $export_symbols $output_objdir/$soname.def;
|
|
|
6166 |
else
|
|
|
6167 |
echo EXPORTS > $output_objdir/$soname.def;
|
|
|
6168 |
cat $export_symbols >> $output_objdir/$soname.def;
|
|
|
6169 |
fi~
|
|
|
6170 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
6171 |
else
|
|
|
6172 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6173 |
fi
|
|
|
6174 |
;;
|
|
|
6175 |
|
|
|
6176 |
haiku*)
|
|
|
6177 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6178 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
6179 |
;;
|
|
|
6180 |
|
|
|
6181 |
interix[[3-9]]*)
|
|
|
6182 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
6183 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6184 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
6185 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
6186 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
|
6187 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
|
6188 |
# default) and relocated if they conflict, which is a slow very memory
|
|
|
6189 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
|
6190 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
|
6191 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
|
6192 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
6193 |
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
6194 |
;;
|
|
|
6195 |
|
|
|
6196 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
|
6197 |
tmp_diet=no
|
|
|
6198 |
if test "$host_os" = linux-dietlibc; then
|
|
|
6199 |
case $cc_basename in
|
|
|
6200 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
|
|
6201 |
esac
|
|
|
6202 |
fi
|
|
|
6203 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
|
|
6204 |
&& test "$tmp_diet" = no
|
|
|
6205 |
then
|
|
|
6206 |
tmp_addflag=' $pic_flag'
|
|
|
6207 |
tmp_sharedflag='-shared'
|
|
|
6208 |
case $cc_basename,$host_cpu in
|
|
|
6209 |
pgcc*) # Portland Group C compiler
|
|
|
6210 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
6211 |
tmp_addflag=' $pic_flag'
|
|
|
6212 |
;;
|
|
|
6213 |
pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
|
6214 |
# Portland Group f77 and f90 compilers
|
|
|
6215 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
6216 |
tmp_addflag=' $pic_flag -Mnomain' ;;
|
|
|
6217 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|
|
6218 |
tmp_addflag=' -i_dynamic' ;;
|
|
|
6219 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
|
|
6220 |
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
|
|
6221 |
ifc* | ifort*) # Intel Fortran compiler
|
|
|
6222 |
tmp_addflag=' -nofor_main' ;;
|
|
|
6223 |
lf95*) # Lahey Fortran 8.1
|
|
|
6224 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
6225 |
tmp_sharedflag='--shared' ;;
|
|
|
6226 |
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
|
|
6227 |
tmp_sharedflag='-qmkshrobj'
|
|
|
6228 |
tmp_addflag= ;;
|
|
|
6229 |
nvcc*) # Cuda Compiler Driver 2.2
|
|
|
6230 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
6231 |
_LT_TAGVAR(compiler_needs_object, $1)=yes
|
|
|
6232 |
;;
|
|
|
6233 |
esac
|
|
|
6234 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
6235 |
*Sun\ C*) # Sun C 5.9
|
|
|
6236 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
6237 |
_LT_TAGVAR(compiler_needs_object, $1)=yes
|
|
|
6238 |
tmp_sharedflag='-G' ;;
|
|
|
6239 |
*Sun\ F*) # Sun Fortran 8.3
|
|
|
6240 |
tmp_sharedflag='-G' ;;
|
|
|
6241 |
esac
|
|
|
6242 |
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6243 |
|
|
|
6244 |
if test "x$supports_anon_versioning" = xyes; then
|
|
|
6245 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
|
6246 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
|
6247 |
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
|
6248 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
|
6249 |
fi
|
|
|
6250 |
|
|
|
6251 |
case $cc_basename in
|
|
|
6252 |
xlf* | bgf* | bgxlf* | mpixlf*)
|
|
|
6253 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
|
|
6254 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
|
|
6255 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
6256 |
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
|
6257 |
if test "x$supports_anon_versioning" = xyes; then
|
|
|
6258 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
|
6259 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
|
6260 |
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
|
6261 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
|
6262 |
fi
|
|
|
6263 |
;;
|
|
|
6264 |
esac
|
|
|
6265 |
else
|
|
|
6266 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6267 |
fi
|
|
|
6268 |
;;
|
|
|
6269 |
|
|
|
6270 |
netbsd*)
|
|
|
6271 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
|
6272 |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
|
6273 |
wlarc=
|
|
|
6274 |
else
|
|
|
6275 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6276 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
6277 |
fi
|
|
|
6278 |
;;
|
|
|
6279 |
|
|
|
6280 |
solaris*)
|
|
|
6281 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
|
|
6282 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6283 |
cat <<_LT_EOF 1>&2
|
|
|
6284 |
|
|
|
6285 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|
|
6286 |
*** create shared libraries on Solaris systems. Therefore, libtool
|
|
|
6287 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
6288 |
*** binutils to release 2.9.1 or newer. Another option is to modify
|
|
|
6289 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
6290 |
*** used, and then restart.
|
|
|
6291 |
|
|
|
6292 |
_LT_EOF
|
|
|
6293 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
|
6294 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6295 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
6296 |
else
|
|
|
6297 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6298 |
fi
|
|
|
6299 |
;;
|
|
|
6300 |
|
|
|
6301 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
|
6302 |
case `$LD -v 2>&1` in
|
|
|
6303 |
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
|
|
6304 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6305 |
cat <<_LT_EOF 1>&2
|
|
|
6306 |
|
|
|
6307 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
|
6308 |
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
|
6309 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
6310 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
|
6311 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
6312 |
*** used, and then restart.
|
|
|
6313 |
|
|
|
6314 |
_LT_EOF
|
|
|
6315 |
;;
|
|
|
6316 |
*)
|
|
|
6317 |
# For security reasons, it is highly recommended that you always
|
|
|
6318 |
# use absolute paths for naming shared libraries, and exclude the
|
|
|
6319 |
# DT_RUNPATH tag from executables and libraries. But doing so
|
|
|
6320 |
# requires that you compile everything twice, which is a pain.
|
|
|
6321 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
|
6322 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
6323 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6324 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
6325 |
else
|
|
|
6326 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6327 |
fi
|
|
|
6328 |
;;
|
|
|
6329 |
esac
|
|
|
6330 |
;;
|
|
|
6331 |
|
|
|
6332 |
sunos4*)
|
|
|
6333 |
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6334 |
wlarc=
|
|
|
6335 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6336 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6337 |
;;
|
|
|
6338 |
|
|
|
6339 |
*)
|
|
|
6340 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
|
6341 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6342 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
6343 |
else
|
|
|
6344 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6345 |
fi
|
|
|
6346 |
;;
|
|
|
6347 |
esac
|
|
|
6348 |
|
|
|
6349 |
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
|
|
|
6350 |
runpath_var=
|
|
|
6351 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
|
6352 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
|
6353 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
6354 |
fi
|
|
|
6355 |
else
|
|
|
6356 |
# PORTME fill in a description of your system's linker (not GNU ld)
|
|
|
6357 |
case $host_os in
|
|
|
6358 |
aix3*)
|
|
|
6359 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
6360 |
_LT_TAGVAR(always_export_symbols, $1)=yes
|
|
|
6361 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
|
|
6362 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
|
|
6363 |
# are no directories specified by -L.
|
|
|
6364 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6365 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
|
|
6366 |
# Neither direct hardcoding nor static linking is supported with a
|
|
|
6367 |
# broken collect2.
|
|
|
6368 |
_LT_TAGVAR(hardcode_direct, $1)=unsupported
|
|
|
6369 |
fi
|
|
|
6370 |
;;
|
|
|
6371 |
|
|
|
6372 |
aix[[4-9]]*)
|
|
|
6373 |
if test "$host_cpu" = ia64; then
|
|
|
6374 |
# On IA64, the linker does run time linking by default, so we don't
|
|
|
6375 |
# have to do anything special.
|
|
|
6376 |
aix_use_runtimelinking=no
|
|
|
6377 |
exp_sym_flag='-Bexport'
|
|
|
6378 |
no_entry_flag=""
|
|
|
6379 |
else
|
|
|
6380 |
# If we're using GNU nm, then we don't want the "-C" option.
|
|
|
6381 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
|
6382 |
# Also, AIX nm treats weak defined symbols like other global
|
|
|
6383 |
# defined symbols, whereas GNU nm marks them as "W".
|
|
|
6384 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
|
|
6385 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
|
|
6386 |
else
|
|
|
6387 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
|
|
6388 |
fi
|
|
|
6389 |
aix_use_runtimelinking=no
|
|
|
6390 |
|
|
|
6391 |
# Test if we are trying to use run time linking or normal
|
|
|
6392 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
|
6393 |
# need to do runtime linking.
|
|
|
6394 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
|
|
6395 |
for ld_flag in $LDFLAGS; do
|
|
|
6396 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
|
|
6397 |
aix_use_runtimelinking=yes
|
|
|
6398 |
break
|
|
|
6399 |
fi
|
|
|
6400 |
done
|
|
|
6401 |
;;
|
|
|
6402 |
esac
|
|
|
6403 |
|
|
|
6404 |
exp_sym_flag='-bexport'
|
|
|
6405 |
no_entry_flag='-bnoentry'
|
|
|
6406 |
fi
|
|
|
6407 |
|
|
|
6408 |
# When large executables or shared objects are built, AIX ld can
|
|
|
6409 |
# have problems creating the table of contents. If linking a library
|
|
|
6410 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
|
6411 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
|
6412 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
6413 |
|
|
|
6414 |
_LT_TAGVAR(archive_cmds, $1)=''
|
|
|
6415 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6416 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
|
6417 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
|
6418 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
6419 |
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
|
|
|
6420 |
|
|
|
6421 |
if test "$GCC" = yes; then
|
|
|
6422 |
case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
|
|
6423 |
# We only want to do this on AIX 4.2 and lower, the check
|
|
|
6424 |
# below for broken collect2 doesn't work under 4.3+
|
|
|
6425 |
collect2name=`${CC} -print-prog-name=collect2`
|
|
|
6426 |
if test -f "$collect2name" &&
|
|
|
6427 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
|
|
6428 |
then
|
|
|
6429 |
# We have reworked collect2
|
|
|
6430 |
:
|
|
|
6431 |
else
|
|
|
6432 |
# We have old collect2
|
|
|
6433 |
_LT_TAGVAR(hardcode_direct, $1)=unsupported
|
|
|
6434 |
# It fails to find uninstalled libraries when the uninstalled
|
|
|
6435 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
|
6436 |
# to unsupported forces relinking
|
|
|
6437 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6438 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6439 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
|
6440 |
fi
|
|
|
6441 |
;;
|
|
|
6442 |
esac
|
|
|
6443 |
shared_flag='-shared'
|
|
|
6444 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
6445 |
shared_flag="$shared_flag "'${wl}-G'
|
|
|
6446 |
fi
|
|
|
6447 |
else
|
|
|
6448 |
# not using gcc
|
|
|
6449 |
if test "$host_cpu" = ia64; then
|
|
|
6450 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
|
6451 |
# chokes on -Wl,-G. The following line is correct:
|
|
|
6452 |
shared_flag='-G'
|
|
|
6453 |
else
|
|
|
6454 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
6455 |
shared_flag='${wl}-G'
|
|
|
6456 |
else
|
|
|
6457 |
shared_flag='${wl}-bM:SRE'
|
|
|
6458 |
fi
|
|
|
6459 |
fi
|
|
|
6460 |
fi
|
|
|
6461 |
|
|
|
6462 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
|
|
|
6463 |
# It seems that -bexpall does not export symbols beginning with
|
|
|
6464 |
# underscore (_), so it is better to generate a list of symbols to export.
|
|
|
6465 |
_LT_TAGVAR(always_export_symbols, $1)=yes
|
|
|
6466 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
6467 |
# Warning - without using the other runtime loading flags (-brtl),
|
|
|
6468 |
# -berok will link without error, but may produce a broken library.
|
|
|
6469 |
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|
|
6470 |
# Determine the default libpath from the value encoded in an
|
|
|
6471 |
# empty executable.
|
|
|
6472 |
_LT_SYS_MODULE_PATH_AIX([$1])
|
|
|
6473 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
6474 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
|
6475 |
else
|
|
|
6476 |
if test "$host_cpu" = ia64; then
|
|
|
6477 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|
|
6478 |
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|
|
6479 |
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
|
|
6480 |
else
|
|
|
6481 |
# Determine the default libpath from the value encoded in an
|
|
|
6482 |
# empty executable.
|
|
|
6483 |
_LT_SYS_MODULE_PATH_AIX([$1])
|
|
|
6484 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
6485 |
# Warning - without using the other run time loading flags,
|
|
|
6486 |
# -berok will link without error, but may produce a broken library.
|
|
|
6487 |
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|
|
6488 |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|
|
6489 |
if test "$with_gnu_ld" = yes; then
|
|
|
6490 |
# We only use this code for GNU lds that support --whole-archive.
|
|
|
6491 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
|
|
6492 |
else
|
|
|
6493 |
# Exported symbols can be pulled into shared objects from archives
|
|
|
6494 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
|
|
6495 |
fi
|
|
|
6496 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
|
6497 |
# This is similar to how AIX traditionally builds its shared libraries.
|
|
|
6498 |
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
|
6499 |
fi
|
|
|
6500 |
fi
|
|
|
6501 |
;;
|
|
|
6502 |
|
|
|
6503 |
amigaos*)
|
|
|
6504 |
case $host_cpu in
|
|
|
6505 |
powerpc)
|
|
|
6506 |
# see comment about AmigaOS4 .so support
|
|
|
6507 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
6508 |
_LT_TAGVAR(archive_expsym_cmds, $1)=''
|
|
|
6509 |
;;
|
|
|
6510 |
m68k)
|
|
|
6511 |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
|
|
6512 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6513 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6514 |
;;
|
|
|
6515 |
esac
|
|
|
6516 |
;;
|
|
|
6517 |
|
|
|
6518 |
bsdi[[45]]*)
|
|
|
6519 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
|
|
6520 |
;;
|
|
|
6521 |
|
|
|
6522 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
6523 |
# When not using gcc, we currently assume that we are using
|
|
|
6524 |
# Microsoft Visual C++.
|
|
|
6525 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
|
6526 |
# no search path for DLLs.
|
|
|
6527 |
case $cc_basename in
|
|
|
6528 |
cl*)
|
|
|
6529 |
# Native MSVC
|
|
|
6530 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
|
6531 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
6532 |
_LT_TAGVAR(always_export_symbols, $1)=yes
|
|
|
6533 |
_LT_TAGVAR(file_list_spec, $1)='@'
|
|
|
6534 |
# Tell ltmain to make .lib files, not .a files.
|
|
|
6535 |
libext=lib
|
|
|
6536 |
# Tell ltmain to make .dll files, not .so files.
|
|
|
6537 |
shrext_cmds=".dll"
|
|
|
6538 |
# FIXME: Setting linknames here is a bad hack.
|
|
|
6539 |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
|
6540 |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
6541 |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
|
6542 |
else
|
|
|
6543 |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
|
6544 |
fi~
|
|
|
6545 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
|
6546 |
linknames='
|
|
|
6547 |
# The linker will not automatically build a static lib if we build a DLL.
|
|
|
6548 |
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
|
6549 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
|
6550 |
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
|
|
6551 |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
|
|
6552 |
# Don't use ranlib
|
|
|
6553 |
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
|
6554 |
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
|
|
6555 |
lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
|
6556 |
case $lt_outputfile in
|
|
|
6557 |
*.exe|*.EXE) ;;
|
|
|
6558 |
*)
|
|
|
6559 |
lt_outputfile="$lt_outputfile.exe"
|
|
|
6560 |
lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
|
6561 |
;;
|
|
|
6562 |
esac~
|
|
|
6563 |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
|
6564 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
|
6565 |
$RM "$lt_outputfile.manifest";
|
|
|
6566 |
fi'
|
|
|
6567 |
;;
|
|
|
6568 |
*)
|
|
|
6569 |
# Assume MSVC wrapper
|
|
|
6570 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
|
6571 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
6572 |
# Tell ltmain to make .lib files, not .a files.
|
|
|
6573 |
libext=lib
|
|
|
6574 |
# Tell ltmain to make .dll files, not .so files.
|
|
|
6575 |
shrext_cmds=".dll"
|
|
|
6576 |
# FIXME: Setting linknames here is a bad hack.
|
|
|
6577 |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
|
6578 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
|
6579 |
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
|
6580 |
# FIXME: Should let the user specify the lib program.
|
|
|
6581 |
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
|
6582 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
|
6583 |
;;
|
|
|
6584 |
esac
|
|
|
6585 |
;;
|
|
|
6586 |
|
|
|
6587 |
darwin* | rhapsody*)
|
|
|
6588 |
_LT_DARWIN_LINKER_FEATURES($1)
|
|
|
6589 |
;;
|
|
|
6590 |
|
|
|
6591 |
dgux*)
|
|
|
6592 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6593 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6594 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6595 |
;;
|
|
|
6596 |
|
|
|
6597 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
|
6598 |
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
|
6599 |
# does not break anything, and helps significantly (at the cost of a little
|
|
|
6600 |
# extra space).
|
|
|
6601 |
freebsd2.2*)
|
|
|
6602 |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|
|
6603 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
6604 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6605 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6606 |
;;
|
|
|
6607 |
|
|
|
6608 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
|
6609 |
freebsd2.*)
|
|
|
6610 |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6611 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6612 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6613 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6614 |
;;
|
|
|
6615 |
|
|
|
6616 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
|
6617 |
freebsd* | dragonfly*)
|
|
|
6618 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6619 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
6620 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6621 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6622 |
;;
|
|
|
6623 |
|
|
|
6624 |
hpux9*)
|
|
|
6625 |
if test "$GCC" = yes; then
|
|
|
6626 |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
|
6627 |
else
|
|
|
6628 |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
|
6629 |
fi
|
|
|
6630 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
|
6631 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
6632 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6633 |
|
|
|
6634 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
6635 |
# but as the default location of the library.
|
|
|
6636 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6637 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
6638 |
;;
|
|
|
6639 |
|
|
|
6640 |
hpux10*)
|
|
|
6641 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
|
6642 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6643 |
else
|
|
|
6644 |
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6645 |
fi
|
|
|
6646 |
if test "$with_gnu_ld" = no; then
|
|
|
6647 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
|
6648 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
6649 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6650 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
|
6651 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
6652 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
6653 |
# but as the default location of the library.
|
|
|
6654 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6655 |
fi
|
|
|
6656 |
;;
|
|
|
6657 |
|
|
|
6658 |
hpux11*)
|
|
|
6659 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
|
6660 |
case $host_cpu in
|
|
|
6661 |
hppa*64*)
|
|
|
6662 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6663 |
;;
|
|
|
6664 |
ia64*)
|
|
|
6665 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6666 |
;;
|
|
|
6667 |
*)
|
|
|
6668 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6669 |
;;
|
|
|
6670 |
esac
|
|
|
6671 |
else
|
|
|
6672 |
case $host_cpu in
|
|
|
6673 |
hppa*64*)
|
|
|
6674 |
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6675 |
;;
|
|
|
6676 |
ia64*)
|
|
|
6677 |
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6678 |
;;
|
|
|
6679 |
*)
|
|
|
6680 |
m4_if($1, [], [
|
|
|
6681 |
# Older versions of the 11.00 compiler do not understand -b yet
|
|
|
6682 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
|
|
6683 |
_LT_LINKER_OPTION([if $CC understands -b],
|
|
|
6684 |
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
|
|
|
6685 |
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
|
|
|
6686 |
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
|
|
|
6687 |
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
|
|
|
6688 |
;;
|
|
|
6689 |
esac
|
|
|
6690 |
fi
|
|
|
6691 |
if test "$with_gnu_ld" = no; then
|
|
|
6692 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
|
6693 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
6694 |
|
|
|
6695 |
case $host_cpu in
|
|
|
6696 |
hppa*64*|ia64*)
|
|
|
6697 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
6698 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6699 |
;;
|
|
|
6700 |
*)
|
|
|
6701 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6702 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
|
6703 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
6704 |
|
|
|
6705 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
6706 |
# but as the default location of the library.
|
|
|
6707 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6708 |
;;
|
|
|
6709 |
esac
|
|
|
6710 |
fi
|
|
|
6711 |
;;
|
|
|
6712 |
|
|
|
6713 |
irix5* | irix6* | nonstopux*)
|
|
|
6714 |
if test "$GCC" = yes; then
|
|
|
6715 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
6716 |
# Try to use the -exported_symbol ld option, if it does not
|
|
|
6717 |
# work, assume that -exports_file does not work either and
|
|
|
6718 |
# implicitly export all symbols.
|
|
|
6719 |
# This should be the same for all languages, so no per-tag cache variable.
|
|
|
6720 |
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
|
|
|
6721 |
[lt_cv_irix_exported_symbol],
|
|
|
6722 |
[save_LDFLAGS="$LDFLAGS"
|
|
|
6723 |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
|
6724 |
AC_LINK_IFELSE(
|
|
|
6725 |
[AC_LANG_SOURCE(
|
|
|
6726 |
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
|
|
|
6727 |
[C++], [[int foo (void) { return 0; }]],
|
|
|
6728 |
[Fortran 77], [[
|
|
|
6729 |
subroutine foo
|
|
|
6730 |
end]],
|
|
|
6731 |
[Fortran], [[
|
|
|
6732 |
subroutine foo
|
|
|
6733 |
end]])])],
|
|
|
6734 |
[lt_cv_irix_exported_symbol=yes],
|
|
|
6735 |
[lt_cv_irix_exported_symbol=no])
|
|
|
6736 |
LDFLAGS="$save_LDFLAGS"])
|
|
|
6737 |
if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
|
6738 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
|
6739 |
fi
|
|
|
6740 |
else
|
|
|
6741 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
6742 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
|
6743 |
fi
|
|
|
6744 |
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
|
|
6745 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
6746 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
6747 |
_LT_TAGVAR(inherit_rpath, $1)=yes
|
|
|
6748 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
6749 |
;;
|
|
|
6750 |
|
|
|
6751 |
netbsd*)
|
|
|
6752 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
|
6753 |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
|
6754 |
else
|
|
|
6755 |
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|
|
6756 |
fi
|
|
|
6757 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
6758 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6759 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6760 |
;;
|
|
|
6761 |
|
|
|
6762 |
newsos6)
|
|
|
6763 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6764 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6765 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
6766 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
6767 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6768 |
;;
|
|
|
6769 |
|
|
|
6770 |
*nto* | *qnx*)
|
|
|
6771 |
;;
|
|
|
6772 |
|
|
|
6773 |
openbsd*)
|
|
|
6774 |
if test -f /usr/libexec/ld.so; then
|
|
|
6775 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6776 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6777 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
|
6778 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
6779 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6780 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
|
6781 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
6782 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
6783 |
else
|
|
|
6784 |
case $host_os in
|
|
|
6785 |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
|
|
6786 |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6787 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
6788 |
;;
|
|
|
6789 |
*)
|
|
|
6790 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6791 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
6792 |
;;
|
|
|
6793 |
esac
|
|
|
6794 |
fi
|
|
|
6795 |
else
|
|
|
6796 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6797 |
fi
|
|
|
6798 |
;;
|
|
|
6799 |
|
|
|
6800 |
os2*)
|
|
|
6801 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6802 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6803 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
6804 |
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
|
|
6805 |
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
|
|
6806 |
;;
|
|
|
6807 |
|
|
|
6808 |
osf3*)
|
|
|
6809 |
if test "$GCC" = yes; then
|
|
|
6810 |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
6811 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
6812 |
else
|
|
|
6813 |
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|
|
6814 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
6815 |
fi
|
|
|
6816 |
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
|
|
6817 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
6818 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
6819 |
;;
|
|
|
6820 |
|
|
|
6821 |
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
|
6822 |
if test "$GCC" = yes; then
|
|
|
6823 |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
6824 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
6825 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
6826 |
else
|
|
|
6827 |
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|
|
6828 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
6829 |
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
|
|
|
6830 |
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
|
|
|
6831 |
|
|
|
6832 |
# Both c and cxx compiler support -rpath directly
|
|
|
6833 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|
|
6834 |
fi
|
|
|
6835 |
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
|
|
6836 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
6837 |
;;
|
|
|
6838 |
|
|
|
6839 |
solaris*)
|
|
|
6840 |
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
|
|
|
6841 |
if test "$GCC" = yes; then
|
|
|
6842 |
wlarc='${wl}'
|
|
|
6843 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6844 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
|
6845 |
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
|
6846 |
else
|
|
|
6847 |
case `$CC -V 2>&1` in
|
|
|
6848 |
*"Compilers 5.0"*)
|
|
|
6849 |
wlarc=''
|
|
|
6850 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6851 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
|
6852 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
|
|
6853 |
;;
|
|
|
6854 |
*)
|
|
|
6855 |
wlarc='${wl}'
|
|
|
6856 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6857 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
|
6858 |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
|
6859 |
;;
|
|
|
6860 |
esac
|
|
|
6861 |
fi
|
|
|
6862 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
6863 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6864 |
case $host_os in
|
|
|
6865 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
|
6866 |
*)
|
|
|
6867 |
# The compiler driver will combine and reorder linker options,
|
|
|
6868 |
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
|
6869 |
# but is careful enough not to reorder.
|
|
|
6870 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
|
6871 |
if test "$GCC" = yes; then
|
|
|
6872 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
|
6873 |
else
|
|
|
6874 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
|
|
6875 |
fi
|
|
|
6876 |
;;
|
|
|
6877 |
esac
|
|
|
6878 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
6879 |
;;
|
|
|
6880 |
|
|
|
6881 |
sunos4*)
|
|
|
6882 |
if test "x$host_vendor" = xsequent; then
|
|
|
6883 |
# Use $CC to link under sequent, because it throws in some extra .o
|
|
|
6884 |
# files that make .init and .fini sections work.
|
|
|
6885 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6886 |
else
|
|
|
6887 |
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6888 |
fi
|
|
|
6889 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6890 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
6891 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
6892 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6893 |
;;
|
|
|
6894 |
|
|
|
6895 |
sysv4)
|
|
|
6896 |
case $host_vendor in
|
|
|
6897 |
sni)
|
|
|
6898 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6899 |
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
|
|
6900 |
;;
|
|
|
6901 |
siemens)
|
|
|
6902 |
## LD is ld it makes a PLAMLIB
|
|
|
6903 |
## CC just makes a GrossModule.
|
|
|
6904 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6905 |
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
|
|
6906 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
6907 |
;;
|
|
|
6908 |
motorola)
|
|
|
6909 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6910 |
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
|
|
6911 |
;;
|
|
|
6912 |
esac
|
|
|
6913 |
runpath_var='LD_RUN_PATH'
|
|
|
6914 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6915 |
;;
|
|
|
6916 |
|
|
|
6917 |
sysv4.3*)
|
|
|
6918 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6919 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6920 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
|
|
6921 |
;;
|
|
|
6922 |
|
|
|
6923 |
sysv4*MP*)
|
|
|
6924 |
if test -d /usr/nec; then
|
|
|
6925 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6926 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6927 |
runpath_var=LD_RUN_PATH
|
|
|
6928 |
hardcode_runpath_var=yes
|
|
|
6929 |
_LT_TAGVAR(ld_shlibs, $1)=yes
|
|
|
6930 |
fi
|
|
|
6931 |
;;
|
|
|
6932 |
|
|
|
6933 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
|
|
6934 |
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
|
6935 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
6936 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6937 |
runpath_var='LD_RUN_PATH'
|
|
|
6938 |
|
|
|
6939 |
if test "$GCC" = yes; then
|
|
|
6940 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6941 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6942 |
else
|
|
|
6943 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6944 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6945 |
fi
|
|
|
6946 |
;;
|
|
|
6947 |
|
|
|
6948 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
|
6949 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
|
6950 |
# link with -lc, and that would cause any symbols used from libc to
|
|
|
6951 |
# always be unresolved, which means just about no library would
|
|
|
6952 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
|
6953 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
|
6954 |
# as -z defs.
|
|
|
6955 |
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
|
6956 |
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
|
|
6957 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
6958 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6959 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
|
|
|
6960 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
|
6961 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
6962 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|
|
6963 |
runpath_var='LD_RUN_PATH'
|
|
|
6964 |
|
|
|
6965 |
if test "$GCC" = yes; then
|
|
|
6966 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6967 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6968 |
else
|
|
|
6969 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6970 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
6971 |
fi
|
|
|
6972 |
;;
|
|
|
6973 |
|
|
|
6974 |
uts4*)
|
|
|
6975 |
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
6976 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
6977 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
6978 |
;;
|
|
|
6979 |
|
|
|
6980 |
*)
|
|
|
6981 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
6982 |
;;
|
|
|
6983 |
esac
|
|
|
6984 |
|
|
|
6985 |
if test x$host_vendor = xsni; then
|
|
|
6986 |
case $host in
|
|
|
6987 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
|
6988 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
|
|
|
6989 |
;;
|
|
|
6990 |
esac
|
|
|
6991 |
fi
|
|
|
6992 |
fi
|
|
|
6993 |
])
|
|
|
6994 |
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
|
|
6995 |
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|
|
6996 |
|
|
|
6997 |
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
|
|
|
6998 |
|
|
|
6999 |
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
|
|
|
7000 |
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
|
|
|
7001 |
_LT_DECL([], [extract_expsyms_cmds], [2],
|
|
|
7002 |
[The commands to extract the exported symbol list from a shared archive])
|
|
|
7003 |
|
|
|
7004 |
#
|
|
|
7005 |
# Do we need to explicitly link libc?
|
|
|
7006 |
#
|
|
|
7007 |
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
|
|
|
7008 |
x|xyes)
|
|
|
7009 |
# Assume -lc should be added
|
|
|
7010 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
|
7011 |
|
|
|
7012 |
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|
|
7013 |
case $_LT_TAGVAR(archive_cmds, $1) in
|
|
|
7014 |
*'~'*)
|
|
|
7015 |
# FIXME: we may have to deal with multi-command sequences.
|
|
|
7016 |
;;
|
|
|
7017 |
'$CC '*)
|
|
|
7018 |
# Test whether the compiler implicitly links with -lc since on some
|
|
|
7019 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
|
7020 |
# to ld, don't add -lc before -lgcc.
|
|
|
7021 |
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
|
|
|
7022 |
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
|
|
|
7023 |
[$RM conftest*
|
|
|
7024 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
7025 |
|
|
|
7026 |
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
|
|
7027 |
soname=conftest
|
|
|
7028 |
lib=conftest
|
|
|
7029 |
libobjs=conftest.$ac_objext
|
|
|
7030 |
deplibs=
|
|
|
7031 |
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
|
|
|
7032 |
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
|
|
|
7033 |
compiler_flags=-v
|
|
|
7034 |
linker_flags=-v
|
|
|
7035 |
verstring=
|
|
|
7036 |
output_objdir=.
|
|
|
7037 |
libname=conftest
|
|
|
7038 |
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
|
|
|
7039 |
_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
|
7040 |
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
|
|
|
7041 |
then
|
|
|
7042 |
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
7043 |
else
|
|
|
7044 |
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
|
7045 |
fi
|
|
|
7046 |
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
|
|
7047 |
else
|
|
|
7048 |
cat conftest.err 1>&5
|
|
|
7049 |
fi
|
|
|
7050 |
$RM conftest*
|
|
|
7051 |
])
|
|
|
7052 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
|
|
|
7053 |
;;
|
|
|
7054 |
esac
|
|
|
7055 |
fi
|
|
|
7056 |
;;
|
|
|
7057 |
esac
|
|
|
7058 |
|
|
|
7059 |
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
|
|
|
7060 |
[Whether or not to add -lc for building shared libraries])
|
|
|
7061 |
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
|
|
|
7062 |
[enable_shared_with_static_runtimes], [0],
|
|
|
7063 |
[Whether or not to disallow shared libs when runtime libs are static])
|
|
|
7064 |
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
|
|
|
7065 |
[Compiler flag to allow reflexive dlopens])
|
|
|
7066 |
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
|
|
|
7067 |
[Compiler flag to generate shared objects directly from archives])
|
|
|
7068 |
_LT_TAGDECL([], [compiler_needs_object], [1],
|
|
|
7069 |
[Whether the compiler copes with passing no objects directly])
|
|
|
7070 |
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
|
|
|
7071 |
[Create an old-style archive from a shared archive])
|
|
|
7072 |
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
|
|
|
7073 |
[Create a temporary old-style archive to link instead of a shared archive])
|
|
|
7074 |
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
|
|
|
7075 |
_LT_TAGDECL([], [archive_expsym_cmds], [2])
|
|
|
7076 |
_LT_TAGDECL([], [module_cmds], [2],
|
|
|
7077 |
[Commands used to build a loadable module if different from building
|
|
|
7078 |
a shared archive.])
|
|
|
7079 |
_LT_TAGDECL([], [module_expsym_cmds], [2])
|
|
|
7080 |
_LT_TAGDECL([], [with_gnu_ld], [1],
|
|
|
7081 |
[Whether we are building with GNU ld or not])
|
|
|
7082 |
_LT_TAGDECL([], [allow_undefined_flag], [1],
|
|
|
7083 |
[Flag that allows shared libraries with undefined symbols to be built])
|
|
|
7084 |
_LT_TAGDECL([], [no_undefined_flag], [1],
|
|
|
7085 |
[Flag that enforces no undefined symbols])
|
|
|
7086 |
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
|
|
7087 |
[Flag to hardcode $libdir into a binary during linking.
|
|
|
7088 |
This must work even if $libdir does not exist])
|
|
|
7089 |
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
|
|
7090 |
[Whether we need a single "-rpath" flag with a separated argument])
|
|
|
7091 |
_LT_TAGDECL([], [hardcode_direct], [0],
|
|
|
7092 |
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
|
|
|
7093 |
DIR into the resulting binary])
|
|
|
7094 |
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
|
|
|
7095 |
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
|
|
|
7096 |
DIR into the resulting binary and the resulting library dependency is
|
|
|
7097 |
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
|
|
|
7098 |
library is relocated])
|
|
|
7099 |
_LT_TAGDECL([], [hardcode_minus_L], [0],
|
|
|
7100 |
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
|
|
7101 |
into the resulting binary])
|
|
|
7102 |
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
|
|
|
7103 |
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
|
|
7104 |
into the resulting binary])
|
|
|
7105 |
_LT_TAGDECL([], [hardcode_automatic], [0],
|
|
|
7106 |
[Set to "yes" if building a shared library automatically hardcodes DIR
|
|
|
7107 |
into the library and all subsequent libraries and executables linked
|
|
|
7108 |
against it])
|
|
|
7109 |
_LT_TAGDECL([], [inherit_rpath], [0],
|
|
|
7110 |
[Set to yes if linker adds runtime paths of dependent libraries
|
|
|
7111 |
to runtime path list])
|
|
|
7112 |
_LT_TAGDECL([], [link_all_deplibs], [0],
|
|
|
7113 |
[Whether libtool must link a program against all its dependency libraries])
|
|
|
7114 |
_LT_TAGDECL([], [always_export_symbols], [0],
|
|
|
7115 |
[Set to "yes" if exported symbols are required])
|
|
|
7116 |
_LT_TAGDECL([], [export_symbols_cmds], [2],
|
|
|
7117 |
[The commands to list exported symbols])
|
|
|
7118 |
_LT_TAGDECL([], [exclude_expsyms], [1],
|
|
|
7119 |
[Symbols that should not be listed in the preloaded symbols])
|
|
|
7120 |
_LT_TAGDECL([], [include_expsyms], [1],
|
|
|
7121 |
[Symbols that must always be exported])
|
|
|
7122 |
_LT_TAGDECL([], [prelink_cmds], [2],
|
|
|
7123 |
[Commands necessary for linking programs (against libraries) with templates])
|
|
|
7124 |
_LT_TAGDECL([], [postlink_cmds], [2],
|
|
|
7125 |
[Commands necessary for finishing linking programs])
|
|
|
7126 |
_LT_TAGDECL([], [file_list_spec], [1],
|
|
|
7127 |
[Specify filename containing input files])
|
|
|
7128 |
dnl FIXME: Not yet implemented
|
|
|
7129 |
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
|
|
|
7130 |
dnl [Compiler flag to generate thread safe objects])
|
|
|
7131 |
])# _LT_LINKER_SHLIBS
|
|
|
7132 |
|
|
|
7133 |
|
|
|
7134 |
# _LT_LANG_C_CONFIG([TAG])
|
|
|
7135 |
# ------------------------
|
|
|
7136 |
# Ensure that the configuration variables for a C compiler are suitably
|
|
|
7137 |
# defined. These variables are subsequently used by _LT_CONFIG to write
|
|
|
7138 |
# the compiler configuration to `libtool'.
|
|
|
7139 |
m4_defun([_LT_LANG_C_CONFIG],
|
|
|
7140 |
[m4_require([_LT_DECL_EGREP])dnl
|
|
|
7141 |
lt_save_CC="$CC"
|
|
|
7142 |
AC_LANG_PUSH(C)
|
|
|
7143 |
|
|
|
7144 |
# Source file extension for C test sources.
|
|
|
7145 |
ac_ext=c
|
|
|
7146 |
|
|
|
7147 |
# Object file extension for compiled C test sources.
|
|
|
7148 |
objext=o
|
|
|
7149 |
_LT_TAGVAR(objext, $1)=$objext
|
|
|
7150 |
|
|
|
7151 |
# Code to be used in simple compile tests
|
|
|
7152 |
lt_simple_compile_test_code="int some_variable = 0;"
|
|
|
7153 |
|
|
|
7154 |
# Code to be used in simple link tests
|
|
|
7155 |
lt_simple_link_test_code='int main(){return(0);}'
|
|
|
7156 |
|
|
|
7157 |
_LT_TAG_COMPILER
|
|
|
7158 |
# Save the default compiler, since it gets overwritten when the other
|
|
|
7159 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
|
|
7160 |
compiler_DEFAULT=$CC
|
|
|
7161 |
|
|
|
7162 |
# save warnings/boilerplate of simple test code
|
|
|
7163 |
_LT_COMPILER_BOILERPLATE
|
|
|
7164 |
_LT_LINKER_BOILERPLATE
|
|
|
7165 |
|
|
|
7166 |
if test -n "$compiler"; then
|
|
|
7167 |
_LT_COMPILER_NO_RTTI($1)
|
|
|
7168 |
_LT_COMPILER_PIC($1)
|
|
|
7169 |
_LT_COMPILER_C_O($1)
|
|
|
7170 |
_LT_COMPILER_FILE_LOCKS($1)
|
|
|
7171 |
_LT_LINKER_SHLIBS($1)
|
|
|
7172 |
_LT_SYS_DYNAMIC_LINKER($1)
|
|
|
7173 |
_LT_LINKER_HARDCODE_LIBPATH($1)
|
|
|
7174 |
LT_SYS_DLOPEN_SELF
|
|
|
7175 |
_LT_CMD_STRIPLIB
|
|
|
7176 |
|
|
|
7177 |
# Report which library types will actually be built
|
|
|
7178 |
AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
|
7179 |
AC_MSG_RESULT([$can_build_shared])
|
|
|
7180 |
|
|
|
7181 |
AC_MSG_CHECKING([whether to build shared libraries])
|
|
|
7182 |
test "$can_build_shared" = "no" && enable_shared=no
|
|
|
7183 |
|
|
|
7184 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
|
7185 |
# are all built from PIC.
|
|
|
7186 |
case $host_os in
|
|
|
7187 |
aix3*)
|
|
|
7188 |
test "$enable_shared" = yes && enable_static=no
|
|
|
7189 |
if test -n "$RANLIB"; then
|
|
|
7190 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
|
7191 |
postinstall_cmds='$RANLIB $lib'
|
|
|
7192 |
fi
|
|
|
7193 |
;;
|
|
|
7194 |
|
|
|
7195 |
aix[[4-9]]*)
|
|
|
7196 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
|
7197 |
test "$enable_shared" = yes && enable_static=no
|
|
|
7198 |
fi
|
|
|
7199 |
;;
|
|
|
7200 |
esac
|
|
|
7201 |
AC_MSG_RESULT([$enable_shared])
|
|
|
7202 |
|
|
|
7203 |
AC_MSG_CHECKING([whether to build static libraries])
|
|
|
7204 |
# Make sure either enable_shared or enable_static is yes.
|
|
|
7205 |
test "$enable_shared" = yes || enable_static=yes
|
|
|
7206 |
AC_MSG_RESULT([$enable_static])
|
|
|
7207 |
|
|
|
7208 |
_LT_CONFIG($1)
|
|
|
7209 |
fi
|
|
|
7210 |
AC_LANG_POP
|
|
|
7211 |
CC="$lt_save_CC"
|
|
|
7212 |
])# _LT_LANG_C_CONFIG
|
|
|
7213 |
|
|
|
7214 |
|
|
|
7215 |
# _LT_LANG_CXX_CONFIG([TAG])
|
|
|
7216 |
# --------------------------
|
|
|
7217 |
# Ensure that the configuration variables for a C++ compiler are suitably
|
|
|
7218 |
# defined. These variables are subsequently used by _LT_CONFIG to write
|
|
|
7219 |
# the compiler configuration to `libtool'.
|
|
|
7220 |
m4_defun([_LT_LANG_CXX_CONFIG],
|
|
|
7221 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
7222 |
m4_require([_LT_DECL_EGREP])dnl
|
|
|
7223 |
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
|
|
7224 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
|
|
7225 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
|
|
7226 |
(test "X$CXX" != "Xg++"))) ; then
|
|
|
7227 |
AC_PROG_CXXCPP
|
|
|
7228 |
else
|
|
|
7229 |
_lt_caught_CXX_error=yes
|
|
|
7230 |
fi
|
|
|
7231 |
|
|
|
7232 |
AC_LANG_PUSH(C++)
|
|
|
7233 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
7234 |
_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
|
7235 |
_LT_TAGVAR(always_export_symbols, $1)=no
|
|
|
7236 |
_LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
|
7237 |
_LT_TAGVAR(compiler_needs_object, $1)=no
|
|
|
7238 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
|
7239 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
7240 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
|
7241 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
|
7242 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
|
7243 |
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
|
7244 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
|
7245 |
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
|
7246 |
_LT_TAGVAR(inherit_rpath, $1)=no
|
|
|
7247 |
_LT_TAGVAR(module_cmds, $1)=
|
|
|
7248 |
_LT_TAGVAR(module_expsym_cmds, $1)=
|
|
|
7249 |
_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
|
7250 |
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
7251 |
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
|
7252 |
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
|
7253 |
_LT_TAGVAR(no_undefined_flag, $1)=
|
|
|
7254 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
7255 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
|
7256 |
|
|
|
7257 |
# Source file extension for C++ test sources.
|
|
|
7258 |
ac_ext=cpp
|
|
|
7259 |
|
|
|
7260 |
# Object file extension for compiled C++ test sources.
|
|
|
7261 |
objext=o
|
|
|
7262 |
_LT_TAGVAR(objext, $1)=$objext
|
|
|
7263 |
|
|
|
7264 |
# No sense in running all these tests if we already determined that
|
|
|
7265 |
# the CXX compiler isn't working. Some variables (like enable_shared)
|
|
|
7266 |
# are currently assumed to apply to all compilers on this platform,
|
|
|
7267 |
# and will be corrupted by setting them based on a non-working compiler.
|
|
|
7268 |
if test "$_lt_caught_CXX_error" != yes; then
|
|
|
7269 |
# Code to be used in simple compile tests
|
|
|
7270 |
lt_simple_compile_test_code="int some_variable = 0;"
|
|
|
7271 |
|
|
|
7272 |
# Code to be used in simple link tests
|
|
|
7273 |
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
|
|
|
7274 |
|
|
|
7275 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
7276 |
_LT_TAG_COMPILER
|
|
|
7277 |
|
|
|
7278 |
# save warnings/boilerplate of simple test code
|
|
|
7279 |
_LT_COMPILER_BOILERPLATE
|
|
|
7280 |
_LT_LINKER_BOILERPLATE
|
|
|
7281 |
|
|
|
7282 |
# Allow CC to be a program name with arguments.
|
|
|
7283 |
lt_save_CC=$CC
|
|
|
7284 |
lt_save_CFLAGS=$CFLAGS
|
|
|
7285 |
lt_save_LD=$LD
|
|
|
7286 |
lt_save_GCC=$GCC
|
|
|
7287 |
GCC=$GXX
|
|
|
7288 |
lt_save_with_gnu_ld=$with_gnu_ld
|
|
|
7289 |
lt_save_path_LD=$lt_cv_path_LD
|
|
|
7290 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
|
|
7291 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
|
|
7292 |
else
|
|
|
7293 |
$as_unset lt_cv_prog_gnu_ld
|
|
|
7294 |
fi
|
|
|
7295 |
if test -n "${lt_cv_path_LDCXX+set}"; then
|
|
|
7296 |
lt_cv_path_LD=$lt_cv_path_LDCXX
|
|
|
7297 |
else
|
|
|
7298 |
$as_unset lt_cv_path_LD
|
|
|
7299 |
fi
|
|
|
7300 |
test -z "${LDCXX+set}" || LD=$LDCXX
|
|
|
7301 |
CC=${CXX-"c++"}
|
|
|
7302 |
CFLAGS=$CXXFLAGS
|
|
|
7303 |
compiler=$CC
|
|
|
7304 |
_LT_TAGVAR(compiler, $1)=$CC
|
|
|
7305 |
_LT_CC_BASENAME([$compiler])
|
|
|
7306 |
|
|
|
7307 |
if test -n "$compiler"; then
|
|
|
7308 |
# We don't want -fno-exception when compiling C++ code, so set the
|
|
|
7309 |
# no_builtin_flag separately
|
|
|
7310 |
if test "$GXX" = yes; then
|
|
|
7311 |
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
|
|
7312 |
else
|
|
|
7313 |
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
|
|
7314 |
fi
|
|
|
7315 |
|
|
|
7316 |
if test "$GXX" = yes; then
|
|
|
7317 |
# Set up default GNU C++ configuration
|
|
|
7318 |
|
|
|
7319 |
LT_PATH_LD
|
|
|
7320 |
|
|
|
7321 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the
|
|
|
7322 |
# archiving commands below assume that GNU ld is being used.
|
|
|
7323 |
if test "$with_gnu_ld" = yes; then
|
|
|
7324 |
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7325 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
7326 |
|
|
|
7327 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
7328 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
|
7329 |
|
|
|
7330 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
|
7331 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
|
|
7332 |
# investigate it a little bit more. (MM)
|
|
|
7333 |
wlarc='${wl}'
|
|
|
7334 |
|
|
|
7335 |
# ancient GNU ld didn't support --whole-archive et. al.
|
|
|
7336 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
|
|
|
7337 |
$GREP 'no-whole-archive' > /dev/null; then
|
|
|
7338 |
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
7339 |
else
|
|
|
7340 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
7341 |
fi
|
|
|
7342 |
else
|
|
|
7343 |
with_gnu_ld=no
|
|
|
7344 |
wlarc=
|
|
|
7345 |
|
|
|
7346 |
# A generic and very simple default shared library creation
|
|
|
7347 |
# command for GNU C++ for the case where it uses the native
|
|
|
7348 |
# linker, instead of GNU ld. If possible, this setting should
|
|
|
7349 |
# overridden to take advantage of the native linker features on
|
|
|
7350 |
# the platform it is being used on.
|
|
|
7351 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
|
7352 |
fi
|
|
|
7353 |
|
|
|
7354 |
# Commands to make compiler produce verbose output that lists
|
|
|
7355 |
# what "hidden" libraries, object files and flags are used when
|
|
|
7356 |
# linking a shared library.
|
|
|
7357 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
|
|
7358 |
|
|
|
7359 |
else
|
|
|
7360 |
GXX=no
|
|
|
7361 |
with_gnu_ld=no
|
|
|
7362 |
wlarc=
|
|
|
7363 |
fi
|
|
|
7364 |
|
|
|
7365 |
# PORTME: fill in a description of your system's C++ link characteristics
|
|
|
7366 |
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
|
|
7367 |
_LT_TAGVAR(ld_shlibs, $1)=yes
|
|
|
7368 |
case $host_os in
|
|
|
7369 |
aix3*)
|
|
|
7370 |
# FIXME: insert proper C++ library support
|
|
|
7371 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7372 |
;;
|
|
|
7373 |
aix[[4-9]]*)
|
|
|
7374 |
if test "$host_cpu" = ia64; then
|
|
|
7375 |
# On IA64, the linker does run time linking by default, so we don't
|
|
|
7376 |
# have to do anything special.
|
|
|
7377 |
aix_use_runtimelinking=no
|
|
|
7378 |
exp_sym_flag='-Bexport'
|
|
|
7379 |
no_entry_flag=""
|
|
|
7380 |
else
|
|
|
7381 |
aix_use_runtimelinking=no
|
|
|
7382 |
|
|
|
7383 |
# Test if we are trying to use run time linking or normal
|
|
|
7384 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
|
7385 |
# need to do runtime linking.
|
|
|
7386 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
|
|
7387 |
for ld_flag in $LDFLAGS; do
|
|
|
7388 |
case $ld_flag in
|
|
|
7389 |
*-brtl*)
|
|
|
7390 |
aix_use_runtimelinking=yes
|
|
|
7391 |
break
|
|
|
7392 |
;;
|
|
|
7393 |
esac
|
|
|
7394 |
done
|
|
|
7395 |
;;
|
|
|
7396 |
esac
|
|
|
7397 |
|
|
|
7398 |
exp_sym_flag='-bexport'
|
|
|
7399 |
no_entry_flag='-bnoentry'
|
|
|
7400 |
fi
|
|
|
7401 |
|
|
|
7402 |
# When large executables or shared objects are built, AIX ld can
|
|
|
7403 |
# have problems creating the table of contents. If linking a library
|
|
|
7404 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
|
7405 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
|
7406 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
7407 |
|
|
|
7408 |
_LT_TAGVAR(archive_cmds, $1)=''
|
|
|
7409 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
7410 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
|
7411 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
|
7412 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
7413 |
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
|
|
|
7414 |
|
|
|
7415 |
if test "$GXX" = yes; then
|
|
|
7416 |
case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
|
|
7417 |
# We only want to do this on AIX 4.2 and lower, the check
|
|
|
7418 |
# below for broken collect2 doesn't work under 4.3+
|
|
|
7419 |
collect2name=`${CC} -print-prog-name=collect2`
|
|
|
7420 |
if test -f "$collect2name" &&
|
|
|
7421 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
|
|
7422 |
then
|
|
|
7423 |
# We have reworked collect2
|
|
|
7424 |
:
|
|
|
7425 |
else
|
|
|
7426 |
# We have old collect2
|
|
|
7427 |
_LT_TAGVAR(hardcode_direct, $1)=unsupported
|
|
|
7428 |
# It fails to find uninstalled libraries when the uninstalled
|
|
|
7429 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
|
7430 |
# to unsupported forces relinking
|
|
|
7431 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
|
7432 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
7433 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
|
7434 |
fi
|
|
|
7435 |
esac
|
|
|
7436 |
shared_flag='-shared'
|
|
|
7437 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
7438 |
shared_flag="$shared_flag "'${wl}-G'
|
|
|
7439 |
fi
|
|
|
7440 |
else
|
|
|
7441 |
# not using gcc
|
|
|
7442 |
if test "$host_cpu" = ia64; then
|
|
|
7443 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
|
7444 |
# chokes on -Wl,-G. The following line is correct:
|
|
|
7445 |
shared_flag='-G'
|
|
|
7446 |
else
|
|
|
7447 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
7448 |
shared_flag='${wl}-G'
|
|
|
7449 |
else
|
|
|
7450 |
shared_flag='${wl}-bM:SRE'
|
|
|
7451 |
fi
|
|
|
7452 |
fi
|
|
|
7453 |
fi
|
|
|
7454 |
|
|
|
7455 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
|
|
|
7456 |
# It seems that -bexpall does not export symbols beginning with
|
|
|
7457 |
# underscore (_), so it is better to generate a list of symbols to
|
|
|
7458 |
# export.
|
|
|
7459 |
_LT_TAGVAR(always_export_symbols, $1)=yes
|
|
|
7460 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
7461 |
# Warning - without using the other runtime loading flags (-brtl),
|
|
|
7462 |
# -berok will link without error, but may produce a broken library.
|
|
|
7463 |
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|
|
7464 |
# Determine the default libpath from the value encoded in an empty
|
|
|
7465 |
# executable.
|
|
|
7466 |
_LT_SYS_MODULE_PATH_AIX([$1])
|
|
|
7467 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
7468 |
|
|
|
7469 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
|
7470 |
else
|
|
|
7471 |
if test "$host_cpu" = ia64; then
|
|
|
7472 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|
|
7473 |
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|
|
7474 |
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
|
|
7475 |
else
|
|
|
7476 |
# Determine the default libpath from the value encoded in an
|
|
|
7477 |
# empty executable.
|
|
|
7478 |
_LT_SYS_MODULE_PATH_AIX([$1])
|
|
|
7479 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
7480 |
# Warning - without using the other run time loading flags,
|
|
|
7481 |
# -berok will link without error, but may produce a broken library.
|
|
|
7482 |
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|
|
7483 |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|
|
7484 |
if test "$with_gnu_ld" = yes; then
|
|
|
7485 |
# We only use this code for GNU lds that support --whole-archive.
|
|
|
7486 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
|
|
7487 |
else
|
|
|
7488 |
# Exported symbols can be pulled into shared objects from archives
|
|
|
7489 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
|
|
7490 |
fi
|
|
|
7491 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
|
7492 |
# This is similar to how AIX traditionally builds its shared
|
|
|
7493 |
# libraries.
|
|
|
7494 |
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
|
7495 |
fi
|
|
|
7496 |
fi
|
|
|
7497 |
;;
|
|
|
7498 |
|
|
|
7499 |
beos*)
|
|
|
7500 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
|
7501 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
7502 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
|
7503 |
# support --undefined. This deserves some investigation. FIXME
|
|
|
7504 |
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7505 |
else
|
|
|
7506 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7507 |
fi
|
|
|
7508 |
;;
|
|
|
7509 |
|
|
|
7510 |
chorus*)
|
|
|
7511 |
case $cc_basename in
|
|
|
7512 |
*)
|
|
|
7513 |
# FIXME: insert proper C++ library support
|
|
|
7514 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7515 |
;;
|
|
|
7516 |
esac
|
|
|
7517 |
;;
|
|
|
7518 |
|
|
|
7519 |
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
7520 |
case $GXX,$cc_basename in
|
|
|
7521 |
,cl* | no,cl*)
|
|
|
7522 |
# Native MSVC
|
|
|
7523 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
|
7524 |
# no search path for DLLs.
|
|
|
7525 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
|
7526 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
7527 |
_LT_TAGVAR(always_export_symbols, $1)=yes
|
|
|
7528 |
_LT_TAGVAR(file_list_spec, $1)='@'
|
|
|
7529 |
# Tell ltmain to make .lib files, not .a files.
|
|
|
7530 |
libext=lib
|
|
|
7531 |
# Tell ltmain to make .dll files, not .so files.
|
|
|
7532 |
shrext_cmds=".dll"
|
|
|
7533 |
# FIXME: Setting linknames here is a bad hack.
|
|
|
7534 |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
|
7535 |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
7536 |
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
|
7537 |
else
|
|
|
7538 |
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
|
7539 |
fi~
|
|
|
7540 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
|
7541 |
linknames='
|
|
|
7542 |
# The linker will not automatically build a static lib if we build a DLL.
|
|
|
7543 |
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
|
7544 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
|
7545 |
# Don't use ranlib
|
|
|
7546 |
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
|
7547 |
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
|
|
7548 |
lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
|
7549 |
case $lt_outputfile in
|
|
|
7550 |
*.exe|*.EXE) ;;
|
|
|
7551 |
*)
|
|
|
7552 |
lt_outputfile="$lt_outputfile.exe"
|
|
|
7553 |
lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
|
7554 |
;;
|
|
|
7555 |
esac~
|
|
|
7556 |
func_to_tool_file "$lt_outputfile"~
|
|
|
7557 |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
|
7558 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
|
7559 |
$RM "$lt_outputfile.manifest";
|
|
|
7560 |
fi'
|
|
|
7561 |
;;
|
|
|
7562 |
*)
|
|
|
7563 |
# g++
|
|
|
7564 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|
|
7565 |
# as there is no search path for DLLs.
|
|
|
7566 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
|
7567 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
|
|
7568 |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
|
7569 |
_LT_TAGVAR(always_export_symbols, $1)=no
|
|
|
7570 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
|
7571 |
|
|
|
7572 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
|
7573 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
7574 |
# If the export-symbols file already is a .def file (1st line
|
|
|
7575 |
# is EXPORTS), use it as is; otherwise, prepend...
|
|
|
7576 |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
7577 |
cp $export_symbols $output_objdir/$soname.def;
|
|
|
7578 |
else
|
|
|
7579 |
echo EXPORTS > $output_objdir/$soname.def;
|
|
|
7580 |
cat $export_symbols >> $output_objdir/$soname.def;
|
|
|
7581 |
fi~
|
|
|
7582 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
7583 |
else
|
|
|
7584 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7585 |
fi
|
|
|
7586 |
;;
|
|
|
7587 |
esac
|
|
|
7588 |
;;
|
|
|
7589 |
darwin* | rhapsody*)
|
|
|
7590 |
_LT_DARWIN_LINKER_FEATURES($1)
|
|
|
7591 |
;;
|
|
|
7592 |
|
|
|
7593 |
dgux*)
|
|
|
7594 |
case $cc_basename in
|
|
|
7595 |
ec++*)
|
|
|
7596 |
# FIXME: insert proper C++ library support
|
|
|
7597 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7598 |
;;
|
|
|
7599 |
ghcx*)
|
|
|
7600 |
# Green Hills C++ Compiler
|
|
|
7601 |
# FIXME: insert proper C++ library support
|
|
|
7602 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7603 |
;;
|
|
|
7604 |
*)
|
|
|
7605 |
# FIXME: insert proper C++ library support
|
|
|
7606 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7607 |
;;
|
|
|
7608 |
esac
|
|
|
7609 |
;;
|
|
|
7610 |
|
|
|
7611 |
freebsd2.*)
|
|
|
7612 |
# C++ shared libraries reported to be fairly broken before
|
|
|
7613 |
# switch to ELF
|
|
|
7614 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7615 |
;;
|
|
|
7616 |
|
|
|
7617 |
freebsd-elf*)
|
|
|
7618 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
7619 |
;;
|
|
|
7620 |
|
|
|
7621 |
freebsd* | dragonfly*)
|
|
|
7622 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
|
|
7623 |
# conventions
|
|
|
7624 |
_LT_TAGVAR(ld_shlibs, $1)=yes
|
|
|
7625 |
;;
|
|
|
7626 |
|
|
|
7627 |
gnu*)
|
|
|
7628 |
;;
|
|
|
7629 |
|
|
|
7630 |
haiku*)
|
|
|
7631 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7632 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
7633 |
;;
|
|
|
7634 |
|
|
|
7635 |
hpux9*)
|
|
|
7636 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
|
7637 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
7638 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
7639 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
7640 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|
|
7641 |
# but as the default
|
|
|
7642 |
# location of the library.
|
|
|
7643 |
|
|
|
7644 |
case $cc_basename in
|
|
|
7645 |
CC*)
|
|
|
7646 |
# FIXME: insert proper C++ library support
|
|
|
7647 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7648 |
;;
|
|
|
7649 |
aCC*)
|
|
|
7650 |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
|
7651 |
# Commands to make compiler produce verbose output that lists
|
|
|
7652 |
# what "hidden" libraries, object files and flags are used when
|
|
|
7653 |
# linking a shared library.
|
|
|
7654 |
#
|
|
|
7655 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
7656 |
# explicitly linking system object files so we need to strip them
|
|
|
7657 |
# from the output so that they don't get included in the library
|
|
|
7658 |
# dependencies.
|
|
|
7659 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
|
|
7660 |
;;
|
|
|
7661 |
*)
|
|
|
7662 |
if test "$GXX" = yes; then
|
|
|
7663 |
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
|
7664 |
else
|
|
|
7665 |
# FIXME: insert proper C++ library support
|
|
|
7666 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7667 |
fi
|
|
|
7668 |
;;
|
|
|
7669 |
esac
|
|
|
7670 |
;;
|
|
|
7671 |
|
|
|
7672 |
hpux10*|hpux11*)
|
|
|
7673 |
if test $with_gnu_ld = no; then
|
|
|
7674 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
|
7675 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
7676 |
|
|
|
7677 |
case $host_cpu in
|
|
|
7678 |
hppa*64*|ia64*)
|
|
|
7679 |
;;
|
|
|
7680 |
*)
|
|
|
7681 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
7682 |
;;
|
|
|
7683 |
esac
|
|
|
7684 |
fi
|
|
|
7685 |
case $host_cpu in
|
|
|
7686 |
hppa*64*|ia64*)
|
|
|
7687 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
7688 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
7689 |
;;
|
|
|
7690 |
*)
|
|
|
7691 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
7692 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
|
7693 |
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|
|
7694 |
# but as the default
|
|
|
7695 |
# location of the library.
|
|
|
7696 |
;;
|
|
|
7697 |
esac
|
|
|
7698 |
|
|
|
7699 |
case $cc_basename in
|
|
|
7700 |
CC*)
|
|
|
7701 |
# FIXME: insert proper C++ library support
|
|
|
7702 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7703 |
;;
|
|
|
7704 |
aCC*)
|
|
|
7705 |
case $host_cpu in
|
|
|
7706 |
hppa*64*)
|
|
|
7707 |
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
7708 |
;;
|
|
|
7709 |
ia64*)
|
|
|
7710 |
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
7711 |
;;
|
|
|
7712 |
*)
|
|
|
7713 |
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
7714 |
;;
|
|
|
7715 |
esac
|
|
|
7716 |
# Commands to make compiler produce verbose output that lists
|
|
|
7717 |
# what "hidden" libraries, object files and flags are used when
|
|
|
7718 |
# linking a shared library.
|
|
|
7719 |
#
|
|
|
7720 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
7721 |
# explicitly linking system object files so we need to strip them
|
|
|
7722 |
# from the output so that they don't get included in the library
|
|
|
7723 |
# dependencies.
|
|
|
7724 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
|
|
7725 |
;;
|
|
|
7726 |
*)
|
|
|
7727 |
if test "$GXX" = yes; then
|
|
|
7728 |
if test $with_gnu_ld = no; then
|
|
|
7729 |
case $host_cpu in
|
|
|
7730 |
hppa*64*)
|
|
|
7731 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
7732 |
;;
|
|
|
7733 |
ia64*)
|
|
|
7734 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
7735 |
;;
|
|
|
7736 |
*)
|
|
|
7737 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
7738 |
;;
|
|
|
7739 |
esac
|
|
|
7740 |
fi
|
|
|
7741 |
else
|
|
|
7742 |
# FIXME: insert proper C++ library support
|
|
|
7743 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7744 |
fi
|
|
|
7745 |
;;
|
|
|
7746 |
esac
|
|
|
7747 |
;;
|
|
|
7748 |
|
|
|
7749 |
interix[[3-9]]*)
|
|
|
7750 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
7751 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
7752 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
7753 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
7754 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
|
7755 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
|
7756 |
# default) and relocated if they conflict, which is a slow very memory
|
|
|
7757 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
|
7758 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
|
7759 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
|
7760 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
7761 |
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
7762 |
;;
|
|
|
7763 |
irix5* | irix6*)
|
|
|
7764 |
case $cc_basename in
|
|
|
7765 |
CC*)
|
|
|
7766 |
# SGI C++
|
|
|
7767 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
7768 |
|
|
|
7769 |
# Archives containing C++ object files must be created using
|
|
|
7770 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
|
|
7771 |
# necessary to make sure instantiated templates are included
|
|
|
7772 |
# in the archive.
|
|
|
7773 |
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
|
|
7774 |
;;
|
|
|
7775 |
*)
|
|
|
7776 |
if test "$GXX" = yes; then
|
|
|
7777 |
if test "$with_gnu_ld" = no; then
|
|
|
7778 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
7779 |
else
|
|
|
7780 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
|
7781 |
fi
|
|
|
7782 |
fi
|
|
|
7783 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
7784 |
;;
|
|
|
7785 |
esac
|
|
|
7786 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
7787 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
7788 |
_LT_TAGVAR(inherit_rpath, $1)=yes
|
|
|
7789 |
;;
|
|
|
7790 |
|
|
|
7791 |
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
|
7792 |
case $cc_basename in
|
|
|
7793 |
KCC*)
|
|
|
7794 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
|
7795 |
|
|
|
7796 |
# KCC will only create a shared library if the output file
|
|
|
7797 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|
|
7798 |
# to its proper name (with version) after linking.
|
|
|
7799 |
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
|
|
7800 |
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
|
|
|
7801 |
# Commands to make compiler produce verbose output that lists
|
|
|
7802 |
# what "hidden" libraries, object files and flags are used when
|
|
|
7803 |
# linking a shared library.
|
|
|
7804 |
#
|
|
|
7805 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
7806 |
# explicitly linking system object files so we need to strip them
|
|
|
7807 |
# from the output so that they don't get included in the library
|
|
|
7808 |
# dependencies.
|
|
|
7809 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
|
|
7810 |
|
|
|
7811 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
7812 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
|
7813 |
|
|
|
7814 |
# Archives containing C++ object files must be created using
|
|
|
7815 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
|
|
7816 |
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
|
|
7817 |
;;
|
|
|
7818 |
icpc* | ecpc* )
|
|
|
7819 |
# Intel C++
|
|
|
7820 |
with_gnu_ld=yes
|
|
|
7821 |
# version 8.0 and above of icpc choke on multiply defined symbols
|
|
|
7822 |
# if we add $predep_objects and $postdep_objects, however 7.1 and
|
|
|
7823 |
# earlier do not add the objects themselves.
|
|
|
7824 |
case `$CC -V 2>&1` in
|
|
|
7825 |
*"Version 7."*)
|
|
|
7826 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7827 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
7828 |
;;
|
|
|
7829 |
*) # Version 8.0 or newer
|
|
|
7830 |
tmp_idyn=
|
|
|
7831 |
case $host_cpu in
|
|
|
7832 |
ia64*) tmp_idyn=' -i_dynamic';;
|
|
|
7833 |
esac
|
|
|
7834 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7835 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
7836 |
;;
|
|
|
7837 |
esac
|
|
|
7838 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
7839 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
7840 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
|
7841 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
|
|
7842 |
;;
|
|
|
7843 |
pgCC* | pgcpp*)
|
|
|
7844 |
# Portland Group C++ compiler
|
|
|
7845 |
case `$CC -V` in
|
|
|
7846 |
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
|
|
|
7847 |
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
|
|
|
7848 |
rm -rf $tpldir~
|
|
|
7849 |
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
|
|
|
7850 |
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
|
|
|
7851 |
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
|
|
|
7852 |
rm -rf $tpldir~
|
|
|
7853 |
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
|
|
|
7854 |
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
|
|
|
7855 |
$RANLIB $oldlib'
|
|
|
7856 |
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
|
|
|
7857 |
rm -rf $tpldir~
|
|
|
7858 |
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
|
|
7859 |
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
|
|
7860 |
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
|
|
|
7861 |
rm -rf $tpldir~
|
|
|
7862 |
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
|
|
7863 |
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
|
|
7864 |
;;
|
|
|
7865 |
*) # Version 6 and above use weak symbols
|
|
|
7866 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
|
|
7867 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
|
|
7868 |
;;
|
|
|
7869 |
esac
|
|
|
7870 |
|
|
|
7871 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
|
|
7872 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
|
7873 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
7874 |
;;
|
|
|
7875 |
cxx*)
|
|
|
7876 |
# Compaq C++
|
|
|
7877 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7878 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
|
|
|
7879 |
|
|
|
7880 |
runpath_var=LD_RUN_PATH
|
|
|
7881 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|
|
7882 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
7883 |
|
|
|
7884 |
# Commands to make compiler produce verbose output that lists
|
|
|
7885 |
# what "hidden" libraries, object files and flags are used when
|
|
|
7886 |
# linking a shared library.
|
|
|
7887 |
#
|
|
|
7888 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
7889 |
# explicitly linking system object files so we need to strip them
|
|
|
7890 |
# from the output so that they don't get included in the library
|
|
|
7891 |
# dependencies.
|
|
|
7892 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
|
|
|
7893 |
;;
|
|
|
7894 |
xl* | mpixl* | bgxl*)
|
|
|
7895 |
# IBM XL 8.0 on PPC, with GNU ld
|
|
|
7896 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
7897 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
|
7898 |
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7899 |
if test "x$supports_anon_versioning" = xyes; then
|
|
|
7900 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
|
7901 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
|
7902 |
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
|
7903 |
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
|
7904 |
fi
|
|
|
7905 |
;;
|
|
|
7906 |
*)
|
|
|
7907 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
7908 |
*Sun\ C*)
|
|
|
7909 |
# Sun C++ 5.9
|
|
|
7910 |
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
|
|
7911 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
7912 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
|
|
7913 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
7914 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
7915 |
_LT_TAGVAR(compiler_needs_object, $1)=yes
|
|
|
7916 |
|
|
|
7917 |
# Not sure whether something based on
|
|
|
7918 |
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
|
|
7919 |
# would be better.
|
|
|
7920 |
output_verbose_link_cmd='func_echo_all'
|
|
|
7921 |
|
|
|
7922 |
# Archives containing C++ object files must be created using
|
|
|
7923 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
|
7924 |
# necessary to make sure instantiated templates are included
|
|
|
7925 |
# in the archive.
|
|
|
7926 |
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
|
|
7927 |
;;
|
|
|
7928 |
esac
|
|
|
7929 |
;;
|
|
|
7930 |
esac
|
|
|
7931 |
;;
|
|
|
7932 |
|
|
|
7933 |
lynxos*)
|
|
|
7934 |
# FIXME: insert proper C++ library support
|
|
|
7935 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7936 |
;;
|
|
|
7937 |
|
|
|
7938 |
m88k*)
|
|
|
7939 |
# FIXME: insert proper C++ library support
|
|
|
7940 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7941 |
;;
|
|
|
7942 |
|
|
|
7943 |
mvs*)
|
|
|
7944 |
case $cc_basename in
|
|
|
7945 |
cxx*)
|
|
|
7946 |
# FIXME: insert proper C++ library support
|
|
|
7947 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7948 |
;;
|
|
|
7949 |
*)
|
|
|
7950 |
# FIXME: insert proper C++ library support
|
|
|
7951 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7952 |
;;
|
|
|
7953 |
esac
|
|
|
7954 |
;;
|
|
|
7955 |
|
|
|
7956 |
netbsd*)
|
|
|
7957 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
|
7958 |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
|
|
7959 |
wlarc=
|
|
|
7960 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
7961 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
7962 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
7963 |
fi
|
|
|
7964 |
# Workaround some broken pre-1.5 toolchains
|
|
|
7965 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
|
|
7966 |
;;
|
|
|
7967 |
|
|
|
7968 |
*nto* | *qnx*)
|
|
|
7969 |
_LT_TAGVAR(ld_shlibs, $1)=yes
|
|
|
7970 |
;;
|
|
|
7971 |
|
|
|
7972 |
openbsd2*)
|
|
|
7973 |
# C++ shared libraries are fairly broken
|
|
|
7974 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7975 |
;;
|
|
|
7976 |
|
|
|
7977 |
openbsd*)
|
|
|
7978 |
if test -f /usr/libexec/ld.so; then
|
|
|
7979 |
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
|
7980 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
7981 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
|
7982 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
|
7983 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
7984 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
7985 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
|
|
7986 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
7987 |
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
7988 |
fi
|
|
|
7989 |
output_verbose_link_cmd=func_echo_all
|
|
|
7990 |
else
|
|
|
7991 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
7992 |
fi
|
|
|
7993 |
;;
|
|
|
7994 |
|
|
|
7995 |
osf3* | osf4* | osf5*)
|
|
|
7996 |
case $cc_basename in
|
|
|
7997 |
KCC*)
|
|
|
7998 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
|
7999 |
|
|
|
8000 |
# KCC will only create a shared library if the output file
|
|
|
8001 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|
|
8002 |
# to its proper name (with version) after linking.
|
|
|
8003 |
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
|
|
8004 |
|
|
|
8005 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
|
8006 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
8007 |
|
|
|
8008 |
# Archives containing C++ object files must be created using
|
|
|
8009 |
# the KAI C++ compiler.
|
|
|
8010 |
case $host in
|
|
|
8011 |
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
|
|
|
8012 |
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
|
|
|
8013 |
esac
|
|
|
8014 |
;;
|
|
|
8015 |
RCC*)
|
|
|
8016 |
# Rational C++ 2.4.1
|
|
|
8017 |
# FIXME: insert proper C++ library support
|
|
|
8018 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8019 |
;;
|
|
|
8020 |
cxx*)
|
|
|
8021 |
case $host in
|
|
|
8022 |
osf3*)
|
|
|
8023 |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
8024 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
8025 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
8026 |
;;
|
|
|
8027 |
*)
|
|
|
8028 |
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|
|
8029 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
8030 |
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
|
|
8031 |
echo "-hidden">> $lib.exp~
|
|
|
8032 |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
|
|
|
8033 |
$RM $lib.exp'
|
|
|
8034 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|
|
8035 |
;;
|
|
|
8036 |
esac
|
|
|
8037 |
|
|
|
8038 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
8039 |
|
|
|
8040 |
# Commands to make compiler produce verbose output that lists
|
|
|
8041 |
# what "hidden" libraries, object files and flags are used when
|
|
|
8042 |
# linking a shared library.
|
|
|
8043 |
#
|
|
|
8044 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
8045 |
# explicitly linking system object files so we need to strip them
|
|
|
8046 |
# from the output so that they don't get included in the library
|
|
|
8047 |
# dependencies.
|
|
|
8048 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
|
|
|
8049 |
;;
|
|
|
8050 |
*)
|
|
|
8051 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
|
8052 |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
8053 |
case $host in
|
|
|
8054 |
osf3*)
|
|
|
8055 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
8056 |
;;
|
|
|
8057 |
*)
|
|
|
8058 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
8059 |
;;
|
|
|
8060 |
esac
|
|
|
8061 |
|
|
|
8062 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
|
8063 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
|
8064 |
|
|
|
8065 |
# Commands to make compiler produce verbose output that lists
|
|
|
8066 |
# what "hidden" libraries, object files and flags are used when
|
|
|
8067 |
# linking a shared library.
|
|
|
8068 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
|
|
8069 |
|
|
|
8070 |
else
|
|
|
8071 |
# FIXME: insert proper C++ library support
|
|
|
8072 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8073 |
fi
|
|
|
8074 |
;;
|
|
|
8075 |
esac
|
|
|
8076 |
;;
|
|
|
8077 |
|
|
|
8078 |
psos*)
|
|
|
8079 |
# FIXME: insert proper C++ library support
|
|
|
8080 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8081 |
;;
|
|
|
8082 |
|
|
|
8083 |
sunos4*)
|
|
|
8084 |
case $cc_basename in
|
|
|
8085 |
CC*)
|
|
|
8086 |
# Sun C++ 4.x
|
|
|
8087 |
# FIXME: insert proper C++ library support
|
|
|
8088 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8089 |
;;
|
|
|
8090 |
lcc*)
|
|
|
8091 |
# Lucid
|
|
|
8092 |
# FIXME: insert proper C++ library support
|
|
|
8093 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8094 |
;;
|
|
|
8095 |
*)
|
|
|
8096 |
# FIXME: insert proper C++ library support
|
|
|
8097 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8098 |
;;
|
|
|
8099 |
esac
|
|
|
8100 |
;;
|
|
|
8101 |
|
|
|
8102 |
solaris*)
|
|
|
8103 |
case $cc_basename in
|
|
|
8104 |
CC* | sunCC*)
|
|
|
8105 |
# Sun C++ 4.2, 5.x and Centerline C++
|
|
|
8106 |
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
|
|
|
8107 |
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
|
|
8108 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
8109 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
|
8110 |
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
|
8111 |
|
|
|
8112 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
|
8113 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
8114 |
case $host_os in
|
|
|
8115 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
|
8116 |
*)
|
|
|
8117 |
# The compiler driver will combine and reorder linker options,
|
|
|
8118 |
# but understands `-z linker_flag'.
|
|
|
8119 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
|
8120 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
|
|
8121 |
;;
|
|
|
8122 |
esac
|
|
|
8123 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
8124 |
|
|
|
8125 |
output_verbose_link_cmd='func_echo_all'
|
|
|
8126 |
|
|
|
8127 |
# Archives containing C++ object files must be created using
|
|
|
8128 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
|
8129 |
# necessary to make sure instantiated templates are included
|
|
|
8130 |
# in the archive.
|
|
|
8131 |
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
|
|
8132 |
;;
|
|
|
8133 |
gcx*)
|
|
|
8134 |
# Green Hills C++ Compiler
|
|
|
8135 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
|
8136 |
|
|
|
8137 |
# The C++ compiler must be used to create the archive.
|
|
|
8138 |
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
|
|
8139 |
;;
|
|
|
8140 |
*)
|
|
|
8141 |
# GNU C++ compiler with Solaris linker
|
|
|
8142 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
|
8143 |
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
|
|
8144 |
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
|
|
8145 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
|
8146 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
|
8147 |
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
|
8148 |
|
|
|
8149 |
# Commands to make compiler produce verbose output that lists
|
|
|
8150 |
# what "hidden" libraries, object files and flags are used when
|
|
|
8151 |
# linking a shared library.
|
|
|
8152 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
|
|
8153 |
else
|
|
|
8154 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this
|
|
|
8155 |
# platform.
|
|
|
8156 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
|
8157 |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
|
8158 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
|
8159 |
|
|
|
8160 |
# Commands to make compiler produce verbose output that lists
|
|
|
8161 |
# what "hidden" libraries, object files and flags are used when
|
|
|
8162 |
# linking a shared library.
|
|
|
8163 |
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
|
|
8164 |
fi
|
|
|
8165 |
|
|
|
8166 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
|
|
8167 |
case $host_os in
|
|
|
8168 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
|
8169 |
*)
|
|
|
8170 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
|
8171 |
;;
|
|
|
8172 |
esac
|
|
|
8173 |
fi
|
|
|
8174 |
;;
|
|
|
8175 |
esac
|
|
|
8176 |
;;
|
|
|
8177 |
|
|
|
8178 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
|
|
8179 |
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
|
8180 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
8181 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
8182 |
runpath_var='LD_RUN_PATH'
|
|
|
8183 |
|
|
|
8184 |
case $cc_basename in
|
|
|
8185 |
CC*)
|
|
|
8186 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8187 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8188 |
;;
|
|
|
8189 |
*)
|
|
|
8190 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8191 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8192 |
;;
|
|
|
8193 |
esac
|
|
|
8194 |
;;
|
|
|
8195 |
|
|
|
8196 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
|
8197 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
|
8198 |
# link with -lc, and that would cause any symbols used from libc to
|
|
|
8199 |
# always be unresolved, which means just about no library would
|
|
|
8200 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
|
8201 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
|
8202 |
# as -z defs.
|
|
|
8203 |
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
|
8204 |
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
|
|
8205 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
8206 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
|
8207 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
|
|
|
8208 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
|
8209 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
8210 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|
|
8211 |
runpath_var='LD_RUN_PATH'
|
|
|
8212 |
|
|
|
8213 |
case $cc_basename in
|
|
|
8214 |
CC*)
|
|
|
8215 |
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8216 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8217 |
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
|
|
|
8218 |
'"$_LT_TAGVAR(old_archive_cmds, $1)"
|
|
|
8219 |
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
|
|
|
8220 |
'"$_LT_TAGVAR(reload_cmds, $1)"
|
|
|
8221 |
;;
|
|
|
8222 |
*)
|
|
|
8223 |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8224 |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8225 |
;;
|
|
|
8226 |
esac
|
|
|
8227 |
;;
|
|
|
8228 |
|
|
|
8229 |
tandem*)
|
|
|
8230 |
case $cc_basename in
|
|
|
8231 |
NCC*)
|
|
|
8232 |
# NonStop-UX NCC 3.20
|
|
|
8233 |
# FIXME: insert proper C++ library support
|
|
|
8234 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8235 |
;;
|
|
|
8236 |
*)
|
|
|
8237 |
# FIXME: insert proper C++ library support
|
|
|
8238 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8239 |
;;
|
|
|
8240 |
esac
|
|
|
8241 |
;;
|
|
|
8242 |
|
|
|
8243 |
vxworks*)
|
|
|
8244 |
# FIXME: insert proper C++ library support
|
|
|
8245 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8246 |
;;
|
|
|
8247 |
|
|
|
8248 |
*)
|
|
|
8249 |
# FIXME: insert proper C++ library support
|
|
|
8250 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
|
8251 |
;;
|
|
|
8252 |
esac
|
|
|
8253 |
|
|
|
8254 |
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
|
|
8255 |
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|
|
8256 |
|
|
|
8257 |
_LT_TAGVAR(GCC, $1)="$GXX"
|
|
|
8258 |
_LT_TAGVAR(LD, $1)="$LD"
|
|
|
8259 |
|
|
|
8260 |
## CAVEAT EMPTOR:
|
|
|
8261 |
## There is no encapsulation within the following macros, do not change
|
|
|
8262 |
## the running order or otherwise move them around unless you know exactly
|
|
|
8263 |
## what you are doing...
|
|
|
8264 |
_LT_SYS_HIDDEN_LIBDEPS($1)
|
|
|
8265 |
_LT_COMPILER_PIC($1)
|
|
|
8266 |
_LT_COMPILER_C_O($1)
|
|
|
8267 |
_LT_COMPILER_FILE_LOCKS($1)
|
|
|
8268 |
_LT_LINKER_SHLIBS($1)
|
|
|
8269 |
_LT_SYS_DYNAMIC_LINKER($1)
|
|
|
8270 |
_LT_LINKER_HARDCODE_LIBPATH($1)
|
|
|
8271 |
|
|
|
8272 |
_LT_CONFIG($1)
|
|
|
8273 |
fi # test -n "$compiler"
|
|
|
8274 |
|
|
|
8275 |
CC=$lt_save_CC
|
|
|
8276 |
CFLAGS=$lt_save_CFLAGS
|
|
|
8277 |
LDCXX=$LD
|
|
|
8278 |
LD=$lt_save_LD
|
|
|
8279 |
GCC=$lt_save_GCC
|
|
|
8280 |
with_gnu_ld=$lt_save_with_gnu_ld
|
|
|
8281 |
lt_cv_path_LDCXX=$lt_cv_path_LD
|
|
|
8282 |
lt_cv_path_LD=$lt_save_path_LD
|
|
|
8283 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
|
|
8284 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
|
|
8285 |
fi # test "$_lt_caught_CXX_error" != yes
|
|
|
8286 |
|
|
|
8287 |
AC_LANG_POP
|
|
|
8288 |
])# _LT_LANG_CXX_CONFIG
|
|
|
8289 |
|
|
|
8290 |
|
|
|
8291 |
# _LT_FUNC_STRIPNAME_CNF
|
|
|
8292 |
# ----------------------
|
|
|
8293 |
# func_stripname_cnf prefix suffix name
|
|
|
8294 |
# strip PREFIX and SUFFIX off of NAME.
|
|
|
8295 |
# PREFIX and SUFFIX must not contain globbing or regex special
|
|
|
8296 |
# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
|
8297 |
# dot (in which case that matches only a dot).
|
|
|
8298 |
#
|
|
|
8299 |
# This function is identical to the (non-XSI) version of func_stripname,
|
|
|
8300 |
# except this one can be used by m4 code that may be executed by configure,
|
|
|
8301 |
# rather than the libtool script.
|
|
|
8302 |
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
|
|
|
8303 |
AC_REQUIRE([_LT_DECL_SED])
|
|
|
8304 |
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
|
|
|
8305 |
func_stripname_cnf ()
|
|
|
8306 |
{
|
|
|
8307 |
case ${2} in
|
|
|
8308 |
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
|
8309 |
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
|
8310 |
esac
|
|
|
8311 |
} # func_stripname_cnf
|
|
|
8312 |
])# _LT_FUNC_STRIPNAME_CNF
|
|
|
8313 |
|
|
|
8314 |
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
|
|
|
8315 |
# ---------------------------------
|
|
|
8316 |
# Figure out "hidden" library dependencies from verbose
|
|
|
8317 |
# compiler output when linking a shared library.
|
|
|
8318 |
# Parse the compiler output and extract the necessary
|
|
|
8319 |
# objects, libraries and library flags.
|
|
|
8320 |
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
|
|
|
8321 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
8322 |
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
|
|
|
8323 |
# Dependencies to place before and after the object being linked:
|
|
|
8324 |
_LT_TAGVAR(predep_objects, $1)=
|
|
|
8325 |
_LT_TAGVAR(postdep_objects, $1)=
|
|
|
8326 |
_LT_TAGVAR(predeps, $1)=
|
|
|
8327 |
_LT_TAGVAR(postdeps, $1)=
|
|
|
8328 |
_LT_TAGVAR(compiler_lib_search_path, $1)=
|
|
|
8329 |
|
|
|
8330 |
dnl we can't use the lt_simple_compile_test_code here,
|
|
|
8331 |
dnl because it contains code intended for an executable,
|
|
|
8332 |
dnl not a library. It's possible we should let each
|
|
|
8333 |
dnl tag define a new lt_????_link_test_code variable,
|
|
|
8334 |
dnl but it's only used here...
|
|
|
8335 |
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
|
|
|
8336 |
int a;
|
|
|
8337 |
void foo (void) { a = 0; }
|
|
|
8338 |
_LT_EOF
|
|
|
8339 |
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
|
|
|
8340 |
class Foo
|
|
|
8341 |
{
|
|
|
8342 |
public:
|
|
|
8343 |
Foo (void) { a = 0; }
|
|
|
8344 |
private:
|
|
|
8345 |
int a;
|
|
|
8346 |
};
|
|
|
8347 |
_LT_EOF
|
|
|
8348 |
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
|
|
|
8349 |
subroutine foo
|
|
|
8350 |
implicit none
|
|
|
8351 |
integer*4 a
|
|
|
8352 |
a=0
|
|
|
8353 |
return
|
|
|
8354 |
end
|
|
|
8355 |
_LT_EOF
|
|
|
8356 |
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
|
|
|
8357 |
subroutine foo
|
|
|
8358 |
implicit none
|
|
|
8359 |
integer a
|
|
|
8360 |
a=0
|
|
|
8361 |
return
|
|
|
8362 |
end
|
|
|
8363 |
_LT_EOF
|
|
|
8364 |
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
|
|
|
8365 |
public class foo {
|
|
|
8366 |
private int a;
|
|
|
8367 |
public void bar (void) {
|
|
|
8368 |
a = 0;
|
|
|
8369 |
}
|
|
|
8370 |
};
|
|
|
8371 |
_LT_EOF
|
|
|
8372 |
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
|
|
|
8373 |
package foo
|
|
|
8374 |
func foo() {
|
|
|
8375 |
}
|
|
|
8376 |
_LT_EOF
|
|
|
8377 |
])
|
|
|
8378 |
|
|
|
8379 |
_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
|
8380 |
case "$CC $CFLAGS " in #(
|
|
|
8381 |
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
|
8382 |
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
|
8383 |
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
|
|
|
8384 |
esac
|
|
|
8385 |
|
|
|
8386 |
dnl Parse the compiler output and extract the necessary
|
|
|
8387 |
dnl objects, libraries and library flags.
|
|
|
8388 |
if AC_TRY_EVAL(ac_compile); then
|
|
|
8389 |
# Parse the compiler output and extract the necessary
|
|
|
8390 |
# objects, libraries and library flags.
|
|
|
8391 |
|
|
|
8392 |
# Sentinel used to keep track of whether or not we are before
|
|
|
8393 |
# the conftest object file.
|
|
|
8394 |
pre_test_object_deps_done=no
|
|
|
8395 |
|
|
|
8396 |
for p in `eval "$output_verbose_link_cmd"`; do
|
|
|
8397 |
case ${prev}${p} in
|
|
|
8398 |
|
|
|
8399 |
-L* | -R* | -l*)
|
|
|
8400 |
# Some compilers place space between "-{L,R}" and the path.
|
|
|
8401 |
# Remove the space.
|
|
|
8402 |
if test $p = "-L" ||
|
|
|
8403 |
test $p = "-R"; then
|
|
|
8404 |
prev=$p
|
|
|
8405 |
continue
|
|
|
8406 |
fi
|
|
|
8407 |
|
|
|
8408 |
# Expand the sysroot to ease extracting the directories later.
|
|
|
8409 |
if test -z "$prev"; then
|
|
|
8410 |
case $p in
|
|
|
8411 |
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
|
|
|
8412 |
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
|
|
|
8413 |
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
|
|
|
8414 |
esac
|
|
|
8415 |
fi
|
|
|
8416 |
case $p in
|
|
|
8417 |
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
|
|
|
8418 |
esac
|
|
|
8419 |
if test "$pre_test_object_deps_done" = no; then
|
|
|
8420 |
case ${prev} in
|
|
|
8421 |
-L | -R)
|
|
|
8422 |
# Internal compiler library paths should come after those
|
|
|
8423 |
# provided the user. The postdeps already come after the
|
|
|
8424 |
# user supplied libs so there is no need to process them.
|
|
|
8425 |
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
|
|
|
8426 |
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
|
|
8427 |
else
|
|
|
8428 |
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
|
|
8429 |
fi
|
|
|
8430 |
;;
|
|
|
8431 |
# The "-l" case would never come before the object being
|
|
|
8432 |
# linked, so don't bother handling this case.
|
|
|
8433 |
esac
|
|
|
8434 |
else
|
|
|
8435 |
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
|
|
|
8436 |
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
|
|
|
8437 |
else
|
|
|
8438 |
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
|
|
|
8439 |
fi
|
|
|
8440 |
fi
|
|
|
8441 |
prev=
|
|
|
8442 |
;;
|
|
|
8443 |
|
|
|
8444 |
*.lto.$objext) ;; # Ignore GCC LTO objects
|
|
|
8445 |
*.$objext)
|
|
|
8446 |
# This assumes that the test object file only shows up
|
|
|
8447 |
# once in the compiler output.
|
|
|
8448 |
if test "$p" = "conftest.$objext"; then
|
|
|
8449 |
pre_test_object_deps_done=yes
|
|
|
8450 |
continue
|
|
|
8451 |
fi
|
|
|
8452 |
|
|
|
8453 |
if test "$pre_test_object_deps_done" = no; then
|
|
|
8454 |
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
|
|
|
8455 |
_LT_TAGVAR(predep_objects, $1)="$p"
|
|
|
8456 |
else
|
|
|
8457 |
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
|
|
|
8458 |
fi
|
|
|
8459 |
else
|
|
|
8460 |
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
|
|
|
8461 |
_LT_TAGVAR(postdep_objects, $1)="$p"
|
|
|
8462 |
else
|
|
|
8463 |
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
|
|
|
8464 |
fi
|
|
|
8465 |
fi
|
|
|
8466 |
;;
|
|
|
8467 |
|
|
|
8468 |
*) ;; # Ignore the rest.
|
|
|
8469 |
|
|
|
8470 |
esac
|
|
|
8471 |
done
|
|
|
8472 |
|
|
|
8473 |
# Clean up.
|
|
|
8474 |
rm -f a.out a.exe
|
|
|
8475 |
else
|
|
|
8476 |
echo "libtool.m4: error: problem compiling $1 test program"
|
|
|
8477 |
fi
|
|
|
8478 |
|
|
|
8479 |
$RM -f confest.$objext
|
|
|
8480 |
CFLAGS=$_lt_libdeps_save_CFLAGS
|
|
|
8481 |
|
|
|
8482 |
# PORTME: override above test on systems where it is broken
|
|
|
8483 |
m4_if([$1], [CXX],
|
|
|
8484 |
[case $host_os in
|
|
|
8485 |
interix[[3-9]]*)
|
|
|
8486 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than
|
|
|
8487 |
# hack all around it, let's just trust "g++" to DTRT.
|
|
|
8488 |
_LT_TAGVAR(predep_objects,$1)=
|
|
|
8489 |
_LT_TAGVAR(postdep_objects,$1)=
|
|
|
8490 |
_LT_TAGVAR(postdeps,$1)=
|
|
|
8491 |
;;
|
|
|
8492 |
|
|
|
8493 |
linux*)
|
|
|
8494 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
8495 |
*Sun\ C*)
|
|
|
8496 |
# Sun C++ 5.9
|
|
|
8497 |
|
|
|
8498 |
# The more standards-conforming stlport4 library is
|
|
|
8499 |
# incompatible with the Cstd library. Avoid specifying
|
|
|
8500 |
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
|
8501 |
# -library=stlport4 depends on it.
|
|
|
8502 |
case " $CXX $CXXFLAGS " in
|
|
|
8503 |
*" -library=stlport4 "*)
|
|
|
8504 |
solaris_use_stlport4=yes
|
|
|
8505 |
;;
|
|
|
8506 |
esac
|
|
|
8507 |
|
|
|
8508 |
if test "$solaris_use_stlport4" != yes; then
|
|
|
8509 |
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
|
|
8510 |
fi
|
|
|
8511 |
;;
|
|
|
8512 |
esac
|
|
|
8513 |
;;
|
|
|
8514 |
|
|
|
8515 |
solaris*)
|
|
|
8516 |
case $cc_basename in
|
|
|
8517 |
CC* | sunCC*)
|
|
|
8518 |
# The more standards-conforming stlport4 library is
|
|
|
8519 |
# incompatible with the Cstd library. Avoid specifying
|
|
|
8520 |
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
|
8521 |
# -library=stlport4 depends on it.
|
|
|
8522 |
case " $CXX $CXXFLAGS " in
|
|
|
8523 |
*" -library=stlport4 "*)
|
|
|
8524 |
solaris_use_stlport4=yes
|
|
|
8525 |
;;
|
|
|
8526 |
esac
|
|
|
8527 |
|
|
|
8528 |
# Adding this requires a known-good setup of shared libraries for
|
|
|
8529 |
# Sun compiler versions before 5.6, else PIC objects from an old
|
|
|
8530 |
# archive will be linked into the output, leading to subtle bugs.
|
|
|
8531 |
if test "$solaris_use_stlport4" != yes; then
|
|
|
8532 |
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
|
|
8533 |
fi
|
|
|
8534 |
;;
|
|
|
8535 |
esac
|
|
|
8536 |
;;
|
|
|
8537 |
esac
|
|
|
8538 |
])
|
|
|
8539 |
|
|
|
8540 |
case " $_LT_TAGVAR(postdeps, $1) " in
|
|
|
8541 |
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
|
|
8542 |
esac
|
|
|
8543 |
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
|
|
|
8544 |
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
|
|
|
8545 |
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
|
|
|
8546 |
fi
|
|
|
8547 |
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
|
|
|
8548 |
[The directories searched by this compiler when creating a shared library])
|
|
|
8549 |
_LT_TAGDECL([], [predep_objects], [1],
|
|
|
8550 |
[Dependencies to place before and after the objects being linked to
|
|
|
8551 |
create a shared library])
|
|
|
8552 |
_LT_TAGDECL([], [postdep_objects], [1])
|
|
|
8553 |
_LT_TAGDECL([], [predeps], [1])
|
|
|
8554 |
_LT_TAGDECL([], [postdeps], [1])
|
|
|
8555 |
_LT_TAGDECL([], [compiler_lib_search_path], [1],
|
|
|
8556 |
[The library search path used internally by the compiler when linking
|
|
|
8557 |
a shared library])
|
|
|
8558 |
])# _LT_SYS_HIDDEN_LIBDEPS
|
|
|
8559 |
|
|
|
8560 |
|
|
|
8561 |
# _LT_LANG_F77_CONFIG([TAG])
|
|
|
8562 |
# --------------------------
|
|
|
8563 |
# Ensure that the configuration variables for a Fortran 77 compiler are
|
|
|
8564 |
# suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
|
8565 |
# to write the compiler configuration to `libtool'.
|
|
|
8566 |
m4_defun([_LT_LANG_F77_CONFIG],
|
|
|
8567 |
[AC_LANG_PUSH(Fortran 77)
|
|
|
8568 |
if test -z "$F77" || test "X$F77" = "Xno"; then
|
|
|
8569 |
_lt_disable_F77=yes
|
|
|
8570 |
fi
|
|
|
8571 |
|
|
|
8572 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
8573 |
_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
|
8574 |
_LT_TAGVAR(always_export_symbols, $1)=no
|
|
|
8575 |
_LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
|
8576 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
|
8577 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
8578 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
|
8579 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
|
8580 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
|
8581 |
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
|
8582 |
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
|
8583 |
_LT_TAGVAR(inherit_rpath, $1)=no
|
|
|
8584 |
_LT_TAGVAR(module_cmds, $1)=
|
|
|
8585 |
_LT_TAGVAR(module_expsym_cmds, $1)=
|
|
|
8586 |
_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
|
8587 |
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
8588 |
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
|
8589 |
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
|
8590 |
_LT_TAGVAR(no_undefined_flag, $1)=
|
|
|
8591 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
8592 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
|
8593 |
|
|
|
8594 |
# Source file extension for f77 test sources.
|
|
|
8595 |
ac_ext=f
|
|
|
8596 |
|
|
|
8597 |
# Object file extension for compiled f77 test sources.
|
|
|
8598 |
objext=o
|
|
|
8599 |
_LT_TAGVAR(objext, $1)=$objext
|
|
|
8600 |
|
|
|
8601 |
# No sense in running all these tests if we already determined that
|
|
|
8602 |
# the F77 compiler isn't working. Some variables (like enable_shared)
|
|
|
8603 |
# are currently assumed to apply to all compilers on this platform,
|
|
|
8604 |
# and will be corrupted by setting them based on a non-working compiler.
|
|
|
8605 |
if test "$_lt_disable_F77" != yes; then
|
|
|
8606 |
# Code to be used in simple compile tests
|
|
|
8607 |
lt_simple_compile_test_code="\
|
|
|
8608 |
subroutine t
|
|
|
8609 |
return
|
|
|
8610 |
end
|
|
|
8611 |
"
|
|
|
8612 |
|
|
|
8613 |
# Code to be used in simple link tests
|
|
|
8614 |
lt_simple_link_test_code="\
|
|
|
8615 |
program t
|
|
|
8616 |
end
|
|
|
8617 |
"
|
|
|
8618 |
|
|
|
8619 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
8620 |
_LT_TAG_COMPILER
|
|
|
8621 |
|
|
|
8622 |
# save warnings/boilerplate of simple test code
|
|
|
8623 |
_LT_COMPILER_BOILERPLATE
|
|
|
8624 |
_LT_LINKER_BOILERPLATE
|
|
|
8625 |
|
|
|
8626 |
# Allow CC to be a program name with arguments.
|
|
|
8627 |
lt_save_CC="$CC"
|
|
|
8628 |
lt_save_GCC=$GCC
|
|
|
8629 |
lt_save_CFLAGS=$CFLAGS
|
|
|
8630 |
CC=${F77-"f77"}
|
|
|
8631 |
CFLAGS=$FFLAGS
|
|
|
8632 |
compiler=$CC
|
|
|
8633 |
_LT_TAGVAR(compiler, $1)=$CC
|
|
|
8634 |
_LT_CC_BASENAME([$compiler])
|
|
|
8635 |
GCC=$G77
|
|
|
8636 |
if test -n "$compiler"; then
|
|
|
8637 |
AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
|
8638 |
AC_MSG_RESULT([$can_build_shared])
|
|
|
8639 |
|
|
|
8640 |
AC_MSG_CHECKING([whether to build shared libraries])
|
|
|
8641 |
test "$can_build_shared" = "no" && enable_shared=no
|
|
|
8642 |
|
|
|
8643 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
|
8644 |
# are all built from PIC.
|
|
|
8645 |
case $host_os in
|
|
|
8646 |
aix3*)
|
|
|
8647 |
test "$enable_shared" = yes && enable_static=no
|
|
|
8648 |
if test -n "$RANLIB"; then
|
|
|
8649 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
|
8650 |
postinstall_cmds='$RANLIB $lib'
|
|
|
8651 |
fi
|
|
|
8652 |
;;
|
|
|
8653 |
aix[[4-9]]*)
|
|
|
8654 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
|
8655 |
test "$enable_shared" = yes && enable_static=no
|
|
|
8656 |
fi
|
|
|
8657 |
;;
|
|
|
8658 |
esac
|
|
|
8659 |
AC_MSG_RESULT([$enable_shared])
|
|
|
8660 |
|
|
|
8661 |
AC_MSG_CHECKING([whether to build static libraries])
|
|
|
8662 |
# Make sure either enable_shared or enable_static is yes.
|
|
|
8663 |
test "$enable_shared" = yes || enable_static=yes
|
|
|
8664 |
AC_MSG_RESULT([$enable_static])
|
|
|
8665 |
|
|
|
8666 |
_LT_TAGVAR(GCC, $1)="$G77"
|
|
|
8667 |
_LT_TAGVAR(LD, $1)="$LD"
|
|
|
8668 |
|
|
|
8669 |
## CAVEAT EMPTOR:
|
|
|
8670 |
## There is no encapsulation within the following macros, do not change
|
|
|
8671 |
## the running order or otherwise move them around unless you know exactly
|
|
|
8672 |
## what you are doing...
|
|
|
8673 |
_LT_COMPILER_PIC($1)
|
|
|
8674 |
_LT_COMPILER_C_O($1)
|
|
|
8675 |
_LT_COMPILER_FILE_LOCKS($1)
|
|
|
8676 |
_LT_LINKER_SHLIBS($1)
|
|
|
8677 |
_LT_SYS_DYNAMIC_LINKER($1)
|
|
|
8678 |
_LT_LINKER_HARDCODE_LIBPATH($1)
|
|
|
8679 |
|
|
|
8680 |
_LT_CONFIG($1)
|
|
|
8681 |
fi # test -n "$compiler"
|
|
|
8682 |
|
|
|
8683 |
GCC=$lt_save_GCC
|
|
|
8684 |
CC="$lt_save_CC"
|
|
|
8685 |
CFLAGS="$lt_save_CFLAGS"
|
|
|
8686 |
fi # test "$_lt_disable_F77" != yes
|
|
|
8687 |
|
|
|
8688 |
AC_LANG_POP
|
|
|
8689 |
])# _LT_LANG_F77_CONFIG
|
|
|
8690 |
|
|
|
8691 |
|
|
|
8692 |
# _LT_LANG_FC_CONFIG([TAG])
|
|
|
8693 |
# -------------------------
|
|
|
8694 |
# Ensure that the configuration variables for a Fortran compiler are
|
|
|
8695 |
# suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
|
8696 |
# to write the compiler configuration to `libtool'.
|
|
|
8697 |
m4_defun([_LT_LANG_FC_CONFIG],
|
|
|
8698 |
[AC_LANG_PUSH(Fortran)
|
|
|
8699 |
|
|
|
8700 |
if test -z "$FC" || test "X$FC" = "Xno"; then
|
|
|
8701 |
_lt_disable_FC=yes
|
|
|
8702 |
fi
|
|
|
8703 |
|
|
|
8704 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
8705 |
_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
|
8706 |
_LT_TAGVAR(always_export_symbols, $1)=no
|
|
|
8707 |
_LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
|
8708 |
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
|
8709 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
|
8710 |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
|
8711 |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
|
8712 |
_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
|
8713 |
_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
|
8714 |
_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
|
8715 |
_LT_TAGVAR(inherit_rpath, $1)=no
|
|
|
8716 |
_LT_TAGVAR(module_cmds, $1)=
|
|
|
8717 |
_LT_TAGVAR(module_expsym_cmds, $1)=
|
|
|
8718 |
_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
|
8719 |
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
8720 |
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
|
8721 |
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
|
8722 |
_LT_TAGVAR(no_undefined_flag, $1)=
|
|
|
8723 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
|
8724 |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
|
8725 |
|
|
|
8726 |
# Source file extension for fc test sources.
|
|
|
8727 |
ac_ext=${ac_fc_srcext-f}
|
|
|
8728 |
|
|
|
8729 |
# Object file extension for compiled fc test sources.
|
|
|
8730 |
objext=o
|
|
|
8731 |
_LT_TAGVAR(objext, $1)=$objext
|
|
|
8732 |
|
|
|
8733 |
# No sense in running all these tests if we already determined that
|
|
|
8734 |
# the FC compiler isn't working. Some variables (like enable_shared)
|
|
|
8735 |
# are currently assumed to apply to all compilers on this platform,
|
|
|
8736 |
# and will be corrupted by setting them based on a non-working compiler.
|
|
|
8737 |
if test "$_lt_disable_FC" != yes; then
|
|
|
8738 |
# Code to be used in simple compile tests
|
|
|
8739 |
lt_simple_compile_test_code="\
|
|
|
8740 |
subroutine t
|
|
|
8741 |
return
|
|
|
8742 |
end
|
|
|
8743 |
"
|
|
|
8744 |
|
|
|
8745 |
# Code to be used in simple link tests
|
|
|
8746 |
lt_simple_link_test_code="\
|
|
|
8747 |
program t
|
|
|
8748 |
end
|
|
|
8749 |
"
|
|
|
8750 |
|
|
|
8751 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
8752 |
_LT_TAG_COMPILER
|
|
|
8753 |
|
|
|
8754 |
# save warnings/boilerplate of simple test code
|
|
|
8755 |
_LT_COMPILER_BOILERPLATE
|
|
|
8756 |
_LT_LINKER_BOILERPLATE
|
|
|
8757 |
|
|
|
8758 |
# Allow CC to be a program name with arguments.
|
|
|
8759 |
lt_save_CC="$CC"
|
|
|
8760 |
lt_save_GCC=$GCC
|
|
|
8761 |
lt_save_CFLAGS=$CFLAGS
|
|
|
8762 |
CC=${FC-"f95"}
|
|
|
8763 |
CFLAGS=$FCFLAGS
|
|
|
8764 |
compiler=$CC
|
|
|
8765 |
GCC=$ac_cv_fc_compiler_gnu
|
|
|
8766 |
|
|
|
8767 |
_LT_TAGVAR(compiler, $1)=$CC
|
|
|
8768 |
_LT_CC_BASENAME([$compiler])
|
|
|
8769 |
|
|
|
8770 |
if test -n "$compiler"; then
|
|
|
8771 |
AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
|
8772 |
AC_MSG_RESULT([$can_build_shared])
|
|
|
8773 |
|
|
|
8774 |
AC_MSG_CHECKING([whether to build shared libraries])
|
|
|
8775 |
test "$can_build_shared" = "no" && enable_shared=no
|
|
|
8776 |
|
|
|
8777 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
|
8778 |
# are all built from PIC.
|
|
|
8779 |
case $host_os in
|
|
|
8780 |
aix3*)
|
|
|
8781 |
test "$enable_shared" = yes && enable_static=no
|
|
|
8782 |
if test -n "$RANLIB"; then
|
|
|
8783 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
|
8784 |
postinstall_cmds='$RANLIB $lib'
|
|
|
8785 |
fi
|
|
|
8786 |
;;
|
|
|
8787 |
aix[[4-9]]*)
|
|
|
8788 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
|
8789 |
test "$enable_shared" = yes && enable_static=no
|
|
|
8790 |
fi
|
|
|
8791 |
;;
|
|
|
8792 |
esac
|
|
|
8793 |
AC_MSG_RESULT([$enable_shared])
|
|
|
8794 |
|
|
|
8795 |
AC_MSG_CHECKING([whether to build static libraries])
|
|
|
8796 |
# Make sure either enable_shared or enable_static is yes.
|
|
|
8797 |
test "$enable_shared" = yes || enable_static=yes
|
|
|
8798 |
AC_MSG_RESULT([$enable_static])
|
|
|
8799 |
|
|
|
8800 |
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
|
|
|
8801 |
_LT_TAGVAR(LD, $1)="$LD"
|
|
|
8802 |
|
|
|
8803 |
## CAVEAT EMPTOR:
|
|
|
8804 |
## There is no encapsulation within the following macros, do not change
|
|
|
8805 |
## the running order or otherwise move them around unless you know exactly
|
|
|
8806 |
## what you are doing...
|
|
|
8807 |
_LT_SYS_HIDDEN_LIBDEPS($1)
|
|
|
8808 |
_LT_COMPILER_PIC($1)
|
|
|
8809 |
_LT_COMPILER_C_O($1)
|
|
|
8810 |
_LT_COMPILER_FILE_LOCKS($1)
|
|
|
8811 |
_LT_LINKER_SHLIBS($1)
|
|
|
8812 |
_LT_SYS_DYNAMIC_LINKER($1)
|
|
|
8813 |
_LT_LINKER_HARDCODE_LIBPATH($1)
|
|
|
8814 |
|
|
|
8815 |
_LT_CONFIG($1)
|
|
|
8816 |
fi # test -n "$compiler"
|
|
|
8817 |
|
|
|
8818 |
GCC=$lt_save_GCC
|
|
|
8819 |
CC=$lt_save_CC
|
|
|
8820 |
CFLAGS=$lt_save_CFLAGS
|
|
|
8821 |
fi # test "$_lt_disable_FC" != yes
|
|
|
8822 |
|
|
|
8823 |
AC_LANG_POP
|
|
|
8824 |
])# _LT_LANG_FC_CONFIG
|
|
|
8825 |
|
|
|
8826 |
|
|
|
8827 |
# _LT_LANG_GCJ_CONFIG([TAG])
|
|
|
8828 |
# --------------------------
|
|
|
8829 |
# Ensure that the configuration variables for the GNU Java Compiler compiler
|
|
|
8830 |
# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
|
8831 |
# to write the compiler configuration to `libtool'.
|
|
|
8832 |
m4_defun([_LT_LANG_GCJ_CONFIG],
|
|
|
8833 |
[AC_REQUIRE([LT_PROG_GCJ])dnl
|
|
|
8834 |
AC_LANG_SAVE
|
|
|
8835 |
|
|
|
8836 |
# Source file extension for Java test sources.
|
|
|
8837 |
ac_ext=java
|
|
|
8838 |
|
|
|
8839 |
# Object file extension for compiled Java test sources.
|
|
|
8840 |
objext=o
|
|
|
8841 |
_LT_TAGVAR(objext, $1)=$objext
|
|
|
8842 |
|
|
|
8843 |
# Code to be used in simple compile tests
|
|
|
8844 |
lt_simple_compile_test_code="class foo {}"
|
|
|
8845 |
|
|
|
8846 |
# Code to be used in simple link tests
|
|
|
8847 |
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
|
|
|
8848 |
|
|
|
8849 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
8850 |
_LT_TAG_COMPILER
|
|
|
8851 |
|
|
|
8852 |
# save warnings/boilerplate of simple test code
|
|
|
8853 |
_LT_COMPILER_BOILERPLATE
|
|
|
8854 |
_LT_LINKER_BOILERPLATE
|
|
|
8855 |
|
|
|
8856 |
# Allow CC to be a program name with arguments.
|
|
|
8857 |
lt_save_CC=$CC
|
|
|
8858 |
lt_save_CFLAGS=$CFLAGS
|
|
|
8859 |
lt_save_GCC=$GCC
|
|
|
8860 |
GCC=yes
|
|
|
8861 |
CC=${GCJ-"gcj"}
|
|
|
8862 |
CFLAGS=$GCJFLAGS
|
|
|
8863 |
compiler=$CC
|
|
|
8864 |
_LT_TAGVAR(compiler, $1)=$CC
|
|
|
8865 |
_LT_TAGVAR(LD, $1)="$LD"
|
|
|
8866 |
_LT_CC_BASENAME([$compiler])
|
|
|
8867 |
|
|
|
8868 |
# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
|
|
8869 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
8870 |
|
|
|
8871 |
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
8872 |
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
|
8873 |
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
|
8874 |
|
|
|
8875 |
if test -n "$compiler"; then
|
|
|
8876 |
_LT_COMPILER_NO_RTTI($1)
|
|
|
8877 |
_LT_COMPILER_PIC($1)
|
|
|
8878 |
_LT_COMPILER_C_O($1)
|
|
|
8879 |
_LT_COMPILER_FILE_LOCKS($1)
|
|
|
8880 |
_LT_LINKER_SHLIBS($1)
|
|
|
8881 |
_LT_LINKER_HARDCODE_LIBPATH($1)
|
|
|
8882 |
|
|
|
8883 |
_LT_CONFIG($1)
|
|
|
8884 |
fi
|
|
|
8885 |
|
|
|
8886 |
AC_LANG_RESTORE
|
|
|
8887 |
|
|
|
8888 |
GCC=$lt_save_GCC
|
|
|
8889 |
CC=$lt_save_CC
|
|
|
8890 |
CFLAGS=$lt_save_CFLAGS
|
|
|
8891 |
])# _LT_LANG_GCJ_CONFIG
|
|
|
8892 |
|
|
|
8893 |
|
|
|
8894 |
# _LT_LANG_GO_CONFIG([TAG])
|
|
|
8895 |
# --------------------------
|
|
|
8896 |
# Ensure that the configuration variables for the GNU Go compiler
|
|
|
8897 |
# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
|
8898 |
# to write the compiler configuration to `libtool'.
|
|
|
8899 |
m4_defun([_LT_LANG_GO_CONFIG],
|
|
|
8900 |
[AC_REQUIRE([LT_PROG_GO])dnl
|
|
|
8901 |
AC_LANG_SAVE
|
|
|
8902 |
|
|
|
8903 |
# Source file extension for Go test sources.
|
|
|
8904 |
ac_ext=go
|
|
|
8905 |
|
|
|
8906 |
# Object file extension for compiled Go test sources.
|
|
|
8907 |
objext=o
|
|
|
8908 |
_LT_TAGVAR(objext, $1)=$objext
|
|
|
8909 |
|
|
|
8910 |
# Code to be used in simple compile tests
|
|
|
8911 |
lt_simple_compile_test_code="package main; func main() { }"
|
|
|
8912 |
|
|
|
8913 |
# Code to be used in simple link tests
|
|
|
8914 |
lt_simple_link_test_code='package main; func main() { }'
|
|
|
8915 |
|
|
|
8916 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
8917 |
_LT_TAG_COMPILER
|
|
|
8918 |
|
|
|
8919 |
# save warnings/boilerplate of simple test code
|
|
|
8920 |
_LT_COMPILER_BOILERPLATE
|
|
|
8921 |
_LT_LINKER_BOILERPLATE
|
|
|
8922 |
|
|
|
8923 |
# Allow CC to be a program name with arguments.
|
|
|
8924 |
lt_save_CC=$CC
|
|
|
8925 |
lt_save_CFLAGS=$CFLAGS
|
|
|
8926 |
lt_save_GCC=$GCC
|
|
|
8927 |
GCC=yes
|
|
|
8928 |
CC=${GOC-"gccgo"}
|
|
|
8929 |
CFLAGS=$GOFLAGS
|
|
|
8930 |
compiler=$CC
|
|
|
8931 |
_LT_TAGVAR(compiler, $1)=$CC
|
|
|
8932 |
_LT_TAGVAR(LD, $1)="$LD"
|
|
|
8933 |
_LT_CC_BASENAME([$compiler])
|
|
|
8934 |
|
|
|
8935 |
# Go did not exist at the time GCC didn't implicitly link libc in.
|
|
|
8936 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
|
8937 |
|
|
|
8938 |
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
8939 |
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
|
8940 |
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
|
8941 |
|
|
|
8942 |
if test -n "$compiler"; then
|
|
|
8943 |
_LT_COMPILER_NO_RTTI($1)
|
|
|
8944 |
_LT_COMPILER_PIC($1)
|
|
|
8945 |
_LT_COMPILER_C_O($1)
|
|
|
8946 |
_LT_COMPILER_FILE_LOCKS($1)
|
|
|
8947 |
_LT_LINKER_SHLIBS($1)
|
|
|
8948 |
_LT_LINKER_HARDCODE_LIBPATH($1)
|
|
|
8949 |
|
|
|
8950 |
_LT_CONFIG($1)
|
|
|
8951 |
fi
|
|
|
8952 |
|
|
|
8953 |
AC_LANG_RESTORE
|
|
|
8954 |
|
|
|
8955 |
GCC=$lt_save_GCC
|
|
|
8956 |
CC=$lt_save_CC
|
|
|
8957 |
CFLAGS=$lt_save_CFLAGS
|
|
|
8958 |
])# _LT_LANG_GO_CONFIG
|
|
|
8959 |
|
|
|
8960 |
|
|
|
8961 |
# _LT_LANG_RC_CONFIG([TAG])
|
|
|
8962 |
# -------------------------
|
|
|
8963 |
# Ensure that the configuration variables for the Windows resource compiler
|
|
|
8964 |
# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
|
8965 |
# to write the compiler configuration to `libtool'.
|
|
|
8966 |
m4_defun([_LT_LANG_RC_CONFIG],
|
|
|
8967 |
[AC_REQUIRE([LT_PROG_RC])dnl
|
|
|
8968 |
AC_LANG_SAVE
|
|
|
8969 |
|
|
|
8970 |
# Source file extension for RC test sources.
|
|
|
8971 |
ac_ext=rc
|
|
|
8972 |
|
|
|
8973 |
# Object file extension for compiled RC test sources.
|
|
|
8974 |
objext=o
|
|
|
8975 |
_LT_TAGVAR(objext, $1)=$objext
|
|
|
8976 |
|
|
|
8977 |
# Code to be used in simple compile tests
|
|
|
8978 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
|
|
8979 |
|
|
|
8980 |
# Code to be used in simple link tests
|
|
|
8981 |
lt_simple_link_test_code="$lt_simple_compile_test_code"
|
|
|
8982 |
|
|
|
8983 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
8984 |
_LT_TAG_COMPILER
|
|
|
8985 |
|
|
|
8986 |
# save warnings/boilerplate of simple test code
|
|
|
8987 |
_LT_COMPILER_BOILERPLATE
|
|
|
8988 |
_LT_LINKER_BOILERPLATE
|
|
|
8989 |
|
|
|
8990 |
# Allow CC to be a program name with arguments.
|
|
|
8991 |
lt_save_CC="$CC"
|
|
|
8992 |
lt_save_CFLAGS=$CFLAGS
|
|
|
8993 |
lt_save_GCC=$GCC
|
|
|
8994 |
GCC=
|
|
|
8995 |
CC=${RC-"windres"}
|
|
|
8996 |
CFLAGS=
|
|
|
8997 |
compiler=$CC
|
|
|
8998 |
_LT_TAGVAR(compiler, $1)=$CC
|
|
|
8999 |
_LT_CC_BASENAME([$compiler])
|
|
|
9000 |
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|
|
9001 |
|
|
|
9002 |
if test -n "$compiler"; then
|
|
|
9003 |
:
|
|
|
9004 |
_LT_CONFIG($1)
|
|
|
9005 |
fi
|
|
|
9006 |
|
|
|
9007 |
GCC=$lt_save_GCC
|
|
|
9008 |
AC_LANG_RESTORE
|
|
|
9009 |
CC=$lt_save_CC
|
|
|
9010 |
CFLAGS=$lt_save_CFLAGS
|
|
|
9011 |
])# _LT_LANG_RC_CONFIG
|
|
|
9012 |
|
|
|
9013 |
|
|
|
9014 |
# LT_PROG_GCJ
|
|
|
9015 |
# -----------
|
|
|
9016 |
AC_DEFUN([LT_PROG_GCJ],
|
|
|
9017 |
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
|
|
|
9018 |
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
|
|
|
9019 |
[AC_CHECK_TOOL(GCJ, gcj,)
|
|
|
9020 |
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
|
|
9021 |
AC_SUBST(GCJFLAGS)])])[]dnl
|
|
|
9022 |
])
|
|
|
9023 |
|
|
|
9024 |
# Old name:
|
|
|
9025 |
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
|
|
|
9026 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9027 |
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
|
|
9028 |
|
|
|
9029 |
|
|
|
9030 |
# LT_PROG_GO
|
|
|
9031 |
# ----------
|
|
|
9032 |
AC_DEFUN([LT_PROG_GO],
|
|
|
9033 |
[AC_CHECK_TOOL(GOC, gccgo,)
|
|
|
9034 |
])
|
|
|
9035 |
|
|
|
9036 |
|
|
|
9037 |
# LT_PROG_RC
|
|
|
9038 |
# ----------
|
|
|
9039 |
AC_DEFUN([LT_PROG_RC],
|
|
|
9040 |
[AC_CHECK_TOOL(RC, windres,)
|
|
|
9041 |
])
|
|
|
9042 |
|
|
|
9043 |
# Old name:
|
|
|
9044 |
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
|
|
|
9045 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9046 |
dnl AC_DEFUN([LT_AC_PROG_RC], [])
|
|
|
9047 |
|
|
|
9048 |
|
|
|
9049 |
# _LT_DECL_EGREP
|
|
|
9050 |
# --------------
|
|
|
9051 |
# If we don't have a new enough Autoconf to choose the best grep
|
|
|
9052 |
# available, choose the one first in the user's PATH.
|
|
|
9053 |
m4_defun([_LT_DECL_EGREP],
|
|
|
9054 |
[AC_REQUIRE([AC_PROG_EGREP])dnl
|
|
|
9055 |
AC_REQUIRE([AC_PROG_FGREP])dnl
|
|
|
9056 |
test -z "$GREP" && GREP=grep
|
|
|
9057 |
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
|
|
|
9058 |
_LT_DECL([], [EGREP], [1], [An ERE matcher])
|
|
|
9059 |
_LT_DECL([], [FGREP], [1], [A literal string matcher])
|
|
|
9060 |
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
|
|
|
9061 |
AC_SUBST([GREP])
|
|
|
9062 |
])
|
|
|
9063 |
|
|
|
9064 |
|
|
|
9065 |
# _LT_DECL_OBJDUMP
|
|
|
9066 |
# --------------
|
|
|
9067 |
# If we don't have a new enough Autoconf to choose the best objdump
|
|
|
9068 |
# available, choose the one first in the user's PATH.
|
|
|
9069 |
m4_defun([_LT_DECL_OBJDUMP],
|
|
|
9070 |
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
|
|
9071 |
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
|
9072 |
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
|
|
|
9073 |
AC_SUBST([OBJDUMP])
|
|
|
9074 |
])
|
|
|
9075 |
|
|
|
9076 |
# _LT_DECL_DLLTOOL
|
|
|
9077 |
# ----------------
|
|
|
9078 |
# Ensure DLLTOOL variable is set.
|
|
|
9079 |
m4_defun([_LT_DECL_DLLTOOL],
|
|
|
9080 |
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|
|
9081 |
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
|
9082 |
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
|
|
|
9083 |
AC_SUBST([DLLTOOL])
|
|
|
9084 |
])
|
|
|
9085 |
|
|
|
9086 |
# _LT_DECL_SED
|
|
|
9087 |
# ------------
|
|
|
9088 |
# Check for a fully-functional sed program, that truncates
|
|
|
9089 |
# as few characters as possible. Prefer GNU sed if found.
|
|
|
9090 |
m4_defun([_LT_DECL_SED],
|
|
|
9091 |
[AC_PROG_SED
|
|
|
9092 |
test -z "$SED" && SED=sed
|
|
|
9093 |
Xsed="$SED -e 1s/^X//"
|
|
|
9094 |
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
|
|
|
9095 |
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
|
|
|
9096 |
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
|
|
|
9097 |
])# _LT_DECL_SED
|
|
|
9098 |
|
|
|
9099 |
m4_ifndef([AC_PROG_SED], [
|
|
|
9100 |
# NOTE: This macro has been submitted for inclusion into #
|
|
|
9101 |
# GNU Autoconf as AC_PROG_SED. When it is available in #
|
|
|
9102 |
# a released version of Autoconf we should remove this #
|
|
|
9103 |
# macro and use it instead. #
|
|
|
9104 |
|
|
|
9105 |
m4_defun([AC_PROG_SED],
|
|
|
9106 |
[AC_MSG_CHECKING([for a sed that does not truncate output])
|
|
|
9107 |
AC_CACHE_VAL(lt_cv_path_SED,
|
|
|
9108 |
[# Loop through the user's path and test for sed and gsed.
|
|
|
9109 |
# Then use that list of sed's as ones to test for truncation.
|
|
|
9110 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
9111 |
for as_dir in $PATH
|
|
|
9112 |
do
|
|
|
9113 |
IFS=$as_save_IFS
|
|
|
9114 |
test -z "$as_dir" && as_dir=.
|
|
|
9115 |
for lt_ac_prog in sed gsed; do
|
|
|
9116 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
9117 |
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
|
|
9118 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
|
|
9119 |
fi
|
|
|
9120 |
done
|
|
|
9121 |
done
|
|
|
9122 |
done
|
|
|
9123 |
IFS=$as_save_IFS
|
|
|
9124 |
lt_ac_max=0
|
|
|
9125 |
lt_ac_count=0
|
|
|
9126 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
|
|
9127 |
# along with /bin/sed that truncates output.
|
|
|
9128 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
|
|
9129 |
test ! -f $lt_ac_sed && continue
|
|
|
9130 |
cat /dev/null > conftest.in
|
|
|
9131 |
lt_ac_count=0
|
|
|
9132 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
|
|
9133 |
# Check for GNU sed and select it if it is found.
|
|
|
9134 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
|
|
9135 |
lt_cv_path_SED=$lt_ac_sed
|
|
|
9136 |
break
|
|
|
9137 |
fi
|
|
|
9138 |
while true; do
|
|
|
9139 |
cat conftest.in conftest.in >conftest.tmp
|
|
|
9140 |
mv conftest.tmp conftest.in
|
|
|
9141 |
cp conftest.in conftest.nl
|
|
|
9142 |
echo >>conftest.nl
|
|
|
9143 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
|
|
9144 |
cmp -s conftest.out conftest.nl || break
|
|
|
9145 |
# 10000 chars as input seems more than enough
|
|
|
9146 |
test $lt_ac_count -gt 10 && break
|
|
|
9147 |
lt_ac_count=`expr $lt_ac_count + 1`
|
|
|
9148 |
if test $lt_ac_count -gt $lt_ac_max; then
|
|
|
9149 |
lt_ac_max=$lt_ac_count
|
|
|
9150 |
lt_cv_path_SED=$lt_ac_sed
|
|
|
9151 |
fi
|
|
|
9152 |
done
|
|
|
9153 |
done
|
|
|
9154 |
])
|
|
|
9155 |
SED=$lt_cv_path_SED
|
|
|
9156 |
AC_SUBST([SED])
|
|
|
9157 |
AC_MSG_RESULT([$SED])
|
|
|
9158 |
])#AC_PROG_SED
|
|
|
9159 |
])#m4_ifndef
|
|
|
9160 |
|
|
|
9161 |
# Old name:
|
|
|
9162 |
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
|
|
|
9163 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9164 |
dnl AC_DEFUN([LT_AC_PROG_SED], [])
|
|
|
9165 |
|
|
|
9166 |
|
|
|
9167 |
# _LT_CHECK_SHELL_FEATURES
|
|
|
9168 |
# ------------------------
|
|
|
9169 |
# Find out whether the shell is Bourne or XSI compatible,
|
|
|
9170 |
# or has some other useful features.
|
|
|
9171 |
m4_defun([_LT_CHECK_SHELL_FEATURES],
|
|
|
9172 |
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
|
|
|
9173 |
# Try some XSI features
|
|
|
9174 |
xsi_shell=no
|
|
|
9175 |
( _lt_dummy="a/b/c"
|
|
|
9176 |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
|
9177 |
= c,a/b,b/c, \
|
|
|
9178 |
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
|
9179 |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
|
9180 |
&& xsi_shell=yes
|
|
|
9181 |
AC_MSG_RESULT([$xsi_shell])
|
|
|
9182 |
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
|
|
|
9183 |
|
|
|
9184 |
AC_MSG_CHECKING([whether the shell understands "+="])
|
|
|
9185 |
lt_shell_append=no
|
|
|
9186 |
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
|
|
|
9187 |
>/dev/null 2>&1 \
|
|
|
9188 |
&& lt_shell_append=yes
|
|
|
9189 |
AC_MSG_RESULT([$lt_shell_append])
|
|
|
9190 |
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
|
|
|
9191 |
|
|
|
9192 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
|
9193 |
lt_unset=unset
|
|
|
9194 |
else
|
|
|
9195 |
lt_unset=false
|
|
|
9196 |
fi
|
|
|
9197 |
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
|
|
|
9198 |
|
|
|
9199 |
# test EBCDIC or ASCII
|
|
|
9200 |
case `echo X|tr X '\101'` in
|
|
|
9201 |
A) # ASCII based system
|
|
|
9202 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
|
|
9203 |
lt_SP2NL='tr \040 \012'
|
|
|
9204 |
lt_NL2SP='tr \015\012 \040\040'
|
|
|
9205 |
;;
|
|
|
9206 |
*) # EBCDIC based system
|
|
|
9207 |
lt_SP2NL='tr \100 \n'
|
|
|
9208 |
lt_NL2SP='tr \r\n \100\100'
|
|
|
9209 |
;;
|
|
|
9210 |
esac
|
|
|
9211 |
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
|
|
|
9212 |
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
|
|
|
9213 |
])# _LT_CHECK_SHELL_FEATURES
|
|
|
9214 |
|
|
|
9215 |
|
|
|
9216 |
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
|
|
|
9217 |
# ------------------------------------------------------
|
|
|
9218 |
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
|
|
|
9219 |
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
|
|
|
9220 |
m4_defun([_LT_PROG_FUNCTION_REPLACE],
|
|
|
9221 |
[dnl {
|
|
|
9222 |
sed -e '/^$1 ()$/,/^} # $1 /c\
|
|
|
9223 |
$1 ()\
|
|
|
9224 |
{\
|
|
|
9225 |
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
|
|
|
9226 |
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
|
|
|
9227 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
|
9228 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
|
9229 |
test 0 -eq $? || _lt_function_replace_fail=:
|
|
|
9230 |
])
|
|
|
9231 |
|
|
|
9232 |
|
|
|
9233 |
# _LT_PROG_REPLACE_SHELLFNS
|
|
|
9234 |
# -------------------------
|
|
|
9235 |
# Replace existing portable implementations of several shell functions with
|
|
|
9236 |
# equivalent extended shell implementations where those features are available..
|
|
|
9237 |
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
|
|
|
9238 |
[if test x"$xsi_shell" = xyes; then
|
|
|
9239 |
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
|
|
|
9240 |
case ${1} in
|
|
|
9241 |
*/*) func_dirname_result="${1%/*}${2}" ;;
|
|
|
9242 |
* ) func_dirname_result="${3}" ;;
|
|
|
9243 |
esac])
|
|
|
9244 |
|
|
|
9245 |
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
|
|
|
9246 |
func_basename_result="${1##*/}"])
|
|
|
9247 |
|
|
|
9248 |
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
|
|
|
9249 |
case ${1} in
|
|
|
9250 |
*/*) func_dirname_result="${1%/*}${2}" ;;
|
|
|
9251 |
* ) func_dirname_result="${3}" ;;
|
|
|
9252 |
esac
|
|
|
9253 |
func_basename_result="${1##*/}"])
|
|
|
9254 |
|
|
|
9255 |
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
|
|
|
9256 |
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
|
9257 |
# positional parameters, so assign one to ordinary parameter first.
|
|
|
9258 |
func_stripname_result=${3}
|
|
|
9259 |
func_stripname_result=${func_stripname_result#"${1}"}
|
|
|
9260 |
func_stripname_result=${func_stripname_result%"${2}"}])
|
|
|
9261 |
|
|
|
9262 |
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
|
|
|
9263 |
func_split_long_opt_name=${1%%=*}
|
|
|
9264 |
func_split_long_opt_arg=${1#*=}])
|
|
|
9265 |
|
|
|
9266 |
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
|
|
|
9267 |
func_split_short_opt_arg=${1#??}
|
|
|
9268 |
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
|
|
|
9269 |
|
|
|
9270 |
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
|
|
|
9271 |
case ${1} in
|
|
|
9272 |
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
|
9273 |
*) func_lo2o_result=${1} ;;
|
|
|
9274 |
esac])
|
|
|
9275 |
|
|
|
9276 |
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
|
|
|
9277 |
|
|
|
9278 |
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
|
|
|
9279 |
|
|
|
9280 |
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
|
|
|
9281 |
fi
|
|
|
9282 |
|
|
|
9283 |
if test x"$lt_shell_append" = xyes; then
|
|
|
9284 |
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
|
|
|
9285 |
|
|
|
9286 |
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
|
|
|
9287 |
func_quote_for_eval "${2}"
|
|
|
9288 |
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
|
|
|
9289 |
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
|
|
|
9290 |
|
|
|
9291 |
# Save a `func_append' function call where possible by direct use of '+='
|
|
|
9292 |
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
|
9293 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
|
9294 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
|
9295 |
test 0 -eq $? || _lt_function_replace_fail=:
|
|
|
9296 |
else
|
|
|
9297 |
# Save a `func_append' function call even when '+=' is not available
|
|
|
9298 |
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
|
9299 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
|
9300 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
|
9301 |
test 0 -eq $? || _lt_function_replace_fail=:
|
|
|
9302 |
fi
|
|
|
9303 |
|
|
|
9304 |
if test x"$_lt_function_replace_fail" = x":"; then
|
|
|
9305 |
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
|
|
|
9306 |
fi
|
|
|
9307 |
])
|
|
|
9308 |
|
|
|
9309 |
# _LT_PATH_CONVERSION_FUNCTIONS
|
|
|
9310 |
# -----------------------------
|
|
|
9311 |
# Determine which file name conversion functions should be used by
|
|
|
9312 |
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
|
|
|
9313 |
# for certain cross-compile configurations and native mingw.
|
|
|
9314 |
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
|
|
|
9315 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
9316 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
|
9317 |
AC_MSG_CHECKING([how to convert $build file names to $host format])
|
|
|
9318 |
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
|
|
|
9319 |
[case $host in
|
|
|
9320 |
*-*-mingw* )
|
|
|
9321 |
case $build in
|
|
|
9322 |
*-*-mingw* ) # actually msys
|
|
|
9323 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
|
9324 |
;;
|
|
|
9325 |
*-*-cygwin* )
|
|
|
9326 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
|
9327 |
;;
|
|
|
9328 |
* ) # otherwise, assume *nix
|
|
|
9329 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
|
9330 |
;;
|
|
|
9331 |
esac
|
|
|
9332 |
;;
|
|
|
9333 |
*-*-cygwin* )
|
|
|
9334 |
case $build in
|
|
|
9335 |
*-*-mingw* ) # actually msys
|
|
|
9336 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
|
9337 |
;;
|
|
|
9338 |
*-*-cygwin* )
|
|
|
9339 |
lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
|
9340 |
;;
|
|
|
9341 |
* ) # otherwise, assume *nix
|
|
|
9342 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
|
9343 |
;;
|
|
|
9344 |
esac
|
|
|
9345 |
;;
|
|
|
9346 |
* ) # unhandled hosts (and "normal" native builds)
|
|
|
9347 |
lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
|
9348 |
;;
|
|
|
9349 |
esac
|
|
|
9350 |
])
|
|
|
9351 |
to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
|
9352 |
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
|
|
|
9353 |
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
|
|
|
9354 |
[0], [convert $build file names to $host format])dnl
|
|
|
9355 |
|
|
|
9356 |
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
|
|
|
9357 |
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
|
|
|
9358 |
[#assume ordinary cross tools, or native build.
|
|
|
9359 |
lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
|
9360 |
case $host in
|
|
|
9361 |
*-*-mingw* )
|
|
|
9362 |
case $build in
|
|
|
9363 |
*-*-mingw* ) # actually msys
|
|
|
9364 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
|
9365 |
;;
|
|
|
9366 |
esac
|
|
|
9367 |
;;
|
|
|
9368 |
esac
|
|
|
9369 |
])
|
|
|
9370 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
|
9371 |
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
|
|
|
9372 |
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
|
|
|
9373 |
[0], [convert $build files to toolchain format])dnl
|
|
|
9374 |
])# _LT_PATH_CONVERSION_FUNCTIONS
|
|
|
9375 |
|
|
|
9376 |
# Helper functions for option handling. -*- Autoconf -*-
|
|
|
9377 |
#
|
|
|
9378 |
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
|
|
|
9379 |
# Inc.
|
|
|
9380 |
# Written by Gary V. Vaughan, 2004
|
|
|
9381 |
#
|
|
|
9382 |
# This file is free software; the Free Software Foundation gives
|
|
|
9383 |
# unlimited permission to copy and/or distribute it, with or without
|
|
|
9384 |
# modifications, as long as this notice is preserved.
|
|
|
9385 |
|
|
|
9386 |
# serial 7 ltoptions.m4
|
|
|
9387 |
|
|
|
9388 |
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
|
9389 |
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
|
|
9390 |
|
|
|
9391 |
|
|
|
9392 |
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
|
|
9393 |
# ------------------------------------------
|
|
|
9394 |
m4_define([_LT_MANGLE_OPTION],
|
|
|
9395 |
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
|
|
9396 |
|
|
|
9397 |
|
|
|
9398 |
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
|
|
9399 |
# ---------------------------------------
|
|
|
9400 |
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
|
|
9401 |
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
|
|
9402 |
# saved as a flag.
|
|
|
9403 |
m4_define([_LT_SET_OPTION],
|
|
|
9404 |
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
|
|
9405 |
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
|
|
9406 |
_LT_MANGLE_DEFUN([$1], [$2]),
|
|
|
9407 |
[m4_warning([Unknown $1 option `$2'])])[]dnl
|
|
|
9408 |
])
|
|
|
9409 |
|
|
|
9410 |
|
|
|
9411 |
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
|
|
9412 |
# ------------------------------------------------------------
|
|
|
9413 |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
|
9414 |
m4_define([_LT_IF_OPTION],
|
|
|
9415 |
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
|
|
9416 |
|
|
|
9417 |
|
|
|
9418 |
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
|
|
9419 |
# -------------------------------------------------------
|
|
|
9420 |
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
|
|
9421 |
# are set.
|
|
|
9422 |
m4_define([_LT_UNLESS_OPTIONS],
|
|
|
9423 |
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
|
|
9424 |
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
|
|
9425 |
[m4_define([$0_found])])])[]dnl
|
|
|
9426 |
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
|
|
9427 |
])[]dnl
|
|
|
9428 |
])
|
|
|
9429 |
|
|
|
9430 |
|
|
|
9431 |
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
|
|
9432 |
# ----------------------------------------
|
|
|
9433 |
# OPTION-LIST is a space-separated list of Libtool options associated
|
|
|
9434 |
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
|
|
9435 |
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
|
|
9436 |
# the unknown option and exit.
|
|
|
9437 |
m4_defun([_LT_SET_OPTIONS],
|
|
|
9438 |
[# Set options
|
|
|
9439 |
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
|
|
9440 |
[_LT_SET_OPTION([$1], _LT_Option)])
|
|
|
9441 |
|
|
|
9442 |
m4_if([$1],[LT_INIT],[
|
|
|
9443 |
dnl
|
|
|
9444 |
dnl Simply set some default values (i.e off) if boolean options were not
|
|
|
9445 |
dnl specified:
|
|
|
9446 |
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
|
|
9447 |
])
|
|
|
9448 |
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
|
|
9449 |
])
|
|
|
9450 |
dnl
|
|
|
9451 |
dnl If no reference was made to various pairs of opposing options, then
|
|
|
9452 |
dnl we run the default mode handler for the pair. For example, if neither
|
|
|
9453 |
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
|
|
9454 |
dnl archives by default:
|
|
|
9455 |
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
|
|
9456 |
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
|
|
9457 |
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
|
|
9458 |
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
|
|
9459 |
[_LT_ENABLE_FAST_INSTALL])
|
|
|
9460 |
])
|
|
|
9461 |
])# _LT_SET_OPTIONS
|
|
|
9462 |
|
|
|
9463 |
|
|
|
9464 |
|
|
|
9465 |
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
|
|
9466 |
# -----------------------------------------
|
|
|
9467 |
m4_define([_LT_MANGLE_DEFUN],
|
|
|
9468 |
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
|
|
9469 |
|
|
|
9470 |
|
|
|
9471 |
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
|
|
9472 |
# -----------------------------------------------
|
|
|
9473 |
m4_define([LT_OPTION_DEFINE],
|
|
|
9474 |
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
|
|
9475 |
])# LT_OPTION_DEFINE
|
|
|
9476 |
|
|
|
9477 |
|
|
|
9478 |
# dlopen
|
|
|
9479 |
# ------
|
|
|
9480 |
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
|
|
9481 |
])
|
|
|
9482 |
|
|
|
9483 |
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
|
|
9484 |
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
|
|
9485 |
AC_DIAGNOSE([obsolete],
|
|
|
9486 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
|
9487 |
put the `dlopen' option into LT_INIT's first parameter.])
|
|
|
9488 |
])
|
|
|
9489 |
|
|
|
9490 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9491 |
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
|
|
9492 |
|
|
|
9493 |
|
|
|
9494 |
# win32-dll
|
|
|
9495 |
# ---------
|
|
|
9496 |
# Declare package support for building win32 dll's.
|
|
|
9497 |
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
|
|
9498 |
[enable_win32_dll=yes
|
|
|
9499 |
|
|
|
9500 |
case $host in
|
|
|
9501 |
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
|
|
9502 |
AC_CHECK_TOOL(AS, as, false)
|
|
|
9503 |
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|
|
9504 |
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
|
|
9505 |
;;
|
|
|
9506 |
esac
|
|
|
9507 |
|
|
|
9508 |
test -z "$AS" && AS=as
|
|
|
9509 |
_LT_DECL([], [AS], [1], [Assembler program])dnl
|
|
|
9510 |
|
|
|
9511 |
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
|
9512 |
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
|
|
|
9513 |
|
|
|
9514 |
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
|
9515 |
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
|
|
|
9516 |
])# win32-dll
|
|
|
9517 |
|
|
|
9518 |
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
|
|
9519 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
|
9520 |
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
|
|
9521 |
AC_DIAGNOSE([obsolete],
|
|
|
9522 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
|
9523 |
put the `win32-dll' option into LT_INIT's first parameter.])
|
|
|
9524 |
])
|
|
|
9525 |
|
|
|
9526 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9527 |
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
|
|
9528 |
|
|
|
9529 |
|
|
|
9530 |
# _LT_ENABLE_SHARED([DEFAULT])
|
|
|
9531 |
# ----------------------------
|
|
|
9532 |
# implement the --enable-shared flag, and supports the `shared' and
|
|
|
9533 |
# `disable-shared' LT_INIT options.
|
|
|
9534 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
|
9535 |
m4_define([_LT_ENABLE_SHARED],
|
|
|
9536 |
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
|
9537 |
AC_ARG_ENABLE([shared],
|
|
|
9538 |
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
|
|
9539 |
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
|
|
9540 |
[p=${PACKAGE-default}
|
|
|
9541 |
case $enableval in
|
|
|
9542 |
yes) enable_shared=yes ;;
|
|
|
9543 |
no) enable_shared=no ;;
|
|
|
9544 |
*)
|
|
|
9545 |
enable_shared=no
|
|
|
9546 |
# Look at the argument we got. We use all the common list separators.
|
|
|
9547 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
9548 |
for pkg in $enableval; do
|
|
|
9549 |
IFS="$lt_save_ifs"
|
|
|
9550 |
if test "X$pkg" = "X$p"; then
|
|
|
9551 |
enable_shared=yes
|
|
|
9552 |
fi
|
|
|
9553 |
done
|
|
|
9554 |
IFS="$lt_save_ifs"
|
|
|
9555 |
;;
|
|
|
9556 |
esac],
|
|
|
9557 |
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
|
|
9558 |
|
|
|
9559 |
_LT_DECL([build_libtool_libs], [enable_shared], [0],
|
|
|
9560 |
[Whether or not to build shared libraries])
|
|
|
9561 |
])# _LT_ENABLE_SHARED
|
|
|
9562 |
|
|
|
9563 |
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
|
|
9564 |
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
|
|
9565 |
|
|
|
9566 |
# Old names:
|
|
|
9567 |
AC_DEFUN([AC_ENABLE_SHARED],
|
|
|
9568 |
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
|
|
9569 |
])
|
|
|
9570 |
|
|
|
9571 |
AC_DEFUN([AC_DISABLE_SHARED],
|
|
|
9572 |
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
|
|
9573 |
])
|
|
|
9574 |
|
|
|
9575 |
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
|
|
9576 |
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
|
|
9577 |
|
|
|
9578 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9579 |
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
|
|
9580 |
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
|
|
9581 |
|
|
|
9582 |
|
|
|
9583 |
|
|
|
9584 |
# _LT_ENABLE_STATIC([DEFAULT])
|
|
|
9585 |
# ----------------------------
|
|
|
9586 |
# implement the --enable-static flag, and support the `static' and
|
|
|
9587 |
# `disable-static' LT_INIT options.
|
|
|
9588 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
|
9589 |
m4_define([_LT_ENABLE_STATIC],
|
|
|
9590 |
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
|
9591 |
AC_ARG_ENABLE([static],
|
|
|
9592 |
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
|
|
9593 |
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
|
|
9594 |
[p=${PACKAGE-default}
|
|
|
9595 |
case $enableval in
|
|
|
9596 |
yes) enable_static=yes ;;
|
|
|
9597 |
no) enable_static=no ;;
|
|
|
9598 |
*)
|
|
|
9599 |
enable_static=no
|
|
|
9600 |
# Look at the argument we got. We use all the common list separators.
|
|
|
9601 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
9602 |
for pkg in $enableval; do
|
|
|
9603 |
IFS="$lt_save_ifs"
|
|
|
9604 |
if test "X$pkg" = "X$p"; then
|
|
|
9605 |
enable_static=yes
|
|
|
9606 |
fi
|
|
|
9607 |
done
|
|
|
9608 |
IFS="$lt_save_ifs"
|
|
|
9609 |
;;
|
|
|
9610 |
esac],
|
|
|
9611 |
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
|
|
9612 |
|
|
|
9613 |
_LT_DECL([build_old_libs], [enable_static], [0],
|
|
|
9614 |
[Whether or not to build static libraries])
|
|
|
9615 |
])# _LT_ENABLE_STATIC
|
|
|
9616 |
|
|
|
9617 |
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
|
|
9618 |
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
|
|
9619 |
|
|
|
9620 |
# Old names:
|
|
|
9621 |
AC_DEFUN([AC_ENABLE_STATIC],
|
|
|
9622 |
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
|
|
9623 |
])
|
|
|
9624 |
|
|
|
9625 |
AC_DEFUN([AC_DISABLE_STATIC],
|
|
|
9626 |
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
|
|
9627 |
])
|
|
|
9628 |
|
|
|
9629 |
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
|
|
9630 |
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
|
|
9631 |
|
|
|
9632 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9633 |
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
|
|
9634 |
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
|
|
9635 |
|
|
|
9636 |
|
|
|
9637 |
|
|
|
9638 |
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
|
|
9639 |
# ----------------------------------
|
|
|
9640 |
# implement the --enable-fast-install flag, and support the `fast-install'
|
|
|
9641 |
# and `disable-fast-install' LT_INIT options.
|
|
|
9642 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
|
9643 |
m4_define([_LT_ENABLE_FAST_INSTALL],
|
|
|
9644 |
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
|
9645 |
AC_ARG_ENABLE([fast-install],
|
|
|
9646 |
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
|
|
9647 |
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
|
|
9648 |
[p=${PACKAGE-default}
|
|
|
9649 |
case $enableval in
|
|
|
9650 |
yes) enable_fast_install=yes ;;
|
|
|
9651 |
no) enable_fast_install=no ;;
|
|
|
9652 |
*)
|
|
|
9653 |
enable_fast_install=no
|
|
|
9654 |
# Look at the argument we got. We use all the common list separators.
|
|
|
9655 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
9656 |
for pkg in $enableval; do
|
|
|
9657 |
IFS="$lt_save_ifs"
|
|
|
9658 |
if test "X$pkg" = "X$p"; then
|
|
|
9659 |
enable_fast_install=yes
|
|
|
9660 |
fi
|
|
|
9661 |
done
|
|
|
9662 |
IFS="$lt_save_ifs"
|
|
|
9663 |
;;
|
|
|
9664 |
esac],
|
|
|
9665 |
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
|
|
9666 |
|
|
|
9667 |
_LT_DECL([fast_install], [enable_fast_install], [0],
|
|
|
9668 |
[Whether or not to optimize for fast installation])dnl
|
|
|
9669 |
])# _LT_ENABLE_FAST_INSTALL
|
|
|
9670 |
|
|
|
9671 |
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
|
|
9672 |
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
|
|
9673 |
|
|
|
9674 |
# Old names:
|
|
|
9675 |
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
|
|
9676 |
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
|
|
9677 |
AC_DIAGNOSE([obsolete],
|
|
|
9678 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
|
|
9679 |
the `fast-install' option into LT_INIT's first parameter.])
|
|
|
9680 |
])
|
|
|
9681 |
|
|
|
9682 |
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
|
|
9683 |
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
|
|
9684 |
AC_DIAGNOSE([obsolete],
|
|
|
9685 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
|
|
9686 |
the `disable-fast-install' option into LT_INIT's first parameter.])
|
|
|
9687 |
])
|
|
|
9688 |
|
|
|
9689 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9690 |
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
|
|
9691 |
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
|
|
9692 |
|
|
|
9693 |
|
|
|
9694 |
# _LT_WITH_PIC([MODE])
|
|
|
9695 |
# --------------------
|
|
|
9696 |
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
|
|
|
9697 |
# LT_INIT options.
|
|
|
9698 |
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
|
|
9699 |
m4_define([_LT_WITH_PIC],
|
|
|
9700 |
[AC_ARG_WITH([pic],
|
|
|
9701 |
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
|
|
|
9702 |
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
|
|
9703 |
[lt_p=${PACKAGE-default}
|
|
|
9704 |
case $withval in
|
|
|
9705 |
yes|no) pic_mode=$withval ;;
|
|
|
9706 |
*)
|
|
|
9707 |
pic_mode=default
|
|
|
9708 |
# Look at the argument we got. We use all the common list separators.
|
|
|
9709 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
9710 |
for lt_pkg in $withval; do
|
|
|
9711 |
IFS="$lt_save_ifs"
|
|
|
9712 |
if test "X$lt_pkg" = "X$lt_p"; then
|
|
|
9713 |
pic_mode=yes
|
|
|
9714 |
fi
|
|
|
9715 |
done
|
|
|
9716 |
IFS="$lt_save_ifs"
|
|
|
9717 |
;;
|
|
|
9718 |
esac],
|
|
|
9719 |
[pic_mode=default])
|
|
|
9720 |
|
|
|
9721 |
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
|
|
9722 |
|
|
|
9723 |
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
|
|
9724 |
])# _LT_WITH_PIC
|
|
|
9725 |
|
|
|
9726 |
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
|
|
9727 |
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
|
|
9728 |
|
|
|
9729 |
# Old name:
|
|
|
9730 |
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
|
|
9731 |
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
|
|
9732 |
AC_DIAGNOSE([obsolete],
|
|
|
9733 |
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
|
9734 |
put the `pic-only' option into LT_INIT's first parameter.])
|
|
|
9735 |
])
|
|
|
9736 |
|
|
|
9737 |
dnl aclocal-1.4 backwards compatibility:
|
|
|
9738 |
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
|
|
9739 |
|
|
|
9740 |
|
|
|
9741 |
m4_define([_LTDL_MODE], [])
|
|
|
9742 |
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
|
|
9743 |
[m4_define([_LTDL_MODE], [nonrecursive])])
|
|
|
9744 |
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
|
|
9745 |
[m4_define([_LTDL_MODE], [recursive])])
|
|
|
9746 |
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
|
|
9747 |
[m4_define([_LTDL_MODE], [subproject])])
|
|
|
9748 |
|
|
|
9749 |
m4_define([_LTDL_TYPE], [])
|
|
|
9750 |
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
|
|
9751 |
[m4_define([_LTDL_TYPE], [installable])])
|
|
|
9752 |
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
|
|
9753 |
[m4_define([_LTDL_TYPE], [convenience])])
|
|
|
9754 |
|
|
|
9755 |
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
|
|
9756 |
#
|
|
|
9757 |
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
|
|
9758 |
# Written by Gary V. Vaughan, 2004
|
|
|
9759 |
#
|
|
|
9760 |
# This file is free software; the Free Software Foundation gives
|
|
|
9761 |
# unlimited permission to copy and/or distribute it, with or without
|
|
|
9762 |
# modifications, as long as this notice is preserved.
|
|
|
9763 |
|
|
|
9764 |
# serial 6 ltsugar.m4
|
|
|
9765 |
|
|
|
9766 |
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
|
9767 |
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
|
|
9768 |
|
|
|
9769 |
|
|
|
9770 |
# lt_join(SEP, ARG1, [ARG2...])
|
|
|
9771 |
# -----------------------------
|
|
|
9772 |
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
|
|
9773 |
# associated separator.
|
|
|
9774 |
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
|
|
9775 |
# versions in m4sugar had bugs.
|
|
|
9776 |
m4_define([lt_join],
|
|
|
9777 |
[m4_if([$#], [1], [],
|
|
|
9778 |
[$#], [2], [[$2]],
|
|
|
9779 |
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
|
|
9780 |
m4_define([_lt_join],
|
|
|
9781 |
[m4_if([$#$2], [2], [],
|
|
|
9782 |
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
|
|
9783 |
|
|
|
9784 |
|
|
|
9785 |
# lt_car(LIST)
|
|
|
9786 |
# lt_cdr(LIST)
|
|
|
9787 |
# ------------
|
|
|
9788 |
# Manipulate m4 lists.
|
|
|
9789 |
# These macros are necessary as long as will still need to support
|
|
|
9790 |
# Autoconf-2.59 which quotes differently.
|
|
|
9791 |
m4_define([lt_car], [[$1]])
|
|
|
9792 |
m4_define([lt_cdr],
|
|
|
9793 |
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
|
|
9794 |
[$#], 1, [],
|
|
|
9795 |
[m4_dquote(m4_shift($@))])])
|
|
|
9796 |
m4_define([lt_unquote], $1)
|
|
|
9797 |
|
|
|
9798 |
|
|
|
9799 |
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
|
|
9800 |
# ------------------------------------------
|
|
|
9801 |
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
|
|
9802 |
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
|
|
9803 |
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
|
|
9804 |
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
|
|
9805 |
# than defined and empty).
|
|
|
9806 |
#
|
|
|
9807 |
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
|
|
9808 |
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
|
|
9809 |
m4_define([lt_append],
|
|
|
9810 |
[m4_define([$1],
|
|
|
9811 |
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
|
|
9812 |
|
|
|
9813 |
|
|
|
9814 |
|
|
|
9815 |
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
|
|
9816 |
# ----------------------------------------------------------
|
|
|
9817 |
# Produce a SEP delimited list of all paired combinations of elements of
|
|
|
9818 |
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
|
|
9819 |
# has the form PREFIXmINFIXSUFFIXn.
|
|
|
9820 |
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
|
|
9821 |
m4_define([lt_combine],
|
|
|
9822 |
[m4_if(m4_eval([$# > 3]), [1],
|
|
|
9823 |
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
|
|
9824 |
[[m4_foreach([_Lt_prefix], [$2],
|
|
|
9825 |
[m4_foreach([_Lt_suffix],
|
|
|
9826 |
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
|
|
9827 |
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
|
|
9828 |
|
|
|
9829 |
|
|
|
9830 |
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
|
|
9831 |
# -----------------------------------------------------------------------
|
|
|
9832 |
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
|
|
9833 |
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
|
|
9834 |
m4_define([lt_if_append_uniq],
|
|
|
9835 |
[m4_ifdef([$1],
|
|
|
9836 |
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
|
|
9837 |
[lt_append([$1], [$2], [$3])$4],
|
|
|
9838 |
[$5])],
|
|
|
9839 |
[lt_append([$1], [$2], [$3])$4])])
|
|
|
9840 |
|
|
|
9841 |
|
|
|
9842 |
# lt_dict_add(DICT, KEY, VALUE)
|
|
|
9843 |
# -----------------------------
|
|
|
9844 |
m4_define([lt_dict_add],
|
|
|
9845 |
[m4_define([$1($2)], [$3])])
|
|
|
9846 |
|
|
|
9847 |
|
|
|
9848 |
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
|
|
9849 |
# --------------------------------------------
|
|
|
9850 |
m4_define([lt_dict_add_subkey],
|
|
|
9851 |
[m4_define([$1($2:$3)], [$4])])
|
|
|
9852 |
|
|
|
9853 |
|
|
|
9854 |
# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
|
|
9855 |
# ----------------------------------
|
|
|
9856 |
m4_define([lt_dict_fetch],
|
|
|
9857 |
[m4_ifval([$3],
|
|
|
9858 |
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
|
|
9859 |
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
|
|
9860 |
|
|
|
9861 |
|
|
|
9862 |
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
|
|
9863 |
# -----------------------------------------------------------------
|
|
|
9864 |
m4_define([lt_if_dict_fetch],
|
|
|
9865 |
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
|
|
9866 |
[$5],
|
|
|
9867 |
[$6])])
|
|
|
9868 |
|
|
|
9869 |
|
|
|
9870 |
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
|
|
9871 |
# --------------------------------------------------------------
|
|
|
9872 |
m4_define([lt_dict_filter],
|
|
|
9873 |
[m4_if([$5], [], [],
|
|
|
9874 |
[lt_join(m4_quote(m4_default([$4], [[, ]])),
|
|
|
9875 |
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
|
|
9876 |
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
|
|
9877 |
])
|
|
|
9878 |
|
|
|
9879 |
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
|
|
9880 |
#
|
|
|
9881 |
# Copyright (C) 2004 Free Software Foundation, Inc.
|
|
|
9882 |
# Written by Scott James Remnant, 2004
|
|
|
9883 |
#
|
|
|
9884 |
# This file is free software; the Free Software Foundation gives
|
|
|
9885 |
# unlimited permission to copy and/or distribute it, with or without
|
|
|
9886 |
# modifications, as long as this notice is preserved.
|
|
|
9887 |
|
|
|
9888 |
# @configure_input@
|
|
|
9889 |
|
|
|
9890 |
# serial 3337 ltversion.m4
|
|
|
9891 |
# This file is part of GNU Libtool
|
|
|
9892 |
|
|
|
9893 |
m4_define([LT_PACKAGE_VERSION], [2.4.2])
|
|
|
9894 |
m4_define([LT_PACKAGE_REVISION], [1.3337])
|
|
|
9895 |
|
|
|
9896 |
AC_DEFUN([LTVERSION_VERSION],
|
|
|
9897 |
[macro_version='2.4.2'
|
|
|
9898 |
macro_revision='1.3337'
|
|
|
9899 |
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
|
|
9900 |
_LT_DECL(, macro_revision, 0)
|
|
|
9901 |
])
|
|
|
9902 |
|
|
|
9903 |
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
|
|
9904 |
#
|
|
|
9905 |
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
|
|
9906 |
# Written by Scott James Remnant, 2004.
|
|
|
9907 |
#
|
|
|
9908 |
# This file is free software; the Free Software Foundation gives
|
|
|
9909 |
# unlimited permission to copy and/or distribute it, with or without
|
|
|
9910 |
# modifications, as long as this notice is preserved.
|
|
|
9911 |
|
|
|
9912 |
# serial 5 lt~obsolete.m4
|
|
|
9913 |
|
|
|
9914 |
# These exist entirely to fool aclocal when bootstrapping libtool.
|
|
|
9915 |
#
|
|
|
9916 |
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
|
|
9917 |
# which have later been changed to m4_define as they aren't part of the
|
|
|
9918 |
# exported API, or moved to Autoconf or Automake where they belong.
|
|
|
9919 |
#
|
|
|
9920 |
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
|
|
9921 |
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
|
|
9922 |
# using a macro with the same name in our local m4/libtool.m4 it'll
|
|
|
9923 |
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
|
|
9924 |
# and doesn't know about Autoconf macros at all.)
|
|
|
9925 |
#
|
|
|
9926 |
# So we provide this file, which has a silly filename so it's always
|
|
|
9927 |
# included after everything else. This provides aclocal with the
|
|
|
9928 |
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
|
|
9929 |
# because those macros already exist, or will be overwritten later.
|
|
|
9930 |
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
|
|
9931 |
#
|
|
|
9932 |
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
|
|
9933 |
# Yes, that means every name once taken will need to remain here until
|
|
|
9934 |
# we give up compatibility with versions before 1.7, at which point
|
|
|
9935 |
# we need to keep only those names which we still refer to.
|
|
|
9936 |
|
|
|
9937 |
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
|
9938 |
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
|
|
9939 |
|
|
|
9940 |
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
|
|
9941 |
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
|
|
9942 |
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
|
|
9943 |
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
|
|
9944 |
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
|
|
9945 |
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
|
|
9946 |
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
|
|
9947 |
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
|
|
9948 |
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
|
|
9949 |
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
|
|
9950 |
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
|
|
9951 |
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
|
|
9952 |
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
|
|
9953 |
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
|
|
9954 |
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
|
|
9955 |
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
|
|
9956 |
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
|
|
9957 |
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
|
|
9958 |
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
|
|
9959 |
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
|
|
9960 |
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
|
|
9961 |
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
|
|
9962 |
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
|
|
9963 |
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
|
|
9964 |
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
|
|
9965 |
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
|
|
9966 |
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
|
|
9967 |
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
|
|
9968 |
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
|
|
9969 |
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
|
|
9970 |
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
|
|
9971 |
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
|
|
9972 |
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
|
|
9973 |
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
|
|
9974 |
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
|
|
9975 |
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
|
|
9976 |
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
|
|
9977 |
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
|
|
9978 |
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
|
|
9979 |
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
|
|
9980 |
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
|
|
9981 |
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
|
|
9982 |
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
|
|
9983 |
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
|
|
9984 |
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
|
|
9985 |
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
|
|
9986 |
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
|
|
9987 |
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
|
|
9988 |
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
|
|
9989 |
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
|
|
9990 |
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
|
|
9991 |
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
|
|
9992 |
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
|
|
9993 |
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
|
|
9994 |
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
|
|
9995 |
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
|
|
9996 |
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
|
|
9997 |
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
|
|
9998 |
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
|
|
9999 |
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
|
|
10000 |
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
|
|
10001 |
|
|
|
10002 |
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
|
|
|
10003 |
#
|
|
|
10004 |
# This file is free software; the Free Software Foundation
|
|
|
10005 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10006 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10007 |
|
|
|
10008 |
# AM_AUTOMAKE_VERSION(VERSION)
|
|
|
10009 |
# ----------------------------
|
|
|
10010 |
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
|
10011 |
# generated from the m4 files accompanying Automake X.Y.
|
|
|
10012 |
# (This private macro should not be called outside this file.)
|
|
|
10013 |
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
|
10014 |
[am__api_version='1.14'
|
|
|
10015 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
|
10016 |
dnl require some minimum version. Point them to the right macro.
|
|
|
10017 |
m4_if([$1], [1.14], [],
|
|
|
10018 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
|
10019 |
])
|
|
|
10020 |
|
|
|
10021 |
# _AM_AUTOCONF_VERSION(VERSION)
|
|
|
10022 |
# -----------------------------
|
|
|
10023 |
# aclocal traces this macro to find the Autoconf version.
|
|
|
10024 |
# This is a private macro too. Using m4_define simplifies
|
|
|
10025 |
# the logic in aclocal, which can simply ignore this definition.
|
|
|
10026 |
m4_define([_AM_AUTOCONF_VERSION], [])
|
|
|
10027 |
|
|
|
10028 |
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
|
10029 |
# -------------------------------
|
|
|
10030 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
|
10031 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
|
10032 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
|
10033 |
[AM_AUTOMAKE_VERSION([1.14])dnl
|
|
|
10034 |
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
|
10035 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
|
10036 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
|
10037 |
|
|
|
10038 |
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
|
10039 |
|
|
|
10040 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
|
10041 |
#
|
|
|
10042 |
# This file is free software; the Free Software Foundation
|
|
|
10043 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10044 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10045 |
|
|
|
10046 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
|
10047 |
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
|
|
10048 |
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
|
|
10049 |
#
|
|
|
10050 |
# Of course, Automake must honor this variable whenever it calls a
|
|
|
10051 |
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
|
10052 |
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
|
10053 |
# depending on how configure is run. This is pretty annoying, since
|
|
|
10054 |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
|
10055 |
# source directory, any form will work fine, but in subdirectories a
|
|
|
10056 |
# relative path needs to be adjusted first.
|
|
|
10057 |
#
|
|
|
10058 |
# $ac_aux_dir/missing
|
|
|
10059 |
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
|
10060 |
# $top_srcdir/$ac_aux_dir/missing
|
|
|
10061 |
# fails if $ac_aux_dir is absolute,
|
|
|
10062 |
# fails when called from a subdirectory in a VPATH build with
|
|
|
10063 |
# a relative $ac_aux_dir
|
|
|
10064 |
#
|
|
|
10065 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
|
10066 |
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
|
10067 |
# harmless because $srcdir is '.', but things will broke when you
|
|
|
10068 |
# start a VPATH build or use an absolute $srcdir.
|
|
|
10069 |
#
|
|
|
10070 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
|
10071 |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
|
10072 |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
|
10073 |
# and then we would define $MISSING as
|
|
|
10074 |
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
|
10075 |
# This will work as long as MISSING is not called from configure, because
|
|
|
10076 |
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
|
10077 |
# However there are other variables, like CC, which are often used in
|
|
|
10078 |
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
|
10079 |
#
|
|
|
10080 |
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
|
10081 |
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
|
10082 |
# configured tree to be moved without reconfiguration.
|
|
|
10083 |
|
|
|
10084 |
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
|
10085 |
[dnl Rely on autoconf to set up CDPATH properly.
|
|
|
10086 |
AC_PREREQ([2.50])dnl
|
|
|
10087 |
# expand $ac_aux_dir to an absolute path
|
|
|
10088 |
am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
|
10089 |
])
|
|
|
10090 |
|
|
|
10091 |
# AM_CONDITIONAL -*- Autoconf -*-
|
|
|
10092 |
|
|
|
10093 |
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
|
|
10094 |
#
|
|
|
10095 |
# This file is free software; the Free Software Foundation
|
|
|
10096 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10097 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10098 |
|
|
|
10099 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
|
10100 |
# -------------------------------------
|
|
|
10101 |
# Define a conditional.
|
|
|
10102 |
AC_DEFUN([AM_CONDITIONAL],
|
|
|
10103 |
[AC_PREREQ([2.52])dnl
|
|
|
10104 |
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
|
10105 |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
|
10106 |
AC_SUBST([$1_TRUE])dnl
|
|
|
10107 |
AC_SUBST([$1_FALSE])dnl
|
|
|
10108 |
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
|
10109 |
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
|
10110 |
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
|
10111 |
if $2; then
|
|
|
10112 |
$1_TRUE=
|
|
|
10113 |
$1_FALSE='#'
|
|
|
10114 |
else
|
|
|
10115 |
$1_TRUE='#'
|
|
|
10116 |
$1_FALSE=
|
|
|
10117 |
fi
|
|
|
10118 |
AC_CONFIG_COMMANDS_PRE(
|
|
|
10119 |
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
|
10120 |
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
|
10121 |
Usually this means the macro was only invoked conditionally.]])
|
|
|
10122 |
fi])])
|
|
|
10123 |
|
|
|
10124 |
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
|
|
10125 |
#
|
|
|
10126 |
# This file is free software; the Free Software Foundation
|
|
|
10127 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10128 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10129 |
|
|
|
10130 |
|
|
|
10131 |
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
|
|
|
10132 |
# written in clear, in which case automake, when reading aclocal.m4,
|
|
|
10133 |
# will think it sees a *use*, and therefore will trigger all it's
|
|
|
10134 |
# C support machinery. Also note that it means that autoscan, seeing
|
|
|
10135 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
|
10136 |
|
|
|
10137 |
|
|
|
10138 |
# _AM_DEPENDENCIES(NAME)
|
|
|
10139 |
# ----------------------
|
|
|
10140 |
# See how the compiler implements dependency checking.
|
|
|
10141 |
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
|
|
|
10142 |
# We try a few techniques and use that to set a single cache variable.
|
|
|
10143 |
#
|
|
|
10144 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|
|
10145 |
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
|
10146 |
# dependency, and given that the user is not expected to run this macro,
|
|
|
10147 |
# just rely on AC_PROG_CC.
|
|
|
10148 |
AC_DEFUN([_AM_DEPENDENCIES],
|
|
|
10149 |
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
|
10150 |
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
|
10151 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
|
10152 |
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
|
10153 |
|
|
|
10154 |
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
|
|
|
10155 |
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
|
|
|
10156 |
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|
|
10157 |
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
|
|
|
10158 |
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
|
|
|
10159 |
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
|
10160 |
[depcc="$$1" am_compiler_list=])
|
|
|
10161 |
|
|
|
10162 |
AC_CACHE_CHECK([dependency style of $depcc],
|
|
|
10163 |
[am_cv_$1_dependencies_compiler_type],
|
|
|
10164 |
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
|
10165 |
# We make a subdir and do the tests there. Otherwise we can end up
|
|
|
10166 |
# making bogus files that we don't know about and never remove. For
|
|
|
10167 |
# instance it was reported that on HP-UX the gcc test will end up
|
|
|
10168 |
# making a dummy file named 'D' -- because '-MD' means "put the output
|
|
|
10169 |
# in D".
|
|
|
10170 |
rm -rf conftest.dir
|
|
|
10171 |
mkdir conftest.dir
|
|
|
10172 |
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
|
10173 |
# using a relative directory.
|
|
|
10174 |
cp "$am_depcomp" conftest.dir
|
|
|
10175 |
cd conftest.dir
|
|
|
10176 |
# We will build objects and dependencies in a subdirectory because
|
|
|
10177 |
# it helps to detect inapplicable dependency modes. For instance
|
|
|
10178 |
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
|
10179 |
# side effect of compilation, but ICC will put the dependencies in
|
|
|
10180 |
# the current directory while Tru64 will put them in the object
|
|
|
10181 |
# directory.
|
|
|
10182 |
mkdir sub
|
|
|
10183 |
|
|
|
10184 |
am_cv_$1_dependencies_compiler_type=none
|
|
|
10185 |
if test "$am_compiler_list" = ""; then
|
|
|
10186 |
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|
|
10187 |
fi
|
|
|
10188 |
am__universal=false
|
|
|
10189 |
m4_case([$1], [CC],
|
|
|
10190 |
[case " $depcc " in #(
|
|
|
10191 |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
|
10192 |
esac],
|
|
|
10193 |
[CXX],
|
|
|
10194 |
[case " $depcc " in #(
|
|
|
10195 |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
|
10196 |
esac])
|
|
|
10197 |
|
|
|
10198 |
for depmode in $am_compiler_list; do
|
|
|
10199 |
# Setup a source with many dependencies, because some compilers
|
|
|
10200 |
# like to wrap large dependency lists on column 80 (with \), and
|
|
|
10201 |
# we should not choose a depcomp mode which is confused by this.
|
|
|
10202 |
#
|
|
|
10203 |
# We need to recreate these files for each test, as the compiler may
|
|
|
10204 |
# overwrite some of them when testing with obscure command lines.
|
|
|
10205 |
# This happens at least with the AIX C compiler.
|
|
|
10206 |
: > sub/conftest.c
|
|
|
10207 |
for i in 1 2 3 4 5 6; do
|
|
|
10208 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
|
10209 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
|
|
10210 |
# Solaris 10 /bin/sh.
|
|
|
10211 |
echo '/* dummy */' > sub/conftst$i.h
|
|
|
10212 |
done
|
|
|
10213 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
|
10214 |
|
|
|
10215 |
# We check with '-c' and '-o' for the sake of the "dashmstdout"
|
|
|
10216 |
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
|
10217 |
# handle '-M -o', and we need to detect this. Also, some Intel
|
|
|
10218 |
# versions had trouble with output in subdirs.
|
|
|
10219 |
am__obj=sub/conftest.${OBJEXT-o}
|
|
|
10220 |
am__minus_obj="-o $am__obj"
|
|
|
10221 |
case $depmode in
|
|
|
10222 |
gcc)
|
|
|
10223 |
# This depmode causes a compiler race in universal mode.
|
|
|
10224 |
test "$am__universal" = false || continue
|
|
|
10225 |
;;
|
|
|
10226 |
nosideeffect)
|
|
|
10227 |
# After this tag, mechanisms are not by side-effect, so they'll
|
|
|
10228 |
# only be used when explicitly requested.
|
|
|
10229 |
if test "x$enable_dependency_tracking" = xyes; then
|
|
|
10230 |
continue
|
|
|
10231 |
else
|
|
|
10232 |
break
|
|
|
10233 |
fi
|
|
|
10234 |
;;
|
|
|
10235 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
|
|
10236 |
# This compiler won't grok '-c -o', but also, the minuso test has
|
|
|
10237 |
# not run yet. These depmodes are late enough in the game, and
|
|
|
10238 |
# so weak that their functioning should not be impacted.
|
|
|
10239 |
am__obj=conftest.${OBJEXT-o}
|
|
|
10240 |
am__minus_obj=
|
|
|
10241 |
;;
|
|
|
10242 |
none) break ;;
|
|
|
10243 |
esac
|
|
|
10244 |
if depmode=$depmode \
|
|
|
10245 |
source=sub/conftest.c object=$am__obj \
|
|
|
10246 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
|
10247 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
|
10248 |
>/dev/null 2>conftest.err &&
|
|
|
10249 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
10250 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
10251 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
10252 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
|
10253 |
# icc doesn't choke on unknown options, it will just issue warnings
|
|
|
10254 |
# or remarks (even with -Werror). So we grep stderr for any message
|
|
|
10255 |
# that says an option was ignored or not supported.
|
|
|
10256 |
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
|
10257 |
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
|
10258 |
# The diagnosis changed in icc 8.0:
|
|
|
10259 |
# icc: Command line remark: option '-MP' not supported
|
|
|
10260 |
if (grep 'ignoring option' conftest.err ||
|
|
|
10261 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
|
10262 |
am_cv_$1_dependencies_compiler_type=$depmode
|
|
|
10263 |
break
|
|
|
10264 |
fi
|
|
|
10265 |
fi
|
|
|
10266 |
done
|
|
|
10267 |
|
|
|
10268 |
cd ..
|
|
|
10269 |
rm -rf conftest.dir
|
|
|
10270 |
else
|
|
|
10271 |
am_cv_$1_dependencies_compiler_type=none
|
|
|
10272 |
fi
|
|
|
10273 |
])
|
|
|
10274 |
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
|
|
10275 |
AM_CONDITIONAL([am__fastdep$1], [
|
|
|
10276 |
test "x$enable_dependency_tracking" != xno \
|
|
|
10277 |
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
|
|
10278 |
])
|
|
|
10279 |
|
|
|
10280 |
|
|
|
10281 |
# AM_SET_DEPDIR
|
|
|
10282 |
# -------------
|
|
|
10283 |
# Choose a directory name for dependency files.
|
|
|
10284 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
|
|
|
10285 |
AC_DEFUN([AM_SET_DEPDIR],
|
|
|
10286 |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
|
10287 |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
|
|
10288 |
])
|
|
|
10289 |
|
|
|
10290 |
|
|
|
10291 |
# AM_DEP_TRACK
|
|
|
10292 |
# ------------
|
|
|
10293 |
AC_DEFUN([AM_DEP_TRACK],
|
|
|
10294 |
[AC_ARG_ENABLE([dependency-tracking], [dnl
|
|
|
10295 |
AS_HELP_STRING(
|
|
|
10296 |
[--enable-dependency-tracking],
|
|
|
10297 |
[do not reject slow dependency extractors])
|
|
|
10298 |
AS_HELP_STRING(
|
|
|
10299 |
[--disable-dependency-tracking],
|
|
|
10300 |
[speeds up one-time build])])
|
|
|
10301 |
if test "x$enable_dependency_tracking" != xno; then
|
|
|
10302 |
am_depcomp="$ac_aux_dir/depcomp"
|
|
|
10303 |
AMDEPBACKSLASH='\'
|
|
|
10304 |
am__nodep='_no'
|
|
|
10305 |
fi
|
|
|
10306 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
|
10307 |
AC_SUBST([AMDEPBACKSLASH])dnl
|
|
|
10308 |
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
|
|
10309 |
AC_SUBST([am__nodep])dnl
|
|
|
10310 |
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
|
10311 |
])
|
|
|
10312 |
|
|
|
10313 |
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
|
10314 |
|
|
|
10315 |
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
|
|
10316 |
#
|
|
|
10317 |
# This file is free software; the Free Software Foundation
|
|
|
10318 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10319 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10320 |
|
|
|
10321 |
|
|
|
10322 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
|
10323 |
# ------------------------------
|
|
|
10324 |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
|
10325 |
[{
|
|
|
10326 |
# Older Autoconf quotes --file arguments for eval, but not when files
|
|
|
10327 |
# are listed without --file. Let's play safe and only enable the eval
|
|
|
10328 |
# if we detect the quoting.
|
|
|
10329 |
case $CONFIG_FILES in
|
|
|
10330 |
*\'*) eval set x "$CONFIG_FILES" ;;
|
|
|
10331 |
*) set x $CONFIG_FILES ;;
|
|
|
10332 |
esac
|
|
|
10333 |
shift
|
|
|
10334 |
for mf
|
|
|
10335 |
do
|
|
|
10336 |
# Strip MF so we end up with the name of the file.
|
|
|
10337 |
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
|
10338 |
# Check whether this is an Automake generated Makefile or not.
|
|
|
10339 |
# We used to match only the files named 'Makefile.in', but
|
|
|
10340 |
# some people rename them; so instead we look at the file content.
|
|
|
10341 |
# Grep'ing the first line is not enough: some people post-process
|
|
|
10342 |
# each Makefile.in and add a new line on top of each file to say so.
|
|
|
10343 |
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
|
10344 |
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
|
10345 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
|
10346 |
dirpart=`AS_DIRNAME("$mf")`
|
|
|
10347 |
else
|
|
|
10348 |
continue
|
|
|
10349 |
fi
|
|
|
10350 |
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
|
10351 |
# from the Makefile without running 'make'.
|
|
|
10352 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
|
10353 |
test -z "$DEPDIR" && continue
|
|
|
10354 |
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
|
10355 |
test -z "$am__include" && continue
|
|
|
10356 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
|
10357 |
# Find all dependency output files, they are included files with
|
|
|
10358 |
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
|
10359 |
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
|
10360 |
# expansion.
|
|
|
10361 |
for file in `sed -n "
|
|
|
10362 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
|
10363 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
|
|
10364 |
# Make sure the directory exists.
|
|
|
10365 |
test -f "$dirpart/$file" && continue
|
|
|
10366 |
fdir=`AS_DIRNAME(["$file"])`
|
|
|
10367 |
AS_MKDIR_P([$dirpart/$fdir])
|
|
|
10368 |
# echo "creating $dirpart/$file"
|
|
|
10369 |
echo '# dummy' > "$dirpart/$file"
|
|
|
10370 |
done
|
|
|
10371 |
done
|
|
|
10372 |
}
|
|
|
10373 |
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
|
10374 |
|
|
|
10375 |
|
|
|
10376 |
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
|
10377 |
# -----------------------------
|
|
|
10378 |
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
|
10379 |
#
|
|
|
10380 |
# This code is only required when automatic dependency tracking
|
|
|
10381 |
# is enabled. FIXME. This creates each '.P' file that we will
|
|
|
10382 |
# need in order to bootstrap the dependency handling code.
|
|
|
10383 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
|
10384 |
[AC_CONFIG_COMMANDS([depfiles],
|
|
|
10385 |
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
|
10386 |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
|
10387 |
])
|
|
|
10388 |
|
|
|
10389 |
# Do all the work for Automake. -*- Autoconf -*-
|
|
|
10390 |
|
|
|
10391 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
|
10392 |
#
|
|
|
10393 |
# This file is free software; the Free Software Foundation
|
|
|
10394 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10395 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10396 |
|
|
|
10397 |
# This macro actually does too much. Some checks are only needed if
|
|
|
10398 |
# your package does certain things. But this isn't really a big deal.
|
|
|
10399 |
|
|
|
10400 |
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
|
|
|
10401 |
m4_define([AC_PROG_CC],
|
|
|
10402 |
m4_defn([AC_PROG_CC])
|
|
|
10403 |
[_AM_PROG_CC_C_O
|
|
|
10404 |
])
|
|
|
10405 |
|
|
|
10406 |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|
|
10407 |
# AM_INIT_AUTOMAKE([OPTIONS])
|
|
|
10408 |
# -----------------------------------------------
|
|
|
10409 |
# The call with PACKAGE and VERSION arguments is the old style
|
|
|
10410 |
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|
|
10411 |
# and VERSION should now be passed to AC_INIT and removed from
|
|
|
10412 |
# the call to AM_INIT_AUTOMAKE.
|
|
|
10413 |
# We support both call styles for the transition. After
|
|
|
10414 |
# the next Automake release, Autoconf can make the AC_INIT
|
|
|
10415 |
# arguments mandatory, and then we can depend on a new Autoconf
|
|
|
10416 |
# release and drop the old call support.
|
|
|
10417 |
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
|
10418 |
[AC_PREREQ([2.65])dnl
|
|
|
10419 |
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
|
10420 |
dnl the ones we care about.
|
|
|
10421 |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
|
10422 |
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
|
10423 |
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
|
10424 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
|
10425 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
|
10426 |
# is not polluted with repeated "-I."
|
|
|
10427 |
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
|
10428 |
# test to see if srcdir already configured
|
|
|
10429 |
if test -f $srcdir/config.status; then
|
|
|
10430 |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
|
10431 |
fi
|
|
|
10432 |
fi
|
|
|
10433 |
|
|
|
10434 |
# test whether we have cygpath
|
|
|
10435 |
if test -z "$CYGPATH_W"; then
|
|
|
10436 |
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
|
10437 |
CYGPATH_W='cygpath -w'
|
|
|
10438 |
else
|
|
|
10439 |
CYGPATH_W=echo
|
|
|
10440 |
fi
|
|
|
10441 |
fi
|
|
|
10442 |
AC_SUBST([CYGPATH_W])
|
|
|
10443 |
|
|
|
10444 |
# Define the identity of the package.
|
|
|
10445 |
dnl Distinguish between old-style and new-style calls.
|
|
|
10446 |
m4_ifval([$2],
|
|
|
10447 |
[AC_DIAGNOSE([obsolete],
|
|
|
10448 |
[$0: two- and three-arguments forms are deprecated.])
|
|
|
10449 |
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
|
10450 |
AC_SUBST([PACKAGE], [$1])dnl
|
|
|
10451 |
AC_SUBST([VERSION], [$2])],
|
|
|
10452 |
[_AM_SET_OPTIONS([$1])dnl
|
|
|
10453 |
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
|
10454 |
m4_if(
|
|
|
10455 |
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
|
|
10456 |
[ok:ok],,
|
|
|
10457 |
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
|
10458 |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
|
10459 |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
|
10460 |
|
|
|
10461 |
_AM_IF_OPTION([no-define],,
|
|
|
10462 |
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
|
|
10463 |
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
|
|
|
10464 |
|
|
|
10465 |
# Some tools Automake needs.
|
|
|
10466 |
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
|
10467 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
|
10468 |
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
|
|
|
10469 |
AM_MISSING_PROG([AUTOCONF], [autoconf])
|
|
|
10470 |
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
|
|
|
10471 |
AM_MISSING_PROG([AUTOHEADER], [autoheader])
|
|
|
10472 |
AM_MISSING_PROG([MAKEINFO], [makeinfo])
|
|
|
10473 |
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
|
10474 |
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
|
10475 |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
|
10476 |
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
|
10477 |
# dies out for good. For more background, see:
|
|
|
10478 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
|
10479 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
|
10480 |
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
|
|
10481 |
# We need awk for the "check" target. The system "awk" is bad on
|
|
|
10482 |
# some platforms.
|
|
|
10483 |
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
|
10484 |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
|
10485 |
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
|
10486 |
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
|
10487 |
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
|
10488 |
[_AM_PROG_TAR([v7])])])
|
|
|
10489 |
_AM_IF_OPTION([no-dependencies],,
|
|
|
10490 |
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
|
10491 |
[_AM_DEPENDENCIES([CC])],
|
|
|
10492 |
[m4_define([AC_PROG_CC],
|
|
|
10493 |
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
|
|
|
10494 |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
|
10495 |
[_AM_DEPENDENCIES([CXX])],
|
|
|
10496 |
[m4_define([AC_PROG_CXX],
|
|
|
10497 |
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
|
|
|
10498 |
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
|
10499 |
[_AM_DEPENDENCIES([OBJC])],
|
|
|
10500 |
[m4_define([AC_PROG_OBJC],
|
|
|
10501 |
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
|
|
|
10502 |
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
|
10503 |
[_AM_DEPENDENCIES([OBJCXX])],
|
|
|
10504 |
[m4_define([AC_PROG_OBJCXX],
|
|
|
10505 |
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
|
10506 |
])
|
|
|
10507 |
AC_REQUIRE([AM_SILENT_RULES])dnl
|
|
|
10508 |
dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
|
10509 |
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
|
10510 |
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
|
10511 |
AC_CONFIG_COMMANDS_PRE(dnl
|
|
|
10512 |
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
|
10513 |
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
|
10514 |
|
|
|
10515 |
# POSIX will say in a future version that running "rm -f" with no argument
|
|
|
10516 |
# is OK; and we want to be able to make that assumption in our Makefile
|
|
|
10517 |
# recipes. So use an aggressive probe to check that the usage we want is
|
|
|
10518 |
# actually supported "in the wild" to an acceptable degree.
|
|
|
10519 |
# See automake bug#10828.
|
|
|
10520 |
# To make any issue more visible, cause the running configure to be aborted
|
|
|
10521 |
# by default if the 'rm' program in use doesn't match our expectations; the
|
|
|
10522 |
# user can still override this though.
|
|
|
10523 |
if rm -f && rm -fr && rm -rf; then : OK; else
|
|
|
10524 |
cat >&2 <<'END'
|
|
|
10525 |
Oops!
|
|
|
10526 |
|
|
|
10527 |
Your 'rm' program seems unable to run without file operands specified
|
|
|
10528 |
on the command line, even when the '-f' option is present. This is contrary
|
|
|
10529 |
to the behaviour of most rm programs out there, and not conforming with
|
|
|
10530 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
|
|
10531 |
|
|
|
10532 |
Please tell bug-automake@gnu.org about your system, including the value
|
|
|
10533 |
of your $PATH and any error possibly output before this message. This
|
|
|
10534 |
can help us improve future automake versions.
|
|
|
10535 |
|
|
|
10536 |
END
|
|
|
10537 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
|
|
10538 |
echo 'Configuration will proceed anyway, since you have set the' >&2
|
|
|
10539 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
|
|
10540 |
echo >&2
|
|
|
10541 |
else
|
|
|
10542 |
cat >&2 <<'END'
|
|
|
10543 |
Aborting the configuration process, to ensure you take notice of the issue.
|
|
|
10544 |
|
|
|
10545 |
You can download and install GNU coreutils to get an 'rm' implementation
|
|
|
10546 |
that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
|
|
10547 |
|
|
|
10548 |
If you want to complete the configuration process using your problematic
|
|
|
10549 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
|
10550 |
to "yes", and re-run configure.
|
|
|
10551 |
|
|
|
10552 |
END
|
|
|
10553 |
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
|
|
|
10554 |
fi
|
|
|
10555 |
fi])
|
|
|
10556 |
|
|
|
10557 |
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
|
|
10558 |
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
|
|
10559 |
dnl mangled by Autoconf and run in a shell conditional statement.
|
|
|
10560 |
m4_define([_AC_COMPILER_EXEEXT],
|
|
|
10561 |
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
|
|
10562 |
|
|
|
10563 |
# When config.status generates a header, we must update the stamp-h file.
|
|
|
10564 |
# This file resides in the same directory as the config header
|
|
|
10565 |
# that is generated. The stamp files are numbered to have different names.
|
|
|
10566 |
|
|
|
10567 |
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|
|
10568 |
# loop where config.status creates the headers, so we can generate
|
|
|
10569 |
# our stamp files there.
|
|
|
10570 |
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|
|
10571 |
[# Compute $1's index in $config_headers.
|
|
|
10572 |
_am_arg=$1
|
|
|
10573 |
_am_stamp_count=1
|
|
|
10574 |
for _am_header in $config_headers :; do
|
|
|
10575 |
case $_am_header in
|
|
|
10576 |
$_am_arg | $_am_arg:* )
|
|
|
10577 |
break ;;
|
|
|
10578 |
* )
|
|
|
10579 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
|
10580 |
esac
|
|
|
10581 |
done
|
|
|
10582 |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
|
10583 |
|
|
|
10584 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
|
10585 |
#
|
|
|
10586 |
# This file is free software; the Free Software Foundation
|
|
|
10587 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10588 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10589 |
|
|
|
10590 |
# AM_PROG_INSTALL_SH
|
|
|
10591 |
# ------------------
|
|
|
10592 |
# Define $install_sh.
|
|
|
10593 |
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
|
10594 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
|
10595 |
if test x"${install_sh}" != xset; then
|
|
|
10596 |
case $am_aux_dir in
|
|
|
10597 |
*\ * | *\ *)
|
|
|
10598 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
|
10599 |
*)
|
|
|
10600 |
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
|
10601 |
esac
|
|
|
10602 |
fi
|
|
|
10603 |
AC_SUBST([install_sh])])
|
|
|
10604 |
|
|
|
10605 |
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
|
|
|
10606 |
#
|
|
|
10607 |
# This file is free software; the Free Software Foundation
|
|
|
10608 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10609 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10610 |
|
|
|
10611 |
# Check whether the underlying file-system supports filenames
|
|
|
10612 |
# with a leading dot. For instance MS-DOS doesn't.
|
|
|
10613 |
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
|
10614 |
[rm -rf .tst 2>/dev/null
|
|
|
10615 |
mkdir .tst 2>/dev/null
|
|
|
10616 |
if test -d .tst; then
|
|
|
10617 |
am__leading_dot=.
|
|
|
10618 |
else
|
|
|
10619 |
am__leading_dot=_
|
|
|
10620 |
fi
|
|
|
10621 |
rmdir .tst 2>/dev/null
|
|
|
10622 |
AC_SUBST([am__leading_dot])])
|
|
|
10623 |
|
|
|
10624 |
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
|
10625 |
# From Jim Meyering
|
|
|
10626 |
|
|
|
10627 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
|
10628 |
#
|
|
|
10629 |
# This file is free software; the Free Software Foundation
|
|
|
10630 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10631 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10632 |
|
|
|
10633 |
# AM_MAINTAINER_MODE([DEFAULT-MODE])
|
|
|
10634 |
# ----------------------------------
|
|
|
10635 |
# Control maintainer-specific portions of Makefiles.
|
|
|
10636 |
# Default is to disable them, unless 'enable' is passed literally.
|
|
|
10637 |
# For symmetry, 'disable' may be passed as well. Anyway, the user
|
|
|
10638 |
# can override the default with the --enable/--disable switch.
|
|
|
10639 |
AC_DEFUN([AM_MAINTAINER_MODE],
|
|
|
10640 |
[m4_case(m4_default([$1], [disable]),
|
|
|
10641 |
[enable], [m4_define([am_maintainer_other], [disable])],
|
|
|
10642 |
[disable], [m4_define([am_maintainer_other], [enable])],
|
|
|
10643 |
[m4_define([am_maintainer_other], [enable])
|
|
|
10644 |
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
|
|
10645 |
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
|
10646 |
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
|
|
10647 |
AC_ARG_ENABLE([maintainer-mode],
|
|
|
10648 |
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
|
|
|
10649 |
am_maintainer_other[ make rules and dependencies not useful
|
|
|
10650 |
(and sometimes confusing) to the casual installer])],
|
|
|
10651 |
[USE_MAINTAINER_MODE=$enableval],
|
|
|
10652 |
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
|
|
|
10653 |
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
|
|
10654 |
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
|
|
10655 |
MAINT=$MAINTAINER_MODE_TRUE
|
|
|
10656 |
AC_SUBST([MAINT])dnl
|
|
|
10657 |
]
|
|
|
10658 |
)
|
|
|
10659 |
|
|
|
10660 |
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
|
10661 |
|
|
|
10662 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
|
10663 |
#
|
|
|
10664 |
# This file is free software; the Free Software Foundation
|
|
|
10665 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10666 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10667 |
|
|
|
10668 |
# AM_MAKE_INCLUDE()
|
|
|
10669 |
# -----------------
|
|
|
10670 |
# Check to see how make treats includes.
|
|
|
10671 |
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
|
10672 |
[am_make=${MAKE-make}
|
|
|
10673 |
cat > confinc << 'END'
|
|
|
10674 |
am__doit:
|
|
|
10675 |
@echo this is the am__doit target
|
|
|
10676 |
.PHONY: am__doit
|
|
|
10677 |
END
|
|
|
10678 |
# If we don't find an include directive, just comment out the code.
|
|
|
10679 |
AC_MSG_CHECKING([for style of include used by $am_make])
|
|
|
10680 |
am__include="#"
|
|
|
10681 |
am__quote=
|
|
|
10682 |
_am_result=none
|
|
|
10683 |
# First try GNU make style include.
|
|
|
10684 |
echo "include confinc" > confmf
|
|
|
10685 |
# Ignore all kinds of additional output from 'make'.
|
|
|
10686 |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
|
10687 |
*the\ am__doit\ target*)
|
|
|
10688 |
am__include=include
|
|
|
10689 |
am__quote=
|
|
|
10690 |
_am_result=GNU
|
|
|
10691 |
;;
|
|
|
10692 |
esac
|
|
|
10693 |
# Now try BSD make style include.
|
|
|
10694 |
if test "$am__include" = "#"; then
|
|
|
10695 |
echo '.include "confinc"' > confmf
|
|
|
10696 |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
|
10697 |
*the\ am__doit\ target*)
|
|
|
10698 |
am__include=.include
|
|
|
10699 |
am__quote="\""
|
|
|
10700 |
_am_result=BSD
|
|
|
10701 |
;;
|
|
|
10702 |
esac
|
|
|
10703 |
fi
|
|
|
10704 |
AC_SUBST([am__include])
|
|
|
10705 |
AC_SUBST([am__quote])
|
|
|
10706 |
AC_MSG_RESULT([$_am_result])
|
|
|
10707 |
rm -f confinc confmf
|
|
|
10708 |
])
|
|
|
10709 |
|
|
|
10710 |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
|
10711 |
|
|
|
10712 |
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
|
|
10713 |
#
|
|
|
10714 |
# This file is free software; the Free Software Foundation
|
|
|
10715 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10716 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10717 |
|
|
|
10718 |
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
|
10719 |
# ------------------------------
|
|
|
10720 |
AC_DEFUN([AM_MISSING_PROG],
|
|
|
10721 |
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
|
10722 |
$1=${$1-"${am_missing_run}$2"}
|
|
|
10723 |
AC_SUBST($1)])
|
|
|
10724 |
|
|
|
10725 |
# AM_MISSING_HAS_RUN
|
|
|
10726 |
# ------------------
|
|
|
10727 |
# Define MISSING if not defined so far and test if it is modern enough.
|
|
|
10728 |
# If it is, set am_missing_run to use it, otherwise, to nothing.
|
|
|
10729 |
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
|
10730 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
|
10731 |
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
|
10732 |
if test x"${MISSING+set}" != xset; then
|
|
|
10733 |
case $am_aux_dir in
|
|
|
10734 |
*\ * | *\ *)
|
|
|
10735 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
|
10736 |
*)
|
|
|
10737 |
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
|
10738 |
esac
|
|
|
10739 |
fi
|
|
|
10740 |
# Use eval to expand $SHELL
|
|
|
10741 |
if eval "$MISSING --is-lightweight"; then
|
|
|
10742 |
am_missing_run="$MISSING "
|
|
|
10743 |
else
|
|
|
10744 |
am_missing_run=
|
|
|
10745 |
AC_MSG_WARN(['missing' script is too old or missing])
|
|
|
10746 |
fi
|
|
|
10747 |
])
|
|
|
10748 |
|
|
|
10749 |
# -*- Autoconf -*-
|
|
|
10750 |
# Obsolete and "removed" macros, that must however still report explicit
|
|
|
10751 |
# error messages when used, to smooth transition.
|
|
|
10752 |
#
|
|
|
10753 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
|
10754 |
#
|
|
|
10755 |
# This file is free software; the Free Software Foundation
|
|
|
10756 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10757 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10758 |
|
|
|
10759 |
AC_DEFUN([AM_CONFIG_HEADER],
|
|
|
10760 |
[AC_DIAGNOSE([obsolete],
|
|
|
10761 |
['$0': this macro is obsolete.
|
|
|
10762 |
You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
|
|
|
10763 |
AC_CONFIG_HEADERS($@)])
|
|
|
10764 |
|
|
|
10765 |
AC_DEFUN([AM_PROG_CC_STDC],
|
|
|
10766 |
[AC_PROG_CC
|
|
|
10767 |
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
|
|
|
10768 |
AC_DIAGNOSE([obsolete],
|
|
|
10769 |
['$0': this macro is obsolete.
|
|
|
10770 |
You should simply use the 'AC][_PROG_CC' macro instead.
|
|
|
10771 |
Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
|
|
|
10772 |
but upon 'ac_cv_prog_cc_stdc'.])])
|
|
|
10773 |
|
|
|
10774 |
AC_DEFUN([AM_C_PROTOTYPES],
|
|
|
10775 |
[AC_FATAL([automatic de-ANSI-fication support has been removed])])
|
|
|
10776 |
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
|
|
|
10777 |
|
|
|
10778 |
# Helper functions for option handling. -*- Autoconf -*-
|
|
|
10779 |
|
|
|
10780 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
|
10781 |
#
|
|
|
10782 |
# This file is free software; the Free Software Foundation
|
|
|
10783 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10784 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10785 |
|
|
|
10786 |
# _AM_MANGLE_OPTION(NAME)
|
|
|
10787 |
# -----------------------
|
|
|
10788 |
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
|
10789 |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
|
10790 |
|
|
|
10791 |
# _AM_SET_OPTION(NAME)
|
|
|
10792 |
# --------------------
|
|
|
10793 |
# Set option NAME. Presently that only means defining a flag for this option.
|
|
|
10794 |
AC_DEFUN([_AM_SET_OPTION],
|
|
|
10795 |
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
|
|
10796 |
|
|
|
10797 |
# _AM_SET_OPTIONS(OPTIONS)
|
|
|
10798 |
# ------------------------
|
|
|
10799 |
# OPTIONS is a space-separated list of Automake options.
|
|
|
10800 |
AC_DEFUN([_AM_SET_OPTIONS],
|
|
|
10801 |
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
|
10802 |
|
|
|
10803 |
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
|
10804 |
# -------------------------------------------
|
|
|
10805 |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
|
10806 |
AC_DEFUN([_AM_IF_OPTION],
|
|
|
10807 |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
|
10808 |
|
|
|
10809 |
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
|
|
10810 |
#
|
|
|
10811 |
# This file is free software; the Free Software Foundation
|
|
|
10812 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10813 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10814 |
|
|
|
10815 |
# _AM_PROG_CC_C_O
|
|
|
10816 |
# ---------------
|
|
|
10817 |
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
|
|
|
10818 |
# to automatically call this.
|
|
|
10819 |
AC_DEFUN([_AM_PROG_CC_C_O],
|
|
|
10820 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
|
10821 |
AC_REQUIRE_AUX_FILE([compile])dnl
|
|
|
10822 |
AC_LANG_PUSH([C])dnl
|
|
|
10823 |
AC_CACHE_CHECK(
|
|
|
10824 |
[whether $CC understands -c and -o together],
|
|
|
10825 |
[am_cv_prog_cc_c_o],
|
|
|
10826 |
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
|
|
10827 |
# Make sure it works both with $CC and with simple cc.
|
|
|
10828 |
# Following AC_PROG_CC_C_O, we do the test twice because some
|
|
|
10829 |
# compilers refuse to overwrite an existing .o file with -o,
|
|
|
10830 |
# though they will create one.
|
|
|
10831 |
am_cv_prog_cc_c_o=yes
|
|
|
10832 |
for am_i in 1 2; do
|
|
|
10833 |
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
|
|
|
10834 |
&& test -f conftest2.$ac_objext; then
|
|
|
10835 |
: OK
|
|
|
10836 |
else
|
|
|
10837 |
am_cv_prog_cc_c_o=no
|
|
|
10838 |
break
|
|
|
10839 |
fi
|
|
|
10840 |
done
|
|
|
10841 |
rm -f core conftest*
|
|
|
10842 |
unset am_i])
|
|
|
10843 |
if test "$am_cv_prog_cc_c_o" != yes; then
|
|
|
10844 |
# Losing compiler, so override with the script.
|
|
|
10845 |
# FIXME: It is wrong to rewrite CC.
|
|
|
10846 |
# But if we don't then we get into trouble of one sort or another.
|
|
|
10847 |
# A longer-term fix would be to have automake use am__CC in this case,
|
|
|
10848 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
|
|
10849 |
CC="$am_aux_dir/compile $CC"
|
|
|
10850 |
fi
|
|
|
10851 |
AC_LANG_POP([C])])
|
|
|
10852 |
|
|
|
10853 |
# For backward compatibility.
|
|
|
10854 |
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
|
|
10855 |
|
|
|
10856 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
|
10857 |
#
|
|
|
10858 |
# This file is free software; the Free Software Foundation
|
|
|
10859 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10860 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10861 |
|
|
|
10862 |
# AM_RUN_LOG(COMMAND)
|
|
|
10863 |
# -------------------
|
|
|
10864 |
# Run COMMAND, save the exit status in ac_status, and log it.
|
|
|
10865 |
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
|
|
10866 |
AC_DEFUN([AM_RUN_LOG],
|
|
|
10867 |
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
|
|
10868 |
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
|
|
10869 |
ac_status=$?
|
|
|
10870 |
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
|
10871 |
(exit $ac_status); }])
|
|
|
10872 |
|
|
|
10873 |
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
|
10874 |
|
|
|
10875 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
|
10876 |
#
|
|
|
10877 |
# This file is free software; the Free Software Foundation
|
|
|
10878 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10879 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10880 |
|
|
|
10881 |
# AM_SANITY_CHECK
|
|
|
10882 |
# ---------------
|
|
|
10883 |
AC_DEFUN([AM_SANITY_CHECK],
|
|
|
10884 |
[AC_MSG_CHECKING([whether build environment is sane])
|
|
|
10885 |
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
|
10886 |
# name. Accept space and tab only in the latter.
|
|
|
10887 |
am_lf='
|
|
|
10888 |
'
|
|
|
10889 |
case `pwd` in
|
|
|
10890 |
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
|
10891 |
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
|
10892 |
esac
|
|
|
10893 |
case $srcdir in
|
|
|
10894 |
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
|
10895 |
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
|
|
10896 |
esac
|
|
|
10897 |
|
|
|
10898 |
# Do 'set' in a subshell so we don't clobber the current shell's
|
|
|
10899 |
# arguments. Must try -L first in case configure is actually a
|
|
|
10900 |
# symlink; some systems play weird games with the mod time of symlinks
|
|
|
10901 |
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
|
10902 |
# directory).
|
|
|
10903 |
if (
|
|
|
10904 |
am_has_slept=no
|
|
|
10905 |
for am_try in 1 2; do
|
|
|
10906 |
echo "timestamp, slept: $am_has_slept" > conftest.file
|
|
|
10907 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
|
10908 |
if test "$[*]" = "X"; then
|
|
|
10909 |
# -L didn't work.
|
|
|
10910 |
set X `ls -t "$srcdir/configure" conftest.file`
|
|
|
10911 |
fi
|
|
|
10912 |
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
|
10913 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
|
10914 |
|
|
|
10915 |
# If neither matched, then we have a broken ls. This can happen
|
|
|
10916 |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
|
10917 |
# broken ls alias from the environment. This has actually
|
|
|
10918 |
# happened. Such a system could not be considered "sane".
|
|
|
10919 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
|
10920 |
alias in your environment])
|
|
|
10921 |
fi
|
|
|
10922 |
if test "$[2]" = conftest.file || test $am_try -eq 2; then
|
|
|
10923 |
break
|
|
|
10924 |
fi
|
|
|
10925 |
# Just in case.
|
|
|
10926 |
sleep 1
|
|
|
10927 |
am_has_slept=yes
|
|
|
10928 |
done
|
|
|
10929 |
test "$[2]" = conftest.file
|
|
|
10930 |
)
|
|
|
10931 |
then
|
|
|
10932 |
# Ok.
|
|
|
10933 |
:
|
|
|
10934 |
else
|
|
|
10935 |
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
|
10936 |
Check your system clock])
|
|
|
10937 |
fi
|
|
|
10938 |
AC_MSG_RESULT([yes])
|
|
|
10939 |
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
|
|
10940 |
# generated files are strictly newer.
|
|
|
10941 |
am_sleep_pid=
|
|
|
10942 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
|
|
10943 |
( sleep 1 ) &
|
|
|
10944 |
am_sleep_pid=$!
|
|
|
10945 |
fi
|
|
|
10946 |
AC_CONFIG_COMMANDS_PRE(
|
|
|
10947 |
[AC_MSG_CHECKING([that generated files are newer than configure])
|
|
|
10948 |
if test -n "$am_sleep_pid"; then
|
|
|
10949 |
# Hide warnings about reused PIDs.
|
|
|
10950 |
wait $am_sleep_pid 2>/dev/null
|
|
|
10951 |
fi
|
|
|
10952 |
AC_MSG_RESULT([done])])
|
|
|
10953 |
rm -f conftest.file
|
|
|
10954 |
])
|
|
|
10955 |
|
|
|
10956 |
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
|
|
|
10957 |
#
|
|
|
10958 |
# This file is free software; the Free Software Foundation
|
|
|
10959 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
10960 |
# with or without modifications, as long as this notice is preserved.
|
|
|
10961 |
|
|
|
10962 |
# AM_SILENT_RULES([DEFAULT])
|
|
|
10963 |
# --------------------------
|
|
|
10964 |
# Enable less verbose build rules; with the default set to DEFAULT
|
|
|
10965 |
# ("yes" being less verbose, "no" or empty being verbose).
|
|
|
10966 |
AC_DEFUN([AM_SILENT_RULES],
|
|
|
10967 |
[AC_ARG_ENABLE([silent-rules], [dnl
|
|
|
10968 |
AS_HELP_STRING(
|
|
|
10969 |
[--enable-silent-rules],
|
|
|
10970 |
[less verbose build output (undo: "make V=1")])
|
|
|
10971 |
AS_HELP_STRING(
|
|
|
10972 |
[--disable-silent-rules],
|
|
|
10973 |
[verbose build output (undo: "make V=0")])dnl
|
|
|
10974 |
])
|
|
|
10975 |
case $enable_silent_rules in @%:@ (((
|
|
|
10976 |
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
|
10977 |
no) AM_DEFAULT_VERBOSITY=1;;
|
|
|
10978 |
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
|
10979 |
esac
|
|
|
10980 |
dnl
|
|
|
10981 |
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
|
|
|
10982 |
dnl do not support nested variable expansions.
|
|
|
10983 |
dnl See automake bug#9928 and bug#10237.
|
|
|
10984 |
am_make=${MAKE-make}
|
|
|
10985 |
AC_CACHE_CHECK([whether $am_make supports nested variables],
|
|
|
10986 |
[am_cv_make_support_nested_variables],
|
|
|
10987 |
[if AS_ECHO([['TRUE=$(BAR$(V))
|
|
|
10988 |
BAR0=false
|
|
|
10989 |
BAR1=true
|
|
|
10990 |
V=1
|
|
|
10991 |
am__doit:
|
|
|
10992 |
@$(TRUE)
|
|
|
10993 |
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
|
|
10994 |
am_cv_make_support_nested_variables=yes
|
|
|
10995 |
else
|
|
|
10996 |
am_cv_make_support_nested_variables=no
|
|
|
10997 |
fi])
|
|
|
10998 |
if test $am_cv_make_support_nested_variables = yes; then
|
|
|
10999 |
dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
|
|
11000 |
AM_V='$(V)'
|
|
|
11001 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
|
11002 |
else
|
|
|
11003 |
AM_V=$AM_DEFAULT_VERBOSITY
|
|
|
11004 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
|
11005 |
fi
|
|
|
11006 |
AC_SUBST([AM_V])dnl
|
|
|
11007 |
AM_SUBST_NOTMAKE([AM_V])dnl
|
|
|
11008 |
AC_SUBST([AM_DEFAULT_V])dnl
|
|
|
11009 |
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
|
|
11010 |
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
|
11011 |
AM_BACKSLASH='\'
|
|
|
11012 |
AC_SUBST([AM_BACKSLASH])dnl
|
|
|
11013 |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
|
11014 |
])
|
|
|
11015 |
|
|
|
11016 |
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
|
|
11017 |
#
|
|
|
11018 |
# This file is free software; the Free Software Foundation
|
|
|
11019 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
11020 |
# with or without modifications, as long as this notice is preserved.
|
|
|
11021 |
|
|
|
11022 |
# AM_PROG_INSTALL_STRIP
|
|
|
11023 |
# ---------------------
|
|
|
11024 |
# One issue with vendor 'install' (even GNU) is that you can't
|
|
|
11025 |
# specify the program used to strip binaries. This is especially
|
|
|
11026 |
# annoying in cross-compiling environments, where the build's strip
|
|
|
11027 |
# is unlikely to handle the host's binaries.
|
|
|
11028 |
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
|
11029 |
# always use install-sh in "make install-strip", and initialize
|
|
|
11030 |
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
|
11031 |
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
|
11032 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
|
11033 |
# Installed binaries are usually stripped using 'strip' when the user
|
|
|
11034 |
# run "make install-strip". However 'strip' might not be the right
|
|
|
11035 |
# tool to use in cross-compilation environments, therefore Automake
|
|
|
11036 |
# will honor the 'STRIP' environment variable to overrule this program.
|
|
|
11037 |
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
|
|
|
11038 |
if test "$cross_compiling" != no; then
|
|
|
11039 |
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
|
11040 |
fi
|
|
|
11041 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
|
11042 |
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
|
11043 |
|
|
|
11044 |
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
|
|
|
11045 |
#
|
|
|
11046 |
# This file is free software; the Free Software Foundation
|
|
|
11047 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
11048 |
# with or without modifications, as long as this notice is preserved.
|
|
|
11049 |
|
|
|
11050 |
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
|
11051 |
# ---------------------------
|
|
|
11052 |
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
|
11053 |
# This macro is traced by Automake.
|
|
|
11054 |
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
|
11055 |
|
|
|
11056 |
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
|
11057 |
# --------------------------
|
|
|
11058 |
# Public sister of _AM_SUBST_NOTMAKE.
|
|
|
11059 |
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
|
11060 |
|
|
|
11061 |
# Check how to create a tarball. -*- Autoconf -*-
|
|
|
11062 |
|
|
|
11063 |
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
|
|
|
11064 |
#
|
|
|
11065 |
# This file is free software; the Free Software Foundation
|
|
|
11066 |
# gives unlimited permission to copy and/or distribute it,
|
|
|
11067 |
# with or without modifications, as long as this notice is preserved.
|
|
|
11068 |
|
|
|
11069 |
# _AM_PROG_TAR(FORMAT)
|
|
|
11070 |
# --------------------
|
|
|
11071 |
# Check how to create a tarball in format FORMAT.
|
|
|
11072 |
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
|
|
|
11073 |
#
|
|
|
11074 |
# Substitute a variable $(am__tar) that is a command
|
|
|
11075 |
# writing to stdout a FORMAT-tarball containing the directory
|
|
|
11076 |
# $tardir.
|
|
|
11077 |
# tardir=directory && $(am__tar) > result.tar
|
|
|
11078 |
#
|
|
|
11079 |
# Substitute a variable $(am__untar) that extract such
|
|
|
11080 |
# a tarball read from stdin.
|
|
|
11081 |
# $(am__untar) < result.tar
|
|
|
11082 |
#
|
|
|
11083 |
AC_DEFUN([_AM_PROG_TAR],
|
|
|
11084 |
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
|
|
11085 |
# in the wild :-( We should find a proper way to deprecate it ...
|
|
|
11086 |
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
|
|
11087 |
|
|
|
11088 |
# We'll loop over all known methods to create a tar archive until one works.
|
|
|
11089 |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|
|
11090 |
|
|
|
11091 |
m4_if([$1], [v7],
|
|
|
11092 |
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
|
|
11093 |
|
|
|
11094 |
[m4_case([$1],
|
|
|
11095 |
[ustar],
|
|
|
11096 |
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
|
|
|
11097 |
# There is notably a 21 bits limit for the UID and the GID. In fact,
|
|
|
11098 |
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
|
|
|
11099 |
# and bug#13588).
|
|
|
11100 |
am_max_uid=2097151 # 2^21 - 1
|
|
|
11101 |
am_max_gid=$am_max_uid
|
|
|
11102 |
# The $UID and $GID variables are not portable, so we need to resort
|
|
|
11103 |
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
|
|
|
11104 |
# below are definitely unexpected, so allow the users to see them
|
|
|
11105 |
# (that is, avoid stderr redirection).
|
|
|
11106 |
am_uid=`id -u || echo unknown`
|
|
|
11107 |
am_gid=`id -g || echo unknown`
|
|
|
11108 |
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
|
|
|
11109 |
if test $am_uid -le $am_max_uid; then
|
|
|
11110 |
AC_MSG_RESULT([yes])
|
|
|
11111 |
else
|
|
|
11112 |
AC_MSG_RESULT([no])
|
|
|
11113 |
_am_tools=none
|
|
|
11114 |
fi
|
|
|
11115 |
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
|
|
|
11116 |
if test $am_gid -le $am_max_gid; then
|
|
|
11117 |
AC_MSG_RESULT([yes])
|
|
|
11118 |
else
|
|
|
11119 |
AC_MSG_RESULT([no])
|
|
|
11120 |
_am_tools=none
|
|
|
11121 |
fi],
|
|
|
11122 |
|
|
|
11123 |
[pax],
|
|
|
11124 |
[],
|
|
|
11125 |
|
|
|
11126 |
[m4_fatal([Unknown tar format])])
|
|
|
11127 |
|
|
|
11128 |
AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
|
11129 |
|
|
|
11130 |
# Go ahead even if we have the value already cached. We do so because we
|
|
|
11131 |
# need to set the values for the 'am__tar' and 'am__untar' variables.
|
|
|
11132 |
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
|
11133 |
|
|
|
11134 |
for _am_tool in $_am_tools; do
|
|
|
11135 |
case $_am_tool in
|
|
|
11136 |
gnutar)
|
|
|
11137 |
for _am_tar in tar gnutar gtar; do
|
|
|
11138 |
AM_RUN_LOG([$_am_tar --version]) && break
|
|
|
11139 |
done
|
|
|
11140 |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|
|
11141 |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|
|
11142 |
am__untar="$_am_tar -xf -"
|
|
|
11143 |
;;
|
|
|
11144 |
plaintar)
|
|
|
11145 |
# Must skip GNU tar: if it does not support --format= it doesn't create
|
|
|
11146 |
# ustar tarball either.
|
|
|
11147 |
(tar --version) >/dev/null 2>&1 && continue
|
|
|
11148 |
am__tar='tar chf - "$$tardir"'
|
|
|
11149 |
am__tar_='tar chf - "$tardir"'
|
|
|
11150 |
am__untar='tar xf -'
|
|
|
11151 |
;;
|
|
|
11152 |
pax)
|
|
|
11153 |
am__tar='pax -L -x $1 -w "$$tardir"'
|
|
|
11154 |
am__tar_='pax -L -x $1 -w "$tardir"'
|
|
|
11155 |
am__untar='pax -r'
|
|
|
11156 |
;;
|
|
|
11157 |
cpio)
|
|
|
11158 |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|
|
11159 |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|
|
11160 |
am__untar='cpio -i -H $1 -d'
|
|
|
11161 |
;;
|
|
|
11162 |
none)
|
|
|
11163 |
am__tar=false
|
|
|
11164 |
am__tar_=false
|
|
|
11165 |
am__untar=false
|
|
|
11166 |
;;
|
|
|
11167 |
esac
|
|
|
11168 |
|
|
|
11169 |
# If the value was cached, stop now. We just wanted to have am__tar
|
|
|
11170 |
# and am__untar set.
|
|
|
11171 |
test -n "${am_cv_prog_tar_$1}" && break
|
|
|
11172 |
|
|
|
11173 |
# tar/untar a dummy directory, and stop if the command works.
|
|
|
11174 |
rm -rf conftest.dir
|
|
|
11175 |
mkdir conftest.dir
|
|
|
11176 |
echo GrepMe > conftest.dir/file
|
|
|
11177 |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|
|
11178 |
rm -rf conftest.dir
|
|
|
11179 |
if test -s conftest.tar; then
|
|
|
11180 |
AM_RUN_LOG([$am__untar <conftest.tar])
|
|
|
11181 |
AM_RUN_LOG([cat conftest.dir/file])
|
|
|
11182 |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|
|
11183 |
fi
|
|
|
11184 |
done
|
|
|
11185 |
rm -rf conftest.dir
|
|
|
11186 |
|
|
|
11187 |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|
|
11188 |
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|
|
11189 |
|
|
|
11190 |
AC_SUBST([am__tar])
|
|
|
11191 |
AC_SUBST([am__untar])
|
|
|
11192 |
]) # _AM_PROG_TAR
|
|
|
11193 |
|
|
|
11194 |
m4_include([acinclude.m4])
|