leo_sobral@2
|
1 |
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
|
leo_sobral@2
|
2 |
|
leo_sobral@2
|
3 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
leo_sobral@2
|
4 |
# 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
5 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
7 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
8 |
|
leo_sobral@2
|
9 |
# This program is distributed in the hope that it will be useful,
|
leo_sobral@2
|
10 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
leo_sobral@2
|
11 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
leo_sobral@2
|
12 |
# PARTICULAR PURPOSE.
|
leo_sobral@2
|
13 |
|
leo_sobral@2
|
14 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
leo_sobral@2
|
15 |
|
leo_sobral@2
|
16 |
# serial 47 AC_PROG_LIBTOOL
|
leo_sobral@2
|
17 |
# Debian $Rev: 214 $
|
leo_sobral@2
|
18 |
|
leo_sobral@2
|
19 |
|
leo_sobral@2
|
20 |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
leo_sobral@2
|
21 |
# -----------------------------------------------------------
|
leo_sobral@2
|
22 |
# If this macro is not defined by Autoconf, define it here.
|
leo_sobral@2
|
23 |
m4_ifdef([AC_PROVIDE_IFELSE],
|
leo_sobral@2
|
24 |
[],
|
leo_sobral@2
|
25 |
[m4_define([AC_PROVIDE_IFELSE],
|
leo_sobral@2
|
26 |
[m4_ifdef([AC_PROVIDE_$1],
|
leo_sobral@2
|
27 |
[$2], [$3])])])
|
leo_sobral@2
|
28 |
|
leo_sobral@2
|
29 |
|
leo_sobral@2
|
30 |
# AC_PROG_LIBTOOL
|
leo_sobral@2
|
31 |
# ---------------
|
leo_sobral@2
|
32 |
AC_DEFUN([AC_PROG_LIBTOOL],
|
leo_sobral@2
|
33 |
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
|
leo_sobral@2
|
34 |
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
|
leo_sobral@2
|
35 |
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
|
leo_sobral@2
|
36 |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
leo_sobral@2
|
37 |
[AC_LIBTOOL_CXX],
|
leo_sobral@2
|
38 |
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
|
leo_sobral@2
|
39 |
])])
|
leo_sobral@2
|
40 |
dnl And a similar setup for Fortran 77 support
|
leo_sobral@2
|
41 |
AC_PROVIDE_IFELSE([AC_PROG_F77],
|
leo_sobral@2
|
42 |
[AC_LIBTOOL_F77],
|
leo_sobral@2
|
43 |
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
|
leo_sobral@2
|
44 |
])])
|
leo_sobral@2
|
45 |
|
leo_sobral@2
|
46 |
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
|
leo_sobral@2
|
47 |
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
|
leo_sobral@2
|
48 |
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
|
leo_sobral@2
|
49 |
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
leo_sobral@2
|
50 |
[AC_LIBTOOL_GCJ],
|
leo_sobral@2
|
51 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
leo_sobral@2
|
52 |
[AC_LIBTOOL_GCJ],
|
leo_sobral@2
|
53 |
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
|
leo_sobral@2
|
54 |
[AC_LIBTOOL_GCJ],
|
leo_sobral@2
|
55 |
[ifdef([AC_PROG_GCJ],
|
leo_sobral@2
|
56 |
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
leo_sobral@2
|
57 |
ifdef([A][M_PROG_GCJ],
|
leo_sobral@2
|
58 |
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
leo_sobral@2
|
59 |
ifdef([LT_AC_PROG_GCJ],
|
leo_sobral@2
|
60 |
[define([LT_AC_PROG_GCJ],
|
leo_sobral@2
|
61 |
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
|
leo_sobral@2
|
62 |
])])# AC_PROG_LIBTOOL
|
leo_sobral@2
|
63 |
|
leo_sobral@2
|
64 |
|
leo_sobral@2
|
65 |
# _AC_PROG_LIBTOOL
|
leo_sobral@2
|
66 |
# ----------------
|
leo_sobral@2
|
67 |
AC_DEFUN([_AC_PROG_LIBTOOL],
|
leo_sobral@2
|
68 |
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
leo_sobral@2
|
69 |
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
|
leo_sobral@2
|
70 |
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
|
leo_sobral@2
|
71 |
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
|
leo_sobral@2
|
72 |
|
leo_sobral@2
|
73 |
# This can be used to rebuild libtool when needed
|
leo_sobral@2
|
74 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
leo_sobral@2
|
75 |
|
leo_sobral@2
|
76 |
# Always use our own libtool.
|
leo_sobral@2
|
77 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
leo_sobral@2
|
78 |
AC_SUBST(LIBTOOL)dnl
|
leo_sobral@2
|
79 |
|
leo_sobral@2
|
80 |
# Prevent multiple expansion
|
leo_sobral@2
|
81 |
define([AC_PROG_LIBTOOL], [])
|
leo_sobral@2
|
82 |
])# _AC_PROG_LIBTOOL
|
leo_sobral@2
|
83 |
|
leo_sobral@2
|
84 |
|
leo_sobral@2
|
85 |
# AC_LIBTOOL_SETUP
|
leo_sobral@2
|
86 |
# ----------------
|
leo_sobral@2
|
87 |
AC_DEFUN([AC_LIBTOOL_SETUP],
|
leo_sobral@2
|
88 |
[AC_PREREQ(2.50)dnl
|
leo_sobral@2
|
89 |
AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
leo_sobral@2
|
90 |
AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
leo_sobral@2
|
91 |
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
leo_sobral@2
|
92 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
leo_sobral@2
|
93 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
leo_sobral@2
|
94 |
AC_REQUIRE([AC_PROG_CC])dnl
|
leo_sobral@2
|
95 |
AC_REQUIRE([AC_PROG_LD])dnl
|
leo_sobral@2
|
96 |
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
|
leo_sobral@2
|
97 |
AC_REQUIRE([AC_PROG_NM])dnl
|
leo_sobral@2
|
98 |
|
leo_sobral@2
|
99 |
AC_REQUIRE([AC_PROG_LN_S])dnl
|
leo_sobral@2
|
100 |
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
|
leo_sobral@2
|
101 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
leo_sobral@2
|
102 |
AC_REQUIRE([AC_OBJEXT])dnl
|
leo_sobral@2
|
103 |
AC_REQUIRE([AC_EXEEXT])dnl
|
leo_sobral@2
|
104 |
dnl
|
leo_sobral@2
|
105 |
|
leo_sobral@2
|
106 |
AC_LIBTOOL_SYS_MAX_CMD_LEN
|
leo_sobral@2
|
107 |
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
leo_sobral@2
|
108 |
AC_LIBTOOL_OBJDIR
|
leo_sobral@2
|
109 |
|
leo_sobral@2
|
110 |
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
leo_sobral@2
|
111 |
_LT_AC_PROG_ECHO_BACKSLASH
|
leo_sobral@2
|
112 |
|
leo_sobral@2
|
113 |
case $host_os in
|
leo_sobral@2
|
114 |
aix3*)
|
leo_sobral@2
|
115 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
leo_sobral@2
|
116 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
leo_sobral@2
|
117 |
# vanish in a puff of smoke.
|
leo_sobral@2
|
118 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
leo_sobral@2
|
119 |
COLLECT_NAMES=
|
leo_sobral@2
|
120 |
export COLLECT_NAMES
|
leo_sobral@2
|
121 |
fi
|
leo_sobral@2
|
122 |
;;
|
leo_sobral@2
|
123 |
esac
|
leo_sobral@2
|
124 |
|
leo_sobral@2
|
125 |
# Sed substitution that helps us do robust quoting. It backslashifies
|
leo_sobral@2
|
126 |
# metacharacters that are still active within double-quoted strings.
|
leo_sobral@2
|
127 |
Xsed='sed -e s/^X//'
|
leo_sobral@2
|
128 |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
|
leo_sobral@2
|
129 |
|
leo_sobral@2
|
130 |
# Same as above, but do not quote variable references.
|
leo_sobral@2
|
131 |
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
|
leo_sobral@2
|
132 |
|
leo_sobral@2
|
133 |
# Sed substitution to delay expansion of an escaped shell variable in a
|
leo_sobral@2
|
134 |
# double_quote_subst'ed string.
|
leo_sobral@2
|
135 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
leo_sobral@2
|
136 |
|
leo_sobral@2
|
137 |
# Sed substitution to avoid accidental globbing in evaled expressions
|
leo_sobral@2
|
138 |
no_glob_subst='s/\*/\\\*/g'
|
leo_sobral@2
|
139 |
|
leo_sobral@2
|
140 |
# Constants:
|
leo_sobral@2
|
141 |
rm="rm -f"
|
leo_sobral@2
|
142 |
|
leo_sobral@2
|
143 |
# Global variables:
|
leo_sobral@2
|
144 |
default_ofile=libtool
|
leo_sobral@2
|
145 |
can_build_shared=yes
|
leo_sobral@2
|
146 |
|
leo_sobral@2
|
147 |
# All known linkers require a `.a' archive for static linking (except M$VC,
|
leo_sobral@2
|
148 |
# which needs '.lib').
|
leo_sobral@2
|
149 |
libext=a
|
leo_sobral@2
|
150 |
ltmain="$ac_aux_dir/ltmain.sh"
|
leo_sobral@2
|
151 |
ofile="$default_ofile"
|
leo_sobral@2
|
152 |
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
leo_sobral@2
|
153 |
|
leo_sobral@2
|
154 |
AC_CHECK_TOOL(AR, ar, false)
|
leo_sobral@2
|
155 |
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
leo_sobral@2
|
156 |
AC_CHECK_TOOL(STRIP, strip, :)
|
leo_sobral@2
|
157 |
|
leo_sobral@2
|
158 |
old_CC="$CC"
|
leo_sobral@2
|
159 |
old_CFLAGS="$CFLAGS"
|
leo_sobral@2
|
160 |
|
leo_sobral@2
|
161 |
# Set sane defaults for various variables
|
leo_sobral@2
|
162 |
test -z "$AR" && AR=ar
|
leo_sobral@2
|
163 |
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
leo_sobral@2
|
164 |
test -z "$AS" && AS=as
|
leo_sobral@2
|
165 |
test -z "$CC" && CC=cc
|
leo_sobral@2
|
166 |
test -z "$LTCC" && LTCC=$CC
|
leo_sobral@2
|
167 |
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
leo_sobral@2
|
168 |
test -z "$LD" && LD=ld
|
leo_sobral@2
|
169 |
test -z "$LN_S" && LN_S="ln -s"
|
leo_sobral@2
|
170 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
leo_sobral@2
|
171 |
test -z "$NM" && NM=nm
|
leo_sobral@2
|
172 |
test -z "$SED" && SED=sed
|
leo_sobral@2
|
173 |
test -z "$OBJDUMP" && OBJDUMP=objdump
|
leo_sobral@2
|
174 |
test -z "$RANLIB" && RANLIB=:
|
leo_sobral@2
|
175 |
test -z "$STRIP" && STRIP=:
|
leo_sobral@2
|
176 |
test -z "$ac_objext" && ac_objext=o
|
leo_sobral@2
|
177 |
|
leo_sobral@2
|
178 |
# Determine commands to create old-style static archives.
|
leo_sobral@2
|
179 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
leo_sobral@2
|
180 |
old_postinstall_cmds='chmod 644 $oldlib'
|
leo_sobral@2
|
181 |
old_postuninstall_cmds=
|
leo_sobral@2
|
182 |
|
leo_sobral@2
|
183 |
if test -n "$RANLIB"; then
|
leo_sobral@2
|
184 |
case $host_os in
|
leo_sobral@2
|
185 |
openbsd*)
|
leo_sobral@2
|
186 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
|
leo_sobral@2
|
187 |
;;
|
leo_sobral@2
|
188 |
*)
|
leo_sobral@2
|
189 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
|
leo_sobral@2
|
190 |
;;
|
leo_sobral@2
|
191 |
esac
|
leo_sobral@2
|
192 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
leo_sobral@2
|
193 |
fi
|
leo_sobral@2
|
194 |
|
leo_sobral@2
|
195 |
# Only perform the check for file, if the check method requires it
|
leo_sobral@2
|
196 |
case $deplibs_check_method in
|
leo_sobral@2
|
197 |
file_magic*)
|
leo_sobral@2
|
198 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
leo_sobral@2
|
199 |
AC_PATH_MAGIC
|
leo_sobral@2
|
200 |
fi
|
leo_sobral@2
|
201 |
;;
|
leo_sobral@2
|
202 |
esac
|
leo_sobral@2
|
203 |
|
leo_sobral@2
|
204 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
|
leo_sobral@2
|
205 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
leo_sobral@2
|
206 |
enable_win32_dll=yes, enable_win32_dll=no)
|
leo_sobral@2
|
207 |
|
leo_sobral@2
|
208 |
AC_ARG_ENABLE([libtool-lock],
|
leo_sobral@2
|
209 |
[AC_HELP_STRING([--disable-libtool-lock],
|
leo_sobral@2
|
210 |
[avoid locking (might break parallel builds)])])
|
leo_sobral@2
|
211 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
leo_sobral@2
|
212 |
|
leo_sobral@2
|
213 |
AC_ARG_WITH([pic],
|
leo_sobral@2
|
214 |
[AC_HELP_STRING([--with-pic],
|
leo_sobral@2
|
215 |
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
leo_sobral@2
|
216 |
[pic_mode="$withval"],
|
leo_sobral@2
|
217 |
[pic_mode=default])
|
leo_sobral@2
|
218 |
test -z "$pic_mode" && pic_mode=default
|
leo_sobral@2
|
219 |
|
leo_sobral@2
|
220 |
# Use C for the default configuration in the libtool script
|
leo_sobral@2
|
221 |
tagname=
|
leo_sobral@2
|
222 |
AC_LIBTOOL_LANG_C_CONFIG
|
leo_sobral@2
|
223 |
_LT_AC_TAGCONFIG
|
leo_sobral@2
|
224 |
])# AC_LIBTOOL_SETUP
|
leo_sobral@2
|
225 |
|
leo_sobral@2
|
226 |
|
leo_sobral@2
|
227 |
# _LT_AC_SYS_COMPILER
|
leo_sobral@2
|
228 |
# -------------------
|
leo_sobral@2
|
229 |
AC_DEFUN([_LT_AC_SYS_COMPILER],
|
leo_sobral@2
|
230 |
[AC_REQUIRE([AC_PROG_CC])dnl
|
leo_sobral@2
|
231 |
|
leo_sobral@2
|
232 |
# If no C compiler was specified, use CC.
|
leo_sobral@2
|
233 |
LTCC=${LTCC-"$CC"}
|
leo_sobral@2
|
234 |
|
leo_sobral@2
|
235 |
# Allow CC to be a program name with arguments.
|
leo_sobral@2
|
236 |
compiler=$CC
|
leo_sobral@2
|
237 |
])# _LT_AC_SYS_COMPILER
|
leo_sobral@2
|
238 |
|
leo_sobral@2
|
239 |
|
leo_sobral@2
|
240 |
# _LT_AC_SYS_LIBPATH_AIX
|
leo_sobral@2
|
241 |
# ----------------------
|
leo_sobral@2
|
242 |
# Links a minimal program and checks the executable
|
leo_sobral@2
|
243 |
# for the system default hardcoded library path. In most cases,
|
leo_sobral@2
|
244 |
# this is /usr/lib:/lib, but when the MPI compilers are used
|
leo_sobral@2
|
245 |
# the location of the communication and MPI libs are included too.
|
leo_sobral@2
|
246 |
# If we don't find anything, use the default library path according
|
leo_sobral@2
|
247 |
# to the aix ld manual.
|
leo_sobral@2
|
248 |
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
|
leo_sobral@2
|
249 |
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
leo_sobral@2
|
250 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
leo_sobral@2
|
251 |
}'`
|
leo_sobral@2
|
252 |
# Check for a 64-bit object if we didn't find anything.
|
leo_sobral@2
|
253 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
leo_sobral@2
|
254 |
}'`; fi],[])
|
leo_sobral@2
|
255 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
leo_sobral@2
|
256 |
])# _LT_AC_SYS_LIBPATH_AIX
|
leo_sobral@2
|
257 |
|
leo_sobral@2
|
258 |
|
leo_sobral@2
|
259 |
# _LT_AC_SHELL_INIT(ARG)
|
leo_sobral@2
|
260 |
# ----------------------
|
leo_sobral@2
|
261 |
AC_DEFUN([_LT_AC_SHELL_INIT],
|
leo_sobral@2
|
262 |
[ifdef([AC_DIVERSION_NOTICE],
|
leo_sobral@2
|
263 |
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
leo_sobral@2
|
264 |
[AC_DIVERT_PUSH(NOTICE)])
|
leo_sobral@2
|
265 |
$1
|
leo_sobral@2
|
266 |
AC_DIVERT_POP
|
leo_sobral@2
|
267 |
])# _LT_AC_SHELL_INIT
|
leo_sobral@2
|
268 |
|
leo_sobral@2
|
269 |
|
leo_sobral@2
|
270 |
# _LT_AC_PROG_ECHO_BACKSLASH
|
leo_sobral@2
|
271 |
# --------------------------
|
leo_sobral@2
|
272 |
# Add some code to the start of the generated configure script which
|
leo_sobral@2
|
273 |
# will find an echo command which doesn't interpret backslashes.
|
leo_sobral@2
|
274 |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
|
leo_sobral@2
|
275 |
[_LT_AC_SHELL_INIT([
|
leo_sobral@2
|
276 |
# Check that we are running under the correct shell.
|
leo_sobral@2
|
277 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
leo_sobral@2
|
278 |
|
leo_sobral@2
|
279 |
case X$ECHO in
|
leo_sobral@2
|
280 |
X*--fallback-echo)
|
leo_sobral@2
|
281 |
# Remove one level of quotation (which was required for Make).
|
leo_sobral@2
|
282 |
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
leo_sobral@2
|
283 |
;;
|
leo_sobral@2
|
284 |
esac
|
leo_sobral@2
|
285 |
|
leo_sobral@2
|
286 |
echo=${ECHO-echo}
|
leo_sobral@2
|
287 |
if test "X[$]1" = X--no-reexec; then
|
leo_sobral@2
|
288 |
# Discard the --no-reexec flag, and continue.
|
leo_sobral@2
|
289 |
shift
|
leo_sobral@2
|
290 |
elif test "X[$]1" = X--fallback-echo; then
|
leo_sobral@2
|
291 |
# Avoid inline document here, it may be left over
|
leo_sobral@2
|
292 |
:
|
leo_sobral@2
|
293 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
leo_sobral@2
|
294 |
# Yippee, $echo works!
|
leo_sobral@2
|
295 |
:
|
leo_sobral@2
|
296 |
else
|
leo_sobral@2
|
297 |
# Restart under the correct shell.
|
leo_sobral@2
|
298 |
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
leo_sobral@2
|
299 |
fi
|
leo_sobral@2
|
300 |
|
leo_sobral@2
|
301 |
if test "X[$]1" = X--fallback-echo; then
|
leo_sobral@2
|
302 |
# used as fallback echo
|
leo_sobral@2
|
303 |
shift
|
leo_sobral@2
|
304 |
cat <<EOF
|
leo_sobral@2
|
305 |
[$]*
|
leo_sobral@2
|
306 |
EOF
|
leo_sobral@2
|
307 |
exit 0
|
leo_sobral@2
|
308 |
fi
|
leo_sobral@2
|
309 |
|
leo_sobral@2
|
310 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
leo_sobral@2
|
311 |
# if CDPATH is set.
|
leo_sobral@2
|
312 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
|
leo_sobral@2
|
313 |
|
leo_sobral@2
|
314 |
if test -z "$ECHO"; then
|
leo_sobral@2
|
315 |
if test "X${echo_test_string+set}" != Xset; then
|
leo_sobral@2
|
316 |
# find a string as large as possible, as long as the shell can cope with it
|
leo_sobral@2
|
317 |
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
leo_sobral@2
|
318 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
leo_sobral@2
|
319 |
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
|
leo_sobral@2
|
320 |
echo_test_string="`eval $cmd`" &&
|
leo_sobral@2
|
321 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
leo_sobral@2
|
322 |
then
|
leo_sobral@2
|
323 |
break
|
leo_sobral@2
|
324 |
fi
|
leo_sobral@2
|
325 |
done
|
leo_sobral@2
|
326 |
fi
|
leo_sobral@2
|
327 |
|
leo_sobral@2
|
328 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
leo_sobral@2
|
329 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
leo_sobral@2
|
330 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
leo_sobral@2
|
331 |
:
|
leo_sobral@2
|
332 |
else
|
leo_sobral@2
|
333 |
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
leo_sobral@2
|
334 |
# backslashes. This makes it impossible to quote backslashes using
|
leo_sobral@2
|
335 |
# echo "$something" | sed 's/\\/\\\\/g'
|
leo_sobral@2
|
336 |
#
|
leo_sobral@2
|
337 |
# So, first we look for a working echo in the user's PATH.
|
leo_sobral@2
|
338 |
|
leo_sobral@2
|
339 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
leo_sobral@2
|
340 |
for dir in $PATH /usr/ucb; do
|
leo_sobral@2
|
341 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
342 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
leo_sobral@2
|
343 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
leo_sobral@2
|
344 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
leo_sobral@2
|
345 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
leo_sobral@2
|
346 |
echo="$dir/echo"
|
leo_sobral@2
|
347 |
break
|
leo_sobral@2
|
348 |
fi
|
leo_sobral@2
|
349 |
done
|
leo_sobral@2
|
350 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
351 |
|
leo_sobral@2
|
352 |
if test "X$echo" = Xecho; then
|
leo_sobral@2
|
353 |
# We didn't find a better echo, so look for alternatives.
|
leo_sobral@2
|
354 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
leo_sobral@2
|
355 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
leo_sobral@2
|
356 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
leo_sobral@2
|
357 |
# This shell has a builtin print -r that does the trick.
|
leo_sobral@2
|
358 |
echo='print -r'
|
leo_sobral@2
|
359 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
leo_sobral@2
|
360 |
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
leo_sobral@2
|
361 |
# If we have ksh, try running configure again with it.
|
leo_sobral@2
|
362 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
leo_sobral@2
|
363 |
export ORIGINAL_CONFIG_SHELL
|
leo_sobral@2
|
364 |
CONFIG_SHELL=/bin/ksh
|
leo_sobral@2
|
365 |
export CONFIG_SHELL
|
leo_sobral@2
|
366 |
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
leo_sobral@2
|
367 |
else
|
leo_sobral@2
|
368 |
# Try using printf.
|
leo_sobral@2
|
369 |
echo='printf %s\n'
|
leo_sobral@2
|
370 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
leo_sobral@2
|
371 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
leo_sobral@2
|
372 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
leo_sobral@2
|
373 |
# Cool, printf works
|
leo_sobral@2
|
374 |
:
|
leo_sobral@2
|
375 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
leo_sobral@2
|
376 |
test "X$echo_testing_string" = 'X\t' &&
|
leo_sobral@2
|
377 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
leo_sobral@2
|
378 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
leo_sobral@2
|
379 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
leo_sobral@2
|
380 |
export CONFIG_SHELL
|
leo_sobral@2
|
381 |
SHELL="$CONFIG_SHELL"
|
leo_sobral@2
|
382 |
export SHELL
|
leo_sobral@2
|
383 |
echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
leo_sobral@2
|
384 |
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
leo_sobral@2
|
385 |
test "X$echo_testing_string" = 'X\t' &&
|
leo_sobral@2
|
386 |
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
leo_sobral@2
|
387 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
leo_sobral@2
|
388 |
echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
leo_sobral@2
|
389 |
else
|
leo_sobral@2
|
390 |
# maybe with a smaller string...
|
leo_sobral@2
|
391 |
prev=:
|
leo_sobral@2
|
392 |
|
leo_sobral@2
|
393 |
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
leo_sobral@2
|
394 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
leo_sobral@2
|
395 |
then
|
leo_sobral@2
|
396 |
break
|
leo_sobral@2
|
397 |
fi
|
leo_sobral@2
|
398 |
prev="$cmd"
|
leo_sobral@2
|
399 |
done
|
leo_sobral@2
|
400 |
|
leo_sobral@2
|
401 |
if test "$prev" != 'sed 50q "[$]0"'; then
|
leo_sobral@2
|
402 |
echo_test_string=`eval $prev`
|
leo_sobral@2
|
403 |
export echo_test_string
|
leo_sobral@2
|
404 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
leo_sobral@2
|
405 |
else
|
leo_sobral@2
|
406 |
# Oops. We lost completely, so just stick with echo.
|
leo_sobral@2
|
407 |
echo=echo
|
leo_sobral@2
|
408 |
fi
|
leo_sobral@2
|
409 |
fi
|
leo_sobral@2
|
410 |
fi
|
leo_sobral@2
|
411 |
fi
|
leo_sobral@2
|
412 |
fi
|
leo_sobral@2
|
413 |
fi
|
leo_sobral@2
|
414 |
|
leo_sobral@2
|
415 |
# Copy echo and quote the copy suitably for passing to libtool from
|
leo_sobral@2
|
416 |
# the Makefile, instead of quoting the original, which is used later.
|
leo_sobral@2
|
417 |
ECHO=$echo
|
leo_sobral@2
|
418 |
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
leo_sobral@2
|
419 |
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
leo_sobral@2
|
420 |
fi
|
leo_sobral@2
|
421 |
|
leo_sobral@2
|
422 |
AC_SUBST(ECHO)
|
leo_sobral@2
|
423 |
])])# _LT_AC_PROG_ECHO_BACKSLASH
|
leo_sobral@2
|
424 |
|
leo_sobral@2
|
425 |
|
leo_sobral@2
|
426 |
# _LT_AC_LOCK
|
leo_sobral@2
|
427 |
# -----------
|
leo_sobral@2
|
428 |
AC_DEFUN([_LT_AC_LOCK],
|
leo_sobral@2
|
429 |
[AC_ARG_ENABLE([libtool-lock],
|
leo_sobral@2
|
430 |
[AC_HELP_STRING([--disable-libtool-lock],
|
leo_sobral@2
|
431 |
[avoid locking (might break parallel builds)])])
|
leo_sobral@2
|
432 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
leo_sobral@2
|
433 |
|
leo_sobral@2
|
434 |
# Some flags need to be propagated to the compiler or linker for good
|
leo_sobral@2
|
435 |
# libtool support.
|
leo_sobral@2
|
436 |
case $host in
|
leo_sobral@2
|
437 |
ia64-*-hpux*)
|
leo_sobral@2
|
438 |
# Find out which ABI we are using.
|
leo_sobral@2
|
439 |
echo 'int i;' > conftest.$ac_ext
|
leo_sobral@2
|
440 |
if AC_TRY_EVAL(ac_compile); then
|
leo_sobral@2
|
441 |
case `/usr/bin/file conftest.$ac_objext` in
|
leo_sobral@2
|
442 |
*ELF-32*)
|
leo_sobral@2
|
443 |
HPUX_IA64_MODE="32"
|
leo_sobral@2
|
444 |
;;
|
leo_sobral@2
|
445 |
*ELF-64*)
|
leo_sobral@2
|
446 |
HPUX_IA64_MODE="64"
|
leo_sobral@2
|
447 |
;;
|
leo_sobral@2
|
448 |
esac
|
leo_sobral@2
|
449 |
fi
|
leo_sobral@2
|
450 |
rm -rf conftest*
|
leo_sobral@2
|
451 |
;;
|
leo_sobral@2
|
452 |
*-*-irix6*)
|
leo_sobral@2
|
453 |
# Find out which ABI we are using.
|
leo_sobral@2
|
454 |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
leo_sobral@2
|
455 |
if AC_TRY_EVAL(ac_compile); then
|
leo_sobral@2
|
456 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
leo_sobral@2
|
457 |
case `/usr/bin/file conftest.$ac_objext` in
|
leo_sobral@2
|
458 |
*32-bit*)
|
leo_sobral@2
|
459 |
LD="${LD-ld} -melf32bsmip"
|
leo_sobral@2
|
460 |
;;
|
leo_sobral@2
|
461 |
*N32*)
|
leo_sobral@2
|
462 |
LD="${LD-ld} -melf32bmipn32"
|
leo_sobral@2
|
463 |
;;
|
leo_sobral@2
|
464 |
*64-bit*)
|
leo_sobral@2
|
465 |
LD="${LD-ld} -melf64bmip"
|
leo_sobral@2
|
466 |
;;
|
leo_sobral@2
|
467 |
esac
|
leo_sobral@2
|
468 |
else
|
leo_sobral@2
|
469 |
case `/usr/bin/file conftest.$ac_objext` in
|
leo_sobral@2
|
470 |
*32-bit*)
|
leo_sobral@2
|
471 |
LD="${LD-ld} -32"
|
leo_sobral@2
|
472 |
;;
|
leo_sobral@2
|
473 |
*N32*)
|
leo_sobral@2
|
474 |
LD="${LD-ld} -n32"
|
leo_sobral@2
|
475 |
;;
|
leo_sobral@2
|
476 |
*64-bit*)
|
leo_sobral@2
|
477 |
LD="${LD-ld} -64"
|
leo_sobral@2
|
478 |
;;
|
leo_sobral@2
|
479 |
esac
|
leo_sobral@2
|
480 |
fi
|
leo_sobral@2
|
481 |
fi
|
leo_sobral@2
|
482 |
rm -rf conftest*
|
leo_sobral@2
|
483 |
;;
|
leo_sobral@2
|
484 |
|
leo_sobral@2
|
485 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
leo_sobral@2
|
486 |
# Find out which ABI we are using.
|
leo_sobral@2
|
487 |
echo 'int i;' > conftest.$ac_ext
|
leo_sobral@2
|
488 |
if AC_TRY_EVAL(ac_compile); then
|
leo_sobral@2
|
489 |
case "`/usr/bin/file conftest.o`" in
|
leo_sobral@2
|
490 |
*32-bit*)
|
leo_sobral@2
|
491 |
case $host in
|
leo_sobral@2
|
492 |
x86_64-*linux*)
|
leo_sobral@2
|
493 |
LD="${LD-ld} -m elf_i386"
|
leo_sobral@2
|
494 |
;;
|
leo_sobral@2
|
495 |
ppc64-*linux*|powerpc64-*linux*)
|
leo_sobral@2
|
496 |
LD="${LD-ld} -m elf32ppclinux"
|
leo_sobral@2
|
497 |
;;
|
leo_sobral@2
|
498 |
s390x-*linux*)
|
leo_sobral@2
|
499 |
LD="${LD-ld} -m elf_s390"
|
leo_sobral@2
|
500 |
;;
|
leo_sobral@2
|
501 |
sparc64-*linux*)
|
leo_sobral@2
|
502 |
LD="${LD-ld} -m elf32_sparc"
|
leo_sobral@2
|
503 |
;;
|
leo_sobral@2
|
504 |
esac
|
leo_sobral@2
|
505 |
;;
|
leo_sobral@2
|
506 |
*64-bit*)
|
leo_sobral@2
|
507 |
case $host in
|
leo_sobral@2
|
508 |
x86_64-*linux*)
|
leo_sobral@2
|
509 |
LD="${LD-ld} -m elf_x86_64"
|
leo_sobral@2
|
510 |
;;
|
leo_sobral@2
|
511 |
ppc*-*linux*|powerpc*-*linux*)
|
leo_sobral@2
|
512 |
LD="${LD-ld} -m elf64ppc"
|
leo_sobral@2
|
513 |
;;
|
leo_sobral@2
|
514 |
s390*-*linux*)
|
leo_sobral@2
|
515 |
LD="${LD-ld} -m elf64_s390"
|
leo_sobral@2
|
516 |
;;
|
leo_sobral@2
|
517 |
sparc*-*linux*)
|
leo_sobral@2
|
518 |
LD="${LD-ld} -m elf64_sparc"
|
leo_sobral@2
|
519 |
;;
|
leo_sobral@2
|
520 |
esac
|
leo_sobral@2
|
521 |
;;
|
leo_sobral@2
|
522 |
esac
|
leo_sobral@2
|
523 |
fi
|
leo_sobral@2
|
524 |
rm -rf conftest*
|
leo_sobral@2
|
525 |
;;
|
leo_sobral@2
|
526 |
|
leo_sobral@2
|
527 |
*-*-sco3.2v5*)
|
leo_sobral@2
|
528 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
leo_sobral@2
|
529 |
SAVE_CFLAGS="$CFLAGS"
|
leo_sobral@2
|
530 |
CFLAGS="$CFLAGS -belf"
|
leo_sobral@2
|
531 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
leo_sobral@2
|
532 |
[AC_LANG_PUSH(C)
|
leo_sobral@2
|
533 |
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
leo_sobral@2
|
534 |
AC_LANG_POP])
|
leo_sobral@2
|
535 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
leo_sobral@2
|
536 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
leo_sobral@2
|
537 |
CFLAGS="$SAVE_CFLAGS"
|
leo_sobral@2
|
538 |
fi
|
leo_sobral@2
|
539 |
;;
|
leo_sobral@2
|
540 |
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
leo_sobral@2
|
541 |
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
leo_sobral@2
|
542 |
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
leo_sobral@2
|
543 |
AC_CHECK_TOOL(AS, as, false)
|
leo_sobral@2
|
544 |
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
leo_sobral@2
|
545 |
;;
|
leo_sobral@2
|
546 |
])
|
leo_sobral@2
|
547 |
esac
|
leo_sobral@2
|
548 |
|
leo_sobral@2
|
549 |
need_locks="$enable_libtool_lock"
|
leo_sobral@2
|
550 |
|
leo_sobral@2
|
551 |
])# _LT_AC_LOCK
|
leo_sobral@2
|
552 |
|
leo_sobral@2
|
553 |
|
leo_sobral@2
|
554 |
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
leo_sobral@2
|
555 |
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
leo_sobral@2
|
556 |
# ----------------------------------------------------------------
|
leo_sobral@2
|
557 |
# Check whether the given compiler option works
|
leo_sobral@2
|
558 |
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
|
leo_sobral@2
|
559 |
[AC_REQUIRE([LT_AC_PROG_SED])
|
leo_sobral@2
|
560 |
AC_CACHE_CHECK([$1], [$2],
|
leo_sobral@2
|
561 |
[$2=no
|
leo_sobral@2
|
562 |
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
leo_sobral@2
|
563 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
leo_sobral@2
|
564 |
lt_compiler_flag="$3"
|
leo_sobral@2
|
565 |
# Insert the option either (1) after the last *FLAGS variable, or
|
leo_sobral@2
|
566 |
# (2) before a word containing "conftest.", or (3) at the end.
|
leo_sobral@2
|
567 |
# Note that $ac_compile itself does not contain backslashes and begins
|
leo_sobral@2
|
568 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
leo_sobral@2
|
569 |
# The option is referenced via a variable to avoid confusing sed.
|
leo_sobral@2
|
570 |
lt_compile=`echo "$ac_compile" | $SED \
|
leo_sobral@2
|
571 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
leo_sobral@2
|
572 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
leo_sobral@2
|
573 |
-e 's:$: $lt_compiler_flag:'`
|
leo_sobral@2
|
574 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
leo_sobral@2
|
575 |
(eval "$lt_compile" 2>conftest.err)
|
leo_sobral@2
|
576 |
ac_status=$?
|
leo_sobral@2
|
577 |
cat conftest.err >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
578 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
579 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
leo_sobral@2
|
580 |
# The compiler can only warn and ignore the option if not recognized
|
leo_sobral@2
|
581 |
# So say no if there are warnings
|
leo_sobral@2
|
582 |
if test ! -s conftest.err; then
|
leo_sobral@2
|
583 |
$2=yes
|
leo_sobral@2
|
584 |
fi
|
leo_sobral@2
|
585 |
fi
|
leo_sobral@2
|
586 |
$rm conftest*
|
leo_sobral@2
|
587 |
])
|
leo_sobral@2
|
588 |
|
leo_sobral@2
|
589 |
if test x"[$]$2" = xyes; then
|
leo_sobral@2
|
590 |
ifelse([$5], , :, [$5])
|
leo_sobral@2
|
591 |
else
|
leo_sobral@2
|
592 |
ifelse([$6], , :, [$6])
|
leo_sobral@2
|
593 |
fi
|
leo_sobral@2
|
594 |
])# AC_LIBTOOL_COMPILER_OPTION
|
leo_sobral@2
|
595 |
|
leo_sobral@2
|
596 |
|
leo_sobral@2
|
597 |
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
leo_sobral@2
|
598 |
# [ACTION-SUCCESS], [ACTION-FAILURE])
|
leo_sobral@2
|
599 |
# ------------------------------------------------------------
|
leo_sobral@2
|
600 |
# Check whether the given compiler option works
|
leo_sobral@2
|
601 |
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
leo_sobral@2
|
602 |
[AC_CACHE_CHECK([$1], [$2],
|
leo_sobral@2
|
603 |
[$2=no
|
leo_sobral@2
|
604 |
save_LDFLAGS="$LDFLAGS"
|
leo_sobral@2
|
605 |
LDFLAGS="$LDFLAGS $3"
|
leo_sobral@2
|
606 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
leo_sobral@2
|
607 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
leo_sobral@2
|
608 |
# The compiler can only warn and ignore the option if not recognized
|
leo_sobral@2
|
609 |
# So say no if there are warnings
|
leo_sobral@2
|
610 |
if test -s conftest.err; then
|
leo_sobral@2
|
611 |
# Append any errors to the config.log.
|
leo_sobral@2
|
612 |
cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
613 |
else
|
leo_sobral@2
|
614 |
$2=yes
|
leo_sobral@2
|
615 |
fi
|
leo_sobral@2
|
616 |
fi
|
leo_sobral@2
|
617 |
$rm conftest*
|
leo_sobral@2
|
618 |
LDFLAGS="$save_LDFLAGS"
|
leo_sobral@2
|
619 |
])
|
leo_sobral@2
|
620 |
|
leo_sobral@2
|
621 |
if test x"[$]$2" = xyes; then
|
leo_sobral@2
|
622 |
ifelse([$4], , :, [$4])
|
leo_sobral@2
|
623 |
else
|
leo_sobral@2
|
624 |
ifelse([$5], , :, [$5])
|
leo_sobral@2
|
625 |
fi
|
leo_sobral@2
|
626 |
])# AC_LIBTOOL_LINKER_OPTION
|
leo_sobral@2
|
627 |
|
leo_sobral@2
|
628 |
|
leo_sobral@2
|
629 |
# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
leo_sobral@2
|
630 |
# --------------------------
|
leo_sobral@2
|
631 |
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
|
leo_sobral@2
|
632 |
[# find the maximum length of command line arguments
|
leo_sobral@2
|
633 |
AC_MSG_CHECKING([the maximum length of command line arguments])
|
leo_sobral@2
|
634 |
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
leo_sobral@2
|
635 |
i=0
|
leo_sobral@2
|
636 |
teststring="ABCD"
|
leo_sobral@2
|
637 |
|
leo_sobral@2
|
638 |
case $build_os in
|
leo_sobral@2
|
639 |
msdosdjgpp*)
|
leo_sobral@2
|
640 |
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
leo_sobral@2
|
641 |
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
leo_sobral@2
|
642 |
# during glob expansion). Even if it were fixed, the result of this
|
leo_sobral@2
|
643 |
# check would be larger than it should be.
|
leo_sobral@2
|
644 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
leo_sobral@2
|
645 |
;;
|
leo_sobral@2
|
646 |
|
leo_sobral@2
|
647 |
gnu*)
|
leo_sobral@2
|
648 |
# Under GNU Hurd, this test is not required because there is
|
leo_sobral@2
|
649 |
# no limit to the length of command line arguments.
|
leo_sobral@2
|
650 |
# Libtool will interpret -1 as no limit whatsoever
|
leo_sobral@2
|
651 |
lt_cv_sys_max_cmd_len=-1;
|
leo_sobral@2
|
652 |
;;
|
leo_sobral@2
|
653 |
|
leo_sobral@2
|
654 |
cygwin* | mingw*)
|
leo_sobral@2
|
655 |
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
leo_sobral@2
|
656 |
# about 5 minutes as the teststring grows exponentially.
|
leo_sobral@2
|
657 |
# Worse, since 9x/ME are not pre-emptively multitasking,
|
leo_sobral@2
|
658 |
# you end up with a "frozen" computer, even though with patience
|
leo_sobral@2
|
659 |
# the test eventually succeeds (with a max line length of 256k).
|
leo_sobral@2
|
660 |
# Instead, let's just punt: use the minimum linelength reported by
|
leo_sobral@2
|
661 |
# all of the supported platforms: 8192 (on NT/2K/XP).
|
leo_sobral@2
|
662 |
lt_cv_sys_max_cmd_len=8192;
|
leo_sobral@2
|
663 |
;;
|
leo_sobral@2
|
664 |
|
leo_sobral@2
|
665 |
amigaos*)
|
leo_sobral@2
|
666 |
# On AmigaOS with pdksh, this test takes hours, literally.
|
leo_sobral@2
|
667 |
# So we just punt and use a minimum line length of 8192.
|
leo_sobral@2
|
668 |
lt_cv_sys_max_cmd_len=8192;
|
leo_sobral@2
|
669 |
;;
|
leo_sobral@2
|
670 |
|
leo_sobral@2
|
671 |
*)
|
leo_sobral@2
|
672 |
# If test is not a shell built-in, we'll probably end up computing a
|
leo_sobral@2
|
673 |
# maximum length that is only half of the actual maximum length, but
|
leo_sobral@2
|
674 |
# we can't tell.
|
leo_sobral@2
|
675 |
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
|
leo_sobral@2
|
676 |
= "XX$teststring") >/dev/null 2>&1 &&
|
leo_sobral@2
|
677 |
new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
leo_sobral@2
|
678 |
lt_cv_sys_max_cmd_len=$new_result &&
|
leo_sobral@2
|
679 |
test $i != 17 # 1/2 MB should be enough
|
leo_sobral@2
|
680 |
do
|
leo_sobral@2
|
681 |
i=`expr $i + 1`
|
leo_sobral@2
|
682 |
teststring=$teststring$teststring
|
leo_sobral@2
|
683 |
done
|
leo_sobral@2
|
684 |
teststring=
|
leo_sobral@2
|
685 |
# Add a significant safety factor because C++ compilers can tack on massive
|
leo_sobral@2
|
686 |
# amounts of additional arguments before passing them to the linker.
|
leo_sobral@2
|
687 |
# It appears as though 1/2 is a usable value.
|
leo_sobral@2
|
688 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
leo_sobral@2
|
689 |
;;
|
leo_sobral@2
|
690 |
esac
|
leo_sobral@2
|
691 |
])
|
leo_sobral@2
|
692 |
if test -n $lt_cv_sys_max_cmd_len ; then
|
leo_sobral@2
|
693 |
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
leo_sobral@2
|
694 |
else
|
leo_sobral@2
|
695 |
AC_MSG_RESULT(none)
|
leo_sobral@2
|
696 |
fi
|
leo_sobral@2
|
697 |
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
leo_sobral@2
|
698 |
|
leo_sobral@2
|
699 |
|
leo_sobral@2
|
700 |
# _LT_AC_CHECK_DLFCN
|
leo_sobral@2
|
701 |
# --------------------
|
leo_sobral@2
|
702 |
AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
leo_sobral@2
|
703 |
[AC_CHECK_HEADERS(dlfcn.h)dnl
|
leo_sobral@2
|
704 |
])# _LT_AC_CHECK_DLFCN
|
leo_sobral@2
|
705 |
|
leo_sobral@2
|
706 |
|
leo_sobral@2
|
707 |
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
leo_sobral@2
|
708 |
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
leo_sobral@2
|
709 |
# ------------------------------------------------------------------
|
leo_sobral@2
|
710 |
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
leo_sobral@2
|
711 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
leo_sobral@2
|
712 |
if test "$cross_compiling" = yes; then :
|
leo_sobral@2
|
713 |
[$4]
|
leo_sobral@2
|
714 |
else
|
leo_sobral@2
|
715 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
leo_sobral@2
|
716 |
lt_status=$lt_dlunknown
|
leo_sobral@2
|
717 |
cat > conftest.$ac_ext <<EOF
|
leo_sobral@2
|
718 |
[#line __oline__ "configure"
|
leo_sobral@2
|
719 |
#include "confdefs.h"
|
leo_sobral@2
|
720 |
|
leo_sobral@2
|
721 |
#if HAVE_DLFCN_H
|
leo_sobral@2
|
722 |
#include <dlfcn.h>
|
leo_sobral@2
|
723 |
#endif
|
leo_sobral@2
|
724 |
|
leo_sobral@2
|
725 |
#include <stdio.h>
|
leo_sobral@2
|
726 |
|
leo_sobral@2
|
727 |
#ifdef RTLD_GLOBAL
|
leo_sobral@2
|
728 |
# define LT_DLGLOBAL RTLD_GLOBAL
|
leo_sobral@2
|
729 |
#else
|
leo_sobral@2
|
730 |
# ifdef DL_GLOBAL
|
leo_sobral@2
|
731 |
# define LT_DLGLOBAL DL_GLOBAL
|
leo_sobral@2
|
732 |
# else
|
leo_sobral@2
|
733 |
# define LT_DLGLOBAL 0
|
leo_sobral@2
|
734 |
# endif
|
leo_sobral@2
|
735 |
#endif
|
leo_sobral@2
|
736 |
|
leo_sobral@2
|
737 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
leo_sobral@2
|
738 |
find out it does not work in some platform. */
|
leo_sobral@2
|
739 |
#ifndef LT_DLLAZY_OR_NOW
|
leo_sobral@2
|
740 |
# ifdef RTLD_LAZY
|
leo_sobral@2
|
741 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
leo_sobral@2
|
742 |
# else
|
leo_sobral@2
|
743 |
# ifdef DL_LAZY
|
leo_sobral@2
|
744 |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
leo_sobral@2
|
745 |
# else
|
leo_sobral@2
|
746 |
# ifdef RTLD_NOW
|
leo_sobral@2
|
747 |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
leo_sobral@2
|
748 |
# else
|
leo_sobral@2
|
749 |
# ifdef DL_NOW
|
leo_sobral@2
|
750 |
# define LT_DLLAZY_OR_NOW DL_NOW
|
leo_sobral@2
|
751 |
# else
|
leo_sobral@2
|
752 |
# define LT_DLLAZY_OR_NOW 0
|
leo_sobral@2
|
753 |
# endif
|
leo_sobral@2
|
754 |
# endif
|
leo_sobral@2
|
755 |
# endif
|
leo_sobral@2
|
756 |
# endif
|
leo_sobral@2
|
757 |
#endif
|
leo_sobral@2
|
758 |
|
leo_sobral@2
|
759 |
#ifdef __cplusplus
|
leo_sobral@2
|
760 |
extern "C" void exit (int);
|
leo_sobral@2
|
761 |
#endif
|
leo_sobral@2
|
762 |
|
leo_sobral@2
|
763 |
void fnord() { int i=42;}
|
leo_sobral@2
|
764 |
int main ()
|
leo_sobral@2
|
765 |
{
|
leo_sobral@2
|
766 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
leo_sobral@2
|
767 |
int status = $lt_dlunknown;
|
leo_sobral@2
|
768 |
|
leo_sobral@2
|
769 |
if (self)
|
leo_sobral@2
|
770 |
{
|
leo_sobral@2
|
771 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
leo_sobral@2
|
772 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
leo_sobral@2
|
773 |
/* dlclose (self); */
|
leo_sobral@2
|
774 |
}
|
leo_sobral@2
|
775 |
|
leo_sobral@2
|
776 |
exit (status);
|
leo_sobral@2
|
777 |
}]
|
leo_sobral@2
|
778 |
EOF
|
leo_sobral@2
|
779 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
leo_sobral@2
|
780 |
(./conftest; exit; ) 2>/dev/null
|
leo_sobral@2
|
781 |
lt_status=$?
|
leo_sobral@2
|
782 |
case x$lt_status in
|
leo_sobral@2
|
783 |
x$lt_dlno_uscore) $1 ;;
|
leo_sobral@2
|
784 |
x$lt_dlneed_uscore) $2 ;;
|
leo_sobral@2
|
785 |
x$lt_unknown|x*) $3 ;;
|
leo_sobral@2
|
786 |
esac
|
leo_sobral@2
|
787 |
else :
|
leo_sobral@2
|
788 |
# compilation failed
|
leo_sobral@2
|
789 |
$3
|
leo_sobral@2
|
790 |
fi
|
leo_sobral@2
|
791 |
fi
|
leo_sobral@2
|
792 |
rm -fr conftest*
|
leo_sobral@2
|
793 |
])# _LT_AC_TRY_DLOPEN_SELF
|
leo_sobral@2
|
794 |
|
leo_sobral@2
|
795 |
|
leo_sobral@2
|
796 |
# AC_LIBTOOL_DLOPEN_SELF
|
leo_sobral@2
|
797 |
# -------------------
|
leo_sobral@2
|
798 |
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
leo_sobral@2
|
799 |
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
leo_sobral@2
|
800 |
if test "x$enable_dlopen" != xyes; then
|
leo_sobral@2
|
801 |
enable_dlopen=unknown
|
leo_sobral@2
|
802 |
enable_dlopen_self=unknown
|
leo_sobral@2
|
803 |
enable_dlopen_self_static=unknown
|
leo_sobral@2
|
804 |
else
|
leo_sobral@2
|
805 |
lt_cv_dlopen=no
|
leo_sobral@2
|
806 |
lt_cv_dlopen_libs=
|
leo_sobral@2
|
807 |
|
leo_sobral@2
|
808 |
case $host_os in
|
leo_sobral@2
|
809 |
beos*)
|
leo_sobral@2
|
810 |
lt_cv_dlopen="load_add_on"
|
leo_sobral@2
|
811 |
lt_cv_dlopen_libs=
|
leo_sobral@2
|
812 |
lt_cv_dlopen_self=yes
|
leo_sobral@2
|
813 |
;;
|
leo_sobral@2
|
814 |
|
leo_sobral@2
|
815 |
mingw* | pw32*)
|
leo_sobral@2
|
816 |
lt_cv_dlopen="LoadLibrary"
|
leo_sobral@2
|
817 |
lt_cv_dlopen_libs=
|
leo_sobral@2
|
818 |
;;
|
leo_sobral@2
|
819 |
|
leo_sobral@2
|
820 |
cygwin*)
|
leo_sobral@2
|
821 |
lt_cv_dlopen="dlopen"
|
leo_sobral@2
|
822 |
lt_cv_dlopen_libs=
|
leo_sobral@2
|
823 |
;;
|
leo_sobral@2
|
824 |
|
leo_sobral@2
|
825 |
darwin*)
|
leo_sobral@2
|
826 |
# if libdl is installed we need to link against it
|
leo_sobral@2
|
827 |
AC_CHECK_LIB([dl], [dlopen],
|
leo_sobral@2
|
828 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
leo_sobral@2
|
829 |
lt_cv_dlopen="dyld"
|
leo_sobral@2
|
830 |
lt_cv_dlopen_libs=
|
leo_sobral@2
|
831 |
lt_cv_dlopen_self=yes
|
leo_sobral@2
|
832 |
])
|
leo_sobral@2
|
833 |
;;
|
leo_sobral@2
|
834 |
|
leo_sobral@2
|
835 |
*)
|
leo_sobral@2
|
836 |
AC_CHECK_FUNC([shl_load],
|
leo_sobral@2
|
837 |
[lt_cv_dlopen="shl_load"],
|
leo_sobral@2
|
838 |
[AC_CHECK_LIB([dld], [shl_load],
|
leo_sobral@2
|
839 |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
|
leo_sobral@2
|
840 |
[AC_CHECK_FUNC([dlopen],
|
leo_sobral@2
|
841 |
[lt_cv_dlopen="dlopen"],
|
leo_sobral@2
|
842 |
[AC_CHECK_LIB([dl], [dlopen],
|
leo_sobral@2
|
843 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
leo_sobral@2
|
844 |
[AC_CHECK_LIB([svld], [dlopen],
|
leo_sobral@2
|
845 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
leo_sobral@2
|
846 |
[AC_CHECK_LIB([dld], [dld_link],
|
leo_sobral@2
|
847 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
leo_sobral@2
|
848 |
])
|
leo_sobral@2
|
849 |
])
|
leo_sobral@2
|
850 |
])
|
leo_sobral@2
|
851 |
])
|
leo_sobral@2
|
852 |
])
|
leo_sobral@2
|
853 |
;;
|
leo_sobral@2
|
854 |
esac
|
leo_sobral@2
|
855 |
|
leo_sobral@2
|
856 |
if test "x$lt_cv_dlopen" != xno; then
|
leo_sobral@2
|
857 |
enable_dlopen=yes
|
leo_sobral@2
|
858 |
else
|
leo_sobral@2
|
859 |
enable_dlopen=no
|
leo_sobral@2
|
860 |
fi
|
leo_sobral@2
|
861 |
|
leo_sobral@2
|
862 |
case $lt_cv_dlopen in
|
leo_sobral@2
|
863 |
dlopen)
|
leo_sobral@2
|
864 |
save_CPPFLAGS="$CPPFLAGS"
|
leo_sobral@2
|
865 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
leo_sobral@2
|
866 |
|
leo_sobral@2
|
867 |
save_LDFLAGS="$LDFLAGS"
|
leo_sobral@2
|
868 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
leo_sobral@2
|
869 |
|
leo_sobral@2
|
870 |
save_LIBS="$LIBS"
|
leo_sobral@2
|
871 |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
leo_sobral@2
|
872 |
|
leo_sobral@2
|
873 |
AC_CACHE_CHECK([whether a program can dlopen itself],
|
leo_sobral@2
|
874 |
lt_cv_dlopen_self, [dnl
|
leo_sobral@2
|
875 |
_LT_AC_TRY_DLOPEN_SELF(
|
leo_sobral@2
|
876 |
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
leo_sobral@2
|
877 |
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
leo_sobral@2
|
878 |
])
|
leo_sobral@2
|
879 |
|
leo_sobral@2
|
880 |
if test "x$lt_cv_dlopen_self" = xyes; then
|
leo_sobral@2
|
881 |
LDFLAGS="$LDFLAGS $link_static_flag"
|
leo_sobral@2
|
882 |
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
leo_sobral@2
|
883 |
lt_cv_dlopen_self_static, [dnl
|
leo_sobral@2
|
884 |
_LT_AC_TRY_DLOPEN_SELF(
|
leo_sobral@2
|
885 |
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
leo_sobral@2
|
886 |
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
leo_sobral@2
|
887 |
])
|
leo_sobral@2
|
888 |
fi
|
leo_sobral@2
|
889 |
|
leo_sobral@2
|
890 |
CPPFLAGS="$save_CPPFLAGS"
|
leo_sobral@2
|
891 |
LDFLAGS="$save_LDFLAGS"
|
leo_sobral@2
|
892 |
LIBS="$save_LIBS"
|
leo_sobral@2
|
893 |
;;
|
leo_sobral@2
|
894 |
esac
|
leo_sobral@2
|
895 |
|
leo_sobral@2
|
896 |
case $lt_cv_dlopen_self in
|
leo_sobral@2
|
897 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
leo_sobral@2
|
898 |
*) enable_dlopen_self=unknown ;;
|
leo_sobral@2
|
899 |
esac
|
leo_sobral@2
|
900 |
|
leo_sobral@2
|
901 |
case $lt_cv_dlopen_self_static in
|
leo_sobral@2
|
902 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
leo_sobral@2
|
903 |
*) enable_dlopen_self_static=unknown ;;
|
leo_sobral@2
|
904 |
esac
|
leo_sobral@2
|
905 |
fi
|
leo_sobral@2
|
906 |
])# AC_LIBTOOL_DLOPEN_SELF
|
leo_sobral@2
|
907 |
|
leo_sobral@2
|
908 |
|
leo_sobral@2
|
909 |
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
|
leo_sobral@2
|
910 |
# ---------------------------------
|
leo_sobral@2
|
911 |
# Check to see if options -c and -o are simultaneously supported by compiler
|
leo_sobral@2
|
912 |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
|
leo_sobral@2
|
913 |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
leo_sobral@2
|
914 |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
leo_sobral@2
|
915 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
leo_sobral@2
|
916 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
leo_sobral@2
|
917 |
$rm -r conftest 2>/dev/null
|
leo_sobral@2
|
918 |
mkdir conftest
|
leo_sobral@2
|
919 |
cd conftest
|
leo_sobral@2
|
920 |
mkdir out
|
leo_sobral@2
|
921 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
leo_sobral@2
|
922 |
|
leo_sobral@2
|
923 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
leo_sobral@2
|
924 |
# Insert the option either (1) after the last *FLAGS variable, or
|
leo_sobral@2
|
925 |
# (2) before a word containing "conftest.", or (3) at the end.
|
leo_sobral@2
|
926 |
# Note that $ac_compile itself does not contain backslashes and begins
|
leo_sobral@2
|
927 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
leo_sobral@2
|
928 |
lt_compile=`echo "$ac_compile" | $SED \
|
leo_sobral@2
|
929 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
leo_sobral@2
|
930 |
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
leo_sobral@2
|
931 |
-e 's:$: $lt_compiler_flag:'`
|
leo_sobral@2
|
932 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
leo_sobral@2
|
933 |
(eval "$lt_compile" 2>out/conftest.err)
|
leo_sobral@2
|
934 |
ac_status=$?
|
leo_sobral@2
|
935 |
cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
936 |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
937 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
leo_sobral@2
|
938 |
then
|
leo_sobral@2
|
939 |
# The compiler can only warn and ignore the option if not recognized
|
leo_sobral@2
|
940 |
# So say no if there are warnings
|
leo_sobral@2
|
941 |
if test ! -s out/conftest.err; then
|
leo_sobral@2
|
942 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
leo_sobral@2
|
943 |
fi
|
leo_sobral@2
|
944 |
fi
|
leo_sobral@2
|
945 |
chmod u+w .
|
leo_sobral@2
|
946 |
$rm conftest*
|
leo_sobral@2
|
947 |
# SGI C++ compiler will create directory out/ii_files/ for
|
leo_sobral@2
|
948 |
# template instantiation
|
leo_sobral@2
|
949 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
leo_sobral@2
|
950 |
$rm out/* && rmdir out
|
leo_sobral@2
|
951 |
cd ..
|
leo_sobral@2
|
952 |
rmdir conftest
|
leo_sobral@2
|
953 |
$rm conftest*
|
leo_sobral@2
|
954 |
])
|
leo_sobral@2
|
955 |
])# AC_LIBTOOL_PROG_CC_C_O
|
leo_sobral@2
|
956 |
|
leo_sobral@2
|
957 |
|
leo_sobral@2
|
958 |
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
|
leo_sobral@2
|
959 |
# -----------------------------------------
|
leo_sobral@2
|
960 |
# Check to see if we can do hard links to lock some files if needed
|
leo_sobral@2
|
961 |
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
|
leo_sobral@2
|
962 |
[AC_REQUIRE([_LT_AC_LOCK])dnl
|
leo_sobral@2
|
963 |
|
leo_sobral@2
|
964 |
hard_links="nottested"
|
leo_sobral@2
|
965 |
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
leo_sobral@2
|
966 |
# do not overwrite the value of need_locks provided by the user
|
leo_sobral@2
|
967 |
AC_MSG_CHECKING([if we can lock with hard links])
|
leo_sobral@2
|
968 |
hard_links=yes
|
leo_sobral@2
|
969 |
$rm conftest*
|
leo_sobral@2
|
970 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
leo_sobral@2
|
971 |
touch conftest.a
|
leo_sobral@2
|
972 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
leo_sobral@2
|
973 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
leo_sobral@2
|
974 |
AC_MSG_RESULT([$hard_links])
|
leo_sobral@2
|
975 |
if test "$hard_links" = no; then
|
leo_sobral@2
|
976 |
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
leo_sobral@2
|
977 |
need_locks=warn
|
leo_sobral@2
|
978 |
fi
|
leo_sobral@2
|
979 |
else
|
leo_sobral@2
|
980 |
need_locks=no
|
leo_sobral@2
|
981 |
fi
|
leo_sobral@2
|
982 |
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
|
leo_sobral@2
|
983 |
|
leo_sobral@2
|
984 |
|
leo_sobral@2
|
985 |
# AC_LIBTOOL_OBJDIR
|
leo_sobral@2
|
986 |
# -----------------
|
leo_sobral@2
|
987 |
AC_DEFUN([AC_LIBTOOL_OBJDIR],
|
leo_sobral@2
|
988 |
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
leo_sobral@2
|
989 |
[rm -f .libs 2>/dev/null
|
leo_sobral@2
|
990 |
mkdir .libs 2>/dev/null
|
leo_sobral@2
|
991 |
if test -d .libs; then
|
leo_sobral@2
|
992 |
lt_cv_objdir=.libs
|
leo_sobral@2
|
993 |
else
|
leo_sobral@2
|
994 |
# MS-DOS does not allow filenames that begin with a dot.
|
leo_sobral@2
|
995 |
lt_cv_objdir=_libs
|
leo_sobral@2
|
996 |
fi
|
leo_sobral@2
|
997 |
rmdir .libs 2>/dev/null])
|
leo_sobral@2
|
998 |
objdir=$lt_cv_objdir
|
leo_sobral@2
|
999 |
])# AC_LIBTOOL_OBJDIR
|
leo_sobral@2
|
1000 |
|
leo_sobral@2
|
1001 |
|
leo_sobral@2
|
1002 |
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
|
leo_sobral@2
|
1003 |
# ----------------------------------------------
|
leo_sobral@2
|
1004 |
# Check hardcoding attributes.
|
leo_sobral@2
|
1005 |
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
|
leo_sobral@2
|
1006 |
[AC_MSG_CHECKING([how to hardcode library paths into programs])
|
leo_sobral@2
|
1007 |
_LT_AC_TAGVAR(hardcode_action, $1)=
|
leo_sobral@2
|
1008 |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
|
leo_sobral@2
|
1009 |
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
|
leo_sobral@2
|
1010 |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
|
leo_sobral@2
|
1011 |
|
leo_sobral@2
|
1012 |
# We can hardcode non-existant directories.
|
leo_sobral@2
|
1013 |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
leo_sobral@2
|
1014 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
leo_sobral@2
|
1015 |
# have to relink, otherwise we might link with an installed library
|
leo_sobral@2
|
1016 |
# when we should be linking with a yet-to-be-installed one
|
leo_sobral@2
|
1017 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
leo_sobral@2
|
1018 |
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
|
leo_sobral@2
|
1019 |
# Linking always hardcodes the temporary library directory.
|
leo_sobral@2
|
1020 |
_LT_AC_TAGVAR(hardcode_action, $1)=relink
|
leo_sobral@2
|
1021 |
else
|
leo_sobral@2
|
1022 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
leo_sobral@2
|
1023 |
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
|
leo_sobral@2
|
1024 |
fi
|
leo_sobral@2
|
1025 |
else
|
leo_sobral@2
|
1026 |
# We cannot hardcode anything, or else we can only hardcode existing
|
leo_sobral@2
|
1027 |
# directories.
|
leo_sobral@2
|
1028 |
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
|
leo_sobral@2
|
1029 |
fi
|
leo_sobral@2
|
1030 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
|
leo_sobral@2
|
1031 |
|
leo_sobral@2
|
1032 |
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
|
leo_sobral@2
|
1033 |
# Fast installation is not supported
|
leo_sobral@2
|
1034 |
enable_fast_install=no
|
leo_sobral@2
|
1035 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
leo_sobral@2
|
1036 |
test "$enable_shared" = no; then
|
leo_sobral@2
|
1037 |
# Fast installation is not necessary
|
leo_sobral@2
|
1038 |
enable_fast_install=needless
|
leo_sobral@2
|
1039 |
fi
|
leo_sobral@2
|
1040 |
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
|
leo_sobral@2
|
1041 |
|
leo_sobral@2
|
1042 |
|
leo_sobral@2
|
1043 |
# AC_LIBTOOL_SYS_LIB_STRIP
|
leo_sobral@2
|
1044 |
# ------------------------
|
leo_sobral@2
|
1045 |
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
|
leo_sobral@2
|
1046 |
[striplib=
|
leo_sobral@2
|
1047 |
old_striplib=
|
leo_sobral@2
|
1048 |
AC_MSG_CHECKING([whether stripping libraries is possible])
|
leo_sobral@2
|
1049 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
leo_sobral@2
|
1050 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
leo_sobral@2
|
1051 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
leo_sobral@2
|
1052 |
AC_MSG_RESULT([yes])
|
leo_sobral@2
|
1053 |
else
|
leo_sobral@2
|
1054 |
# FIXME - insert some real tests, host_os isn't really good enough
|
leo_sobral@2
|
1055 |
case $host_os in
|
leo_sobral@2
|
1056 |
darwin*)
|
leo_sobral@2
|
1057 |
if test -n "$STRIP" ; then
|
leo_sobral@2
|
1058 |
striplib="$STRIP -x"
|
leo_sobral@2
|
1059 |
AC_MSG_RESULT([yes])
|
leo_sobral@2
|
1060 |
else
|
leo_sobral@2
|
1061 |
AC_MSG_RESULT([no])
|
leo_sobral@2
|
1062 |
fi
|
leo_sobral@2
|
1063 |
;;
|
leo_sobral@2
|
1064 |
*)
|
leo_sobral@2
|
1065 |
AC_MSG_RESULT([no])
|
leo_sobral@2
|
1066 |
;;
|
leo_sobral@2
|
1067 |
esac
|
leo_sobral@2
|
1068 |
fi
|
leo_sobral@2
|
1069 |
])# AC_LIBTOOL_SYS_LIB_STRIP
|
leo_sobral@2
|
1070 |
|
leo_sobral@2
|
1071 |
|
leo_sobral@2
|
1072 |
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
leo_sobral@2
|
1073 |
# -----------------------------
|
leo_sobral@2
|
1074 |
# PORTME Fill in your ld.so characteristics
|
leo_sobral@2
|
1075 |
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
|
leo_sobral@2
|
1076 |
[AC_MSG_CHECKING([dynamic linker characteristics])
|
leo_sobral@2
|
1077 |
library_names_spec=
|
leo_sobral@2
|
1078 |
libname_spec='lib$name'
|
leo_sobral@2
|
1079 |
soname_spec=
|
leo_sobral@2
|
1080 |
shrext_cmds=".so"
|
leo_sobral@2
|
1081 |
postinstall_cmds=
|
leo_sobral@2
|
1082 |
postuninstall_cmds=
|
leo_sobral@2
|
1083 |
finish_cmds=
|
leo_sobral@2
|
1084 |
finish_eval=
|
leo_sobral@2
|
1085 |
shlibpath_var=
|
leo_sobral@2
|
1086 |
shlibpath_overrides_runpath=unknown
|
leo_sobral@2
|
1087 |
version_type=none
|
leo_sobral@2
|
1088 |
dynamic_linker="$host_os ld.so"
|
leo_sobral@2
|
1089 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
leo_sobral@2
|
1090 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
1091 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
leo_sobral@2
|
1092 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
leo_sobral@2
|
1093 |
# if the path contains ";" then we assume it to be the separator
|
leo_sobral@2
|
1094 |
# otherwise default to the standard path separator (i.e. ":") - it is
|
leo_sobral@2
|
1095 |
# assumed that no part of a normal pathname contains ";" but that should
|
leo_sobral@2
|
1096 |
# okay in the real world where ";" in dirpaths is itself problematic.
|
leo_sobral@2
|
1097 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
leo_sobral@2
|
1098 |
else
|
leo_sobral@2
|
1099 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
leo_sobral@2
|
1100 |
fi
|
leo_sobral@2
|
1101 |
else
|
leo_sobral@2
|
1102 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
leo_sobral@2
|
1103 |
fi
|
leo_sobral@2
|
1104 |
need_lib_prefix=unknown
|
leo_sobral@2
|
1105 |
hardcode_into_libs=no
|
leo_sobral@2
|
1106 |
|
leo_sobral@2
|
1107 |
# when you set need_version to no, make sure it does not cause -set_version
|
leo_sobral@2
|
1108 |
# flags to be left without arguments
|
leo_sobral@2
|
1109 |
need_version=unknown
|
leo_sobral@2
|
1110 |
|
leo_sobral@2
|
1111 |
case $host_os in
|
leo_sobral@2
|
1112 |
aix3*)
|
leo_sobral@2
|
1113 |
version_type=linux
|
leo_sobral@2
|
1114 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
leo_sobral@2
|
1115 |
shlibpath_var=LIBPATH
|
leo_sobral@2
|
1116 |
|
leo_sobral@2
|
1117 |
# AIX 3 has no versioning support, so we append a major version to the name.
|
leo_sobral@2
|
1118 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1119 |
;;
|
leo_sobral@2
|
1120 |
|
leo_sobral@2
|
1121 |
aix4* | aix5*)
|
leo_sobral@2
|
1122 |
version_type=linux
|
leo_sobral@2
|
1123 |
need_lib_prefix=no
|
leo_sobral@2
|
1124 |
need_version=no
|
leo_sobral@2
|
1125 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1126 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
1127 |
# AIX 5 supports IA64
|
leo_sobral@2
|
1128 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
leo_sobral@2
|
1129 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1130 |
else
|
leo_sobral@2
|
1131 |
# With GCC up to 2.95.x, collect2 would create an import file
|
leo_sobral@2
|
1132 |
# for dependence libraries. The import file would start with
|
leo_sobral@2
|
1133 |
# the line `#! .'. This would cause the generated library to
|
leo_sobral@2
|
1134 |
# depend on `.', always an invalid library. This was fixed in
|
leo_sobral@2
|
1135 |
# development snapshots of GCC prior to 3.0.
|
leo_sobral@2
|
1136 |
case $host_os in
|
leo_sobral@2
|
1137 |
aix4 | aix4.[[01]] | aix4.[[01]].*)
|
leo_sobral@2
|
1138 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
leo_sobral@2
|
1139 |
echo ' yes '
|
leo_sobral@2
|
1140 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
leo_sobral@2
|
1141 |
:
|
leo_sobral@2
|
1142 |
else
|
leo_sobral@2
|
1143 |
can_build_shared=no
|
leo_sobral@2
|
1144 |
fi
|
leo_sobral@2
|
1145 |
;;
|
leo_sobral@2
|
1146 |
esac
|
leo_sobral@2
|
1147 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
leo_sobral@2
|
1148 |
# soname into executable. Probably we can add versioning support to
|
leo_sobral@2
|
1149 |
# collect2, so additional links can be useful in future.
|
leo_sobral@2
|
1150 |
if test "$aix_use_runtimelinking" = yes; then
|
leo_sobral@2
|
1151 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
leo_sobral@2
|
1152 |
# instead of lib<name>.a to let people know that these are not
|
leo_sobral@2
|
1153 |
# typical AIX shared libraries.
|
leo_sobral@2
|
1154 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1155 |
else
|
leo_sobral@2
|
1156 |
# We preserve .a as extension for shared libraries through AIX4.2
|
leo_sobral@2
|
1157 |
# and later when we are not doing run time linking.
|
leo_sobral@2
|
1158 |
library_names_spec='${libname}${release}.a $libname.a'
|
leo_sobral@2
|
1159 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1160 |
fi
|
leo_sobral@2
|
1161 |
shlibpath_var=LIBPATH
|
leo_sobral@2
|
1162 |
fi
|
leo_sobral@2
|
1163 |
;;
|
leo_sobral@2
|
1164 |
|
leo_sobral@2
|
1165 |
amigaos*)
|
leo_sobral@2
|
1166 |
library_names_spec='$libname.ixlibrary $libname.a'
|
leo_sobral@2
|
1167 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
leo_sobral@2
|
1168 |
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'
|
leo_sobral@2
|
1169 |
;;
|
leo_sobral@2
|
1170 |
|
leo_sobral@2
|
1171 |
beos*)
|
leo_sobral@2
|
1172 |
library_names_spec='${libname}${shared_ext}'
|
leo_sobral@2
|
1173 |
dynamic_linker="$host_os ld.so"
|
leo_sobral@2
|
1174 |
shlibpath_var=LIBRARY_PATH
|
leo_sobral@2
|
1175 |
;;
|
leo_sobral@2
|
1176 |
|
leo_sobral@2
|
1177 |
bsdi4*)
|
leo_sobral@2
|
1178 |
version_type=linux
|
leo_sobral@2
|
1179 |
need_version=no
|
leo_sobral@2
|
1180 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1181 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1182 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
leo_sobral@2
|
1183 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1184 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
leo_sobral@2
|
1185 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
leo_sobral@2
|
1186 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
leo_sobral@2
|
1187 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
leo_sobral@2
|
1188 |
# libtool to hard-code these into programs
|
leo_sobral@2
|
1189 |
;;
|
leo_sobral@2
|
1190 |
|
leo_sobral@2
|
1191 |
cygwin* | mingw* | pw32*)
|
leo_sobral@2
|
1192 |
version_type=windows
|
leo_sobral@2
|
1193 |
shrext_cmds=".dll"
|
leo_sobral@2
|
1194 |
need_version=no
|
leo_sobral@2
|
1195 |
need_lib_prefix=no
|
leo_sobral@2
|
1196 |
|
leo_sobral@2
|
1197 |
case $GCC,$host_os in
|
leo_sobral@2
|
1198 |
yes,cygwin* | yes,mingw* | yes,pw32*)
|
leo_sobral@2
|
1199 |
library_names_spec='$libname.dll.a'
|
leo_sobral@2
|
1200 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
leo_sobral@2
|
1201 |
postinstall_cmds='base_file=`basename \${file}`~
|
leo_sobral@2
|
1202 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
leo_sobral@2
|
1203 |
dldir=$destdir/`dirname \$dlpath`~
|
leo_sobral@2
|
1204 |
test -d \$dldir || mkdir -p \$dldir~
|
leo_sobral@2
|
1205 |
$install_prog $dir/$dlname \$dldir/$dlname'
|
leo_sobral@2
|
1206 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
leo_sobral@2
|
1207 |
dlpath=$dir/\$dldll~
|
leo_sobral@2
|
1208 |
$rm \$dlpath'
|
leo_sobral@2
|
1209 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1210 |
|
leo_sobral@2
|
1211 |
case $host_os in
|
leo_sobral@2
|
1212 |
cygwin*)
|
leo_sobral@2
|
1213 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
leo_sobral@2
|
1214 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
leo_sobral@2
|
1215 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
leo_sobral@2
|
1216 |
;;
|
leo_sobral@2
|
1217 |
mingw*)
|
leo_sobral@2
|
1218 |
# MinGW DLLs use traditional 'lib' prefix
|
leo_sobral@2
|
1219 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
leo_sobral@2
|
1220 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
leo_sobral@2
|
1221 |
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
|
leo_sobral@2
|
1222 |
# It is most probably a Windows format PATH printed by
|
leo_sobral@2
|
1223 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
leo_sobral@2
|
1224 |
# path with ; separators, and with drive letters. We can handle the
|
leo_sobral@2
|
1225 |
# drive letters (cygwin fileutils understands them), so leave them,
|
leo_sobral@2
|
1226 |
# especially as we might pass files found there to a mingw objdump,
|
leo_sobral@2
|
1227 |
# which wouldn't understand a cygwinified path. Ahh.
|
leo_sobral@2
|
1228 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
leo_sobral@2
|
1229 |
else
|
leo_sobral@2
|
1230 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
leo_sobral@2
|
1231 |
fi
|
leo_sobral@2
|
1232 |
;;
|
leo_sobral@2
|
1233 |
pw32*)
|
leo_sobral@2
|
1234 |
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
leo_sobral@2
|
1235 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
leo_sobral@2
|
1236 |
;;
|
leo_sobral@2
|
1237 |
esac
|
leo_sobral@2
|
1238 |
;;
|
leo_sobral@2
|
1239 |
|
leo_sobral@2
|
1240 |
*)
|
leo_sobral@2
|
1241 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
leo_sobral@2
|
1242 |
;;
|
leo_sobral@2
|
1243 |
esac
|
leo_sobral@2
|
1244 |
dynamic_linker='Win32 ld.exe'
|
leo_sobral@2
|
1245 |
# FIXME: first we should search . and the directory the executable is in
|
leo_sobral@2
|
1246 |
shlibpath_var=PATH
|
leo_sobral@2
|
1247 |
;;
|
leo_sobral@2
|
1248 |
|
leo_sobral@2
|
1249 |
darwin* | rhapsody*)
|
leo_sobral@2
|
1250 |
dynamic_linker="$host_os dyld"
|
leo_sobral@2
|
1251 |
version_type=darwin
|
leo_sobral@2
|
1252 |
need_lib_prefix=no
|
leo_sobral@2
|
1253 |
need_version=no
|
leo_sobral@2
|
1254 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
leo_sobral@2
|
1255 |
soname_spec='${libname}${release}${major}$shared_ext'
|
leo_sobral@2
|
1256 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1257 |
shlibpath_var=DYLD_LIBRARY_PATH
|
leo_sobral@2
|
1258 |
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
leo_sobral@2
|
1259 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
leo_sobral@2
|
1260 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
1261 |
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
|
leo_sobral@2
|
1262 |
else
|
leo_sobral@2
|
1263 |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
leo_sobral@2
|
1264 |
fi
|
leo_sobral@2
|
1265 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
leo_sobral@2
|
1266 |
;;
|
leo_sobral@2
|
1267 |
|
leo_sobral@2
|
1268 |
dgux*)
|
leo_sobral@2
|
1269 |
version_type=linux
|
leo_sobral@2
|
1270 |
need_lib_prefix=no
|
leo_sobral@2
|
1271 |
need_version=no
|
leo_sobral@2
|
1272 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
leo_sobral@2
|
1273 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1274 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1275 |
;;
|
leo_sobral@2
|
1276 |
|
leo_sobral@2
|
1277 |
freebsd1*)
|
leo_sobral@2
|
1278 |
dynamic_linker=no
|
leo_sobral@2
|
1279 |
;;
|
leo_sobral@2
|
1280 |
|
leo_sobral@2
|
1281 |
kfreebsd*-gnu)
|
leo_sobral@2
|
1282 |
version_type=linux
|
leo_sobral@2
|
1283 |
need_lib_prefix=no
|
leo_sobral@2
|
1284 |
need_version=no
|
leo_sobral@2
|
1285 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
leo_sobral@2
|
1286 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1287 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1288 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1289 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1290 |
dynamic_linker='GNU ld.so'
|
leo_sobral@2
|
1291 |
;;
|
leo_sobral@2
|
1292 |
|
leo_sobral@2
|
1293 |
freebsd*)
|
leo_sobral@2
|
1294 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
leo_sobral@2
|
1295 |
version_type=freebsd-$objformat
|
leo_sobral@2
|
1296 |
case $version_type in
|
leo_sobral@2
|
1297 |
freebsd-elf*)
|
leo_sobral@2
|
1298 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
leo_sobral@2
|
1299 |
need_version=no
|
leo_sobral@2
|
1300 |
need_lib_prefix=no
|
leo_sobral@2
|
1301 |
;;
|
leo_sobral@2
|
1302 |
freebsd-*)
|
leo_sobral@2
|
1303 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
leo_sobral@2
|
1304 |
need_version=yes
|
leo_sobral@2
|
1305 |
;;
|
leo_sobral@2
|
1306 |
esac
|
leo_sobral@2
|
1307 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1308 |
case $host_os in
|
leo_sobral@2
|
1309 |
freebsd2*)
|
leo_sobral@2
|
1310 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1311 |
;;
|
leo_sobral@2
|
1312 |
freebsd3.[01]* | freebsdelf3.[01]*)
|
leo_sobral@2
|
1313 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1314 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1315 |
;;
|
leo_sobral@2
|
1316 |
*) # from 3.2 on
|
leo_sobral@2
|
1317 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1318 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1319 |
;;
|
leo_sobral@2
|
1320 |
esac
|
leo_sobral@2
|
1321 |
;;
|
leo_sobral@2
|
1322 |
|
leo_sobral@2
|
1323 |
gnu*)
|
leo_sobral@2
|
1324 |
version_type=linux
|
leo_sobral@2
|
1325 |
need_lib_prefix=no
|
leo_sobral@2
|
1326 |
need_version=no
|
leo_sobral@2
|
1327 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
leo_sobral@2
|
1328 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1329 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1330 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1331 |
;;
|
leo_sobral@2
|
1332 |
|
leo_sobral@2
|
1333 |
hpux9* | hpux10* | hpux11*)
|
leo_sobral@2
|
1334 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
leo_sobral@2
|
1335 |
# link against other versions.
|
leo_sobral@2
|
1336 |
version_type=sunos
|
leo_sobral@2
|
1337 |
need_lib_prefix=no
|
leo_sobral@2
|
1338 |
need_version=no
|
leo_sobral@2
|
1339 |
case "$host_cpu" in
|
leo_sobral@2
|
1340 |
ia64*)
|
leo_sobral@2
|
1341 |
shrext_cmds='.so'
|
leo_sobral@2
|
1342 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1343 |
dynamic_linker="$host_os dld.so"
|
leo_sobral@2
|
1344 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1345 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
leo_sobral@2
|
1346 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1347 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1348 |
if test "X$HPUX_IA64_MODE" = X32; then
|
leo_sobral@2
|
1349 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
leo_sobral@2
|
1350 |
else
|
leo_sobral@2
|
1351 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
leo_sobral@2
|
1352 |
fi
|
leo_sobral@2
|
1353 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
leo_sobral@2
|
1354 |
;;
|
leo_sobral@2
|
1355 |
hppa*64*)
|
leo_sobral@2
|
1356 |
shrext_cmds='.sl'
|
leo_sobral@2
|
1357 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1358 |
dynamic_linker="$host_os dld.sl"
|
leo_sobral@2
|
1359 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
leo_sobral@2
|
1360 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
leo_sobral@2
|
1361 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1362 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1363 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
leo_sobral@2
|
1364 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
leo_sobral@2
|
1365 |
;;
|
leo_sobral@2
|
1366 |
*)
|
leo_sobral@2
|
1367 |
shrext_cmds='.sl'
|
leo_sobral@2
|
1368 |
dynamic_linker="$host_os dld.sl"
|
leo_sobral@2
|
1369 |
shlibpath_var=SHLIB_PATH
|
leo_sobral@2
|
1370 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
leo_sobral@2
|
1371 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1372 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1373 |
;;
|
leo_sobral@2
|
1374 |
esac
|
leo_sobral@2
|
1375 |
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
leo_sobral@2
|
1376 |
postinstall_cmds='chmod 555 $lib'
|
leo_sobral@2
|
1377 |
;;
|
leo_sobral@2
|
1378 |
|
leo_sobral@2
|
1379 |
irix5* | irix6* | nonstopux*)
|
leo_sobral@2
|
1380 |
case $host_os in
|
leo_sobral@2
|
1381 |
nonstopux*) version_type=nonstopux ;;
|
leo_sobral@2
|
1382 |
*)
|
leo_sobral@2
|
1383 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
leo_sobral@2
|
1384 |
version_type=linux
|
leo_sobral@2
|
1385 |
else
|
leo_sobral@2
|
1386 |
version_type=irix
|
leo_sobral@2
|
1387 |
fi ;;
|
leo_sobral@2
|
1388 |
esac
|
leo_sobral@2
|
1389 |
need_lib_prefix=no
|
leo_sobral@2
|
1390 |
need_version=no
|
leo_sobral@2
|
1391 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1392 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
leo_sobral@2
|
1393 |
case $host_os in
|
leo_sobral@2
|
1394 |
irix5* | nonstopux*)
|
leo_sobral@2
|
1395 |
libsuff= shlibsuff=
|
leo_sobral@2
|
1396 |
;;
|
leo_sobral@2
|
1397 |
*)
|
leo_sobral@2
|
1398 |
case $LD in # libtool.m4 will add one of these switches to LD
|
leo_sobral@2
|
1399 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
leo_sobral@2
|
1400 |
libsuff= shlibsuff= libmagic=32-bit;;
|
leo_sobral@2
|
1401 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
leo_sobral@2
|
1402 |
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
leo_sobral@2
|
1403 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
leo_sobral@2
|
1404 |
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
leo_sobral@2
|
1405 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
leo_sobral@2
|
1406 |
esac
|
leo_sobral@2
|
1407 |
;;
|
leo_sobral@2
|
1408 |
esac
|
leo_sobral@2
|
1409 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
leo_sobral@2
|
1410 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1411 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
leo_sobral@2
|
1412 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
leo_sobral@2
|
1413 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1414 |
;;
|
leo_sobral@2
|
1415 |
|
leo_sobral@2
|
1416 |
# No shared lib support for Linux oldld, aout, or coff.
|
leo_sobral@2
|
1417 |
linux*oldld* | linux*aout* | linux*coff*)
|
leo_sobral@2
|
1418 |
dynamic_linker=no
|
leo_sobral@2
|
1419 |
;;
|
leo_sobral@2
|
1420 |
|
leo_sobral@2
|
1421 |
# This must be Linux ELF.
|
leo_sobral@2
|
1422 |
linux*)
|
leo_sobral@2
|
1423 |
version_type=linux
|
leo_sobral@2
|
1424 |
need_lib_prefix=no
|
leo_sobral@2
|
1425 |
need_version=no
|
leo_sobral@2
|
1426 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1427 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1428 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
leo_sobral@2
|
1429 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1430 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1431 |
# This implies no fast_install, which is unacceptable.
|
leo_sobral@2
|
1432 |
# Some rework will be needed to allow for fast_install
|
leo_sobral@2
|
1433 |
# before this can be enabled.
|
leo_sobral@2
|
1434 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1435 |
|
leo_sobral@2
|
1436 |
# Append ld.so.conf contents to the search path
|
leo_sobral@2
|
1437 |
if test -f /etc/ld.so.conf; then
|
leo_sobral@2
|
1438 |
lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
|
leo_sobral@2
|
1439 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
leo_sobral@2
|
1440 |
fi
|
leo_sobral@2
|
1441 |
|
leo_sobral@2
|
1442 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
leo_sobral@2
|
1443 |
# powerpc, because MkLinux only supported shared libraries with the
|
leo_sobral@2
|
1444 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
leo_sobral@2
|
1445 |
# most powerpc-linux boxes support dynamic linking these days and
|
leo_sobral@2
|
1446 |
# people can always --disable-shared, the test was removed, and we
|
leo_sobral@2
|
1447 |
# assume the GNU/Linux dynamic linker is in use.
|
leo_sobral@2
|
1448 |
dynamic_linker='GNU/Linux ld.so'
|
leo_sobral@2
|
1449 |
;;
|
leo_sobral@2
|
1450 |
|
leo_sobral@2
|
1451 |
netbsdelf*-gnu)
|
leo_sobral@2
|
1452 |
version_type=linux
|
leo_sobral@2
|
1453 |
need_lib_prefix=no
|
leo_sobral@2
|
1454 |
need_version=no
|
leo_sobral@2
|
1455 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
leo_sobral@2
|
1456 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1457 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1458 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1459 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1460 |
dynamic_linker='NetBSD ld.elf_so'
|
leo_sobral@2
|
1461 |
;;
|
leo_sobral@2
|
1462 |
|
leo_sobral@2
|
1463 |
knetbsd*-gnu)
|
leo_sobral@2
|
1464 |
version_type=linux
|
leo_sobral@2
|
1465 |
need_lib_prefix=no
|
leo_sobral@2
|
1466 |
need_version=no
|
leo_sobral@2
|
1467 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
leo_sobral@2
|
1468 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1469 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1470 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1471 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1472 |
dynamic_linker='GNU ld.so'
|
leo_sobral@2
|
1473 |
;;
|
leo_sobral@2
|
1474 |
|
leo_sobral@2
|
1475 |
netbsd*)
|
leo_sobral@2
|
1476 |
version_type=sunos
|
leo_sobral@2
|
1477 |
need_lib_prefix=no
|
leo_sobral@2
|
1478 |
need_version=no
|
leo_sobral@2
|
1479 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
leo_sobral@2
|
1480 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
leo_sobral@2
|
1481 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
leo_sobral@2
|
1482 |
dynamic_linker='NetBSD (a.out) ld.so'
|
leo_sobral@2
|
1483 |
else
|
leo_sobral@2
|
1484 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
leo_sobral@2
|
1485 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1486 |
dynamic_linker='NetBSD ld.elf_so'
|
leo_sobral@2
|
1487 |
fi
|
leo_sobral@2
|
1488 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1489 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1490 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1491 |
;;
|
leo_sobral@2
|
1492 |
|
leo_sobral@2
|
1493 |
newsos6)
|
leo_sobral@2
|
1494 |
version_type=linux
|
leo_sobral@2
|
1495 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1496 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1497 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1498 |
;;
|
leo_sobral@2
|
1499 |
|
leo_sobral@2
|
1500 |
nto-qnx*)
|
leo_sobral@2
|
1501 |
version_type=linux
|
leo_sobral@2
|
1502 |
need_lib_prefix=no
|
leo_sobral@2
|
1503 |
need_version=no
|
leo_sobral@2
|
1504 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1505 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1506 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1507 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1508 |
;;
|
leo_sobral@2
|
1509 |
|
leo_sobral@2
|
1510 |
openbsd*)
|
leo_sobral@2
|
1511 |
version_type=sunos
|
leo_sobral@2
|
1512 |
need_lib_prefix=no
|
leo_sobral@2
|
1513 |
need_version=yes
|
leo_sobral@2
|
1514 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
leo_sobral@2
|
1515 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
leo_sobral@2
|
1516 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1517 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
leo_sobral@2
|
1518 |
case $host_os in
|
leo_sobral@2
|
1519 |
openbsd2.[[89]] | openbsd2.[[89]].*)
|
leo_sobral@2
|
1520 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1521 |
;;
|
leo_sobral@2
|
1522 |
*)
|
leo_sobral@2
|
1523 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1524 |
;;
|
leo_sobral@2
|
1525 |
esac
|
leo_sobral@2
|
1526 |
else
|
leo_sobral@2
|
1527 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1528 |
fi
|
leo_sobral@2
|
1529 |
;;
|
leo_sobral@2
|
1530 |
|
leo_sobral@2
|
1531 |
os2*)
|
leo_sobral@2
|
1532 |
libname_spec='$name'
|
leo_sobral@2
|
1533 |
shrext_cmds=".dll"
|
leo_sobral@2
|
1534 |
need_lib_prefix=no
|
leo_sobral@2
|
1535 |
library_names_spec='$libname${shared_ext} $libname.a'
|
leo_sobral@2
|
1536 |
dynamic_linker='OS/2 ld.exe'
|
leo_sobral@2
|
1537 |
shlibpath_var=LIBPATH
|
leo_sobral@2
|
1538 |
;;
|
leo_sobral@2
|
1539 |
|
leo_sobral@2
|
1540 |
osf3* | osf4* | osf5*)
|
leo_sobral@2
|
1541 |
version_type=osf
|
leo_sobral@2
|
1542 |
need_lib_prefix=no
|
leo_sobral@2
|
1543 |
need_version=no
|
leo_sobral@2
|
1544 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1545 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1546 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1547 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
leo_sobral@2
|
1548 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
leo_sobral@2
|
1549 |
;;
|
leo_sobral@2
|
1550 |
|
leo_sobral@2
|
1551 |
sco3.2v5*)
|
leo_sobral@2
|
1552 |
version_type=osf
|
leo_sobral@2
|
1553 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1554 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1555 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1556 |
;;
|
leo_sobral@2
|
1557 |
|
leo_sobral@2
|
1558 |
solaris*)
|
leo_sobral@2
|
1559 |
version_type=linux
|
leo_sobral@2
|
1560 |
need_lib_prefix=no
|
leo_sobral@2
|
1561 |
need_version=no
|
leo_sobral@2
|
1562 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1563 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1564 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1565 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1566 |
hardcode_into_libs=yes
|
leo_sobral@2
|
1567 |
# ldd complains unless libraries are executable
|
leo_sobral@2
|
1568 |
postinstall_cmds='chmod +x $lib'
|
leo_sobral@2
|
1569 |
;;
|
leo_sobral@2
|
1570 |
|
leo_sobral@2
|
1571 |
sunos4*)
|
leo_sobral@2
|
1572 |
version_type=sunos
|
leo_sobral@2
|
1573 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
leo_sobral@2
|
1574 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
leo_sobral@2
|
1575 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1576 |
shlibpath_overrides_runpath=yes
|
leo_sobral@2
|
1577 |
if test "$with_gnu_ld" = yes; then
|
leo_sobral@2
|
1578 |
need_lib_prefix=no
|
leo_sobral@2
|
1579 |
fi
|
leo_sobral@2
|
1580 |
need_version=yes
|
leo_sobral@2
|
1581 |
;;
|
leo_sobral@2
|
1582 |
|
leo_sobral@2
|
1583 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
leo_sobral@2
|
1584 |
version_type=linux
|
leo_sobral@2
|
1585 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1586 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1587 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1588 |
case $host_vendor in
|
leo_sobral@2
|
1589 |
sni)
|
leo_sobral@2
|
1590 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1591 |
need_lib_prefix=no
|
leo_sobral@2
|
1592 |
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
leo_sobral@2
|
1593 |
runpath_var=LD_RUN_PATH
|
leo_sobral@2
|
1594 |
;;
|
leo_sobral@2
|
1595 |
siemens)
|
leo_sobral@2
|
1596 |
need_lib_prefix=no
|
leo_sobral@2
|
1597 |
;;
|
leo_sobral@2
|
1598 |
motorola)
|
leo_sobral@2
|
1599 |
need_lib_prefix=no
|
leo_sobral@2
|
1600 |
need_version=no
|
leo_sobral@2
|
1601 |
shlibpath_overrides_runpath=no
|
leo_sobral@2
|
1602 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
leo_sobral@2
|
1603 |
;;
|
leo_sobral@2
|
1604 |
esac
|
leo_sobral@2
|
1605 |
;;
|
leo_sobral@2
|
1606 |
|
leo_sobral@2
|
1607 |
sysv4*MP*)
|
leo_sobral@2
|
1608 |
if test -d /usr/nec ;then
|
leo_sobral@2
|
1609 |
version_type=linux
|
leo_sobral@2
|
1610 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
leo_sobral@2
|
1611 |
soname_spec='$libname${shared_ext}.$major'
|
leo_sobral@2
|
1612 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1613 |
fi
|
leo_sobral@2
|
1614 |
;;
|
leo_sobral@2
|
1615 |
|
leo_sobral@2
|
1616 |
uts4*)
|
leo_sobral@2
|
1617 |
version_type=linux
|
leo_sobral@2
|
1618 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
leo_sobral@2
|
1619 |
soname_spec='${libname}${release}${shared_ext}$major'
|
leo_sobral@2
|
1620 |
shlibpath_var=LD_LIBRARY_PATH
|
leo_sobral@2
|
1621 |
;;
|
leo_sobral@2
|
1622 |
|
leo_sobral@2
|
1623 |
*)
|
leo_sobral@2
|
1624 |
dynamic_linker=no
|
leo_sobral@2
|
1625 |
;;
|
leo_sobral@2
|
1626 |
esac
|
leo_sobral@2
|
1627 |
AC_MSG_RESULT([$dynamic_linker])
|
leo_sobral@2
|
1628 |
test "$dynamic_linker" = no && can_build_shared=no
|
leo_sobral@2
|
1629 |
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
leo_sobral@2
|
1630 |
|
leo_sobral@2
|
1631 |
|
leo_sobral@2
|
1632 |
# _LT_AC_TAGCONFIG
|
leo_sobral@2
|
1633 |
# ----------------
|
leo_sobral@2
|
1634 |
AC_DEFUN([_LT_AC_TAGCONFIG],
|
leo_sobral@2
|
1635 |
[AC_ARG_WITH([tags],
|
leo_sobral@2
|
1636 |
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
|
leo_sobral@2
|
1637 |
[include additional configurations @<:@automatic@:>@])],
|
leo_sobral@2
|
1638 |
[tagnames="$withval"])
|
leo_sobral@2
|
1639 |
|
leo_sobral@2
|
1640 |
if test -f "$ltmain" && test -n "$tagnames"; then
|
leo_sobral@2
|
1641 |
if test ! -f "${ofile}"; then
|
leo_sobral@2
|
1642 |
AC_MSG_WARN([output file `$ofile' does not exist])
|
leo_sobral@2
|
1643 |
fi
|
leo_sobral@2
|
1644 |
|
leo_sobral@2
|
1645 |
if test -z "$LTCC"; then
|
leo_sobral@2
|
1646 |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
leo_sobral@2
|
1647 |
if test -z "$LTCC"; then
|
leo_sobral@2
|
1648 |
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
|
leo_sobral@2
|
1649 |
else
|
leo_sobral@2
|
1650 |
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
|
leo_sobral@2
|
1651 |
fi
|
leo_sobral@2
|
1652 |
fi
|
leo_sobral@2
|
1653 |
|
leo_sobral@2
|
1654 |
# Extract list of available tagged configurations in $ofile.
|
leo_sobral@2
|
1655 |
# Note that this assumes the entire list is on one line.
|
leo_sobral@2
|
1656 |
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
leo_sobral@2
|
1657 |
|
leo_sobral@2
|
1658 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
leo_sobral@2
|
1659 |
for tagname in $tagnames; do
|
leo_sobral@2
|
1660 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1661 |
# Check whether tagname contains only valid characters
|
leo_sobral@2
|
1662 |
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
|
leo_sobral@2
|
1663 |
"") ;;
|
leo_sobral@2
|
1664 |
*) AC_MSG_ERROR([invalid tag name: $tagname])
|
leo_sobral@2
|
1665 |
;;
|
leo_sobral@2
|
1666 |
esac
|
leo_sobral@2
|
1667 |
|
leo_sobral@2
|
1668 |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
leo_sobral@2
|
1669 |
then
|
leo_sobral@2
|
1670 |
AC_MSG_ERROR([tag name \"$tagname\" already exists])
|
leo_sobral@2
|
1671 |
fi
|
leo_sobral@2
|
1672 |
|
leo_sobral@2
|
1673 |
# Update the list of available tags.
|
leo_sobral@2
|
1674 |
if test -n "$tagname"; then
|
leo_sobral@2
|
1675 |
echo appending configuration tag \"$tagname\" to $ofile
|
leo_sobral@2
|
1676 |
|
leo_sobral@2
|
1677 |
case $tagname in
|
leo_sobral@2
|
1678 |
CXX)
|
leo_sobral@2
|
1679 |
if test -n "$CXX" && test "X$CXX" != "Xno"; then
|
leo_sobral@2
|
1680 |
AC_LIBTOOL_LANG_CXX_CONFIG
|
leo_sobral@2
|
1681 |
else
|
leo_sobral@2
|
1682 |
tagname=""
|
leo_sobral@2
|
1683 |
fi
|
leo_sobral@2
|
1684 |
;;
|
leo_sobral@2
|
1685 |
|
leo_sobral@2
|
1686 |
F77)
|
leo_sobral@2
|
1687 |
if test -n "$F77" && test "X$F77" != "Xno"; then
|
leo_sobral@2
|
1688 |
AC_LIBTOOL_LANG_F77_CONFIG
|
leo_sobral@2
|
1689 |
else
|
leo_sobral@2
|
1690 |
tagname=""
|
leo_sobral@2
|
1691 |
fi
|
leo_sobral@2
|
1692 |
;;
|
leo_sobral@2
|
1693 |
|
leo_sobral@2
|
1694 |
GCJ)
|
leo_sobral@2
|
1695 |
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
leo_sobral@2
|
1696 |
AC_LIBTOOL_LANG_GCJ_CONFIG
|
leo_sobral@2
|
1697 |
else
|
leo_sobral@2
|
1698 |
tagname=""
|
leo_sobral@2
|
1699 |
fi
|
leo_sobral@2
|
1700 |
;;
|
leo_sobral@2
|
1701 |
|
leo_sobral@2
|
1702 |
RC)
|
leo_sobral@2
|
1703 |
AC_LIBTOOL_LANG_RC_CONFIG
|
leo_sobral@2
|
1704 |
;;
|
leo_sobral@2
|
1705 |
|
leo_sobral@2
|
1706 |
*)
|
leo_sobral@2
|
1707 |
AC_MSG_ERROR([Unsupported tag name: $tagname])
|
leo_sobral@2
|
1708 |
;;
|
leo_sobral@2
|
1709 |
esac
|
leo_sobral@2
|
1710 |
|
leo_sobral@2
|
1711 |
# Append the new tag name to the list of available tags.
|
leo_sobral@2
|
1712 |
if test -n "$tagname" ; then
|
leo_sobral@2
|
1713 |
available_tags="$available_tags $tagname"
|
leo_sobral@2
|
1714 |
fi
|
leo_sobral@2
|
1715 |
fi
|
leo_sobral@2
|
1716 |
done
|
leo_sobral@2
|
1717 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1718 |
|
leo_sobral@2
|
1719 |
# Now substitute the updated list of available tags.
|
leo_sobral@2
|
1720 |
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
leo_sobral@2
|
1721 |
mv "${ofile}T" "$ofile"
|
leo_sobral@2
|
1722 |
chmod +x "$ofile"
|
leo_sobral@2
|
1723 |
else
|
leo_sobral@2
|
1724 |
rm -f "${ofile}T"
|
leo_sobral@2
|
1725 |
AC_MSG_ERROR([unable to update list of available tagged configurations.])
|
leo_sobral@2
|
1726 |
fi
|
leo_sobral@2
|
1727 |
fi
|
leo_sobral@2
|
1728 |
])# _LT_AC_TAGCONFIG
|
leo_sobral@2
|
1729 |
|
leo_sobral@2
|
1730 |
|
leo_sobral@2
|
1731 |
# AC_LIBTOOL_DLOPEN
|
leo_sobral@2
|
1732 |
# -----------------
|
leo_sobral@2
|
1733 |
# enable checks for dlopen support
|
leo_sobral@2
|
1734 |
AC_DEFUN([AC_LIBTOOL_DLOPEN],
|
leo_sobral@2
|
1735 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
|
leo_sobral@2
|
1736 |
])# AC_LIBTOOL_DLOPEN
|
leo_sobral@2
|
1737 |
|
leo_sobral@2
|
1738 |
|
leo_sobral@2
|
1739 |
# AC_LIBTOOL_WIN32_DLL
|
leo_sobral@2
|
1740 |
# --------------------
|
leo_sobral@2
|
1741 |
# declare package support for building win32 dll's
|
leo_sobral@2
|
1742 |
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
leo_sobral@2
|
1743 |
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
|
leo_sobral@2
|
1744 |
])# AC_LIBTOOL_WIN32_DLL
|
leo_sobral@2
|
1745 |
|
leo_sobral@2
|
1746 |
|
leo_sobral@2
|
1747 |
# AC_ENABLE_SHARED([DEFAULT])
|
leo_sobral@2
|
1748 |
# ---------------------------
|
leo_sobral@2
|
1749 |
# implement the --enable-shared flag
|
leo_sobral@2
|
1750 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
leo_sobral@2
|
1751 |
AC_DEFUN([AC_ENABLE_SHARED],
|
leo_sobral@2
|
1752 |
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
leo_sobral@2
|
1753 |
AC_ARG_ENABLE([shared],
|
leo_sobral@2
|
1754 |
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
leo_sobral@2
|
1755 |
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
|
leo_sobral@2
|
1756 |
[p=${PACKAGE-default}
|
leo_sobral@2
|
1757 |
case $enableval in
|
leo_sobral@2
|
1758 |
yes) enable_shared=yes ;;
|
leo_sobral@2
|
1759 |
no) enable_shared=no ;;
|
leo_sobral@2
|
1760 |
*)
|
leo_sobral@2
|
1761 |
enable_shared=no
|
leo_sobral@2
|
1762 |
# Look at the argument we got. We use all the common list separators.
|
leo_sobral@2
|
1763 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
leo_sobral@2
|
1764 |
for pkg in $enableval; do
|
leo_sobral@2
|
1765 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1766 |
if test "X$pkg" = "X$p"; then
|
leo_sobral@2
|
1767 |
enable_shared=yes
|
leo_sobral@2
|
1768 |
fi
|
leo_sobral@2
|
1769 |
done
|
leo_sobral@2
|
1770 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1771 |
;;
|
leo_sobral@2
|
1772 |
esac],
|
leo_sobral@2
|
1773 |
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
|
leo_sobral@2
|
1774 |
])# AC_ENABLE_SHARED
|
leo_sobral@2
|
1775 |
|
leo_sobral@2
|
1776 |
|
leo_sobral@2
|
1777 |
# AC_DISABLE_SHARED
|
leo_sobral@2
|
1778 |
# -----------------
|
leo_sobral@2
|
1779 |
#- set the default shared flag to --disable-shared
|
leo_sobral@2
|
1780 |
AC_DEFUN([AC_DISABLE_SHARED],
|
leo_sobral@2
|
1781 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
leo_sobral@2
|
1782 |
AC_ENABLE_SHARED(no)
|
leo_sobral@2
|
1783 |
])# AC_DISABLE_SHARED
|
leo_sobral@2
|
1784 |
|
leo_sobral@2
|
1785 |
|
leo_sobral@2
|
1786 |
# AC_ENABLE_STATIC([DEFAULT])
|
leo_sobral@2
|
1787 |
# ---------------------------
|
leo_sobral@2
|
1788 |
# implement the --enable-static flag
|
leo_sobral@2
|
1789 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
leo_sobral@2
|
1790 |
AC_DEFUN([AC_ENABLE_STATIC],
|
leo_sobral@2
|
1791 |
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
leo_sobral@2
|
1792 |
AC_ARG_ENABLE([static],
|
leo_sobral@2
|
1793 |
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
leo_sobral@2
|
1794 |
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
|
leo_sobral@2
|
1795 |
[p=${PACKAGE-default}
|
leo_sobral@2
|
1796 |
case $enableval in
|
leo_sobral@2
|
1797 |
yes) enable_static=yes ;;
|
leo_sobral@2
|
1798 |
no) enable_static=no ;;
|
leo_sobral@2
|
1799 |
*)
|
leo_sobral@2
|
1800 |
enable_static=no
|
leo_sobral@2
|
1801 |
# Look at the argument we got. We use all the common list separators.
|
leo_sobral@2
|
1802 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
leo_sobral@2
|
1803 |
for pkg in $enableval; do
|
leo_sobral@2
|
1804 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1805 |
if test "X$pkg" = "X$p"; then
|
leo_sobral@2
|
1806 |
enable_static=yes
|
leo_sobral@2
|
1807 |
fi
|
leo_sobral@2
|
1808 |
done
|
leo_sobral@2
|
1809 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1810 |
;;
|
leo_sobral@2
|
1811 |
esac],
|
leo_sobral@2
|
1812 |
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
|
leo_sobral@2
|
1813 |
])# AC_ENABLE_STATIC
|
leo_sobral@2
|
1814 |
|
leo_sobral@2
|
1815 |
|
leo_sobral@2
|
1816 |
# AC_DISABLE_STATIC
|
leo_sobral@2
|
1817 |
# -----------------
|
leo_sobral@2
|
1818 |
# set the default static flag to --disable-static
|
leo_sobral@2
|
1819 |
AC_DEFUN([AC_DISABLE_STATIC],
|
leo_sobral@2
|
1820 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
leo_sobral@2
|
1821 |
AC_ENABLE_STATIC(no)
|
leo_sobral@2
|
1822 |
])# AC_DISABLE_STATIC
|
leo_sobral@2
|
1823 |
|
leo_sobral@2
|
1824 |
|
leo_sobral@2
|
1825 |
# AC_ENABLE_FAST_INSTALL([DEFAULT])
|
leo_sobral@2
|
1826 |
# ---------------------------------
|
leo_sobral@2
|
1827 |
# implement the --enable-fast-install flag
|
leo_sobral@2
|
1828 |
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
leo_sobral@2
|
1829 |
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
|
leo_sobral@2
|
1830 |
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
|
leo_sobral@2
|
1831 |
AC_ARG_ENABLE([fast-install],
|
leo_sobral@2
|
1832 |
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
leo_sobral@2
|
1833 |
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
leo_sobral@2
|
1834 |
[p=${PACKAGE-default}
|
leo_sobral@2
|
1835 |
case $enableval in
|
leo_sobral@2
|
1836 |
yes) enable_fast_install=yes ;;
|
leo_sobral@2
|
1837 |
no) enable_fast_install=no ;;
|
leo_sobral@2
|
1838 |
*)
|
leo_sobral@2
|
1839 |
enable_fast_install=no
|
leo_sobral@2
|
1840 |
# Look at the argument we got. We use all the common list separators.
|
leo_sobral@2
|
1841 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
leo_sobral@2
|
1842 |
for pkg in $enableval; do
|
leo_sobral@2
|
1843 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1844 |
if test "X$pkg" = "X$p"; then
|
leo_sobral@2
|
1845 |
enable_fast_install=yes
|
leo_sobral@2
|
1846 |
fi
|
leo_sobral@2
|
1847 |
done
|
leo_sobral@2
|
1848 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1849 |
;;
|
leo_sobral@2
|
1850 |
esac],
|
leo_sobral@2
|
1851 |
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
|
leo_sobral@2
|
1852 |
])# AC_ENABLE_FAST_INSTALL
|
leo_sobral@2
|
1853 |
|
leo_sobral@2
|
1854 |
|
leo_sobral@2
|
1855 |
# AC_DISABLE_FAST_INSTALL
|
leo_sobral@2
|
1856 |
# -----------------------
|
leo_sobral@2
|
1857 |
# set the default to --disable-fast-install
|
leo_sobral@2
|
1858 |
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
|
leo_sobral@2
|
1859 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
leo_sobral@2
|
1860 |
AC_ENABLE_FAST_INSTALL(no)
|
leo_sobral@2
|
1861 |
])# AC_DISABLE_FAST_INSTALL
|
leo_sobral@2
|
1862 |
|
leo_sobral@2
|
1863 |
|
leo_sobral@2
|
1864 |
# AC_LIBTOOL_PICMODE([MODE])
|
leo_sobral@2
|
1865 |
# --------------------------
|
leo_sobral@2
|
1866 |
# implement the --with-pic flag
|
leo_sobral@2
|
1867 |
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
leo_sobral@2
|
1868 |
AC_DEFUN([AC_LIBTOOL_PICMODE],
|
leo_sobral@2
|
1869 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
leo_sobral@2
|
1870 |
pic_mode=ifelse($#,1,$1,default)
|
leo_sobral@2
|
1871 |
])# AC_LIBTOOL_PICMODE
|
leo_sobral@2
|
1872 |
|
leo_sobral@2
|
1873 |
|
leo_sobral@2
|
1874 |
# AC_PROG_EGREP
|
leo_sobral@2
|
1875 |
# -------------
|
leo_sobral@2
|
1876 |
# This is predefined starting with Autoconf 2.54, so this conditional
|
leo_sobral@2
|
1877 |
# definition can be removed once we require Autoconf 2.54 or later.
|
leo_sobral@2
|
1878 |
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
|
leo_sobral@2
|
1879 |
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
|
leo_sobral@2
|
1880 |
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
leo_sobral@2
|
1881 |
then ac_cv_prog_egrep='grep -E'
|
leo_sobral@2
|
1882 |
else ac_cv_prog_egrep='egrep'
|
leo_sobral@2
|
1883 |
fi])
|
leo_sobral@2
|
1884 |
EGREP=$ac_cv_prog_egrep
|
leo_sobral@2
|
1885 |
AC_SUBST([EGREP])
|
leo_sobral@2
|
1886 |
])])
|
leo_sobral@2
|
1887 |
|
leo_sobral@2
|
1888 |
|
leo_sobral@2
|
1889 |
# AC_PATH_TOOL_PREFIX
|
leo_sobral@2
|
1890 |
# -------------------
|
leo_sobral@2
|
1891 |
# find a file program which can recognise shared library
|
leo_sobral@2
|
1892 |
AC_DEFUN([AC_PATH_TOOL_PREFIX],
|
leo_sobral@2
|
1893 |
[AC_REQUIRE([AC_PROG_EGREP])dnl
|
leo_sobral@2
|
1894 |
AC_MSG_CHECKING([for $1])
|
leo_sobral@2
|
1895 |
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
leo_sobral@2
|
1896 |
[case $MAGIC_CMD in
|
leo_sobral@2
|
1897 |
[[\\/*] | ?:[\\/]*])
|
leo_sobral@2
|
1898 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
leo_sobral@2
|
1899 |
;;
|
leo_sobral@2
|
1900 |
*)
|
leo_sobral@2
|
1901 |
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
leo_sobral@2
|
1902 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
leo_sobral@2
|
1903 |
dnl $ac_dummy forces splitting on constant user-supplied paths.
|
leo_sobral@2
|
1904 |
dnl POSIX.2 word splitting is done only on the output of word expansions,
|
leo_sobral@2
|
1905 |
dnl not every word. This closes a longstanding sh security hole.
|
leo_sobral@2
|
1906 |
ac_dummy="ifelse([$2], , $PATH, [$2])"
|
leo_sobral@2
|
1907 |
for ac_dir in $ac_dummy; do
|
leo_sobral@2
|
1908 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1909 |
test -z "$ac_dir" && ac_dir=.
|
leo_sobral@2
|
1910 |
if test -f $ac_dir/$1; then
|
leo_sobral@2
|
1911 |
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
leo_sobral@2
|
1912 |
if test -n "$file_magic_test_file"; then
|
leo_sobral@2
|
1913 |
case $deplibs_check_method in
|
leo_sobral@2
|
1914 |
"file_magic "*)
|
leo_sobral@2
|
1915 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
leo_sobral@2
|
1916 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
leo_sobral@2
|
1917 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
leo_sobral@2
|
1918 |
$EGREP "$file_magic_regex" > /dev/null; then
|
leo_sobral@2
|
1919 |
:
|
leo_sobral@2
|
1920 |
else
|
leo_sobral@2
|
1921 |
cat <<EOF 1>&2
|
leo_sobral@2
|
1922 |
|
leo_sobral@2
|
1923 |
*** Warning: the command libtool uses to detect shared libraries,
|
leo_sobral@2
|
1924 |
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
leo_sobral@2
|
1925 |
*** The result is that libtool may fail to recognize shared libraries
|
leo_sobral@2
|
1926 |
*** as such. This will affect the creation of libtool libraries that
|
leo_sobral@2
|
1927 |
*** depend on shared libraries, but programs linked with such libtool
|
leo_sobral@2
|
1928 |
*** libraries will work regardless of this problem. Nevertheless, you
|
leo_sobral@2
|
1929 |
*** may want to report the problem to your system manager and/or to
|
leo_sobral@2
|
1930 |
*** bug-libtool@gnu.org
|
leo_sobral@2
|
1931 |
|
leo_sobral@2
|
1932 |
EOF
|
leo_sobral@2
|
1933 |
fi ;;
|
leo_sobral@2
|
1934 |
esac
|
leo_sobral@2
|
1935 |
fi
|
leo_sobral@2
|
1936 |
break
|
leo_sobral@2
|
1937 |
fi
|
leo_sobral@2
|
1938 |
done
|
leo_sobral@2
|
1939 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
1940 |
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
leo_sobral@2
|
1941 |
;;
|
leo_sobral@2
|
1942 |
esac])
|
leo_sobral@2
|
1943 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
leo_sobral@2
|
1944 |
if test -n "$MAGIC_CMD"; then
|
leo_sobral@2
|
1945 |
AC_MSG_RESULT($MAGIC_CMD)
|
leo_sobral@2
|
1946 |
else
|
leo_sobral@2
|
1947 |
AC_MSG_RESULT(no)
|
leo_sobral@2
|
1948 |
fi
|
leo_sobral@2
|
1949 |
])# AC_PATH_TOOL_PREFIX
|
leo_sobral@2
|
1950 |
|
leo_sobral@2
|
1951 |
|
leo_sobral@2
|
1952 |
# AC_PATH_MAGIC
|
leo_sobral@2
|
1953 |
# -------------
|
leo_sobral@2
|
1954 |
# find a file program which can recognise a shared library
|
leo_sobral@2
|
1955 |
AC_DEFUN([AC_PATH_MAGIC],
|
leo_sobral@2
|
1956 |
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
leo_sobral@2
|
1957 |
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
leo_sobral@2
|
1958 |
if test -n "$ac_tool_prefix"; then
|
leo_sobral@2
|
1959 |
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
leo_sobral@2
|
1960 |
else
|
leo_sobral@2
|
1961 |
MAGIC_CMD=:
|
leo_sobral@2
|
1962 |
fi
|
leo_sobral@2
|
1963 |
fi
|
leo_sobral@2
|
1964 |
])# AC_PATH_MAGIC
|
leo_sobral@2
|
1965 |
|
leo_sobral@2
|
1966 |
|
leo_sobral@2
|
1967 |
# AC_PROG_LD
|
leo_sobral@2
|
1968 |
# ----------
|
leo_sobral@2
|
1969 |
# find the pathname to the GNU or non-GNU linker
|
leo_sobral@2
|
1970 |
AC_DEFUN([AC_PROG_LD],
|
leo_sobral@2
|
1971 |
[AC_ARG_WITH([gnu-ld],
|
leo_sobral@2
|
1972 |
[AC_HELP_STRING([--with-gnu-ld],
|
leo_sobral@2
|
1973 |
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
leo_sobral@2
|
1974 |
[test "$withval" = no || with_gnu_ld=yes],
|
leo_sobral@2
|
1975 |
[with_gnu_ld=no])
|
leo_sobral@2
|
1976 |
AC_REQUIRE([LT_AC_PROG_SED])dnl
|
leo_sobral@2
|
1977 |
AC_REQUIRE([AC_PROG_CC])dnl
|
leo_sobral@2
|
1978 |
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
leo_sobral@2
|
1979 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
leo_sobral@2
|
1980 |
ac_prog=ld
|
leo_sobral@2
|
1981 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
1982 |
# Check if gcc -print-prog-name=ld gives a path.
|
leo_sobral@2
|
1983 |
AC_MSG_CHECKING([for ld used by $CC])
|
leo_sobral@2
|
1984 |
case $host in
|
leo_sobral@2
|
1985 |
*-*-mingw*)
|
leo_sobral@2
|
1986 |
# gcc leaves a trailing carriage return which upsets mingw
|
leo_sobral@2
|
1987 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
leo_sobral@2
|
1988 |
*)
|
leo_sobral@2
|
1989 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
leo_sobral@2
|
1990 |
esac
|
leo_sobral@2
|
1991 |
case $ac_prog in
|
leo_sobral@2
|
1992 |
# Accept absolute paths.
|
leo_sobral@2
|
1993 |
[[\\/]]* | ?:[[\\/]]*)
|
leo_sobral@2
|
1994 |
re_direlt='/[[^/]][[^/]]*/\.\./'
|
leo_sobral@2
|
1995 |
# Canonicalize the pathname of ld
|
leo_sobral@2
|
1996 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
leo_sobral@2
|
1997 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
leo_sobral@2
|
1998 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
leo_sobral@2
|
1999 |
done
|
leo_sobral@2
|
2000 |
test -z "$LD" && LD="$ac_prog"
|
leo_sobral@2
|
2001 |
;;
|
leo_sobral@2
|
2002 |
"")
|
leo_sobral@2
|
2003 |
# If it fails, then pretend we aren't using GCC.
|
leo_sobral@2
|
2004 |
ac_prog=ld
|
leo_sobral@2
|
2005 |
;;
|
leo_sobral@2
|
2006 |
*)
|
leo_sobral@2
|
2007 |
# If it is relative, then search for the first ld in PATH.
|
leo_sobral@2
|
2008 |
with_gnu_ld=unknown
|
leo_sobral@2
|
2009 |
;;
|
leo_sobral@2
|
2010 |
esac
|
leo_sobral@2
|
2011 |
elif test "$with_gnu_ld" = yes; then
|
leo_sobral@2
|
2012 |
AC_MSG_CHECKING([for GNU ld])
|
leo_sobral@2
|
2013 |
else
|
leo_sobral@2
|
2014 |
AC_MSG_CHECKING([for non-GNU ld])
|
leo_sobral@2
|
2015 |
fi
|
leo_sobral@2
|
2016 |
AC_CACHE_VAL(lt_cv_path_LD,
|
leo_sobral@2
|
2017 |
[if test -z "$LD"; then
|
leo_sobral@2
|
2018 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
leo_sobral@2
|
2019 |
for ac_dir in $PATH; do
|
leo_sobral@2
|
2020 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
2021 |
test -z "$ac_dir" && ac_dir=.
|
leo_sobral@2
|
2022 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
leo_sobral@2
|
2023 |
lt_cv_path_LD="$ac_dir/$ac_prog"
|
leo_sobral@2
|
2024 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
leo_sobral@2
|
2025 |
# but apparently some GNU ld's only accept -v.
|
leo_sobral@2
|
2026 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
leo_sobral@2
|
2027 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
leo_sobral@2
|
2028 |
*GNU* | *'with BFD'*)
|
leo_sobral@2
|
2029 |
test "$with_gnu_ld" != no && break
|
leo_sobral@2
|
2030 |
;;
|
leo_sobral@2
|
2031 |
*)
|
leo_sobral@2
|
2032 |
test "$with_gnu_ld" != yes && break
|
leo_sobral@2
|
2033 |
;;
|
leo_sobral@2
|
2034 |
esac
|
leo_sobral@2
|
2035 |
fi
|
leo_sobral@2
|
2036 |
done
|
leo_sobral@2
|
2037 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
2038 |
else
|
leo_sobral@2
|
2039 |
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
leo_sobral@2
|
2040 |
fi])
|
leo_sobral@2
|
2041 |
LD="$lt_cv_path_LD"
|
leo_sobral@2
|
2042 |
if test -n "$LD"; then
|
leo_sobral@2
|
2043 |
AC_MSG_RESULT($LD)
|
leo_sobral@2
|
2044 |
else
|
leo_sobral@2
|
2045 |
AC_MSG_RESULT(no)
|
leo_sobral@2
|
2046 |
fi
|
leo_sobral@2
|
2047 |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
leo_sobral@2
|
2048 |
AC_PROG_LD_GNU
|
leo_sobral@2
|
2049 |
])# AC_PROG_LD
|
leo_sobral@2
|
2050 |
|
leo_sobral@2
|
2051 |
|
leo_sobral@2
|
2052 |
# AC_PROG_LD_GNU
|
leo_sobral@2
|
2053 |
# --------------
|
leo_sobral@2
|
2054 |
AC_DEFUN([AC_PROG_LD_GNU],
|
leo_sobral@2
|
2055 |
[AC_REQUIRE([AC_PROG_EGREP])dnl
|
leo_sobral@2
|
2056 |
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
leo_sobral@2
|
2057 |
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
leo_sobral@2
|
2058 |
case `$LD -v 2>&1 </dev/null` in
|
leo_sobral@2
|
2059 |
*GNU* | *'with BFD'*)
|
leo_sobral@2
|
2060 |
lt_cv_prog_gnu_ld=yes
|
leo_sobral@2
|
2061 |
;;
|
leo_sobral@2
|
2062 |
*)
|
leo_sobral@2
|
2063 |
lt_cv_prog_gnu_ld=no
|
leo_sobral@2
|
2064 |
;;
|
leo_sobral@2
|
2065 |
esac])
|
leo_sobral@2
|
2066 |
with_gnu_ld=$lt_cv_prog_gnu_ld
|
leo_sobral@2
|
2067 |
])# AC_PROG_LD_GNU
|
leo_sobral@2
|
2068 |
|
leo_sobral@2
|
2069 |
|
leo_sobral@2
|
2070 |
# AC_PROG_LD_RELOAD_FLAG
|
leo_sobral@2
|
2071 |
# ----------------------
|
leo_sobral@2
|
2072 |
# find reload flag for linker
|
leo_sobral@2
|
2073 |
# -- PORTME Some linkers may need a different reload flag.
|
leo_sobral@2
|
2074 |
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
|
leo_sobral@2
|
2075 |
[AC_CACHE_CHECK([for $LD option to reload object files],
|
leo_sobral@2
|
2076 |
lt_cv_ld_reload_flag,
|
leo_sobral@2
|
2077 |
[lt_cv_ld_reload_flag='-r'])
|
leo_sobral@2
|
2078 |
reload_flag=$lt_cv_ld_reload_flag
|
leo_sobral@2
|
2079 |
case $reload_flag in
|
leo_sobral@2
|
2080 |
"" | " "*) ;;
|
leo_sobral@2
|
2081 |
*) reload_flag=" $reload_flag" ;;
|
leo_sobral@2
|
2082 |
esac
|
leo_sobral@2
|
2083 |
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
leo_sobral@2
|
2084 |
])# AC_PROG_LD_RELOAD_FLAG
|
leo_sobral@2
|
2085 |
|
leo_sobral@2
|
2086 |
|
leo_sobral@2
|
2087 |
# AC_DEPLIBS_CHECK_METHOD
|
leo_sobral@2
|
2088 |
# -----------------------
|
leo_sobral@2
|
2089 |
# how to check for library dependencies
|
leo_sobral@2
|
2090 |
# -- PORTME fill in with the dynamic library characteristics
|
leo_sobral@2
|
2091 |
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
|
leo_sobral@2
|
2092 |
[AC_CACHE_CHECK([how to recognise dependent libraries],
|
leo_sobral@2
|
2093 |
lt_cv_deplibs_check_method,
|
leo_sobral@2
|
2094 |
[lt_cv_file_magic_cmd='$MAGIC_CMD'
|
leo_sobral@2
|
2095 |
lt_cv_file_magic_test_file=
|
leo_sobral@2
|
2096 |
lt_cv_deplibs_check_method='unknown'
|
leo_sobral@2
|
2097 |
# Need to set the preceding variable on all platforms that support
|
leo_sobral@2
|
2098 |
# interlibrary dependencies.
|
leo_sobral@2
|
2099 |
# 'none' -- dependencies not supported.
|
leo_sobral@2
|
2100 |
# `unknown' -- same as none, but documents that we really don't know.
|
leo_sobral@2
|
2101 |
# 'pass_all' -- all dependencies passed with no checks.
|
leo_sobral@2
|
2102 |
# 'test_compile' -- check by making test program.
|
leo_sobral@2
|
2103 |
# 'file_magic [[regex]]' -- check by looking for files in library path
|
leo_sobral@2
|
2104 |
# which responds to the $file_magic_cmd with a given extended regex.
|
leo_sobral@2
|
2105 |
# If you have `file' or equivalent on your system and you're not sure
|
leo_sobral@2
|
2106 |
# whether `pass_all' will *always* work, you probably want this one.
|
leo_sobral@2
|
2107 |
|
leo_sobral@2
|
2108 |
case $host_os in
|
leo_sobral@2
|
2109 |
aix4* | aix5*)
|
leo_sobral@2
|
2110 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2111 |
;;
|
leo_sobral@2
|
2112 |
|
leo_sobral@2
|
2113 |
beos*)
|
leo_sobral@2
|
2114 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2115 |
;;
|
leo_sobral@2
|
2116 |
|
leo_sobral@2
|
2117 |
bsdi4*)
|
leo_sobral@2
|
2118 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
leo_sobral@2
|
2119 |
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
leo_sobral@2
|
2120 |
lt_cv_file_magic_test_file=/shlib/libc.so
|
leo_sobral@2
|
2121 |
;;
|
leo_sobral@2
|
2122 |
|
leo_sobral@2
|
2123 |
cygwin*)
|
leo_sobral@2
|
2124 |
# func_win32_libid is a shell function defined in ltmain.sh
|
leo_sobral@2
|
2125 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
leo_sobral@2
|
2126 |
lt_cv_file_magic_cmd='func_win32_libid'
|
leo_sobral@2
|
2127 |
;;
|
leo_sobral@2
|
2128 |
|
leo_sobral@2
|
2129 |
mingw* | pw32*)
|
leo_sobral@2
|
2130 |
# Base MSYS/MinGW do not provide the 'file' command needed by
|
leo_sobral@2
|
2131 |
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
|
leo_sobral@2
|
2132 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
leo_sobral@2
|
2133 |
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
leo_sobral@2
|
2134 |
;;
|
leo_sobral@2
|
2135 |
|
leo_sobral@2
|
2136 |
darwin* | rhapsody*)
|
leo_sobral@2
|
2137 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2138 |
;;
|
leo_sobral@2
|
2139 |
|
leo_sobral@2
|
2140 |
freebsd* | kfreebsd*-gnu)
|
leo_sobral@2
|
2141 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
leo_sobral@2
|
2142 |
case $host_cpu in
|
leo_sobral@2
|
2143 |
i*86 )
|
leo_sobral@2
|
2144 |
# Not sure whether the presence of OpenBSD here was a mistake.
|
leo_sobral@2
|
2145 |
# Let's accept both of them until this is cleared up.
|
leo_sobral@2
|
2146 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
|
leo_sobral@2
|
2147 |
lt_cv_file_magic_cmd=/usr/bin/file
|
leo_sobral@2
|
2148 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
leo_sobral@2
|
2149 |
;;
|
leo_sobral@2
|
2150 |
esac
|
leo_sobral@2
|
2151 |
else
|
leo_sobral@2
|
2152 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2153 |
fi
|
leo_sobral@2
|
2154 |
;;
|
leo_sobral@2
|
2155 |
|
leo_sobral@2
|
2156 |
gnu*)
|
leo_sobral@2
|
2157 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2158 |
;;
|
leo_sobral@2
|
2159 |
|
leo_sobral@2
|
2160 |
hpux10.20* | hpux11*)
|
leo_sobral@2
|
2161 |
lt_cv_file_magic_cmd=/usr/bin/file
|
leo_sobral@2
|
2162 |
case "$host_cpu" in
|
leo_sobral@2
|
2163 |
ia64*)
|
leo_sobral@2
|
2164 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
leo_sobral@2
|
2165 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
leo_sobral@2
|
2166 |
;;
|
leo_sobral@2
|
2167 |
hppa*64*)
|
leo_sobral@2
|
2168 |
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
|
leo_sobral@2
|
2169 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
leo_sobral@2
|
2170 |
;;
|
leo_sobral@2
|
2171 |
*)
|
leo_sobral@2
|
2172 |
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
|
leo_sobral@2
|
2173 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
leo_sobral@2
|
2174 |
;;
|
leo_sobral@2
|
2175 |
esac
|
leo_sobral@2
|
2176 |
;;
|
leo_sobral@2
|
2177 |
|
leo_sobral@2
|
2178 |
irix5* | irix6* | nonstopux*)
|
leo_sobral@2
|
2179 |
case $LD in
|
leo_sobral@2
|
2180 |
*-32|*"-32 ") libmagic=32-bit;;
|
leo_sobral@2
|
2181 |
*-n32|*"-n32 ") libmagic=N32;;
|
leo_sobral@2
|
2182 |
*-64|*"-64 ") libmagic=64-bit;;
|
leo_sobral@2
|
2183 |
*) libmagic=never-match;;
|
leo_sobral@2
|
2184 |
esac
|
leo_sobral@2
|
2185 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2186 |
;;
|
leo_sobral@2
|
2187 |
|
leo_sobral@2
|
2188 |
# This must be Linux ELF.
|
leo_sobral@2
|
2189 |
linux*)
|
leo_sobral@2
|
2190 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2191 |
;;
|
leo_sobral@2
|
2192 |
|
leo_sobral@2
|
2193 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
|
leo_sobral@2
|
2194 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
leo_sobral@2
|
2195 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
leo_sobral@2
|
2196 |
else
|
leo_sobral@2
|
2197 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
leo_sobral@2
|
2198 |
fi
|
leo_sobral@2
|
2199 |
;;
|
leo_sobral@2
|
2200 |
|
leo_sobral@2
|
2201 |
newos6*)
|
leo_sobral@2
|
2202 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
leo_sobral@2
|
2203 |
lt_cv_file_magic_cmd=/usr/bin/file
|
leo_sobral@2
|
2204 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
leo_sobral@2
|
2205 |
;;
|
leo_sobral@2
|
2206 |
|
leo_sobral@2
|
2207 |
nto-qnx*)
|
leo_sobral@2
|
2208 |
lt_cv_deplibs_check_method=unknown
|
leo_sobral@2
|
2209 |
;;
|
leo_sobral@2
|
2210 |
|
leo_sobral@2
|
2211 |
openbsd*)
|
leo_sobral@2
|
2212 |
lt_cv_file_magic_cmd=/usr/bin/file
|
leo_sobral@2
|
2213 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
leo_sobral@2
|
2214 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
leo_sobral@2
|
2215 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
|
leo_sobral@2
|
2216 |
else
|
leo_sobral@2
|
2217 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
|
leo_sobral@2
|
2218 |
fi
|
leo_sobral@2
|
2219 |
;;
|
leo_sobral@2
|
2220 |
|
leo_sobral@2
|
2221 |
osf3* | osf4* | osf5*)
|
leo_sobral@2
|
2222 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2223 |
;;
|
leo_sobral@2
|
2224 |
|
leo_sobral@2
|
2225 |
sco3.2v5*)
|
leo_sobral@2
|
2226 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2227 |
;;
|
leo_sobral@2
|
2228 |
|
leo_sobral@2
|
2229 |
solaris*)
|
leo_sobral@2
|
2230 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2231 |
;;
|
leo_sobral@2
|
2232 |
|
leo_sobral@2
|
2233 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
leo_sobral@2
|
2234 |
case $host_vendor in
|
leo_sobral@2
|
2235 |
motorola)
|
leo_sobral@2
|
2236 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
|
leo_sobral@2
|
2237 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
leo_sobral@2
|
2238 |
;;
|
leo_sobral@2
|
2239 |
ncr)
|
leo_sobral@2
|
2240 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2241 |
;;
|
leo_sobral@2
|
2242 |
sequent)
|
leo_sobral@2
|
2243 |
lt_cv_file_magic_cmd='/bin/file'
|
leo_sobral@2
|
2244 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
leo_sobral@2
|
2245 |
;;
|
leo_sobral@2
|
2246 |
sni)
|
leo_sobral@2
|
2247 |
lt_cv_file_magic_cmd='/bin/file'
|
leo_sobral@2
|
2248 |
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
leo_sobral@2
|
2249 |
lt_cv_file_magic_test_file=/lib/libc.so
|
leo_sobral@2
|
2250 |
;;
|
leo_sobral@2
|
2251 |
siemens)
|
leo_sobral@2
|
2252 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2253 |
;;
|
leo_sobral@2
|
2254 |
esac
|
leo_sobral@2
|
2255 |
;;
|
leo_sobral@2
|
2256 |
|
leo_sobral@2
|
2257 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
|
leo_sobral@2
|
2258 |
lt_cv_deplibs_check_method=pass_all
|
leo_sobral@2
|
2259 |
;;
|
leo_sobral@2
|
2260 |
esac
|
leo_sobral@2
|
2261 |
])
|
leo_sobral@2
|
2262 |
file_magic_cmd=$lt_cv_file_magic_cmd
|
leo_sobral@2
|
2263 |
deplibs_check_method=$lt_cv_deplibs_check_method
|
leo_sobral@2
|
2264 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
leo_sobral@2
|
2265 |
])# AC_DEPLIBS_CHECK_METHOD
|
leo_sobral@2
|
2266 |
|
leo_sobral@2
|
2267 |
|
leo_sobral@2
|
2268 |
# AC_PROG_NM
|
leo_sobral@2
|
2269 |
# ----------
|
leo_sobral@2
|
2270 |
# find the pathname to a BSD-compatible name lister
|
leo_sobral@2
|
2271 |
AC_DEFUN([AC_PROG_NM],
|
leo_sobral@2
|
2272 |
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
|
leo_sobral@2
|
2273 |
[if test -n "$NM"; then
|
leo_sobral@2
|
2274 |
# Let the user override the test.
|
leo_sobral@2
|
2275 |
lt_cv_path_NM="$NM"
|
leo_sobral@2
|
2276 |
else
|
leo_sobral@2
|
2277 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
leo_sobral@2
|
2278 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
leo_sobral@2
|
2279 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
2280 |
test -z "$ac_dir" && ac_dir=.
|
leo_sobral@2
|
2281 |
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
|
leo_sobral@2
|
2282 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
leo_sobral@2
|
2283 |
# Check to see if the nm accepts a BSD-compat flag.
|
leo_sobral@2
|
2284 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
leo_sobral@2
|
2285 |
# nm: unknown option "B" ignored
|
leo_sobral@2
|
2286 |
# Tru64's nm complains that /dev/null is an invalid object file
|
leo_sobral@2
|
2287 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
leo_sobral@2
|
2288 |
*/dev/null* | *'Invalid file or object type'*)
|
leo_sobral@2
|
2289 |
lt_cv_path_NM="$tmp_nm -B"
|
leo_sobral@2
|
2290 |
break
|
leo_sobral@2
|
2291 |
;;
|
leo_sobral@2
|
2292 |
*)
|
leo_sobral@2
|
2293 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
leo_sobral@2
|
2294 |
*/dev/null*)
|
leo_sobral@2
|
2295 |
lt_cv_path_NM="$tmp_nm -p"
|
leo_sobral@2
|
2296 |
break
|
leo_sobral@2
|
2297 |
;;
|
leo_sobral@2
|
2298 |
*)
|
leo_sobral@2
|
2299 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
leo_sobral@2
|
2300 |
continue # so that we can try to find one that supports BSD flags
|
leo_sobral@2
|
2301 |
;;
|
leo_sobral@2
|
2302 |
esac
|
leo_sobral@2
|
2303 |
esac
|
leo_sobral@2
|
2304 |
fi
|
leo_sobral@2
|
2305 |
done
|
leo_sobral@2
|
2306 |
IFS="$lt_save_ifs"
|
leo_sobral@2
|
2307 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
leo_sobral@2
|
2308 |
fi])
|
leo_sobral@2
|
2309 |
NM="$lt_cv_path_NM"
|
leo_sobral@2
|
2310 |
])# AC_PROG_NM
|
leo_sobral@2
|
2311 |
|
leo_sobral@2
|
2312 |
|
leo_sobral@2
|
2313 |
# AC_CHECK_LIBM
|
leo_sobral@2
|
2314 |
# -------------
|
leo_sobral@2
|
2315 |
# check for math library
|
leo_sobral@2
|
2316 |
AC_DEFUN([AC_CHECK_LIBM],
|
leo_sobral@2
|
2317 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
leo_sobral@2
|
2318 |
LIBM=
|
leo_sobral@2
|
2319 |
case $host in
|
leo_sobral@2
|
2320 |
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
|
leo_sobral@2
|
2321 |
# These system don't have libm, or don't need it
|
leo_sobral@2
|
2322 |
;;
|
leo_sobral@2
|
2323 |
*-ncr-sysv4.3*)
|
leo_sobral@2
|
2324 |
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
leo_sobral@2
|
2325 |
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
leo_sobral@2
|
2326 |
;;
|
leo_sobral@2
|
2327 |
*)
|
leo_sobral@2
|
2328 |
AC_CHECK_LIB(m, cos, LIBM="-lm")
|
leo_sobral@2
|
2329 |
;;
|
leo_sobral@2
|
2330 |
esac
|
leo_sobral@2
|
2331 |
])# AC_CHECK_LIBM
|
leo_sobral@2
|
2332 |
|
leo_sobral@2
|
2333 |
|
leo_sobral@2
|
2334 |
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
|
leo_sobral@2
|
2335 |
# -----------------------------------
|
leo_sobral@2
|
2336 |
# sets LIBLTDL to the link flags for the libltdl convenience library and
|
leo_sobral@2
|
2337 |
# LTDLINCL to the include flags for the libltdl header and adds
|
leo_sobral@2
|
2338 |
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
|
leo_sobral@2
|
2339 |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
leo_sobral@2
|
2340 |
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
|
leo_sobral@2
|
2341 |
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
|
leo_sobral@2
|
2342 |
# '${top_srcdir}/' (note the single quotes!). If your package is not
|
leo_sobral@2
|
2343 |
# flat and you're not using automake, define top_builddir and
|
leo_sobral@2
|
2344 |
# top_srcdir appropriately in the Makefiles.
|
leo_sobral@2
|
2345 |
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
leo_sobral@2
|
2346 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
leo_sobral@2
|
2347 |
case $enable_ltdl_convenience in
|
leo_sobral@2
|
2348 |
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
leo_sobral@2
|
2349 |
"") enable_ltdl_convenience=yes
|
leo_sobral@2
|
2350 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
leo_sobral@2
|
2351 |
esac
|
leo_sobral@2
|
2352 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
|
leo_sobral@2
|
2353 |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
leo_sobral@2
|
2354 |
# For backwards non-gettext consistent compatibility...
|
leo_sobral@2
|
2355 |
INCLTDL="$LTDLINCL"
|
leo_sobral@2
|
2356 |
])# AC_LIBLTDL_CONVENIENCE
|
leo_sobral@2
|
2357 |
|
leo_sobral@2
|
2358 |
|
leo_sobral@2
|
2359 |
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
|
leo_sobral@2
|
2360 |
# -----------------------------------
|
leo_sobral@2
|
2361 |
# sets LIBLTDL to the link flags for the libltdl installable library and
|
leo_sobral@2
|
2362 |
# LTDLINCL to the include flags for the libltdl header and adds
|
leo_sobral@2
|
2363 |
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
|
leo_sobral@2
|
2364 |
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
leo_sobral@2
|
2365 |
# DIRECTORY is not provided and an installed libltdl is not found, it is
|
leo_sobral@2
|
2366 |
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
|
leo_sobral@2
|
2367 |
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
|
leo_sobral@2
|
2368 |
# quotes!). If your package is not flat and you're not using automake,
|
leo_sobral@2
|
2369 |
# define top_builddir and top_srcdir appropriately in the Makefiles.
|
leo_sobral@2
|
2370 |
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
leo_sobral@2
|
2371 |
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
leo_sobral@2
|
2372 |
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
leo_sobral@2
|
2373 |
AC_CHECK_LIB(ltdl, lt_dlinit,
|
leo_sobral@2
|
2374 |
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
|
leo_sobral@2
|
2375 |
[if test x"$enable_ltdl_install" = xno; then
|
leo_sobral@2
|
2376 |
AC_MSG_WARN([libltdl not installed, but installation disabled])
|
leo_sobral@2
|
2377 |
else
|
leo_sobral@2
|
2378 |
enable_ltdl_install=yes
|
leo_sobral@2
|
2379 |
fi
|
leo_sobral@2
|
2380 |
])
|
leo_sobral@2
|
2381 |
if test x"$enable_ltdl_install" = x"yes"; then
|
leo_sobral@2
|
2382 |
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
leo_sobral@2
|
2383 |
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
|
leo_sobral@2
|
2384 |
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
leo_sobral@2
|
2385 |
else
|
leo_sobral@2
|
2386 |
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
leo_sobral@2
|
2387 |
LIBLTDL="-lltdl"
|
leo_sobral@2
|
2388 |
LTDLINCL=
|
leo_sobral@2
|
2389 |
fi
|
leo_sobral@2
|
2390 |
# For backwards non-gettext consistent compatibility...
|
leo_sobral@2
|
2391 |
INCLTDL="$LTDLINCL"
|
leo_sobral@2
|
2392 |
])# AC_LIBLTDL_INSTALLABLE
|
leo_sobral@2
|
2393 |
|
leo_sobral@2
|
2394 |
|
leo_sobral@2
|
2395 |
# AC_LIBTOOL_CXX
|
leo_sobral@2
|
2396 |
# --------------
|
leo_sobral@2
|
2397 |
# enable support for C++ libraries
|
leo_sobral@2
|
2398 |
AC_DEFUN([AC_LIBTOOL_CXX],
|
leo_sobral@2
|
2399 |
[AC_REQUIRE([_LT_AC_LANG_CXX])
|
leo_sobral@2
|
2400 |
])# AC_LIBTOOL_CXX
|
leo_sobral@2
|
2401 |
|
leo_sobral@2
|
2402 |
|
leo_sobral@2
|
2403 |
# _LT_AC_LANG_CXX
|
leo_sobral@2
|
2404 |
# ---------------
|
leo_sobral@2
|
2405 |
AC_DEFUN([_LT_AC_LANG_CXX],
|
leo_sobral@2
|
2406 |
[AC_REQUIRE([AC_PROG_CXX])
|
leo_sobral@2
|
2407 |
AC_REQUIRE([AC_PROG_CXXCPP])
|
leo_sobral@2
|
2408 |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
|
leo_sobral@2
|
2409 |
])# _LT_AC_LANG_CXX
|
leo_sobral@2
|
2410 |
|
leo_sobral@2
|
2411 |
|
leo_sobral@2
|
2412 |
# AC_LIBTOOL_F77
|
leo_sobral@2
|
2413 |
# --------------
|
leo_sobral@2
|
2414 |
# enable support for Fortran 77 libraries
|
leo_sobral@2
|
2415 |
AC_DEFUN([AC_LIBTOOL_F77],
|
leo_sobral@2
|
2416 |
[AC_REQUIRE([_LT_AC_LANG_F77])
|
leo_sobral@2
|
2417 |
])# AC_LIBTOOL_F77
|
leo_sobral@2
|
2418 |
|
leo_sobral@2
|
2419 |
|
leo_sobral@2
|
2420 |
# _LT_AC_LANG_F77
|
leo_sobral@2
|
2421 |
# ---------------
|
leo_sobral@2
|
2422 |
AC_DEFUN([_LT_AC_LANG_F77],
|
leo_sobral@2
|
2423 |
[AC_REQUIRE([AC_PROG_F77])
|
leo_sobral@2
|
2424 |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
|
leo_sobral@2
|
2425 |
])# _LT_AC_LANG_F77
|
leo_sobral@2
|
2426 |
|
leo_sobral@2
|
2427 |
|
leo_sobral@2
|
2428 |
# AC_LIBTOOL_GCJ
|
leo_sobral@2
|
2429 |
# --------------
|
leo_sobral@2
|
2430 |
# enable support for GCJ libraries
|
leo_sobral@2
|
2431 |
AC_DEFUN([AC_LIBTOOL_GCJ],
|
leo_sobral@2
|
2432 |
[AC_REQUIRE([_LT_AC_LANG_GCJ])
|
leo_sobral@2
|
2433 |
])# AC_LIBTOOL_GCJ
|
leo_sobral@2
|
2434 |
|
leo_sobral@2
|
2435 |
|
leo_sobral@2
|
2436 |
# _LT_AC_LANG_GCJ
|
leo_sobral@2
|
2437 |
# ---------------
|
leo_sobral@2
|
2438 |
AC_DEFUN([_LT_AC_LANG_GCJ],
|
leo_sobral@2
|
2439 |
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
|
leo_sobral@2
|
2440 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
|
leo_sobral@2
|
2441 |
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
|
leo_sobral@2
|
2442 |
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
|
leo_sobral@2
|
2443 |
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
|
leo_sobral@2
|
2444 |
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
|
leo_sobral@2
|
2445 |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
|
leo_sobral@2
|
2446 |
])# _LT_AC_LANG_GCJ
|
leo_sobral@2
|
2447 |
|
leo_sobral@2
|
2448 |
|
leo_sobral@2
|
2449 |
# AC_LIBTOOL_RC
|
leo_sobral@2
|
2450 |
# --------------
|
leo_sobral@2
|
2451 |
# enable support for Windows resource files
|
leo_sobral@2
|
2452 |
AC_DEFUN([AC_LIBTOOL_RC],
|
leo_sobral@2
|
2453 |
[AC_REQUIRE([LT_AC_PROG_RC])
|
leo_sobral@2
|
2454 |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
|
leo_sobral@2
|
2455 |
])# AC_LIBTOOL_RC
|
leo_sobral@2
|
2456 |
|
leo_sobral@2
|
2457 |
|
leo_sobral@2
|
2458 |
# AC_LIBTOOL_LANG_C_CONFIG
|
leo_sobral@2
|
2459 |
# ------------------------
|
leo_sobral@2
|
2460 |
# Ensure that the configuration vars for the C compiler are
|
leo_sobral@2
|
2461 |
# suitably defined. Those variables are subsequently used by
|
leo_sobral@2
|
2462 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
leo_sobral@2
|
2463 |
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
|
leo_sobral@2
|
2464 |
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
|
leo_sobral@2
|
2465 |
[lt_save_CC="$CC"
|
leo_sobral@2
|
2466 |
AC_LANG_PUSH(C)
|
leo_sobral@2
|
2467 |
|
leo_sobral@2
|
2468 |
# Source file extension for C test sources.
|
leo_sobral@2
|
2469 |
ac_ext=c
|
leo_sobral@2
|
2470 |
|
leo_sobral@2
|
2471 |
# Object file extension for compiled C test sources.
|
leo_sobral@2
|
2472 |
objext=o
|
leo_sobral@2
|
2473 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
leo_sobral@2
|
2474 |
|
leo_sobral@2
|
2475 |
# Code to be used in simple compile tests
|
leo_sobral@2
|
2476 |
lt_simple_compile_test_code="int some_variable = 0;\n"
|
leo_sobral@2
|
2477 |
|
leo_sobral@2
|
2478 |
# Code to be used in simple link tests
|
leo_sobral@2
|
2479 |
lt_simple_link_test_code='int main(){return(0);}\n'
|
leo_sobral@2
|
2480 |
|
leo_sobral@2
|
2481 |
_LT_AC_SYS_COMPILER
|
leo_sobral@2
|
2482 |
|
leo_sobral@2
|
2483 |
#
|
leo_sobral@2
|
2484 |
# Check for any special shared library compilation flags.
|
leo_sobral@2
|
2485 |
#
|
leo_sobral@2
|
2486 |
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
|
leo_sobral@2
|
2487 |
if test "$GCC" = no; then
|
leo_sobral@2
|
2488 |
case $host_os in
|
leo_sobral@2
|
2489 |
sco3.2v5*)
|
leo_sobral@2
|
2490 |
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
|
leo_sobral@2
|
2491 |
;;
|
leo_sobral@2
|
2492 |
esac
|
leo_sobral@2
|
2493 |
fi
|
leo_sobral@2
|
2494 |
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
|
leo_sobral@2
|
2495 |
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
|
leo_sobral@2
|
2496 |
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
|
leo_sobral@2
|
2497 |
else
|
leo_sobral@2
|
2498 |
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
|
leo_sobral@2
|
2499 |
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
|
leo_sobral@2
|
2500 |
fi
|
leo_sobral@2
|
2501 |
fi
|
leo_sobral@2
|
2502 |
|
leo_sobral@2
|
2503 |
|
leo_sobral@2
|
2504 |
#
|
leo_sobral@2
|
2505 |
# Check to make sure the static flag actually works.
|
leo_sobral@2
|
2506 |
#
|
leo_sobral@2
|
2507 |
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
|
leo_sobral@2
|
2508 |
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
|
leo_sobral@2
|
2509 |
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
|
leo_sobral@2
|
2510 |
[],
|
leo_sobral@2
|
2511 |
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
|
leo_sobral@2
|
2512 |
|
leo_sobral@2
|
2513 |
|
leo_sobral@2
|
2514 |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
leo_sobral@2
|
2515 |
AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
leo_sobral@2
|
2516 |
AC_LIBTOOL_PROG_CC_C_O($1)
|
leo_sobral@2
|
2517 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
leo_sobral@2
|
2518 |
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
leo_sobral@2
|
2519 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
leo_sobral@2
|
2520 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
leo_sobral@2
|
2521 |
AC_LIBTOOL_SYS_LIB_STRIP
|
leo_sobral@2
|
2522 |
AC_LIBTOOL_DLOPEN_SELF($1)
|
leo_sobral@2
|
2523 |
|
leo_sobral@2
|
2524 |
# Report which librarie types wil actually be built
|
leo_sobral@2
|
2525 |
AC_MSG_CHECKING([if libtool supports shared libraries])
|
leo_sobral@2
|
2526 |
AC_MSG_RESULT([$can_build_shared])
|
leo_sobral@2
|
2527 |
|
leo_sobral@2
|
2528 |
AC_MSG_CHECKING([whether to build shared libraries])
|
leo_sobral@2
|
2529 |
test "$can_build_shared" = "no" && enable_shared=no
|
leo_sobral@2
|
2530 |
|
leo_sobral@2
|
2531 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
leo_sobral@2
|
2532 |
# are all built from PIC.
|
leo_sobral@2
|
2533 |
case "$host_os" in
|
leo_sobral@2
|
2534 |
aix3*)
|
leo_sobral@2
|
2535 |
test "$enable_shared" = yes && enable_static=no
|
leo_sobral@2
|
2536 |
if test -n "$RANLIB"; then
|
leo_sobral@2
|
2537 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
leo_sobral@2
|
2538 |
postinstall_cmds='$RANLIB $lib'
|
leo_sobral@2
|
2539 |
fi
|
leo_sobral@2
|
2540 |
;;
|
leo_sobral@2
|
2541 |
|
leo_sobral@2
|
2542 |
aix4* | aix5*)
|
leo_sobral@2
|
2543 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
leo_sobral@2
|
2544 |
test "$enable_shared" = yes && enable_static=no
|
leo_sobral@2
|
2545 |
fi
|
leo_sobral@2
|
2546 |
;;
|
leo_sobral@2
|
2547 |
darwin* | rhapsody*)
|
leo_sobral@2
|
2548 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
2549 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
2550 |
case "$host_os" in
|
leo_sobral@2
|
2551 |
rhapsody* | darwin1.[[012]])
|
leo_sobral@2
|
2552 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
|
leo_sobral@2
|
2553 |
;;
|
leo_sobral@2
|
2554 |
*) # Darwin 1.3 on
|
leo_sobral@2
|
2555 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
leo_sobral@2
|
2556 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
|
leo_sobral@2
|
2557 |
else
|
leo_sobral@2
|
2558 |
case ${MACOSX_DEPLOYMENT_TARGET} in
|
leo_sobral@2
|
2559 |
10.[[012]])
|
leo_sobral@2
|
2560 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
|
leo_sobral@2
|
2561 |
;;
|
leo_sobral@2
|
2562 |
10.*)
|
leo_sobral@2
|
2563 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
|
leo_sobral@2
|
2564 |
;;
|
leo_sobral@2
|
2565 |
esac
|
leo_sobral@2
|
2566 |
fi
|
leo_sobral@2
|
2567 |
;;
|
leo_sobral@2
|
2568 |
esac
|
leo_sobral@2
|
2569 |
output_verbose_link_cmd='echo'
|
leo_sobral@2
|
2570 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
|
leo_sobral@2
|
2571 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
leo_sobral@2
|
2572 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
leo_sobral@2
|
2573 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
2574 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
2575 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
2576 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
leo_sobral@2
|
2577 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
leo_sobral@2
|
2578 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
|
leo_sobral@2
|
2579 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
2580 |
else
|
leo_sobral@2
|
2581 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2582 |
fi
|
leo_sobral@2
|
2583 |
;;
|
leo_sobral@2
|
2584 |
esac
|
leo_sobral@2
|
2585 |
AC_MSG_RESULT([$enable_shared])
|
leo_sobral@2
|
2586 |
|
leo_sobral@2
|
2587 |
AC_MSG_CHECKING([whether to build static libraries])
|
leo_sobral@2
|
2588 |
# Make sure either enable_shared or enable_static is yes.
|
leo_sobral@2
|
2589 |
test "$enable_shared" = yes || enable_static=yes
|
leo_sobral@2
|
2590 |
AC_MSG_RESULT([$enable_static])
|
leo_sobral@2
|
2591 |
|
leo_sobral@2
|
2592 |
AC_LIBTOOL_CONFIG($1)
|
leo_sobral@2
|
2593 |
|
leo_sobral@2
|
2594 |
AC_LANG_POP
|
leo_sobral@2
|
2595 |
CC="$lt_save_CC"
|
leo_sobral@2
|
2596 |
])# AC_LIBTOOL_LANG_C_CONFIG
|
leo_sobral@2
|
2597 |
|
leo_sobral@2
|
2598 |
|
leo_sobral@2
|
2599 |
# AC_LIBTOOL_LANG_CXX_CONFIG
|
leo_sobral@2
|
2600 |
# --------------------------
|
leo_sobral@2
|
2601 |
# Ensure that the configuration vars for the C compiler are
|
leo_sobral@2
|
2602 |
# suitably defined. Those variables are subsequently used by
|
leo_sobral@2
|
2603 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
leo_sobral@2
|
2604 |
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
|
leo_sobral@2
|
2605 |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
|
leo_sobral@2
|
2606 |
[AC_LANG_PUSH(C++)
|
leo_sobral@2
|
2607 |
AC_REQUIRE([AC_PROG_CXX])
|
leo_sobral@2
|
2608 |
AC_REQUIRE([AC_PROG_CXXCPP])
|
leo_sobral@2
|
2609 |
|
leo_sobral@2
|
2610 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
2611 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
leo_sobral@2
|
2612 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
leo_sobral@2
|
2613 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
leo_sobral@2
|
2614 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
leo_sobral@2
|
2615 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
2616 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
leo_sobral@2
|
2617 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
leo_sobral@2
|
2618 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
leo_sobral@2
|
2619 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
leo_sobral@2
|
2620 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
leo_sobral@2
|
2621 |
_LT_AC_TAGVAR(module_cmds, $1)=
|
leo_sobral@2
|
2622 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
leo_sobral@2
|
2623 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
leo_sobral@2
|
2624 |
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
leo_sobral@2
|
2625 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=
|
leo_sobral@2
|
2626 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
leo_sobral@2
|
2627 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
leo_sobral@2
|
2628 |
|
leo_sobral@2
|
2629 |
# Dependencies to place before and after the object being linked:
|
leo_sobral@2
|
2630 |
_LT_AC_TAGVAR(predep_objects, $1)=
|
leo_sobral@2
|
2631 |
_LT_AC_TAGVAR(postdep_objects, $1)=
|
leo_sobral@2
|
2632 |
_LT_AC_TAGVAR(predeps, $1)=
|
leo_sobral@2
|
2633 |
_LT_AC_TAGVAR(postdeps, $1)=
|
leo_sobral@2
|
2634 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
|
leo_sobral@2
|
2635 |
|
leo_sobral@2
|
2636 |
# Source file extension for C++ test sources.
|
leo_sobral@2
|
2637 |
ac_ext=cc
|
leo_sobral@2
|
2638 |
|
leo_sobral@2
|
2639 |
# Object file extension for compiled C++ test sources.
|
leo_sobral@2
|
2640 |
objext=o
|
leo_sobral@2
|
2641 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
leo_sobral@2
|
2642 |
|
leo_sobral@2
|
2643 |
# Code to be used in simple compile tests
|
leo_sobral@2
|
2644 |
lt_simple_compile_test_code="int some_variable = 0;\n"
|
leo_sobral@2
|
2645 |
|
leo_sobral@2
|
2646 |
# Code to be used in simple link tests
|
leo_sobral@2
|
2647 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
|
leo_sobral@2
|
2648 |
|
leo_sobral@2
|
2649 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
leo_sobral@2
|
2650 |
_LT_AC_SYS_COMPILER
|
leo_sobral@2
|
2651 |
|
leo_sobral@2
|
2652 |
# Allow CC to be a program name with arguments.
|
leo_sobral@2
|
2653 |
lt_save_CC=$CC
|
leo_sobral@2
|
2654 |
lt_save_LD=$LD
|
leo_sobral@2
|
2655 |
lt_save_GCC=$GCC
|
leo_sobral@2
|
2656 |
GCC=$GXX
|
leo_sobral@2
|
2657 |
lt_save_with_gnu_ld=$with_gnu_ld
|
leo_sobral@2
|
2658 |
lt_save_path_LD=$lt_cv_path_LD
|
leo_sobral@2
|
2659 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
leo_sobral@2
|
2660 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
leo_sobral@2
|
2661 |
else
|
leo_sobral@2
|
2662 |
unset lt_cv_prog_gnu_ld
|
leo_sobral@2
|
2663 |
fi
|
leo_sobral@2
|
2664 |
if test -n "${lt_cv_path_LDCXX+set}"; then
|
leo_sobral@2
|
2665 |
lt_cv_path_LD=$lt_cv_path_LDCXX
|
leo_sobral@2
|
2666 |
else
|
leo_sobral@2
|
2667 |
unset lt_cv_path_LD
|
leo_sobral@2
|
2668 |
fi
|
leo_sobral@2
|
2669 |
test -z "${LDCXX+set}" || LD=$LDCXX
|
leo_sobral@2
|
2670 |
CC=${CXX-"c++"}
|
leo_sobral@2
|
2671 |
compiler=$CC
|
leo_sobral@2
|
2672 |
_LT_AC_TAGVAR(compiler, $1)=$CC
|
leo_sobral@2
|
2673 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
|
leo_sobral@2
|
2674 |
|
leo_sobral@2
|
2675 |
# We don't want -fno-exception wen compiling C++ code, so set the
|
leo_sobral@2
|
2676 |
# no_builtin_flag separately
|
leo_sobral@2
|
2677 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
2678 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
leo_sobral@2
|
2679 |
else
|
leo_sobral@2
|
2680 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
leo_sobral@2
|
2681 |
fi
|
leo_sobral@2
|
2682 |
|
leo_sobral@2
|
2683 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
2684 |
# Set up default GNU C++ configuration
|
leo_sobral@2
|
2685 |
|
leo_sobral@2
|
2686 |
AC_PROG_LD
|
leo_sobral@2
|
2687 |
|
leo_sobral@2
|
2688 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the
|
leo_sobral@2
|
2689 |
# archiving commands below assume that GNU ld is being used.
|
leo_sobral@2
|
2690 |
if test "$with_gnu_ld" = yes; then
|
leo_sobral@2
|
2691 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
2692 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
leo_sobral@2
|
2693 |
|
leo_sobral@2
|
2694 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
leo_sobral@2
|
2695 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
leo_sobral@2
|
2696 |
|
leo_sobral@2
|
2697 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
leo_sobral@2
|
2698 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
leo_sobral@2
|
2699 |
# investigate it a little bit more. (MM)
|
leo_sobral@2
|
2700 |
wlarc='${wl}'
|
leo_sobral@2
|
2701 |
|
leo_sobral@2
|
2702 |
# ancient GNU ld didn't support --whole-archive et. al.
|
leo_sobral@2
|
2703 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
leo_sobral@2
|
2704 |
grep 'no-whole-archive' > /dev/null; then
|
leo_sobral@2
|
2705 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
leo_sobral@2
|
2706 |
else
|
leo_sobral@2
|
2707 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
leo_sobral@2
|
2708 |
fi
|
leo_sobral@2
|
2709 |
else
|
leo_sobral@2
|
2710 |
with_gnu_ld=no
|
leo_sobral@2
|
2711 |
wlarc=
|
leo_sobral@2
|
2712 |
|
leo_sobral@2
|
2713 |
# A generic and very simple default shared library creation
|
leo_sobral@2
|
2714 |
# command for GNU C++ for the case where it uses the native
|
leo_sobral@2
|
2715 |
# linker, instead of GNU ld. If possible, this setting should
|
leo_sobral@2
|
2716 |
# overridden to take advantage of the native linker features on
|
leo_sobral@2
|
2717 |
# the platform it is being used on.
|
leo_sobral@2
|
2718 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
leo_sobral@2
|
2719 |
fi
|
leo_sobral@2
|
2720 |
|
leo_sobral@2
|
2721 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
2722 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
2723 |
# linking a shared library.
|
leo_sobral@2
|
2724 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
leo_sobral@2
|
2725 |
|
leo_sobral@2
|
2726 |
else
|
leo_sobral@2
|
2727 |
GXX=no
|
leo_sobral@2
|
2728 |
with_gnu_ld=no
|
leo_sobral@2
|
2729 |
wlarc=
|
leo_sobral@2
|
2730 |
fi
|
leo_sobral@2
|
2731 |
|
leo_sobral@2
|
2732 |
# PORTME: fill in a description of your system's C++ link characteristics
|
leo_sobral@2
|
2733 |
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
leo_sobral@2
|
2734 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
leo_sobral@2
|
2735 |
case $host_os in
|
leo_sobral@2
|
2736 |
aix3*)
|
leo_sobral@2
|
2737 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
2738 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2739 |
;;
|
leo_sobral@2
|
2740 |
aix4* | aix5*)
|
leo_sobral@2
|
2741 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
2742 |
# On IA64, the linker does run time linking by default, so we don't
|
leo_sobral@2
|
2743 |
# have to do anything special.
|
leo_sobral@2
|
2744 |
aix_use_runtimelinking=no
|
leo_sobral@2
|
2745 |
exp_sym_flag='-Bexport'
|
leo_sobral@2
|
2746 |
no_entry_flag=""
|
leo_sobral@2
|
2747 |
else
|
leo_sobral@2
|
2748 |
aix_use_runtimelinking=no
|
leo_sobral@2
|
2749 |
|
leo_sobral@2
|
2750 |
# Test if we are trying to use run time linking or normal
|
leo_sobral@2
|
2751 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
leo_sobral@2
|
2752 |
# need to do runtime linking.
|
leo_sobral@2
|
2753 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
leo_sobral@2
|
2754 |
for ld_flag in $LDFLAGS; do
|
leo_sobral@2
|
2755 |
case $ld_flag in
|
leo_sobral@2
|
2756 |
*-brtl*)
|
leo_sobral@2
|
2757 |
aix_use_runtimelinking=yes
|
leo_sobral@2
|
2758 |
break
|
leo_sobral@2
|
2759 |
;;
|
leo_sobral@2
|
2760 |
esac
|
leo_sobral@2
|
2761 |
done
|
leo_sobral@2
|
2762 |
esac
|
leo_sobral@2
|
2763 |
|
leo_sobral@2
|
2764 |
exp_sym_flag='-bexport'
|
leo_sobral@2
|
2765 |
no_entry_flag='-bnoentry'
|
leo_sobral@2
|
2766 |
fi
|
leo_sobral@2
|
2767 |
|
leo_sobral@2
|
2768 |
# When large executables or shared objects are built, AIX ld can
|
leo_sobral@2
|
2769 |
# have problems creating the table of contents. If linking a library
|
leo_sobral@2
|
2770 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
leo_sobral@2
|
2771 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
leo_sobral@2
|
2772 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
leo_sobral@2
|
2773 |
|
leo_sobral@2
|
2774 |
_LT_AC_TAGVAR(archive_cmds, $1)=''
|
leo_sobral@2
|
2775 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
2776 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
leo_sobral@2
|
2777 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
2778 |
|
leo_sobral@2
|
2779 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
2780 |
case $host_os in aix4.[012]|aix4.[012].*)
|
leo_sobral@2
|
2781 |
# We only want to do this on AIX 4.2 and lower, the check
|
leo_sobral@2
|
2782 |
# below for broken collect2 doesn't work under 4.3+
|
leo_sobral@2
|
2783 |
collect2name=`${CC} -print-prog-name=collect2`
|
leo_sobral@2
|
2784 |
if test -f "$collect2name" && \
|
leo_sobral@2
|
2785 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
leo_sobral@2
|
2786 |
then
|
leo_sobral@2
|
2787 |
# We have reworked collect2
|
leo_sobral@2
|
2788 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
2789 |
else
|
leo_sobral@2
|
2790 |
# We have old collect2
|
leo_sobral@2
|
2791 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
leo_sobral@2
|
2792 |
# It fails to find uninstalled libraries when the uninstalled
|
leo_sobral@2
|
2793 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
leo_sobral@2
|
2794 |
# to unsupported forces relinking
|
leo_sobral@2
|
2795 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
2796 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
2797 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
leo_sobral@2
|
2798 |
fi
|
leo_sobral@2
|
2799 |
esac
|
leo_sobral@2
|
2800 |
shared_flag='-shared'
|
leo_sobral@2
|
2801 |
else
|
leo_sobral@2
|
2802 |
# not using gcc
|
leo_sobral@2
|
2803 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
2804 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
leo_sobral@2
|
2805 |
# chokes on -Wl,-G. The following line is correct:
|
leo_sobral@2
|
2806 |
shared_flag='-G'
|
leo_sobral@2
|
2807 |
else
|
leo_sobral@2
|
2808 |
if test "$aix_use_runtimelinking" = yes; then
|
leo_sobral@2
|
2809 |
shared_flag='${wl}-G'
|
leo_sobral@2
|
2810 |
else
|
leo_sobral@2
|
2811 |
shared_flag='${wl}-bM:SRE'
|
leo_sobral@2
|
2812 |
fi
|
leo_sobral@2
|
2813 |
fi
|
leo_sobral@2
|
2814 |
fi
|
leo_sobral@2
|
2815 |
|
leo_sobral@2
|
2816 |
# It seems that -bexpall does not export symbols beginning with
|
leo_sobral@2
|
2817 |
# underscore (_), so it is better to generate a list of symbols to export.
|
leo_sobral@2
|
2818 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
leo_sobral@2
|
2819 |
if test "$aix_use_runtimelinking" = yes; then
|
leo_sobral@2
|
2820 |
# Warning - without using the other runtime loading flags (-brtl),
|
leo_sobral@2
|
2821 |
# -berok will link without error, but may produce a broken library.
|
leo_sobral@2
|
2822 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
leo_sobral@2
|
2823 |
# Determine the default libpath from the value encoded in an empty executable.
|
leo_sobral@2
|
2824 |
_LT_AC_SYS_LIBPATH_AIX
|
leo_sobral@2
|
2825 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
leo_sobral@2
|
2826 |
|
leo_sobral@2
|
2827 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
leo_sobral@2
|
2828 |
else
|
leo_sobral@2
|
2829 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
2830 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
leo_sobral@2
|
2831 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
leo_sobral@2
|
2832 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
leo_sobral@2
|
2833 |
else
|
leo_sobral@2
|
2834 |
# Determine the default libpath from the value encoded in an empty executable.
|
leo_sobral@2
|
2835 |
_LT_AC_SYS_LIBPATH_AIX
|
leo_sobral@2
|
2836 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
leo_sobral@2
|
2837 |
# Warning - without using the other run time loading flags,
|
leo_sobral@2
|
2838 |
# -berok will link without error, but may produce a broken library.
|
leo_sobral@2
|
2839 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
leo_sobral@2
|
2840 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
leo_sobral@2
|
2841 |
# -bexpall does not export symbols beginning with underscore (_)
|
leo_sobral@2
|
2842 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
leo_sobral@2
|
2843 |
# Exported symbols can be pulled into shared objects from archives
|
leo_sobral@2
|
2844 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
leo_sobral@2
|
2845 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
leo_sobral@2
|
2846 |
# This is similar to how AIX traditionally builds it's shared libraries.
|
leo_sobral@2
|
2847 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
leo_sobral@2
|
2848 |
fi
|
leo_sobral@2
|
2849 |
fi
|
leo_sobral@2
|
2850 |
;;
|
leo_sobral@2
|
2851 |
chorus*)
|
leo_sobral@2
|
2852 |
case $cc_basename in
|
leo_sobral@2
|
2853 |
*)
|
leo_sobral@2
|
2854 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
2855 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2856 |
;;
|
leo_sobral@2
|
2857 |
esac
|
leo_sobral@2
|
2858 |
;;
|
leo_sobral@2
|
2859 |
|
leo_sobral@2
|
2860 |
cygwin* | mingw* | pw32*)
|
leo_sobral@2
|
2861 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
leo_sobral@2
|
2862 |
# as there is no search path for DLLs.
|
leo_sobral@2
|
2863 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
2864 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
leo_sobral@2
|
2865 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
leo_sobral@2
|
2866 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
leo_sobral@2
|
2867 |
|
leo_sobral@2
|
2868 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
leo_sobral@2
|
2869 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
leo_sobral@2
|
2870 |
# If the export-symbols file already is a .def file (1st line
|
leo_sobral@2
|
2871 |
# is EXPORTS), use it as is; otherwise, prepend...
|
leo_sobral@2
|
2872 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
leo_sobral@2
|
2873 |
cp $export_symbols $output_objdir/$soname.def;
|
leo_sobral@2
|
2874 |
else
|
leo_sobral@2
|
2875 |
echo EXPORTS > $output_objdir/$soname.def;
|
leo_sobral@2
|
2876 |
cat $export_symbols >> $output_objdir/$soname.def;
|
leo_sobral@2
|
2877 |
fi~
|
leo_sobral@2
|
2878 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
leo_sobral@2
|
2879 |
else
|
leo_sobral@2
|
2880 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2881 |
fi
|
leo_sobral@2
|
2882 |
;;
|
leo_sobral@2
|
2883 |
|
leo_sobral@2
|
2884 |
darwin* | rhapsody*)
|
leo_sobral@2
|
2885 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
2886 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
2887 |
case "$host_os" in
|
leo_sobral@2
|
2888 |
rhapsody* | darwin1.[[012]])
|
leo_sobral@2
|
2889 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
|
leo_sobral@2
|
2890 |
;;
|
leo_sobral@2
|
2891 |
*) # Darwin 1.3 on
|
leo_sobral@2
|
2892 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
leo_sobral@2
|
2893 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
|
leo_sobral@2
|
2894 |
else
|
leo_sobral@2
|
2895 |
case ${MACOSX_DEPLOYMENT_TARGET} in
|
leo_sobral@2
|
2896 |
10.[[012]])
|
leo_sobral@2
|
2897 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
|
leo_sobral@2
|
2898 |
;;
|
leo_sobral@2
|
2899 |
10.*)
|
leo_sobral@2
|
2900 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
|
leo_sobral@2
|
2901 |
;;
|
leo_sobral@2
|
2902 |
esac
|
leo_sobral@2
|
2903 |
fi
|
leo_sobral@2
|
2904 |
;;
|
leo_sobral@2
|
2905 |
esac
|
leo_sobral@2
|
2906 |
lt_int_apple_cc_single_mod=no
|
leo_sobral@2
|
2907 |
output_verbose_link_cmd='echo'
|
leo_sobral@2
|
2908 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
|
leo_sobral@2
|
2909 |
lt_int_apple_cc_single_mod=yes
|
leo_sobral@2
|
2910 |
fi
|
leo_sobral@2
|
2911 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
leo_sobral@2
|
2912 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
leo_sobral@2
|
2913 |
else
|
leo_sobral@2
|
2914 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
|
leo_sobral@2
|
2915 |
fi
|
leo_sobral@2
|
2916 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
leo_sobral@2
|
2917 |
|
leo_sobral@2
|
2918 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
leo_sobral@2
|
2919 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
leo_sobral@2
|
2920 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
2921 |
else
|
leo_sobral@2
|
2922 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
2923 |
fi
|
leo_sobral@2
|
2924 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
2925 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
2926 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
leo_sobral@2
|
2927 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
leo_sobral@2
|
2928 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
|
leo_sobral@2
|
2929 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
2930 |
else
|
leo_sobral@2
|
2931 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2932 |
fi
|
leo_sobral@2
|
2933 |
;;
|
leo_sobral@2
|
2934 |
|
leo_sobral@2
|
2935 |
dgux*)
|
leo_sobral@2
|
2936 |
case $cc_basename in
|
leo_sobral@2
|
2937 |
ec++)
|
leo_sobral@2
|
2938 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
2939 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2940 |
;;
|
leo_sobral@2
|
2941 |
ghcx)
|
leo_sobral@2
|
2942 |
# Green Hills C++ Compiler
|
leo_sobral@2
|
2943 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
2944 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2945 |
;;
|
leo_sobral@2
|
2946 |
*)
|
leo_sobral@2
|
2947 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
2948 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2949 |
;;
|
leo_sobral@2
|
2950 |
esac
|
leo_sobral@2
|
2951 |
;;
|
leo_sobral@2
|
2952 |
freebsd[12]*)
|
leo_sobral@2
|
2953 |
# C++ shared libraries reported to be fairly broken before switch to ELF
|
leo_sobral@2
|
2954 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2955 |
;;
|
leo_sobral@2
|
2956 |
freebsd-elf*)
|
leo_sobral@2
|
2957 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
2958 |
;;
|
leo_sobral@2
|
2959 |
freebsd* | kfreebsd*-gnu)
|
leo_sobral@2
|
2960 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
leo_sobral@2
|
2961 |
# conventions
|
leo_sobral@2
|
2962 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
leo_sobral@2
|
2963 |
;;
|
leo_sobral@2
|
2964 |
gnu*)
|
leo_sobral@2
|
2965 |
;;
|
leo_sobral@2
|
2966 |
hpux9*)
|
leo_sobral@2
|
2967 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
leo_sobral@2
|
2968 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
2969 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
leo_sobral@2
|
2970 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
2971 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
leo_sobral@2
|
2972 |
# but as the default
|
leo_sobral@2
|
2973 |
# location of the library.
|
leo_sobral@2
|
2974 |
|
leo_sobral@2
|
2975 |
case $cc_basename in
|
leo_sobral@2
|
2976 |
CC)
|
leo_sobral@2
|
2977 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
2978 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2979 |
;;
|
leo_sobral@2
|
2980 |
aCC)
|
leo_sobral@2
|
2981 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
leo_sobral@2
|
2982 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
2983 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
2984 |
# linking a shared library.
|
leo_sobral@2
|
2985 |
#
|
leo_sobral@2
|
2986 |
# There doesn't appear to be a way to prevent this compiler from
|
leo_sobral@2
|
2987 |
# explicitly linking system object files so we need to strip them
|
leo_sobral@2
|
2988 |
# from the output so that they don't get included in the library
|
leo_sobral@2
|
2989 |
# dependencies.
|
leo_sobral@2
|
2990 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
leo_sobral@2
|
2991 |
;;
|
leo_sobral@2
|
2992 |
*)
|
leo_sobral@2
|
2993 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
2994 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
leo_sobral@2
|
2995 |
else
|
leo_sobral@2
|
2996 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
2997 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
2998 |
fi
|
leo_sobral@2
|
2999 |
;;
|
leo_sobral@2
|
3000 |
esac
|
leo_sobral@2
|
3001 |
;;
|
leo_sobral@2
|
3002 |
hpux10*|hpux11*)
|
leo_sobral@2
|
3003 |
if test $with_gnu_ld = no; then
|
leo_sobral@2
|
3004 |
case "$host_cpu" in
|
leo_sobral@2
|
3005 |
hppa*64*)
|
leo_sobral@2
|
3006 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
leo_sobral@2
|
3007 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
leo_sobral@2
|
3008 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3009 |
;;
|
leo_sobral@2
|
3010 |
ia64*)
|
leo_sobral@2
|
3011 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
3012 |
;;
|
leo_sobral@2
|
3013 |
*)
|
leo_sobral@2
|
3014 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
leo_sobral@2
|
3015 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3016 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
leo_sobral@2
|
3017 |
;;
|
leo_sobral@2
|
3018 |
esac
|
leo_sobral@2
|
3019 |
fi
|
leo_sobral@2
|
3020 |
case "$host_cpu" in
|
leo_sobral@2
|
3021 |
hppa*64*)
|
leo_sobral@2
|
3022 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
3023 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
3024 |
;;
|
leo_sobral@2
|
3025 |
ia64*)
|
leo_sobral@2
|
3026 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
3027 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
3028 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
leo_sobral@2
|
3029 |
# but as the default
|
leo_sobral@2
|
3030 |
# location of the library.
|
leo_sobral@2
|
3031 |
;;
|
leo_sobral@2
|
3032 |
*)
|
leo_sobral@2
|
3033 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
3034 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
leo_sobral@2
|
3035 |
# but as the default
|
leo_sobral@2
|
3036 |
# location of the library.
|
leo_sobral@2
|
3037 |
;;
|
leo_sobral@2
|
3038 |
esac
|
leo_sobral@2
|
3039 |
|
leo_sobral@2
|
3040 |
case $cc_basename in
|
leo_sobral@2
|
3041 |
CC)
|
leo_sobral@2
|
3042 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3043 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3044 |
;;
|
leo_sobral@2
|
3045 |
aCC)
|
leo_sobral@2
|
3046 |
case "$host_cpu" in
|
leo_sobral@2
|
3047 |
hppa*64*|ia64*)
|
leo_sobral@2
|
3048 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
leo_sobral@2
|
3049 |
;;
|
leo_sobral@2
|
3050 |
*)
|
leo_sobral@2
|
3051 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
leo_sobral@2
|
3052 |
;;
|
leo_sobral@2
|
3053 |
esac
|
leo_sobral@2
|
3054 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3055 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3056 |
# linking a shared library.
|
leo_sobral@2
|
3057 |
#
|
leo_sobral@2
|
3058 |
# There doesn't appear to be a way to prevent this compiler from
|
leo_sobral@2
|
3059 |
# explicitly linking system object files so we need to strip them
|
leo_sobral@2
|
3060 |
# from the output so that they don't get included in the library
|
leo_sobral@2
|
3061 |
# dependencies.
|
leo_sobral@2
|
3062 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
leo_sobral@2
|
3063 |
;;
|
leo_sobral@2
|
3064 |
*)
|
leo_sobral@2
|
3065 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
3066 |
if test $with_gnu_ld = no; then
|
leo_sobral@2
|
3067 |
case "$host_cpu" in
|
leo_sobral@2
|
3068 |
ia64*|hppa*64*)
|
leo_sobral@2
|
3069 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
leo_sobral@2
|
3070 |
;;
|
leo_sobral@2
|
3071 |
*)
|
leo_sobral@2
|
3072 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
leo_sobral@2
|
3073 |
;;
|
leo_sobral@2
|
3074 |
esac
|
leo_sobral@2
|
3075 |
fi
|
leo_sobral@2
|
3076 |
else
|
leo_sobral@2
|
3077 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3078 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3079 |
fi
|
leo_sobral@2
|
3080 |
;;
|
leo_sobral@2
|
3081 |
esac
|
leo_sobral@2
|
3082 |
;;
|
leo_sobral@2
|
3083 |
irix5* | irix6*)
|
leo_sobral@2
|
3084 |
case $cc_basename in
|
leo_sobral@2
|
3085 |
CC)
|
leo_sobral@2
|
3086 |
# SGI C++
|
leo_sobral@2
|
3087 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
|
leo_sobral@2
|
3088 |
|
leo_sobral@2
|
3089 |
# Archives containing C++ object files must be created using
|
leo_sobral@2
|
3090 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
leo_sobral@2
|
3091 |
# necessary to make sure instantiated templates are included
|
leo_sobral@2
|
3092 |
# in the archive.
|
leo_sobral@2
|
3093 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
leo_sobral@2
|
3094 |
;;
|
leo_sobral@2
|
3095 |
*)
|
leo_sobral@2
|
3096 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
3097 |
if test "$with_gnu_ld" = no; then
|
leo_sobral@2
|
3098 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
|
leo_sobral@2
|
3099 |
else
|
leo_sobral@2
|
3100 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
|
leo_sobral@2
|
3101 |
fi
|
leo_sobral@2
|
3102 |
fi
|
leo_sobral@2
|
3103 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
3104 |
;;
|
leo_sobral@2
|
3105 |
esac
|
leo_sobral@2
|
3106 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
3107 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3108 |
;;
|
leo_sobral@2
|
3109 |
linux*)
|
leo_sobral@2
|
3110 |
case $cc_basename in
|
leo_sobral@2
|
3111 |
KCC)
|
leo_sobral@2
|
3112 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
leo_sobral@2
|
3113 |
|
leo_sobral@2
|
3114 |
# KCC will only create a shared library if the output file
|
leo_sobral@2
|
3115 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
leo_sobral@2
|
3116 |
# to its proper name (with version) after linking.
|
leo_sobral@2
|
3117 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
leo_sobral@2
|
3118 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
|
leo_sobral@2
|
3119 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3120 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3121 |
# linking a shared library.
|
leo_sobral@2
|
3122 |
#
|
leo_sobral@2
|
3123 |
# There doesn't appear to be a way to prevent this compiler from
|
leo_sobral@2
|
3124 |
# explicitly linking system object files so we need to strip them
|
leo_sobral@2
|
3125 |
# from the output so that they don't get included in the library
|
leo_sobral@2
|
3126 |
# dependencies.
|
leo_sobral@2
|
3127 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
leo_sobral@2
|
3128 |
|
leo_sobral@2
|
3129 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
|
leo_sobral@2
|
3130 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
leo_sobral@2
|
3131 |
|
leo_sobral@2
|
3132 |
# Archives containing C++ object files must be created using
|
leo_sobral@2
|
3133 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
leo_sobral@2
|
3134 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
leo_sobral@2
|
3135 |
;;
|
leo_sobral@2
|
3136 |
icpc)
|
leo_sobral@2
|
3137 |
# Intel C++
|
leo_sobral@2
|
3138 |
with_gnu_ld=yes
|
leo_sobral@2
|
3139 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
3140 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
3141 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
leo_sobral@2
|
3142 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
leo_sobral@2
|
3143 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
leo_sobral@2
|
3144 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
leo_sobral@2
|
3145 |
;;
|
leo_sobral@2
|
3146 |
cxx)
|
leo_sobral@2
|
3147 |
# Compaq C++
|
leo_sobral@2
|
3148 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
3149 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
|
leo_sobral@2
|
3150 |
|
leo_sobral@2
|
3151 |
runpath_var=LD_RUN_PATH
|
leo_sobral@2
|
3152 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
leo_sobral@2
|
3153 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3154 |
|
leo_sobral@2
|
3155 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3156 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3157 |
# linking a shared library.
|
leo_sobral@2
|
3158 |
#
|
leo_sobral@2
|
3159 |
# There doesn't appear to be a way to prevent this compiler from
|
leo_sobral@2
|
3160 |
# explicitly linking system object files so we need to strip them
|
leo_sobral@2
|
3161 |
# from the output so that they don't get included in the library
|
leo_sobral@2
|
3162 |
# dependencies.
|
leo_sobral@2
|
3163 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
leo_sobral@2
|
3164 |
;;
|
leo_sobral@2
|
3165 |
esac
|
leo_sobral@2
|
3166 |
;;
|
leo_sobral@2
|
3167 |
lynxos*)
|
leo_sobral@2
|
3168 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3169 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3170 |
;;
|
leo_sobral@2
|
3171 |
m88k*)
|
leo_sobral@2
|
3172 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3173 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3174 |
;;
|
leo_sobral@2
|
3175 |
mvs*)
|
leo_sobral@2
|
3176 |
case $cc_basename in
|
leo_sobral@2
|
3177 |
cxx)
|
leo_sobral@2
|
3178 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3179 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3180 |
;;
|
leo_sobral@2
|
3181 |
*)
|
leo_sobral@2
|
3182 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3183 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3184 |
;;
|
leo_sobral@2
|
3185 |
esac
|
leo_sobral@2
|
3186 |
;;
|
leo_sobral@2
|
3187 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
|
leo_sobral@2
|
3188 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
leo_sobral@2
|
3189 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
leo_sobral@2
|
3190 |
wlarc=
|
leo_sobral@2
|
3191 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
leo_sobral@2
|
3192 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
3193 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
3194 |
fi
|
leo_sobral@2
|
3195 |
# Workaround some broken pre-1.5 toolchains
|
leo_sobral@2
|
3196 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
leo_sobral@2
|
3197 |
;;
|
leo_sobral@2
|
3198 |
osf3*)
|
leo_sobral@2
|
3199 |
case $cc_basename in
|
leo_sobral@2
|
3200 |
KCC)
|
leo_sobral@2
|
3201 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
leo_sobral@2
|
3202 |
|
leo_sobral@2
|
3203 |
# KCC will only create a shared library if the output file
|
leo_sobral@2
|
3204 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
leo_sobral@2
|
3205 |
# to its proper name (with version) after linking.
|
leo_sobral@2
|
3206 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
leo_sobral@2
|
3207 |
|
leo_sobral@2
|
3208 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
leo_sobral@2
|
3209 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3210 |
|
leo_sobral@2
|
3211 |
# Archives containing C++ object files must be created using
|
leo_sobral@2
|
3212 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
leo_sobral@2
|
3213 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
leo_sobral@2
|
3214 |
|
leo_sobral@2
|
3215 |
;;
|
leo_sobral@2
|
3216 |
RCC)
|
leo_sobral@2
|
3217 |
# Rational C++ 2.4.1
|
leo_sobral@2
|
3218 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3219 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3220 |
;;
|
leo_sobral@2
|
3221 |
cxx)
|
leo_sobral@2
|
3222 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
leo_sobral@2
|
3223 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
|
leo_sobral@2
|
3224 |
|
leo_sobral@2
|
3225 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
3226 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3227 |
|
leo_sobral@2
|
3228 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3229 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3230 |
# linking a shared library.
|
leo_sobral@2
|
3231 |
#
|
leo_sobral@2
|
3232 |
# There doesn't appear to be a way to prevent this compiler from
|
leo_sobral@2
|
3233 |
# explicitly linking system object files so we need to strip them
|
leo_sobral@2
|
3234 |
# from the output so that they don't get included in the library
|
leo_sobral@2
|
3235 |
# dependencies.
|
leo_sobral@2
|
3236 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
leo_sobral@2
|
3237 |
;;
|
leo_sobral@2
|
3238 |
*)
|
leo_sobral@2
|
3239 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
leo_sobral@2
|
3240 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
leo_sobral@2
|
3241 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
|
leo_sobral@2
|
3242 |
|
leo_sobral@2
|
3243 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
3244 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3245 |
|
leo_sobral@2
|
3246 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3247 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3248 |
# linking a shared library.
|
leo_sobral@2
|
3249 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
leo_sobral@2
|
3250 |
|
leo_sobral@2
|
3251 |
else
|
leo_sobral@2
|
3252 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3253 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3254 |
fi
|
leo_sobral@2
|
3255 |
;;
|
leo_sobral@2
|
3256 |
esac
|
leo_sobral@2
|
3257 |
;;
|
leo_sobral@2
|
3258 |
osf4* | osf5*)
|
leo_sobral@2
|
3259 |
case $cc_basename in
|
leo_sobral@2
|
3260 |
KCC)
|
leo_sobral@2
|
3261 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
leo_sobral@2
|
3262 |
|
leo_sobral@2
|
3263 |
# KCC will only create a shared library if the output file
|
leo_sobral@2
|
3264 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
leo_sobral@2
|
3265 |
# to its proper name (with version) after linking.
|
leo_sobral@2
|
3266 |
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
leo_sobral@2
|
3267 |
|
leo_sobral@2
|
3268 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
leo_sobral@2
|
3269 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3270 |
|
leo_sobral@2
|
3271 |
# Archives containing C++ object files must be created using
|
leo_sobral@2
|
3272 |
# the KAI C++ compiler.
|
leo_sobral@2
|
3273 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
|
leo_sobral@2
|
3274 |
;;
|
leo_sobral@2
|
3275 |
RCC)
|
leo_sobral@2
|
3276 |
# Rational C++ 2.4.1
|
leo_sobral@2
|
3277 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3278 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3279 |
;;
|
leo_sobral@2
|
3280 |
cxx)
|
leo_sobral@2
|
3281 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
leo_sobral@2
|
3282 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
|
leo_sobral@2
|
3283 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
leo_sobral@2
|
3284 |
echo "-hidden">> $lib.exp~
|
leo_sobral@2
|
3285 |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
|
leo_sobral@2
|
3286 |
$rm $lib.exp'
|
leo_sobral@2
|
3287 |
|
leo_sobral@2
|
3288 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
leo_sobral@2
|
3289 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3290 |
|
leo_sobral@2
|
3291 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3292 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3293 |
# linking a shared library.
|
leo_sobral@2
|
3294 |
#
|
leo_sobral@2
|
3295 |
# There doesn't appear to be a way to prevent this compiler from
|
leo_sobral@2
|
3296 |
# explicitly linking system object files so we need to strip them
|
leo_sobral@2
|
3297 |
# from the output so that they don't get included in the library
|
leo_sobral@2
|
3298 |
# dependencies.
|
leo_sobral@2
|
3299 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
leo_sobral@2
|
3300 |
;;
|
leo_sobral@2
|
3301 |
*)
|
leo_sobral@2
|
3302 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
leo_sobral@2
|
3303 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
leo_sobral@2
|
3304 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
|
leo_sobral@2
|
3305 |
|
leo_sobral@2
|
3306 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
3307 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
3308 |
|
leo_sobral@2
|
3309 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3310 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3311 |
# linking a shared library.
|
leo_sobral@2
|
3312 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
leo_sobral@2
|
3313 |
|
leo_sobral@2
|
3314 |
else
|
leo_sobral@2
|
3315 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3316 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3317 |
fi
|
leo_sobral@2
|
3318 |
;;
|
leo_sobral@2
|
3319 |
esac
|
leo_sobral@2
|
3320 |
;;
|
leo_sobral@2
|
3321 |
psos*)
|
leo_sobral@2
|
3322 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3323 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3324 |
;;
|
leo_sobral@2
|
3325 |
sco*)
|
leo_sobral@2
|
3326 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
3327 |
case $cc_basename in
|
leo_sobral@2
|
3328 |
CC)
|
leo_sobral@2
|
3329 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3330 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3331 |
;;
|
leo_sobral@2
|
3332 |
*)
|
leo_sobral@2
|
3333 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3334 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3335 |
;;
|
leo_sobral@2
|
3336 |
esac
|
leo_sobral@2
|
3337 |
;;
|
leo_sobral@2
|
3338 |
sunos4*)
|
leo_sobral@2
|
3339 |
case $cc_basename in
|
leo_sobral@2
|
3340 |
CC)
|
leo_sobral@2
|
3341 |
# Sun C++ 4.x
|
leo_sobral@2
|
3342 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3343 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3344 |
;;
|
leo_sobral@2
|
3345 |
lcc)
|
leo_sobral@2
|
3346 |
# Lucid
|
leo_sobral@2
|
3347 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3348 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3349 |
;;
|
leo_sobral@2
|
3350 |
*)
|
leo_sobral@2
|
3351 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3352 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3353 |
;;
|
leo_sobral@2
|
3354 |
esac
|
leo_sobral@2
|
3355 |
;;
|
leo_sobral@2
|
3356 |
solaris*)
|
leo_sobral@2
|
3357 |
case $cc_basename in
|
leo_sobral@2
|
3358 |
CC)
|
leo_sobral@2
|
3359 |
# Sun C++ 4.2, 5.x and Centerline C++
|
leo_sobral@2
|
3360 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
leo_sobral@2
|
3361 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
leo_sobral@2
|
3362 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
leo_sobral@2
|
3363 |
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
leo_sobral@2
|
3364 |
|
leo_sobral@2
|
3365 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
leo_sobral@2
|
3366 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
3367 |
case $host_os in
|
leo_sobral@2
|
3368 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
leo_sobral@2
|
3369 |
*)
|
leo_sobral@2
|
3370 |
# The C++ compiler is used as linker so we must use $wl
|
leo_sobral@2
|
3371 |
# flag to pass the commands to the underlying system
|
leo_sobral@2
|
3372 |
# linker.
|
leo_sobral@2
|
3373 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
leo_sobral@2
|
3374 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
leo_sobral@2
|
3375 |
;;
|
leo_sobral@2
|
3376 |
esac
|
leo_sobral@2
|
3377 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
3378 |
|
leo_sobral@2
|
3379 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3380 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3381 |
# linking a shared library.
|
leo_sobral@2
|
3382 |
#
|
leo_sobral@2
|
3383 |
# There doesn't appear to be a way to prevent this compiler from
|
leo_sobral@2
|
3384 |
# explicitly linking system object files so we need to strip them
|
leo_sobral@2
|
3385 |
# from the output so that they don't get included in the library
|
leo_sobral@2
|
3386 |
# dependencies.
|
leo_sobral@2
|
3387 |
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
leo_sobral@2
|
3388 |
|
leo_sobral@2
|
3389 |
# Archives containing C++ object files must be created using
|
leo_sobral@2
|
3390 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
leo_sobral@2
|
3391 |
# necessary to make sure instantiated templates are included
|
leo_sobral@2
|
3392 |
# in the archive.
|
leo_sobral@2
|
3393 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
leo_sobral@2
|
3394 |
;;
|
leo_sobral@2
|
3395 |
gcx)
|
leo_sobral@2
|
3396 |
# Green Hills C++ Compiler
|
leo_sobral@2
|
3397 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
leo_sobral@2
|
3398 |
|
leo_sobral@2
|
3399 |
# The C++ compiler must be used to create the archive.
|
leo_sobral@2
|
3400 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
leo_sobral@2
|
3401 |
;;
|
leo_sobral@2
|
3402 |
*)
|
leo_sobral@2
|
3403 |
# GNU C++ compiler with Solaris linker
|
leo_sobral@2
|
3404 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
leo_sobral@2
|
3405 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
leo_sobral@2
|
3406 |
if $CC --version | grep -v '^2\.7' > /dev/null; then
|
leo_sobral@2
|
3407 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
leo_sobral@2
|
3408 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
leo_sobral@2
|
3409 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
leo_sobral@2
|
3410 |
|
leo_sobral@2
|
3411 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3412 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3413 |
# linking a shared library.
|
leo_sobral@2
|
3414 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
leo_sobral@2
|
3415 |
else
|
leo_sobral@2
|
3416 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this
|
leo_sobral@2
|
3417 |
# platform.
|
leo_sobral@2
|
3418 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
leo_sobral@2
|
3419 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
leo_sobral@2
|
3420 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
leo_sobral@2
|
3421 |
|
leo_sobral@2
|
3422 |
# Commands to make compiler produce verbose output that lists
|
leo_sobral@2
|
3423 |
# what "hidden" libraries, object files and flags are used when
|
leo_sobral@2
|
3424 |
# linking a shared library.
|
leo_sobral@2
|
3425 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
leo_sobral@2
|
3426 |
fi
|
leo_sobral@2
|
3427 |
|
leo_sobral@2
|
3428 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
leo_sobral@2
|
3429 |
fi
|
leo_sobral@2
|
3430 |
;;
|
leo_sobral@2
|
3431 |
esac
|
leo_sobral@2
|
3432 |
;;
|
leo_sobral@2
|
3433 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
leo_sobral@2
|
3434 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
3435 |
;;
|
leo_sobral@2
|
3436 |
tandem*)
|
leo_sobral@2
|
3437 |
case $cc_basename in
|
leo_sobral@2
|
3438 |
NCC)
|
leo_sobral@2
|
3439 |
# NonStop-UX NCC 3.20
|
leo_sobral@2
|
3440 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3441 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3442 |
;;
|
leo_sobral@2
|
3443 |
*)
|
leo_sobral@2
|
3444 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3445 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3446 |
;;
|
leo_sobral@2
|
3447 |
esac
|
leo_sobral@2
|
3448 |
;;
|
leo_sobral@2
|
3449 |
vxworks*)
|
leo_sobral@2
|
3450 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3451 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3452 |
;;
|
leo_sobral@2
|
3453 |
*)
|
leo_sobral@2
|
3454 |
# FIXME: insert proper C++ library support
|
leo_sobral@2
|
3455 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
3456 |
;;
|
leo_sobral@2
|
3457 |
esac
|
leo_sobral@2
|
3458 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
leo_sobral@2
|
3459 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
leo_sobral@2
|
3460 |
|
leo_sobral@2
|
3461 |
_LT_AC_TAGVAR(GCC, $1)="$GXX"
|
leo_sobral@2
|
3462 |
_LT_AC_TAGVAR(LD, $1)="$LD"
|
leo_sobral@2
|
3463 |
|
leo_sobral@2
|
3464 |
AC_LIBTOOL_POSTDEP_PREDEP($1)
|
leo_sobral@2
|
3465 |
AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
leo_sobral@2
|
3466 |
AC_LIBTOOL_PROG_CC_C_O($1)
|
leo_sobral@2
|
3467 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
leo_sobral@2
|
3468 |
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
leo_sobral@2
|
3469 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
leo_sobral@2
|
3470 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
leo_sobral@2
|
3471 |
AC_LIBTOOL_SYS_LIB_STRIP
|
leo_sobral@2
|
3472 |
AC_LIBTOOL_DLOPEN_SELF($1)
|
leo_sobral@2
|
3473 |
|
leo_sobral@2
|
3474 |
AC_LIBTOOL_CONFIG($1)
|
leo_sobral@2
|
3475 |
|
leo_sobral@2
|
3476 |
AC_LANG_POP
|
leo_sobral@2
|
3477 |
CC=$lt_save_CC
|
leo_sobral@2
|
3478 |
LDCXX=$LD
|
leo_sobral@2
|
3479 |
LD=$lt_save_LD
|
leo_sobral@2
|
3480 |
GCC=$lt_save_GCC
|
leo_sobral@2
|
3481 |
with_gnu_ldcxx=$with_gnu_ld
|
leo_sobral@2
|
3482 |
with_gnu_ld=$lt_save_with_gnu_ld
|
leo_sobral@2
|
3483 |
lt_cv_path_LDCXX=$lt_cv_path_LD
|
leo_sobral@2
|
3484 |
lt_cv_path_LD=$lt_save_path_LD
|
leo_sobral@2
|
3485 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
leo_sobral@2
|
3486 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
leo_sobral@2
|
3487 |
])# AC_LIBTOOL_LANG_CXX_CONFIG
|
leo_sobral@2
|
3488 |
|
leo_sobral@2
|
3489 |
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
|
leo_sobral@2
|
3490 |
# ------------------------
|
leo_sobral@2
|
3491 |
# Figure out "hidden" library dependencies from verbose
|
leo_sobral@2
|
3492 |
# compiler output when linking a shared library.
|
leo_sobral@2
|
3493 |
# Parse the compiler output and extract the necessary
|
leo_sobral@2
|
3494 |
# objects, libraries and library flags.
|
leo_sobral@2
|
3495 |
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
|
leo_sobral@2
|
3496 |
dnl we can't use the lt_simple_compile_test_code here,
|
leo_sobral@2
|
3497 |
dnl because it contains code intended for an executable,
|
leo_sobral@2
|
3498 |
dnl not a library. It's possible we should let each
|
leo_sobral@2
|
3499 |
dnl tag define a new lt_????_link_test_code variable,
|
leo_sobral@2
|
3500 |
dnl but it's only used here...
|
leo_sobral@2
|
3501 |
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
|
leo_sobral@2
|
3502 |
int a;
|
leo_sobral@2
|
3503 |
void foo (void) { a = 0; }
|
leo_sobral@2
|
3504 |
EOF
|
leo_sobral@2
|
3505 |
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
|
leo_sobral@2
|
3506 |
class Foo
|
leo_sobral@2
|
3507 |
{
|
leo_sobral@2
|
3508 |
public:
|
leo_sobral@2
|
3509 |
Foo (void) { a = 0; }
|
leo_sobral@2
|
3510 |
private:
|
leo_sobral@2
|
3511 |
int a;
|
leo_sobral@2
|
3512 |
};
|
leo_sobral@2
|
3513 |
EOF
|
leo_sobral@2
|
3514 |
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
|
leo_sobral@2
|
3515 |
subroutine foo
|
leo_sobral@2
|
3516 |
implicit none
|
leo_sobral@2
|
3517 |
integer*4 a
|
leo_sobral@2
|
3518 |
a=0
|
leo_sobral@2
|
3519 |
return
|
leo_sobral@2
|
3520 |
end
|
leo_sobral@2
|
3521 |
EOF
|
leo_sobral@2
|
3522 |
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
|
leo_sobral@2
|
3523 |
public class foo {
|
leo_sobral@2
|
3524 |
private int a;
|
leo_sobral@2
|
3525 |
public void bar (void) {
|
leo_sobral@2
|
3526 |
a = 0;
|
leo_sobral@2
|
3527 |
}
|
leo_sobral@2
|
3528 |
};
|
leo_sobral@2
|
3529 |
EOF
|
leo_sobral@2
|
3530 |
])
|
leo_sobral@2
|
3531 |
dnl Parse the compiler output and extract the necessary
|
leo_sobral@2
|
3532 |
dnl objects, libraries and library flags.
|
leo_sobral@2
|
3533 |
if AC_TRY_EVAL(ac_compile); then
|
leo_sobral@2
|
3534 |
# Parse the compiler output and extract the necessary
|
leo_sobral@2
|
3535 |
# objects, libraries and library flags.
|
leo_sobral@2
|
3536 |
|
leo_sobral@2
|
3537 |
# Sentinel used to keep track of whether or not we are before
|
leo_sobral@2
|
3538 |
# the conftest object file.
|
leo_sobral@2
|
3539 |
pre_test_object_deps_done=no
|
leo_sobral@2
|
3540 |
|
leo_sobral@2
|
3541 |
# The `*' in the case matches for architectures that use `case' in
|
leo_sobral@2
|
3542 |
# $output_verbose_cmd can trigger glob expansion during the loop
|
leo_sobral@2
|
3543 |
# eval without this substitution.
|
leo_sobral@2
|
3544 |
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
|
leo_sobral@2
|
3545 |
|
leo_sobral@2
|
3546 |
for p in `eval $output_verbose_link_cmd`; do
|
leo_sobral@2
|
3547 |
case $p in
|
leo_sobral@2
|
3548 |
|
leo_sobral@2
|
3549 |
-L* | -R* | -l*)
|
leo_sobral@2
|
3550 |
# Some compilers place space between "-{L,R}" and the path.
|
leo_sobral@2
|
3551 |
# Remove the space.
|
leo_sobral@2
|
3552 |
if test $p = "-L" \
|
leo_sobral@2
|
3553 |
|| test $p = "-R"; then
|
leo_sobral@2
|
3554 |
prev=$p
|
leo_sobral@2
|
3555 |
continue
|
leo_sobral@2
|
3556 |
else
|
leo_sobral@2
|
3557 |
prev=
|
leo_sobral@2
|
3558 |
fi
|
leo_sobral@2
|
3559 |
|
leo_sobral@2
|
3560 |
if test "$pre_test_object_deps_done" = no; then
|
leo_sobral@2
|
3561 |
case $p in
|
leo_sobral@2
|
3562 |
-L* | -R*)
|
leo_sobral@2
|
3563 |
# Internal compiler library paths should come after those
|
leo_sobral@2
|
3564 |
# provided the user. The postdeps already come after the
|
leo_sobral@2
|
3565 |
# user supplied libs so there is no need to process them.
|
leo_sobral@2
|
3566 |
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
|
leo_sobral@2
|
3567 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
leo_sobral@2
|
3568 |
else
|
leo_sobral@2
|
3569 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
leo_sobral@2
|
3570 |
fi
|
leo_sobral@2
|
3571 |
;;
|
leo_sobral@2
|
3572 |
# The "-l" case would never come before the object being
|
leo_sobral@2
|
3573 |
# linked, so don't bother handling this case.
|
leo_sobral@2
|
3574 |
esac
|
leo_sobral@2
|
3575 |
else
|
leo_sobral@2
|
3576 |
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
|
leo_sobral@2
|
3577 |
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
|
leo_sobral@2
|
3578 |
else
|
leo_sobral@2
|
3579 |
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
|
leo_sobral@2
|
3580 |
fi
|
leo_sobral@2
|
3581 |
fi
|
leo_sobral@2
|
3582 |
;;
|
leo_sobral@2
|
3583 |
|
leo_sobral@2
|
3584 |
*.$objext)
|
leo_sobral@2
|
3585 |
# This assumes that the test object file only shows up
|
leo_sobral@2
|
3586 |
# once in the compiler output.
|
leo_sobral@2
|
3587 |
if test "$p" = "conftest.$objext"; then
|
leo_sobral@2
|
3588 |
pre_test_object_deps_done=yes
|
leo_sobral@2
|
3589 |
continue
|
leo_sobral@2
|
3590 |
fi
|
leo_sobral@2
|
3591 |
|
leo_sobral@2
|
3592 |
if test "$pre_test_object_deps_done" = no; then
|
leo_sobral@2
|
3593 |
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
|
leo_sobral@2
|
3594 |
_LT_AC_TAGVAR(predep_objects, $1)="$p"
|
leo_sobral@2
|
3595 |
else
|
leo_sobral@2
|
3596 |
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
|
leo_sobral@2
|
3597 |
fi
|
leo_sobral@2
|
3598 |
else
|
leo_sobral@2
|
3599 |
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
|
leo_sobral@2
|
3600 |
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
|
leo_sobral@2
|
3601 |
else
|
leo_sobral@2
|
3602 |
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
|
leo_sobral@2
|
3603 |
fi
|
leo_sobral@2
|
3604 |
fi
|
leo_sobral@2
|
3605 |
;;
|
leo_sobral@2
|
3606 |
|
leo_sobral@2
|
3607 |
*) ;; # Ignore the rest.
|
leo_sobral@2
|
3608 |
|
leo_sobral@2
|
3609 |
esac
|
leo_sobral@2
|
3610 |
done
|
leo_sobral@2
|
3611 |
|
leo_sobral@2
|
3612 |
# Clean up.
|
leo_sobral@2
|
3613 |
rm -f a.out a.exe
|
leo_sobral@2
|
3614 |
else
|
leo_sobral@2
|
3615 |
echo "libtool.m4: error: problem compiling $1 test program"
|
leo_sobral@2
|
3616 |
fi
|
leo_sobral@2
|
3617 |
|
leo_sobral@2
|
3618 |
$rm -f confest.$objext
|
leo_sobral@2
|
3619 |
|
leo_sobral@2
|
3620 |
case " $_LT_AC_TAGVAR(postdeps, $1) " in
|
leo_sobral@2
|
3621 |
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
leo_sobral@2
|
3622 |
esac
|
leo_sobral@2
|
3623 |
])# AC_LIBTOOL_POSTDEP_PREDEP
|
leo_sobral@2
|
3624 |
|
leo_sobral@2
|
3625 |
# AC_LIBTOOL_LANG_F77_CONFIG
|
leo_sobral@2
|
3626 |
# ------------------------
|
leo_sobral@2
|
3627 |
# Ensure that the configuration vars for the C compiler are
|
leo_sobral@2
|
3628 |
# suitably defined. Those variables are subsequently used by
|
leo_sobral@2
|
3629 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
leo_sobral@2
|
3630 |
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
|
leo_sobral@2
|
3631 |
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
|
leo_sobral@2
|
3632 |
[AC_REQUIRE([AC_PROG_F77])
|
leo_sobral@2
|
3633 |
AC_LANG_PUSH(Fortran 77)
|
leo_sobral@2
|
3634 |
|
leo_sobral@2
|
3635 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
3636 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
leo_sobral@2
|
3637 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
leo_sobral@2
|
3638 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
leo_sobral@2
|
3639 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
leo_sobral@2
|
3640 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
3641 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
leo_sobral@2
|
3642 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
leo_sobral@2
|
3643 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
leo_sobral@2
|
3644 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
leo_sobral@2
|
3645 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
leo_sobral@2
|
3646 |
_LT_AC_TAGVAR(module_cmds, $1)=
|
leo_sobral@2
|
3647 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
leo_sobral@2
|
3648 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
leo_sobral@2
|
3649 |
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
leo_sobral@2
|
3650 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=
|
leo_sobral@2
|
3651 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
leo_sobral@2
|
3652 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
leo_sobral@2
|
3653 |
|
leo_sobral@2
|
3654 |
# Source file extension for f77 test sources.
|
leo_sobral@2
|
3655 |
ac_ext=f
|
leo_sobral@2
|
3656 |
|
leo_sobral@2
|
3657 |
# Object file extension for compiled f77 test sources.
|
leo_sobral@2
|
3658 |
objext=o
|
leo_sobral@2
|
3659 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
leo_sobral@2
|
3660 |
|
leo_sobral@2
|
3661 |
# Code to be used in simple compile tests
|
leo_sobral@2
|
3662 |
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
|
leo_sobral@2
|
3663 |
|
leo_sobral@2
|
3664 |
# Code to be used in simple link tests
|
leo_sobral@2
|
3665 |
lt_simple_link_test_code=" program t\n end\n"
|
leo_sobral@2
|
3666 |
|
leo_sobral@2
|
3667 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
leo_sobral@2
|
3668 |
_LT_AC_SYS_COMPILER
|
leo_sobral@2
|
3669 |
|
leo_sobral@2
|
3670 |
# Allow CC to be a program name with arguments.
|
leo_sobral@2
|
3671 |
lt_save_CC="$CC"
|
leo_sobral@2
|
3672 |
CC=${F77-"f77"}
|
leo_sobral@2
|
3673 |
compiler=$CC
|
leo_sobral@2
|
3674 |
_LT_AC_TAGVAR(compiler, $1)=$CC
|
leo_sobral@2
|
3675 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
|
leo_sobral@2
|
3676 |
|
leo_sobral@2
|
3677 |
AC_MSG_CHECKING([if libtool supports shared libraries])
|
leo_sobral@2
|
3678 |
AC_MSG_RESULT([$can_build_shared])
|
leo_sobral@2
|
3679 |
|
leo_sobral@2
|
3680 |
AC_MSG_CHECKING([whether to build shared libraries])
|
leo_sobral@2
|
3681 |
test "$can_build_shared" = "no" && enable_shared=no
|
leo_sobral@2
|
3682 |
|
leo_sobral@2
|
3683 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
leo_sobral@2
|
3684 |
# are all built from PIC.
|
leo_sobral@2
|
3685 |
case "$host_os" in
|
leo_sobral@2
|
3686 |
aix3*)
|
leo_sobral@2
|
3687 |
test "$enable_shared" = yes && enable_static=no
|
leo_sobral@2
|
3688 |
if test -n "$RANLIB"; then
|
leo_sobral@2
|
3689 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
leo_sobral@2
|
3690 |
postinstall_cmds='$RANLIB $lib'
|
leo_sobral@2
|
3691 |
fi
|
leo_sobral@2
|
3692 |
;;
|
leo_sobral@2
|
3693 |
aix4* | aix5*)
|
leo_sobral@2
|
3694 |
test "$enable_shared" = yes && enable_static=no
|
leo_sobral@2
|
3695 |
;;
|
leo_sobral@2
|
3696 |
esac
|
leo_sobral@2
|
3697 |
AC_MSG_RESULT([$enable_shared])
|
leo_sobral@2
|
3698 |
|
leo_sobral@2
|
3699 |
AC_MSG_CHECKING([whether to build static libraries])
|
leo_sobral@2
|
3700 |
# Make sure either enable_shared or enable_static is yes.
|
leo_sobral@2
|
3701 |
test "$enable_shared" = yes || enable_static=yes
|
leo_sobral@2
|
3702 |
AC_MSG_RESULT([$enable_static])
|
leo_sobral@2
|
3703 |
|
leo_sobral@2
|
3704 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
leo_sobral@2
|
3705 |
|
leo_sobral@2
|
3706 |
_LT_AC_TAGVAR(GCC, $1)="$G77"
|
leo_sobral@2
|
3707 |
_LT_AC_TAGVAR(LD, $1)="$LD"
|
leo_sobral@2
|
3708 |
|
leo_sobral@2
|
3709 |
AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
leo_sobral@2
|
3710 |
AC_LIBTOOL_PROG_CC_C_O($1)
|
leo_sobral@2
|
3711 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
leo_sobral@2
|
3712 |
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
leo_sobral@2
|
3713 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
leo_sobral@2
|
3714 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
leo_sobral@2
|
3715 |
AC_LIBTOOL_SYS_LIB_STRIP
|
leo_sobral@2
|
3716 |
|
leo_sobral@2
|
3717 |
|
leo_sobral@2
|
3718 |
AC_LIBTOOL_CONFIG($1)
|
leo_sobral@2
|
3719 |
|
leo_sobral@2
|
3720 |
AC_LANG_POP
|
leo_sobral@2
|
3721 |
CC="$lt_save_CC"
|
leo_sobral@2
|
3722 |
])# AC_LIBTOOL_LANG_F77_CONFIG
|
leo_sobral@2
|
3723 |
|
leo_sobral@2
|
3724 |
|
leo_sobral@2
|
3725 |
# AC_LIBTOOL_LANG_GCJ_CONFIG
|
leo_sobral@2
|
3726 |
# --------------------------
|
leo_sobral@2
|
3727 |
# Ensure that the configuration vars for the C compiler are
|
leo_sobral@2
|
3728 |
# suitably defined. Those variables are subsequently used by
|
leo_sobral@2
|
3729 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
leo_sobral@2
|
3730 |
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
|
leo_sobral@2
|
3731 |
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
|
leo_sobral@2
|
3732 |
[AC_LANG_SAVE
|
leo_sobral@2
|
3733 |
|
leo_sobral@2
|
3734 |
# Source file extension for Java test sources.
|
leo_sobral@2
|
3735 |
ac_ext=java
|
leo_sobral@2
|
3736 |
|
leo_sobral@2
|
3737 |
# Object file extension for compiled Java test sources.
|
leo_sobral@2
|
3738 |
objext=o
|
leo_sobral@2
|
3739 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
leo_sobral@2
|
3740 |
|
leo_sobral@2
|
3741 |
# Code to be used in simple compile tests
|
leo_sobral@2
|
3742 |
lt_simple_compile_test_code="class foo {}\n"
|
leo_sobral@2
|
3743 |
|
leo_sobral@2
|
3744 |
# Code to be used in simple link tests
|
leo_sobral@2
|
3745 |
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
|
leo_sobral@2
|
3746 |
|
leo_sobral@2
|
3747 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
leo_sobral@2
|
3748 |
_LT_AC_SYS_COMPILER
|
leo_sobral@2
|
3749 |
|
leo_sobral@2
|
3750 |
# Allow CC to be a program name with arguments.
|
leo_sobral@2
|
3751 |
lt_save_CC="$CC"
|
leo_sobral@2
|
3752 |
CC=${GCJ-"gcj"}
|
leo_sobral@2
|
3753 |
compiler=$CC
|
leo_sobral@2
|
3754 |
_LT_AC_TAGVAR(compiler, $1)=$CC
|
leo_sobral@2
|
3755 |
|
leo_sobral@2
|
3756 |
# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
leo_sobral@2
|
3757 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
3758 |
|
leo_sobral@2
|
3759 |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
leo_sobral@2
|
3760 |
AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
leo_sobral@2
|
3761 |
AC_LIBTOOL_PROG_CC_C_O($1)
|
leo_sobral@2
|
3762 |
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
leo_sobral@2
|
3763 |
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
leo_sobral@2
|
3764 |
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
leo_sobral@2
|
3765 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
leo_sobral@2
|
3766 |
AC_LIBTOOL_SYS_LIB_STRIP
|
leo_sobral@2
|
3767 |
AC_LIBTOOL_DLOPEN_SELF($1)
|
leo_sobral@2
|
3768 |
|
leo_sobral@2
|
3769 |
AC_LIBTOOL_CONFIG($1)
|
leo_sobral@2
|
3770 |
|
leo_sobral@2
|
3771 |
AC_LANG_RESTORE
|
leo_sobral@2
|
3772 |
CC="$lt_save_CC"
|
leo_sobral@2
|
3773 |
])# AC_LIBTOOL_LANG_GCJ_CONFIG
|
leo_sobral@2
|
3774 |
|
leo_sobral@2
|
3775 |
|
leo_sobral@2
|
3776 |
# AC_LIBTOOL_LANG_RC_CONFIG
|
leo_sobral@2
|
3777 |
# --------------------------
|
leo_sobral@2
|
3778 |
# Ensure that the configuration vars for the Windows resource compiler are
|
leo_sobral@2
|
3779 |
# suitably defined. Those variables are subsequently used by
|
leo_sobral@2
|
3780 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
leo_sobral@2
|
3781 |
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
|
leo_sobral@2
|
3782 |
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
|
leo_sobral@2
|
3783 |
[AC_LANG_SAVE
|
leo_sobral@2
|
3784 |
|
leo_sobral@2
|
3785 |
# Source file extension for RC test sources.
|
leo_sobral@2
|
3786 |
ac_ext=rc
|
leo_sobral@2
|
3787 |
|
leo_sobral@2
|
3788 |
# Object file extension for compiled RC test sources.
|
leo_sobral@2
|
3789 |
objext=o
|
leo_sobral@2
|
3790 |
_LT_AC_TAGVAR(objext, $1)=$objext
|
leo_sobral@2
|
3791 |
|
leo_sobral@2
|
3792 |
# Code to be used in simple compile tests
|
leo_sobral@2
|
3793 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
|
leo_sobral@2
|
3794 |
|
leo_sobral@2
|
3795 |
# Code to be used in simple link tests
|
leo_sobral@2
|
3796 |
lt_simple_link_test_code="$lt_simple_compile_test_code"
|
leo_sobral@2
|
3797 |
|
leo_sobral@2
|
3798 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
leo_sobral@2
|
3799 |
_LT_AC_SYS_COMPILER
|
leo_sobral@2
|
3800 |
|
leo_sobral@2
|
3801 |
# Allow CC to be a program name with arguments.
|
leo_sobral@2
|
3802 |
lt_save_CC="$CC"
|
leo_sobral@2
|
3803 |
CC=${RC-"windres"}
|
leo_sobral@2
|
3804 |
compiler=$CC
|
leo_sobral@2
|
3805 |
_LT_AC_TAGVAR(compiler, $1)=$CC
|
leo_sobral@2
|
3806 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
leo_sobral@2
|
3807 |
|
leo_sobral@2
|
3808 |
AC_LIBTOOL_CONFIG($1)
|
leo_sobral@2
|
3809 |
|
leo_sobral@2
|
3810 |
AC_LANG_RESTORE
|
leo_sobral@2
|
3811 |
CC="$lt_save_CC"
|
leo_sobral@2
|
3812 |
])# AC_LIBTOOL_LANG_RC_CONFIG
|
leo_sobral@2
|
3813 |
|
leo_sobral@2
|
3814 |
|
leo_sobral@2
|
3815 |
# AC_LIBTOOL_CONFIG([TAGNAME])
|
leo_sobral@2
|
3816 |
# ----------------------------
|
leo_sobral@2
|
3817 |
# If TAGNAME is not passed, then create an initial libtool script
|
leo_sobral@2
|
3818 |
# with a default configuration from the untagged config vars. Otherwise
|
leo_sobral@2
|
3819 |
# add code to config.status for appending the configuration named by
|
leo_sobral@2
|
3820 |
# TAGNAME from the matching tagged config vars.
|
leo_sobral@2
|
3821 |
AC_DEFUN([AC_LIBTOOL_CONFIG],
|
leo_sobral@2
|
3822 |
[# The else clause should only fire when bootstrapping the
|
leo_sobral@2
|
3823 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
leo_sobral@2
|
3824 |
# with your package, and you will get complaints that there are
|
leo_sobral@2
|
3825 |
# no rules to generate ltmain.sh.
|
leo_sobral@2
|
3826 |
if test -f "$ltmain"; then
|
leo_sobral@2
|
3827 |
# See if we are running on zsh, and set the options which allow our commands through
|
leo_sobral@2
|
3828 |
# without removal of \ escapes.
|
leo_sobral@2
|
3829 |
if test -n "${ZSH_VERSION+set}" ; then
|
leo_sobral@2
|
3830 |
setopt NO_GLOB_SUBST
|
leo_sobral@2
|
3831 |
fi
|
leo_sobral@2
|
3832 |
# Now quote all the things that may contain metacharacters while being
|
leo_sobral@2
|
3833 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
leo_sobral@2
|
3834 |
# variables and quote the copies for generation of the libtool script.
|
leo_sobral@2
|
3835 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
leo_sobral@2
|
3836 |
SED SHELL STRIP \
|
leo_sobral@2
|
3837 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
leo_sobral@2
|
3838 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
leo_sobral@2
|
3839 |
deplibs_check_method reload_flag reload_cmds need_locks \
|
leo_sobral@2
|
3840 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
leo_sobral@2
|
3841 |
lt_cv_sys_global_symbol_to_c_name_address \
|
leo_sobral@2
|
3842 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
leo_sobral@2
|
3843 |
old_postinstall_cmds old_postuninstall_cmds \
|
leo_sobral@2
|
3844 |
_LT_AC_TAGVAR(compiler, $1) \
|
leo_sobral@2
|
3845 |
_LT_AC_TAGVAR(CC, $1) \
|
leo_sobral@2
|
3846 |
_LT_AC_TAGVAR(LD, $1) \
|
leo_sobral@2
|
3847 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
|
leo_sobral@2
|
3848 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
|
leo_sobral@2
|
3849 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
|
leo_sobral@2
|
3850 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
|
leo_sobral@2
|
3851 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
|
leo_sobral@2
|
3852 |
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
|
leo_sobral@2
|
3853 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
|
leo_sobral@2
|
3854 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
|
leo_sobral@2
|
3855 |
_LT_AC_TAGVAR(old_archive_cmds, $1) \
|
leo_sobral@2
|
3856 |
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
|
leo_sobral@2
|
3857 |
_LT_AC_TAGVAR(predep_objects, $1) \
|
leo_sobral@2
|
3858 |
_LT_AC_TAGVAR(postdep_objects, $1) \
|
leo_sobral@2
|
3859 |
_LT_AC_TAGVAR(predeps, $1) \
|
leo_sobral@2
|
3860 |
_LT_AC_TAGVAR(postdeps, $1) \
|
leo_sobral@2
|
3861 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
|
leo_sobral@2
|
3862 |
_LT_AC_TAGVAR(archive_cmds, $1) \
|
leo_sobral@2
|
3863 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
|
leo_sobral@2
|
3864 |
_LT_AC_TAGVAR(postinstall_cmds, $1) \
|
leo_sobral@2
|
3865 |
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
|
leo_sobral@2
|
3866 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
|
leo_sobral@2
|
3867 |
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
|
leo_sobral@2
|
3868 |
_LT_AC_TAGVAR(no_undefined_flag, $1) \
|
leo_sobral@2
|
3869 |
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
|
leo_sobral@2
|
3870 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
|
leo_sobral@2
|
3871 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
|
leo_sobral@2
|
3872 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
|
leo_sobral@2
|
3873 |
_LT_AC_TAGVAR(hardcode_automatic, $1) \
|
leo_sobral@2
|
3874 |
_LT_AC_TAGVAR(module_cmds, $1) \
|
leo_sobral@2
|
3875 |
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
|
leo_sobral@2
|
3876 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
|
leo_sobral@2
|
3877 |
_LT_AC_TAGVAR(exclude_expsyms, $1) \
|
leo_sobral@2
|
3878 |
_LT_AC_TAGVAR(include_expsyms, $1); do
|
leo_sobral@2
|
3879 |
|
leo_sobral@2
|
3880 |
case $var in
|
leo_sobral@2
|
3881 |
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
|
leo_sobral@2
|
3882 |
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
|
leo_sobral@2
|
3883 |
_LT_AC_TAGVAR(archive_cmds, $1) | \
|
leo_sobral@2
|
3884 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
|
leo_sobral@2
|
3885 |
_LT_AC_TAGVAR(module_cmds, $1) | \
|
leo_sobral@2
|
3886 |
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
|
leo_sobral@2
|
3887 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
|
leo_sobral@2
|
3888 |
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
|
leo_sobral@2
|
3889 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
leo_sobral@2
|
3890 |
postinstall_cmds | postuninstall_cmds | \
|
leo_sobral@2
|
3891 |
old_postinstall_cmds | old_postuninstall_cmds | \
|
leo_sobral@2
|
3892 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
leo_sobral@2
|
3893 |
# Double-quote double-evaled strings.
|
leo_sobral@2
|
3894 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
leo_sobral@2
|
3895 |
;;
|
leo_sobral@2
|
3896 |
*)
|
leo_sobral@2
|
3897 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
leo_sobral@2
|
3898 |
;;
|
leo_sobral@2
|
3899 |
esac
|
leo_sobral@2
|
3900 |
done
|
leo_sobral@2
|
3901 |
|
leo_sobral@2
|
3902 |
case $lt_echo in
|
leo_sobral@2
|
3903 |
*'\[$]0 --fallback-echo"')
|
leo_sobral@2
|
3904 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
|
leo_sobral@2
|
3905 |
;;
|
leo_sobral@2
|
3906 |
esac
|
leo_sobral@2
|
3907 |
|
leo_sobral@2
|
3908 |
ifelse([$1], [],
|
leo_sobral@2
|
3909 |
[cfgfile="${ofile}T"
|
leo_sobral@2
|
3910 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
leo_sobral@2
|
3911 |
$rm -f "$cfgfile"
|
leo_sobral@2
|
3912 |
AC_MSG_NOTICE([creating $ofile])],
|
leo_sobral@2
|
3913 |
[cfgfile="$ofile"])
|
leo_sobral@2
|
3914 |
|
leo_sobral@2
|
3915 |
cat <<__EOF__ >> "$cfgfile"
|
leo_sobral@2
|
3916 |
ifelse([$1], [],
|
leo_sobral@2
|
3917 |
[#! $SHELL
|
leo_sobral@2
|
3918 |
|
leo_sobral@2
|
3919 |
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
leo_sobral@2
|
3920 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
leo_sobral@2
|
3921 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
leo_sobral@2
|
3922 |
#
|
leo_sobral@2
|
3923 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
leo_sobral@2
|
3924 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
3925 |
#
|
leo_sobral@2
|
3926 |
# This file is part of GNU Libtool:
|
leo_sobral@2
|
3927 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
leo_sobral@2
|
3928 |
#
|
leo_sobral@2
|
3929 |
# This program is free software; you can redistribute it and/or modify
|
leo_sobral@2
|
3930 |
# it under the terms of the GNU General Public License as published by
|
leo_sobral@2
|
3931 |
# the Free Software Foundation; either version 2 of the License, or
|
leo_sobral@2
|
3932 |
# (at your option) any later version.
|
leo_sobral@2
|
3933 |
#
|
leo_sobral@2
|
3934 |
# This program is distributed in the hope that it will be useful, but
|
leo_sobral@2
|
3935 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
leo_sobral@2
|
3936 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
leo_sobral@2
|
3937 |
# General Public License for more details.
|
leo_sobral@2
|
3938 |
#
|
leo_sobral@2
|
3939 |
# You should have received a copy of the GNU General Public License
|
leo_sobral@2
|
3940 |
# along with this program; if not, write to the Free Software
|
leo_sobral@2
|
3941 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
leo_sobral@2
|
3942 |
#
|
leo_sobral@2
|
3943 |
# As a special exception to the GNU General Public License, if you
|
leo_sobral@2
|
3944 |
# distribute this file as part of a program that contains a
|
leo_sobral@2
|
3945 |
# configuration script generated by Autoconf, you may include it under
|
leo_sobral@2
|
3946 |
# the same distribution terms that you use for the rest of that program.
|
leo_sobral@2
|
3947 |
|
leo_sobral@2
|
3948 |
# A sed program that does not truncate output.
|
leo_sobral@2
|
3949 |
SED=$lt_SED
|
leo_sobral@2
|
3950 |
|
leo_sobral@2
|
3951 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
leo_sobral@2
|
3952 |
Xsed="$SED -e s/^X//"
|
leo_sobral@2
|
3953 |
|
leo_sobral@2
|
3954 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
leo_sobral@2
|
3955 |
# if CDPATH is set.
|
leo_sobral@2
|
3956 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
|
leo_sobral@2
|
3957 |
|
leo_sobral@2
|
3958 |
# The names of the tagged configurations supported by this script.
|
leo_sobral@2
|
3959 |
available_tags=
|
leo_sobral@2
|
3960 |
|
leo_sobral@2
|
3961 |
# ### BEGIN LIBTOOL CONFIG],
|
leo_sobral@2
|
3962 |
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
|
leo_sobral@2
|
3963 |
|
leo_sobral@2
|
3964 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
leo_sobral@2
|
3965 |
|
leo_sobral@2
|
3966 |
# Shell to use when invoking shell scripts.
|
leo_sobral@2
|
3967 |
SHELL=$lt_SHELL
|
leo_sobral@2
|
3968 |
|
leo_sobral@2
|
3969 |
# Whether or not to build shared libraries.
|
leo_sobral@2
|
3970 |
build_libtool_libs=$enable_shared
|
leo_sobral@2
|
3971 |
|
leo_sobral@2
|
3972 |
# Whether or not to build static libraries.
|
leo_sobral@2
|
3973 |
build_old_libs=$enable_static
|
leo_sobral@2
|
3974 |
|
leo_sobral@2
|
3975 |
# Whether or not to add -lc for building shared libraries.
|
leo_sobral@2
|
3976 |
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
|
leo_sobral@2
|
3977 |
|
leo_sobral@2
|
3978 |
# Whether or not to disallow shared libs when runtime libs are static
|
leo_sobral@2
|
3979 |
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
|
leo_sobral@2
|
3980 |
|
leo_sobral@2
|
3981 |
# Whether or not to optimize for fast installation.
|
leo_sobral@2
|
3982 |
fast_install=$enable_fast_install
|
leo_sobral@2
|
3983 |
|
leo_sobral@2
|
3984 |
# The host system.
|
leo_sobral@2
|
3985 |
host_alias=$host_alias
|
leo_sobral@2
|
3986 |
host=$host
|
leo_sobral@2
|
3987 |
|
leo_sobral@2
|
3988 |
# An echo program that does not interpret backslashes.
|
leo_sobral@2
|
3989 |
echo=$lt_echo
|
leo_sobral@2
|
3990 |
|
leo_sobral@2
|
3991 |
# The archiver.
|
leo_sobral@2
|
3992 |
AR=$lt_AR
|
leo_sobral@2
|
3993 |
AR_FLAGS=$lt_AR_FLAGS
|
leo_sobral@2
|
3994 |
|
leo_sobral@2
|
3995 |
# A C compiler.
|
leo_sobral@2
|
3996 |
LTCC=$lt_LTCC
|
leo_sobral@2
|
3997 |
|
leo_sobral@2
|
3998 |
# A language-specific compiler.
|
leo_sobral@2
|
3999 |
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
|
leo_sobral@2
|
4000 |
|
leo_sobral@2
|
4001 |
# Is the compiler the GNU C compiler?
|
leo_sobral@2
|
4002 |
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
|
leo_sobral@2
|
4003 |
|
leo_sobral@2
|
4004 |
# An ERE matcher.
|
leo_sobral@2
|
4005 |
EGREP=$lt_EGREP
|
leo_sobral@2
|
4006 |
|
leo_sobral@2
|
4007 |
# The linker used to build libraries.
|
leo_sobral@2
|
4008 |
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
|
leo_sobral@2
|
4009 |
|
leo_sobral@2
|
4010 |
# Whether we need hard or soft links.
|
leo_sobral@2
|
4011 |
LN_S=$lt_LN_S
|
leo_sobral@2
|
4012 |
|
leo_sobral@2
|
4013 |
# A BSD-compatible nm program.
|
leo_sobral@2
|
4014 |
NM=$lt_NM
|
leo_sobral@2
|
4015 |
|
leo_sobral@2
|
4016 |
# A symbol stripping program
|
leo_sobral@2
|
4017 |
STRIP=$lt_STRIP
|
leo_sobral@2
|
4018 |
|
leo_sobral@2
|
4019 |
# Used to examine libraries when file_magic_cmd begins "file"
|
leo_sobral@2
|
4020 |
MAGIC_CMD=$MAGIC_CMD
|
leo_sobral@2
|
4021 |
|
leo_sobral@2
|
4022 |
# Used on cygwin: DLL creation program.
|
leo_sobral@2
|
4023 |
DLLTOOL="$DLLTOOL"
|
leo_sobral@2
|
4024 |
|
leo_sobral@2
|
4025 |
# Used on cygwin: object dumper.
|
leo_sobral@2
|
4026 |
OBJDUMP="$OBJDUMP"
|
leo_sobral@2
|
4027 |
|
leo_sobral@2
|
4028 |
# Used on cygwin: assembler.
|
leo_sobral@2
|
4029 |
AS="$AS"
|
leo_sobral@2
|
4030 |
|
leo_sobral@2
|
4031 |
# The name of the directory that contains temporary libtool files.
|
leo_sobral@2
|
4032 |
objdir=$objdir
|
leo_sobral@2
|
4033 |
|
leo_sobral@2
|
4034 |
# How to create reloadable object files.
|
leo_sobral@2
|
4035 |
reload_flag=$lt_reload_flag
|
leo_sobral@2
|
4036 |
reload_cmds=$lt_reload_cmds
|
leo_sobral@2
|
4037 |
|
leo_sobral@2
|
4038 |
# How to pass a linker flag through the compiler.
|
leo_sobral@2
|
4039 |
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
leo_sobral@2
|
4040 |
|
leo_sobral@2
|
4041 |
# Object file suffix (normally "o").
|
leo_sobral@2
|
4042 |
objext="$ac_objext"
|
leo_sobral@2
|
4043 |
|
leo_sobral@2
|
4044 |
# Old archive suffix (normally "a").
|
leo_sobral@2
|
4045 |
libext="$libext"
|
leo_sobral@2
|
4046 |
|
leo_sobral@2
|
4047 |
# Shared library suffix (normally ".so").
|
leo_sobral@2
|
4048 |
shrext_cmds='$shrext_cmds'
|
leo_sobral@2
|
4049 |
|
leo_sobral@2
|
4050 |
# Executable file suffix (normally "").
|
leo_sobral@2
|
4051 |
exeext="$exeext"
|
leo_sobral@2
|
4052 |
|
leo_sobral@2
|
4053 |
# Additional compiler flags for building library objects.
|
leo_sobral@2
|
4054 |
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
leo_sobral@2
|
4055 |
pic_mode=$pic_mode
|
leo_sobral@2
|
4056 |
|
leo_sobral@2
|
4057 |
# What is the maximum length of a command?
|
leo_sobral@2
|
4058 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
leo_sobral@2
|
4059 |
|
leo_sobral@2
|
4060 |
# Does compiler simultaneously support -c and -o options?
|
leo_sobral@2
|
4061 |
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
|
leo_sobral@2
|
4062 |
|
leo_sobral@2
|
4063 |
# Must we lock files when doing compilation ?
|
leo_sobral@2
|
4064 |
need_locks=$lt_need_locks
|
leo_sobral@2
|
4065 |
|
leo_sobral@2
|
4066 |
# Do we need the lib prefix for modules?
|
leo_sobral@2
|
4067 |
need_lib_prefix=$need_lib_prefix
|
leo_sobral@2
|
4068 |
|
leo_sobral@2
|
4069 |
# Do we need a version for libraries?
|
leo_sobral@2
|
4070 |
need_version=$need_version
|
leo_sobral@2
|
4071 |
|
leo_sobral@2
|
4072 |
# Whether dlopen is supported.
|
leo_sobral@2
|
4073 |
dlopen_support=$enable_dlopen
|
leo_sobral@2
|
4074 |
|
leo_sobral@2
|
4075 |
# Whether dlopen of programs is supported.
|
leo_sobral@2
|
4076 |
dlopen_self=$enable_dlopen_self
|
leo_sobral@2
|
4077 |
|
leo_sobral@2
|
4078 |
# Whether dlopen of statically linked programs is supported.
|
leo_sobral@2
|
4079 |
dlopen_self_static=$enable_dlopen_self_static
|
leo_sobral@2
|
4080 |
|
leo_sobral@2
|
4081 |
# Compiler flag to prevent dynamic linking.
|
leo_sobral@2
|
4082 |
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
|
leo_sobral@2
|
4083 |
|
leo_sobral@2
|
4084 |
# Compiler flag to turn off builtin functions.
|
leo_sobral@2
|
4085 |
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
|
leo_sobral@2
|
4086 |
|
leo_sobral@2
|
4087 |
# Compiler flag to allow reflexive dlopens.
|
leo_sobral@2
|
4088 |
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
|
leo_sobral@2
|
4089 |
|
leo_sobral@2
|
4090 |
# Compiler flag to generate shared objects directly from archives.
|
leo_sobral@2
|
4091 |
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
|
leo_sobral@2
|
4092 |
|
leo_sobral@2
|
4093 |
# Compiler flag to generate thread-safe objects.
|
leo_sobral@2
|
4094 |
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
|
leo_sobral@2
|
4095 |
|
leo_sobral@2
|
4096 |
# Library versioning type.
|
leo_sobral@2
|
4097 |
version_type=$version_type
|
leo_sobral@2
|
4098 |
|
leo_sobral@2
|
4099 |
# Format of library name prefix.
|
leo_sobral@2
|
4100 |
libname_spec=$lt_libname_spec
|
leo_sobral@2
|
4101 |
|
leo_sobral@2
|
4102 |
# List of archive names. First name is the real one, the rest are links.
|
leo_sobral@2
|
4103 |
# The last name is the one that the linker finds with -lNAME.
|
leo_sobral@2
|
4104 |
library_names_spec=$lt_library_names_spec
|
leo_sobral@2
|
4105 |
|
leo_sobral@2
|
4106 |
# The coded name of the library, if different from the real name.
|
leo_sobral@2
|
4107 |
soname_spec=$lt_soname_spec
|
leo_sobral@2
|
4108 |
|
leo_sobral@2
|
4109 |
# Commands used to build and install an old-style archive.
|
leo_sobral@2
|
4110 |
RANLIB=$lt_RANLIB
|
leo_sobral@2
|
4111 |
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
|
leo_sobral@2
|
4112 |
old_postinstall_cmds=$lt_old_postinstall_cmds
|
leo_sobral@2
|
4113 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
leo_sobral@2
|
4114 |
|
leo_sobral@2
|
4115 |
# Create an old-style archive from a shared archive.
|
leo_sobral@2
|
4116 |
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
|
leo_sobral@2
|
4117 |
|
leo_sobral@2
|
4118 |
# Create a temporary old-style archive to link instead of a shared archive.
|
leo_sobral@2
|
4119 |
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
|
leo_sobral@2
|
4120 |
|
leo_sobral@2
|
4121 |
# Commands used to build and install a shared archive.
|
leo_sobral@2
|
4122 |
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
|
leo_sobral@2
|
4123 |
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
|
leo_sobral@2
|
4124 |
postinstall_cmds=$lt_postinstall_cmds
|
leo_sobral@2
|
4125 |
postuninstall_cmds=$lt_postuninstall_cmds
|
leo_sobral@2
|
4126 |
|
leo_sobral@2
|
4127 |
# Commands used to build a loadable module (assumed same as above if empty)
|
leo_sobral@2
|
4128 |
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
|
leo_sobral@2
|
4129 |
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
|
leo_sobral@2
|
4130 |
|
leo_sobral@2
|
4131 |
# Commands to strip libraries.
|
leo_sobral@2
|
4132 |
old_striplib=$lt_old_striplib
|
leo_sobral@2
|
4133 |
striplib=$lt_striplib
|
leo_sobral@2
|
4134 |
|
leo_sobral@2
|
4135 |
# Dependencies to place before the objects being linked to create a
|
leo_sobral@2
|
4136 |
# shared library.
|
leo_sobral@2
|
4137 |
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
|
leo_sobral@2
|
4138 |
|
leo_sobral@2
|
4139 |
# Dependencies to place after the objects being linked to create a
|
leo_sobral@2
|
4140 |
# shared library.
|
leo_sobral@2
|
4141 |
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
|
leo_sobral@2
|
4142 |
|
leo_sobral@2
|
4143 |
# Dependencies to place before the objects being linked to create a
|
leo_sobral@2
|
4144 |
# shared library.
|
leo_sobral@2
|
4145 |
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
|
leo_sobral@2
|
4146 |
|
leo_sobral@2
|
4147 |
# Dependencies to place after the objects being linked to create a
|
leo_sobral@2
|
4148 |
# shared library.
|
leo_sobral@2
|
4149 |
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
|
leo_sobral@2
|
4150 |
|
leo_sobral@2
|
4151 |
# The library search path used internally by the compiler when linking
|
leo_sobral@2
|
4152 |
# a shared library.
|
leo_sobral@2
|
4153 |
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
|
leo_sobral@2
|
4154 |
|
leo_sobral@2
|
4155 |
# Method to check whether dependent libraries are shared objects.
|
leo_sobral@2
|
4156 |
deplibs_check_method=$lt_deplibs_check_method
|
leo_sobral@2
|
4157 |
|
leo_sobral@2
|
4158 |
# Command to use when deplibs_check_method == file_magic.
|
leo_sobral@2
|
4159 |
file_magic_cmd=$lt_file_magic_cmd
|
leo_sobral@2
|
4160 |
|
leo_sobral@2
|
4161 |
# Flag that allows shared libraries with undefined symbols to be built.
|
leo_sobral@2
|
4162 |
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
leo_sobral@2
|
4163 |
|
leo_sobral@2
|
4164 |
# Flag that forces no undefined symbols.
|
leo_sobral@2
|
4165 |
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
|
leo_sobral@2
|
4166 |
|
leo_sobral@2
|
4167 |
# Commands used to finish a libtool library installation in a directory.
|
leo_sobral@2
|
4168 |
finish_cmds=$lt_finish_cmds
|
leo_sobral@2
|
4169 |
|
leo_sobral@2
|
4170 |
# Same as above, but a single script fragment to be evaled but not shown.
|
leo_sobral@2
|
4171 |
finish_eval=$lt_finish_eval
|
leo_sobral@2
|
4172 |
|
leo_sobral@2
|
4173 |
# Take the output of nm and produce a listing of raw symbols and C names.
|
leo_sobral@2
|
4174 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
leo_sobral@2
|
4175 |
|
leo_sobral@2
|
4176 |
# Transform the output of nm in a proper C declaration
|
leo_sobral@2
|
4177 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
leo_sobral@2
|
4178 |
|
leo_sobral@2
|
4179 |
# Transform the output of nm in a C name address pair
|
leo_sobral@2
|
4180 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
leo_sobral@2
|
4181 |
|
leo_sobral@2
|
4182 |
# This is the shared library runtime path variable.
|
leo_sobral@2
|
4183 |
runpath_var=$runpath_var
|
leo_sobral@2
|
4184 |
|
leo_sobral@2
|
4185 |
# This is the shared library path variable.
|
leo_sobral@2
|
4186 |
shlibpath_var=$shlibpath_var
|
leo_sobral@2
|
4187 |
|
leo_sobral@2
|
4188 |
# Is shlibpath searched before the hard-coded library search path?
|
leo_sobral@2
|
4189 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
leo_sobral@2
|
4190 |
|
leo_sobral@2
|
4191 |
# How to hardcode a shared library path into an executable.
|
leo_sobral@2
|
4192 |
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
|
leo_sobral@2
|
4193 |
|
leo_sobral@2
|
4194 |
# Whether we should hardcode library paths into libraries.
|
leo_sobral@2
|
4195 |
hardcode_into_libs=$hardcode_into_libs
|
leo_sobral@2
|
4196 |
|
leo_sobral@2
|
4197 |
# Flag to hardcode \$libdir into a binary during linking.
|
leo_sobral@2
|
4198 |
# This must work even if \$libdir does not exist.
|
leo_sobral@2
|
4199 |
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
|
leo_sobral@2
|
4200 |
|
leo_sobral@2
|
4201 |
# If ld is used when linking, flag to hardcode \$libdir into
|
leo_sobral@2
|
4202 |
# a binary during linking. This must work even if \$libdir does
|
leo_sobral@2
|
4203 |
# not exist.
|
leo_sobral@2
|
4204 |
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
|
leo_sobral@2
|
4205 |
|
leo_sobral@2
|
4206 |
# Whether we need a single -rpath flag with a separated argument.
|
leo_sobral@2
|
4207 |
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
|
leo_sobral@2
|
4208 |
|
leo_sobral@2
|
4209 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
leo_sobral@2
|
4210 |
# resulting binary.
|
leo_sobral@2
|
4211 |
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
|
leo_sobral@2
|
4212 |
|
leo_sobral@2
|
4213 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
leo_sobral@2
|
4214 |
# resulting binary.
|
leo_sobral@2
|
4215 |
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
|
leo_sobral@2
|
4216 |
|
leo_sobral@2
|
4217 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
leo_sobral@2
|
4218 |
# the resulting binary.
|
leo_sobral@2
|
4219 |
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
|
leo_sobral@2
|
4220 |
|
leo_sobral@2
|
4221 |
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
leo_sobral@2
|
4222 |
# and all subsequent libraries and executables linked against it.
|
leo_sobral@2
|
4223 |
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
|
leo_sobral@2
|
4224 |
|
leo_sobral@2
|
4225 |
# Variables whose values should be saved in libtool wrapper scripts and
|
leo_sobral@2
|
4226 |
# restored at relink time.
|
leo_sobral@2
|
4227 |
variables_saved_for_relink="$variables_saved_for_relink"
|
leo_sobral@2
|
4228 |
|
leo_sobral@2
|
4229 |
# Whether libtool must link a program against all its dependency libraries.
|
leo_sobral@2
|
4230 |
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
|
leo_sobral@2
|
4231 |
|
leo_sobral@2
|
4232 |
# Compile-time system search path for libraries
|
leo_sobral@2
|
4233 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
leo_sobral@2
|
4234 |
|
leo_sobral@2
|
4235 |
# Run-time system search path for libraries
|
leo_sobral@2
|
4236 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
leo_sobral@2
|
4237 |
|
leo_sobral@2
|
4238 |
# Fix the shell variable \$srcfile for the compiler.
|
leo_sobral@2
|
4239 |
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
|
leo_sobral@2
|
4240 |
|
leo_sobral@2
|
4241 |
# Set to yes if exported symbols are required.
|
leo_sobral@2
|
4242 |
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
|
leo_sobral@2
|
4243 |
|
leo_sobral@2
|
4244 |
# The commands to list exported symbols.
|
leo_sobral@2
|
4245 |
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
|
leo_sobral@2
|
4246 |
|
leo_sobral@2
|
4247 |
# The commands to extract the exported symbol list from a shared archive.
|
leo_sobral@2
|
4248 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
leo_sobral@2
|
4249 |
|
leo_sobral@2
|
4250 |
# Symbols that should not be listed in the preloaded symbols.
|
leo_sobral@2
|
4251 |
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
|
leo_sobral@2
|
4252 |
|
leo_sobral@2
|
4253 |
# Symbols that must always be exported.
|
leo_sobral@2
|
4254 |
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
|
leo_sobral@2
|
4255 |
|
leo_sobral@2
|
4256 |
ifelse([$1],[],
|
leo_sobral@2
|
4257 |
[# ### END LIBTOOL CONFIG],
|
leo_sobral@2
|
4258 |
[# ### END LIBTOOL TAG CONFIG: $tagname])
|
leo_sobral@2
|
4259 |
|
leo_sobral@2
|
4260 |
__EOF__
|
leo_sobral@2
|
4261 |
|
leo_sobral@2
|
4262 |
ifelse([$1],[], [
|
leo_sobral@2
|
4263 |
case $host_os in
|
leo_sobral@2
|
4264 |
aix3*)
|
leo_sobral@2
|
4265 |
cat <<\EOF >> "$cfgfile"
|
leo_sobral@2
|
4266 |
|
leo_sobral@2
|
4267 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
leo_sobral@2
|
4268 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
leo_sobral@2
|
4269 |
# vanish in a puff of smoke.
|
leo_sobral@2
|
4270 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
leo_sobral@2
|
4271 |
COLLECT_NAMES=
|
leo_sobral@2
|
4272 |
export COLLECT_NAMES
|
leo_sobral@2
|
4273 |
fi
|
leo_sobral@2
|
4274 |
EOF
|
leo_sobral@2
|
4275 |
;;
|
leo_sobral@2
|
4276 |
esac
|
leo_sobral@2
|
4277 |
|
leo_sobral@2
|
4278 |
# We use sed instead of cat because bash on DJGPP gets confused if
|
leo_sobral@2
|
4279 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
leo_sobral@2
|
4280 |
# text mode, it properly converts lines to CR/LF. This bash problem
|
leo_sobral@2
|
4281 |
# is reportedly fixed, but why not run on old versions too?
|
leo_sobral@2
|
4282 |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
leo_sobral@2
|
4283 |
|
leo_sobral@2
|
4284 |
mv -f "$cfgfile" "$ofile" || \
|
leo_sobral@2
|
4285 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
leo_sobral@2
|
4286 |
chmod +x "$ofile"
|
leo_sobral@2
|
4287 |
])
|
leo_sobral@2
|
4288 |
else
|
leo_sobral@2
|
4289 |
# If there is no Makefile yet, we rely on a make rule to execute
|
leo_sobral@2
|
4290 |
# `config.status --recheck' to rerun these tests and create the
|
leo_sobral@2
|
4291 |
# libtool script then.
|
leo_sobral@2
|
4292 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
leo_sobral@2
|
4293 |
if test -f "$ltmain_in"; then
|
leo_sobral@2
|
4294 |
test -f Makefile && make "$ltmain"
|
leo_sobral@2
|
4295 |
fi
|
leo_sobral@2
|
4296 |
fi
|
leo_sobral@2
|
4297 |
])# AC_LIBTOOL_CONFIG
|
leo_sobral@2
|
4298 |
|
leo_sobral@2
|
4299 |
|
leo_sobral@2
|
4300 |
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
|
leo_sobral@2
|
4301 |
# -------------------------------------------
|
leo_sobral@2
|
4302 |
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
|
leo_sobral@2
|
4303 |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
leo_sobral@2
|
4304 |
|
leo_sobral@2
|
4305 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
leo_sobral@2
|
4306 |
|
leo_sobral@2
|
4307 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
4308 |
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
leo_sobral@2
|
4309 |
|
leo_sobral@2
|
4310 |
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
leo_sobral@2
|
4311 |
lt_cv_prog_compiler_rtti_exceptions,
|
leo_sobral@2
|
4312 |
[-fno-rtti -fno-exceptions], [],
|
leo_sobral@2
|
4313 |
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
leo_sobral@2
|
4314 |
fi
|
leo_sobral@2
|
4315 |
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
|
leo_sobral@2
|
4316 |
|
leo_sobral@2
|
4317 |
|
leo_sobral@2
|
4318 |
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
leo_sobral@2
|
4319 |
# ---------------------------------
|
leo_sobral@2
|
4320 |
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
|
leo_sobral@2
|
4321 |
[AC_REQUIRE([AC_CANONICAL_HOST])
|
leo_sobral@2
|
4322 |
AC_REQUIRE([AC_PROG_NM])
|
leo_sobral@2
|
4323 |
AC_REQUIRE([AC_OBJEXT])
|
leo_sobral@2
|
4324 |
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
leo_sobral@2
|
4325 |
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
leo_sobral@2
|
4326 |
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
leo_sobral@2
|
4327 |
[
|
leo_sobral@2
|
4328 |
# These are sane defaults that work on at least a few old systems.
|
leo_sobral@2
|
4329 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
leo_sobral@2
|
4330 |
|
leo_sobral@2
|
4331 |
# Character class describing NM global symbol codes.
|
leo_sobral@2
|
4332 |
symcode='[[BCDEGRST]]'
|
leo_sobral@2
|
4333 |
|
leo_sobral@2
|
4334 |
# Regexp to match symbols that can be accessed directly from C.
|
leo_sobral@2
|
4335 |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
leo_sobral@2
|
4336 |
|
leo_sobral@2
|
4337 |
# Transform the above into a raw symbol and a C symbol.
|
leo_sobral@2
|
4338 |
symxfrm='\1 \2\3 \3'
|
leo_sobral@2
|
4339 |
|
leo_sobral@2
|
4340 |
# Transform an extracted symbol line into a proper C declaration
|
leo_sobral@2
|
4341 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
leo_sobral@2
|
4342 |
|
leo_sobral@2
|
4343 |
# Transform an extracted symbol line into symbol name and symbol address
|
leo_sobral@2
|
4344 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
leo_sobral@2
|
4345 |
|
leo_sobral@2
|
4346 |
# Define system-specific variables.
|
leo_sobral@2
|
4347 |
case $host_os in
|
leo_sobral@2
|
4348 |
aix*)
|
leo_sobral@2
|
4349 |
symcode='[[BCDT]]'
|
leo_sobral@2
|
4350 |
;;
|
leo_sobral@2
|
4351 |
cygwin* | mingw* | pw32*)
|
leo_sobral@2
|
4352 |
symcode='[[ABCDGISTW]]'
|
leo_sobral@2
|
4353 |
;;
|
leo_sobral@2
|
4354 |
hpux*) # Its linker distinguishes data from code symbols
|
leo_sobral@2
|
4355 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
4356 |
symcode='[[ABCDEGRST]]'
|
leo_sobral@2
|
4357 |
fi
|
leo_sobral@2
|
4358 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
leo_sobral@2
|
4359 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
leo_sobral@2
|
4360 |
;;
|
leo_sobral@2
|
4361 |
irix* | nonstopux*)
|
leo_sobral@2
|
4362 |
symcode='[[BCDEGRST]]'
|
leo_sobral@2
|
4363 |
;;
|
leo_sobral@2
|
4364 |
osf*)
|
leo_sobral@2
|
4365 |
symcode='[[BCDEGQRST]]'
|
leo_sobral@2
|
4366 |
;;
|
leo_sobral@2
|
4367 |
solaris* | sysv5*)
|
leo_sobral@2
|
4368 |
symcode='[[BDRT]]'
|
leo_sobral@2
|
4369 |
;;
|
leo_sobral@2
|
4370 |
sysv4)
|
leo_sobral@2
|
4371 |
symcode='[[DFNSTU]]'
|
leo_sobral@2
|
4372 |
;;
|
leo_sobral@2
|
4373 |
esac
|
leo_sobral@2
|
4374 |
|
leo_sobral@2
|
4375 |
# Handle CRLF in mingw tool chain
|
leo_sobral@2
|
4376 |
opt_cr=
|
leo_sobral@2
|
4377 |
case $build_os in
|
leo_sobral@2
|
4378 |
mingw*)
|
leo_sobral@2
|
4379 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
leo_sobral@2
|
4380 |
;;
|
leo_sobral@2
|
4381 |
esac
|
leo_sobral@2
|
4382 |
|
leo_sobral@2
|
4383 |
# If we're using GNU nm, then use its standard symbol codes.
|
leo_sobral@2
|
4384 |
case `$NM -V 2>&1` in
|
leo_sobral@2
|
4385 |
*GNU* | *'with BFD'*)
|
leo_sobral@2
|
4386 |
symcode='[[ABCDGIRSTW]]' ;;
|
leo_sobral@2
|
4387 |
esac
|
leo_sobral@2
|
4388 |
|
leo_sobral@2
|
4389 |
# Try without a prefix undercore, then with it.
|
leo_sobral@2
|
4390 |
for ac_symprfx in "" "_"; do
|
leo_sobral@2
|
4391 |
|
leo_sobral@2
|
4392 |
# Write the raw and C identifiers.
|
leo_sobral@2
|
4393 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
|
leo_sobral@2
|
4394 |
|
leo_sobral@2
|
4395 |
# Check to see that the pipe works correctly.
|
leo_sobral@2
|
4396 |
pipe_works=no
|
leo_sobral@2
|
4397 |
|
leo_sobral@2
|
4398 |
rm -f conftest*
|
leo_sobral@2
|
4399 |
cat > conftest.$ac_ext <<EOF
|
leo_sobral@2
|
4400 |
#ifdef __cplusplus
|
leo_sobral@2
|
4401 |
extern "C" {
|
leo_sobral@2
|
4402 |
#endif
|
leo_sobral@2
|
4403 |
char nm_test_var;
|
leo_sobral@2
|
4404 |
void nm_test_func(){}
|
leo_sobral@2
|
4405 |
#ifdef __cplusplus
|
leo_sobral@2
|
4406 |
}
|
leo_sobral@2
|
4407 |
#endif
|
leo_sobral@2
|
4408 |
int main(){nm_test_var='a';nm_test_func();return(0);}
|
leo_sobral@2
|
4409 |
EOF
|
leo_sobral@2
|
4410 |
|
leo_sobral@2
|
4411 |
if AC_TRY_EVAL(ac_compile); then
|
leo_sobral@2
|
4412 |
# Now try to grab the symbols.
|
leo_sobral@2
|
4413 |
nlist=conftest.nm
|
leo_sobral@2
|
4414 |
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
leo_sobral@2
|
4415 |
# Try sorting and uniquifying the output.
|
leo_sobral@2
|
4416 |
if sort "$nlist" | uniq > "$nlist"T; then
|
leo_sobral@2
|
4417 |
mv -f "$nlist"T "$nlist"
|
leo_sobral@2
|
4418 |
else
|
leo_sobral@2
|
4419 |
rm -f "$nlist"T
|
leo_sobral@2
|
4420 |
fi
|
leo_sobral@2
|
4421 |
|
leo_sobral@2
|
4422 |
# Make sure that we snagged all the symbols we need.
|
leo_sobral@2
|
4423 |
if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
leo_sobral@2
|
4424 |
if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
leo_sobral@2
|
4425 |
cat <<EOF > conftest.$ac_ext
|
leo_sobral@2
|
4426 |
#ifdef __cplusplus
|
leo_sobral@2
|
4427 |
extern "C" {
|
leo_sobral@2
|
4428 |
#endif
|
leo_sobral@2
|
4429 |
|
leo_sobral@2
|
4430 |
EOF
|
leo_sobral@2
|
4431 |
# Now generate the symbol file.
|
leo_sobral@2
|
4432 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
leo_sobral@2
|
4433 |
|
leo_sobral@2
|
4434 |
cat <<EOF >> conftest.$ac_ext
|
leo_sobral@2
|
4435 |
#if defined (__STDC__) && __STDC__
|
leo_sobral@2
|
4436 |
# define lt_ptr_t void *
|
leo_sobral@2
|
4437 |
#else
|
leo_sobral@2
|
4438 |
# define lt_ptr_t char *
|
leo_sobral@2
|
4439 |
# define const
|
leo_sobral@2
|
4440 |
#endif
|
leo_sobral@2
|
4441 |
|
leo_sobral@2
|
4442 |
/* The mapping between symbol names and symbols. */
|
leo_sobral@2
|
4443 |
const struct {
|
leo_sobral@2
|
4444 |
const char *name;
|
leo_sobral@2
|
4445 |
lt_ptr_t address;
|
leo_sobral@2
|
4446 |
}
|
leo_sobral@2
|
4447 |
lt_preloaded_symbols[[]] =
|
leo_sobral@2
|
4448 |
{
|
leo_sobral@2
|
4449 |
EOF
|
leo_sobral@2
|
4450 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
leo_sobral@2
|
4451 |
cat <<\EOF >> conftest.$ac_ext
|
leo_sobral@2
|
4452 |
{0, (lt_ptr_t) 0}
|
leo_sobral@2
|
4453 |
};
|
leo_sobral@2
|
4454 |
|
leo_sobral@2
|
4455 |
#ifdef __cplusplus
|
leo_sobral@2
|
4456 |
}
|
leo_sobral@2
|
4457 |
#endif
|
leo_sobral@2
|
4458 |
EOF
|
leo_sobral@2
|
4459 |
# Now try linking the two files.
|
leo_sobral@2
|
4460 |
mv conftest.$ac_objext conftstm.$ac_objext
|
leo_sobral@2
|
4461 |
lt_save_LIBS="$LIBS"
|
leo_sobral@2
|
4462 |
lt_save_CFLAGS="$CFLAGS"
|
leo_sobral@2
|
4463 |
LIBS="conftstm.$ac_objext"
|
leo_sobral@2
|
4464 |
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
leo_sobral@2
|
4465 |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
leo_sobral@2
|
4466 |
pipe_works=yes
|
leo_sobral@2
|
4467 |
fi
|
leo_sobral@2
|
4468 |
LIBS="$lt_save_LIBS"
|
leo_sobral@2
|
4469 |
CFLAGS="$lt_save_CFLAGS"
|
leo_sobral@2
|
4470 |
else
|
leo_sobral@2
|
4471 |
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
4472 |
fi
|
leo_sobral@2
|
4473 |
else
|
leo_sobral@2
|
4474 |
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
4475 |
fi
|
leo_sobral@2
|
4476 |
else
|
leo_sobral@2
|
4477 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
4478 |
fi
|
leo_sobral@2
|
4479 |
else
|
leo_sobral@2
|
4480 |
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
4481 |
cat conftest.$ac_ext >&5
|
leo_sobral@2
|
4482 |
fi
|
leo_sobral@2
|
4483 |
rm -f conftest* conftst*
|
leo_sobral@2
|
4484 |
|
leo_sobral@2
|
4485 |
# Do not use the global_symbol_pipe unless it works.
|
leo_sobral@2
|
4486 |
if test "$pipe_works" = yes; then
|
leo_sobral@2
|
4487 |
break
|
leo_sobral@2
|
4488 |
else
|
leo_sobral@2
|
4489 |
lt_cv_sys_global_symbol_pipe=
|
leo_sobral@2
|
4490 |
fi
|
leo_sobral@2
|
4491 |
done
|
leo_sobral@2
|
4492 |
])
|
leo_sobral@2
|
4493 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
leo_sobral@2
|
4494 |
lt_cv_sys_global_symbol_to_cdecl=
|
leo_sobral@2
|
4495 |
fi
|
leo_sobral@2
|
4496 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
leo_sobral@2
|
4497 |
AC_MSG_RESULT(failed)
|
leo_sobral@2
|
4498 |
else
|
leo_sobral@2
|
4499 |
AC_MSG_RESULT(ok)
|
leo_sobral@2
|
4500 |
fi
|
leo_sobral@2
|
4501 |
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
leo_sobral@2
|
4502 |
|
leo_sobral@2
|
4503 |
|
leo_sobral@2
|
4504 |
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
|
leo_sobral@2
|
4505 |
# ---------------------------------------
|
leo_sobral@2
|
4506 |
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
|
leo_sobral@2
|
4507 |
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
|
leo_sobral@2
|
4508 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
leo_sobral@2
|
4509 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
|
leo_sobral@2
|
4510 |
|
leo_sobral@2
|
4511 |
AC_MSG_CHECKING([for $compiler option to produce PIC])
|
leo_sobral@2
|
4512 |
ifelse([$1],[CXX],[
|
leo_sobral@2
|
4513 |
# C++ specific cases for pic, static, wl, etc.
|
leo_sobral@2
|
4514 |
if test "$GXX" = yes; then
|
leo_sobral@2
|
4515 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4516 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
leo_sobral@2
|
4517 |
|
leo_sobral@2
|
4518 |
case $host_os in
|
leo_sobral@2
|
4519 |
aix*)
|
leo_sobral@2
|
4520 |
# All AIX code is PIC.
|
leo_sobral@2
|
4521 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
4522 |
# AIX 5 now supports IA64 processor
|
leo_sobral@2
|
4523 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4524 |
fi
|
leo_sobral@2
|
4525 |
;;
|
leo_sobral@2
|
4526 |
amigaos*)
|
leo_sobral@2
|
4527 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
leo_sobral@2
|
4528 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
leo_sobral@2
|
4529 |
# like `-m68040'.
|
leo_sobral@2
|
4530 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
leo_sobral@2
|
4531 |
;;
|
leo_sobral@2
|
4532 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
leo_sobral@2
|
4533 |
# PIC is the default for these OSes.
|
leo_sobral@2
|
4534 |
;;
|
leo_sobral@2
|
4535 |
mingw* | os2* | pw32*)
|
leo_sobral@2
|
4536 |
# This hack is so that the source file can tell whether it is being
|
leo_sobral@2
|
4537 |
# built for inclusion in a dll (and should export symbols for example).
|
leo_sobral@2
|
4538 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
leo_sobral@2
|
4539 |
;;
|
leo_sobral@2
|
4540 |
darwin* | rhapsody*)
|
leo_sobral@2
|
4541 |
# PIC is the default on this platform
|
leo_sobral@2
|
4542 |
# Common symbols not allowed in MH_DYLIB files
|
leo_sobral@2
|
4543 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
leo_sobral@2
|
4544 |
;;
|
leo_sobral@2
|
4545 |
*djgpp*)
|
leo_sobral@2
|
4546 |
# DJGPP does not support shared libraries at all
|
leo_sobral@2
|
4547 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
leo_sobral@2
|
4548 |
;;
|
leo_sobral@2
|
4549 |
sysv4*MP*)
|
leo_sobral@2
|
4550 |
if test -d /usr/nec; then
|
leo_sobral@2
|
4551 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
leo_sobral@2
|
4552 |
fi
|
leo_sobral@2
|
4553 |
;;
|
leo_sobral@2
|
4554 |
hpux*)
|
leo_sobral@2
|
4555 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
leo_sobral@2
|
4556 |
# not for PA HP-UX.
|
leo_sobral@2
|
4557 |
case "$host_cpu" in
|
leo_sobral@2
|
4558 |
hppa*64*|ia64*)
|
leo_sobral@2
|
4559 |
;;
|
leo_sobral@2
|
4560 |
*)
|
leo_sobral@2
|
4561 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
leo_sobral@2
|
4562 |
;;
|
leo_sobral@2
|
4563 |
esac
|
leo_sobral@2
|
4564 |
;;
|
leo_sobral@2
|
4565 |
*)
|
leo_sobral@2
|
4566 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
leo_sobral@2
|
4567 |
;;
|
leo_sobral@2
|
4568 |
esac
|
leo_sobral@2
|
4569 |
else
|
leo_sobral@2
|
4570 |
case $host_os in
|
leo_sobral@2
|
4571 |
aix4* | aix5*)
|
leo_sobral@2
|
4572 |
# All AIX code is PIC.
|
leo_sobral@2
|
4573 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
4574 |
# AIX 5 now supports IA64 processor
|
leo_sobral@2
|
4575 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4576 |
else
|
leo_sobral@2
|
4577 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
leo_sobral@2
|
4578 |
fi
|
leo_sobral@2
|
4579 |
;;
|
leo_sobral@2
|
4580 |
chorus*)
|
leo_sobral@2
|
4581 |
case $cc_basename in
|
leo_sobral@2
|
4582 |
cxch68)
|
leo_sobral@2
|
4583 |
# Green Hills C++ Compiler
|
leo_sobral@2
|
4584 |
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
|
leo_sobral@2
|
4585 |
;;
|
leo_sobral@2
|
4586 |
esac
|
leo_sobral@2
|
4587 |
;;
|
leo_sobral@2
|
4588 |
dgux*)
|
leo_sobral@2
|
4589 |
case $cc_basename in
|
leo_sobral@2
|
4590 |
ec++)
|
leo_sobral@2
|
4591 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4592 |
;;
|
leo_sobral@2
|
4593 |
ghcx)
|
leo_sobral@2
|
4594 |
# Green Hills C++ Compiler
|
leo_sobral@2
|
4595 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
leo_sobral@2
|
4596 |
;;
|
leo_sobral@2
|
4597 |
*)
|
leo_sobral@2
|
4598 |
;;
|
leo_sobral@2
|
4599 |
esac
|
leo_sobral@2
|
4600 |
;;
|
leo_sobral@2
|
4601 |
freebsd* | kfreebsd*-gnu)
|
leo_sobral@2
|
4602 |
# FreeBSD uses GNU C++
|
leo_sobral@2
|
4603 |
;;
|
leo_sobral@2
|
4604 |
hpux9* | hpux10* | hpux11*)
|
leo_sobral@2
|
4605 |
case $cc_basename in
|
leo_sobral@2
|
4606 |
CC)
|
leo_sobral@2
|
4607 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4608 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
leo_sobral@2
|
4609 |
if test "$host_cpu" != ia64; then
|
leo_sobral@2
|
4610 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
leo_sobral@2
|
4611 |
fi
|
leo_sobral@2
|
4612 |
;;
|
leo_sobral@2
|
4613 |
aCC)
|
leo_sobral@2
|
4614 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4615 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
leo_sobral@2
|
4616 |
case "$host_cpu" in
|
leo_sobral@2
|
4617 |
hppa*64*|ia64*)
|
leo_sobral@2
|
4618 |
# +Z the default
|
leo_sobral@2
|
4619 |
;;
|
leo_sobral@2
|
4620 |
*)
|
leo_sobral@2
|
4621 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
leo_sobral@2
|
4622 |
;;
|
leo_sobral@2
|
4623 |
esac
|
leo_sobral@2
|
4624 |
;;
|
leo_sobral@2
|
4625 |
*)
|
leo_sobral@2
|
4626 |
;;
|
leo_sobral@2
|
4627 |
esac
|
leo_sobral@2
|
4628 |
;;
|
leo_sobral@2
|
4629 |
irix5* | irix6* | nonstopux*)
|
leo_sobral@2
|
4630 |
case $cc_basename in
|
leo_sobral@2
|
4631 |
CC)
|
leo_sobral@2
|
4632 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4633 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
leo_sobral@2
|
4634 |
# CC pic flag -KPIC is the default.
|
leo_sobral@2
|
4635 |
;;
|
leo_sobral@2
|
4636 |
*)
|
leo_sobral@2
|
4637 |
;;
|
leo_sobral@2
|
4638 |
esac
|
leo_sobral@2
|
4639 |
;;
|
leo_sobral@2
|
4640 |
linux*)
|
leo_sobral@2
|
4641 |
case $cc_basename in
|
leo_sobral@2
|
4642 |
KCC)
|
leo_sobral@2
|
4643 |
# KAI C++ Compiler
|
leo_sobral@2
|
4644 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
leo_sobral@2
|
4645 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
leo_sobral@2
|
4646 |
;;
|
leo_sobral@2
|
4647 |
icpc)
|
leo_sobral@2
|
4648 |
# Intel C++
|
leo_sobral@2
|
4649 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4650 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4651 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
leo_sobral@2
|
4652 |
;;
|
leo_sobral@2
|
4653 |
cxx)
|
leo_sobral@2
|
4654 |
# Compaq C++
|
leo_sobral@2
|
4655 |
# Make sure the PIC flag is empty. It appears that all Alpha
|
leo_sobral@2
|
4656 |
# Linux and Compaq Tru64 Unix objects are PIC.
|
leo_sobral@2
|
4657 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
leo_sobral@2
|
4658 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
leo_sobral@2
|
4659 |
;;
|
leo_sobral@2
|
4660 |
*)
|
leo_sobral@2
|
4661 |
;;
|
leo_sobral@2
|
4662 |
esac
|
leo_sobral@2
|
4663 |
;;
|
leo_sobral@2
|
4664 |
lynxos*)
|
leo_sobral@2
|
4665 |
;;
|
leo_sobral@2
|
4666 |
m88k*)
|
leo_sobral@2
|
4667 |
;;
|
leo_sobral@2
|
4668 |
mvs*)
|
leo_sobral@2
|
4669 |
case $cc_basename in
|
leo_sobral@2
|
4670 |
cxx)
|
leo_sobral@2
|
4671 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
leo_sobral@2
|
4672 |
;;
|
leo_sobral@2
|
4673 |
*)
|
leo_sobral@2
|
4674 |
;;
|
leo_sobral@2
|
4675 |
esac
|
leo_sobral@2
|
4676 |
;;
|
leo_sobral@2
|
4677 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
|
leo_sobral@2
|
4678 |
;;
|
leo_sobral@2
|
4679 |
osf3* | osf4* | osf5*)
|
leo_sobral@2
|
4680 |
case $cc_basename in
|
leo_sobral@2
|
4681 |
KCC)
|
leo_sobral@2
|
4682 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
leo_sobral@2
|
4683 |
;;
|
leo_sobral@2
|
4684 |
RCC)
|
leo_sobral@2
|
4685 |
# Rational C++ 2.4.1
|
leo_sobral@2
|
4686 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
leo_sobral@2
|
4687 |
;;
|
leo_sobral@2
|
4688 |
cxx)
|
leo_sobral@2
|
4689 |
# Digital/Compaq C++
|
leo_sobral@2
|
4690 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4691 |
# Make sure the PIC flag is empty. It appears that all Alpha
|
leo_sobral@2
|
4692 |
# Linux and Compaq Tru64 Unix objects are PIC.
|
leo_sobral@2
|
4693 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
leo_sobral@2
|
4694 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
leo_sobral@2
|
4695 |
;;
|
leo_sobral@2
|
4696 |
*)
|
leo_sobral@2
|
4697 |
;;
|
leo_sobral@2
|
4698 |
esac
|
leo_sobral@2
|
4699 |
;;
|
leo_sobral@2
|
4700 |
psos*)
|
leo_sobral@2
|
4701 |
;;
|
leo_sobral@2
|
4702 |
sco*)
|
leo_sobral@2
|
4703 |
case $cc_basename in
|
leo_sobral@2
|
4704 |
CC)
|
leo_sobral@2
|
4705 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
leo_sobral@2
|
4706 |
;;
|
leo_sobral@2
|
4707 |
*)
|
leo_sobral@2
|
4708 |
;;
|
leo_sobral@2
|
4709 |
esac
|
leo_sobral@2
|
4710 |
;;
|
leo_sobral@2
|
4711 |
solaris*)
|
leo_sobral@2
|
4712 |
case $cc_basename in
|
leo_sobral@2
|
4713 |
CC)
|
leo_sobral@2
|
4714 |
# Sun C++ 4.2, 5.x and Centerline C++
|
leo_sobral@2
|
4715 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4716 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4717 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
leo_sobral@2
|
4718 |
;;
|
leo_sobral@2
|
4719 |
gcx)
|
leo_sobral@2
|
4720 |
# Green Hills C++ Compiler
|
leo_sobral@2
|
4721 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
leo_sobral@2
|
4722 |
;;
|
leo_sobral@2
|
4723 |
*)
|
leo_sobral@2
|
4724 |
;;
|
leo_sobral@2
|
4725 |
esac
|
leo_sobral@2
|
4726 |
;;
|
leo_sobral@2
|
4727 |
sunos4*)
|
leo_sobral@2
|
4728 |
case $cc_basename in
|
leo_sobral@2
|
4729 |
CC)
|
leo_sobral@2
|
4730 |
# Sun C++ 4.x
|
leo_sobral@2
|
4731 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
leo_sobral@2
|
4732 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4733 |
;;
|
leo_sobral@2
|
4734 |
lcc)
|
leo_sobral@2
|
4735 |
# Lucid
|
leo_sobral@2
|
4736 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
leo_sobral@2
|
4737 |
;;
|
leo_sobral@2
|
4738 |
*)
|
leo_sobral@2
|
4739 |
;;
|
leo_sobral@2
|
4740 |
esac
|
leo_sobral@2
|
4741 |
;;
|
leo_sobral@2
|
4742 |
tandem*)
|
leo_sobral@2
|
4743 |
case $cc_basename in
|
leo_sobral@2
|
4744 |
NCC)
|
leo_sobral@2
|
4745 |
# NonStop-UX NCC 3.20
|
leo_sobral@2
|
4746 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4747 |
;;
|
leo_sobral@2
|
4748 |
*)
|
leo_sobral@2
|
4749 |
;;
|
leo_sobral@2
|
4750 |
esac
|
leo_sobral@2
|
4751 |
;;
|
leo_sobral@2
|
4752 |
unixware*)
|
leo_sobral@2
|
4753 |
;;
|
leo_sobral@2
|
4754 |
vxworks*)
|
leo_sobral@2
|
4755 |
;;
|
leo_sobral@2
|
4756 |
*)
|
leo_sobral@2
|
4757 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
leo_sobral@2
|
4758 |
;;
|
leo_sobral@2
|
4759 |
esac
|
leo_sobral@2
|
4760 |
fi
|
leo_sobral@2
|
4761 |
],
|
leo_sobral@2
|
4762 |
[
|
leo_sobral@2
|
4763 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
4764 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4765 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
leo_sobral@2
|
4766 |
|
leo_sobral@2
|
4767 |
case $host_os in
|
leo_sobral@2
|
4768 |
aix*)
|
leo_sobral@2
|
4769 |
# All AIX code is PIC.
|
leo_sobral@2
|
4770 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
4771 |
# AIX 5 now supports IA64 processor
|
leo_sobral@2
|
4772 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4773 |
fi
|
leo_sobral@2
|
4774 |
;;
|
leo_sobral@2
|
4775 |
|
leo_sobral@2
|
4776 |
amigaos*)
|
leo_sobral@2
|
4777 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
leo_sobral@2
|
4778 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
leo_sobral@2
|
4779 |
# like `-m68040'.
|
leo_sobral@2
|
4780 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
leo_sobral@2
|
4781 |
;;
|
leo_sobral@2
|
4782 |
|
leo_sobral@2
|
4783 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
leo_sobral@2
|
4784 |
# PIC is the default for these OSes.
|
leo_sobral@2
|
4785 |
;;
|
leo_sobral@2
|
4786 |
|
leo_sobral@2
|
4787 |
mingw* | pw32* | os2*)
|
leo_sobral@2
|
4788 |
# This hack is so that the source file can tell whether it is being
|
leo_sobral@2
|
4789 |
# built for inclusion in a dll (and should export symbols for example).
|
leo_sobral@2
|
4790 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
leo_sobral@2
|
4791 |
;;
|
leo_sobral@2
|
4792 |
|
leo_sobral@2
|
4793 |
darwin* | rhapsody*)
|
leo_sobral@2
|
4794 |
# PIC is the default on this platform
|
leo_sobral@2
|
4795 |
# Common symbols not allowed in MH_DYLIB files
|
leo_sobral@2
|
4796 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
leo_sobral@2
|
4797 |
;;
|
leo_sobral@2
|
4798 |
|
leo_sobral@2
|
4799 |
msdosdjgpp*)
|
leo_sobral@2
|
4800 |
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
leo_sobral@2
|
4801 |
# on systems that don't support them.
|
leo_sobral@2
|
4802 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
leo_sobral@2
|
4803 |
enable_shared=no
|
leo_sobral@2
|
4804 |
;;
|
leo_sobral@2
|
4805 |
|
leo_sobral@2
|
4806 |
sysv4*MP*)
|
leo_sobral@2
|
4807 |
if test -d /usr/nec; then
|
leo_sobral@2
|
4808 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
leo_sobral@2
|
4809 |
fi
|
leo_sobral@2
|
4810 |
;;
|
leo_sobral@2
|
4811 |
|
leo_sobral@2
|
4812 |
hpux*)
|
leo_sobral@2
|
4813 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
leo_sobral@2
|
4814 |
# not for PA HP-UX.
|
leo_sobral@2
|
4815 |
case "$host_cpu" in
|
leo_sobral@2
|
4816 |
hppa*64*|ia64*)
|
leo_sobral@2
|
4817 |
# +Z the default
|
leo_sobral@2
|
4818 |
;;
|
leo_sobral@2
|
4819 |
*)
|
leo_sobral@2
|
4820 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
leo_sobral@2
|
4821 |
;;
|
leo_sobral@2
|
4822 |
esac
|
leo_sobral@2
|
4823 |
;;
|
leo_sobral@2
|
4824 |
|
leo_sobral@2
|
4825 |
*)
|
leo_sobral@2
|
4826 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
leo_sobral@2
|
4827 |
;;
|
leo_sobral@2
|
4828 |
esac
|
leo_sobral@2
|
4829 |
else
|
leo_sobral@2
|
4830 |
# PORTME Check for flag to pass linker flags through the system compiler.
|
leo_sobral@2
|
4831 |
case $host_os in
|
leo_sobral@2
|
4832 |
aix*)
|
leo_sobral@2
|
4833 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4834 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
4835 |
# AIX 5 now supports IA64 processor
|
leo_sobral@2
|
4836 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4837 |
else
|
leo_sobral@2
|
4838 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
leo_sobral@2
|
4839 |
fi
|
leo_sobral@2
|
4840 |
;;
|
leo_sobral@2
|
4841 |
|
leo_sobral@2
|
4842 |
mingw* | pw32* | os2*)
|
leo_sobral@2
|
4843 |
# This hack is so that the source file can tell whether it is being
|
leo_sobral@2
|
4844 |
# built for inclusion in a dll (and should export symbols for example).
|
leo_sobral@2
|
4845 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
leo_sobral@2
|
4846 |
;;
|
leo_sobral@2
|
4847 |
|
leo_sobral@2
|
4848 |
hpux9* | hpux10* | hpux11*)
|
leo_sobral@2
|
4849 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4850 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
leo_sobral@2
|
4851 |
# not for PA HP-UX.
|
leo_sobral@2
|
4852 |
case "$host_cpu" in
|
leo_sobral@2
|
4853 |
hppa*64*|ia64*)
|
leo_sobral@2
|
4854 |
# +Z the default
|
leo_sobral@2
|
4855 |
;;
|
leo_sobral@2
|
4856 |
*)
|
leo_sobral@2
|
4857 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
leo_sobral@2
|
4858 |
;;
|
leo_sobral@2
|
4859 |
esac
|
leo_sobral@2
|
4860 |
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
leo_sobral@2
|
4861 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
leo_sobral@2
|
4862 |
;;
|
leo_sobral@2
|
4863 |
|
leo_sobral@2
|
4864 |
irix5* | irix6* | nonstopux*)
|
leo_sobral@2
|
4865 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4866 |
# PIC (with -KPIC) is the default.
|
leo_sobral@2
|
4867 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
leo_sobral@2
|
4868 |
;;
|
leo_sobral@2
|
4869 |
|
leo_sobral@2
|
4870 |
newsos6)
|
leo_sobral@2
|
4871 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4872 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4873 |
;;
|
leo_sobral@2
|
4874 |
|
leo_sobral@2
|
4875 |
linux*)
|
leo_sobral@2
|
4876 |
case $CC in
|
leo_sobral@2
|
4877 |
icc* | ecc*)
|
leo_sobral@2
|
4878 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4879 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4880 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
leo_sobral@2
|
4881 |
;;
|
leo_sobral@2
|
4882 |
ccc*)
|
leo_sobral@2
|
4883 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4884 |
# All Alpha code is PIC.
|
leo_sobral@2
|
4885 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
leo_sobral@2
|
4886 |
;;
|
leo_sobral@2
|
4887 |
esac
|
leo_sobral@2
|
4888 |
;;
|
leo_sobral@2
|
4889 |
|
leo_sobral@2
|
4890 |
osf3* | osf4* | osf5*)
|
leo_sobral@2
|
4891 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4892 |
# All OSF/1 code is PIC.
|
leo_sobral@2
|
4893 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
leo_sobral@2
|
4894 |
;;
|
leo_sobral@2
|
4895 |
|
leo_sobral@2
|
4896 |
sco3.2v5*)
|
leo_sobral@2
|
4897 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
|
leo_sobral@2
|
4898 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
|
leo_sobral@2
|
4899 |
;;
|
leo_sobral@2
|
4900 |
|
leo_sobral@2
|
4901 |
solaris*)
|
leo_sobral@2
|
4902 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4903 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4904 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4905 |
;;
|
leo_sobral@2
|
4906 |
|
leo_sobral@2
|
4907 |
sunos4*)
|
leo_sobral@2
|
4908 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
leo_sobral@2
|
4909 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
leo_sobral@2
|
4910 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4911 |
;;
|
leo_sobral@2
|
4912 |
|
leo_sobral@2
|
4913 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
leo_sobral@2
|
4914 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
leo_sobral@2
|
4915 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
leo_sobral@2
|
4916 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4917 |
;;
|
leo_sobral@2
|
4918 |
|
leo_sobral@2
|
4919 |
sysv4*MP*)
|
leo_sobral@2
|
4920 |
if test -d /usr/nec ;then
|
leo_sobral@2
|
4921 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
leo_sobral@2
|
4922 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4923 |
fi
|
leo_sobral@2
|
4924 |
;;
|
leo_sobral@2
|
4925 |
|
leo_sobral@2
|
4926 |
uts4*)
|
leo_sobral@2
|
4927 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
leo_sobral@2
|
4928 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
leo_sobral@2
|
4929 |
;;
|
leo_sobral@2
|
4930 |
|
leo_sobral@2
|
4931 |
*)
|
leo_sobral@2
|
4932 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
leo_sobral@2
|
4933 |
;;
|
leo_sobral@2
|
4934 |
esac
|
leo_sobral@2
|
4935 |
fi
|
leo_sobral@2
|
4936 |
])
|
leo_sobral@2
|
4937 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
|
leo_sobral@2
|
4938 |
|
leo_sobral@2
|
4939 |
#
|
leo_sobral@2
|
4940 |
# Check to make sure the PIC flag actually works.
|
leo_sobral@2
|
4941 |
#
|
leo_sobral@2
|
4942 |
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
leo_sobral@2
|
4943 |
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
|
leo_sobral@2
|
4944 |
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
|
leo_sobral@2
|
4945 |
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
|
leo_sobral@2
|
4946 |
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
|
leo_sobral@2
|
4947 |
"" | " "*) ;;
|
leo_sobral@2
|
4948 |
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
leo_sobral@2
|
4949 |
esac],
|
leo_sobral@2
|
4950 |
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
leo_sobral@2
|
4951 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
leo_sobral@2
|
4952 |
fi
|
leo_sobral@2
|
4953 |
case "$host_os" in
|
leo_sobral@2
|
4954 |
# For platforms which do not support PIC, -DPIC is meaningless:
|
leo_sobral@2
|
4955 |
*djgpp*)
|
leo_sobral@2
|
4956 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
leo_sobral@2
|
4957 |
;;
|
leo_sobral@2
|
4958 |
*)
|
leo_sobral@2
|
4959 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
|
leo_sobral@2
|
4960 |
;;
|
leo_sobral@2
|
4961 |
esac
|
leo_sobral@2
|
4962 |
])
|
leo_sobral@2
|
4963 |
|
leo_sobral@2
|
4964 |
|
leo_sobral@2
|
4965 |
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
|
leo_sobral@2
|
4966 |
# ------------------------------------
|
leo_sobral@2
|
4967 |
# See if the linker supports building shared libraries.
|
leo_sobral@2
|
4968 |
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
|
leo_sobral@2
|
4969 |
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
leo_sobral@2
|
4970 |
ifelse([$1],[CXX],[
|
leo_sobral@2
|
4971 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
leo_sobral@2
|
4972 |
case $host_os in
|
leo_sobral@2
|
4973 |
aix4* | aix5*)
|
leo_sobral@2
|
4974 |
# If we're using GNU nm, then we don't want the "-C" option.
|
leo_sobral@2
|
4975 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
leo_sobral@2
|
4976 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
leo_sobral@2
|
4977 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
leo_sobral@2
|
4978 |
else
|
leo_sobral@2
|
4979 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
leo_sobral@2
|
4980 |
fi
|
leo_sobral@2
|
4981 |
;;
|
leo_sobral@2
|
4982 |
pw32*)
|
leo_sobral@2
|
4983 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
leo_sobral@2
|
4984 |
;;
|
leo_sobral@2
|
4985 |
cygwin* | mingw*)
|
leo_sobral@2
|
4986 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
leo_sobral@2
|
4987 |
;;
|
leo_sobral@2
|
4988 |
linux*)
|
leo_sobral@2
|
4989 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
leo_sobral@2
|
4990 |
;;
|
leo_sobral@2
|
4991 |
*)
|
leo_sobral@2
|
4992 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
leo_sobral@2
|
4993 |
;;
|
leo_sobral@2
|
4994 |
esac
|
leo_sobral@2
|
4995 |
],[
|
leo_sobral@2
|
4996 |
runpath_var=
|
leo_sobral@2
|
4997 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
leo_sobral@2
|
4998 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
leo_sobral@2
|
4999 |
_LT_AC_TAGVAR(archive_cmds, $1)=
|
leo_sobral@2
|
5000 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
leo_sobral@2
|
5001 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
|
leo_sobral@2
|
5002 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
leo_sobral@2
|
5003 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
leo_sobral@2
|
5004 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
leo_sobral@2
|
5005 |
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
|
leo_sobral@2
|
5006 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
leo_sobral@2
|
5007 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
leo_sobral@2
|
5008 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
leo_sobral@2
|
5009 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
5010 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
leo_sobral@2
|
5011 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
leo_sobral@2
|
5012 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
leo_sobral@2
|
5013 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
leo_sobral@2
|
5014 |
_LT_AC_TAGVAR(module_cmds, $1)=
|
leo_sobral@2
|
5015 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
leo_sobral@2
|
5016 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
leo_sobral@2
|
5017 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
leo_sobral@2
|
5018 |
# include_expsyms should be a list of space-separated symbols to be *always*
|
leo_sobral@2
|
5019 |
# included in the symbol list
|
leo_sobral@2
|
5020 |
_LT_AC_TAGVAR(include_expsyms, $1)=
|
leo_sobral@2
|
5021 |
# exclude_expsyms can be an extended regexp of symbols to exclude
|
leo_sobral@2
|
5022 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
leo_sobral@2
|
5023 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
leo_sobral@2
|
5024 |
# as well as any symbol that contains `d'.
|
leo_sobral@2
|
5025 |
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
|
leo_sobral@2
|
5026 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
leo_sobral@2
|
5027 |
# platforms (ab)use it in PIC code, but their linkers get confused if
|
leo_sobral@2
|
5028 |
# the symbol is explicitly referenced. Since portable code cannot
|
leo_sobral@2
|
5029 |
# rely on this symbol name, it's probably fine to never include it in
|
leo_sobral@2
|
5030 |
# preloaded symbol tables.
|
leo_sobral@2
|
5031 |
extract_expsyms_cmds=
|
leo_sobral@2
|
5032 |
|
leo_sobral@2
|
5033 |
case $host_os in
|
leo_sobral@2
|
5034 |
cygwin* | mingw* | pw32*)
|
leo_sobral@2
|
5035 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
leo_sobral@2
|
5036 |
# When not using gcc, we currently assume that we are using
|
leo_sobral@2
|
5037 |
# Microsoft Visual C++.
|
leo_sobral@2
|
5038 |
if test "$GCC" != yes; then
|
leo_sobral@2
|
5039 |
with_gnu_ld=no
|
leo_sobral@2
|
5040 |
fi
|
leo_sobral@2
|
5041 |
;;
|
leo_sobral@2
|
5042 |
openbsd*)
|
leo_sobral@2
|
5043 |
with_gnu_ld=no
|
leo_sobral@2
|
5044 |
;;
|
leo_sobral@2
|
5045 |
esac
|
leo_sobral@2
|
5046 |
|
leo_sobral@2
|
5047 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
leo_sobral@2
|
5048 |
if test "$with_gnu_ld" = yes; then
|
leo_sobral@2
|
5049 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
leo_sobral@2
|
5050 |
wlarc='${wl}'
|
leo_sobral@2
|
5051 |
|
leo_sobral@2
|
5052 |
# See if GNU ld supports shared libraries.
|
leo_sobral@2
|
5053 |
case $host_os in
|
leo_sobral@2
|
5054 |
aix3* | aix4* | aix5*)
|
leo_sobral@2
|
5055 |
# On AIX/PPC, the GNU linker is very broken
|
leo_sobral@2
|
5056 |
if test "$host_cpu" != ia64; then
|
leo_sobral@2
|
5057 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5058 |
cat <<EOF 1>&2
|
leo_sobral@2
|
5059 |
|
leo_sobral@2
|
5060 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
leo_sobral@2
|
5061 |
*** to be unable to reliably create shared libraries on AIX.
|
leo_sobral@2
|
5062 |
*** Therefore, libtool is disabling shared libraries support. If you
|
leo_sobral@2
|
5063 |
*** really care for shared libraries, you may want to modify your PATH
|
leo_sobral@2
|
5064 |
*** so that a non-GNU linker is found, and then restart.
|
leo_sobral@2
|
5065 |
|
leo_sobral@2
|
5066 |
EOF
|
leo_sobral@2
|
5067 |
fi
|
leo_sobral@2
|
5068 |
;;
|
leo_sobral@2
|
5069 |
|
leo_sobral@2
|
5070 |
amigaos*)
|
leo_sobral@2
|
5071 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
leo_sobral@2
|
5072 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5073 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5074 |
|
leo_sobral@2
|
5075 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
leo_sobral@2
|
5076 |
# that the semantics of dynamic libraries on AmigaOS, at least up
|
leo_sobral@2
|
5077 |
# to version 4, is to share data among multiple programs linked
|
leo_sobral@2
|
5078 |
# with the same dynamic library. Since this doesn't match the
|
leo_sobral@2
|
5079 |
# behavior of shared libraries on other platforms, we can't use
|
leo_sobral@2
|
5080 |
# them.
|
leo_sobral@2
|
5081 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5082 |
;;
|
leo_sobral@2
|
5083 |
|
leo_sobral@2
|
5084 |
beos*)
|
leo_sobral@2
|
5085 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
leo_sobral@2
|
5086 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
leo_sobral@2
|
5087 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
leo_sobral@2
|
5088 |
# support --undefined. This deserves some investigation. FIXME
|
leo_sobral@2
|
5089 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
5090 |
else
|
leo_sobral@2
|
5091 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5092 |
fi
|
leo_sobral@2
|
5093 |
;;
|
leo_sobral@2
|
5094 |
|
leo_sobral@2
|
5095 |
cygwin* | mingw* | pw32*)
|
leo_sobral@2
|
5096 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
leo_sobral@2
|
5097 |
# as there is no search path for DLLs.
|
leo_sobral@2
|
5098 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5099 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
leo_sobral@2
|
5100 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
leo_sobral@2
|
5101 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
leo_sobral@2
|
5102 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
leo_sobral@2
|
5103 |
|
leo_sobral@2
|
5104 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
leo_sobral@2
|
5105 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
leo_sobral@2
|
5106 |
# If the export-symbols file already is a .def file (1st line
|
leo_sobral@2
|
5107 |
# is EXPORTS), use it as is; otherwise, prepend...
|
leo_sobral@2
|
5108 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
leo_sobral@2
|
5109 |
cp $export_symbols $output_objdir/$soname.def;
|
leo_sobral@2
|
5110 |
else
|
leo_sobral@2
|
5111 |
echo EXPORTS > $output_objdir/$soname.def;
|
leo_sobral@2
|
5112 |
cat $export_symbols >> $output_objdir/$soname.def;
|
leo_sobral@2
|
5113 |
fi~
|
leo_sobral@2
|
5114 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
leo_sobral@2
|
5115 |
else
|
leo_sobral@2
|
5116 |
ld_shlibs=no
|
leo_sobral@2
|
5117 |
fi
|
leo_sobral@2
|
5118 |
;;
|
leo_sobral@2
|
5119 |
|
leo_sobral@2
|
5120 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
|
leo_sobral@2
|
5121 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
leo_sobral@2
|
5122 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
leo_sobral@2
|
5123 |
wlarc=
|
leo_sobral@2
|
5124 |
else
|
leo_sobral@2
|
5125 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
5126 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
leo_sobral@2
|
5127 |
fi
|
leo_sobral@2
|
5128 |
;;
|
leo_sobral@2
|
5129 |
|
leo_sobral@2
|
5130 |
solaris* | sysv5*)
|
leo_sobral@2
|
5131 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
leo_sobral@2
|
5132 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5133 |
cat <<EOF 1>&2
|
leo_sobral@2
|
5134 |
|
leo_sobral@2
|
5135 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
leo_sobral@2
|
5136 |
*** create shared libraries on Solaris systems. Therefore, libtool
|
leo_sobral@2
|
5137 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
leo_sobral@2
|
5138 |
*** binutils to release 2.9.1 or newer. Another option is to modify
|
leo_sobral@2
|
5139 |
*** your PATH or compiler configuration so that the native linker is
|
leo_sobral@2
|
5140 |
*** used, and then restart.
|
leo_sobral@2
|
5141 |
|
leo_sobral@2
|
5142 |
EOF
|
leo_sobral@2
|
5143 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
leo_sobral@2
|
5144 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
5145 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
leo_sobral@2
|
5146 |
else
|
leo_sobral@2
|
5147 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5148 |
fi
|
leo_sobral@2
|
5149 |
;;
|
leo_sobral@2
|
5150 |
|
leo_sobral@2
|
5151 |
sunos4*)
|
leo_sobral@2
|
5152 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5153 |
wlarc=
|
leo_sobral@2
|
5154 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5155 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5156 |
;;
|
leo_sobral@2
|
5157 |
|
leo_sobral@2
|
5158 |
linux*)
|
leo_sobral@2
|
5159 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
leo_sobral@2
|
5160 |
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
5161 |
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
|
leo_sobral@2
|
5162 |
supports_anon_versioning=no
|
leo_sobral@2
|
5163 |
case `$LD -v 2>/dev/null` in
|
leo_sobral@2
|
5164 |
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
leo_sobral@2
|
5165 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
leo_sobral@2
|
5166 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
leo_sobral@2
|
5167 |
*\ 2.11.*) ;; # other 2.11 versions
|
leo_sobral@2
|
5168 |
*) supports_anon_versioning=yes ;;
|
leo_sobral@2
|
5169 |
esac
|
leo_sobral@2
|
5170 |
if test $supports_anon_versioning = yes; then
|
leo_sobral@2
|
5171 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
|
leo_sobral@2
|
5172 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
leo_sobral@2
|
5173 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
leo_sobral@2
|
5174 |
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
leo_sobral@2
|
5175 |
else
|
leo_sobral@2
|
5176 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
|
leo_sobral@2
|
5177 |
fi
|
leo_sobral@2
|
5178 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
leo_sobral@2
|
5179 |
else
|
leo_sobral@2
|
5180 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5181 |
fi
|
leo_sobral@2
|
5182 |
;;
|
leo_sobral@2
|
5183 |
|
leo_sobral@2
|
5184 |
*)
|
leo_sobral@2
|
5185 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
leo_sobral@2
|
5186 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
leo_sobral@2
|
5187 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
leo_sobral@2
|
5188 |
else
|
leo_sobral@2
|
5189 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5190 |
fi
|
leo_sobral@2
|
5191 |
;;
|
leo_sobral@2
|
5192 |
esac
|
leo_sobral@2
|
5193 |
|
leo_sobral@2
|
5194 |
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
|
leo_sobral@2
|
5195 |
runpath_var=LD_RUN_PATH
|
leo_sobral@2
|
5196 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
leo_sobral@2
|
5197 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
leo_sobral@2
|
5198 |
# ancient GNU ld didn't support --whole-archive et. al.
|
leo_sobral@2
|
5199 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
leo_sobral@2
|
5200 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
leo_sobral@2
|
5201 |
else
|
leo_sobral@2
|
5202 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
leo_sobral@2
|
5203 |
fi
|
leo_sobral@2
|
5204 |
fi
|
leo_sobral@2
|
5205 |
else
|
leo_sobral@2
|
5206 |
# PORTME fill in a description of your system's linker (not GNU ld)
|
leo_sobral@2
|
5207 |
case $host_os in
|
leo_sobral@2
|
5208 |
aix3*)
|
leo_sobral@2
|
5209 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
leo_sobral@2
|
5210 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
leo_sobral@2
|
5211 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
leo_sobral@2
|
5212 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
leo_sobral@2
|
5213 |
# are no directories specified by -L.
|
leo_sobral@2
|
5214 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5215 |
if test "$GCC" = yes && test -z "$link_static_flag"; then
|
leo_sobral@2
|
5216 |
# Neither direct hardcoding nor static linking is supported with a
|
leo_sobral@2
|
5217 |
# broken collect2.
|
leo_sobral@2
|
5218 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
leo_sobral@2
|
5219 |
fi
|
leo_sobral@2
|
5220 |
;;
|
leo_sobral@2
|
5221 |
|
leo_sobral@2
|
5222 |
aix4* | aix5*)
|
leo_sobral@2
|
5223 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
5224 |
# On IA64, the linker does run time linking by default, so we don't
|
leo_sobral@2
|
5225 |
# have to do anything special.
|
leo_sobral@2
|
5226 |
aix_use_runtimelinking=no
|
leo_sobral@2
|
5227 |
exp_sym_flag='-Bexport'
|
leo_sobral@2
|
5228 |
no_entry_flag=""
|
leo_sobral@2
|
5229 |
else
|
leo_sobral@2
|
5230 |
# If we're using GNU nm, then we don't want the "-C" option.
|
leo_sobral@2
|
5231 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
leo_sobral@2
|
5232 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
leo_sobral@2
|
5233 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
leo_sobral@2
|
5234 |
else
|
leo_sobral@2
|
5235 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
leo_sobral@2
|
5236 |
fi
|
leo_sobral@2
|
5237 |
aix_use_runtimelinking=no
|
leo_sobral@2
|
5238 |
|
leo_sobral@2
|
5239 |
# Test if we are trying to use run time linking or normal
|
leo_sobral@2
|
5240 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
leo_sobral@2
|
5241 |
# need to do runtime linking.
|
leo_sobral@2
|
5242 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
leo_sobral@2
|
5243 |
for ld_flag in $LDFLAGS; do
|
leo_sobral@2
|
5244 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
leo_sobral@2
|
5245 |
aix_use_runtimelinking=yes
|
leo_sobral@2
|
5246 |
break
|
leo_sobral@2
|
5247 |
fi
|
leo_sobral@2
|
5248 |
done
|
leo_sobral@2
|
5249 |
esac
|
leo_sobral@2
|
5250 |
|
leo_sobral@2
|
5251 |
exp_sym_flag='-bexport'
|
leo_sobral@2
|
5252 |
no_entry_flag='-bnoentry'
|
leo_sobral@2
|
5253 |
fi
|
leo_sobral@2
|
5254 |
|
leo_sobral@2
|
5255 |
# When large executables or shared objects are built, AIX ld can
|
leo_sobral@2
|
5256 |
# have problems creating the table of contents. If linking a library
|
leo_sobral@2
|
5257 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
leo_sobral@2
|
5258 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
leo_sobral@2
|
5259 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
leo_sobral@2
|
5260 |
|
leo_sobral@2
|
5261 |
_LT_AC_TAGVAR(archive_cmds, $1)=''
|
leo_sobral@2
|
5262 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5263 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
leo_sobral@2
|
5264 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
5265 |
|
leo_sobral@2
|
5266 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5267 |
case $host_os in aix4.[012]|aix4.[012].*)
|
leo_sobral@2
|
5268 |
# We only want to do this on AIX 4.2 and lower, the check
|
leo_sobral@2
|
5269 |
# below for broken collect2 doesn't work under 4.3+
|
leo_sobral@2
|
5270 |
collect2name=`${CC} -print-prog-name=collect2`
|
leo_sobral@2
|
5271 |
if test -f "$collect2name" && \
|
leo_sobral@2
|
5272 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
leo_sobral@2
|
5273 |
then
|
leo_sobral@2
|
5274 |
# We have reworked collect2
|
leo_sobral@2
|
5275 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5276 |
else
|
leo_sobral@2
|
5277 |
# We have old collect2
|
leo_sobral@2
|
5278 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
leo_sobral@2
|
5279 |
# It fails to find uninstalled libraries when the uninstalled
|
leo_sobral@2
|
5280 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
leo_sobral@2
|
5281 |
# to unsupported forces relinking
|
leo_sobral@2
|
5282 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5283 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5284 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
leo_sobral@2
|
5285 |
fi
|
leo_sobral@2
|
5286 |
esac
|
leo_sobral@2
|
5287 |
shared_flag='-shared'
|
leo_sobral@2
|
5288 |
else
|
leo_sobral@2
|
5289 |
# not using gcc
|
leo_sobral@2
|
5290 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
5291 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
leo_sobral@2
|
5292 |
# chokes on -Wl,-G. The following line is correct:
|
leo_sobral@2
|
5293 |
shared_flag='-G'
|
leo_sobral@2
|
5294 |
else
|
leo_sobral@2
|
5295 |
if test "$aix_use_runtimelinking" = yes; then
|
leo_sobral@2
|
5296 |
shared_flag='${wl}-G'
|
leo_sobral@2
|
5297 |
else
|
leo_sobral@2
|
5298 |
shared_flag='${wl}-bM:SRE'
|
leo_sobral@2
|
5299 |
fi
|
leo_sobral@2
|
5300 |
fi
|
leo_sobral@2
|
5301 |
fi
|
leo_sobral@2
|
5302 |
|
leo_sobral@2
|
5303 |
# It seems that -bexpall does not export symbols beginning with
|
leo_sobral@2
|
5304 |
# underscore (_), so it is better to generate a list of symbols to export.
|
leo_sobral@2
|
5305 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
leo_sobral@2
|
5306 |
if test "$aix_use_runtimelinking" = yes; then
|
leo_sobral@2
|
5307 |
# Warning - without using the other runtime loading flags (-brtl),
|
leo_sobral@2
|
5308 |
# -berok will link without error, but may produce a broken library.
|
leo_sobral@2
|
5309 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
leo_sobral@2
|
5310 |
# Determine the default libpath from the value encoded in an empty executable.
|
leo_sobral@2
|
5311 |
_LT_AC_SYS_LIBPATH_AIX
|
leo_sobral@2
|
5312 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
leo_sobral@2
|
5313 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
leo_sobral@2
|
5314 |
else
|
leo_sobral@2
|
5315 |
if test "$host_cpu" = ia64; then
|
leo_sobral@2
|
5316 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
leo_sobral@2
|
5317 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
leo_sobral@2
|
5318 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
leo_sobral@2
|
5319 |
else
|
leo_sobral@2
|
5320 |
# Determine the default libpath from the value encoded in an empty executable.
|
leo_sobral@2
|
5321 |
_LT_AC_SYS_LIBPATH_AIX
|
leo_sobral@2
|
5322 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
leo_sobral@2
|
5323 |
# Warning - without using the other run time loading flags,
|
leo_sobral@2
|
5324 |
# -berok will link without error, but may produce a broken library.
|
leo_sobral@2
|
5325 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
leo_sobral@2
|
5326 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
leo_sobral@2
|
5327 |
# -bexpall does not export symbols beginning with underscore (_)
|
leo_sobral@2
|
5328 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
leo_sobral@2
|
5329 |
# Exported symbols can be pulled into shared objects from archives
|
leo_sobral@2
|
5330 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
leo_sobral@2
|
5331 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
leo_sobral@2
|
5332 |
# This is similar to how AIX traditionally builds it's shared libraries.
|
leo_sobral@2
|
5333 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
leo_sobral@2
|
5334 |
fi
|
leo_sobral@2
|
5335 |
fi
|
leo_sobral@2
|
5336 |
;;
|
leo_sobral@2
|
5337 |
|
leo_sobral@2
|
5338 |
amigaos*)
|
leo_sobral@2
|
5339 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
leo_sobral@2
|
5340 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5341 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5342 |
# see comment about different semantics on the GNU ld section
|
leo_sobral@2
|
5343 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5344 |
;;
|
leo_sobral@2
|
5345 |
|
leo_sobral@2
|
5346 |
bsdi4*)
|
leo_sobral@2
|
5347 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
leo_sobral@2
|
5348 |
;;
|
leo_sobral@2
|
5349 |
|
leo_sobral@2
|
5350 |
cygwin* | mingw* | pw32*)
|
leo_sobral@2
|
5351 |
# When not using gcc, we currently assume that we are using
|
leo_sobral@2
|
5352 |
# Microsoft Visual C++.
|
leo_sobral@2
|
5353 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
leo_sobral@2
|
5354 |
# no search path for DLLs.
|
leo_sobral@2
|
5355 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
leo_sobral@2
|
5356 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
leo_sobral@2
|
5357 |
# Tell ltmain to make .lib files, not .a files.
|
leo_sobral@2
|
5358 |
libext=lib
|
leo_sobral@2
|
5359 |
# Tell ltmain to make .dll files, not .so files.
|
leo_sobral@2
|
5360 |
shrext_cmds=".dll"
|
leo_sobral@2
|
5361 |
# FIXME: Setting linknames here is a bad hack.
|
leo_sobral@2
|
5362 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
leo_sobral@2
|
5363 |
# The linker will automatically build a .lib file if we build a DLL.
|
leo_sobral@2
|
5364 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
|
leo_sobral@2
|
5365 |
# FIXME: Should let the user specify the lib program.
|
leo_sobral@2
|
5366 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
leo_sobral@2
|
5367 |
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
leo_sobral@2
|
5368 |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
leo_sobral@2
|
5369 |
;;
|
leo_sobral@2
|
5370 |
|
leo_sobral@2
|
5371 |
darwin* | rhapsody*)
|
leo_sobral@2
|
5372 |
if test "$GXX" = yes ; then
|
leo_sobral@2
|
5373 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
5374 |
case "$host_os" in
|
leo_sobral@2
|
5375 |
rhapsody* | darwin1.[[012]])
|
leo_sobral@2
|
5376 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
|
leo_sobral@2
|
5377 |
;;
|
leo_sobral@2
|
5378 |
*) # Darwin 1.3 on
|
leo_sobral@2
|
5379 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
leo_sobral@2
|
5380 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
|
leo_sobral@2
|
5381 |
else
|
leo_sobral@2
|
5382 |
case ${MACOSX_DEPLOYMENT_TARGET} in
|
leo_sobral@2
|
5383 |
10.[[012]])
|
leo_sobral@2
|
5384 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
|
leo_sobral@2
|
5385 |
;;
|
leo_sobral@2
|
5386 |
10.*)
|
leo_sobral@2
|
5387 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
|
leo_sobral@2
|
5388 |
;;
|
leo_sobral@2
|
5389 |
esac
|
leo_sobral@2
|
5390 |
fi
|
leo_sobral@2
|
5391 |
;;
|
leo_sobral@2
|
5392 |
esac
|
leo_sobral@2
|
5393 |
lt_int_apple_cc_single_mod=no
|
leo_sobral@2
|
5394 |
output_verbose_link_cmd='echo'
|
leo_sobral@2
|
5395 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
|
leo_sobral@2
|
5396 |
lt_int_apple_cc_single_mod=yes
|
leo_sobral@2
|
5397 |
fi
|
leo_sobral@2
|
5398 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
leo_sobral@2
|
5399 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
leo_sobral@2
|
5400 |
else
|
leo_sobral@2
|
5401 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
|
leo_sobral@2
|
5402 |
fi
|
leo_sobral@2
|
5403 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
leo_sobral@2
|
5404 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
leo_sobral@2
|
5405 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
leo_sobral@2
|
5406 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
5407 |
else
|
leo_sobral@2
|
5408 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
5409 |
fi
|
leo_sobral@2
|
5410 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
leo_sobral@2
|
5411 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
5412 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
leo_sobral@2
|
5413 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
leo_sobral@2
|
5414 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
|
leo_sobral@2
|
5415 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
5416 |
else
|
leo_sobral@2
|
5417 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5418 |
fi
|
leo_sobral@2
|
5419 |
;;
|
leo_sobral@2
|
5420 |
|
leo_sobral@2
|
5421 |
dgux*)
|
leo_sobral@2
|
5422 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5423 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5424 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5425 |
;;
|
leo_sobral@2
|
5426 |
|
leo_sobral@2
|
5427 |
freebsd1*)
|
leo_sobral@2
|
5428 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5429 |
;;
|
leo_sobral@2
|
5430 |
|
leo_sobral@2
|
5431 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
leo_sobral@2
|
5432 |
# support. Future versions do this automatically, but an explicit c++rt0.o
|
leo_sobral@2
|
5433 |
# does not break anything, and helps significantly (at the cost of a little
|
leo_sobral@2
|
5434 |
# extra space).
|
leo_sobral@2
|
5435 |
freebsd2.2*)
|
leo_sobral@2
|
5436 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
leo_sobral@2
|
5437 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
leo_sobral@2
|
5438 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5439 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5440 |
;;
|
leo_sobral@2
|
5441 |
|
leo_sobral@2
|
5442 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
leo_sobral@2
|
5443 |
freebsd2*)
|
leo_sobral@2
|
5444 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5445 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5446 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5447 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5448 |
;;
|
leo_sobral@2
|
5449 |
|
leo_sobral@2
|
5450 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
leo_sobral@2
|
5451 |
freebsd* | kfreebsd*-gnu)
|
leo_sobral@2
|
5452 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5453 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
leo_sobral@2
|
5454 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5455 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5456 |
;;
|
leo_sobral@2
|
5457 |
|
leo_sobral@2
|
5458 |
hpux9*)
|
leo_sobral@2
|
5459 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5460 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
leo_sobral@2
|
5461 |
else
|
leo_sobral@2
|
5462 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
leo_sobral@2
|
5463 |
fi
|
leo_sobral@2
|
5464 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
leo_sobral@2
|
5465 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
5466 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5467 |
|
leo_sobral@2
|
5468 |
# hardcode_minus_L: Not really in the search PATH,
|
leo_sobral@2
|
5469 |
# but as the default location of the library.
|
leo_sobral@2
|
5470 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5471 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
leo_sobral@2
|
5472 |
;;
|
leo_sobral@2
|
5473 |
|
leo_sobral@2
|
5474 |
hpux10* | hpux11*)
|
leo_sobral@2
|
5475 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
leo_sobral@2
|
5476 |
case "$host_cpu" in
|
leo_sobral@2
|
5477 |
hppa*64*|ia64*)
|
leo_sobral@2
|
5478 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5479 |
;;
|
leo_sobral@2
|
5480 |
*)
|
leo_sobral@2
|
5481 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5482 |
;;
|
leo_sobral@2
|
5483 |
esac
|
leo_sobral@2
|
5484 |
else
|
leo_sobral@2
|
5485 |
case "$host_cpu" in
|
leo_sobral@2
|
5486 |
hppa*64*|ia64*)
|
leo_sobral@2
|
5487 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5488 |
;;
|
leo_sobral@2
|
5489 |
*)
|
leo_sobral@2
|
5490 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5491 |
;;
|
leo_sobral@2
|
5492 |
esac
|
leo_sobral@2
|
5493 |
fi
|
leo_sobral@2
|
5494 |
if test "$with_gnu_ld" = no; then
|
leo_sobral@2
|
5495 |
case "$host_cpu" in
|
leo_sobral@2
|
5496 |
hppa*64*)
|
leo_sobral@2
|
5497 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
leo_sobral@2
|
5498 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
leo_sobral@2
|
5499 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
5500 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
5501 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5502 |
;;
|
leo_sobral@2
|
5503 |
ia64*)
|
leo_sobral@2
|
5504 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5505 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
5506 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5507 |
|
leo_sobral@2
|
5508 |
# hardcode_minus_L: Not really in the search PATH,
|
leo_sobral@2
|
5509 |
# but as the default location of the library.
|
leo_sobral@2
|
5510 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5511 |
;;
|
leo_sobral@2
|
5512 |
*)
|
leo_sobral@2
|
5513 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
leo_sobral@2
|
5514 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
5515 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5516 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
leo_sobral@2
|
5517 |
|
leo_sobral@2
|
5518 |
# hardcode_minus_L: Not really in the search PATH,
|
leo_sobral@2
|
5519 |
# but as the default location of the library.
|
leo_sobral@2
|
5520 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5521 |
;;
|
leo_sobral@2
|
5522 |
esac
|
leo_sobral@2
|
5523 |
fi
|
leo_sobral@2
|
5524 |
;;
|
leo_sobral@2
|
5525 |
|
leo_sobral@2
|
5526 |
irix5* | irix6* | nonstopux*)
|
leo_sobral@2
|
5527 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5528 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
leo_sobral@2
|
5529 |
else
|
leo_sobral@2
|
5530 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
leo_sobral@2
|
5531 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
leo_sobral@2
|
5532 |
fi
|
leo_sobral@2
|
5533 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
5534 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
5535 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
5536 |
;;
|
leo_sobral@2
|
5537 |
|
leo_sobral@2
|
5538 |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
|
leo_sobral@2
|
5539 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
leo_sobral@2
|
5540 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
leo_sobral@2
|
5541 |
else
|
leo_sobral@2
|
5542 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
leo_sobral@2
|
5543 |
fi
|
leo_sobral@2
|
5544 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
leo_sobral@2
|
5545 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5546 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5547 |
;;
|
leo_sobral@2
|
5548 |
|
leo_sobral@2
|
5549 |
newsos6)
|
leo_sobral@2
|
5550 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5551 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5552 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
5553 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
5554 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5555 |
;;
|
leo_sobral@2
|
5556 |
|
leo_sobral@2
|
5557 |
openbsd*)
|
leo_sobral@2
|
5558 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5559 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5560 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
leo_sobral@2
|
5561 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5562 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
leo_sobral@2
|
5563 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
leo_sobral@2
|
5564 |
else
|
leo_sobral@2
|
5565 |
case $host_os in
|
leo_sobral@2
|
5566 |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
leo_sobral@2
|
5567 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5568 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
leo_sobral@2
|
5569 |
;;
|
leo_sobral@2
|
5570 |
*)
|
leo_sobral@2
|
5571 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5572 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
leo_sobral@2
|
5573 |
;;
|
leo_sobral@2
|
5574 |
esac
|
leo_sobral@2
|
5575 |
fi
|
leo_sobral@2
|
5576 |
;;
|
leo_sobral@2
|
5577 |
|
leo_sobral@2
|
5578 |
os2*)
|
leo_sobral@2
|
5579 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5580 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5581 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
leo_sobral@2
|
5582 |
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
leo_sobral@2
|
5583 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
leo_sobral@2
|
5584 |
;;
|
leo_sobral@2
|
5585 |
|
leo_sobral@2
|
5586 |
osf3*)
|
leo_sobral@2
|
5587 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5588 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
leo_sobral@2
|
5589 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
leo_sobral@2
|
5590 |
else
|
leo_sobral@2
|
5591 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
leo_sobral@2
|
5592 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
leo_sobral@2
|
5593 |
fi
|
leo_sobral@2
|
5594 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
5595 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
5596 |
;;
|
leo_sobral@2
|
5597 |
|
leo_sobral@2
|
5598 |
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
leo_sobral@2
|
5599 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5600 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
leo_sobral@2
|
5601 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
leo_sobral@2
|
5602 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
leo_sobral@2
|
5603 |
else
|
leo_sobral@2
|
5604 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
leo_sobral@2
|
5605 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
leo_sobral@2
|
5606 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
leo_sobral@2
|
5607 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
|
leo_sobral@2
|
5608 |
|
leo_sobral@2
|
5609 |
# Both c and cxx compiler support -rpath directly
|
leo_sobral@2
|
5610 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
leo_sobral@2
|
5611 |
fi
|
leo_sobral@2
|
5612 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
leo_sobral@2
|
5613 |
;;
|
leo_sobral@2
|
5614 |
|
leo_sobral@2
|
5615 |
sco3.2v5*)
|
leo_sobral@2
|
5616 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5617 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5618 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
leo_sobral@2
|
5619 |
runpath_var=LD_RUN_PATH
|
leo_sobral@2
|
5620 |
hardcode_runpath_var=yes
|
leo_sobral@2
|
5621 |
;;
|
leo_sobral@2
|
5622 |
|
leo_sobral@2
|
5623 |
solaris*)
|
leo_sobral@2
|
5624 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
leo_sobral@2
|
5625 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5626 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5627 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
leo_sobral@2
|
5628 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
leo_sobral@2
|
5629 |
else
|
leo_sobral@2
|
5630 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5631 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
leo_sobral@2
|
5632 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
leo_sobral@2
|
5633 |
fi
|
leo_sobral@2
|
5634 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
leo_sobral@2
|
5635 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5636 |
case $host_os in
|
leo_sobral@2
|
5637 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
leo_sobral@2
|
5638 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
|
leo_sobral@2
|
5639 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
|
leo_sobral@2
|
5640 |
esac
|
leo_sobral@2
|
5641 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
leo_sobral@2
|
5642 |
;;
|
leo_sobral@2
|
5643 |
|
leo_sobral@2
|
5644 |
sunos4*)
|
leo_sobral@2
|
5645 |
if test "x$host_vendor" = xsequent; then
|
leo_sobral@2
|
5646 |
# Use $CC to link under sequent, because it throws in some extra .o
|
leo_sobral@2
|
5647 |
# files that make .init and .fini sections work.
|
leo_sobral@2
|
5648 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5649 |
else
|
leo_sobral@2
|
5650 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5651 |
fi
|
leo_sobral@2
|
5652 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5653 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5654 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
leo_sobral@2
|
5655 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5656 |
;;
|
leo_sobral@2
|
5657 |
|
leo_sobral@2
|
5658 |
sysv4)
|
leo_sobral@2
|
5659 |
case $host_vendor in
|
leo_sobral@2
|
5660 |
sni)
|
leo_sobral@2
|
5661 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5662 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
leo_sobral@2
|
5663 |
;;
|
leo_sobral@2
|
5664 |
siemens)
|
leo_sobral@2
|
5665 |
## LD is ld it makes a PLAMLIB
|
leo_sobral@2
|
5666 |
## CC just makes a GrossModule.
|
leo_sobral@2
|
5667 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5668 |
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
leo_sobral@2
|
5669 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
leo_sobral@2
|
5670 |
;;
|
leo_sobral@2
|
5671 |
motorola)
|
leo_sobral@2
|
5672 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5673 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
leo_sobral@2
|
5674 |
;;
|
leo_sobral@2
|
5675 |
esac
|
leo_sobral@2
|
5676 |
runpath_var='LD_RUN_PATH'
|
leo_sobral@2
|
5677 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5678 |
;;
|
leo_sobral@2
|
5679 |
|
leo_sobral@2
|
5680 |
sysv4.3*)
|
leo_sobral@2
|
5681 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5682 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5683 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
leo_sobral@2
|
5684 |
;;
|
leo_sobral@2
|
5685 |
|
leo_sobral@2
|
5686 |
sysv4*MP*)
|
leo_sobral@2
|
5687 |
if test -d /usr/nec; then
|
leo_sobral@2
|
5688 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5689 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5690 |
runpath_var=LD_RUN_PATH
|
leo_sobral@2
|
5691 |
hardcode_runpath_var=yes
|
leo_sobral@2
|
5692 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
leo_sobral@2
|
5693 |
fi
|
leo_sobral@2
|
5694 |
;;
|
leo_sobral@2
|
5695 |
|
leo_sobral@2
|
5696 |
sysv4.2uw2*)
|
leo_sobral@2
|
5697 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5698 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
leo_sobral@2
|
5699 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
leo_sobral@2
|
5700 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5701 |
hardcode_runpath_var=yes
|
leo_sobral@2
|
5702 |
runpath_var=LD_RUN_PATH
|
leo_sobral@2
|
5703 |
;;
|
leo_sobral@2
|
5704 |
|
leo_sobral@2
|
5705 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
leo_sobral@2
|
5706 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
|
leo_sobral@2
|
5707 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5708 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5709 |
else
|
leo_sobral@2
|
5710 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
leo_sobral@2
|
5711 |
fi
|
leo_sobral@2
|
5712 |
runpath_var='LD_RUN_PATH'
|
leo_sobral@2
|
5713 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5714 |
;;
|
leo_sobral@2
|
5715 |
|
leo_sobral@2
|
5716 |
sysv5*)
|
leo_sobral@2
|
5717 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
leo_sobral@2
|
5718 |
# $CC -shared without GNU ld will not create a library from C++
|
leo_sobral@2
|
5719 |
# object files and a static libstdc++, better avoid it by now
|
leo_sobral@2
|
5720 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5721 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
leo_sobral@2
|
5722 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
leo_sobral@2
|
5723 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
leo_sobral@2
|
5724 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5725 |
runpath_var='LD_RUN_PATH'
|
leo_sobral@2
|
5726 |
;;
|
leo_sobral@2
|
5727 |
|
leo_sobral@2
|
5728 |
uts4*)
|
leo_sobral@2
|
5729 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
leo_sobral@2
|
5730 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
leo_sobral@2
|
5731 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
leo_sobral@2
|
5732 |
;;
|
leo_sobral@2
|
5733 |
|
leo_sobral@2
|
5734 |
*)
|
leo_sobral@2
|
5735 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
leo_sobral@2
|
5736 |
;;
|
leo_sobral@2
|
5737 |
esac
|
leo_sobral@2
|
5738 |
fi
|
leo_sobral@2
|
5739 |
])
|
leo_sobral@2
|
5740 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
leo_sobral@2
|
5741 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
leo_sobral@2
|
5742 |
|
leo_sobral@2
|
5743 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
leo_sobral@2
|
5744 |
if test "$GCC" = yes; then
|
leo_sobral@2
|
5745 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
leo_sobral@2
|
5746 |
fi
|
leo_sobral@2
|
5747 |
|
leo_sobral@2
|
5748 |
#
|
leo_sobral@2
|
5749 |
# Do we need to explicitly link libc?
|
leo_sobral@2
|
5750 |
#
|
leo_sobral@2
|
5751 |
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
|
leo_sobral@2
|
5752 |
x|xyes)
|
leo_sobral@2
|
5753 |
# Assume -lc should be added
|
leo_sobral@2
|
5754 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
leo_sobral@2
|
5755 |
|
leo_sobral@2
|
5756 |
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
leo_sobral@2
|
5757 |
case $_LT_AC_TAGVAR(archive_cmds, $1) in
|
leo_sobral@2
|
5758 |
*'~'*)
|
leo_sobral@2
|
5759 |
# FIXME: we may have to deal with multi-command sequences.
|
leo_sobral@2
|
5760 |
;;
|
leo_sobral@2
|
5761 |
'$CC '*)
|
leo_sobral@2
|
5762 |
# Test whether the compiler implicitly links with -lc since on some
|
leo_sobral@2
|
5763 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
leo_sobral@2
|
5764 |
# to ld, don't add -lc before -lgcc.
|
leo_sobral@2
|
5765 |
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
leo_sobral@2
|
5766 |
$rm conftest*
|
leo_sobral@2
|
5767 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
leo_sobral@2
|
5768 |
|
leo_sobral@2
|
5769 |
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
leo_sobral@2
|
5770 |
soname=conftest
|
leo_sobral@2
|
5771 |
lib=conftest
|
leo_sobral@2
|
5772 |
libobjs=conftest.$ac_objext
|
leo_sobral@2
|
5773 |
deplibs=
|
leo_sobral@2
|
5774 |
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
leo_sobral@2
|
5775 |
compiler_flags=-v
|
leo_sobral@2
|
5776 |
linker_flags=-v
|
leo_sobral@2
|
5777 |
verstring=
|
leo_sobral@2
|
5778 |
output_objdir=.
|
leo_sobral@2
|
5779 |
libname=conftest
|
leo_sobral@2
|
5780 |
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
leo_sobral@2
|
5781 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
leo_sobral@2
|
5782 |
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
|
leo_sobral@2
|
5783 |
then
|
leo_sobral@2
|
5784 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
leo_sobral@2
|
5785 |
else
|
leo_sobral@2
|
5786 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
leo_sobral@2
|
5787 |
fi
|
leo_sobral@2
|
5788 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
leo_sobral@2
|
5789 |
else
|
leo_sobral@2
|
5790 |
cat conftest.err 1>&5
|
leo_sobral@2
|
5791 |
fi
|
leo_sobral@2
|
5792 |
$rm conftest*
|
leo_sobral@2
|
5793 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
|
leo_sobral@2
|
5794 |
;;
|
leo_sobral@2
|
5795 |
esac
|
leo_sobral@2
|
5796 |
fi
|
leo_sobral@2
|
5797 |
;;
|
leo_sobral@2
|
5798 |
esac
|
leo_sobral@2
|
5799 |
])# AC_LIBTOOL_PROG_LD_SHLIBS
|
leo_sobral@2
|
5800 |
|
leo_sobral@2
|
5801 |
|
leo_sobral@2
|
5802 |
# _LT_AC_FILE_LTDLL_C
|
leo_sobral@2
|
5803 |
# -------------------
|
leo_sobral@2
|
5804 |
# Be careful that the start marker always follows a newline.
|
leo_sobral@2
|
5805 |
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
|
leo_sobral@2
|
5806 |
# /* ltdll.c starts here */
|
leo_sobral@2
|
5807 |
# #define WIN32_LEAN_AND_MEAN
|
leo_sobral@2
|
5808 |
# #include <windows.h>
|
leo_sobral@2
|
5809 |
# #undef WIN32_LEAN_AND_MEAN
|
leo_sobral@2
|
5810 |
# #include <stdio.h>
|
leo_sobral@2
|
5811 |
#
|
leo_sobral@2
|
5812 |
# #ifndef __CYGWIN__
|
leo_sobral@2
|
5813 |
# # ifdef __CYGWIN32__
|
leo_sobral@2
|
5814 |
# # define __CYGWIN__ __CYGWIN32__
|
leo_sobral@2
|
5815 |
# # endif
|
leo_sobral@2
|
5816 |
# #endif
|
leo_sobral@2
|
5817 |
#
|
leo_sobral@2
|
5818 |
# #ifdef __cplusplus
|
leo_sobral@2
|
5819 |
# extern "C" {
|
leo_sobral@2
|
5820 |
# #endif
|
leo_sobral@2
|
5821 |
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
|
leo_sobral@2
|
5822 |
# #ifdef __cplusplus
|
leo_sobral@2
|
5823 |
# }
|
leo_sobral@2
|
5824 |
# #endif
|
leo_sobral@2
|
5825 |
#
|
leo_sobral@2
|
5826 |
# #ifdef __CYGWIN__
|
leo_sobral@2
|
5827 |
# #include <cygwin/cygwin_dll.h>
|
leo_sobral@2
|
5828 |
# DECLARE_CYGWIN_DLL( DllMain );
|
leo_sobral@2
|
5829 |
# #endif
|
leo_sobral@2
|
5830 |
# HINSTANCE __hDllInstance_base;
|
leo_sobral@2
|
5831 |
#
|
leo_sobral@2
|
5832 |
# BOOL APIENTRY
|
leo_sobral@2
|
5833 |
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
|
leo_sobral@2
|
5834 |
# {
|
leo_sobral@2
|
5835 |
# __hDllInstance_base = hInst;
|
leo_sobral@2
|
5836 |
# return TRUE;
|
leo_sobral@2
|
5837 |
# }
|
leo_sobral@2
|
5838 |
# /* ltdll.c ends here */
|
leo_sobral@2
|
5839 |
])# _LT_AC_FILE_LTDLL_C
|
leo_sobral@2
|
5840 |
|
leo_sobral@2
|
5841 |
|
leo_sobral@2
|
5842 |
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
|
leo_sobral@2
|
5843 |
# ---------------------------------
|
leo_sobral@2
|
5844 |
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
|
leo_sobral@2
|
5845 |
|
leo_sobral@2
|
5846 |
|
leo_sobral@2
|
5847 |
# old names
|
leo_sobral@2
|
5848 |
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
|
leo_sobral@2
|
5849 |
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
leo_sobral@2
|
5850 |
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
leo_sobral@2
|
5851 |
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
leo_sobral@2
|
5852 |
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
leo_sobral@2
|
5853 |
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
|
leo_sobral@2
|
5854 |
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
|
leo_sobral@2
|
5855 |
|
leo_sobral@2
|
5856 |
# This is just to silence aclocal about the macro not being used
|
leo_sobral@2
|
5857 |
ifelse([AC_DISABLE_FAST_INSTALL])
|
leo_sobral@2
|
5858 |
|
leo_sobral@2
|
5859 |
AC_DEFUN([LT_AC_PROG_GCJ],
|
leo_sobral@2
|
5860 |
[AC_CHECK_TOOL(GCJ, gcj, no)
|
leo_sobral@2
|
5861 |
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
leo_sobral@2
|
5862 |
AC_SUBST(GCJFLAGS)
|
leo_sobral@2
|
5863 |
])
|
leo_sobral@2
|
5864 |
|
leo_sobral@2
|
5865 |
AC_DEFUN([LT_AC_PROG_RC],
|
leo_sobral@2
|
5866 |
[AC_CHECK_TOOL(RC, windres, no)
|
leo_sobral@2
|
5867 |
])
|
leo_sobral@2
|
5868 |
|
leo_sobral@2
|
5869 |
# NOTE: This macro has been submitted for inclusion into #
|
leo_sobral@2
|
5870 |
# GNU Autoconf as AC_PROG_SED. When it is available in #
|
leo_sobral@2
|
5871 |
# a released version of Autoconf we should remove this #
|
leo_sobral@2
|
5872 |
# macro and use it instead. #
|
leo_sobral@2
|
5873 |
# LT_AC_PROG_SED
|
leo_sobral@2
|
5874 |
# --------------
|
leo_sobral@2
|
5875 |
# Check for a fully-functional sed program, that truncates
|
leo_sobral@2
|
5876 |
# as few characters as possible. Prefer GNU sed if found.
|
leo_sobral@2
|
5877 |
AC_DEFUN([LT_AC_PROG_SED],
|
leo_sobral@2
|
5878 |
[AC_MSG_CHECKING([for a sed that does not truncate output])
|
leo_sobral@2
|
5879 |
AC_CACHE_VAL(lt_cv_path_SED,
|
leo_sobral@2
|
5880 |
[# Loop through the user's path and test for sed and gsed.
|
leo_sobral@2
|
5881 |
# Then use that list of sed's as ones to test for truncation.
|
leo_sobral@2
|
5882 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
leo_sobral@2
|
5883 |
for as_dir in $PATH
|
leo_sobral@2
|
5884 |
do
|
leo_sobral@2
|
5885 |
IFS=$as_save_IFS
|
leo_sobral@2
|
5886 |
test -z "$as_dir" && as_dir=.
|
leo_sobral@2
|
5887 |
for lt_ac_prog in sed gsed; do
|
leo_sobral@2
|
5888 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
leo_sobral@2
|
5889 |
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
leo_sobral@2
|
5890 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
leo_sobral@2
|
5891 |
fi
|
leo_sobral@2
|
5892 |
done
|
leo_sobral@2
|
5893 |
done
|
leo_sobral@2
|
5894 |
done
|
leo_sobral@2
|
5895 |
lt_ac_max=0
|
leo_sobral@2
|
5896 |
lt_ac_count=0
|
leo_sobral@2
|
5897 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
leo_sobral@2
|
5898 |
# along with /bin/sed that truncates output.
|
leo_sobral@2
|
5899 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
leo_sobral@2
|
5900 |
test ! -f $lt_ac_sed && break
|
leo_sobral@2
|
5901 |
cat /dev/null > conftest.in
|
leo_sobral@2
|
5902 |
lt_ac_count=0
|
leo_sobral@2
|
5903 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
leo_sobral@2
|
5904 |
# Check for GNU sed and select it if it is found.
|
leo_sobral@2
|
5905 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
leo_sobral@2
|
5906 |
lt_cv_path_SED=$lt_ac_sed
|
leo_sobral@2
|
5907 |
break
|
leo_sobral@2
|
5908 |
fi
|
leo_sobral@2
|
5909 |
while true; do
|
leo_sobral@2
|
5910 |
cat conftest.in conftest.in >conftest.tmp
|
leo_sobral@2
|
5911 |
mv conftest.tmp conftest.in
|
leo_sobral@2
|
5912 |
cp conftest.in conftest.nl
|
leo_sobral@2
|
5913 |
echo >>conftest.nl
|
leo_sobral@2
|
5914 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
leo_sobral@2
|
5915 |
cmp -s conftest.out conftest.nl || break
|
leo_sobral@2
|
5916 |
# 10000 chars as input seems more than enough
|
leo_sobral@2
|
5917 |
test $lt_ac_count -gt 10 && break
|
leo_sobral@2
|
5918 |
lt_ac_count=`expr $lt_ac_count + 1`
|
leo_sobral@2
|
5919 |
if test $lt_ac_count -gt $lt_ac_max; then
|
leo_sobral@2
|
5920 |
lt_ac_max=$lt_ac_count
|
leo_sobral@2
|
5921 |
lt_cv_path_SED=$lt_ac_sed
|
leo_sobral@2
|
5922 |
fi
|
leo_sobral@2
|
5923 |
done
|
leo_sobral@2
|
5924 |
done
|
leo_sobral@2
|
5925 |
SED=$lt_cv_path_SED
|
leo_sobral@2
|
5926 |
])
|
leo_sobral@2
|
5927 |
AC_MSG_RESULT([$SED])
|
leo_sobral@2
|
5928 |
])
|
leo_sobral@2
|
5929 |
|
leo_sobral@2
|
5930 |
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
leo_sobral@2
|
5931 |
#
|
leo_sobral@2
|
5932 |
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
leo_sobral@2
|
5933 |
#
|
leo_sobral@2
|
5934 |
# This program is free software; you can redistribute it and/or modify
|
leo_sobral@2
|
5935 |
# it under the terms of the GNU General Public License as published by
|
leo_sobral@2
|
5936 |
# the Free Software Foundation; either version 2 of the License, or
|
leo_sobral@2
|
5937 |
# (at your option) any later version.
|
leo_sobral@2
|
5938 |
#
|
leo_sobral@2
|
5939 |
# This program is distributed in the hope that it will be useful, but
|
leo_sobral@2
|
5940 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
leo_sobral@2
|
5941 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
leo_sobral@2
|
5942 |
# General Public License for more details.
|
leo_sobral@2
|
5943 |
#
|
leo_sobral@2
|
5944 |
# You should have received a copy of the GNU General Public License
|
leo_sobral@2
|
5945 |
# along with this program; if not, write to the Free Software
|
leo_sobral@2
|
5946 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
leo_sobral@2
|
5947 |
#
|
leo_sobral@2
|
5948 |
# As a special exception to the GNU General Public License, if you
|
leo_sobral@2
|
5949 |
# distribute this file as part of a program that contains a
|
leo_sobral@2
|
5950 |
# configuration script generated by Autoconf, you may include it under
|
leo_sobral@2
|
5951 |
# the same distribution terms that you use for the rest of that program.
|
leo_sobral@2
|
5952 |
|
leo_sobral@2
|
5953 |
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
leo_sobral@2
|
5954 |
# ----------------------------------
|
leo_sobral@2
|
5955 |
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
leo_sobral@2
|
5956 |
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
leo_sobral@2
|
5957 |
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
|
leo_sobral@2
|
5958 |
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
|
leo_sobral@2
|
5959 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
leo_sobral@2
|
5960 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
leo_sobral@2
|
5961 |
fi
|
leo_sobral@2
|
5962 |
if test -n "$PKG_CONFIG"; then
|
leo_sobral@2
|
5963 |
_pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
|
leo_sobral@2
|
5964 |
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
leo_sobral@2
|
5965 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
leo_sobral@2
|
5966 |
AC_MSG_RESULT([yes])
|
leo_sobral@2
|
5967 |
else
|
leo_sobral@2
|
5968 |
AC_MSG_RESULT([no])
|
leo_sobral@2
|
5969 |
PKG_CONFIG=""
|
leo_sobral@2
|
5970 |
fi
|
leo_sobral@2
|
5971 |
|
leo_sobral@2
|
5972 |
fi[]dnl
|
leo_sobral@2
|
5973 |
])# PKG_PROG_PKG_CONFIG
|
leo_sobral@2
|
5974 |
|
leo_sobral@2
|
5975 |
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
leo_sobral@2
|
5976 |
#
|
leo_sobral@2
|
5977 |
# Check to see whether a particular set of modules exists. Similar
|
leo_sobral@2
|
5978 |
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
|
leo_sobral@2
|
5979 |
#
|
leo_sobral@2
|
5980 |
#
|
leo_sobral@2
|
5981 |
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
|
leo_sobral@2
|
5982 |
# this or PKG_CHECK_MODULES is called, or make sure to call
|
leo_sobral@2
|
5983 |
# PKG_CHECK_EXISTS manually
|
leo_sobral@2
|
5984 |
# --------------------------------------------------------------
|
leo_sobral@2
|
5985 |
AC_DEFUN([PKG_CHECK_EXISTS],
|
leo_sobral@2
|
5986 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
leo_sobral@2
|
5987 |
if test -n "$PKG_CONFIG" && \
|
leo_sobral@2
|
5988 |
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
leo_sobral@2
|
5989 |
m4_ifval([$2], [$2], [:])
|
leo_sobral@2
|
5990 |
m4_ifvaln([$3], [else
|
leo_sobral@2
|
5991 |
$3])dnl
|
leo_sobral@2
|
5992 |
fi])
|
leo_sobral@2
|
5993 |
|
leo_sobral@2
|
5994 |
|
leo_sobral@2
|
5995 |
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
leo_sobral@2
|
5996 |
# ---------------------------------------------
|
leo_sobral@2
|
5997 |
m4_define([_PKG_CONFIG],
|
leo_sobral@2
|
5998 |
[if test -n "$PKG_CONFIG"; then
|
leo_sobral@2
|
5999 |
PKG_CHECK_EXISTS([$3],
|
leo_sobral@2
|
6000 |
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
|
leo_sobral@2
|
6001 |
[pkg_failed=yes])
|
leo_sobral@2
|
6002 |
else
|
leo_sobral@2
|
6003 |
pkg_failed=untried
|
leo_sobral@2
|
6004 |
fi[]dnl
|
leo_sobral@2
|
6005 |
])# _PKG_CONFIG
|
leo_sobral@2
|
6006 |
|
leo_sobral@2
|
6007 |
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
leo_sobral@2
|
6008 |
# [ACTION-IF-NOT-FOUND])
|
leo_sobral@2
|
6009 |
#
|
leo_sobral@2
|
6010 |
#
|
leo_sobral@2
|
6011 |
# Note that if there is a possibility the first call to
|
leo_sobral@2
|
6012 |
# PKG_CHECK_MODULES might not happen, you should be sure to include an
|
leo_sobral@2
|
6013 |
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
leo_sobral@2
|
6014 |
#
|
leo_sobral@2
|
6015 |
#
|
leo_sobral@2
|
6016 |
# --------------------------------------------------------------
|
leo_sobral@2
|
6017 |
AC_DEFUN([PKG_CHECK_MODULES],
|
leo_sobral@2
|
6018 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
leo_sobral@2
|
6019 |
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
leo_sobral@2
|
6020 |
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
leo_sobral@2
|
6021 |
|
leo_sobral@2
|
6022 |
pkg_failed=no
|
leo_sobral@2
|
6023 |
AC_MSG_CHECKING([for $1])
|
leo_sobral@2
|
6024 |
|
leo_sobral@2
|
6025 |
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
leo_sobral@2
|
6026 |
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
leo_sobral@2
|
6027 |
|
leo_sobral@2
|
6028 |
if test $pkg_failed = yes; then
|
leo_sobral@2
|
6029 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
leo_sobral@2
|
6030 |
# Put the nasty error message in config.log where it belongs
|
leo_sobral@2
|
6031 |
echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
|
leo_sobral@2
|
6032 |
|
leo_sobral@2
|
6033 |
ifelse([$4], , [AC_MSG_ERROR(dnl
|
leo_sobral@2
|
6034 |
[Package requirements ($2) were not met.
|
leo_sobral@2
|
6035 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
leo_sobral@2
|
6036 |
installed software in a non-standard prefix.
|
leo_sobral@2
|
6037 |
|
leo_sobral@2
|
6038 |
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
|
leo_sobral@2
|
6039 |
to avoid the need to call pkg-config. See the pkg-config man page for
|
leo_sobral@2
|
6040 |
more details.])],
|
leo_sobral@2
|
6041 |
[$4])
|
leo_sobral@2
|
6042 |
elif test $pkg_failed = untried; then
|
leo_sobral@2
|
6043 |
ifelse([$4], , [AC_MSG_FAILURE(dnl
|
leo_sobral@2
|
6044 |
[The pkg-config script could not be found or is too old. Make sure it
|
leo_sobral@2
|
6045 |
is in your PATH or set the PKG_CONFIG environment variable to the full
|
leo_sobral@2
|
6046 |
path to pkg-config.
|
leo_sobral@2
|
6047 |
|
leo_sobral@2
|
6048 |
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
|
leo_sobral@2
|
6049 |
to avoid the need to call pkg-config. See the pkg-config man page for
|
leo_sobral@2
|
6050 |
more details.
|
leo_sobral@2
|
6051 |
|
leo_sobral@2
|
6052 |
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
|
leo_sobral@2
|
6053 |
[$4])
|
leo_sobral@2
|
6054 |
else
|
leo_sobral@2
|
6055 |
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
leo_sobral@2
|
6056 |
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
leo_sobral@2
|
6057 |
AC_MSG_RESULT([yes])
|
leo_sobral@2
|
6058 |
ifelse([$3], , :, [$3])
|
leo_sobral@2
|
6059 |
fi[]dnl
|
leo_sobral@2
|
6060 |
])# PKG_CHECK_MODULES
|
leo_sobral@2
|
6061 |
|
leo_sobral@2
|
6062 |
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6063 |
#
|
leo_sobral@2
|
6064 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6065 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6066 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6067 |
|
leo_sobral@2
|
6068 |
# AM_AUTOMAKE_VERSION(VERSION)
|
leo_sobral@2
|
6069 |
# ----------------------------
|
leo_sobral@2
|
6070 |
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
leo_sobral@2
|
6071 |
# generated from the m4 files accompanying Automake X.Y.
|
leo_sobral@2
|
6072 |
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
leo_sobral@2
|
6073 |
|
leo_sobral@2
|
6074 |
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
leo_sobral@2
|
6075 |
# -------------------------------
|
leo_sobral@2
|
6076 |
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
leo_sobral@2
|
6077 |
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
leo_sobral@2
|
6078 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
leo_sobral@2
|
6079 |
[AM_AUTOMAKE_VERSION([1.9.5])])
|
leo_sobral@2
|
6080 |
|
leo_sobral@2
|
6081 |
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
leo_sobral@2
|
6082 |
|
leo_sobral@2
|
6083 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6084 |
#
|
leo_sobral@2
|
6085 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6086 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6087 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6088 |
|
leo_sobral@2
|
6089 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
leo_sobral@2
|
6090 |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
leo_sobral@2
|
6091 |
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
leo_sobral@2
|
6092 |
#
|
leo_sobral@2
|
6093 |
# Of course, Automake must honor this variable whenever it calls a
|
leo_sobral@2
|
6094 |
# tool from the auxiliary directory. The problem is that $srcdir (and
|
leo_sobral@2
|
6095 |
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
leo_sobral@2
|
6096 |
# depending on how configure is run. This is pretty annoying, since
|
leo_sobral@2
|
6097 |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
leo_sobral@2
|
6098 |
# source directory, any form will work fine, but in subdirectories a
|
leo_sobral@2
|
6099 |
# relative path needs to be adjusted first.
|
leo_sobral@2
|
6100 |
#
|
leo_sobral@2
|
6101 |
# $ac_aux_dir/missing
|
leo_sobral@2
|
6102 |
# fails when called from a subdirectory if $ac_aux_dir is relative
|
leo_sobral@2
|
6103 |
# $top_srcdir/$ac_aux_dir/missing
|
leo_sobral@2
|
6104 |
# fails if $ac_aux_dir is absolute,
|
leo_sobral@2
|
6105 |
# fails when called from a subdirectory in a VPATH build with
|
leo_sobral@2
|
6106 |
# a relative $ac_aux_dir
|
leo_sobral@2
|
6107 |
#
|
leo_sobral@2
|
6108 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
leo_sobral@2
|
6109 |
# are both prefixed by $srcdir. In an in-source build this is usually
|
leo_sobral@2
|
6110 |
# harmless because $srcdir is `.', but things will broke when you
|
leo_sobral@2
|
6111 |
# start a VPATH build or use an absolute $srcdir.
|
leo_sobral@2
|
6112 |
#
|
leo_sobral@2
|
6113 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
leo_sobral@2
|
6114 |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
leo_sobral@2
|
6115 |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
leo_sobral@2
|
6116 |
# and then we would define $MISSING as
|
leo_sobral@2
|
6117 |
# MISSING="\${SHELL} $am_aux_dir/missing"
|
leo_sobral@2
|
6118 |
# This will work as long as MISSING is not called from configure, because
|
leo_sobral@2
|
6119 |
# unfortunately $(top_srcdir) has no meaning in configure.
|
leo_sobral@2
|
6120 |
# However there are other variables, like CC, which are often used in
|
leo_sobral@2
|
6121 |
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
leo_sobral@2
|
6122 |
#
|
leo_sobral@2
|
6123 |
# Another solution, used here, is to always expand $ac_aux_dir to an
|
leo_sobral@2
|
6124 |
# absolute PATH. The drawback is that using absolute paths prevent a
|
leo_sobral@2
|
6125 |
# configured tree to be moved without reconfiguration.
|
leo_sobral@2
|
6126 |
|
leo_sobral@2
|
6127 |
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
leo_sobral@2
|
6128 |
[dnl Rely on autoconf to set up CDPATH properly.
|
leo_sobral@2
|
6129 |
AC_PREREQ([2.50])dnl
|
leo_sobral@2
|
6130 |
# expand $ac_aux_dir to an absolute path
|
leo_sobral@2
|
6131 |
am_aux_dir=`cd $ac_aux_dir && pwd`
|
leo_sobral@2
|
6132 |
])
|
leo_sobral@2
|
6133 |
|
leo_sobral@2
|
6134 |
# AM_CONDITIONAL -*- Autoconf -*-
|
leo_sobral@2
|
6135 |
|
leo_sobral@2
|
6136 |
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
leo_sobral@2
|
6137 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
6138 |
#
|
leo_sobral@2
|
6139 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6140 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6141 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6142 |
|
leo_sobral@2
|
6143 |
# serial 7
|
leo_sobral@2
|
6144 |
|
leo_sobral@2
|
6145 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
leo_sobral@2
|
6146 |
# -------------------------------------
|
leo_sobral@2
|
6147 |
# Define a conditional.
|
leo_sobral@2
|
6148 |
AC_DEFUN([AM_CONDITIONAL],
|
leo_sobral@2
|
6149 |
[AC_PREREQ(2.52)dnl
|
leo_sobral@2
|
6150 |
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
leo_sobral@2
|
6151 |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
leo_sobral@2
|
6152 |
AC_SUBST([$1_TRUE])
|
leo_sobral@2
|
6153 |
AC_SUBST([$1_FALSE])
|
leo_sobral@2
|
6154 |
if $2; then
|
leo_sobral@2
|
6155 |
$1_TRUE=
|
leo_sobral@2
|
6156 |
$1_FALSE='#'
|
leo_sobral@2
|
6157 |
else
|
leo_sobral@2
|
6158 |
$1_TRUE='#'
|
leo_sobral@2
|
6159 |
$1_FALSE=
|
leo_sobral@2
|
6160 |
fi
|
leo_sobral@2
|
6161 |
AC_CONFIG_COMMANDS_PRE(
|
leo_sobral@2
|
6162 |
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
leo_sobral@2
|
6163 |
AC_MSG_ERROR([[conditional "$1" was never defined.
|
leo_sobral@2
|
6164 |
Usually this means the macro was only invoked conditionally.]])
|
leo_sobral@2
|
6165 |
fi])])
|
leo_sobral@2
|
6166 |
|
leo_sobral@2
|
6167 |
|
leo_sobral@2
|
6168 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
leo_sobral@2
|
6169 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
6170 |
#
|
leo_sobral@2
|
6171 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6172 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6173 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6174 |
|
leo_sobral@2
|
6175 |
# serial 8
|
leo_sobral@2
|
6176 |
|
leo_sobral@2
|
6177 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
leo_sobral@2
|
6178 |
# written in clear, in which case automake, when reading aclocal.m4,
|
leo_sobral@2
|
6179 |
# will think it sees a *use*, and therefore will trigger all it's
|
leo_sobral@2
|
6180 |
# C support machinery. Also note that it means that autoscan, seeing
|
leo_sobral@2
|
6181 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
leo_sobral@2
|
6182 |
|
leo_sobral@2
|
6183 |
|
leo_sobral@2
|
6184 |
# _AM_DEPENDENCIES(NAME)
|
leo_sobral@2
|
6185 |
# ----------------------
|
leo_sobral@2
|
6186 |
# See how the compiler implements dependency checking.
|
leo_sobral@2
|
6187 |
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
leo_sobral@2
|
6188 |
# We try a few techniques and use that to set a single cache variable.
|
leo_sobral@2
|
6189 |
#
|
leo_sobral@2
|
6190 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
leo_sobral@2
|
6191 |
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
leo_sobral@2
|
6192 |
# dependency, and given that the user is not expected to run this macro,
|
leo_sobral@2
|
6193 |
# just rely on AC_PROG_CC.
|
leo_sobral@2
|
6194 |
AC_DEFUN([_AM_DEPENDENCIES],
|
leo_sobral@2
|
6195 |
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
leo_sobral@2
|
6196 |
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
leo_sobral@2
|
6197 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
leo_sobral@2
|
6198 |
AC_REQUIRE([AM_DEP_TRACK])dnl
|
leo_sobral@2
|
6199 |
|
leo_sobral@2
|
6200 |
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
leo_sobral@2
|
6201 |
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
leo_sobral@2
|
6202 |
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
leo_sobral@2
|
6203 |
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
leo_sobral@2
|
6204 |
[depcc="$$1" am_compiler_list=])
|
leo_sobral@2
|
6205 |
|
leo_sobral@2
|
6206 |
AC_CACHE_CHECK([dependency style of $depcc],
|
leo_sobral@2
|
6207 |
[am_cv_$1_dependencies_compiler_type],
|
leo_sobral@2
|
6208 |
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
leo_sobral@2
|
6209 |
# We make a subdir and do the tests there. Otherwise we can end up
|
leo_sobral@2
|
6210 |
# making bogus files that we don't know about and never remove. For
|
leo_sobral@2
|
6211 |
# instance it was reported that on HP-UX the gcc test will end up
|
leo_sobral@2
|
6212 |
# making a dummy file named `D' -- because `-MD' means `put the output
|
leo_sobral@2
|
6213 |
# in D'.
|
leo_sobral@2
|
6214 |
mkdir conftest.dir
|
leo_sobral@2
|
6215 |
# Copy depcomp to subdir because otherwise we won't find it if we're
|
leo_sobral@2
|
6216 |
# using a relative directory.
|
leo_sobral@2
|
6217 |
cp "$am_depcomp" conftest.dir
|
leo_sobral@2
|
6218 |
cd conftest.dir
|
leo_sobral@2
|
6219 |
# We will build objects and dependencies in a subdirectory because
|
leo_sobral@2
|
6220 |
# it helps to detect inapplicable dependency modes. For instance
|
leo_sobral@2
|
6221 |
# both Tru64's cc and ICC support -MD to output dependencies as a
|
leo_sobral@2
|
6222 |
# side effect of compilation, but ICC will put the dependencies in
|
leo_sobral@2
|
6223 |
# the current directory while Tru64 will put them in the object
|
leo_sobral@2
|
6224 |
# directory.
|
leo_sobral@2
|
6225 |
mkdir sub
|
leo_sobral@2
|
6226 |
|
leo_sobral@2
|
6227 |
am_cv_$1_dependencies_compiler_type=none
|
leo_sobral@2
|
6228 |
if test "$am_compiler_list" = ""; then
|
leo_sobral@2
|
6229 |
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
leo_sobral@2
|
6230 |
fi
|
leo_sobral@2
|
6231 |
for depmode in $am_compiler_list; do
|
leo_sobral@2
|
6232 |
# Setup a source with many dependencies, because some compilers
|
leo_sobral@2
|
6233 |
# like to wrap large dependency lists on column 80 (with \), and
|
leo_sobral@2
|
6234 |
# we should not choose a depcomp mode which is confused by this.
|
leo_sobral@2
|
6235 |
#
|
leo_sobral@2
|
6236 |
# We need to recreate these files for each test, as the compiler may
|
leo_sobral@2
|
6237 |
# overwrite some of them when testing with obscure command lines.
|
leo_sobral@2
|
6238 |
# This happens at least with the AIX C compiler.
|
leo_sobral@2
|
6239 |
: > sub/conftest.c
|
leo_sobral@2
|
6240 |
for i in 1 2 3 4 5 6; do
|
leo_sobral@2
|
6241 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
leo_sobral@2
|
6242 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
leo_sobral@2
|
6243 |
# Solaris 8's {/usr,}/bin/sh.
|
leo_sobral@2
|
6244 |
touch sub/conftst$i.h
|
leo_sobral@2
|
6245 |
done
|
leo_sobral@2
|
6246 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
leo_sobral@2
|
6247 |
|
leo_sobral@2
|
6248 |
case $depmode in
|
leo_sobral@2
|
6249 |
nosideeffect)
|
leo_sobral@2
|
6250 |
# after this tag, mechanisms are not by side-effect, so they'll
|
leo_sobral@2
|
6251 |
# only be used when explicitly requested
|
leo_sobral@2
|
6252 |
if test "x$enable_dependency_tracking" = xyes; then
|
leo_sobral@2
|
6253 |
continue
|
leo_sobral@2
|
6254 |
else
|
leo_sobral@2
|
6255 |
break
|
leo_sobral@2
|
6256 |
fi
|
leo_sobral@2
|
6257 |
;;
|
leo_sobral@2
|
6258 |
none) break ;;
|
leo_sobral@2
|
6259 |
esac
|
leo_sobral@2
|
6260 |
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
leo_sobral@2
|
6261 |
# mode. It turns out that the SunPro C++ compiler does not properly
|
leo_sobral@2
|
6262 |
# handle `-M -o', and we need to detect this.
|
leo_sobral@2
|
6263 |
if depmode=$depmode \
|
leo_sobral@2
|
6264 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
leo_sobral@2
|
6265 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
leo_sobral@2
|
6266 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
leo_sobral@2
|
6267 |
>/dev/null 2>conftest.err &&
|
leo_sobral@2
|
6268 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
leo_sobral@2
|
6269 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
leo_sobral@2
|
6270 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
leo_sobral@2
|
6271 |
# icc doesn't choke on unknown options, it will just issue warnings
|
leo_sobral@2
|
6272 |
# or remarks (even with -Werror). So we grep stderr for any message
|
leo_sobral@2
|
6273 |
# that says an option was ignored or not supported.
|
leo_sobral@2
|
6274 |
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
leo_sobral@2
|
6275 |
# icc: Command line warning: ignoring option '-M'; no argument required
|
leo_sobral@2
|
6276 |
# The diagnosis changed in icc 8.0:
|
leo_sobral@2
|
6277 |
# icc: Command line remark: option '-MP' not supported
|
leo_sobral@2
|
6278 |
if (grep 'ignoring option' conftest.err ||
|
leo_sobral@2
|
6279 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
leo_sobral@2
|
6280 |
am_cv_$1_dependencies_compiler_type=$depmode
|
leo_sobral@2
|
6281 |
break
|
leo_sobral@2
|
6282 |
fi
|
leo_sobral@2
|
6283 |
fi
|
leo_sobral@2
|
6284 |
done
|
leo_sobral@2
|
6285 |
|
leo_sobral@2
|
6286 |
cd ..
|
leo_sobral@2
|
6287 |
rm -rf conftest.dir
|
leo_sobral@2
|
6288 |
else
|
leo_sobral@2
|
6289 |
am_cv_$1_dependencies_compiler_type=none
|
leo_sobral@2
|
6290 |
fi
|
leo_sobral@2
|
6291 |
])
|
leo_sobral@2
|
6292 |
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
leo_sobral@2
|
6293 |
AM_CONDITIONAL([am__fastdep$1], [
|
leo_sobral@2
|
6294 |
test "x$enable_dependency_tracking" != xno \
|
leo_sobral@2
|
6295 |
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
leo_sobral@2
|
6296 |
])
|
leo_sobral@2
|
6297 |
|
leo_sobral@2
|
6298 |
|
leo_sobral@2
|
6299 |
# AM_SET_DEPDIR
|
leo_sobral@2
|
6300 |
# -------------
|
leo_sobral@2
|
6301 |
# Choose a directory name for dependency files.
|
leo_sobral@2
|
6302 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
leo_sobral@2
|
6303 |
AC_DEFUN([AM_SET_DEPDIR],
|
leo_sobral@2
|
6304 |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
leo_sobral@2
|
6305 |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
leo_sobral@2
|
6306 |
])
|
leo_sobral@2
|
6307 |
|
leo_sobral@2
|
6308 |
|
leo_sobral@2
|
6309 |
# AM_DEP_TRACK
|
leo_sobral@2
|
6310 |
# ------------
|
leo_sobral@2
|
6311 |
AC_DEFUN([AM_DEP_TRACK],
|
leo_sobral@2
|
6312 |
[AC_ARG_ENABLE(dependency-tracking,
|
leo_sobral@2
|
6313 |
[ --disable-dependency-tracking speeds up one-time build
|
leo_sobral@2
|
6314 |
--enable-dependency-tracking do not reject slow dependency extractors])
|
leo_sobral@2
|
6315 |
if test "x$enable_dependency_tracking" != xno; then
|
leo_sobral@2
|
6316 |
am_depcomp="$ac_aux_dir/depcomp"
|
leo_sobral@2
|
6317 |
AMDEPBACKSLASH='\'
|
leo_sobral@2
|
6318 |
fi
|
leo_sobral@2
|
6319 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
leo_sobral@2
|
6320 |
AC_SUBST([AMDEPBACKSLASH])
|
leo_sobral@2
|
6321 |
])
|
leo_sobral@2
|
6322 |
|
leo_sobral@2
|
6323 |
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
leo_sobral@2
|
6324 |
|
leo_sobral@2
|
6325 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
leo_sobral@2
|
6326 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
6327 |
#
|
leo_sobral@2
|
6328 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6329 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6330 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6331 |
|
leo_sobral@2
|
6332 |
#serial 3
|
leo_sobral@2
|
6333 |
|
leo_sobral@2
|
6334 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
leo_sobral@2
|
6335 |
# ------------------------------
|
leo_sobral@2
|
6336 |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
leo_sobral@2
|
6337 |
[for mf in $CONFIG_FILES; do
|
leo_sobral@2
|
6338 |
# Strip MF so we end up with the name of the file.
|
leo_sobral@2
|
6339 |
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
leo_sobral@2
|
6340 |
# Check whether this is an Automake generated Makefile or not.
|
leo_sobral@2
|
6341 |
# We used to match only the files named `Makefile.in', but
|
leo_sobral@2
|
6342 |
# some people rename them; so instead we look at the file content.
|
leo_sobral@2
|
6343 |
# Grep'ing the first line is not enough: some people post-process
|
leo_sobral@2
|
6344 |
# each Makefile.in and add a new line on top of each file to say so.
|
leo_sobral@2
|
6345 |
# So let's grep whole file.
|
leo_sobral@2
|
6346 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
leo_sobral@2
|
6347 |
dirpart=`AS_DIRNAME("$mf")`
|
leo_sobral@2
|
6348 |
else
|
leo_sobral@2
|
6349 |
continue
|
leo_sobral@2
|
6350 |
fi
|
leo_sobral@2
|
6351 |
# Extract the definition of DEPDIR, am__include, and am__quote
|
leo_sobral@2
|
6352 |
# from the Makefile without running `make'.
|
leo_sobral@2
|
6353 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
leo_sobral@2
|
6354 |
test -z "$DEPDIR" && continue
|
leo_sobral@2
|
6355 |
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
leo_sobral@2
|
6356 |
test -z "am__include" && continue
|
leo_sobral@2
|
6357 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
leo_sobral@2
|
6358 |
# When using ansi2knr, U may be empty or an underscore; expand it
|
leo_sobral@2
|
6359 |
U=`sed -n 's/^U = //p' < "$mf"`
|
leo_sobral@2
|
6360 |
# Find all dependency output files, they are included files with
|
leo_sobral@2
|
6361 |
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
leo_sobral@2
|
6362 |
# simplest approach to changing $(DEPDIR) to its actual value in the
|
leo_sobral@2
|
6363 |
# expansion.
|
leo_sobral@2
|
6364 |
for file in `sed -n "
|
leo_sobral@2
|
6365 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
leo_sobral@2
|
6366 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
leo_sobral@2
|
6367 |
# Make sure the directory exists.
|
leo_sobral@2
|
6368 |
test -f "$dirpart/$file" && continue
|
leo_sobral@2
|
6369 |
fdir=`AS_DIRNAME(["$file"])`
|
leo_sobral@2
|
6370 |
AS_MKDIR_P([$dirpart/$fdir])
|
leo_sobral@2
|
6371 |
# echo "creating $dirpart/$file"
|
leo_sobral@2
|
6372 |
echo '# dummy' > "$dirpart/$file"
|
leo_sobral@2
|
6373 |
done
|
leo_sobral@2
|
6374 |
done
|
leo_sobral@2
|
6375 |
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
leo_sobral@2
|
6376 |
|
leo_sobral@2
|
6377 |
|
leo_sobral@2
|
6378 |
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
leo_sobral@2
|
6379 |
# -----------------------------
|
leo_sobral@2
|
6380 |
# This macro should only be invoked once -- use via AC_REQUIRE.
|
leo_sobral@2
|
6381 |
#
|
leo_sobral@2
|
6382 |
# This code is only required when automatic dependency tracking
|
leo_sobral@2
|
6383 |
# is enabled. FIXME. This creates each `.P' file that we will
|
leo_sobral@2
|
6384 |
# need in order to bootstrap the dependency handling code.
|
leo_sobral@2
|
6385 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
leo_sobral@2
|
6386 |
[AC_CONFIG_COMMANDS([depfiles],
|
leo_sobral@2
|
6387 |
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
leo_sobral@2
|
6388 |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
leo_sobral@2
|
6389 |
])
|
leo_sobral@2
|
6390 |
|
leo_sobral@2
|
6391 |
# Do all the work for Automake. -*- Autoconf -*-
|
leo_sobral@2
|
6392 |
|
leo_sobral@2
|
6393 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
leo_sobral@2
|
6394 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
6395 |
#
|
leo_sobral@2
|
6396 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6397 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6398 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6399 |
|
leo_sobral@2
|
6400 |
# serial 12
|
leo_sobral@2
|
6401 |
|
leo_sobral@2
|
6402 |
# This macro actually does too much. Some checks are only needed if
|
leo_sobral@2
|
6403 |
# your package does certain things. But this isn't really a big deal.
|
leo_sobral@2
|
6404 |
|
leo_sobral@2
|
6405 |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
leo_sobral@2
|
6406 |
# AM_INIT_AUTOMAKE([OPTIONS])
|
leo_sobral@2
|
6407 |
# -----------------------------------------------
|
leo_sobral@2
|
6408 |
# The call with PACKAGE and VERSION arguments is the old style
|
leo_sobral@2
|
6409 |
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
leo_sobral@2
|
6410 |
# and VERSION should now be passed to AC_INIT and removed from
|
leo_sobral@2
|
6411 |
# the call to AM_INIT_AUTOMAKE.
|
leo_sobral@2
|
6412 |
# We support both call styles for the transition. After
|
leo_sobral@2
|
6413 |
# the next Automake release, Autoconf can make the AC_INIT
|
leo_sobral@2
|
6414 |
# arguments mandatory, and then we can depend on a new Autoconf
|
leo_sobral@2
|
6415 |
# release and drop the old call support.
|
leo_sobral@2
|
6416 |
AC_DEFUN([AM_INIT_AUTOMAKE],
|
leo_sobral@2
|
6417 |
[AC_PREREQ([2.58])dnl
|
leo_sobral@2
|
6418 |
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
leo_sobral@2
|
6419 |
dnl the ones we care about.
|
leo_sobral@2
|
6420 |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
leo_sobral@2
|
6421 |
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
leo_sobral@2
|
6422 |
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
leo_sobral@2
|
6423 |
# test to see if srcdir already configured
|
leo_sobral@2
|
6424 |
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
leo_sobral@2
|
6425 |
test -f $srcdir/config.status; then
|
leo_sobral@2
|
6426 |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
leo_sobral@2
|
6427 |
fi
|
leo_sobral@2
|
6428 |
|
leo_sobral@2
|
6429 |
# test whether we have cygpath
|
leo_sobral@2
|
6430 |
if test -z "$CYGPATH_W"; then
|
leo_sobral@2
|
6431 |
if (cygpath --version) >/dev/null 2>/dev/null; then
|
leo_sobral@2
|
6432 |
CYGPATH_W='cygpath -w'
|
leo_sobral@2
|
6433 |
else
|
leo_sobral@2
|
6434 |
CYGPATH_W=echo
|
leo_sobral@2
|
6435 |
fi
|
leo_sobral@2
|
6436 |
fi
|
leo_sobral@2
|
6437 |
AC_SUBST([CYGPATH_W])
|
leo_sobral@2
|
6438 |
|
leo_sobral@2
|
6439 |
# Define the identity of the package.
|
leo_sobral@2
|
6440 |
dnl Distinguish between old-style and new-style calls.
|
leo_sobral@2
|
6441 |
m4_ifval([$2],
|
leo_sobral@2
|
6442 |
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
leo_sobral@2
|
6443 |
AC_SUBST([PACKAGE], [$1])dnl
|
leo_sobral@2
|
6444 |
AC_SUBST([VERSION], [$2])],
|
leo_sobral@2
|
6445 |
[_AM_SET_OPTIONS([$1])dnl
|
leo_sobral@2
|
6446 |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
leo_sobral@2
|
6447 |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
leo_sobral@2
|
6448 |
|
leo_sobral@2
|
6449 |
_AM_IF_OPTION([no-define],,
|
leo_sobral@2
|
6450 |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
leo_sobral@2
|
6451 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
leo_sobral@2
|
6452 |
|
leo_sobral@2
|
6453 |
# Some tools Automake needs.
|
leo_sobral@2
|
6454 |
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
leo_sobral@2
|
6455 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
leo_sobral@2
|
6456 |
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
leo_sobral@2
|
6457 |
AM_MISSING_PROG(AUTOCONF, autoconf)
|
leo_sobral@2
|
6458 |
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
leo_sobral@2
|
6459 |
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
leo_sobral@2
|
6460 |
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
leo_sobral@2
|
6461 |
AM_PROG_INSTALL_SH
|
leo_sobral@2
|
6462 |
AM_PROG_INSTALL_STRIP
|
leo_sobral@2
|
6463 |
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
leo_sobral@2
|
6464 |
# We need awk for the "check" target. The system "awk" is bad on
|
leo_sobral@2
|
6465 |
# some platforms.
|
leo_sobral@2
|
6466 |
AC_REQUIRE([AC_PROG_AWK])dnl
|
leo_sobral@2
|
6467 |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
leo_sobral@2
|
6468 |
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
leo_sobral@2
|
6469 |
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
leo_sobral@2
|
6470 |
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
leo_sobral@2
|
6471 |
[_AM_PROG_TAR([v7])])])
|
leo_sobral@2
|
6472 |
_AM_IF_OPTION([no-dependencies],,
|
leo_sobral@2
|
6473 |
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
leo_sobral@2
|
6474 |
[_AM_DEPENDENCIES(CC)],
|
leo_sobral@2
|
6475 |
[define([AC_PROG_CC],
|
leo_sobral@2
|
6476 |
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
leo_sobral@2
|
6477 |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
leo_sobral@2
|
6478 |
[_AM_DEPENDENCIES(CXX)],
|
leo_sobral@2
|
6479 |
[define([AC_PROG_CXX],
|
leo_sobral@2
|
6480 |
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
leo_sobral@2
|
6481 |
])
|
leo_sobral@2
|
6482 |
])
|
leo_sobral@2
|
6483 |
|
leo_sobral@2
|
6484 |
|
leo_sobral@2
|
6485 |
# When config.status generates a header, we must update the stamp-h file.
|
leo_sobral@2
|
6486 |
# This file resides in the same directory as the config header
|
leo_sobral@2
|
6487 |
# that is generated. The stamp files are numbered to have different names.
|
leo_sobral@2
|
6488 |
|
leo_sobral@2
|
6489 |
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
leo_sobral@2
|
6490 |
# loop where config.status creates the headers, so we can generate
|
leo_sobral@2
|
6491 |
# our stamp files there.
|
leo_sobral@2
|
6492 |
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
leo_sobral@2
|
6493 |
[# Compute $1's index in $config_headers.
|
leo_sobral@2
|
6494 |
_am_stamp_count=1
|
leo_sobral@2
|
6495 |
for _am_header in $config_headers :; do
|
leo_sobral@2
|
6496 |
case $_am_header in
|
leo_sobral@2
|
6497 |
$1 | $1:* )
|
leo_sobral@2
|
6498 |
break ;;
|
leo_sobral@2
|
6499 |
* )
|
leo_sobral@2
|
6500 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
leo_sobral@2
|
6501 |
esac
|
leo_sobral@2
|
6502 |
done
|
leo_sobral@2
|
6503 |
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
leo_sobral@2
|
6504 |
|
leo_sobral@2
|
6505 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6506 |
#
|
leo_sobral@2
|
6507 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6508 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6509 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6510 |
|
leo_sobral@2
|
6511 |
# AM_PROG_INSTALL_SH
|
leo_sobral@2
|
6512 |
# ------------------
|
leo_sobral@2
|
6513 |
# Define $install_sh.
|
leo_sobral@2
|
6514 |
AC_DEFUN([AM_PROG_INSTALL_SH],
|
leo_sobral@2
|
6515 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
leo_sobral@2
|
6516 |
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
leo_sobral@2
|
6517 |
AC_SUBST(install_sh)])
|
leo_sobral@2
|
6518 |
|
leo_sobral@2
|
6519 |
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6520 |
#
|
leo_sobral@2
|
6521 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6522 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6523 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6524 |
|
leo_sobral@2
|
6525 |
# serial 2
|
leo_sobral@2
|
6526 |
|
leo_sobral@2
|
6527 |
# Check whether the underlying file-system supports filenames
|
leo_sobral@2
|
6528 |
# with a leading dot. For instance MS-DOS doesn't.
|
leo_sobral@2
|
6529 |
AC_DEFUN([AM_SET_LEADING_DOT],
|
leo_sobral@2
|
6530 |
[rm -rf .tst 2>/dev/null
|
leo_sobral@2
|
6531 |
mkdir .tst 2>/dev/null
|
leo_sobral@2
|
6532 |
if test -d .tst; then
|
leo_sobral@2
|
6533 |
am__leading_dot=.
|
leo_sobral@2
|
6534 |
else
|
leo_sobral@2
|
6535 |
am__leading_dot=_
|
leo_sobral@2
|
6536 |
fi
|
leo_sobral@2
|
6537 |
rmdir .tst 2>/dev/null
|
leo_sobral@2
|
6538 |
AC_SUBST([am__leading_dot])])
|
leo_sobral@2
|
6539 |
|
leo_sobral@2
|
6540 |
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
leo_sobral@2
|
6541 |
# From Jim Meyering
|
leo_sobral@2
|
6542 |
|
leo_sobral@2
|
6543 |
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
leo_sobral@2
|
6544 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
6545 |
#
|
leo_sobral@2
|
6546 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6547 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6548 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6549 |
|
leo_sobral@2
|
6550 |
# serial 4
|
leo_sobral@2
|
6551 |
|
leo_sobral@2
|
6552 |
AC_DEFUN([AM_MAINTAINER_MODE],
|
leo_sobral@2
|
6553 |
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
leo_sobral@2
|
6554 |
dnl maintainer-mode is disabled by default
|
leo_sobral@2
|
6555 |
AC_ARG_ENABLE(maintainer-mode,
|
leo_sobral@2
|
6556 |
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
leo_sobral@2
|
6557 |
(and sometimes confusing) to the casual installer],
|
leo_sobral@2
|
6558 |
USE_MAINTAINER_MODE=$enableval,
|
leo_sobral@2
|
6559 |
USE_MAINTAINER_MODE=no)
|
leo_sobral@2
|
6560 |
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
leo_sobral@2
|
6561 |
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
leo_sobral@2
|
6562 |
MAINT=$MAINTAINER_MODE_TRUE
|
leo_sobral@2
|
6563 |
AC_SUBST(MAINT)dnl
|
leo_sobral@2
|
6564 |
]
|
leo_sobral@2
|
6565 |
)
|
leo_sobral@2
|
6566 |
|
leo_sobral@2
|
6567 |
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
leo_sobral@2
|
6568 |
|
leo_sobral@2
|
6569 |
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
leo_sobral@2
|
6570 |
|
leo_sobral@2
|
6571 |
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6572 |
#
|
leo_sobral@2
|
6573 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6574 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6575 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6576 |
|
leo_sobral@2
|
6577 |
# serial 3
|
leo_sobral@2
|
6578 |
|
leo_sobral@2
|
6579 |
# AM_MAKE_INCLUDE()
|
leo_sobral@2
|
6580 |
# -----------------
|
leo_sobral@2
|
6581 |
# Check to see how make treats includes.
|
leo_sobral@2
|
6582 |
AC_DEFUN([AM_MAKE_INCLUDE],
|
leo_sobral@2
|
6583 |
[am_make=${MAKE-make}
|
leo_sobral@2
|
6584 |
cat > confinc << 'END'
|
leo_sobral@2
|
6585 |
am__doit:
|
leo_sobral@2
|
6586 |
@echo done
|
leo_sobral@2
|
6587 |
.PHONY: am__doit
|
leo_sobral@2
|
6588 |
END
|
leo_sobral@2
|
6589 |
# If we don't find an include directive, just comment out the code.
|
leo_sobral@2
|
6590 |
AC_MSG_CHECKING([for style of include used by $am_make])
|
leo_sobral@2
|
6591 |
am__include="#"
|
leo_sobral@2
|
6592 |
am__quote=
|
leo_sobral@2
|
6593 |
_am_result=none
|
leo_sobral@2
|
6594 |
# First try GNU make style include.
|
leo_sobral@2
|
6595 |
echo "include confinc" > confmf
|
leo_sobral@2
|
6596 |
# We grep out `Entering directory' and `Leaving directory'
|
leo_sobral@2
|
6597 |
# messages which can occur if `w' ends up in MAKEFLAGS.
|
leo_sobral@2
|
6598 |
# In particular we don't look at `^make:' because GNU make might
|
leo_sobral@2
|
6599 |
# be invoked under some other name (usually "gmake"), in which
|
leo_sobral@2
|
6600 |
# case it prints its new name instead of `make'.
|
leo_sobral@2
|
6601 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
leo_sobral@2
|
6602 |
am__include=include
|
leo_sobral@2
|
6603 |
am__quote=
|
leo_sobral@2
|
6604 |
_am_result=GNU
|
leo_sobral@2
|
6605 |
fi
|
leo_sobral@2
|
6606 |
# Now try BSD make style include.
|
leo_sobral@2
|
6607 |
if test "$am__include" = "#"; then
|
leo_sobral@2
|
6608 |
echo '.include "confinc"' > confmf
|
leo_sobral@2
|
6609 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
leo_sobral@2
|
6610 |
am__include=.include
|
leo_sobral@2
|
6611 |
am__quote="\""
|
leo_sobral@2
|
6612 |
_am_result=BSD
|
leo_sobral@2
|
6613 |
fi
|
leo_sobral@2
|
6614 |
fi
|
leo_sobral@2
|
6615 |
AC_SUBST([am__include])
|
leo_sobral@2
|
6616 |
AC_SUBST([am__quote])
|
leo_sobral@2
|
6617 |
AC_MSG_RESULT([$_am_result])
|
leo_sobral@2
|
6618 |
rm -f confinc confmf
|
leo_sobral@2
|
6619 |
])
|
leo_sobral@2
|
6620 |
|
leo_sobral@2
|
6621 |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
leo_sobral@2
|
6622 |
|
leo_sobral@2
|
6623 |
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
leo_sobral@2
|
6624 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
6625 |
#
|
leo_sobral@2
|
6626 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6627 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6628 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6629 |
|
leo_sobral@2
|
6630 |
# serial 4
|
leo_sobral@2
|
6631 |
|
leo_sobral@2
|
6632 |
# AM_MISSING_PROG(NAME, PROGRAM)
|
leo_sobral@2
|
6633 |
# ------------------------------
|
leo_sobral@2
|
6634 |
AC_DEFUN([AM_MISSING_PROG],
|
leo_sobral@2
|
6635 |
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
leo_sobral@2
|
6636 |
$1=${$1-"${am_missing_run}$2"}
|
leo_sobral@2
|
6637 |
AC_SUBST($1)])
|
leo_sobral@2
|
6638 |
|
leo_sobral@2
|
6639 |
|
leo_sobral@2
|
6640 |
# AM_MISSING_HAS_RUN
|
leo_sobral@2
|
6641 |
# ------------------
|
leo_sobral@2
|
6642 |
# Define MISSING if not defined so far and test if it supports --run.
|
leo_sobral@2
|
6643 |
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
leo_sobral@2
|
6644 |
AC_DEFUN([AM_MISSING_HAS_RUN],
|
leo_sobral@2
|
6645 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
leo_sobral@2
|
6646 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
leo_sobral@2
|
6647 |
# Use eval to expand $SHELL
|
leo_sobral@2
|
6648 |
if eval "$MISSING --run true"; then
|
leo_sobral@2
|
6649 |
am_missing_run="$MISSING --run "
|
leo_sobral@2
|
6650 |
else
|
leo_sobral@2
|
6651 |
am_missing_run=
|
leo_sobral@2
|
6652 |
AC_MSG_WARN([`missing' script is too old or missing])
|
leo_sobral@2
|
6653 |
fi
|
leo_sobral@2
|
6654 |
])
|
leo_sobral@2
|
6655 |
|
leo_sobral@2
|
6656 |
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6657 |
#
|
leo_sobral@2
|
6658 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6659 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6660 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6661 |
|
leo_sobral@2
|
6662 |
# AM_PROG_MKDIR_P
|
leo_sobral@2
|
6663 |
# ---------------
|
leo_sobral@2
|
6664 |
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
leo_sobral@2
|
6665 |
#
|
leo_sobral@2
|
6666 |
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
leo_sobral@2
|
6667 |
# created by `make install' are always world readable, even if the
|
leo_sobral@2
|
6668 |
# installer happens to have an overly restrictive umask (e.g. 077).
|
leo_sobral@2
|
6669 |
# This was a mistake. There are at least two reasons why we must not
|
leo_sobral@2
|
6670 |
# use `-m 0755':
|
leo_sobral@2
|
6671 |
# - it causes special bits like SGID to be ignored,
|
leo_sobral@2
|
6672 |
# - it may be too restrictive (some setups expect 775 directories).
|
leo_sobral@2
|
6673 |
#
|
leo_sobral@2
|
6674 |
# Do not use -m 0755 and let people choose whatever they expect by
|
leo_sobral@2
|
6675 |
# setting umask.
|
leo_sobral@2
|
6676 |
#
|
leo_sobral@2
|
6677 |
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
leo_sobral@2
|
6678 |
# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
leo_sobral@2
|
6679 |
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
leo_sobral@2
|
6680 |
# concurrently, both version can detect that a/ is missing, but only
|
leo_sobral@2
|
6681 |
# one can create it and the other will error out. Consequently we
|
leo_sobral@2
|
6682 |
# restrict ourselves to GNU make (using the --version option ensures
|
leo_sobral@2
|
6683 |
# this.)
|
leo_sobral@2
|
6684 |
AC_DEFUN([AM_PROG_MKDIR_P],
|
leo_sobral@2
|
6685 |
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
leo_sobral@2
|
6686 |
# We used to keeping the `.' as first argument, in order to
|
leo_sobral@2
|
6687 |
# allow $(mkdir_p) to be used without argument. As in
|
leo_sobral@2
|
6688 |
# $(mkdir_p) $(somedir)
|
leo_sobral@2
|
6689 |
# where $(somedir) is conditionally defined. However this is wrong
|
leo_sobral@2
|
6690 |
# for two reasons:
|
leo_sobral@2
|
6691 |
# 1. if the package is installed by a user who cannot write `.'
|
leo_sobral@2
|
6692 |
# make install will fail,
|
leo_sobral@2
|
6693 |
# 2. the above comment should most certainly read
|
leo_sobral@2
|
6694 |
# $(mkdir_p) $(DESTDIR)$(somedir)
|
leo_sobral@2
|
6695 |
# so it does not work when $(somedir) is undefined and
|
leo_sobral@2
|
6696 |
# $(DESTDIR) is not.
|
leo_sobral@2
|
6697 |
# To support the latter case, we have to write
|
leo_sobral@2
|
6698 |
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
leo_sobral@2
|
6699 |
# so the `.' trick is pointless.
|
leo_sobral@2
|
6700 |
mkdir_p='mkdir -p --'
|
leo_sobral@2
|
6701 |
else
|
leo_sobral@2
|
6702 |
# On NextStep and OpenStep, the `mkdir' command does not
|
leo_sobral@2
|
6703 |
# recognize any option. It will interpret all options as
|
leo_sobral@2
|
6704 |
# directories to create, and then abort because `.' already
|
leo_sobral@2
|
6705 |
# exists.
|
leo_sobral@2
|
6706 |
for d in ./-p ./--version;
|
leo_sobral@2
|
6707 |
do
|
leo_sobral@2
|
6708 |
test -d $d && rmdir $d
|
leo_sobral@2
|
6709 |
done
|
leo_sobral@2
|
6710 |
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
leo_sobral@2
|
6711 |
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
leo_sobral@2
|
6712 |
mkdir_p='$(mkinstalldirs)'
|
leo_sobral@2
|
6713 |
else
|
leo_sobral@2
|
6714 |
mkdir_p='$(install_sh) -d'
|
leo_sobral@2
|
6715 |
fi
|
leo_sobral@2
|
6716 |
fi
|
leo_sobral@2
|
6717 |
AC_SUBST([mkdir_p])])
|
leo_sobral@2
|
6718 |
|
leo_sobral@2
|
6719 |
# Helper functions for option handling. -*- Autoconf -*-
|
leo_sobral@2
|
6720 |
|
leo_sobral@2
|
6721 |
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6722 |
#
|
leo_sobral@2
|
6723 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6724 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6725 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6726 |
|
leo_sobral@2
|
6727 |
# serial 3
|
leo_sobral@2
|
6728 |
|
leo_sobral@2
|
6729 |
# _AM_MANGLE_OPTION(NAME)
|
leo_sobral@2
|
6730 |
# -----------------------
|
leo_sobral@2
|
6731 |
AC_DEFUN([_AM_MANGLE_OPTION],
|
leo_sobral@2
|
6732 |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
leo_sobral@2
|
6733 |
|
leo_sobral@2
|
6734 |
# _AM_SET_OPTION(NAME)
|
leo_sobral@2
|
6735 |
# ------------------------------
|
leo_sobral@2
|
6736 |
# Set option NAME. Presently that only means defining a flag for this option.
|
leo_sobral@2
|
6737 |
AC_DEFUN([_AM_SET_OPTION],
|
leo_sobral@2
|
6738 |
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
leo_sobral@2
|
6739 |
|
leo_sobral@2
|
6740 |
# _AM_SET_OPTIONS(OPTIONS)
|
leo_sobral@2
|
6741 |
# ----------------------------------
|
leo_sobral@2
|
6742 |
# OPTIONS is a space-separated list of Automake options.
|
leo_sobral@2
|
6743 |
AC_DEFUN([_AM_SET_OPTIONS],
|
leo_sobral@2
|
6744 |
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
leo_sobral@2
|
6745 |
|
leo_sobral@2
|
6746 |
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
leo_sobral@2
|
6747 |
# -------------------------------------------
|
leo_sobral@2
|
6748 |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
leo_sobral@2
|
6749 |
AC_DEFUN([_AM_IF_OPTION],
|
leo_sobral@2
|
6750 |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
leo_sobral@2
|
6751 |
|
leo_sobral@2
|
6752 |
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
leo_sobral@2
|
6753 |
|
leo_sobral@2
|
6754 |
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
leo_sobral@2
|
6755 |
# Free Software Foundation, Inc.
|
leo_sobral@2
|
6756 |
#
|
leo_sobral@2
|
6757 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6758 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6759 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6760 |
|
leo_sobral@2
|
6761 |
# serial 4
|
leo_sobral@2
|
6762 |
|
leo_sobral@2
|
6763 |
# AM_SANITY_CHECK
|
leo_sobral@2
|
6764 |
# ---------------
|
leo_sobral@2
|
6765 |
AC_DEFUN([AM_SANITY_CHECK],
|
leo_sobral@2
|
6766 |
[AC_MSG_CHECKING([whether build environment is sane])
|
leo_sobral@2
|
6767 |
# Just in case
|
leo_sobral@2
|
6768 |
sleep 1
|
leo_sobral@2
|
6769 |
echo timestamp > conftest.file
|
leo_sobral@2
|
6770 |
# Do `set' in a subshell so we don't clobber the current shell's
|
leo_sobral@2
|
6771 |
# arguments. Must try -L first in case configure is actually a
|
leo_sobral@2
|
6772 |
# symlink; some systems play weird games with the mod time of symlinks
|
leo_sobral@2
|
6773 |
# (eg FreeBSD returns the mod time of the symlink's containing
|
leo_sobral@2
|
6774 |
# directory).
|
leo_sobral@2
|
6775 |
if (
|
leo_sobral@2
|
6776 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
leo_sobral@2
|
6777 |
if test "$[*]" = "X"; then
|
leo_sobral@2
|
6778 |
# -L didn't work.
|
leo_sobral@2
|
6779 |
set X `ls -t $srcdir/configure conftest.file`
|
leo_sobral@2
|
6780 |
fi
|
leo_sobral@2
|
6781 |
rm -f conftest.file
|
leo_sobral@2
|
6782 |
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
leo_sobral@2
|
6783 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
leo_sobral@2
|
6784 |
|
leo_sobral@2
|
6785 |
# If neither matched, then we have a broken ls. This can happen
|
leo_sobral@2
|
6786 |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
leo_sobral@2
|
6787 |
# broken ls alias from the environment. This has actually
|
leo_sobral@2
|
6788 |
# happened. Such a system could not be considered "sane".
|
leo_sobral@2
|
6789 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
leo_sobral@2
|
6790 |
alias in your environment])
|
leo_sobral@2
|
6791 |
fi
|
leo_sobral@2
|
6792 |
|
leo_sobral@2
|
6793 |
test "$[2]" = conftest.file
|
leo_sobral@2
|
6794 |
)
|
leo_sobral@2
|
6795 |
then
|
leo_sobral@2
|
6796 |
# Ok.
|
leo_sobral@2
|
6797 |
:
|
leo_sobral@2
|
6798 |
else
|
leo_sobral@2
|
6799 |
AC_MSG_ERROR([newly created file is older than distributed files!
|
leo_sobral@2
|
6800 |
Check your system clock])
|
leo_sobral@2
|
6801 |
fi
|
leo_sobral@2
|
6802 |
AC_MSG_RESULT(yes)])
|
leo_sobral@2
|
6803 |
|
leo_sobral@2
|
6804 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6805 |
#
|
leo_sobral@2
|
6806 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6807 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6808 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6809 |
|
leo_sobral@2
|
6810 |
# AM_PROG_INSTALL_STRIP
|
leo_sobral@2
|
6811 |
# ---------------------
|
leo_sobral@2
|
6812 |
# One issue with vendor `install' (even GNU) is that you can't
|
leo_sobral@2
|
6813 |
# specify the program used to strip binaries. This is especially
|
leo_sobral@2
|
6814 |
# annoying in cross-compiling environments, where the build's strip
|
leo_sobral@2
|
6815 |
# is unlikely to handle the host's binaries.
|
leo_sobral@2
|
6816 |
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
leo_sobral@2
|
6817 |
# always use install-sh in `make install-strip', and initialize
|
leo_sobral@2
|
6818 |
# STRIPPROG with the value of the STRIP variable (set by the user).
|
leo_sobral@2
|
6819 |
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
leo_sobral@2
|
6820 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
leo_sobral@2
|
6821 |
# Installed binaries are usually stripped using `strip' when the user
|
leo_sobral@2
|
6822 |
# run `make install-strip'. However `strip' might not be the right
|
leo_sobral@2
|
6823 |
# tool to use in cross-compilation environments, therefore Automake
|
leo_sobral@2
|
6824 |
# will honor the `STRIP' environment variable to overrule this program.
|
leo_sobral@2
|
6825 |
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
leo_sobral@2
|
6826 |
if test "$cross_compiling" != no; then
|
leo_sobral@2
|
6827 |
AC_CHECK_TOOL([STRIP], [strip], :)
|
leo_sobral@2
|
6828 |
fi
|
leo_sobral@2
|
6829 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
leo_sobral@2
|
6830 |
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
leo_sobral@2
|
6831 |
|
leo_sobral@2
|
6832 |
# Check how to create a tarball. -*- Autoconf -*-
|
leo_sobral@2
|
6833 |
|
leo_sobral@2
|
6834 |
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
leo_sobral@2
|
6835 |
#
|
leo_sobral@2
|
6836 |
# This file is free software; the Free Software Foundation
|
leo_sobral@2
|
6837 |
# gives unlimited permission to copy and/or distribute it,
|
leo_sobral@2
|
6838 |
# with or without modifications, as long as this notice is preserved.
|
leo_sobral@2
|
6839 |
|
leo_sobral@2
|
6840 |
# serial 2
|
leo_sobral@2
|
6841 |
|
leo_sobral@2
|
6842 |
# _AM_PROG_TAR(FORMAT)
|
leo_sobral@2
|
6843 |
# --------------------
|
leo_sobral@2
|
6844 |
# Check how to create a tarball in format FORMAT.
|
leo_sobral@2
|
6845 |
# FORMAT should be one of `v7', `ustar', or `pax'.
|
leo_sobral@2
|
6846 |
#
|
leo_sobral@2
|
6847 |
# Substitute a variable $(am__tar) that is a command
|
leo_sobral@2
|
6848 |
# writing to stdout a FORMAT-tarball containing the directory
|
leo_sobral@2
|
6849 |
# $tardir.
|
leo_sobral@2
|
6850 |
# tardir=directory && $(am__tar) > result.tar
|
leo_sobral@2
|
6851 |
#
|
leo_sobral@2
|
6852 |
# Substitute a variable $(am__untar) that extract such
|
leo_sobral@2
|
6853 |
# a tarball read from stdin.
|
leo_sobral@2
|
6854 |
# $(am__untar) < result.tar
|
leo_sobral@2
|
6855 |
AC_DEFUN([_AM_PROG_TAR],
|
leo_sobral@2
|
6856 |
[# Always define AMTAR for backward compatibility.
|
leo_sobral@2
|
6857 |
AM_MISSING_PROG([AMTAR], [tar])
|
leo_sobral@2
|
6858 |
m4_if([$1], [v7],
|
leo_sobral@2
|
6859 |
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
leo_sobral@2
|
6860 |
[m4_case([$1], [ustar],, [pax],,
|
leo_sobral@2
|
6861 |
[m4_fatal([Unknown tar format])])
|
leo_sobral@2
|
6862 |
AC_MSG_CHECKING([how to create a $1 tar archive])
|
leo_sobral@2
|
6863 |
# Loop over all known methods to create a tar archive until one works.
|
leo_sobral@2
|
6864 |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
leo_sobral@2
|
6865 |
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
leo_sobral@2
|
6866 |
# Do not fold the above two line into one, because Tru64 sh and
|
leo_sobral@2
|
6867 |
# Solaris sh will not grok spaces in the rhs of `-'.
|
leo_sobral@2
|
6868 |
for _am_tool in $_am_tools
|
leo_sobral@2
|
6869 |
do
|
leo_sobral@2
|
6870 |
case $_am_tool in
|
leo_sobral@2
|
6871 |
gnutar)
|
leo_sobral@2
|
6872 |
for _am_tar in tar gnutar gtar;
|
leo_sobral@2
|
6873 |
do
|
leo_sobral@2
|
6874 |
AM_RUN_LOG([$_am_tar --version]) && break
|
leo_sobral@2
|
6875 |
done
|
leo_sobral@2
|
6876 |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
leo_sobral@2
|
6877 |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
leo_sobral@2
|
6878 |
am__untar="$_am_tar -xf -"
|
leo_sobral@2
|
6879 |
;;
|
leo_sobral@2
|
6880 |
plaintar)
|
leo_sobral@2
|
6881 |
# Must skip GNU tar: if it does not support --format= it doesn't create
|
leo_sobral@2
|
6882 |
# ustar tarball either.
|
leo_sobral@2
|
6883 |
(tar --version) >/dev/null 2>&1 && continue
|
leo_sobral@2
|
6884 |
am__tar='tar chf - "$$tardir"'
|
leo_sobral@2
|
6885 |
am__tar_='tar chf - "$tardir"'
|
leo_sobral@2
|
6886 |
am__untar='tar xf -'
|
leo_sobral@2
|
6887 |
;;
|
leo_sobral@2
|
6888 |
pax)
|
leo_sobral@2
|
6889 |
am__tar='pax -L -x $1 -w "$$tardir"'
|
leo_sobral@2
|
6890 |
am__tar_='pax -L -x $1 -w "$tardir"'
|
leo_sobral@2
|
6891 |
am__untar='pax -r'
|
leo_sobral@2
|
6892 |
;;
|
leo_sobral@2
|
6893 |
cpio)
|
leo_sobral@2
|
6894 |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
leo_sobral@2
|
6895 |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
leo_sobral@2
|
6896 |
am__untar='cpio -i -H $1 -d'
|
leo_sobral@2
|
6897 |
;;
|
leo_sobral@2
|
6898 |
none)
|
leo_sobral@2
|
6899 |
am__tar=false
|
leo_sobral@2
|
6900 |
am__tar_=false
|
leo_sobral@2
|
6901 |
am__untar=false
|
leo_sobral@2
|
6902 |
;;
|
leo_sobral@2
|
6903 |
esac
|
leo_sobral@2
|
6904 |
|
leo_sobral@2
|
6905 |
# If the value was cached, stop now. We just wanted to have am__tar
|
leo_sobral@2
|
6906 |
# and am__untar set.
|
leo_sobral@2
|
6907 |
test -n "${am_cv_prog_tar_$1}" && break
|
leo_sobral@2
|
6908 |
|
leo_sobral@2
|
6909 |
# tar/untar a dummy directory, and stop if the command works
|
leo_sobral@2
|
6910 |
rm -rf conftest.dir
|
leo_sobral@2
|
6911 |
mkdir conftest.dir
|
leo_sobral@2
|
6912 |
echo GrepMe > conftest.dir/file
|
leo_sobral@2
|
6913 |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
leo_sobral@2
|
6914 |
rm -rf conftest.dir
|
leo_sobral@2
|
6915 |
if test -s conftest.tar; then
|
leo_sobral@2
|
6916 |
AM_RUN_LOG([$am__untar <conftest.tar])
|
leo_sobral@2
|
6917 |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
leo_sobral@2
|
6918 |
fi
|
leo_sobral@2
|
6919 |
done
|
leo_sobral@2
|
6920 |
rm -rf conftest.dir
|
leo_sobral@2
|
6921 |
|
leo_sobral@2
|
6922 |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
leo_sobral@2
|
6923 |
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
leo_sobral@2
|
6924 |
AC_SUBST([am__tar])
|
leo_sobral@2
|
6925 |
AC_SUBST([am__untar])
|
leo_sobral@2
|
6926 |
]) # _AM_PROG_TAR
|
leo_sobral@2
|
6927 |
|
leo_sobral@2
|
6928 |
m4_include([m4/as-version.m4])
|