0 | |
# generated automatically by aclocal 1.10 -*- Autoconf -*-
|
|
0 |
# generated automatically by aclocal 1.11 -*- Autoconf -*-
|
1 | 1 |
|
2 | 2 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
3 | |
# 2005, 2006 Free Software Foundation, Inc.
|
|
3 |
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
4 | 4 |
# This file is free software; the Free Software Foundation
|
5 | 5 |
# gives unlimited permission to copy and/or distribute it,
|
6 | 6 |
# with or without modifications, as long as this notice is preserved.
|
|
10 | 10 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
11 | 11 |
# PARTICULAR PURPOSE.
|
12 | 12 |
|
13 | |
m4_if(m4_PACKAGE_VERSION, [2.61],,
|
14 | |
[m4_fatal([this file was generated for autoconf 2.61.
|
15 | |
You have another version of autoconf. If you want to use that,
|
16 | |
you should regenerate the build system entirely.], [63])])
|
|
13 |
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
14 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
15 |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
|
|
16 |
[m4_warning([this file was generated for autoconf 2.63.
|
|
17 |
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
18 |
If you have problems, you may need to regenerate the build system entirely.
|
|
19 |
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
17 | 20 |
|
18 | 21 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
19 | |
|
20 | |
# serial 51 AC_PROG_LIBTOOL
|
21 | |
|
22 | |
|
23 | |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
24 | |
# -----------------------------------------------------------
|
25 | |
# If this macro is not defined by Autoconf, define it here.
|
26 | |
m4_ifdef([AC_PROVIDE_IFELSE],
|
27 | |
[],
|
28 | |
[m4_define([AC_PROVIDE_IFELSE],
|
29 | |
[m4_ifdef([AC_PROVIDE_$1],
|
30 | |
[$2], [$3])])])
|
31 | |
|
32 | |
|
33 | |
# AC_PROG_LIBTOOL
|
34 | |
# ---------------
|
35 | |
AC_DEFUN([AC_PROG_LIBTOOL],
|
36 | |
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
|
37 | |
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
|
38 | |
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
|
39 | |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
40 | |
[AC_LIBTOOL_CXX],
|
41 | |
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
|
42 | |
])])
|
43 | |
dnl And a similar setup for Fortran 77 support
|
44 | |
AC_PROVIDE_IFELSE([AC_PROG_F77],
|
45 | |
[AC_LIBTOOL_F77],
|
46 | |
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
|
47 | |
])])
|
48 | |
|
49 | |
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
|
50 | |
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
|
51 | |
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
|
52 | |
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
53 | |
[AC_LIBTOOL_GCJ],
|
54 | |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
55 | |
[AC_LIBTOOL_GCJ],
|
56 | |
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
|
57 | |
[AC_LIBTOOL_GCJ],
|
58 | |
[ifdef([AC_PROG_GCJ],
|
59 | |
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
60 | |
ifdef([A][M_PROG_GCJ],
|
61 | |
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
62 | |
ifdef([LT_AC_PROG_GCJ],
|
63 | |
[define([LT_AC_PROG_GCJ],
|
64 | |
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
|
65 | |
])])# AC_PROG_LIBTOOL
|
66 | |
|
67 | |
|
68 | |
# _AC_PROG_LIBTOOL
|
69 | |
# ----------------
|
70 | |
AC_DEFUN([_AC_PROG_LIBTOOL],
|
71 | |
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
72 | |
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
|
73 | |
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
|
74 | |
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
|
|
22 |
#
|
|
23 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
24 |
# 2006, 2007, 2008 Free Software Foundation, Inc.
|
|
25 |
# Written by Gordon Matzigkeit, 1996
|
|
26 |
#
|
|
27 |
# This file is free software; the Free Software Foundation gives
|
|
28 |
# unlimited permission to copy and/or distribute it, with or without
|
|
29 |
# modifications, as long as this notice is preserved.
|
|
30 |
|
|
31 |
m4_define([_LT_COPYING], [dnl
|
|
32 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
33 |
# 2006, 2007, 2008 Free Software Foundation, Inc.
|
|
34 |
# Written by Gordon Matzigkeit, 1996
|
|
35 |
#
|
|
36 |
# This file is part of GNU Libtool.
|
|
37 |
#
|
|
38 |
# GNU Libtool is free software; you can redistribute it and/or
|
|
39 |
# modify it under the terms of the GNU General Public License as
|
|
40 |
# published by the Free Software Foundation; either version 2 of
|
|
41 |
# the License, or (at your option) any later version.
|
|
42 |
#
|
|
43 |
# As a special exception to the GNU General Public License,
|
|
44 |
# if you distribute this file as part of a program or library that
|
|
45 |
# is built using GNU Libtool, you may include this file under the
|
|
46 |
# same distribution terms that you use for the rest of that program.
|
|
47 |
#
|
|
48 |
# GNU Libtool is distributed in the hope that it will be useful,
|
|
49 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
50 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
51 |
# GNU General Public License for more details.
|
|
52 |
#
|
|
53 |
# You should have received a copy of the GNU General Public License
|
|
54 |
# along with GNU Libtool; see the file COPYING. If not, a copy
|
|
55 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
|
56 |
# obtained by writing to the Free Software Foundation, Inc.,
|
|
57 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
58 |
])
|
|
59 |
|
|
60 |
# serial 56 LT_INIT
|
|
61 |
|
|
62 |
|
|
63 |
# LT_PREREQ(VERSION)
|
|
64 |
# ------------------
|
|
65 |
# Complain and exit if this libtool version is less that VERSION.
|
|
66 |
m4_defun([LT_PREREQ],
|
|
67 |
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
|
|
68 |
[m4_default([$3],
|
|
69 |
[m4_fatal([Libtool version $1 or higher is required],
|
|
70 |
63)])],
|
|
71 |
[$2])])
|
|
72 |
|
|
73 |
|
|
74 |
# _LT_CHECK_BUILDDIR
|
|
75 |
# ------------------
|
|
76 |
# Complain if the absolute build directory name contains unusual characters
|
|
77 |
m4_defun([_LT_CHECK_BUILDDIR],
|
|
78 |
[case `pwd` in
|
|
79 |
*\ * | *\ *)
|
|
80 |
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
|
|
81 |
esac
|
|
82 |
])
|
|
83 |
|
|
84 |
|
|
85 |
# LT_INIT([OPTIONS])
|
|
86 |
# ------------------
|
|
87 |
AC_DEFUN([LT_INIT],
|
|
88 |
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
|
|
89 |
AC_BEFORE([$0], [LT_LANG])dnl
|
|
90 |
AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
91 |
AC_BEFORE([$0], [LTDL_INIT])dnl
|
|
92 |
m4_require([_LT_CHECK_BUILDDIR])dnl
|
|
93 |
|
|
94 |
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
|
|
95 |
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
|
|
96 |
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
|
|
97 |
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
|
|
98 |
dnl unless we require an AC_DEFUNed macro:
|
|
99 |
AC_REQUIRE([LTOPTIONS_VERSION])dnl
|
|
100 |
AC_REQUIRE([LTSUGAR_VERSION])dnl
|
|
101 |
AC_REQUIRE([LTVERSION_VERSION])dnl
|
|
102 |
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
|
103 |
m4_require([_LT_PROG_LTMAIN])dnl
|
|
104 |
|
|
105 |
dnl Parse OPTIONS
|
|
106 |
_LT_SET_OPTIONS([$0], [$1])
|
75 | 107 |
|
76 | 108 |
# This can be used to rebuild libtool when needed
|
77 | |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
|
109 |
LIBTOOL_DEPS="$ltmain"
|
78 | 110 |
|
79 | 111 |
# Always use our own libtool.
|
80 | 112 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
81 | 113 |
AC_SUBST(LIBTOOL)dnl
|
82 | 114 |
|
83 | |
# Prevent multiple expansion
|
84 | |
define([AC_PROG_LIBTOOL], [])
|
85 | |
])# _AC_PROG_LIBTOOL
|
86 | |
|
87 | |
|
88 | |
# AC_LIBTOOL_SETUP
|
89 | |
# ----------------
|
90 | |
AC_DEFUN([AC_LIBTOOL_SETUP],
|
91 | |
[AC_PREREQ(2.50)dnl
|
92 | |
AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
93 | |
AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
94 | |
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
95 | |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
115 |
_LT_SETUP
|
|
116 |
|
|
117 |
# Only expand once:
|
|
118 |
m4_define([LT_INIT])
|
|
119 |
])# LT_INIT
|
|
120 |
|
|
121 |
# Old names:
|
|
122 |
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
|
|
123 |
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
|
|
124 |
dnl aclocal-1.4 backwards compatibility:
|
|
125 |
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
|
|
126 |
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
|
|
127 |
|
|
128 |
|
|
129 |
# _LT_CC_BASENAME(CC)
|
|
130 |
# -------------------
|
|
131 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
|
132 |
m4_defun([_LT_CC_BASENAME],
|
|
133 |
[for cc_temp in $1""; do
|
|
134 |
case $cc_temp in
|
|
135 |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
|
136 |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
|
137 |
\-*) ;;
|
|
138 |
*) break;;
|
|
139 |
esac
|
|
140 |
done
|
|
141 |
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
142 |
])
|
|
143 |
|
|
144 |
|
|
145 |
# _LT_FILEUTILS_DEFAULTS
|
|
146 |
# ----------------------
|
|
147 |
# It is okay to use these file commands and assume they have been set
|
|
148 |
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
|
|
149 |
m4_defun([_LT_FILEUTILS_DEFAULTS],
|
|
150 |
[: ${CP="cp -f"}
|
|
151 |
: ${MV="mv -f"}
|
|
152 |
: ${RM="rm -f"}
|
|
153 |
])# _LT_FILEUTILS_DEFAULTS
|
|
154 |
|
|
155 |
|
|
156 |
# _LT_SETUP
|
|
157 |
# ---------
|
|
158 |
m4_defun([_LT_SETUP],
|
|
159 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
96 | 160 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
161 |
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
|
162 |
_LT_DECL([], [host], [0])dnl
|
|
163 |
_LT_DECL([], [host_os], [0])dnl
|
|
164 |
dnl
|
|
165 |
_LT_DECL([], [build_alias], [0], [The build system])dnl
|
|
166 |
_LT_DECL([], [build], [0])dnl
|
|
167 |
_LT_DECL([], [build_os], [0])dnl
|
|
168 |
dnl
|
97 | 169 |
AC_REQUIRE([AC_PROG_CC])dnl
|
98 | |
AC_REQUIRE([AC_PROG_LD])dnl
|
99 | |
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
|
100 | |
AC_REQUIRE([AC_PROG_NM])dnl
|
101 | |
|
|
170 |
AC_REQUIRE([LT_PATH_LD])dnl
|
|
171 |
AC_REQUIRE([LT_PATH_NM])dnl
|
|
172 |
dnl
|
102 | 173 |
AC_REQUIRE([AC_PROG_LN_S])dnl
|
103 | |
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
|
104 | |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
105 | |
AC_REQUIRE([AC_OBJEXT])dnl
|
106 | |
AC_REQUIRE([AC_EXEEXT])dnl
|
|
174 |
test -z "$LN_S" && LN_S="ln -s"
|
|
175 |
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
|
107 | 176 |
dnl
|
108 | |
|
109 | |
AC_LIBTOOL_SYS_MAX_CMD_LEN
|
110 | |
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
111 | |
AC_LIBTOOL_OBJDIR
|
112 | |
|
113 | |
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
114 | |
_LT_AC_PROG_ECHO_BACKSLASH
|
|
177 |
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
|
|
178 |
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
|
|
179 |
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
|
180 |
dnl
|
|
181 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
182 |
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
|
183 |
m4_require([_LT_CMD_RELOAD])dnl
|
|
184 |
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
|
185 |
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
|
186 |
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
187 |
|
|
188 |
_LT_CONFIG_LIBTOOL_INIT([
|
|
189 |
# See if we are running on zsh, and set the options which allow our
|
|
190 |
# commands through without removal of \ escapes INIT.
|
|
191 |
if test -n "\${ZSH_VERSION+set}" ; then
|
|
192 |
setopt NO_GLOB_SUBST
|
|
193 |
fi
|
|
194 |
])
|
|
195 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
196 |
setopt NO_GLOB_SUBST
|
|
197 |
fi
|
|
198 |
|
|
199 |
_LT_CHECK_OBJDIR
|
|
200 |
|
|
201 |
m4_require([_LT_TAG_COMPILER])dnl
|
|
202 |
_LT_PROG_ECHO_BACKSLASH
|
115 | 203 |
|
116 | 204 |
case $host_os in
|
117 | 205 |
aix3*)
|
|
127 | 215 |
|
128 | 216 |
# Sed substitution that helps us do robust quoting. It backslashifies
|
129 | 217 |
# metacharacters that are still active within double-quoted strings.
|
130 | |
Xsed='sed -e 1s/^X//'
|
131 | |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
|
|
218 |
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
132 | 219 |
|
133 | 220 |
# Same as above, but do not quote variable references.
|
134 | |
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
|
|
221 |
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
135 | 222 |
|
136 | 223 |
# Sed substitution to delay expansion of an escaped shell variable in a
|
137 | 224 |
# double_quote_subst'ed string.
|
138 | 225 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
139 | 226 |
|
|
227 |
# Sed substitution to delay expansion of an escaped single quote.
|
|
228 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
|
229 |
|
140 | 230 |
# Sed substitution to avoid accidental globbing in evaled expressions
|
141 | 231 |
no_glob_subst='s/\*/\\\*/g'
|
142 | 232 |
|
143 | |
# Constants:
|
144 | |
rm="rm -f"
|
145 | |
|
146 | 233 |
# Global variables:
|
147 | |
default_ofile=libtool
|
|
234 |
ofile=libtool
|
148 | 235 |
can_build_shared=yes
|
149 | 236 |
|
150 | 237 |
# All known linkers require a `.a' archive for static linking (except MSVC,
|
151 | 238 |
# which needs '.lib').
|
152 | 239 |
libext=a
|
153 | |
ltmain="$ac_aux_dir/ltmain.sh"
|
154 | |
ofile="$default_ofile"
|
|
240 |
|
155 | 241 |
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
156 | |
|
157 | |
AC_CHECK_TOOL(AR, ar, false)
|
158 | |
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
159 | |
AC_CHECK_TOOL(STRIP, strip, :)
|
160 | 242 |
|
161 | 243 |
old_CC="$CC"
|
162 | 244 |
old_CFLAGS="$CFLAGS"
|
163 | 245 |
|
164 | 246 |
# Set sane defaults for various variables
|
165 | |
test -z "$AR" && AR=ar
|
166 | |
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
167 | |
test -z "$AS" && AS=as
|
168 | 247 |
test -z "$CC" && CC=cc
|
169 | 248 |
test -z "$LTCC" && LTCC=$CC
|
170 | 249 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
171 | |
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
172 | 250 |
test -z "$LD" && LD=ld
|
173 | |
test -z "$LN_S" && LN_S="ln -s"
|
|
251 |
test -z "$ac_objext" && ac_objext=o
|
|
252 |
|
|
253 |
_LT_CC_BASENAME([$compiler])
|
|
254 |
|
|
255 |
# Only perform the check for file, if the check method requires it
|
174 | 256 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
175 | |
test -z "$NM" && NM=nm
|
176 | |
test -z "$SED" && SED=sed
|
177 | |
test -z "$OBJDUMP" && OBJDUMP=objdump
|
178 | |
test -z "$RANLIB" && RANLIB=:
|
179 | |
test -z "$STRIP" && STRIP=:
|
180 | |
test -z "$ac_objext" && ac_objext=o
|
181 | |
|
182 | |
# Determine commands to create old-style static archives.
|
183 | |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
184 | |
old_postinstall_cmds='chmod 644 $oldlib'
|
185 | |
old_postuninstall_cmds=
|
186 | |
|
187 | |
if test -n "$RANLIB"; then
|
188 | |
case $host_os in
|
189 | |
openbsd*)
|
190 | |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
191 | |
;;
|
192 | |
*)
|
193 | |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
194 | |
;;
|
195 | |
esac
|
196 | |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
197 | |
fi
|
198 | |
|
199 | |
_LT_CC_BASENAME([$compiler])
|
200 | |
|
201 | |
# Only perform the check for file, if the check method requires it
|
202 | 257 |
case $deplibs_check_method in
|
203 | 258 |
file_magic*)
|
204 | 259 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
205 | |
AC_PATH_MAGIC
|
|
260 |
_LT_PATH_MAGIC
|
206 | 261 |
fi
|
207 | 262 |
;;
|
208 | 263 |
esac
|
209 | 264 |
|
210 | |
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
|
211 | |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
212 | |
enable_win32_dll=yes, enable_win32_dll=no)
|
213 | |
|
214 | |
AC_ARG_ENABLE([libtool-lock],
|
215 | |
[AC_HELP_STRING([--disable-libtool-lock],
|
216 | |
[avoid locking (might break parallel builds)])])
|
217 | |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
218 | |
|
219 | |
AC_ARG_WITH([pic],
|
220 | |
[AC_HELP_STRING([--with-pic],
|
221 | |
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
222 | |
[pic_mode="$withval"],
|
223 | |
[pic_mode=default])
|
224 | |
test -z "$pic_mode" && pic_mode=default
|
225 | |
|
226 | 265 |
# Use C for the default configuration in the libtool script
|
227 | |
tagname=
|
228 | |
AC_LIBTOOL_LANG_C_CONFIG
|
229 | |
_LT_AC_TAGCONFIG
|
230 | |
])# AC_LIBTOOL_SETUP
|
231 | |
|
232 | |
|
233 | |
# _LT_AC_SYS_COMPILER
|
|
266 |
LT_SUPPORTED_TAG([CC])
|
|
267 |
_LT_LANG_C_CONFIG
|
|
268 |
_LT_LANG_DEFAULT_CONFIG
|
|
269 |
_LT_CONFIG_COMMANDS
|
|
270 |
])# _LT_SETUP
|
|
271 |
|
|
272 |
|
|
273 |
# _LT_PROG_LTMAIN
|
|
274 |
# ---------------
|
|
275 |
# Note that this code is called both from `configure', and `config.status'
|
|
276 |
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
|
|
277 |
# `config.status' has no value for ac_aux_dir unless we are using Automake,
|
|
278 |
# so we pass a copy along to make sure it has a sensible value anyway.
|
|
279 |
m4_defun([_LT_PROG_LTMAIN],
|
|
280 |
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
|
|
281 |
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
|
|
282 |
ltmain="$ac_aux_dir/ltmain.sh"
|
|
283 |
])# _LT_PROG_LTMAIN
|
|
284 |
|
|
285 |
|
|
286 |
|
|
287 |
# So that we can recreate a full libtool script including additional
|
|
288 |
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
|
289 |
# in macros and then make a single call at the end using the `libtool'
|
|
290 |
# label.
|
|
291 |
|
|
292 |
|
|
293 |
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
|
|
294 |
# ----------------------------------------
|
|
295 |
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
296 |
m4_define([_LT_CONFIG_LIBTOOL_INIT],
|
|
297 |
[m4_ifval([$1],
|
|
298 |
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
|
|
299 |
[$1
|
|
300 |
])])])
|
|
301 |
|
|
302 |
# Initialize.
|
|
303 |
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
|
|
304 |
|
|
305 |
|
|
306 |
# _LT_CONFIG_LIBTOOL([COMMANDS])
|
|
307 |
# ------------------------------
|
|
308 |
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
309 |
m4_define([_LT_CONFIG_LIBTOOL],
|
|
310 |
[m4_ifval([$1],
|
|
311 |
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
|
|
312 |
[$1
|
|
313 |
])])])
|
|
314 |
|
|
315 |
# Initialize.
|
|
316 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
|
|
317 |
|
|
318 |
|
|
319 |
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
|
|
320 |
# -----------------------------------------------------
|
|
321 |
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
|
|
322 |
[_LT_CONFIG_LIBTOOL([$1])
|
|
323 |
_LT_CONFIG_LIBTOOL_INIT([$2])
|
|
324 |
])
|
|
325 |
|
|
326 |
|
|
327 |
# _LT_FORMAT_COMMENT([COMMENT])
|
|
328 |
# -----------------------------
|
|
329 |
# Add leading comment marks to the start of each line, and a trailing
|
|
330 |
# full-stop to the whole comment if one is not present already.
|
|
331 |
m4_define([_LT_FORMAT_COMMENT],
|
|
332 |
[m4_ifval([$1], [
|
|
333 |
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
|
334 |
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
|
|
335 |
)])
|
|
336 |
|
|
337 |
|
|
338 |
|
|
339 |
|
|
340 |
|
|
341 |
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
|
342 |
# -------------------------------------------------------------------
|
|
343 |
# CONFIGNAME is the name given to the value in the libtool script.
|
|
344 |
# VARNAME is the (base) name used in the configure script.
|
|
345 |
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
|
|
346 |
# VARNAME. Any other value will be used directly.
|
|
347 |
m4_define([_LT_DECL],
|
|
348 |
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
|
|
349 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
|
|
350 |
[m4_ifval([$1], [$1], [$2])])
|
|
351 |
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
|
|
352 |
m4_ifval([$4],
|
|
353 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
|
|
354 |
lt_dict_add_subkey([lt_decl_dict], [$2],
|
|
355 |
[tagged?], [m4_ifval([$5], [yes], [no])])])
|
|
356 |
])
|
|
357 |
|
|
358 |
|
|
359 |
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
|
|
360 |
# --------------------------------------------------------
|
|
361 |
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
|
|
362 |
|
|
363 |
|
|
364 |
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
|
|
365 |
# ------------------------------------------------
|
|
366 |
m4_define([lt_decl_tag_varnames],
|
|
367 |
[_lt_decl_filter([tagged?], [yes], $@)])
|
|
368 |
|
|
369 |
|
|
370 |
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
|
|
371 |
# ---------------------------------------------------------
|
|
372 |
m4_define([_lt_decl_filter],
|
|
373 |
[m4_case([$#],
|
|
374 |
[0], [m4_fatal([$0: too few arguments: $#])],
|
|
375 |
[1], [m4_fatal([$0: too few arguments: $#: $1])],
|
|
376 |
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
|
|
377 |
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
|
|
378 |
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
|
|
379 |
])
|
|
380 |
|
|
381 |
|
|
382 |
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
|
|
383 |
# --------------------------------------------------
|
|
384 |
m4_define([lt_decl_quote_varnames],
|
|
385 |
[_lt_decl_filter([value], [1], $@)])
|
|
386 |
|
|
387 |
|
|
388 |
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
|
|
389 |
# ---------------------------------------------------
|
|
390 |
m4_define([lt_decl_dquote_varnames],
|
|
391 |
[_lt_decl_filter([value], [2], $@)])
|
|
392 |
|
|
393 |
|
|
394 |
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
|
|
395 |
# ---------------------------------------------------
|
|
396 |
m4_define([lt_decl_varnames_tagged],
|
|
397 |
[m4_assert([$# <= 2])dnl
|
|
398 |
_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
399 |
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
|
|
400 |
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
|
|
401 |
m4_define([_lt_decl_varnames_tagged],
|
|
402 |
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
|
|
403 |
|
|
404 |
|
|
405 |
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
|
|
406 |
# ------------------------------------------------
|
|
407 |
m4_define([lt_decl_all_varnames],
|
|
408 |
[_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
409 |
m4_if([$2], [],
|
|
410 |
m4_quote(lt_decl_varnames),
|
|
411 |
m4_quote(m4_shift($@))))[]dnl
|
|
412 |
])
|
|
413 |
m4_define([_lt_decl_all_varnames],
|
|
414 |
[lt_join($@, lt_decl_varnames_tagged([$1],
|
|
415 |
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
|
|
416 |
])
|
|
417 |
|
|
418 |
|
|
419 |
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
|
|
420 |
# ------------------------------------
|
|
421 |
# Quote a variable value, and forward it to `config.status' so that its
|
|
422 |
# declaration there will have the same value as in `configure'. VARNAME
|
|
423 |
# must have a single quote delimited value for this to work.
|
|
424 |
m4_define([_LT_CONFIG_STATUS_DECLARE],
|
|
425 |
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
|
|
426 |
|
|
427 |
|
|
428 |
# _LT_CONFIG_STATUS_DECLARATIONS
|
|
429 |
# ------------------------------
|
|
430 |
# We delimit libtool config variables with single quotes, so when
|
|
431 |
# we write them to config.status, we have to be sure to quote all
|
|
432 |
# embedded single quotes properly. In configure, this macro expands
|
|
433 |
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
|
434 |
#
|
|
435 |
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
|
|
436 |
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
|
437 |
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
|
438 |
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
|
439 |
|
|
440 |
|
|
441 |
# _LT_LIBTOOL_TAGS
|
|
442 |
# ----------------
|
|
443 |
# Output comment and list of tags supported by the script
|
|
444 |
m4_defun([_LT_LIBTOOL_TAGS],
|
|
445 |
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
|
|
446 |
available_tags="_LT_TAGS"dnl
|
|
447 |
])
|
|
448 |
|
|
449 |
|
|
450 |
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
|
|
451 |
# -----------------------------------
|
|
452 |
# Extract the dictionary values for VARNAME (optionally with TAG) and
|
|
453 |
# expand to a commented shell variable setting:
|
|
454 |
#
|
|
455 |
# # Some comment about what VAR is for.
|
|
456 |
# visible_name=$lt_internal_name
|
|
457 |
m4_define([_LT_LIBTOOL_DECLARE],
|
|
458 |
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
|
|
459 |
[description])))[]dnl
|
|
460 |
m4_pushdef([_libtool_name],
|
|
461 |
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
|
|
462 |
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
|
|
463 |
[0], [_libtool_name=[$]$1],
|
|
464 |
[1], [_libtool_name=$lt_[]$1],
|
|
465 |
[2], [_libtool_name=$lt_[]$1],
|
|
466 |
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
|
|
467 |
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
|
|
468 |
])
|
|
469 |
|
|
470 |
|
|
471 |
# _LT_LIBTOOL_CONFIG_VARS
|
|
472 |
# -----------------------
|
|
473 |
# Produce commented declarations of non-tagged libtool config variables
|
|
474 |
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
|
|
475 |
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
|
|
476 |
# section) are produced by _LT_LIBTOOL_TAG_VARS.
|
|
477 |
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
|
|
478 |
[m4_foreach([_lt_var],
|
|
479 |
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
|
|
480 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
|
|
481 |
|
|
482 |
|
|
483 |
# _LT_LIBTOOL_TAG_VARS(TAG)
|
|
484 |
# -------------------------
|
|
485 |
m4_define([_LT_LIBTOOL_TAG_VARS],
|
|
486 |
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
|
|
487 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
|
|
488 |
|
|
489 |
|
|
490 |
# _LT_TAGVAR(VARNAME, [TAGNAME])
|
|
491 |
# ------------------------------
|
|
492 |
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
|
|
493 |
|
|
494 |
|
|
495 |
# _LT_CONFIG_COMMANDS
|
234 | 496 |
# -------------------
|
235 | |
AC_DEFUN([_LT_AC_SYS_COMPILER],
|
|
497 |
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
|
|
498 |
# variables for single and double quote escaping we saved from calls
|
|
499 |
# to _LT_DECL, we can put quote escaped variables declarations
|
|
500 |
# into `config.status', and then the shell code to quote escape them in
|
|
501 |
# for loops in `config.status'. Finally, any additional code accumulated
|
|
502 |
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
|
|
503 |
m4_defun([_LT_CONFIG_COMMANDS],
|
|
504 |
[AC_PROVIDE_IFELSE([LT_OUTPUT],
|
|
505 |
dnl If the libtool generation code has been placed in $CONFIG_LT,
|
|
506 |
dnl instead of duplicating it all over again into config.status,
|
|
507 |
dnl then we will have config.status run $CONFIG_LT later, so it
|
|
508 |
dnl needs to know what name is stored there:
|
|
509 |
[AC_CONFIG_COMMANDS([libtool],
|
|
510 |
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
|
|
511 |
dnl If the libtool generation code is destined for config.status,
|
|
512 |
dnl expand the accumulated commands and init code now:
|
|
513 |
[AC_CONFIG_COMMANDS([libtool],
|
|
514 |
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
|
|
515 |
])#_LT_CONFIG_COMMANDS
|
|
516 |
|
|
517 |
|
|
518 |
# Initialize.
|
|
519 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
|
|
520 |
[
|
|
521 |
|
|
522 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
523 |
# if CDPATH is set.
|
|
524 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
525 |
|
|
526 |
sed_quote_subst='$sed_quote_subst'
|
|
527 |
double_quote_subst='$double_quote_subst'
|
|
528 |
delay_variable_subst='$delay_variable_subst'
|
|
529 |
_LT_CONFIG_STATUS_DECLARATIONS
|
|
530 |
LTCC='$LTCC'
|
|
531 |
LTCFLAGS='$LTCFLAGS'
|
|
532 |
compiler='$compiler_DEFAULT'
|
|
533 |
|
|
534 |
# Quote evaled strings.
|
|
535 |
for var in lt_decl_all_varnames([[ \
|
|
536 |
]], lt_decl_quote_varnames); do
|
|
537 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
|
538 |
*[[\\\\\\\`\\"\\\$]]*)
|
|
539 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
|
540 |
;;
|
|
541 |
*)
|
|
542 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
543 |
;;
|
|
544 |
esac
|
|
545 |
done
|
|
546 |
|
|
547 |
# Double-quote double-evaled strings.
|
|
548 |
for var in lt_decl_all_varnames([[ \
|
|
549 |
]], lt_decl_dquote_varnames); do
|
|
550 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
|
551 |
*[[\\\\\\\`\\"\\\$]]*)
|
|
552 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
|
553 |
;;
|
|
554 |
*)
|
|
555 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
556 |
;;
|
|
557 |
esac
|
|
558 |
done
|
|
559 |
|
|
560 |
# Fix-up fallback echo if it was mangled by the above quoting rules.
|
|
561 |
case \$lt_ECHO in
|
|
562 |
*'\\\[$]0 --fallback-echo"')dnl "
|
|
563 |
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
|
|
564 |
;;
|
|
565 |
esac
|
|
566 |
|
|
567 |
_LT_OUTPUT_LIBTOOL_INIT
|
|
568 |
])
|
|
569 |
|
|
570 |
|
|
571 |
# LT_OUTPUT
|
|
572 |
# ---------
|
|
573 |
# This macro allows early generation of the libtool script (before
|
|
574 |
# AC_OUTPUT is called), incase it is used in configure for compilation
|
|
575 |
# tests.
|
|
576 |
AC_DEFUN([LT_OUTPUT],
|
|
577 |
[: ${CONFIG_LT=./config.lt}
|
|
578 |
AC_MSG_NOTICE([creating $CONFIG_LT])
|
|
579 |
cat >"$CONFIG_LT" <<_LTEOF
|
|
580 |
#! $SHELL
|
|
581 |
# Generated by $as_me.
|
|
582 |
# Run this file to recreate a libtool stub with the current configuration.
|
|
583 |
|
|
584 |
lt_cl_silent=false
|
|
585 |
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
586 |
_LTEOF
|
|
587 |
|
|
588 |
cat >>"$CONFIG_LT" <<\_LTEOF
|
|
589 |
AS_SHELL_SANITIZE
|
|
590 |
_AS_PREPARE
|
|
591 |
|
|
592 |
exec AS_MESSAGE_FD>&1
|
|
593 |
exec AS_MESSAGE_LOG_FD>>config.log
|
|
594 |
{
|
|
595 |
echo
|
|
596 |
AS_BOX([Running $as_me.])
|
|
597 |
} >&AS_MESSAGE_LOG_FD
|
|
598 |
|
|
599 |
lt_cl_help="\
|
|
600 |
\`$as_me' creates a local libtool stub from the current configuration,
|
|
601 |
for use in further configure time tests before the real libtool is
|
|
602 |
generated.
|
|
603 |
|
|
604 |
Usage: $[0] [[OPTIONS]]
|
|
605 |
|
|
606 |
-h, --help print this help, then exit
|
|
607 |
-V, --version print version number, then exit
|
|
608 |
-q, --quiet do not print progress messages
|
|
609 |
-d, --debug don't remove temporary files
|
|
610 |
|
|
611 |
Report bugs to <bug-libtool@gnu.org>."
|
|
612 |
|
|
613 |
lt_cl_version="\
|
|
614 |
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
615 |
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
|
616 |
configured by $[0], generated by m4_PACKAGE_STRING.
|
|
617 |
|
|
618 |
Copyright (C) 2008 Free Software Foundation, Inc.
|
|
619 |
This config.lt script is free software; the Free Software Foundation
|
|
620 |
gives unlimited permision to copy, distribute and modify it."
|
|
621 |
|
|
622 |
while test $[#] != 0
|
|
623 |
do
|
|
624 |
case $[1] in
|
|
625 |
--version | --v* | -V )
|
|
626 |
echo "$lt_cl_version"; exit 0 ;;
|
|
627 |
--help | --h* | -h )
|
|
628 |
echo "$lt_cl_help"; exit 0 ;;
|
|
629 |
--debug | --d* | -d )
|
|
630 |
debug=: ;;
|
|
631 |
--quiet | --q* | --silent | --s* | -q )
|
|
632 |
lt_cl_silent=: ;;
|
|
633 |
|
|
634 |
-*) AC_MSG_ERROR([unrecognized option: $[1]
|
|
635 |
Try \`$[0] --help' for more information.]) ;;
|
|
636 |
|
|
637 |
*) AC_MSG_ERROR([unrecognized argument: $[1]
|
|
638 |
Try \`$[0] --help' for more information.]) ;;
|
|
639 |
esac
|
|
640 |
shift
|
|
641 |
done
|
|
642 |
|
|
643 |
if $lt_cl_silent; then
|
|
644 |
exec AS_MESSAGE_FD>/dev/null
|
|
645 |
fi
|
|
646 |
_LTEOF
|
|
647 |
|
|
648 |
cat >>"$CONFIG_LT" <<_LTEOF
|
|
649 |
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
|
|
650 |
_LTEOF
|
|
651 |
|
|
652 |
cat >>"$CONFIG_LT" <<\_LTEOF
|
|
653 |
AC_MSG_NOTICE([creating $ofile])
|
|
654 |
_LT_OUTPUT_LIBTOOL_COMMANDS
|
|
655 |
AS_EXIT(0)
|
|
656 |
_LTEOF
|
|
657 |
chmod +x "$CONFIG_LT"
|
|
658 |
|
|
659 |
# configure is writing to config.log, but config.lt does its own redirection,
|
|
660 |
# appending to config.log, which fails on DOS, as config.log is still kept
|
|
661 |
# open by configure. Here we exec the FD to /dev/null, effectively closing
|
|
662 |
# config.log, so it can be properly (re)opened and appended to by config.lt.
|
|
663 |
if test "$no_create" != yes; then
|
|
664 |
lt_cl_success=:
|
|
665 |
test "$silent" = yes &&
|
|
666 |
lt_config_lt_args="$lt_config_lt_args --quiet"
|
|
667 |
exec AS_MESSAGE_LOG_FD>/dev/null
|
|
668 |
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
|
669 |
exec AS_MESSAGE_LOG_FD>>config.log
|
|
670 |
$lt_cl_success || AS_EXIT(1)
|
|
671 |
fi
|
|
672 |
])# LT_OUTPUT
|
|
673 |
|
|
674 |
|
|
675 |
# _LT_CONFIG(TAG)
|
|
676 |
# ---------------
|
|
677 |
# If TAG is the built-in tag, create an initial libtool script with a
|
|
678 |
# default configuration from the untagged config vars. Otherwise add code
|
|
679 |
# to config.status for appending the configuration named by TAG from the
|
|
680 |
# matching tagged config vars.
|
|
681 |
m4_defun([_LT_CONFIG],
|
|
682 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
683 |
_LT_CONFIG_SAVE_COMMANDS([
|
|
684 |
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
|
|
685 |
m4_if(_LT_TAG, [C], [
|
|
686 |
# See if we are running on zsh, and set the options which allow our
|
|
687 |
# commands through without removal of \ escapes.
|
|
688 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
689 |
setopt NO_GLOB_SUBST
|
|
690 |
fi
|
|
691 |
|
|
692 |
cfgfile="${ofile}T"
|
|
693 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
|
694 |
$RM "$cfgfile"
|
|
695 |
|
|
696 |
cat <<_LT_EOF >> "$cfgfile"
|
|
697 |
#! $SHELL
|
|
698 |
|
|
699 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
|
700 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
|
701 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
702 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
703 |
#
|
|
704 |
_LT_COPYING
|
|
705 |
_LT_LIBTOOL_TAGS
|
|
706 |
|
|
707 |
# ### BEGIN LIBTOOL CONFIG
|
|
708 |
_LT_LIBTOOL_CONFIG_VARS
|
|
709 |
_LT_LIBTOOL_TAG_VARS
|
|
710 |
# ### END LIBTOOL CONFIG
|
|
711 |
|
|
712 |
_LT_EOF
|
|
713 |
|
|
714 |
case $host_os in
|
|
715 |
aix3*)
|
|
716 |
cat <<\_LT_EOF >> "$cfgfile"
|
|
717 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
718 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
719 |
# vanish in a puff of smoke.
|
|
720 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
721 |
COLLECT_NAMES=
|
|
722 |
export COLLECT_NAMES
|
|
723 |
fi
|
|
724 |
_LT_EOF
|
|
725 |
;;
|
|
726 |
esac
|
|
727 |
|
|
728 |
_LT_PROG_LTMAIN
|
|
729 |
|
|
730 |
# We use sed instead of cat because bash on DJGPP gets confused if
|
|
731 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
732 |
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
733 |
# is reportedly fixed, but why not run on old versions too?
|
|
734 |
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
735 |
|| (rm -f "$cfgfile"; exit 1)
|
|
736 |
|
|
737 |
_LT_PROG_XSI_SHELLFNS
|
|
738 |
|
|
739 |
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
740 |
|| (rm -f "$cfgfile"; exit 1)
|
|
741 |
|
|
742 |
mv -f "$cfgfile" "$ofile" ||
|
|
743 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
744 |
chmod +x "$ofile"
|
|
745 |
],
|
|
746 |
[cat <<_LT_EOF >> "$ofile"
|
|
747 |
|
|
748 |
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
|
|
749 |
dnl in a comment (ie after a #).
|
|
750 |
# ### BEGIN LIBTOOL TAG CONFIG: $1
|
|
751 |
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
|
|
752 |
# ### END LIBTOOL TAG CONFIG: $1
|
|
753 |
_LT_EOF
|
|
754 |
])dnl /m4_if
|
|
755 |
],
|
|
756 |
[m4_if([$1], [], [
|
|
757 |
PACKAGE='$PACKAGE'
|
|
758 |
VERSION='$VERSION'
|
|
759 |
TIMESTAMP='$TIMESTAMP'
|
|
760 |
RM='$RM'
|
|
761 |
ofile='$ofile'], [])
|
|
762 |
])dnl /_LT_CONFIG_SAVE_COMMANDS
|
|
763 |
])# _LT_CONFIG
|
|
764 |
|
|
765 |
|
|
766 |
# LT_SUPPORTED_TAG(TAG)
|
|
767 |
# ---------------------
|
|
768 |
# Trace this macro to discover what tags are supported by the libtool
|
|
769 |
# --tag option, using:
|
|
770 |
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
|
|
771 |
AC_DEFUN([LT_SUPPORTED_TAG], [])
|
|
772 |
|
|
773 |
|
|
774 |
# C support is built-in for now
|
|
775 |
m4_define([_LT_LANG_C_enabled], [])
|
|
776 |
m4_define([_LT_TAGS], [])
|
|
777 |
|
|
778 |
|
|
779 |
# LT_LANG(LANG)
|
|
780 |
# -------------
|
|
781 |
# Enable libtool support for the given language if not already enabled.
|
|
782 |
AC_DEFUN([LT_LANG],
|
|
783 |
[AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
784 |
m4_case([$1],
|
|
785 |
[C], [_LT_LANG(C)],
|
|
786 |
[C++], [_LT_LANG(CXX)],
|
|
787 |
[Java], [_LT_LANG(GCJ)],
|
|
788 |
[Fortran 77], [_LT_LANG(F77)],
|
|
789 |
[Fortran], [_LT_LANG(FC)],
|
|
790 |
[Windows Resource], [_LT_LANG(RC)],
|
|
791 |
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
|
|
792 |
[_LT_LANG($1)],
|
|
793 |
[m4_fatal([$0: unsupported language: "$1"])])])dnl
|
|
794 |
])# LT_LANG
|
|
795 |
|
|
796 |
|
|
797 |
# _LT_LANG(LANGNAME)
|
|
798 |
# ------------------
|
|
799 |
m4_defun([_LT_LANG],
|
|
800 |
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
|
|
801 |
[LT_SUPPORTED_TAG([$1])dnl
|
|
802 |
m4_append([_LT_TAGS], [$1 ])dnl
|
|
803 |
m4_define([_LT_LANG_]$1[_enabled], [])dnl
|
|
804 |
_LT_LANG_$1_CONFIG($1)])dnl
|
|
805 |
])# _LT_LANG
|
|
806 |
|
|
807 |
|
|
808 |
# _LT_LANG_DEFAULT_CONFIG
|
|
809 |
# -----------------------
|
|
810 |
m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
|
811 |
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
812 |
[LT_LANG(CXX)],
|
|
813 |
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
|
|
814 |
|
|
815 |
AC_PROVIDE_IFELSE([AC_PROG_F77],
|
|
816 |
[LT_LANG(F77)],
|
|
817 |
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
|
|
818 |
|
|
819 |
AC_PROVIDE_IFELSE([AC_PROG_FC],
|
|
820 |
[LT_LANG(FC)],
|
|
821 |
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
|
|
822 |
|
|
823 |
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
|
|
824 |
dnl pulling things in needlessly.
|
|
825 |
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
|
826 |
[LT_LANG(GCJ)],
|
|
827 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
|
828 |
[LT_LANG(GCJ)],
|
|
829 |
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
|
|
830 |
[LT_LANG(GCJ)],
|
|
831 |
[m4_ifdef([AC_PROG_GCJ],
|
|
832 |
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
|
|
833 |
m4_ifdef([A][M_PROG_GCJ],
|
|
834 |
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
|
|
835 |
m4_ifdef([LT_PROG_GCJ],
|
|
836 |
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
|
837 |
|
|
838 |
AC_PROVIDE_IFELSE([LT_PROG_RC],
|
|
839 |
[LT_LANG(RC)],
|
|
840 |
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
|
841 |
])# _LT_LANG_DEFAULT_CONFIG
|
|
842 |
|
|
843 |
# Obsolete macros:
|
|
844 |
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
|
|
845 |
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
|
|
846 |
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
|
|
847 |
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
|
|
848 |
dnl aclocal-1.4 backwards compatibility:
|
|
849 |
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
|
|
850 |
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
|
|
851 |
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
|
|
852 |
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
|
|
853 |
|
|
854 |
|
|
855 |
# _LT_TAG_COMPILER
|
|
856 |
# ----------------
|
|
857 |
m4_defun([_LT_TAG_COMPILER],
|
236 | 858 |
[AC_REQUIRE([AC_PROG_CC])dnl
|
|
859 |
|
|
860 |
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
|
|
861 |
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
|
|
862 |
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
|
|
863 |
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
|
237 | 864 |
|
238 | 865 |
# If no C compiler was specified, use CC.
|
239 | 866 |
LTCC=${LTCC-"$CC"}
|
|
243 | 870 |
|
244 | 871 |
# Allow CC to be a program name with arguments.
|
245 | 872 |
compiler=$CC
|
246 | |
])# _LT_AC_SYS_COMPILER
|
247 | |
|
248 | |
|
249 | |
# _LT_CC_BASENAME(CC)
|
250 | |
# -------------------
|
251 | |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
252 | |
AC_DEFUN([_LT_CC_BASENAME],
|
253 | |
[for cc_temp in $1""; do
|
254 | |
case $cc_temp in
|
255 | |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
256 | |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
257 | |
\-*) ;;
|
258 | |
*) break;;
|
259 | |
esac
|
260 | |
done
|
261 | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
262 | |
])
|
|
873 |
])# _LT_TAG_COMPILER
|
263 | 874 |
|
264 | 875 |
|
265 | 876 |
# _LT_COMPILER_BOILERPLATE
|
266 | 877 |
# ------------------------
|
267 | 878 |
# Check for compiler boilerplate output or warnings with
|
268 | 879 |
# the simple compiler test code.
|
269 | |
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
|
270 | |
[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
|
880 |
m4_defun([_LT_COMPILER_BOILERPLATE],
|
|
881 |
[m4_require([_LT_DECL_SED])dnl
|
271 | 882 |
ac_outfile=conftest.$ac_objext
|
272 | 883 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
273 | 884 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
274 | 885 |
_lt_compiler_boilerplate=`cat conftest.err`
|
275 | |
$rm conftest*
|
|
886 |
$RM conftest*
|
276 | 887 |
])# _LT_COMPILER_BOILERPLATE
|
277 | 888 |
|
278 | 889 |
|
|
280 | 891 |
# ----------------------
|
281 | 892 |
# Check for linker boilerplate output or warnings with
|
282 | 893 |
# the simple link test code.
|
283 | |
AC_DEFUN([_LT_LINKER_BOILERPLATE],
|
284 | |
[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
|
894 |
m4_defun([_LT_LINKER_BOILERPLATE],
|
|
895 |
[m4_require([_LT_DECL_SED])dnl
|
285 | 896 |
ac_outfile=conftest.$ac_objext
|
286 | 897 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
287 | 898 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
288 | 899 |
_lt_linker_boilerplate=`cat conftest.err`
|
289 | |
$rm conftest*
|
|
900 |
$RM -r conftest*
|
290 | 901 |
])# _LT_LINKER_BOILERPLATE
|
291 | 902 |
|
292 | |
|
293 | |
# _LT_AC_SYS_LIBPATH_AIX
|
294 | |
# ----------------------
|
|
903 |
# _LT_REQUIRED_DARWIN_CHECKS
|
|
904 |
# -------------------------
|
|
905 |
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
906 |
case $host_os in
|
|
907 |
rhapsody* | darwin*)
|
|
908 |
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
|
|
909 |
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
|
|
910 |
AC_CHECK_TOOL([LIPO], [lipo], [:])
|
|
911 |
AC_CHECK_TOOL([OTOOL], [otool], [:])
|
|
912 |
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
|
|
913 |
_LT_DECL([], [DSYMUTIL], [1],
|
|
914 |
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
|
|
915 |
_LT_DECL([], [NMEDIT], [1],
|
|
916 |
[Tool to change global to local symbols on Mac OS X])
|
|
917 |
_LT_DECL([], [LIPO], [1],
|
|
918 |
[Tool to manipulate fat objects and archives on Mac OS X])
|
|
919 |
_LT_DECL([], [OTOOL], [1],
|
|
920 |
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
|
|
921 |
_LT_DECL([], [OTOOL64], [1],
|
|
922 |
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
|
|
923 |
|
|
924 |
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
|
|
925 |
[lt_cv_apple_cc_single_mod=no
|
|
926 |
if test -z "${LT_MULTI_MODULE}"; then
|
|
927 |
# By default we will add the -single_module flag. You can override
|
|
928 |
# by either setting the environment variable LT_MULTI_MODULE
|
|
929 |
# non-empty at configure time, or by adding -multi_module to the
|
|
930 |
# link flags.
|
|
931 |
rm -rf libconftest.dylib*
|
|
932 |
echo "int foo(void){return 1;}" > conftest.c
|
|
933 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
934 |
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
|
|
935 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
936 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
937 |
_lt_result=$?
|
|
938 |
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
|
939 |
lt_cv_apple_cc_single_mod=yes
|
|
940 |
else
|
|
941 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
942 |
fi
|
|
943 |
rm -rf libconftest.dylib*
|
|
944 |
rm -f conftest.*
|
|
945 |
fi])
|
|
946 |
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
|
947 |
[lt_cv_ld_exported_symbols_list],
|
|
948 |
[lt_cv_ld_exported_symbols_list=no
|
|
949 |
save_LDFLAGS=$LDFLAGS
|
|
950 |
echo "_main" > conftest.sym
|
|
951 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
|
952 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
|
953 |
[lt_cv_ld_exported_symbols_list=yes],
|
|
954 |
[lt_cv_ld_exported_symbols_list=no])
|
|
955 |
LDFLAGS="$save_LDFLAGS"
|
|
956 |
])
|
|
957 |
case $host_os in
|
|
958 |
rhapsody* | darwin1.[[012]])
|
|
959 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
|
960 |
darwin1.*)
|
|
961 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
962 |
darwin*) # darwin 5.x on
|
|
963 |
# if running on 10.5 or later, the deployment target defaults
|
|
964 |
# to the OS version, if on x86, and 10.4, the deployment
|
|
965 |
# target defaults to 10.4. Don't you love it?
|
|
966 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
|
967 |
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
|
|
968 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
969 |
10.[[012]]*)
|
|
970 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
971 |
10.*)
|
|
972 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
973 |
esac
|
|
974 |
;;
|
|
975 |
esac
|
|
976 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
|
977 |
_lt_dar_single_mod='$single_module'
|
|
978 |
fi
|
|
979 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
|
980 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
|
981 |
else
|
|
982 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
983 |
fi
|
|
984 |
if test "$DSYMUTIL" != ":"; then
|
|
985 |
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
|
986 |
else
|
|
987 |
_lt_dsymutil=
|
|
988 |
fi
|
|
989 |
;;
|
|
990 |
esac
|
|
991 |
])
|
|
992 |
|
|
993 |
|
|
994 |
# _LT_DARWIN_LINKER_FEATURES
|
|
995 |
# --------------------------
|
|
996 |
# Checks for linker and compiler features on darwin
|
|
997 |
m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
998 |
[
|
|
999 |
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
|
|
1000 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
1001 |
_LT_TAGVAR(hardcode_direct, $1)=no
|
|
1002 |
_LT_TAGVAR(hardcode_automatic, $1)=yes
|
|
1003 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
1004 |
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
|
1005 |
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
1006 |
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
|
|
1007 |
case $cc_basename in
|
|
1008 |
ifort*) _lt_dar_can_shared=yes ;;
|
|
1009 |
*) _lt_dar_can_shared=$GCC ;;
|
|
1010 |
esac
|
|
1011 |
if test "$_lt_dar_can_shared" = "yes"; then
|
|
1012 |
output_verbose_link_cmd=echo
|
|
1013 |
_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}"
|
|
1014 |
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
|
1015 |
_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}"
|
|
1016 |
_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}"
|
|
1017 |
m4_if([$1], [CXX],
|
|
1018 |
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
|
|
1019 |
_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}"
|
|
1020 |
_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}"
|
|
1021 |
fi
|
|
1022 |
],[])
|
|
1023 |
else
|
|
1024 |
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
1025 |
fi
|
|
1026 |
])
|
|
1027 |
|
|
1028 |
# _LT_SYS_MODULE_PATH_AIX
|
|
1029 |
# -----------------------
|
295 | 1030 |
# Links a minimal program and checks the executable
|
296 | 1031 |
# for the system default hardcoded library path. In most cases,
|
297 | 1032 |
# this is /usr/lib:/lib, but when the MPI compilers are used
|
298 | 1033 |
# the location of the communication and MPI libs are included too.
|
299 | 1034 |
# If we don't find anything, use the default library path according
|
300 | 1035 |
# to the aix ld manual.
|
301 | |
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
|
302 | |
[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
|
1036 |
m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
|
1037 |
[m4_require([_LT_DECL_SED])dnl
|
303 | 1038 |
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
304 | 1039 |
lt_aix_libpath_sed='
|
305 | 1040 |
/Import File Strings/,/^$/ {
|
|
314 | 1049 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
315 | 1050 |
fi],[])
|
316 | 1051 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
317 | |
])# _LT_AC_SYS_LIBPATH_AIX
|
318 | |
|
319 | |
|
320 | |
# _LT_AC_SHELL_INIT(ARG)
|
321 | |
# ----------------------
|
322 | |
AC_DEFUN([_LT_AC_SHELL_INIT],
|
|
1052 |
])# _LT_SYS_MODULE_PATH_AIX
|
|
1053 |
|
|
1054 |
|
|
1055 |
# _LT_SHELL_INIT(ARG)
|
|
1056 |
# -------------------
|
|
1057 |
m4_define([_LT_SHELL_INIT],
|
323 | 1058 |
[ifdef([AC_DIVERSION_NOTICE],
|
324 | 1059 |
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
325 | 1060 |
[AC_DIVERT_PUSH(NOTICE)])
|
326 | 1061 |
$1
|
327 | 1062 |
AC_DIVERT_POP
|
328 | |
])# _LT_AC_SHELL_INIT
|
329 | |
|
330 | |
|
331 | |
# _LT_AC_PROG_ECHO_BACKSLASH
|
332 | |
# --------------------------
|
|
1063 |
])# _LT_SHELL_INIT
|
|
1064 |
|
|
1065 |
|
|
1066 |
# _LT_PROG_ECHO_BACKSLASH
|
|
1067 |
# -----------------------
|
333 | 1068 |
# Add some code to the start of the generated configure script which
|
334 | 1069 |
# will find an echo command which doesn't interpret backslashes.
|
335 | |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
|
336 | |
[_LT_AC_SHELL_INIT([
|
|
1070 |
m4_defun([_LT_PROG_ECHO_BACKSLASH],
|
|
1071 |
[_LT_SHELL_INIT([
|
337 | 1072 |
# Check that we are running under the correct shell.
|
338 | 1073 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
339 | 1074 |
|
340 | |
case X$ECHO in
|
|
1075 |
case X$lt_ECHO in
|
341 | 1076 |
X*--fallback-echo)
|
342 | 1077 |
# Remove one level of quotation (which was required for Make).
|
343 | |
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
|
1078 |
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
344 | 1079 |
;;
|
345 | 1080 |
esac
|
346 | 1081 |
|
347 | |
echo=${ECHO-echo}
|
|
1082 |
ECHO=${lt_ECHO-echo}
|
348 | 1083 |
if test "X[$]1" = X--no-reexec; then
|
349 | 1084 |
# Discard the --no-reexec flag, and continue.
|
350 | 1085 |
shift
|
351 | 1086 |
elif test "X[$]1" = X--fallback-echo; then
|
352 | 1087 |
# Avoid inline document here, it may be left over
|
353 | 1088 |
:
|
354 | |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
355 | |
# Yippee, $echo works!
|
|
1089 |
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
|
|
1090 |
# Yippee, $ECHO works!
|
356 | 1091 |
:
|
357 | 1092 |
else
|
358 | 1093 |
# Restart under the correct shell.
|
|
362 | 1097 |
if test "X[$]1" = X--fallback-echo; then
|
363 | 1098 |
# used as fallback echo
|
364 | 1099 |
shift
|
365 | |
cat <<EOF
|
|
1100 |
cat <<_LT_EOF
|
366 | 1101 |
[$]*
|
367 | |
EOF
|
|
1102 |
_LT_EOF
|
368 | 1103 |
exit 0
|
369 | 1104 |
fi
|
370 | 1105 |
|
|
372 | 1107 |
# if CDPATH is set.
|
373 | 1108 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
374 | 1109 |
|
375 | |
if test -z "$ECHO"; then
|
376 | |
if test "X${echo_test_string+set}" != Xset; then
|
377 | |
# find a string as large as possible, as long as the shell can cope with it
|
378 | |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
379 | |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
380 | |
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
|
381 | |
echo_test_string=`eval $cmd` &&
|
382 | |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
383 | |
then
|
384 | |
break
|
385 | |
fi
|
386 | |
done
|
387 | |
fi
|
388 | |
|
389 | |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
390 | |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
391 | |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
392 | |
:
|
393 | |
else
|
394 | |
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
395 | |
# backslashes. This makes it impossible to quote backslashes using
|
396 | |
# echo "$something" | sed 's/\\/\\\\/g'
|
397 | |
#
|
398 | |
# So, first we look for a working echo in the user's PATH.
|
399 | |
|
400 | |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
401 | |
for dir in $PATH /usr/ucb; do
|
|
1110 |
if test -z "$lt_ECHO"; then
|
|
1111 |
if test "X${echo_test_string+set}" != Xset; then
|
|
1112 |
# find a string as large as possible, as long as the shell can cope with it
|
|
1113 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
|
1114 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
|
1115 |
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
|
|
1116 |
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
|
|
1117 |
then
|
|
1118 |
break
|
|
1119 |
fi
|
|
1120 |
done
|
|
1121 |
fi
|
|
1122 |
|
|
1123 |
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
|
1124 |
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
|
1125 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1126 |
:
|
|
1127 |
else
|
|
1128 |
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
|
1129 |
# backslashes. This makes it impossible to quote backslashes using
|
|
1130 |
# echo "$something" | sed 's/\\/\\\\/g'
|
|
1131 |
#
|
|
1132 |
# So, first we look for a working echo in the user's PATH.
|
|
1133 |
|
|
1134 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
1135 |
for dir in $PATH /usr/ucb; do
|
|
1136 |
IFS="$lt_save_ifs"
|
|
1137 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
|
1138 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
1139 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
|
1140 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1141 |
ECHO="$dir/echo"
|
|
1142 |
break
|
|
1143 |
fi
|
|
1144 |
done
|
402 | 1145 |
IFS="$lt_save_ifs"
|
403 | |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
404 | |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
405 | |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
406 | |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
407 | |
echo="$dir/echo"
|
408 | |
break
|
409 | |
fi
|
410 | |
done
|
411 | |
IFS="$lt_save_ifs"
|
412 | |
|
413 | |
if test "X$echo" = Xecho; then
|
414 | |
# We didn't find a better echo, so look for alternatives.
|
415 | |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
416 | |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
417 | |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
418 | |
# This shell has a builtin print -r that does the trick.
|
419 | |
echo='print -r'
|
420 | |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
421 | |
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
422 | |
# If we have ksh, try running configure again with it.
|
423 | |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
424 | |
export ORIGINAL_CONFIG_SHELL
|
425 | |
CONFIG_SHELL=/bin/ksh
|
426 | |
export CONFIG_SHELL
|
427 | |
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
428 | |
else
|
429 | |
# Try using printf.
|
430 | |
echo='printf %s\n'
|
431 | |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
432 | |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
433 | |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
434 | |
# Cool, printf works
|
435 | |
:
|
436 | |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
437 | |
test "X$echo_testing_string" = 'X\t' &&
|
438 | |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
1146 |
|
|
1147 |
if test "X$ECHO" = Xecho; then
|
|
1148 |
# We didn't find a better echo, so look for alternatives.
|
|
1149 |
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
|
|
1150 |
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
|
|
1151 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1152 |
# This shell has a builtin print -r that does the trick.
|
|
1153 |
ECHO='print -r'
|
|
1154 |
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
|
|
1155 |
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
|
1156 |
# If we have ksh, try running configure again with it.
|
|
1157 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|
1158 |
export ORIGINAL_CONFIG_SHELL
|
|
1159 |
CONFIG_SHELL=/bin/ksh
|
|
1160 |
export CONFIG_SHELL
|
|
1161 |
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
|
1162 |
else
|
|
1163 |
# Try using printf.
|
|
1164 |
ECHO='printf %s\n'
|
|
1165 |
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
|
1166 |
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
439 | 1167 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
440 | |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
441 | |
export CONFIG_SHELL
|
442 | |
SHELL="$CONFIG_SHELL"
|
443 | |
export SHELL
|
444 | |
echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
445 | |
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
446 | |
test "X$echo_testing_string" = 'X\t' &&
|
447 | |
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
448 | |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
449 | |
echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
450 | |
else
|
451 | |
# maybe with a smaller string...
|
452 | |
prev=:
|
453 | |
|
454 | |
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
455 | |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
456 | |
then
|
457 | |
break
|
|
1168 |
# Cool, printf works
|
|
1169 |
:
|
|
1170 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|
1171 |
test "X$echo_testing_string" = 'X\t' &&
|
|
1172 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
1173 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1174 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
|
1175 |
export CONFIG_SHELL
|
|
1176 |
SHELL="$CONFIG_SHELL"
|
|
1177 |
export SHELL
|
|
1178 |
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
|
1179 |
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|
1180 |
test "X$echo_testing_string" = 'X\t' &&
|
|
1181 |
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
1182 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1183 |
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
|
1184 |
else
|
|
1185 |
# maybe with a smaller string...
|
|
1186 |
prev=:
|
|
1187 |
|
|
1188 |
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
|
1189 |
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
|
|
1190 |
then
|
|
1191 |
break
|
|
1192 |
fi
|
|
1193 |
prev="$cmd"
|
|
1194 |
done
|
|
1195 |
|
|
1196 |
if test "$prev" != 'sed 50q "[$]0"'; then
|
|
1197 |
echo_test_string=`eval $prev`
|
|
1198 |
export echo_test_string
|
|
1199 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
|
1200 |
else
|
|
1201 |
# Oops. We lost completely, so just stick with echo.
|
|
1202 |
ECHO=echo
|
458 | 1203 |
fi
|
459 | |
prev="$cmd"
|
460 | |
done
|
461 | |
|
462 | |
if test "$prev" != 'sed 50q "[$]0"'; then
|
463 | |
echo_test_string=`eval $prev`
|
464 | |
export echo_test_string
|
465 | |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
466 | |
else
|
467 | |
# Oops. We lost completely, so just stick with echo.
|
468 | |
echo=echo
|
469 | |
fi
|
|
1204 |
fi
|
470 | 1205 |
fi
|
471 | 1206 |
fi
|
472 | 1207 |
fi
|
473 | 1208 |
fi
|
474 | |
fi
|
475 | 1209 |
|
476 | 1210 |
# Copy echo and quote the copy suitably for passing to libtool from
|
477 | 1211 |
# the Makefile, instead of quoting the original, which is used later.
|
478 | |
ECHO=$echo
|
479 | |
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
480 | |
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
|
1212 |
lt_ECHO=$ECHO
|
|
1213 |
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
|
1214 |
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
481 | 1215 |
fi
|
482 | 1216 |
|
483 | |
AC_SUBST(ECHO)
|
484 | |
])])# _LT_AC_PROG_ECHO_BACKSLASH
|
485 | |
|
486 | |
|
487 | |
# _LT_AC_LOCK
|
488 | |
# -----------
|
489 | |
AC_DEFUN([_LT_AC_LOCK],
|
|
1217 |
AC_SUBST(lt_ECHO)
|
|
1218 |
])
|
|
1219 |
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
|
|
1220 |
_LT_DECL([], [ECHO], [1],
|
|
1221 |
[An echo program that does not interpret backslashes])
|
|
1222 |
])# _LT_PROG_ECHO_BACKSLASH
|
|
1223 |
|
|
1224 |
|
|
1225 |
# _LT_ENABLE_LOCK
|
|
1226 |
# ---------------
|
|
1227 |
m4_defun([_LT_ENABLE_LOCK],
|
490 | 1228 |
[AC_ARG_ENABLE([libtool-lock],
|
491 | |
[AC_HELP_STRING([--disable-libtool-lock],
|
492 | |
[avoid locking (might break parallel builds)])])
|
|
1229 |
[AS_HELP_STRING([--disable-libtool-lock],
|
|
1230 |
[avoid locking (might break parallel builds)])])
|
493 | 1231 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
494 | 1232 |
|
495 | 1233 |
# Some flags need to be propagated to the compiler or linker for good
|
|
500 | 1238 |
echo 'int i;' > conftest.$ac_ext
|
501 | 1239 |
if AC_TRY_EVAL(ac_compile); then
|
502 | 1240 |
case `/usr/bin/file conftest.$ac_objext` in
|
503 | |
*ELF-32*)
|
504 | |
HPUX_IA64_MODE="32"
|
505 | |
;;
|
506 | |
*ELF-64*)
|
507 | |
HPUX_IA64_MODE="64"
|
508 | |
;;
|
|
1241 |
*ELF-32*)
|
|
1242 |
HPUX_IA64_MODE="32"
|
|
1243 |
;;
|
|
1244 |
*ELF-64*)
|
|
1245 |
HPUX_IA64_MODE="64"
|
|
1246 |
;;
|
509 | 1247 |
esac
|
510 | 1248 |
fi
|
511 | 1249 |
rm -rf conftest*
|
|
514 | 1252 |
# Find out which ABI we are using.
|
515 | 1253 |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
516 | 1254 |
if AC_TRY_EVAL(ac_compile); then
|
517 | |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
518 | |
case `/usr/bin/file conftest.$ac_objext` in
|
519 | |
*32-bit*)
|
520 | |
LD="${LD-ld} -melf32bsmip"
|
521 | |
;;
|
522 | |
*N32*)
|
523 | |
LD="${LD-ld} -melf32bmipn32"
|
524 | |
;;
|
525 | |
*64-bit*)
|
526 | |
LD="${LD-ld} -melf64bmip"
|
527 | |
;;
|
528 | |
esac
|
529 | |
else
|
530 | |
case `/usr/bin/file conftest.$ac_objext` in
|
531 | |
*32-bit*)
|
532 | |
LD="${LD-ld} -32"
|
533 | |
;;
|
534 | |
*N32*)
|
535 | |
LD="${LD-ld} -n32"
|
536 | |
;;
|
537 | |
*64-bit*)
|
538 | |
LD="${LD-ld} -64"
|
539 | |
;;
|
540 | |
esac
|
541 | |
fi
|
|
1255 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
1256 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
1257 |
*32-bit*)
|
|
1258 |
LD="${LD-ld} -melf32bsmip"
|
|
1259 |
;;
|
|
1260 |
*N32*)
|
|
1261 |
LD="${LD-ld} -melf32bmipn32"
|
|
1262 |
;;
|
|
1263 |
*64-bit*)
|
|
1264 |
LD="${LD-ld} -melf64bmip"
|
|
1265 |
;;
|
|
1266 |
esac
|
|
1267 |
else
|
|
1268 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
1269 |
*32-bit*)
|
|
1270 |
LD="${LD-ld} -32"
|
|
1271 |
;;
|
|
1272 |
*N32*)
|
|
1273 |
LD="${LD-ld} -n32"
|
|
1274 |
;;
|
|
1275 |
*64-bit*)
|
|
1276 |
LD="${LD-ld} -64"
|
|
1277 |
;;
|
|
1278 |
esac
|
|
1279 |
fi
|
542 | 1280 |
fi
|
543 | 1281 |
rm -rf conftest*
|
544 | 1282 |
;;
|
545 | 1283 |
|
546 | 1284 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
547 | |
s390*-*linux*|sparc*-*linux*)
|
|
1285 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
548 | 1286 |
# Find out which ABI we are using.
|
549 | 1287 |
echo 'int i;' > conftest.$ac_ext
|
550 | 1288 |
if AC_TRY_EVAL(ac_compile); then
|
551 | 1289 |
case `/usr/bin/file conftest.o` in
|
552 | |
*32-bit*)
|
553 | |
case $host in
|
554 | |
x86_64-*kfreebsd*-gnu)
|
555 | |
LD="${LD-ld} -m elf_i386_fbsd"
|
556 | |
;;
|
557 | |
x86_64-*linux*)
|
558 | |
LD="${LD-ld} -m elf_i386"
|
559 | |
;;
|
560 | |
ppc64-*linux*|powerpc64-*linux*)
|
561 | |
LD="${LD-ld} -m elf32ppclinux"
|
562 | |
;;
|
563 | |
s390x-*linux*)
|
564 | |
LD="${LD-ld} -m elf_s390"
|
565 | |
;;
|
566 | |
sparc64-*linux*)
|
567 | |
LD="${LD-ld} -m elf32_sparc"
|
568 | |
;;
|
569 | |
esac
|
570 | |
;;
|
571 | |
*64-bit*)
|
572 | |
libsuff=64
|
573 | |
case $host in
|
574 | |
x86_64-*kfreebsd*-gnu)
|
575 | |
LD="${LD-ld} -m elf_x86_64_fbsd"
|
576 | |
;;
|
577 | |
x86_64-*linux*)
|
578 | |
LD="${LD-ld} -m elf_x86_64"
|
579 | |
;;
|
580 | |
ppc*-*linux*|powerpc*-*linux*)
|
581 | |
LD="${LD-ld} -m elf64ppc"
|
582 | |
;;
|
583 | |
s390*-*linux*)
|
584 | |
LD="${LD-ld} -m elf64_s390"
|
585 | |
;;
|
586 | |
sparc*-*linux*)
|
587 | |
LD="${LD-ld} -m elf64_sparc"
|
588 | |
;;
|
589 | |
esac
|
590 | |
;;
|
|
1290 |
*32-bit*)
|
|
1291 |
case $host in
|
|
1292 |
x86_64-*kfreebsd*-gnu)
|
|
1293 |
LD="${LD-ld} -m elf_i386_fbsd"
|
|
1294 |
;;
|
|
1295 |
x86_64-*linux*)
|
|
1296 |
LD="${LD-ld} -m elf_i386"
|
|
1297 |
;;
|
|
1298 |
ppc64-*linux*|powerpc64-*linux*)
|
|
1299 |
LD="${LD-ld} -m elf32ppclinux"
|
|
1300 |
;;
|
|
1301 |
s390x-*linux*)
|
|
1302 |
LD="${LD-ld} -m elf_s390"
|
|
1303 |
;;
|
|
1304 |
sparc64-*linux*)
|
|
1305 |
LD="${LD-ld} -m elf32_sparc"
|
|
1306 |
;;
|
|
1307 |
esac
|
|
1308 |
;;
|
|
1309 |
*64-bit*)
|
|
1310 |
case $host in
|
|
1311 |
x86_64-*kfreebsd*-gnu)
|
|
1312 |
LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
1313 |
;;
|
|
1314 |
x86_64-*linux*)
|
|
1315 |
LD="${LD-ld} -m elf_x86_64"
|
|
1316 |
;;
|
|
1317 |
ppc*-*linux*|powerpc*-*linux*)
|
|
1318 |
LD="${LD-ld} -m elf64ppc"
|
|
1319 |
;;
|
|
1320 |
s390*-*linux*|s390*-*tpf*)
|
|
1321 |
LD="${LD-ld} -m elf64_s390"
|
|
1322 |
;;
|
|
1323 |
sparc*-*linux*)
|
|
1324 |
LD="${LD-ld} -m elf64_sparc"
|
|
1325 |
;;
|
|
1326 |
esac
|
|
1327 |
;;
|
591 | 1328 |
esac
|
592 | 1329 |
fi
|
593 | 1330 |
rm -rf conftest*
|
|
599 | 1336 |
CFLAGS="$CFLAGS -belf"
|
600 | 1337 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
601 | 1338 |
[AC_LANG_PUSH(C)
|
602 | |
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
|
1339 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
603 | 1340 |
AC_LANG_POP])
|
604 | 1341 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
605 | 1342 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
614 | 1351 |
*64-bit*)
|
615 | 1352 |
case $lt_cv_prog_gnu_ld in
|
616 | 1353 |
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
617 | |
*) LD="${LD-ld} -64" ;;
|
|
1354 |
*)
|
|
1355 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
1356 |
LD="${LD-ld} -64"
|
|
1357 |
fi
|
|
1358 |
;;
|
618 | 1359 |
esac
|
619 | 1360 |
;;
|
620 | 1361 |
esac
|
621 | 1362 |
fi
|
622 | 1363 |
rm -rf conftest*
|
623 | 1364 |
;;
|
624 | |
|
625 | |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
626 | |
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
627 | |
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
628 | |
AC_CHECK_TOOL(AS, as, false)
|
629 | |
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
630 | |
;;
|
631 | |
])
|
632 | 1365 |
esac
|
633 | 1366 |
|
634 | 1367 |
need_locks="$enable_libtool_lock"
|
635 | |
|
636 | |
])# _LT_AC_LOCK
|
637 | |
|
638 | |
|
639 | |
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|
1368 |
])# _LT_ENABLE_LOCK
|
|
1369 |
|
|
1370 |
|
|
1371 |
# _LT_CMD_OLD_ARCHIVE
|
|
1372 |
# -------------------
|
|
1373 |
m4_defun([_LT_CMD_OLD_ARCHIVE],
|
|
1374 |
[AC_CHECK_TOOL(AR, ar, false)
|
|
1375 |
test -z "$AR" && AR=ar
|
|
1376 |
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
1377 |
_LT_DECL([], [AR], [1], [The archiver])
|
|
1378 |
_LT_DECL([], [AR_FLAGS], [1])
|
|
1379 |
|
|
1380 |
AC_CHECK_TOOL(STRIP, strip, :)
|
|
1381 |
test -z "$STRIP" && STRIP=:
|
|
1382 |
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
|
|
1383 |
|
|
1384 |
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
|
1385 |
test -z "$RANLIB" && RANLIB=:
|
|
1386 |
_LT_DECL([], [RANLIB], [1],
|
|
1387 |
[Commands used to install an old-style archive])
|
|
1388 |
|
|
1389 |
# Determine commands to create old-style static archives.
|
|
1390 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
1391 |
old_postinstall_cmds='chmod 644 $oldlib'
|
|
1392 |
old_postuninstall_cmds=
|
|
1393 |
|
|
1394 |
if test -n "$RANLIB"; then
|
|
1395 |
case $host_os in
|
|
1396 |
openbsd*)
|
|
1397 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
|
1398 |
;;
|
|
1399 |
*)
|
|
1400 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
1401 |
;;
|
|
1402 |
esac
|
|
1403 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
1404 |
fi
|
|
1405 |
_LT_DECL([], [old_postinstall_cmds], [2])
|
|
1406 |
_LT_DECL([], [old_postuninstall_cmds], [2])
|
|
1407 |
_LT_TAGDECL([], [old_archive_cmds], [2],
|
|
1408 |
[Commands used to build an old-style archive])
|
|
1409 |
])# _LT_CMD_OLD_ARCHIVE
|
|
1410 |
|
|
1411 |
|
|
1412 |
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
640 | 1413 |
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
641 | 1414 |
# ----------------------------------------------------------------
|
642 | 1415 |
# Check whether the given compiler option works
|
643 | |
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
|
644 | |
[AC_REQUIRE([LT_AC_PROG_SED])
|
|
1416 |
AC_DEFUN([_LT_COMPILER_OPTION],
|
|
1417 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
1418 |
m4_require([_LT_DECL_SED])dnl
|
645 | 1419 |
AC_CACHE_CHECK([$1], [$2],
|
646 | 1420 |
[$2=no
|
647 | |
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
|
1421 |
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
648 | 1422 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
649 | 1423 |
lt_compiler_flag="$3"
|
650 | 1424 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
664 | 1438 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
665 | 1439 |
# The compiler can only warn and ignore the option if not recognized
|
666 | 1440 |
# So say no if there are warnings other than the usual output.
|
667 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
1441 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
668 | 1442 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
669 | 1443 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
670 | 1444 |
$2=yes
|
671 | 1445 |
fi
|
672 | 1446 |
fi
|
673 | |
$rm conftest*
|
|
1447 |
$RM conftest*
|
674 | 1448 |
])
|
675 | 1449 |
|
676 | 1450 |
if test x"[$]$2" = xyes; then
|
677 | |
ifelse([$5], , :, [$5])
|
|
1451 |
m4_if([$5], , :, [$5])
|
678 | 1452 |
else
|
679 | |
ifelse([$6], , :, [$6])
|
|
1453 |
m4_if([$6], , :, [$6])
|
680 | 1454 |
fi
|
681 | |
])# AC_LIBTOOL_COMPILER_OPTION
|
682 | |
|
683 | |
|
684 | |
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
685 | |
# [ACTION-SUCCESS], [ACTION-FAILURE])
|
686 | |
# ------------------------------------------------------------
|
687 | |
# Check whether the given compiler option works
|
688 | |
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
689 | |
[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
|
1455 |
])# _LT_COMPILER_OPTION
|
|
1456 |
|
|
1457 |
# Old name:
|
|
1458 |
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
|
|
1459 |
dnl aclocal-1.4 backwards compatibility:
|
|
1460 |
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
|
|
1461 |
|
|
1462 |
|
|
1463 |
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|
1464 |
# [ACTION-SUCCESS], [ACTION-FAILURE])
|
|
1465 |
# ----------------------------------------------------
|
|
1466 |
# Check whether the given linker option works
|
|
1467 |
AC_DEFUN([_LT_LINKER_OPTION],
|
|
1468 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
1469 |
m4_require([_LT_DECL_SED])dnl
|
690 | 1470 |
AC_CACHE_CHECK([$1], [$2],
|
691 | 1471 |
[$2=no
|
692 | 1472 |
save_LDFLAGS="$LDFLAGS"
|
|
698 | 1478 |
if test -s conftest.err; then
|
699 | 1479 |
# Append any errors to the config.log.
|
700 | 1480 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
701 | |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
1481 |
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
702 | 1482 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
703 | 1483 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
704 | 1484 |
$2=yes
|
|
707 | 1487 |
$2=yes
|
708 | 1488 |
fi
|
709 | 1489 |
fi
|
710 | |
$rm conftest*
|
|
1490 |
$RM -r conftest*
|
711 | 1491 |
LDFLAGS="$save_LDFLAGS"
|
712 | 1492 |
])
|
713 | 1493 |
|
714 | 1494 |
if test x"[$]$2" = xyes; then
|
715 | |
ifelse([$4], , :, [$4])
|
|
1495 |
m4_if([$4], , :, [$4])
|
716 | 1496 |
else
|
717 | |
ifelse([$5], , :, [$5])
|
|
1497 |
m4_if([$5], , :, [$5])
|
718 | 1498 |
fi
|
719 | |
])# AC_LIBTOOL_LINKER_OPTION
|
720 | |
|
721 | |
|
722 | |
# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
723 | |
# --------------------------
|
724 | |
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
|
725 | |
[# find the maximum length of command line arguments
|
|
1499 |
])# _LT_LINKER_OPTION
|
|
1500 |
|
|
1501 |
# Old name:
|
|
1502 |
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
|
|
1503 |
dnl aclocal-1.4 backwards compatibility:
|
|
1504 |
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
|
|
1505 |
|
|
1506 |
|
|
1507 |
# LT_CMD_MAX_LEN
|
|
1508 |
#---------------
|
|
1509 |
AC_DEFUN([LT_CMD_MAX_LEN],
|
|
1510 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
1511 |
# find the maximum length of command line arguments
|
726 | 1512 |
AC_MSG_CHECKING([the maximum length of command line arguments])
|
727 | 1513 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
728 | 1514 |
i=0
|
|
744 | 1530 |
lt_cv_sys_max_cmd_len=-1;
|
745 | 1531 |
;;
|
746 | 1532 |
|
747 | |
cygwin* | mingw*)
|
|
1533 |
cygwin* | mingw* | cegcc*)
|
748 | 1534 |
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
749 | 1535 |
# about 5 minutes as the teststring grows exponentially.
|
750 | 1536 |
# Worse, since 9x/ME are not pre-emptively multitasking,
|
|
799 | 1585 |
sysv5* | sco5v6* | sysv4.2uw2*)
|
800 | 1586 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
801 | 1587 |
if test -n "$kargmax"; then
|
802 | |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
|
1588 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
803 | 1589 |
else
|
804 | 1590 |
lt_cv_sys_max_cmd_len=32768
|
805 | 1591 |
fi
|
|
810 | 1596 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
811 | 1597 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
812 | 1598 |
else
|
|
1599 |
# Make teststring a little bigger before we do anything with it.
|
|
1600 |
# a 1K string should be a reasonable start.
|
|
1601 |
for i in 1 2 3 4 5 6 7 8 ; do
|
|
1602 |
teststring=$teststring$teststring
|
|
1603 |
done
|
813 | 1604 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
814 | |
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
|
815 | |
= "XX$teststring") >/dev/null 2>&1 &&
|
816 | |
new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
817 | |
lt_cv_sys_max_cmd_len=$new_result &&
|
|
1605 |
# If test is not a shell built-in, we'll probably end up computing a
|
|
1606 |
# maximum length that is only half of the actual maximum length, but
|
|
1607 |
# we can't tell.
|
|
1608 |
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
|
|
1609 |
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
|
818 | 1610 |
test $i != 17 # 1/2 MB should be enough
|
819 | 1611 |
do
|
820 | 1612 |
i=`expr $i + 1`
|
821 | 1613 |
teststring=$teststring$teststring
|
822 | 1614 |
done
|
|
1615 |
# Only check the string length outside the loop.
|
|
1616 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
823 | 1617 |
teststring=
|
824 | |
# Add a significant safety factor because C++ compilers can tack on massive
|
825 | |
# amounts of additional arguments before passing them to the linker.
|
826 | |
# It appears as though 1/2 is a usable value.
|
|
1618 |
# Add a significant safety factor because C++ compilers can tack on
|
|
1619 |
# massive amounts of additional arguments before passing them to the
|
|
1620 |
# linker. It appears as though 1/2 is a usable value.
|
827 | 1621 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
828 | 1622 |
fi
|
829 | 1623 |
;;
|
|
834 | 1628 |
else
|
835 | 1629 |
AC_MSG_RESULT(none)
|
836 | 1630 |
fi
|
837 | |
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
838 | |
|
839 | |
|
840 | |
# _LT_AC_CHECK_DLFCN
|
841 | |
# ------------------
|
842 | |
AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
843 | |
[AC_CHECK_HEADERS(dlfcn.h)dnl
|
844 | |
])# _LT_AC_CHECK_DLFCN
|
845 | |
|
846 | |
|
847 | |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
848 | |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
849 | |
# ---------------------------------------------------------------------
|
850 | |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
851 | |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|
1631 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
1632 |
_LT_DECL([], [max_cmd_len], [0],
|
|
1633 |
[What is the maximum length of a command?])
|
|
1634 |
])# LT_CMD_MAX_LEN
|
|
1635 |
|
|
1636 |
# Old name:
|
|
1637 |
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
|
|
1638 |
dnl aclocal-1.4 backwards compatibility:
|
|
1639 |
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
|
|
1640 |
|
|
1641 |
|
|
1642 |
# _LT_HEADER_DLFCN
|
|
1643 |
# ----------------
|
|
1644 |
m4_defun([_LT_HEADER_DLFCN],
|
|
1645 |
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
|
|
1646 |
])# _LT_HEADER_DLFCN
|
|
1647 |
|
|
1648 |
|
|
1649 |
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
|
1650 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
|
1651 |
# ----------------------------------------------------------------
|
|
1652 |
m4_defun([_LT_TRY_DLOPEN_SELF],
|
|
1653 |
[m4_require([_LT_HEADER_DLFCN])dnl
|
852 | 1654 |
if test "$cross_compiling" = yes; then :
|
853 | 1655 |
[$4]
|
854 | 1656 |
else
|
855 | 1657 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
856 | 1658 |
lt_status=$lt_dlunknown
|
857 | |
cat > conftest.$ac_ext <<EOF
|
|
1659 |
cat > conftest.$ac_ext <<_LT_EOF
|
858 | 1660 |
[#line __oline__ "configure"
|
859 | 1661 |
#include "confdefs.h"
|
860 | 1662 |
|
|
896 | 1698 |
# endif
|
897 | 1699 |
#endif
|
898 | 1700 |
|
899 | |
#ifdef __cplusplus
|
900 | |
extern "C" void exit (int);
|
901 | |
#endif
|
902 | |
|
903 | 1701 |
void fnord() { int i=42;}
|
904 | 1702 |
int main ()
|
905 | 1703 |
{
|
|
915 | 1713 |
else
|
916 | 1714 |
puts (dlerror ());
|
917 | 1715 |
|
918 | |
exit (status);
|
|
1716 |
return status;
|
919 | 1717 |
}]
|
920 | |
EOF
|
|
1718 |
_LT_EOF
|
921 | 1719 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
922 | 1720 |
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
923 | 1721 |
lt_status=$?
|
|
932 | 1730 |
fi
|
933 | 1731 |
fi
|
934 | 1732 |
rm -fr conftest*
|
935 | |
])# _LT_AC_TRY_DLOPEN_SELF
|
936 | |
|
937 | |
|
938 | |
# AC_LIBTOOL_DLOPEN_SELF
|
939 | |
# ----------------------
|
940 | |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
941 | |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|
1733 |
])# _LT_TRY_DLOPEN_SELF
|
|
1734 |
|
|
1735 |
|
|
1736 |
# LT_SYS_DLOPEN_SELF
|
|
1737 |
# ------------------
|
|
1738 |
AC_DEFUN([LT_SYS_DLOPEN_SELF],
|
|
1739 |
[m4_require([_LT_HEADER_DLFCN])dnl
|
942 | 1740 |
if test "x$enable_dlopen" != xyes; then
|
943 | 1741 |
enable_dlopen=unknown
|
944 | 1742 |
enable_dlopen_self=unknown
|
|
954 | 1752 |
lt_cv_dlopen_self=yes
|
955 | 1753 |
;;
|
956 | 1754 |
|
957 | |
mingw* | pw32*)
|
|
1755 |
mingw* | pw32* | cegcc*)
|
958 | 1756 |
lt_cv_dlopen="LoadLibrary"
|
959 | 1757 |
lt_cv_dlopen_libs=
|
960 | |
;;
|
|
1758 |
;;
|
961 | 1759 |
|
962 | 1760 |
cygwin*)
|
963 | 1761 |
lt_cv_dlopen="dlopen"
|
964 | 1762 |
lt_cv_dlopen_libs=
|
965 | |
;;
|
|
1763 |
;;
|
966 | 1764 |
|
967 | 1765 |
darwin*)
|
968 | 1766 |
# if libdl is installed we need to link against it
|
|
972 | 1770 |
lt_cv_dlopen_libs=
|
973 | 1771 |
lt_cv_dlopen_self=yes
|
974 | 1772 |
])
|
975 | |
;;
|
|
1773 |
;;
|
976 | 1774 |
|
977 | 1775 |
*)
|
978 | 1776 |
AC_CHECK_FUNC([shl_load],
|
979 | 1777 |
[lt_cv_dlopen="shl_load"],
|
980 | 1778 |
[AC_CHECK_LIB([dld], [shl_load],
|
981 | |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
|
|
1779 |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
|
982 | 1780 |
[AC_CHECK_FUNC([dlopen],
|
983 | 1781 |
[lt_cv_dlopen="dlopen"],
|
984 | 1782 |
[AC_CHECK_LIB([dl], [dlopen],
|
|
986 | 1784 |
[AC_CHECK_LIB([svld], [dlopen],
|
987 | 1785 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
988 | 1786 |
[AC_CHECK_LIB([dld], [dld_link],
|
989 | |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
|
1787 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
|
990 | 1788 |
])
|
991 | 1789 |
])
|
992 | 1790 |
])
|
|
1014 | 1812 |
|
1015 | 1813 |
AC_CACHE_CHECK([whether a program can dlopen itself],
|
1016 | 1814 |
lt_cv_dlopen_self, [dnl
|
1017 | |
_LT_AC_TRY_DLOPEN_SELF(
|
|
1815 |
_LT_TRY_DLOPEN_SELF(
|
1018 | 1816 |
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
1019 | 1817 |
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
1020 | 1818 |
])
|
|
1022 | 1820 |
if test "x$lt_cv_dlopen_self" = xyes; then
|
1023 | 1821 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
1024 | 1822 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
1025 | |
lt_cv_dlopen_self_static, [dnl
|
1026 | |
_LT_AC_TRY_DLOPEN_SELF(
|
|
1823 |
lt_cv_dlopen_self_static, [dnl
|
|
1824 |
_LT_TRY_DLOPEN_SELF(
|
1027 | 1825 |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
1028 | 1826 |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
1029 | 1827 |
])
|
|
1045 | 1843 |
*) enable_dlopen_self_static=unknown ;;
|
1046 | 1844 |
esac
|
1047 | 1845 |
fi
|
1048 | |
])# AC_LIBTOOL_DLOPEN_SELF
|
1049 | |
|
1050 | |
|
1051 | |
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
|
1052 | |
# ---------------------------------
|
1053 | |
# Check to see if options -c and -o are simultaneously supported by compiler
|
1054 | |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
|
1055 | |
[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
1056 | |
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
|
1846 |
_LT_DECL([dlopen_support], [enable_dlopen], [0],
|
|
1847 |
[Whether dlopen is supported])
|
|
1848 |
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
|
|
1849 |
[Whether dlopen of programs is supported])
|
|
1850 |
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
|
|
1851 |
[Whether dlopen of statically linked programs is supported])
|
|
1852 |
])# LT_SYS_DLOPEN_SELF
|
|
1853 |
|
|
1854 |
# Old name:
|
|
1855 |
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
|
|
1856 |
dnl aclocal-1.4 backwards compatibility:
|
|
1857 |
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
|
|
1858 |
|
|
1859 |
|
|
1860 |
# _LT_COMPILER_C_O([TAGNAME])
|
|
1861 |
# ---------------------------
|
|
1862 |
# Check to see if options -c and -o are simultaneously supported by compiler.
|
|
1863 |
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
|
|
1864 |
m4_defun([_LT_COMPILER_C_O],
|
|
1865 |
[m4_require([_LT_DECL_SED])dnl
|
|
1866 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
1867 |
m4_require([_LT_TAG_COMPILER])dnl
|
1057 | 1868 |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
1058 | |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
1059 | |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
1060 | |
$rm -r conftest 2>/dev/null
|
|
1869 |
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
|
1870 |
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
|
1871 |
$RM -r conftest 2>/dev/null
|
1061 | 1872 |
mkdir conftest
|
1062 | 1873 |
cd conftest
|
1063 | 1874 |
mkdir out
|
|
1081 | 1892 |
then
|
1082 | 1893 |
# The compiler can only warn and ignore the option if not recognized
|
1083 | 1894 |
# So say no if there are warnings
|
1084 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
1895 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
1085 | 1896 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
1086 | 1897 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
1087 | |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|
1898 |
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
1088 | 1899 |
fi
|
1089 | 1900 |
fi
|
1090 | 1901 |
chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
1091 | |
$rm conftest*
|
|
1902 |
$RM conftest*
|
1092 | 1903 |
# SGI C++ compiler will create directory out/ii_files/ for
|
1093 | 1904 |
# template instantiation
|
1094 | |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
1095 | |
$rm out/* && rmdir out
|
|
1905 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
|
1906 |
$RM out/* && rmdir out
|
1096 | 1907 |
cd ..
|
1097 | |
rmdir conftest
|
1098 | |
$rm conftest*
|
|
1908 |
$RM -r conftest
|
|
1909 |
$RM conftest*
|
1099 | 1910 |
])
|
1100 | |
])# AC_LIBTOOL_PROG_CC_C_O
|
1101 | |
|
1102 | |
|
1103 | |
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
|
1104 | |
# -----------------------------------------
|
|
1911 |
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
|
|
1912 |
[Does compiler simultaneously support -c and -o options?])
|
|
1913 |
])# _LT_COMPILER_C_O
|
|
1914 |
|
|
1915 |
|
|
1916 |
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
|
|
1917 |
# ----------------------------------
|
1105 | 1918 |
# Check to see if we can do hard links to lock some files if needed
|
1106 | |
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
|
1107 | |
[AC_REQUIRE([_LT_AC_LOCK])dnl
|
|
1919 |
m4_defun([_LT_COMPILER_FILE_LOCKS],
|
|
1920 |
[m4_require([_LT_ENABLE_LOCK])dnl
|
|
1921 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
1922 |
_LT_COMPILER_C_O([$1])
|
1108 | 1923 |
|
1109 | 1924 |
hard_links="nottested"
|
1110 | |
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
|
1925 |
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
1111 | 1926 |
# do not overwrite the value of need_locks provided by the user
|
1112 | 1927 |
AC_MSG_CHECKING([if we can lock with hard links])
|
1113 | 1928 |
hard_links=yes
|
1114 | |
$rm conftest*
|
|
1929 |
$RM conftest*
|
1115 | 1930 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
1116 | 1931 |
touch conftest.a
|
1117 | 1932 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
1124 | 1939 |
else
|
1125 | 1940 |
need_locks=no
|
1126 | 1941 |
fi
|
1127 | |
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
|
1128 | |
|
1129 | |
|
1130 | |
# AC_LIBTOOL_OBJDIR
|
1131 | |
# -----------------
|
1132 | |
AC_DEFUN([AC_LIBTOOL_OBJDIR],
|
|
1942 |
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
|
|
1943 |
])# _LT_COMPILER_FILE_LOCKS
|
|
1944 |
|
|
1945 |
|
|
1946 |
# _LT_CHECK_OBJDIR
|
|
1947 |
# ----------------
|
|
1948 |
m4_defun([_LT_CHECK_OBJDIR],
|
1133 | 1949 |
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
1134 | 1950 |
[rm -f .libs 2>/dev/null
|
1135 | 1951 |
mkdir .libs 2>/dev/null
|
|
1141 | 1957 |
fi
|
1142 | 1958 |
rmdir .libs 2>/dev/null])
|
1143 | 1959 |
objdir=$lt_cv_objdir
|
1144 | |
])# AC_LIBTOOL_OBJDIR
|
1145 | |
|
1146 | |
|
1147 | |
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
|
1148 | |
# ----------------------------------------------
|
|
1960 |
_LT_DECL([], [objdir], [0],
|
|
1961 |
[The name of the directory that contains temporary libtool files])dnl
|
|
1962 |
m4_pattern_allow([LT_OBJDIR])dnl
|
|
1963 |
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
|
|
1964 |
[Define to the sub-directory in which libtool stores uninstalled libraries.])
|
|
1965 |
])# _LT_CHECK_OBJDIR
|
|
1966 |
|
|
1967 |
|
|
1968 |
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
|
|
1969 |
# --------------------------------------
|
1149 | 1970 |
# Check hardcoding attributes.
|
1150 | |
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
|
|
1971 |
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
|
1151 | 1972 |
[AC_MSG_CHECKING([how to hardcode library paths into programs])
|
1152 | |
_LT_AC_TAGVAR(hardcode_action, $1)=
|
1153 | |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
|
1154 | |
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
|
1155 | |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
1156 | |
|
1157 | |
# We can hardcode non-existant directories.
|
1158 | |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
|
1973 |
_LT_TAGVAR(hardcode_action, $1)=
|
|
1974 |
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
|
|
1975 |
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
|
|
1976 |
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
|
1977 |
|
|
1978 |
# We can hardcode non-existent directories.
|
|
1979 |
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
|
1159 | 1980 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
1160 | 1981 |
# have to relink, otherwise we might link with an installed library
|
1161 | 1982 |
# when we should be linking with a yet-to-be-installed one
|
1162 | |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
1163 | |
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
|
|
1983 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
|
1984 |
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
|
1164 | 1985 |
# Linking always hardcodes the temporary library directory.
|
1165 | |
_LT_AC_TAGVAR(hardcode_action, $1)=relink
|
|
1986 |
_LT_TAGVAR(hardcode_action, $1)=relink
|
1166 | 1987 |
else
|
1167 | 1988 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
1168 | |
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
|
|
1989 |
_LT_TAGVAR(hardcode_action, $1)=immediate
|
1169 | 1990 |
fi
|
1170 | 1991 |
else
|
1171 | 1992 |
# We cannot hardcode anything, or else we can only hardcode existing
|
1172 | 1993 |
# directories.
|
1173 | |
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
|
|
1994 |
_LT_TAGVAR(hardcode_action, $1)=unsupported
|
1174 | 1995 |
fi
|
1175 | |
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
|
1176 | |
|
1177 | |
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
|
|
1996 |
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
|
|
1997 |
|
|
1998 |
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
|
|
1999 |
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
|
1178 | 2000 |
# Fast installation is not supported
|
1179 | 2001 |
enable_fast_install=no
|
1180 | 2002 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
|
1182 | 2004 |
# Fast installation is not necessary
|
1183 | 2005 |
enable_fast_install=needless
|
1184 | 2006 |
fi
|
1185 | |
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
|
1186 | |
|
1187 | |
|
1188 | |
# AC_LIBTOOL_SYS_LIB_STRIP
|
1189 | |
# ------------------------
|
1190 | |
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
|
1191 | |
[striplib=
|
|
2007 |
_LT_TAGDECL([], [hardcode_action], [0],
|
|
2008 |
[How to hardcode a shared library path into an executable])
|
|
2009 |
])# _LT_LINKER_HARDCODE_LIBPATH
|
|
2010 |
|
|
2011 |
|
|
2012 |
# _LT_CMD_STRIPLIB
|
|
2013 |
# ----------------
|
|
2014 |
m4_defun([_LT_CMD_STRIPLIB],
|
|
2015 |
[m4_require([_LT_DECL_EGREP])
|
|
2016 |
striplib=
|
1192 | 2017 |
old_striplib=
|
1193 | 2018 |
AC_MSG_CHECKING([whether stripping libraries is possible])
|
1194 | |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
|
2019 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
1195 | 2020 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
1196 | 2021 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
1197 | 2022 |
AC_MSG_RESULT([yes])
|
1198 | 2023 |
else
|
1199 | 2024 |
# FIXME - insert some real tests, host_os isn't really good enough
|
1200 | 2025 |
case $host_os in
|
1201 | |
darwin*)
|
1202 | |
if test -n "$STRIP" ; then
|
1203 | |
striplib="$STRIP -x"
|
1204 | |
old_striplib="$STRIP -S"
|
1205 | |
AC_MSG_RESULT([yes])
|
1206 | |
else
|
1207 | |
AC_MSG_RESULT([no])
|
1208 | |
fi
|
1209 | |
;;
|
1210 | |
*)
|
1211 | |
AC_MSG_RESULT([no])
|
|
2026 |
darwin*)
|
|
2027 |
if test -n "$STRIP" ; then
|
|
2028 |
striplib="$STRIP -x"
|
|
2029 |
old_striplib="$STRIP -S"
|
|
2030 |
AC_MSG_RESULT([yes])
|
|
2031 |
else
|
|
2032 |
AC_MSG_RESULT([no])
|
|
2033 |
fi
|
|
2034 |
;;
|
|
2035 |
*)
|
|
2036 |
AC_MSG_RESULT([no])
|
1212 | 2037 |
;;
|
1213 | 2038 |
esac
|
1214 | 2039 |
fi
|
1215 | |
])# AC_LIBTOOL_SYS_LIB_STRIP
|
1216 | |
|
1217 | |
|
1218 | |
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
|
2040 |
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
|
2041 |
_LT_DECL([], [striplib], [1])
|
|
2042 |
])# _LT_CMD_STRIPLIB
|
|
2043 |
|
|
2044 |
|
|
2045 |
# _LT_SYS_DYNAMIC_LINKER([TAG])
|
1219 | 2046 |
# -----------------------------
|
1220 | 2047 |
# PORTME Fill in your ld.so characteristics
|
1221 | |
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
|
1222 | |
[AC_REQUIRE([LT_AC_PROG_SED])dnl
|
|
2048 |
m4_defun([_LT_SYS_DYNAMIC_LINKER],
|
|
2049 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
2050 |
m4_require([_LT_DECL_EGREP])dnl
|
|
2051 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
2052 |
m4_require([_LT_DECL_OBJDUMP])dnl
|
|
2053 |
m4_require([_LT_DECL_SED])dnl
|
1223 | 2054 |
AC_MSG_CHECKING([dynamic linker characteristics])
|
1224 | |
library_names_spec=
|
1225 | |
libname_spec='lib$name'
|
1226 | |
soname_spec=
|
1227 | |
shrext_cmds=".so"
|
1228 | |
postinstall_cmds=
|
1229 | |
postuninstall_cmds=
|
1230 | |
finish_cmds=
|
1231 | |
finish_eval=
|
1232 | |
shlibpath_var=
|
1233 | |
shlibpath_overrides_runpath=unknown
|
1234 | |
version_type=none
|
1235 | |
dynamic_linker="$host_os ld.so"
|
1236 | |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
1237 | |
m4_if($1,[],[
|
|
2055 |
m4_if([$1],
|
|
2056 |
[], [
|
1238 | 2057 |
if test "$GCC" = yes; then
|
1239 | 2058 |
case $host_os in
|
1240 | 2059 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
1241 | 2060 |
*) lt_awk_arg="/^libraries:/" ;;
|
1242 | 2061 |
esac
|
1243 | 2062 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
1244 | |
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
|
|
2063 |
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
|
1245 | 2064 |
# if the path contains ";" then we assume it to be the separator
|
1246 | 2065 |
# otherwise default to the standard path separator (i.e. ":") - it is
|
1247 | 2066 |
# assumed that no part of a normal pathname contains ";" but that should
|
1248 | 2067 |
# okay in the real world where ";" in dirpaths is itself problematic.
|
1249 | |
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
|
2068 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
1250 | 2069 |
else
|
1251 | |
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
2070 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
1252 | 2071 |
fi
|
1253 | 2072 |
# Ok, now we have the path, separated by spaces, we can step through it
|
1254 | 2073 |
# and add multilib dir if necessary.
|
|
1262 | 2081 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
1263 | 2082 |
fi
|
1264 | 2083 |
done
|
1265 | |
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
|
|
2084 |
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
|
1266 | 2085 |
BEGIN {RS=" "; FS="/|\n";} {
|
1267 | 2086 |
lt_foo="";
|
1268 | 2087 |
lt_count=0;
|
|
1282 | 2101 |
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
1283 | 2102 |
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
1284 | 2103 |
}'`
|
1285 | |
sys_lib_search_path_spec=`echo $lt_search_path_spec`
|
|
2104 |
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
|
1286 | 2105 |
else
|
1287 | 2106 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
1288 | 2107 |
fi])
|
|
2108 |
library_names_spec=
|
|
2109 |
libname_spec='lib$name'
|
|
2110 |
soname_spec=
|
|
2111 |
shrext_cmds=".so"
|
|
2112 |
postinstall_cmds=
|
|
2113 |
postuninstall_cmds=
|
|
2114 |
finish_cmds=
|
|
2115 |
finish_eval=
|
|
2116 |
shlibpath_var=
|
|
2117 |
shlibpath_overrides_runpath=unknown
|
|
2118 |
version_type=none
|
|
2119 |
dynamic_linker="$host_os ld.so"
|
|
2120 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
1289 | 2121 |
need_lib_prefix=unknown
|
1290 | 2122 |
hardcode_into_libs=no
|
1291 | 2123 |
|
|
1303 | 2135 |
soname_spec='${libname}${release}${shared_ext}$major'
|
1304 | 2136 |
;;
|
1305 | 2137 |
|
1306 | |
aix4* | aix5*)
|
|
2138 |
aix[[4-9]]*)
|
1307 | 2139 |
version_type=linux
|
1308 | 2140 |
need_lib_prefix=no
|
1309 | 2141 |
need_version=no
|
|
1322 | 2154 |
aix4 | aix4.[[01]] | aix4.[[01]].*)
|
1323 | 2155 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
1324 | 2156 |
echo ' yes '
|
1325 | |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
|
2157 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
1326 | 2158 |
:
|
1327 | 2159 |
else
|
1328 | 2160 |
can_build_shared=no
|
|
1348 | 2180 |
;;
|
1349 | 2181 |
|
1350 | 2182 |
amigaos*)
|
1351 | |
library_names_spec='$libname.ixlibrary $libname.a'
|
1352 | |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
1353 | |
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'
|
|
2183 |
case $host_cpu in
|
|
2184 |
powerpc)
|
|
2185 |
# Since July 2007 AmigaOS4 officially supports .so libraries.
|
|
2186 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
|
2187 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2188 |
;;
|
|
2189 |
m68k)
|
|
2190 |
library_names_spec='$libname.ixlibrary $libname.a'
|
|
2191 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
2192 |
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'
|
|
2193 |
;;
|
|
2194 |
esac
|
1354 | 2195 |
;;
|
1355 | 2196 |
|
1356 | 2197 |
beos*)
|
|
1373 | 2214 |
# libtool to hard-code these into programs
|
1374 | 2215 |
;;
|
1375 | 2216 |
|
1376 | |
cygwin* | mingw* | pw32*)
|
|
2217 |
cygwin* | mingw* | pw32* | cegcc*)
|
1377 | 2218 |
version_type=windows
|
1378 | 2219 |
shrext_cmds=".dll"
|
1379 | 2220 |
need_version=no
|
1380 | 2221 |
need_lib_prefix=no
|
1381 | 2222 |
|
1382 | 2223 |
case $GCC,$host_os in
|
1383 | |
yes,cygwin* | yes,mingw* | yes,pw32*)
|
|
2224 |
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
1384 | 2225 |
library_names_spec='$libname.dll.a'
|
1385 | 2226 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
1386 | 2227 |
postinstall_cmds='base_file=`basename \${file}`~
|
1387 | |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
|
2228 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
1388 | 2229 |
dldir=$destdir/`dirname \$dlpath`~
|
1389 | 2230 |
test -d \$dldir || mkdir -p \$dldir~
|
1390 | 2231 |
$install_prog $dir/$dlname \$dldir/$dlname~
|
1391 | |
chmod a+x \$dldir/$dlname'
|
|
2232 |
chmod a+x \$dldir/$dlname~
|
|
2233 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
|
2234 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
|
2235 |
fi'
|
1392 | 2236 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
1393 | 2237 |
dlpath=$dir/\$dldll~
|
1394 | |
$rm \$dlpath'
|
|
2238 |
$RM \$dlpath'
|
1395 | 2239 |
shlibpath_overrides_runpath=yes
|
1396 | 2240 |
|
1397 | 2241 |
case $host_os in
|
|
1400 | 2244 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
1401 | 2245 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
1402 | 2246 |
;;
|
1403 | |
mingw*)
|
|
2247 |
mingw* | cegcc*)
|
1404 | 2248 |
# MinGW DLLs use traditional 'lib' prefix
|
1405 | 2249 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
1406 | |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
1407 | |
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
|
|
2250 |
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
2251 |
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
1408 | 2252 |
# It is most probably a Windows format PATH printed by
|
1409 | 2253 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
1410 | 2254 |
# path with ; separators, and with drive letters. We can handle the
|
1411 | 2255 |
# drive letters (cygwin fileutils understands them), so leave them,
|
1412 | 2256 |
# especially as we might pass files found there to a mingw objdump,
|
1413 | 2257 |
# which wouldn't understand a cygwinified path. Ahh.
|
1414 | |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
2258 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
1415 | 2259 |
else
|
1416 | |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
2260 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
1417 | 2261 |
fi
|
1418 | 2262 |
;;
|
1419 | 2263 |
pw32*)
|
|
1437 | 2281 |
version_type=darwin
|
1438 | 2282 |
need_lib_prefix=no
|
1439 | 2283 |
need_version=no
|
1440 | |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|
2284 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
1441 | 2285 |
soname_spec='${libname}${release}${major}$shared_ext'
|
1442 | 2286 |
shlibpath_overrides_runpath=yes
|
1443 | 2287 |
shlibpath_var=DYLD_LIBRARY_PATH
|
1444 | 2288 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
1445 | |
m4_if([$1], [],[
|
1446 | |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
|
2289 |
m4_if([$1], [],[
|
|
2290 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
1447 | 2291 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
1448 | 2292 |
;;
|
1449 | 2293 |
|
|
1536 | 2380 |
fi
|
1537 | 2381 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
1538 | 2382 |
;;
|
1539 | |
hppa*64*)
|
1540 | |
shrext_cmds='.sl'
|
1541 | |
hardcode_into_libs=yes
|
1542 | |
dynamic_linker="$host_os dld.sl"
|
1543 | |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
1544 | |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
1545 | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
1546 | |
soname_spec='${libname}${release}${shared_ext}$major'
|
1547 | |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
1548 | |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
1549 | |
;;
|
1550 | |
*)
|
|
2383 |
hppa*64*)
|
|
2384 |
shrext_cmds='.sl'
|
|
2385 |
hardcode_into_libs=yes
|
|
2386 |
dynamic_linker="$host_os dld.sl"
|
|
2387 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
2388 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
2389 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2390 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
2391 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
2392 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
2393 |
;;
|
|
2394 |
*)
|
1551 | 2395 |
shrext_cmds='.sl'
|
1552 | 2396 |
dynamic_linker="$host_os dld.sl"
|
1553 | 2397 |
shlibpath_var=SHLIB_PATH
|
|
1624 | 2468 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
1625 | 2469 |
shlibpath_var=LD_LIBRARY_PATH
|
1626 | 2470 |
shlibpath_overrides_runpath=no
|
|
2471 |
# Some binutils ld are patched to set DT_RUNPATH
|
|
2472 |
save_LDFLAGS=$LDFLAGS
|
|
2473 |
save_libdir=$libdir
|
|
2474 |
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
|
|
2475 |
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
|
|
2476 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
|
2477 |
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
|
|
2478 |
[shlibpath_overrides_runpath=yes])])
|
|
2479 |
LDFLAGS=$save_LDFLAGS
|
|
2480 |
libdir=$save_libdir
|
|
2481 |
|
1627 | 2482 |
# This implies no fast_install, which is unacceptable.
|
1628 | 2483 |
# Some rework will be needed to allow for fast_install
|
1629 | 2484 |
# before this can be enabled.
|
1630 | 2485 |
hardcode_into_libs=yes
|
1631 | |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
1632 | |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
2486 |
|
|
2487 |
# Add ABI-specific directories to the system library path.
|
|
2488 |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
|
1633 | 2489 |
|
1634 | 2490 |
# Append ld.so.conf contents to the search path
|
1635 | 2491 |
if test -f /etc/ld.so.conf; then
|
1636 | |
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;/^$/d' | tr '\n' ' '`
|
|
2492 |
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;/^$/d' | tr '\n' ' '`
|
1637 | 2493 |
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
1638 | 2494 |
fi
|
1639 | 2495 |
|
|
1650 | 2506 |
version_type=sunos
|
1651 | 2507 |
need_lib_prefix=no
|
1652 | 2508 |
need_version=no
|
1653 | |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
2509 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
1654 | 2510 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
1655 | 2511 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
1656 | 2512 |
dynamic_linker='NetBSD (a.out) ld.so'
|
|
1671 | 2527 |
shlibpath_overrides_runpath=yes
|
1672 | 2528 |
;;
|
1673 | 2529 |
|
1674 | |
nto-qnx*)
|
1675 | |
version_type=linux
|
|
2530 |
*nto* | *qnx*)
|
|
2531 |
version_type=qnx
|
1676 | 2532 |
need_lib_prefix=no
|
1677 | 2533 |
need_version=no
|
1678 | 2534 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
1679 | 2535 |
soname_spec='${libname}${release}${shared_ext}$major'
|
1680 | 2536 |
shlibpath_var=LD_LIBRARY_PATH
|
1681 | |
shlibpath_overrides_runpath=yes
|
|
2537 |
shlibpath_overrides_runpath=no
|
|
2538 |
hardcode_into_libs=yes
|
|
2539 |
dynamic_linker='ldqnx.so'
|
1682 | 2540 |
;;
|
1683 | 2541 |
|
1684 | 2542 |
openbsd*)
|
|
1687 | 2545 |
need_lib_prefix=no
|
1688 | 2546 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
1689 | 2547 |
case $host_os in
|
1690 | |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
1691 | |
*) need_version=no ;;
|
|
2548 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
2549 |
*) need_version=no ;;
|
1692 | 2550 |
esac
|
1693 | 2551 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
1694 | 2552 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
1695 | 2553 |
shlibpath_var=LD_LIBRARY_PATH
|
1696 | |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
2554 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
1697 | 2555 |
case $host_os in
|
1698 | 2556 |
openbsd2.[[89]] | openbsd2.[[89]].*)
|
1699 | 2557 |
shlibpath_overrides_runpath=no
|
|
1765 | 2623 |
sni)
|
1766 | 2624 |
shlibpath_overrides_runpath=no
|
1767 | 2625 |
need_lib_prefix=no
|
1768 | |
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
1769 | 2626 |
runpath_var=LD_RUN_PATH
|
1770 | 2627 |
;;
|
1771 | 2628 |
siemens)
|
|
1796 | 2653 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
1797 | 2654 |
soname_spec='${libname}${release}${shared_ext}$major'
|
1798 | 2655 |
shlibpath_var=LD_LIBRARY_PATH
|
|
2656 |
shlibpath_overrides_runpath=yes
|
1799 | 2657 |
hardcode_into_libs=yes
|
1800 | 2658 |
if test "$with_gnu_ld" = yes; then
|
1801 | 2659 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
1802 | |
shlibpath_overrides_runpath=no
|
1803 | 2660 |
else
|
1804 | 2661 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
1805 | |
shlibpath_overrides_runpath=yes
|
1806 | 2662 |
case $host_os in
|
1807 | 2663 |
sco3.2v5*)
|
1808 | 2664 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
1812 | 2668 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
1813 | 2669 |
;;
|
1814 | 2670 |
|
|
2671 |
tpf*)
|
|
2672 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
|
2673 |
version_type=linux
|
|
2674 |
need_lib_prefix=no
|
|
2675 |
need_version=no
|
|
2676 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2677 |
shlibpath_var=LD_LIBRARY_PATH
|
|
2678 |
shlibpath_overrides_runpath=no
|
|
2679 |
hardcode_into_libs=yes
|
|
2680 |
;;
|
|
2681 |
|
1815 | 2682 |
uts4*)
|
1816 | 2683 |
version_type=linux
|
1817 | 2684 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
1830 | 2697 |
if test "$GCC" = yes; then
|
1831 | 2698 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
1832 | 2699 |
fi
|
1833 | |
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
1834 | |
|
1835 |