1 |
19 |
jeremybenn |
@%:@! /bin/sh
|
2 |
|
|
@%:@ From configure.in Id using automake version AC_ACVERSION.
|
3 |
|
|
@%:@ Guess values for system-dependent variables and create Makefiles.
|
4 |
|
|
@%:@ Generated by GNU Autoconf 2.61 for or1ksim 0.3.0.
|
5 |
|
|
@%:@
|
6 |
|
|
@%:@ Report bugs to .
|
7 |
|
|
@%:@
|
8 |
|
|
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
9 |
|
|
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
10 |
|
|
@%:@ This configure script is free software; the Free Software Foundation
|
11 |
|
|
@%:@ gives unlimited permission to copy, distribute and modify it.
|
12 |
|
|
## --------------------- ##
|
13 |
|
|
## M4sh Initialization. ##
|
14 |
|
|
## --------------------- ##
|
15 |
|
|
|
16 |
|
|
# Be more Bourne compatible
|
17 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
18 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
19 |
|
|
emulate sh
|
20 |
|
|
NULLCMD=:
|
21 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
22 |
|
|
# is contrary to our usage. Disable this feature.
|
23 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
24 |
|
|
setopt NO_GLOB_SUBST
|
25 |
|
|
else
|
26 |
|
|
case `(set -o) 2>/dev/null` in
|
27 |
|
|
*posix*) set -o posix ;;
|
28 |
|
|
esac
|
29 |
|
|
|
30 |
|
|
fi
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
# PATH needs CR
|
36 |
|
|
# Avoid depending upon Character Ranges.
|
37 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
38 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
39 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
40 |
|
|
as_cr_digits='0123456789'
|
41 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
42 |
|
|
|
43 |
|
|
# The user is always right.
|
44 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
45 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
46 |
|
|
echo "exit 0" >>conf$$.sh
|
47 |
|
|
chmod +x conf$$.sh
|
48 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
49 |
|
|
PATH_SEPARATOR=';'
|
50 |
|
|
else
|
51 |
|
|
PATH_SEPARATOR=:
|
52 |
|
|
fi
|
53 |
|
|
rm -f conf$$.sh
|
54 |
|
|
fi
|
55 |
|
|
|
56 |
|
|
# Support unset when possible.
|
57 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
58 |
|
|
as_unset=unset
|
59 |
|
|
else
|
60 |
|
|
as_unset=false
|
61 |
|
|
fi
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
# IFS
|
65 |
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
66 |
|
|
# there to prevent editors from complaining about space-tab.
|
67 |
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
68 |
|
|
# splitting by setting IFS to empty value.)
|
69 |
|
|
as_nl='
|
70 |
|
|
'
|
71 |
|
|
IFS=" "" $as_nl"
|
72 |
|
|
|
73 |
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
74 |
|
|
case $0 in
|
75 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
76 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
77 |
|
|
for as_dir in $PATH
|
78 |
|
|
do
|
79 |
|
|
IFS=$as_save_IFS
|
80 |
|
|
test -z "$as_dir" && as_dir=.
|
81 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
82 |
|
|
done
|
83 |
|
|
IFS=$as_save_IFS
|
84 |
|
|
|
85 |
|
|
;;
|
86 |
|
|
esac
|
87 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
88 |
|
|
# in which case we are not to be found in the path.
|
89 |
|
|
if test "x$as_myself" = x; then
|
90 |
|
|
as_myself=$0
|
91 |
|
|
fi
|
92 |
|
|
if test ! -f "$as_myself"; then
|
93 |
|
|
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
94 |
|
|
{ (exit 1); exit 1; }
|
95 |
|
|
fi
|
96 |
|
|
|
97 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
98 |
|
|
for as_var in ENV MAIL MAILPATH
|
99 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
100 |
|
|
done
|
101 |
|
|
PS1='$ '
|
102 |
|
|
PS2='> '
|
103 |
|
|
PS4='+ '
|
104 |
|
|
|
105 |
|
|
# NLS nuisances.
|
106 |
|
|
for as_var in \
|
107 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
108 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
109 |
|
|
LC_TELEPHONE LC_TIME
|
110 |
|
|
do
|
111 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
112 |
|
|
eval $as_var=C; export $as_var
|
113 |
|
|
else
|
114 |
|
|
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
115 |
|
|
fi
|
116 |
|
|
done
|
117 |
|
|
|
118 |
|
|
# Required to use basename.
|
119 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
120 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
121 |
|
|
as_expr=expr
|
122 |
|
|
else
|
123 |
|
|
as_expr=false
|
124 |
|
|
fi
|
125 |
|
|
|
126 |
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
127 |
|
|
as_basename=basename
|
128 |
|
|
else
|
129 |
|
|
as_basename=false
|
130 |
|
|
fi
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
# Name of the executable.
|
134 |
|
|
as_me=`$as_basename -- "$0" ||
|
135 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
136 |
|
|
X"$0" : 'X\(//\)$' \| \
|
137 |
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
138 |
|
|
echo X/"$0" |
|
139 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
140 |
|
|
s//\1/
|
141 |
|
|
q
|
142 |
|
|
}
|
143 |
|
|
/^X\/\(\/\/\)$/{
|
144 |
|
|
s//\1/
|
145 |
|
|
q
|
146 |
|
|
}
|
147 |
|
|
/^X\/\(\/\).*/{
|
148 |
|
|
s//\1/
|
149 |
|
|
q
|
150 |
|
|
}
|
151 |
|
|
s/.*/./; q'`
|
152 |
|
|
|
153 |
|
|
# CDPATH.
|
154 |
|
|
$as_unset CDPATH
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
if test "x$CONFIG_SHELL" = x; then
|
158 |
|
|
if (eval ":") 2>/dev/null; then
|
159 |
|
|
as_have_required=yes
|
160 |
|
|
else
|
161 |
|
|
as_have_required=no
|
162 |
|
|
fi
|
163 |
|
|
|
164 |
|
|
if test $as_have_required = yes && (eval ":
|
165 |
|
|
(as_func_return () {
|
166 |
|
|
(exit \$1)
|
167 |
|
|
}
|
168 |
|
|
as_func_success () {
|
169 |
|
|
as_func_return 0
|
170 |
|
|
}
|
171 |
|
|
as_func_failure () {
|
172 |
|
|
as_func_return 1
|
173 |
|
|
}
|
174 |
|
|
as_func_ret_success () {
|
175 |
|
|
return 0
|
176 |
|
|
}
|
177 |
|
|
as_func_ret_failure () {
|
178 |
|
|
return 1
|
179 |
|
|
}
|
180 |
|
|
|
181 |
|
|
exitcode=0
|
182 |
|
|
if as_func_success; then
|
183 |
|
|
:
|
184 |
|
|
else
|
185 |
|
|
exitcode=1
|
186 |
|
|
echo as_func_success failed.
|
187 |
|
|
fi
|
188 |
|
|
|
189 |
|
|
if as_func_failure; then
|
190 |
|
|
exitcode=1
|
191 |
|
|
echo as_func_failure succeeded.
|
192 |
|
|
fi
|
193 |
|
|
|
194 |
|
|
if as_func_ret_success; then
|
195 |
|
|
:
|
196 |
|
|
else
|
197 |
|
|
exitcode=1
|
198 |
|
|
echo as_func_ret_success failed.
|
199 |
|
|
fi
|
200 |
|
|
|
201 |
|
|
if as_func_ret_failure; then
|
202 |
|
|
exitcode=1
|
203 |
|
|
echo as_func_ret_failure succeeded.
|
204 |
|
|
fi
|
205 |
|
|
|
206 |
|
|
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
207 |
|
|
:
|
208 |
|
|
else
|
209 |
|
|
exitcode=1
|
210 |
|
|
echo positional parameters were not saved.
|
211 |
|
|
fi
|
212 |
|
|
|
213 |
|
|
test \$exitcode = 0) || { (exit 1); exit 1; }
|
214 |
|
|
|
215 |
|
|
(
|
216 |
|
|
as_lineno_1=\$LINENO
|
217 |
|
|
as_lineno_2=\$LINENO
|
218 |
|
|
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
219 |
|
|
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
220 |
|
|
") 2> /dev/null; then
|
221 |
|
|
:
|
222 |
|
|
else
|
223 |
|
|
as_candidate_shells=
|
224 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
225 |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
226 |
|
|
do
|
227 |
|
|
IFS=$as_save_IFS
|
228 |
|
|
test -z "$as_dir" && as_dir=.
|
229 |
|
|
case $as_dir in
|
230 |
|
|
/*)
|
231 |
|
|
for as_base in sh bash ksh sh5; do
|
232 |
|
|
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
233 |
|
|
done;;
|
234 |
|
|
esac
|
235 |
|
|
done
|
236 |
|
|
IFS=$as_save_IFS
|
237 |
|
|
|
238 |
|
|
|
239 |
|
|
for as_shell in $as_candidate_shells $SHELL; do
|
240 |
|
|
# Try only shells that exist, to save several forks.
|
241 |
|
|
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
242 |
|
|
{ ("$as_shell") 2> /dev/null <<\_ASEOF
|
243 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
244 |
|
|
emulate sh
|
245 |
|
|
NULLCMD=:
|
246 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
247 |
|
|
# is contrary to our usage. Disable this feature.
|
248 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
249 |
|
|
setopt NO_GLOB_SUBST
|
250 |
|
|
else
|
251 |
|
|
case `(set -o) 2>/dev/null` in
|
252 |
|
|
*posix*) set -o posix ;;
|
253 |
|
|
esac
|
254 |
|
|
|
255 |
|
|
fi
|
256 |
|
|
|
257 |
|
|
|
258 |
|
|
:
|
259 |
|
|
_ASEOF
|
260 |
|
|
}; then
|
261 |
|
|
CONFIG_SHELL=$as_shell
|
262 |
|
|
as_have_required=yes
|
263 |
|
|
if { "$as_shell" 2> /dev/null <<\_ASEOF
|
264 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
265 |
|
|
emulate sh
|
266 |
|
|
NULLCMD=:
|
267 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
268 |
|
|
# is contrary to our usage. Disable this feature.
|
269 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
270 |
|
|
setopt NO_GLOB_SUBST
|
271 |
|
|
else
|
272 |
|
|
case `(set -o) 2>/dev/null` in
|
273 |
|
|
*posix*) set -o posix ;;
|
274 |
|
|
esac
|
275 |
|
|
|
276 |
|
|
fi
|
277 |
|
|
|
278 |
|
|
|
279 |
|
|
:
|
280 |
|
|
(as_func_return () {
|
281 |
|
|
(exit $1)
|
282 |
|
|
}
|
283 |
|
|
as_func_success () {
|
284 |
|
|
as_func_return 0
|
285 |
|
|
}
|
286 |
|
|
as_func_failure () {
|
287 |
|
|
as_func_return 1
|
288 |
|
|
}
|
289 |
|
|
as_func_ret_success () {
|
290 |
|
|
return 0
|
291 |
|
|
}
|
292 |
|
|
as_func_ret_failure () {
|
293 |
|
|
return 1
|
294 |
|
|
}
|
295 |
|
|
|
296 |
|
|
exitcode=0
|
297 |
|
|
if as_func_success; then
|
298 |
|
|
:
|
299 |
|
|
else
|
300 |
|
|
exitcode=1
|
301 |
|
|
echo as_func_success failed.
|
302 |
|
|
fi
|
303 |
|
|
|
304 |
|
|
if as_func_failure; then
|
305 |
|
|
exitcode=1
|
306 |
|
|
echo as_func_failure succeeded.
|
307 |
|
|
fi
|
308 |
|
|
|
309 |
|
|
if as_func_ret_success; then
|
310 |
|
|
:
|
311 |
|
|
else
|
312 |
|
|
exitcode=1
|
313 |
|
|
echo as_func_ret_success failed.
|
314 |
|
|
fi
|
315 |
|
|
|
316 |
|
|
if as_func_ret_failure; then
|
317 |
|
|
exitcode=1
|
318 |
|
|
echo as_func_ret_failure succeeded.
|
319 |
|
|
fi
|
320 |
|
|
|
321 |
|
|
if ( set x; as_func_ret_success y && test x = "$1" ); then
|
322 |
|
|
:
|
323 |
|
|
else
|
324 |
|
|
exitcode=1
|
325 |
|
|
echo positional parameters were not saved.
|
326 |
|
|
fi
|
327 |
|
|
|
328 |
|
|
test $exitcode = 0) || { (exit 1); exit 1; }
|
329 |
|
|
|
330 |
|
|
(
|
331 |
|
|
as_lineno_1=$LINENO
|
332 |
|
|
as_lineno_2=$LINENO
|
333 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
334 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
335 |
|
|
|
336 |
|
|
_ASEOF
|
337 |
|
|
}; then
|
338 |
|
|
break
|
339 |
|
|
fi
|
340 |
|
|
|
341 |
|
|
fi
|
342 |
|
|
|
343 |
|
|
done
|
344 |
|
|
|
345 |
|
|
if test "x$CONFIG_SHELL" != x; then
|
346 |
|
|
for as_var in BASH_ENV ENV
|
347 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
348 |
|
|
done
|
349 |
|
|
export CONFIG_SHELL
|
350 |
|
|
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
351 |
|
|
fi
|
352 |
|
|
|
353 |
|
|
|
354 |
|
|
if test $as_have_required = no; then
|
355 |
|
|
echo This script requires a shell more modern than all the
|
356 |
|
|
echo shells that I found on your system. Please install a
|
357 |
|
|
echo modern shell, or manually run the script under such a
|
358 |
|
|
echo shell if you do have one.
|
359 |
|
|
{ (exit 1); exit 1; }
|
360 |
|
|
fi
|
361 |
|
|
|
362 |
|
|
|
363 |
|
|
fi
|
364 |
|
|
|
365 |
|
|
fi
|
366 |
|
|
|
367 |
|
|
|
368 |
|
|
|
369 |
|
|
(eval "as_func_return () {
|
370 |
|
|
(exit \$1)
|
371 |
|
|
}
|
372 |
|
|
as_func_success () {
|
373 |
|
|
as_func_return 0
|
374 |
|
|
}
|
375 |
|
|
as_func_failure () {
|
376 |
|
|
as_func_return 1
|
377 |
|
|
}
|
378 |
|
|
as_func_ret_success () {
|
379 |
|
|
return 0
|
380 |
|
|
}
|
381 |
|
|
as_func_ret_failure () {
|
382 |
|
|
return 1
|
383 |
|
|
}
|
384 |
|
|
|
385 |
|
|
exitcode=0
|
386 |
|
|
if as_func_success; then
|
387 |
|
|
:
|
388 |
|
|
else
|
389 |
|
|
exitcode=1
|
390 |
|
|
echo as_func_success failed.
|
391 |
|
|
fi
|
392 |
|
|
|
393 |
|
|
if as_func_failure; then
|
394 |
|
|
exitcode=1
|
395 |
|
|
echo as_func_failure succeeded.
|
396 |
|
|
fi
|
397 |
|
|
|
398 |
|
|
if as_func_ret_success; then
|
399 |
|
|
:
|
400 |
|
|
else
|
401 |
|
|
exitcode=1
|
402 |
|
|
echo as_func_ret_success failed.
|
403 |
|
|
fi
|
404 |
|
|
|
405 |
|
|
if as_func_ret_failure; then
|
406 |
|
|
exitcode=1
|
407 |
|
|
echo as_func_ret_failure succeeded.
|
408 |
|
|
fi
|
409 |
|
|
|
410 |
|
|
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
411 |
|
|
:
|
412 |
|
|
else
|
413 |
|
|
exitcode=1
|
414 |
|
|
echo positional parameters were not saved.
|
415 |
|
|
fi
|
416 |
|
|
|
417 |
|
|
test \$exitcode = 0") || {
|
418 |
|
|
echo No shell found that supports shell functions.
|
419 |
|
|
echo Please tell autoconf@gnu.org about your system,
|
420 |
|
|
echo including any error possibly output before this
|
421 |
|
|
echo message
|
422 |
|
|
}
|
423 |
|
|
|
424 |
|
|
|
425 |
|
|
|
426 |
|
|
as_lineno_1=$LINENO
|
427 |
|
|
as_lineno_2=$LINENO
|
428 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
429 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
430 |
|
|
|
431 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
432 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
433 |
|
|
# line-number line after each line using $LINENO; the second 'sed'
|
434 |
|
|
# does the real work. The second script uses 'N' to pair each
|
435 |
|
|
# line-number line with the line containing $LINENO, and appends
|
436 |
|
|
# trailing '-' during substitution so that $LINENO is not a special
|
437 |
|
|
# case at line end.
|
438 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
439 |
|
|
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
440 |
|
|
# E. McMahon (1931-1989) for sed's syntax. :-)
|
441 |
|
|
sed -n '
|
442 |
|
|
p
|
443 |
|
|
/[$]LINENO/=
|
444 |
|
|
' <$as_myself |
|
445 |
|
|
sed '
|
446 |
|
|
s/[$]LINENO.*/&-/
|
447 |
|
|
t lineno
|
448 |
|
|
b
|
449 |
|
|
:lineno
|
450 |
|
|
N
|
451 |
|
|
:loop
|
452 |
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
453 |
|
|
t loop
|
454 |
|
|
s/-\n.*//
|
455 |
|
|
' >$as_me.lineno &&
|
456 |
|
|
chmod +x "$as_me.lineno" ||
|
457 |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
458 |
|
|
{ (exit 1); exit 1; }; }
|
459 |
|
|
|
460 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
461 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
462 |
|
|
# original and so on. Autoconf is especially sensitive to this).
|
463 |
|
|
. "./$as_me.lineno"
|
464 |
|
|
# Exit status is that of the last command.
|
465 |
|
|
exit
|
466 |
|
|
}
|
467 |
|
|
|
468 |
|
|
|
469 |
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
470 |
|
|
as_dirname=dirname
|
471 |
|
|
else
|
472 |
|
|
as_dirname=false
|
473 |
|
|
fi
|
474 |
|
|
|
475 |
|
|
ECHO_C= ECHO_N= ECHO_T=
|
476 |
|
|
case `echo -n x` in
|
477 |
|
|
-n*)
|
478 |
|
|
case `echo 'x\c'` in
|
479 |
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
480 |
|
|
*) ECHO_C='\c';;
|
481 |
|
|
esac;;
|
482 |
|
|
*)
|
483 |
|
|
ECHO_N='-n';;
|
484 |
|
|
esac
|
485 |
|
|
|
486 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
487 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
488 |
|
|
as_expr=expr
|
489 |
|
|
else
|
490 |
|
|
as_expr=false
|
491 |
|
|
fi
|
492 |
|
|
|
493 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
494 |
|
|
if test -d conf$$.dir; then
|
495 |
|
|
rm -f conf$$.dir/conf$$.file
|
496 |
|
|
else
|
497 |
|
|
rm -f conf$$.dir
|
498 |
|
|
mkdir conf$$.dir
|
499 |
|
|
fi
|
500 |
|
|
echo >conf$$.file
|
501 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
502 |
|
|
as_ln_s='ln -s'
|
503 |
|
|
# ... but there are two gotchas:
|
504 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
505 |
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
506 |
|
|
# In both cases, we have to default to `cp -p'.
|
507 |
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
508 |
|
|
as_ln_s='cp -p'
|
509 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
510 |
|
|
as_ln_s=ln
|
511 |
|
|
else
|
512 |
|
|
as_ln_s='cp -p'
|
513 |
|
|
fi
|
514 |
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
515 |
|
|
rmdir conf$$.dir 2>/dev/null
|
516 |
|
|
|
517 |
|
|
if mkdir -p . 2>/dev/null; then
|
518 |
|
|
as_mkdir_p=:
|
519 |
|
|
else
|
520 |
|
|
test -d ./-p && rmdir ./-p
|
521 |
|
|
as_mkdir_p=false
|
522 |
|
|
fi
|
523 |
|
|
|
524 |
|
|
if test -x / >/dev/null 2>&1; then
|
525 |
|
|
as_test_x='test -x'
|
526 |
|
|
else
|
527 |
|
|
if ls -dL / >/dev/null 2>&1; then
|
528 |
|
|
as_ls_L_option=L
|
529 |
|
|
else
|
530 |
|
|
as_ls_L_option=
|
531 |
|
|
fi
|
532 |
|
|
as_test_x='
|
533 |
|
|
eval sh -c '\''
|
534 |
|
|
if test -d "$1"; then
|
535 |
|
|
test -d "$1/.";
|
536 |
|
|
else
|
537 |
|
|
case $1 in
|
538 |
|
|
-*)set "./$1";;
|
539 |
|
|
esac;
|
540 |
|
|
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
541 |
|
|
???[sx]*):;;*)false;;esac;fi
|
542 |
|
|
'\'' sh
|
543 |
|
|
'
|
544 |
|
|
fi
|
545 |
|
|
as_executable_p=$as_test_x
|
546 |
|
|
|
547 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
548 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
549 |
|
|
|
550 |
|
|
# Sed expression to map a string onto a valid variable name.
|
551 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
552 |
|
|
|
553 |
|
|
|
554 |
|
|
|
555 |
|
|
|
556 |
|
|
# Check that we are running under the correct shell.
|
557 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
558 |
|
|
|
559 |
|
|
case X$ECHO in
|
560 |
|
|
X*--fallback-echo)
|
561 |
|
|
# Remove one level of quotation (which was required for Make).
|
562 |
|
|
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
|
563 |
|
|
;;
|
564 |
|
|
esac
|
565 |
|
|
|
566 |
|
|
echo=${ECHO-echo}
|
567 |
|
|
if test "X$1" = X--no-reexec; then
|
568 |
|
|
# Discard the --no-reexec flag, and continue.
|
569 |
|
|
shift
|
570 |
|
|
elif test "X$1" = X--fallback-echo; then
|
571 |
|
|
# Avoid inline document here, it may be left over
|
572 |
|
|
:
|
573 |
|
|
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
574 |
|
|
# Yippee, $echo works!
|
575 |
|
|
:
|
576 |
|
|
else
|
577 |
|
|
# Restart under the correct shell.
|
578 |
|
|
exec $SHELL "$0" --no-reexec ${1+"$@"}
|
579 |
|
|
fi
|
580 |
|
|
|
581 |
|
|
if test "X$1" = X--fallback-echo; then
|
582 |
|
|
# used as fallback echo
|
583 |
|
|
shift
|
584 |
|
|
cat <
|
585 |
|
|
$*
|
586 |
|
|
EOF
|
587 |
|
|
exit 0
|
588 |
|
|
fi
|
589 |
|
|
|
590 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
591 |
|
|
# if CDPATH is set.
|
592 |
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
593 |
|
|
|
594 |
|
|
if test -z "$ECHO"; then
|
595 |
|
|
if test "X${echo_test_string+set}" != Xset; then
|
596 |
|
|
# find a string as large as possible, as long as the shell can cope with it
|
597 |
|
|
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
|
598 |
|
|
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
599 |
|
|
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
|
600 |
|
|
echo_test_string=`eval $cmd` &&
|
601 |
|
|
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
602 |
|
|
then
|
603 |
|
|
break
|
604 |
|
|
fi
|
605 |
|
|
done
|
606 |
|
|
fi
|
607 |
|
|
|
608 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
609 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
610 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
611 |
|
|
:
|
612 |
|
|
else
|
613 |
|
|
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
614 |
|
|
# backslashes. This makes it impossible to quote backslashes using
|
615 |
|
|
# echo "$something" | sed 's/\\/\\\\/g'
|
616 |
|
|
#
|
617 |
|
|
# So, first we look for a working echo in the user's PATH.
|
618 |
|
|
|
619 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
620 |
|
|
for dir in $PATH /usr/ucb; do
|
621 |
|
|
IFS="$lt_save_ifs"
|
622 |
|
|
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
623 |
|
|
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
624 |
|
|
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
625 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
626 |
|
|
echo="$dir/echo"
|
627 |
|
|
break
|
628 |
|
|
fi
|
629 |
|
|
done
|
630 |
|
|
IFS="$lt_save_ifs"
|
631 |
|
|
|
632 |
|
|
if test "X$echo" = Xecho; then
|
633 |
|
|
# We didn't find a better echo, so look for alternatives.
|
634 |
|
|
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
635 |
|
|
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
636 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
637 |
|
|
# This shell has a builtin print -r that does the trick.
|
638 |
|
|
echo='print -r'
|
639 |
|
|
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
640 |
|
|
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
641 |
|
|
# If we have ksh, try running configure again with it.
|
642 |
|
|
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
643 |
|
|
export ORIGINAL_CONFIG_SHELL
|
644 |
|
|
CONFIG_SHELL=/bin/ksh
|
645 |
|
|
export CONFIG_SHELL
|
646 |
|
|
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
|
647 |
|
|
else
|
648 |
|
|
# Try using printf.
|
649 |
|
|
echo='printf %s\n'
|
650 |
|
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
651 |
|
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
652 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
653 |
|
|
# Cool, printf works
|
654 |
|
|
:
|
655 |
|
|
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
656 |
|
|
test "X$echo_testing_string" = 'X\t' &&
|
657 |
|
|
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
658 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
659 |
|
|
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
660 |
|
|
export CONFIG_SHELL
|
661 |
|
|
SHELL="$CONFIG_SHELL"
|
662 |
|
|
export SHELL
|
663 |
|
|
echo="$CONFIG_SHELL $0 --fallback-echo"
|
664 |
|
|
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
665 |
|
|
test "X$echo_testing_string" = 'X\t' &&
|
666 |
|
|
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
667 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
668 |
|
|
echo="$CONFIG_SHELL $0 --fallback-echo"
|
669 |
|
|
else
|
670 |
|
|
# maybe with a smaller string...
|
671 |
|
|
prev=:
|
672 |
|
|
|
673 |
|
|
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
|
674 |
|
|
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
675 |
|
|
then
|
676 |
|
|
break
|
677 |
|
|
fi
|
678 |
|
|
prev="$cmd"
|
679 |
|
|
done
|
680 |
|
|
|
681 |
|
|
if test "$prev" != 'sed 50q "$0"'; then
|
682 |
|
|
echo_test_string=`eval $prev`
|
683 |
|
|
export echo_test_string
|
684 |
|
|
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
|
685 |
|
|
else
|
686 |
|
|
# Oops. We lost completely, so just stick with echo.
|
687 |
|
|
echo=echo
|
688 |
|
|
fi
|
689 |
|
|
fi
|
690 |
|
|
fi
|
691 |
|
|
fi
|
692 |
|
|
fi
|
693 |
|
|
fi
|
694 |
|
|
|
695 |
|
|
# Copy echo and quote the copy suitably for passing to libtool from
|
696 |
|
|
# the Makefile, instead of quoting the original, which is used later.
|
697 |
|
|
ECHO=$echo
|
698 |
|
|
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
|
699 |
|
|
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
|
700 |
|
|
fi
|
701 |
|
|
|
702 |
|
|
|
703 |
|
|
|
704 |
|
|
|
705 |
|
|
tagnames=${tagnames+${tagnames},}CXX
|
706 |
|
|
|
707 |
|
|
tagnames=${tagnames+${tagnames},}F77
|
708 |
|
|
|
709 |
|
|
exec 7<&0 &1
|
710 |
|
|
|
711 |
|
|
# Name of the host.
|
712 |
|
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
713 |
|
|
# so uname gets run too.
|
714 |
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
715 |
|
|
|
716 |
|
|
#
|
717 |
|
|
# Initializations.
|
718 |
|
|
#
|
719 |
|
|
ac_default_prefix=/usr/local
|
720 |
|
|
ac_clean_files=
|
721 |
|
|
ac_config_libobj_dir=.
|
722 |
|
|
LIB@&t@OBJS=
|
723 |
|
|
cross_compiling=no
|
724 |
|
|
subdirs=
|
725 |
|
|
MFLAGS=
|
726 |
|
|
MAKEFLAGS=
|
727 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
728 |
|
|
|
729 |
|
|
# Identity of this package.
|
730 |
|
|
PACKAGE_NAME='or1ksim'
|
731 |
|
|
PACKAGE_TARNAME='or1ksim'
|
732 |
|
|
PACKAGE_VERSION='0.3.0'
|
733 |
|
|
PACKAGE_STRING='or1ksim 0.3.0'
|
734 |
|
|
PACKAGE_BUGREPORT='openrisc@opencores.org'
|
735 |
|
|
|
736 |
|
|
ac_unique_file="cpu/or32/execute.c"
|
737 |
|
|
# Factoring default headers for most tests.
|
738 |
|
|
ac_includes_default="\
|
739 |
|
|
#include
|
740 |
|
|
#ifdef HAVE_SYS_TYPES_H
|
741 |
|
|
# include
|
742 |
|
|
#endif
|
743 |
|
|
#ifdef HAVE_SYS_STAT_H
|
744 |
|
|
# include
|
745 |
|
|
#endif
|
746 |
|
|
#ifdef STDC_HEADERS
|
747 |
|
|
# include
|
748 |
|
|
# include
|
749 |
|
|
#else
|
750 |
|
|
# ifdef HAVE_STDLIB_H
|
751 |
|
|
# include
|
752 |
|
|
# endif
|
753 |
|
|
#endif
|
754 |
|
|
#ifdef HAVE_STRING_H
|
755 |
|
|
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
756 |
|
|
# include
|
757 |
|
|
# endif
|
758 |
|
|
# include
|
759 |
|
|
#endif
|
760 |
|
|
#ifdef HAVE_STRINGS_H
|
761 |
|
|
# include
|
762 |
|
|
#endif
|
763 |
|
|
#ifdef HAVE_INTTYPES_H
|
764 |
|
|
# include
|
765 |
|
|
#endif
|
766 |
|
|
#ifdef HAVE_STDINT_H
|
767 |
|
|
# include
|
768 |
|
|
#endif
|
769 |
|
|
#ifdef HAVE_UNISTD_H
|
770 |
|
|
# include
|
771 |
|
|
#endif"
|
772 |
|
|
|
773 |
|
|
ac_subst_vars='SHELL
|
774 |
|
|
PATH_SEPARATOR
|
775 |
|
|
PACKAGE_NAME
|
776 |
|
|
PACKAGE_TARNAME
|
777 |
|
|
PACKAGE_VERSION
|
778 |
|
|
PACKAGE_STRING
|
779 |
|
|
PACKAGE_BUGREPORT
|
780 |
|
|
exec_prefix
|
781 |
|
|
prefix
|
782 |
|
|
program_transform_name
|
783 |
|
|
bindir
|
784 |
|
|
sbindir
|
785 |
|
|
libexecdir
|
786 |
|
|
datarootdir
|
787 |
|
|
datadir
|
788 |
|
|
sysconfdir
|
789 |
|
|
sharedstatedir
|
790 |
|
|
localstatedir
|
791 |
|
|
includedir
|
792 |
|
|
oldincludedir
|
793 |
|
|
docdir
|
794 |
|
|
infodir
|
795 |
|
|
htmldir
|
796 |
|
|
dvidir
|
797 |
|
|
pdfdir
|
798 |
|
|
psdir
|
799 |
|
|
libdir
|
800 |
|
|
localedir
|
801 |
|
|
mandir
|
802 |
|
|
DEFS
|
803 |
|
|
ECHO_C
|
804 |
|
|
ECHO_N
|
805 |
|
|
ECHO_T
|
806 |
|
|
LIBS
|
807 |
|
|
build_alias
|
808 |
|
|
host_alias
|
809 |
|
|
target_alias
|
810 |
|
|
build
|
811 |
|
|
build_cpu
|
812 |
|
|
build_vendor
|
813 |
|
|
build_os
|
814 |
|
|
host
|
815 |
|
|
host_cpu
|
816 |
|
|
host_vendor
|
817 |
|
|
host_os
|
818 |
|
|
target
|
819 |
|
|
target_cpu
|
820 |
|
|
target_vendor
|
821 |
|
|
target_os
|
822 |
|
|
CC
|
823 |
|
|
CFLAGS
|
824 |
|
|
LDFLAGS
|
825 |
|
|
CPPFLAGS
|
826 |
|
|
ac_ct_CC
|
827 |
|
|
EXEEXT
|
828 |
|
|
OBJEXT
|
829 |
|
|
SED
|
830 |
|
|
GREP
|
831 |
|
|
EGREP
|
832 |
|
|
LN_S
|
833 |
|
|
ECHO
|
834 |
|
|
AR
|
835 |
|
|
RANLIB
|
836 |
|
|
STRIP
|
837 |
|
|
CPP
|
838 |
|
|
CXX
|
839 |
|
|
CXXFLAGS
|
840 |
|
|
ac_ct_CXX
|
841 |
|
|
CXXCPP
|
842 |
|
|
F77
|
843 |
|
|
FFLAGS
|
844 |
|
|
ac_ct_F77
|
845 |
|
|
LIBTOOL
|
846 |
|
|
INSTALL_PROGRAM
|
847 |
|
|
INSTALL_SCRIPT
|
848 |
|
|
INSTALL_DATA
|
849 |
|
|
am__isrc
|
850 |
|
|
CYGPATH_W
|
851 |
|
|
PACKAGE
|
852 |
|
|
VERSION
|
853 |
|
|
ACLOCAL
|
854 |
|
|
AUTOCONF
|
855 |
|
|
AUTOMAKE
|
856 |
|
|
AUTOHEADER
|
857 |
|
|
MAKEINFO
|
858 |
|
|
install_sh
|
859 |
|
|
INSTALL_STRIP_PROGRAM
|
860 |
|
|
mkdir_p
|
861 |
|
|
AWK
|
862 |
|
|
SET_MAKE
|
863 |
|
|
am__leading_dot
|
864 |
|
|
AMTAR
|
865 |
|
|
am__tar
|
866 |
|
|
am__untar
|
867 |
|
|
DEPDIR
|
868 |
|
|
am__include
|
869 |
|
|
am__quote
|
870 |
|
|
AMDEP_TRUE
|
871 |
|
|
AMDEP_FALSE
|
872 |
|
|
AMDEPBACKSLASH
|
873 |
|
|
CCDEPMODE
|
874 |
|
|
am__fastdepCC_TRUE
|
875 |
|
|
am__fastdepCC_FALSE
|
876 |
|
|
CXXDEPMODE
|
877 |
|
|
am__fastdepCXX_TRUE
|
878 |
|
|
am__fastdepCXX_FALSE
|
879 |
|
|
CPU_ARCH
|
880 |
|
|
MAKE_SHELL
|
881 |
|
|
GENERATE_NEEDED_TRUE
|
882 |
|
|
GENERATE_NEEDED_FALSE
|
883 |
|
|
DYNAMIC_EXECUTION_TRUE
|
884 |
|
|
DYNAMIC_EXECUTION_FALSE
|
885 |
|
|
BUILD_DIR
|
886 |
|
|
LOCAL_CFLAGS
|
887 |
|
|
LOCAL_LDFLAGS
|
888 |
|
|
LOCAL_DEFS
|
889 |
|
|
ARFLAGS
|
890 |
|
|
SUMVERSION
|
891 |
|
|
TERMCAP_LIB
|
892 |
|
|
INCLUDES
|
893 |
|
|
LIB@&t@OBJS
|
894 |
|
|
LTLIBOBJS'
|
895 |
|
|
ac_subst_files=''
|
896 |
|
|
ac_precious_vars='build_alias
|
897 |
|
|
host_alias
|
898 |
|
|
target_alias
|
899 |
|
|
CC
|
900 |
|
|
CFLAGS
|
901 |
|
|
LDFLAGS
|
902 |
|
|
LIBS
|
903 |
|
|
CPPFLAGS
|
904 |
|
|
CPP
|
905 |
|
|
CXX
|
906 |
|
|
CXXFLAGS
|
907 |
|
|
CCC
|
908 |
|
|
CXXCPP
|
909 |
|
|
F77
|
910 |
|
|
FFLAGS'
|
911 |
|
|
|
912 |
|
|
|
913 |
|
|
# Initialize some variables set by options.
|
914 |
|
|
ac_init_help=
|
915 |
|
|
ac_init_version=false
|
916 |
|
|
# The variables have the same names as the options, with
|
917 |
|
|
# dashes changed to underlines.
|
918 |
|
|
cache_file=/dev/null
|
919 |
|
|
exec_prefix=NONE
|
920 |
|
|
no_create=
|
921 |
|
|
no_recursion=
|
922 |
|
|
prefix=NONE
|
923 |
|
|
program_prefix=NONE
|
924 |
|
|
program_suffix=NONE
|
925 |
|
|
program_transform_name=s,x,x,
|
926 |
|
|
silent=
|
927 |
|
|
site=
|
928 |
|
|
srcdir=
|
929 |
|
|
verbose=
|
930 |
|
|
x_includes=NONE
|
931 |
|
|
x_libraries=NONE
|
932 |
|
|
|
933 |
|
|
# Installation directory options.
|
934 |
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
935 |
|
|
# and all the variables that are supposed to be based on exec_prefix
|
936 |
|
|
# by default will actually change.
|
937 |
|
|
# Use braces instead of parens because sh, perl, etc. also accept them.
|
938 |
|
|
# (The list follows the same order as the GNU Coding Standards.)
|
939 |
|
|
bindir='${exec_prefix}/bin'
|
940 |
|
|
sbindir='${exec_prefix}/sbin'
|
941 |
|
|
libexecdir='${exec_prefix}/libexec'
|
942 |
|
|
datarootdir='${prefix}/share'
|
943 |
|
|
datadir='${datarootdir}'
|
944 |
|
|
sysconfdir='${prefix}/etc'
|
945 |
|
|
sharedstatedir='${prefix}/com'
|
946 |
|
|
localstatedir='${prefix}/var'
|
947 |
|
|
includedir='${prefix}/include'
|
948 |
|
|
oldincludedir='/usr/include'
|
949 |
|
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
950 |
|
|
infodir='${datarootdir}/info'
|
951 |
|
|
htmldir='${docdir}'
|
952 |
|
|
dvidir='${docdir}'
|
953 |
|
|
pdfdir='${docdir}'
|
954 |
|
|
psdir='${docdir}'
|
955 |
|
|
libdir='${exec_prefix}/lib'
|
956 |
|
|
localedir='${datarootdir}/locale'
|
957 |
|
|
mandir='${datarootdir}/man'
|
958 |
|
|
|
959 |
|
|
ac_prev=
|
960 |
|
|
ac_dashdash=
|
961 |
|
|
for ac_option
|
962 |
|
|
do
|
963 |
|
|
# If the previous option needs an argument, assign it.
|
964 |
|
|
if test -n "$ac_prev"; then
|
965 |
|
|
eval $ac_prev=\$ac_option
|
966 |
|
|
ac_prev=
|
967 |
|
|
continue
|
968 |
|
|
fi
|
969 |
|
|
|
970 |
|
|
case $ac_option in
|
971 |
|
|
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
972 |
|
|
*) ac_optarg=yes ;;
|
973 |
|
|
esac
|
974 |
|
|
|
975 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
976 |
|
|
|
977 |
|
|
case $ac_dashdash$ac_option in
|
978 |
|
|
--)
|
979 |
|
|
ac_dashdash=yes ;;
|
980 |
|
|
|
981 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
982 |
|
|
ac_prev=bindir ;;
|
983 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
984 |
|
|
bindir=$ac_optarg ;;
|
985 |
|
|
|
986 |
|
|
-build | --build | --buil | --bui | --bu)
|
987 |
|
|
ac_prev=build_alias ;;
|
988 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
989 |
|
|
build_alias=$ac_optarg ;;
|
990 |
|
|
|
991 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
992 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
993 |
|
|
ac_prev=cache_file ;;
|
994 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
995 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
996 |
|
|
cache_file=$ac_optarg ;;
|
997 |
|
|
|
998 |
|
|
--config-cache | -C)
|
999 |
|
|
cache_file=config.cache ;;
|
1000 |
|
|
|
1001 |
|
|
-datadir | --datadir | --datadi | --datad)
|
1002 |
|
|
ac_prev=datadir ;;
|
1003 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=*)
|
1004 |
|
|
datadir=$ac_optarg ;;
|
1005 |
|
|
|
1006 |
|
|
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
1007 |
|
|
| --dataroo | --dataro | --datar)
|
1008 |
|
|
ac_prev=datarootdir ;;
|
1009 |
|
|
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
1010 |
|
|
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
1011 |
|
|
datarootdir=$ac_optarg ;;
|
1012 |
|
|
|
1013 |
|
|
-disable-* | --disable-*)
|
1014 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
1015 |
|
|
# Reject names that are not valid shell variable names.
|
1016 |
|
|
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1017 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
1018 |
|
|
{ (exit 1); exit 1; }; }
|
1019 |
|
|
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
1020 |
|
|
eval enable_$ac_feature=no ;;
|
1021 |
|
|
|
1022 |
|
|
-docdir | --docdir | --docdi | --doc | --do)
|
1023 |
|
|
ac_prev=docdir ;;
|
1024 |
|
|
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
1025 |
|
|
docdir=$ac_optarg ;;
|
1026 |
|
|
|
1027 |
|
|
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
1028 |
|
|
ac_prev=dvidir ;;
|
1029 |
|
|
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
1030 |
|
|
dvidir=$ac_optarg ;;
|
1031 |
|
|
|
1032 |
|
|
-enable-* | --enable-*)
|
1033 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
1034 |
|
|
# Reject names that are not valid shell variable names.
|
1035 |
|
|
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1036 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
1037 |
|
|
{ (exit 1); exit 1; }; }
|
1038 |
|
|
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
1039 |
|
|
eval enable_$ac_feature=\$ac_optarg ;;
|
1040 |
|
|
|
1041 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
1042 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
1043 |
|
|
| --exec | --exe | --ex)
|
1044 |
|
|
ac_prev=exec_prefix ;;
|
1045 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
1046 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
1047 |
|
|
| --exec=* | --exe=* | --ex=*)
|
1048 |
|
|
exec_prefix=$ac_optarg ;;
|
1049 |
|
|
|
1050 |
|
|
-gas | --gas | --ga | --g)
|
1051 |
|
|
# Obsolete; use --with-gas.
|
1052 |
|
|
with_gas=yes ;;
|
1053 |
|
|
|
1054 |
|
|
-help | --help | --hel | --he | -h)
|
1055 |
|
|
ac_init_help=long ;;
|
1056 |
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
1057 |
|
|
ac_init_help=recursive ;;
|
1058 |
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
1059 |
|
|
ac_init_help=short ;;
|
1060 |
|
|
|
1061 |
|
|
-host | --host | --hos | --ho)
|
1062 |
|
|
ac_prev=host_alias ;;
|
1063 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
1064 |
|
|
host_alias=$ac_optarg ;;
|
1065 |
|
|
|
1066 |
|
|
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
1067 |
|
|
ac_prev=htmldir ;;
|
1068 |
|
|
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
1069 |
|
|
| --ht=*)
|
1070 |
|
|
htmldir=$ac_optarg ;;
|
1071 |
|
|
|
1072 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
1073 |
|
|
| --includ | --inclu | --incl | --inc)
|
1074 |
|
|
ac_prev=includedir ;;
|
1075 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
1076 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
1077 |
|
|
includedir=$ac_optarg ;;
|
1078 |
|
|
|
1079 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
1080 |
|
|
ac_prev=infodir ;;
|
1081 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
1082 |
|
|
infodir=$ac_optarg ;;
|
1083 |
|
|
|
1084 |
|
|
-libdir | --libdir | --libdi | --libd)
|
1085 |
|
|
ac_prev=libdir ;;
|
1086 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
1087 |
|
|
libdir=$ac_optarg ;;
|
1088 |
|
|
|
1089 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
1090 |
|
|
| --libexe | --libex | --libe)
|
1091 |
|
|
ac_prev=libexecdir ;;
|
1092 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
1093 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
1094 |
|
|
libexecdir=$ac_optarg ;;
|
1095 |
|
|
|
1096 |
|
|
-localedir | --localedir | --localedi | --localed | --locale)
|
1097 |
|
|
ac_prev=localedir ;;
|
1098 |
|
|
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
1099 |
|
|
localedir=$ac_optarg ;;
|
1100 |
|
|
|
1101 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
1102 |
|
|
| --localstate | --localstat | --localsta | --localst | --locals)
|
1103 |
|
|
ac_prev=localstatedir ;;
|
1104 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
1105 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
1106 |
|
|
localstatedir=$ac_optarg ;;
|
1107 |
|
|
|
1108 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
1109 |
|
|
ac_prev=mandir ;;
|
1110 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
1111 |
|
|
mandir=$ac_optarg ;;
|
1112 |
|
|
|
1113 |
|
|
-nfp | --nfp | --nf)
|
1114 |
|
|
# Obsolete; use --without-fp.
|
1115 |
|
|
with_fp=no ;;
|
1116 |
|
|
|
1117 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
1118 |
|
|
| --no-cr | --no-c | -n)
|
1119 |
|
|
no_create=yes ;;
|
1120 |
|
|
|
1121 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
1122 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
1123 |
|
|
no_recursion=yes ;;
|
1124 |
|
|
|
1125 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
1126 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
1127 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
1128 |
|
|
ac_prev=oldincludedir ;;
|
1129 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
1130 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
1131 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
1132 |
|
|
oldincludedir=$ac_optarg ;;
|
1133 |
|
|
|
1134 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
1135 |
|
|
ac_prev=prefix ;;
|
1136 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
1137 |
|
|
prefix=$ac_optarg ;;
|
1138 |
|
|
|
1139 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
1140 |
|
|
| --program-pre | --program-pr | --program-p)
|
1141 |
|
|
ac_prev=program_prefix ;;
|
1142 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
1143 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
1144 |
|
|
program_prefix=$ac_optarg ;;
|
1145 |
|
|
|
1146 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
1147 |
|
|
| --program-suf | --program-su | --program-s)
|
1148 |
|
|
ac_prev=program_suffix ;;
|
1149 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
1150 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
1151 |
|
|
program_suffix=$ac_optarg ;;
|
1152 |
|
|
|
1153 |
|
|
-program-transform-name | --program-transform-name \
|
1154 |
|
|
| --program-transform-nam | --program-transform-na \
|
1155 |
|
|
| --program-transform-n | --program-transform- \
|
1156 |
|
|
| --program-transform | --program-transfor \
|
1157 |
|
|
| --program-transfo | --program-transf \
|
1158 |
|
|
| --program-trans | --program-tran \
|
1159 |
|
|
| --progr-tra | --program-tr | --program-t)
|
1160 |
|
|
ac_prev=program_transform_name ;;
|
1161 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
1162 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
1163 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
1164 |
|
|
| --program-transform=* | --program-transfor=* \
|
1165 |
|
|
| --program-transfo=* | --program-transf=* \
|
1166 |
|
|
| --program-trans=* | --program-tran=* \
|
1167 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
1168 |
|
|
program_transform_name=$ac_optarg ;;
|
1169 |
|
|
|
1170 |
|
|
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
1171 |
|
|
ac_prev=pdfdir ;;
|
1172 |
|
|
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
1173 |
|
|
pdfdir=$ac_optarg ;;
|
1174 |
|
|
|
1175 |
|
|
-psdir | --psdir | --psdi | --psd | --ps)
|
1176 |
|
|
ac_prev=psdir ;;
|
1177 |
|
|
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
1178 |
|
|
psdir=$ac_optarg ;;
|
1179 |
|
|
|
1180 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
1181 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
1182 |
|
|
silent=yes ;;
|
1183 |
|
|
|
1184 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
1185 |
|
|
ac_prev=sbindir ;;
|
1186 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
1187 |
|
|
| --sbi=* | --sb=*)
|
1188 |
|
|
sbindir=$ac_optarg ;;
|
1189 |
|
|
|
1190 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
1191 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
1192 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
1193 |
|
|
| --sha | --sh)
|
1194 |
|
|
ac_prev=sharedstatedir ;;
|
1195 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
1196 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
1197 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
1198 |
|
|
| --sha=* | --sh=*)
|
1199 |
|
|
sharedstatedir=$ac_optarg ;;
|
1200 |
|
|
|
1201 |
|
|
-site | --site | --sit)
|
1202 |
|
|
ac_prev=site ;;
|
1203 |
|
|
-site=* | --site=* | --sit=*)
|
1204 |
|
|
site=$ac_optarg ;;
|
1205 |
|
|
|
1206 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
1207 |
|
|
ac_prev=srcdir ;;
|
1208 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
1209 |
|
|
srcdir=$ac_optarg ;;
|
1210 |
|
|
|
1211 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
1212 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
1213 |
|
|
ac_prev=sysconfdir ;;
|
1214 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
1215 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
1216 |
|
|
sysconfdir=$ac_optarg ;;
|
1217 |
|
|
|
1218 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
1219 |
|
|
ac_prev=target_alias ;;
|
1220 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
1221 |
|
|
target_alias=$ac_optarg ;;
|
1222 |
|
|
|
1223 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
1224 |
|
|
verbose=yes ;;
|
1225 |
|
|
|
1226 |
|
|
-version | --version | --versio | --versi | --vers | -V)
|
1227 |
|
|
ac_init_version=: ;;
|
1228 |
|
|
|
1229 |
|
|
-with-* | --with-*)
|
1230 |
|
|
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
1231 |
|
|
# Reject names that are not valid shell variable names.
|
1232 |
|
|
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1233 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
1234 |
|
|
{ (exit 1); exit 1; }; }
|
1235 |
|
|
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
1236 |
|
|
eval with_$ac_package=\$ac_optarg ;;
|
1237 |
|
|
|
1238 |
|
|
-without-* | --without-*)
|
1239 |
|
|
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
1240 |
|
|
# Reject names that are not valid shell variable names.
|
1241 |
|
|
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1242 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
1243 |
|
|
{ (exit 1); exit 1; }; }
|
1244 |
|
|
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
1245 |
|
|
eval with_$ac_package=no ;;
|
1246 |
|
|
|
1247 |
|
|
--x)
|
1248 |
|
|
# Obsolete; use --with-x.
|
1249 |
|
|
with_x=yes ;;
|
1250 |
|
|
|
1251 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
1252 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
1253 |
|
|
ac_prev=x_includes ;;
|
1254 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
1255 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
1256 |
|
|
x_includes=$ac_optarg ;;
|
1257 |
|
|
|
1258 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
1259 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
1260 |
|
|
ac_prev=x_libraries ;;
|
1261 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
1262 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
1263 |
|
|
x_libraries=$ac_optarg ;;
|
1264 |
|
|
|
1265 |
|
|
-*) { echo "$as_me: error: unrecognized option: $ac_option
|
1266 |
|
|
Try \`$0 --help' for more information." >&2
|
1267 |
|
|
{ (exit 1); exit 1; }; }
|
1268 |
|
|
;;
|
1269 |
|
|
|
1270 |
|
|
*=*)
|
1271 |
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
1272 |
|
|
# Reject names that are not valid shell variable names.
|
1273 |
|
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
1274 |
|
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
1275 |
|
|
{ (exit 1); exit 1; }; }
|
1276 |
|
|
eval $ac_envvar=\$ac_optarg
|
1277 |
|
|
export $ac_envvar ;;
|
1278 |
|
|
|
1279 |
|
|
*)
|
1280 |
|
|
# FIXME: should be removed in autoconf 3.0.
|
1281 |
|
|
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
1282 |
|
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
1283 |
|
|
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
1284 |
|
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
1285 |
|
|
;;
|
1286 |
|
|
|
1287 |
|
|
esac
|
1288 |
|
|
done
|
1289 |
|
|
|
1290 |
|
|
if test -n "$ac_prev"; then
|
1291 |
|
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
1292 |
|
|
{ echo "$as_me: error: missing argument to $ac_option" >&2
|
1293 |
|
|
{ (exit 1); exit 1; }; }
|
1294 |
|
|
fi
|
1295 |
|
|
|
1296 |
|
|
# Be sure to have absolute directory names.
|
1297 |
|
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
1298 |
|
|
datadir sysconfdir sharedstatedir localstatedir includedir \
|
1299 |
|
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
1300 |
|
|
libdir localedir mandir
|
1301 |
|
|
do
|
1302 |
|
|
eval ac_val=\$$ac_var
|
1303 |
|
|
case $ac_val in
|
1304 |
|
|
[\\/$]* | ?:[\\/]* ) continue;;
|
1305 |
|
|
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
1306 |
|
|
esac
|
1307 |
|
|
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
1308 |
|
|
{ (exit 1); exit 1; }; }
|
1309 |
|
|
done
|
1310 |
|
|
|
1311 |
|
|
# There might be people who depend on the old broken behavior: `$host'
|
1312 |
|
|
# used to hold the argument of --host etc.
|
1313 |
|
|
# FIXME: To remove some day.
|
1314 |
|
|
build=$build_alias
|
1315 |
|
|
host=$host_alias
|
1316 |
|
|
target=$target_alias
|
1317 |
|
|
|
1318 |
|
|
# FIXME: To remove some day.
|
1319 |
|
|
if test "x$host_alias" != x; then
|
1320 |
|
|
if test "x$build_alias" = x; then
|
1321 |
|
|
cross_compiling=maybe
|
1322 |
|
|
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
1323 |
|
|
If a cross compiler is detected then cross compile mode will be used." >&2
|
1324 |
|
|
elif test "x$build_alias" != "x$host_alias"; then
|
1325 |
|
|
cross_compiling=yes
|
1326 |
|
|
fi
|
1327 |
|
|
fi
|
1328 |
|
|
|
1329 |
|
|
ac_tool_prefix=
|
1330 |
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
1331 |
|
|
|
1332 |
|
|
test "$silent" = yes && exec 6>/dev/null
|
1333 |
|
|
|
1334 |
|
|
|
1335 |
|
|
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
1336 |
|
|
ac_ls_di=`ls -di .` &&
|
1337 |
|
|
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
1338 |
|
|
{ echo "$as_me: error: Working directory cannot be determined" >&2
|
1339 |
|
|
{ (exit 1); exit 1; }; }
|
1340 |
|
|
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
1341 |
|
|
{ echo "$as_me: error: pwd does not report name of working directory" >&2
|
1342 |
|
|
{ (exit 1); exit 1; }; }
|
1343 |
|
|
|
1344 |
|
|
|
1345 |
|
|
# Find the source files, if location was not specified.
|
1346 |
|
|
if test -z "$srcdir"; then
|
1347 |
|
|
ac_srcdir_defaulted=yes
|
1348 |
|
|
# Try the directory containing this script, then the parent directory.
|
1349 |
|
|
ac_confdir=`$as_dirname -- "$0" ||
|
1350 |
|
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
1351 |
|
|
X"$0" : 'X\(//\)[^/]' \| \
|
1352 |
|
|
X"$0" : 'X\(//\)$' \| \
|
1353 |
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
1354 |
|
|
echo X"$0" |
|
1355 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
1356 |
|
|
s//\1/
|
1357 |
|
|
q
|
1358 |
|
|
}
|
1359 |
|
|
/^X\(\/\/\)[^/].*/{
|
1360 |
|
|
s//\1/
|
1361 |
|
|
q
|
1362 |
|
|
}
|
1363 |
|
|
/^X\(\/\/\)$/{
|
1364 |
|
|
s//\1/
|
1365 |
|
|
q
|
1366 |
|
|
}
|
1367 |
|
|
/^X\(\/\).*/{
|
1368 |
|
|
s//\1/
|
1369 |
|
|
q
|
1370 |
|
|
}
|
1371 |
|
|
s/.*/./; q'`
|
1372 |
|
|
srcdir=$ac_confdir
|
1373 |
|
|
if test ! -r "$srcdir/$ac_unique_file"; then
|
1374 |
|
|
srcdir=..
|
1375 |
|
|
fi
|
1376 |
|
|
else
|
1377 |
|
|
ac_srcdir_defaulted=no
|
1378 |
|
|
fi
|
1379 |
|
|
if test ! -r "$srcdir/$ac_unique_file"; then
|
1380 |
|
|
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
1381 |
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
1382 |
|
|
{ (exit 1); exit 1; }; }
|
1383 |
|
|
fi
|
1384 |
|
|
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
1385 |
|
|
ac_abs_confdir=`(
|
1386 |
|
|
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
1387 |
|
|
{ (exit 1); exit 1; }; }
|
1388 |
|
|
pwd)`
|
1389 |
|
|
# When building in place, set srcdir=.
|
1390 |
|
|
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
1391 |
|
|
srcdir=.
|
1392 |
|
|
fi
|
1393 |
|
|
# Remove unnecessary trailing slashes from srcdir.
|
1394 |
|
|
# Double slashes in file names in object file debugging info
|
1395 |
|
|
# mess up M-x gdb in Emacs.
|
1396 |
|
|
case $srcdir in
|
1397 |
|
|
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
1398 |
|
|
esac
|
1399 |
|
|
for ac_var in $ac_precious_vars; do
|
1400 |
|
|
eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
1401 |
|
|
eval ac_env_${ac_var}_value=\$${ac_var}
|
1402 |
|
|
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
1403 |
|
|
eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
1404 |
|
|
done
|
1405 |
|
|
|
1406 |
|
|
#
|
1407 |
|
|
# Report the --help message.
|
1408 |
|
|
#
|
1409 |
|
|
if test "$ac_init_help" = "long"; then
|
1410 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
1411 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
1412 |
|
|
cat <<_ACEOF
|
1413 |
|
|
\`configure' configures or1ksim 0.3.0 to adapt to many kinds of systems.
|
1414 |
|
|
|
1415 |
|
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
1416 |
|
|
|
1417 |
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
1418 |
|
|
VAR=VALUE. See below for descriptions of some of the useful variables.
|
1419 |
|
|
|
1420 |
|
|
Defaults for the options are specified in brackets.
|
1421 |
|
|
|
1422 |
|
|
Configuration:
|
1423 |
|
|
-h, --help display this help and exit
|
1424 |
|
|
--help=short display options specific to this package
|
1425 |
|
|
--help=recursive display the short help of all the included packages
|
1426 |
|
|
-V, --version display version information and exit
|
1427 |
|
|
-q, --quiet, --silent do not print \`checking...' messages
|
1428 |
|
|
--cache-file=FILE cache test results in FILE [disabled]
|
1429 |
|
|
-C, --config-cache alias for \`--cache-file=config.cache'
|
1430 |
|
|
-n, --no-create do not create output files
|
1431 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
1432 |
|
|
|
1433 |
|
|
Installation directories:
|
1434 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
1435 |
|
|
[$ac_default_prefix]
|
1436 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
1437 |
|
|
[PREFIX]
|
1438 |
|
|
|
1439 |
|
|
By default, \`make install' will install all the files in
|
1440 |
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
1441 |
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
1442 |
|
|
for instance \`--prefix=\$HOME'.
|
1443 |
|
|
|
1444 |
|
|
For better control, use the options below.
|
1445 |
|
|
|
1446 |
|
|
Fine tuning of the installation directories:
|
1447 |
|
|
--bindir=DIR user executables [EPREFIX/bin]
|
1448 |
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
1449 |
|
|
--libexecdir=DIR program executables [EPREFIX/libexec]
|
1450 |
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
1451 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
1452 |
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
1453 |
|
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
1454 |
|
|
--includedir=DIR C header files [PREFIX/include]
|
1455 |
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
1456 |
|
|
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
1457 |
|
|
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
1458 |
|
|
--infodir=DIR info documentation [DATAROOTDIR/info]
|
1459 |
|
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
1460 |
|
|
--mandir=DIR man documentation [DATAROOTDIR/man]
|
1461 |
|
|
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/or1ksim@:>@
|
1462 |
|
|
--htmldir=DIR html documentation [DOCDIR]
|
1463 |
|
|
--dvidir=DIR dvi documentation [DOCDIR]
|
1464 |
|
|
--pdfdir=DIR pdf documentation [DOCDIR]
|
1465 |
|
|
--psdir=DIR ps documentation [DOCDIR]
|
1466 |
|
|
_ACEOF
|
1467 |
|
|
|
1468 |
|
|
cat <<\_ACEOF
|
1469 |
|
|
|
1470 |
|
|
Program names:
|
1471 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
1472 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
1473 |
|
|
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
1474 |
|
|
|
1475 |
|
|
System types:
|
1476 |
|
|
--build=BUILD configure for building on BUILD [guessed]
|
1477 |
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD]
|
1478 |
|
|
--target=TARGET configure for building compilers for TARGET [HOST]
|
1479 |
|
|
_ACEOF
|
1480 |
|
|
fi
|
1481 |
|
|
|
1482 |
|
|
if test -n "$ac_init_help"; then
|
1483 |
|
|
case $ac_init_help in
|
1484 |
|
|
short | recursive ) echo "Configuration of or1ksim 0.3.0:";;
|
1485 |
|
|
esac
|
1486 |
|
|
cat <<\_ACEOF
|
1487 |
|
|
|
1488 |
|
|
Optional Features:
|
1489 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
1490 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
1491 |
|
|
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
|
1492 |
|
|
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
|
1493 |
|
|
--enable-fast-install@<:@=PKGS@:>@
|
1494 |
|
|
optimize for fast installation @<:@default=yes@:>@
|
1495 |
|
|
--disable-libtool-lock avoid locking (might break parallel builds)
|
1496 |
|
|
--disable-dependency-tracking speeds up one-time build
|
1497 |
|
|
--enable-dependency-tracking do not reject slow dependency extractors
|
1498 |
|
|
--enable-profiling generate profiling code
|
1499 |
|
|
--enable-execution Execution style to use (simple/complex/dynamic)
|
1500 |
|
|
--enable-ethphy compiles sim with ethernet phy support
|
1501 |
|
|
--enable-range-stats Specifies, whether we should do register accesses over time analysis.
|
1502 |
|
|
--enable-ov-flag Whether instructions set overflow flag.
|
1503 |
|
|
--enable-arith-flag Whether arithmethic instructions setflag.
|
1504 |
|
|
|
1505 |
|
|
Optional Packages:
|
1506 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
1507 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
1508 |
|
|
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
|
1509 |
|
|
--with-pic try to use only PIC/non-PIC objects @<:@default=use
|
1510 |
|
|
both@:>@
|
1511 |
|
|
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
|
1512 |
|
|
|
1513 |
|
|
Some influential environment variables:
|
1514 |
|
|
CC C compiler command
|
1515 |
|
|
CFLAGS C compiler flags
|
1516 |
|
|
LDFLAGS linker flags, e.g. -L if you have libraries in a
|
1517 |
|
|
nonstandard directory
|
1518 |
|
|
LIBS libraries to pass to the linker, e.g. -l
|
1519 |
|
|
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if
|
1520 |
|
|
you have headers in a nonstandard directory
|
1521 |
|
|
CPP C preprocessor
|
1522 |
|
|
CXX C++ compiler command
|
1523 |
|
|
CXXFLAGS C++ compiler flags
|
1524 |
|
|
CXXCPP C++ preprocessor
|
1525 |
|
|
F77 Fortran 77 compiler command
|
1526 |
|
|
FFLAGS Fortran 77 compiler flags
|
1527 |
|
|
|
1528 |
|
|
Use these variables to override the choices made by `configure' or to help
|
1529 |
|
|
it to find libraries and programs with nonstandard names/locations.
|
1530 |
|
|
|
1531 |
|
|
Report bugs to .
|
1532 |
|
|
_ACEOF
|
1533 |
|
|
ac_status=$?
|
1534 |
|
|
fi
|
1535 |
|
|
|
1536 |
|
|
if test "$ac_init_help" = "recursive"; then
|
1537 |
|
|
# If there are subdirs, report their specific --help.
|
1538 |
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
1539 |
|
|
test -d "$ac_dir" || continue
|
1540 |
|
|
ac_builddir=.
|
1541 |
|
|
|
1542 |
|
|
case "$ac_dir" in
|
1543 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1544 |
|
|
*)
|
1545 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
1546 |
|
|
# A ".." for each directory in $ac_dir_suffix.
|
1547 |
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
1548 |
|
|
case $ac_top_builddir_sub in
|
1549 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
1550 |
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
1551 |
|
|
esac ;;
|
1552 |
|
|
esac
|
1553 |
|
|
ac_abs_top_builddir=$ac_pwd
|
1554 |
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
1555 |
|
|
# for backward compatibility:
|
1556 |
|
|
ac_top_builddir=$ac_top_build_prefix
|
1557 |
|
|
|
1558 |
|
|
case $srcdir in
|
1559 |
|
|
.) # We are building in place.
|
1560 |
|
|
ac_srcdir=.
|
1561 |
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
1562 |
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
1563 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
1564 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
1565 |
|
|
ac_top_srcdir=$srcdir
|
1566 |
|
|
ac_abs_top_srcdir=$srcdir ;;
|
1567 |
|
|
*) # Relative name.
|
1568 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
1569 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
1570 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
1571 |
|
|
esac
|
1572 |
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
1573 |
|
|
|
1574 |
|
|
cd "$ac_dir" || { ac_status=$?; continue; }
|
1575 |
|
|
# Check for guested configure.
|
1576 |
|
|
if test -f "$ac_srcdir/configure.gnu"; then
|
1577 |
|
|
echo &&
|
1578 |
|
|
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
1579 |
|
|
elif test -f "$ac_srcdir/configure"; then
|
1580 |
|
|
echo &&
|
1581 |
|
|
$SHELL "$ac_srcdir/configure" --help=recursive
|
1582 |
|
|
else
|
1583 |
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
1584 |
|
|
fi || ac_status=$?
|
1585 |
|
|
cd "$ac_pwd" || { ac_status=$?; break; }
|
1586 |
|
|
done
|
1587 |
|
|
fi
|
1588 |
|
|
|
1589 |
|
|
test -n "$ac_init_help" && exit $ac_status
|
1590 |
|
|
if $ac_init_version; then
|
1591 |
|
|
cat <<\_ACEOF
|
1592 |
|
|
or1ksim configure 0.3.0
|
1593 |
|
|
generated by GNU Autoconf 2.61
|
1594 |
|
|
|
1595 |
|
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
1596 |
|
|
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
1597 |
|
|
This configure script is free software; the Free Software Foundation
|
1598 |
|
|
gives unlimited permission to copy, distribute and modify it.
|
1599 |
|
|
_ACEOF
|
1600 |
|
|
exit
|
1601 |
|
|
fi
|
1602 |
|
|
cat >config.log <<_ACEOF
|
1603 |
|
|
This file contains any messages produced by compilers while
|
1604 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
1605 |
|
|
|
1606 |
|
|
It was created by or1ksim $as_me 0.3.0, which was
|
1607 |
|
|
generated by GNU Autoconf 2.61. Invocation command line was
|
1608 |
|
|
|
1609 |
|
|
$ $0 $@
|
1610 |
|
|
|
1611 |
|
|
_ACEOF
|
1612 |
|
|
exec 5>>config.log
|
1613 |
|
|
{
|
1614 |
|
|
cat <<_ASUNAME
|
1615 |
|
|
@%:@@%:@ --------- @%:@@%:@
|
1616 |
|
|
@%:@@%:@ Platform. @%:@@%:@
|
1617 |
|
|
@%:@@%:@ --------- @%:@@%:@
|
1618 |
|
|
|
1619 |
|
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
1620 |
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
1621 |
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
1622 |
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
1623 |
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
1624 |
|
|
|
1625 |
|
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
1626 |
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
1627 |
|
|
|
1628 |
|
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
1629 |
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
1630 |
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
1631 |
|
|
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
1632 |
|
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
1633 |
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
1634 |
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
1635 |
|
|
|
1636 |
|
|
_ASUNAME
|
1637 |
|
|
|
1638 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1639 |
|
|
for as_dir in $PATH
|
1640 |
|
|
do
|
1641 |
|
|
IFS=$as_save_IFS
|
1642 |
|
|
test -z "$as_dir" && as_dir=.
|
1643 |
|
|
echo "PATH: $as_dir"
|
1644 |
|
|
done
|
1645 |
|
|
IFS=$as_save_IFS
|
1646 |
|
|
|
1647 |
|
|
} >&5
|
1648 |
|
|
|
1649 |
|
|
cat >&5 <<_ACEOF
|
1650 |
|
|
|
1651 |
|
|
|
1652 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1653 |
|
|
@%:@@%:@ Core tests. @%:@@%:@
|
1654 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1655 |
|
|
|
1656 |
|
|
_ACEOF
|
1657 |
|
|
|
1658 |
|
|
|
1659 |
|
|
# Keep a trace of the command line.
|
1660 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
1661 |
|
|
# Strip out --silent because we don't want to record it for future runs.
|
1662 |
|
|
# Also quote any args containing shell meta-characters.
|
1663 |
|
|
# Make two passes to allow for proper duplicate-argument suppression.
|
1664 |
|
|
ac_configure_args=
|
1665 |
|
|
ac_configure_args0=
|
1666 |
|
|
ac_configure_args1=
|
1667 |
|
|
ac_must_keep_next=false
|
1668 |
|
|
for ac_pass in 1 2
|
1669 |
|
|
do
|
1670 |
|
|
for ac_arg
|
1671 |
|
|
do
|
1672 |
|
|
case $ac_arg in
|
1673 |
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
1674 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
1675 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
1676 |
|
|
continue ;;
|
1677 |
|
|
*\'*)
|
1678 |
|
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1679 |
|
|
esac
|
1680 |
|
|
case $ac_pass in
|
1681 |
|
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
1682 |
|
|
2)
|
1683 |
|
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
1684 |
|
|
if test $ac_must_keep_next = true; then
|
1685 |
|
|
ac_must_keep_next=false # Got value, back to normal.
|
1686 |
|
|
else
|
1687 |
|
|
case $ac_arg in
|
1688 |
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \
|
1689 |
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
1690 |
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
1691 |
|
|
| -with-* | --with-* | -without-* | --without-* | --x)
|
1692 |
|
|
case "$ac_configure_args0 " in
|
1693 |
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
1694 |
|
|
esac
|
1695 |
|
|
;;
|
1696 |
|
|
-* ) ac_must_keep_next=true ;;
|
1697 |
|
|
esac
|
1698 |
|
|
fi
|
1699 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'"
|
1700 |
|
|
;;
|
1701 |
|
|
esac
|
1702 |
|
|
done
|
1703 |
|
|
done
|
1704 |
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
1705 |
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
1706 |
|
|
|
1707 |
|
|
# When interrupted or exit'd, cleanup temporary files, and complete
|
1708 |
|
|
# config.log. We remove comments because anyway the quotes in there
|
1709 |
|
|
# would cause problems or look ugly.
|
1710 |
|
|
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
1711 |
|
|
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
1712 |
|
|
trap 'exit_status=$?
|
1713 |
|
|
# Save into config.log some information that might help in debugging.
|
1714 |
|
|
{
|
1715 |
|
|
echo
|
1716 |
|
|
|
1717 |
|
|
cat <<\_ASBOX
|
1718 |
|
|
@%:@@%:@ ---------------- @%:@@%:@
|
1719 |
|
|
@%:@@%:@ Cache variables. @%:@@%:@
|
1720 |
|
|
@%:@@%:@ ---------------- @%:@@%:@
|
1721 |
|
|
_ASBOX
|
1722 |
|
|
echo
|
1723 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
1724 |
|
|
(
|
1725 |
|
|
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
1726 |
|
|
eval ac_val=\$$ac_var
|
1727 |
|
|
case $ac_val in #(
|
1728 |
|
|
*${as_nl}*)
|
1729 |
|
|
case $ac_var in #(
|
1730 |
|
|
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
1731 |
|
|
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
1732 |
|
|
esac
|
1733 |
|
|
case $ac_var in #(
|
1734 |
|
|
_ | IFS | as_nl) ;; #(
|
1735 |
|
|
*) $as_unset $ac_var ;;
|
1736 |
|
|
esac ;;
|
1737 |
|
|
esac
|
1738 |
|
|
done
|
1739 |
|
|
(set) 2>&1 |
|
1740 |
|
|
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
1741 |
|
|
*${as_nl}ac_space=\ *)
|
1742 |
|
|
sed -n \
|
1743 |
|
|
"s/'\''/'\''\\\\'\'''\''/g;
|
1744 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
1745 |
|
|
;; #(
|
1746 |
|
|
*)
|
1747 |
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
1748 |
|
|
;;
|
1749 |
|
|
esac |
|
1750 |
|
|
sort
|
1751 |
|
|
)
|
1752 |
|
|
echo
|
1753 |
|
|
|
1754 |
|
|
cat <<\_ASBOX
|
1755 |
|
|
@%:@@%:@ ----------------- @%:@@%:@
|
1756 |
|
|
@%:@@%:@ Output variables. @%:@@%:@
|
1757 |
|
|
@%:@@%:@ ----------------- @%:@@%:@
|
1758 |
|
|
_ASBOX
|
1759 |
|
|
echo
|
1760 |
|
|
for ac_var in $ac_subst_vars
|
1761 |
|
|
do
|
1762 |
|
|
eval ac_val=\$$ac_var
|
1763 |
|
|
case $ac_val in
|
1764 |
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
1765 |
|
|
esac
|
1766 |
|
|
echo "$ac_var='\''$ac_val'\''"
|
1767 |
|
|
done | sort
|
1768 |
|
|
echo
|
1769 |
|
|
|
1770 |
|
|
if test -n "$ac_subst_files"; then
|
1771 |
|
|
cat <<\_ASBOX
|
1772 |
|
|
@%:@@%:@ ------------------- @%:@@%:@
|
1773 |
|
|
@%:@@%:@ File substitutions. @%:@@%:@
|
1774 |
|
|
@%:@@%:@ ------------------- @%:@@%:@
|
1775 |
|
|
_ASBOX
|
1776 |
|
|
echo
|
1777 |
|
|
for ac_var in $ac_subst_files
|
1778 |
|
|
do
|
1779 |
|
|
eval ac_val=\$$ac_var
|
1780 |
|
|
case $ac_val in
|
1781 |
|
|
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
1782 |
|
|
esac
|
1783 |
|
|
echo "$ac_var='\''$ac_val'\''"
|
1784 |
|
|
done | sort
|
1785 |
|
|
echo
|
1786 |
|
|
fi
|
1787 |
|
|
|
1788 |
|
|
if test -s confdefs.h; then
|
1789 |
|
|
cat <<\_ASBOX
|
1790 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1791 |
|
|
@%:@@%:@ confdefs.h. @%:@@%:@
|
1792 |
|
|
@%:@@%:@ ----------- @%:@@%:@
|
1793 |
|
|
_ASBOX
|
1794 |
|
|
echo
|
1795 |
|
|
cat confdefs.h
|
1796 |
|
|
echo
|
1797 |
|
|
fi
|
1798 |
|
|
test "$ac_signal" != 0 &&
|
1799 |
|
|
echo "$as_me: caught signal $ac_signal"
|
1800 |
|
|
echo "$as_me: exit $exit_status"
|
1801 |
|
|
} >&5
|
1802 |
|
|
rm -f core *.core core.conftest.* &&
|
1803 |
|
|
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
1804 |
|
|
exit $exit_status
|
1805 |
|
|
' 0
|
1806 |
|
|
for ac_signal in 1 2 13 15; do
|
1807 |
|
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
1808 |
|
|
done
|
1809 |
|
|
ac_signal=0
|
1810 |
|
|
|
1811 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
1812 |
|
|
rm -f -r conftest* confdefs.h
|
1813 |
|
|
|
1814 |
|
|
# Predefined preprocessor variables.
|
1815 |
|
|
|
1816 |
|
|
cat >>confdefs.h <<_ACEOF
|
1817 |
|
|
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
|
1818 |
|
|
_ACEOF
|
1819 |
|
|
|
1820 |
|
|
|
1821 |
|
|
cat >>confdefs.h <<_ACEOF
|
1822 |
|
|
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
1823 |
|
|
_ACEOF
|
1824 |
|
|
|
1825 |
|
|
|
1826 |
|
|
cat >>confdefs.h <<_ACEOF
|
1827 |
|
|
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
|
1828 |
|
|
_ACEOF
|
1829 |
|
|
|
1830 |
|
|
|
1831 |
|
|
cat >>confdefs.h <<_ACEOF
|
1832 |
|
|
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
|
1833 |
|
|
_ACEOF
|
1834 |
|
|
|
1835 |
|
|
|
1836 |
|
|
cat >>confdefs.h <<_ACEOF
|
1837 |
|
|
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
1838 |
|
|
_ACEOF
|
1839 |
|
|
|
1840 |
|
|
|
1841 |
|
|
# Let the site file select an alternate cache file if it wants to.
|
1842 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
1843 |
|
|
if test -n "$CONFIG_SITE"; then
|
1844 |
|
|
set x "$CONFIG_SITE"
|
1845 |
|
|
elif test "x$prefix" != xNONE; then
|
1846 |
|
|
set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
1847 |
|
|
else
|
1848 |
|
|
set x "$ac_default_prefix/share/config.site" \
|
1849 |
|
|
"$ac_default_prefix/etc/config.site"
|
1850 |
|
|
fi
|
1851 |
|
|
shift
|
1852 |
|
|
for ac_site_file
|
1853 |
|
|
do
|
1854 |
|
|
if test -r "$ac_site_file"; then
|
1855 |
|
|
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
1856 |
|
|
echo "$as_me: loading site script $ac_site_file" >&6;}
|
1857 |
|
|
sed 's/^/| /' "$ac_site_file" >&5
|
1858 |
|
|
. "$ac_site_file"
|
1859 |
|
|
fi
|
1860 |
|
|
done
|
1861 |
|
|
|
1862 |
|
|
if test -r "$cache_file"; then
|
1863 |
|
|
# Some versions of bash will fail to source /dev/null (special
|
1864 |
|
|
# files actually), so we avoid doing that.
|
1865 |
|
|
if test -f "$cache_file"; then
|
1866 |
|
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
1867 |
|
|
echo "$as_me: loading cache $cache_file" >&6;}
|
1868 |
|
|
case $cache_file in
|
1869 |
|
|
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
1870 |
|
|
*) . "./$cache_file";;
|
1871 |
|
|
esac
|
1872 |
|
|
fi
|
1873 |
|
|
else
|
1874 |
|
|
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
1875 |
|
|
echo "$as_me: creating cache $cache_file" >&6;}
|
1876 |
|
|
>$cache_file
|
1877 |
|
|
fi
|
1878 |
|
|
|
1879 |
|
|
# Check that the precious variables saved in the cache have kept the same
|
1880 |
|
|
# value.
|
1881 |
|
|
ac_cache_corrupted=false
|
1882 |
|
|
for ac_var in $ac_precious_vars; do
|
1883 |
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
1884 |
|
|
eval ac_new_set=\$ac_env_${ac_var}_set
|
1885 |
|
|
eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
1886 |
|
|
eval ac_new_val=\$ac_env_${ac_var}_value
|
1887 |
|
|
case $ac_old_set,$ac_new_set in
|
1888 |
|
|
set,)
|
1889 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
1890 |
|
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
1891 |
|
|
ac_cache_corrupted=: ;;
|
1892 |
|
|
,set)
|
1893 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
1894 |
|
|
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
1895 |
|
|
ac_cache_corrupted=: ;;
|
1896 |
|
|
,);;
|
1897 |
|
|
*)
|
1898 |
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then
|
1899 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
1900 |
|
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
1901 |
|
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
1902 |
|
|
echo "$as_me: former value: $ac_old_val" >&2;}
|
1903 |
|
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
1904 |
|
|
echo "$as_me: current value: $ac_new_val" >&2;}
|
1905 |
|
|
ac_cache_corrupted=:
|
1906 |
|
|
fi;;
|
1907 |
|
|
esac
|
1908 |
|
|
# Pass precious variables to config.status.
|
1909 |
|
|
if test "$ac_new_set" = set; then
|
1910 |
|
|
case $ac_new_val in
|
1911 |
|
|
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1912 |
|
|
*) ac_arg=$ac_var=$ac_new_val ;;
|
1913 |
|
|
esac
|
1914 |
|
|
case " $ac_configure_args " in
|
1915 |
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
1916 |
|
|
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
1917 |
|
|
esac
|
1918 |
|
|
fi
|
1919 |
|
|
done
|
1920 |
|
|
if $ac_cache_corrupted; then
|
1921 |
|
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
1922 |
|
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
1923 |
|
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
1924 |
|
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
1925 |
|
|
{ (exit 1); exit 1; }; }
|
1926 |
|
|
fi
|
1927 |
|
|
|
1928 |
|
|
|
1929 |
|
|
|
1930 |
|
|
|
1931 |
|
|
|
1932 |
|
|
|
1933 |
|
|
|
1934 |
|
|
|
1935 |
|
|
|
1936 |
|
|
|
1937 |
|
|
|
1938 |
|
|
|
1939 |
|
|
|
1940 |
|
|
|
1941 |
|
|
|
1942 |
|
|
|
1943 |
|
|
|
1944 |
|
|
|
1945 |
|
|
|
1946 |
|
|
|
1947 |
|
|
|
1948 |
|
|
|
1949 |
|
|
|
1950 |
|
|
|
1951 |
|
|
|
1952 |
|
|
ac_ext=c
|
1953 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1954 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
1955 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
1956 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
1957 |
|
|
|
1958 |
|
|
|
1959 |
|
|
|
1960 |
|
|
ac_aux_dir=
|
1961 |
|
|
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
1962 |
|
|
if test -f "$ac_dir/install-sh"; then
|
1963 |
|
|
ac_aux_dir=$ac_dir
|
1964 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
1965 |
|
|
break
|
1966 |
|
|
elif test -f "$ac_dir/install.sh"; then
|
1967 |
|
|
ac_aux_dir=$ac_dir
|
1968 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
1969 |
|
|
break
|
1970 |
|
|
elif test -f "$ac_dir/shtool"; then
|
1971 |
|
|
ac_aux_dir=$ac_dir
|
1972 |
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
1973 |
|
|
break
|
1974 |
|
|
fi
|
1975 |
|
|
done
|
1976 |
|
|
if test -z "$ac_aux_dir"; then
|
1977 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
1978 |
|
|
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
1979 |
|
|
{ (exit 1); exit 1; }; }
|
1980 |
|
|
fi
|
1981 |
|
|
|
1982 |
|
|
# These three variables are undocumented and unsupported,
|
1983 |
|
|
# and are intended to be withdrawn in a future Autoconf release.
|
1984 |
|
|
# They can cause serious problems if a builder's source tree is in a directory
|
1985 |
|
|
# whose full name contains unusual characters.
|
1986 |
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
1987 |
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
1988 |
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
1989 |
|
|
|
1990 |
|
|
|
1991 |
|
|
# Make sure we can run config.sub.
|
1992 |
|
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
1993 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
1994 |
|
|
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
1995 |
|
|
{ (exit 1); exit 1; }; }
|
1996 |
|
|
|
1997 |
|
|
{ echo "$as_me:$LINENO: checking build system type" >&5
|
1998 |
|
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
1999 |
|
|
if test "${ac_cv_build+set}" = set; then
|
2000 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2001 |
|
|
else
|
2002 |
|
|
ac_build_alias=$build_alias
|
2003 |
|
|
test "x$ac_build_alias" = x &&
|
2004 |
|
|
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
2005 |
|
|
test "x$ac_build_alias" = x &&
|
2006 |
|
|
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
2007 |
|
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
2008 |
|
|
{ (exit 1); exit 1; }; }
|
2009 |
|
|
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
2010 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
2011 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
2012 |
|
|
{ (exit 1); exit 1; }; }
|
2013 |
|
|
|
2014 |
|
|
fi
|
2015 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
2016 |
|
|
echo "${ECHO_T}$ac_cv_build" >&6; }
|
2017 |
|
|
case $ac_cv_build in
|
2018 |
|
|
*-*-*) ;;
|
2019 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
2020 |
|
|
echo "$as_me: error: invalid value of canonical build" >&2;}
|
2021 |
|
|
{ (exit 1); exit 1; }; };;
|
2022 |
|
|
esac
|
2023 |
|
|
build=$ac_cv_build
|
2024 |
|
|
ac_save_IFS=$IFS; IFS='-'
|
2025 |
|
|
set x $ac_cv_build
|
2026 |
|
|
shift
|
2027 |
|
|
build_cpu=$1
|
2028 |
|
|
build_vendor=$2
|
2029 |
|
|
shift; shift
|
2030 |
|
|
# Remember, the first character of IFS is used to create $*,
|
2031 |
|
|
# except with old shells:
|
2032 |
|
|
build_os=$*
|
2033 |
|
|
IFS=$ac_save_IFS
|
2034 |
|
|
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
2035 |
|
|
|
2036 |
|
|
|
2037 |
|
|
{ echo "$as_me:$LINENO: checking host system type" >&5
|
2038 |
|
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
2039 |
|
|
if test "${ac_cv_host+set}" = set; then
|
2040 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2041 |
|
|
else
|
2042 |
|
|
if test "x$host_alias" = x; then
|
2043 |
|
|
ac_cv_host=$ac_cv_build
|
2044 |
|
|
else
|
2045 |
|
|
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
2046 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
2047 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
2048 |
|
|
{ (exit 1); exit 1; }; }
|
2049 |
|
|
fi
|
2050 |
|
|
|
2051 |
|
|
fi
|
2052 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
2053 |
|
|
echo "${ECHO_T}$ac_cv_host" >&6; }
|
2054 |
|
|
case $ac_cv_host in
|
2055 |
|
|
*-*-*) ;;
|
2056 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
2057 |
|
|
echo "$as_me: error: invalid value of canonical host" >&2;}
|
2058 |
|
|
{ (exit 1); exit 1; }; };;
|
2059 |
|
|
esac
|
2060 |
|
|
host=$ac_cv_host
|
2061 |
|
|
ac_save_IFS=$IFS; IFS='-'
|
2062 |
|
|
set x $ac_cv_host
|
2063 |
|
|
shift
|
2064 |
|
|
host_cpu=$1
|
2065 |
|
|
host_vendor=$2
|
2066 |
|
|
shift; shift
|
2067 |
|
|
# Remember, the first character of IFS is used to create $*,
|
2068 |
|
|
# except with old shells:
|
2069 |
|
|
host_os=$*
|
2070 |
|
|
IFS=$ac_save_IFS
|
2071 |
|
|
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
2072 |
|
|
|
2073 |
|
|
|
2074 |
|
|
{ echo "$as_me:$LINENO: checking target system type" >&5
|
2075 |
|
|
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
|
2076 |
|
|
if test "${ac_cv_target+set}" = set; then
|
2077 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2078 |
|
|
else
|
2079 |
|
|
if test "x$target_alias" = x; then
|
2080 |
|
|
ac_cv_target=$ac_cv_host
|
2081 |
|
|
else
|
2082 |
|
|
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
2083 |
|
|
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
2084 |
|
|
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
2085 |
|
|
{ (exit 1); exit 1; }; }
|
2086 |
|
|
fi
|
2087 |
|
|
|
2088 |
|
|
fi
|
2089 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
2090 |
|
|
echo "${ECHO_T}$ac_cv_target" >&6; }
|
2091 |
|
|
case $ac_cv_target in
|
2092 |
|
|
*-*-*) ;;
|
2093 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
2094 |
|
|
echo "$as_me: error: invalid value of canonical target" >&2;}
|
2095 |
|
|
{ (exit 1); exit 1; }; };;
|
2096 |
|
|
esac
|
2097 |
|
|
target=$ac_cv_target
|
2098 |
|
|
ac_save_IFS=$IFS; IFS='-'
|
2099 |
|
|
set x $ac_cv_target
|
2100 |
|
|
shift
|
2101 |
|
|
target_cpu=$1
|
2102 |
|
|
target_vendor=$2
|
2103 |
|
|
shift; shift
|
2104 |
|
|
# Remember, the first character of IFS is used to create $*,
|
2105 |
|
|
# except with old shells:
|
2106 |
|
|
target_os=$*
|
2107 |
|
|
IFS=$ac_save_IFS
|
2108 |
|
|
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
2109 |
|
|
|
2110 |
|
|
|
2111 |
|
|
# The aliases save the names the user supplied, while $host etc.
|
2112 |
|
|
# will get canonicalized.
|
2113 |
|
|
test -n "$target_alias" &&
|
2114 |
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
2115 |
|
|
NONENONEs,x,x, &&
|
2116 |
|
|
program_prefix=${target_alias}-
|
2117 |
|
|
# Check whether --enable-shared was given.
|
2118 |
|
|
if test "${enable_shared+set}" = set; then
|
2119 |
|
|
enableval=$enable_shared; p=${PACKAGE-default}
|
2120 |
|
|
case $enableval in
|
2121 |
|
|
yes) enable_shared=yes ;;
|
2122 |
|
|
no) enable_shared=no ;;
|
2123 |
|
|
*)
|
2124 |
|
|
enable_shared=no
|
2125 |
|
|
# Look at the argument we got. We use all the common list separators.
|
2126 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
2127 |
|
|
for pkg in $enableval; do
|
2128 |
|
|
IFS="$lt_save_ifs"
|
2129 |
|
|
if test "X$pkg" = "X$p"; then
|
2130 |
|
|
enable_shared=yes
|
2131 |
|
|
fi
|
2132 |
|
|
done
|
2133 |
|
|
IFS="$lt_save_ifs"
|
2134 |
|
|
;;
|
2135 |
|
|
esac
|
2136 |
|
|
else
|
2137 |
|
|
enable_shared=yes
|
2138 |
|
|
fi
|
2139 |
|
|
|
2140 |
|
|
|
2141 |
|
|
# Check whether --enable-static was given.
|
2142 |
|
|
if test "${enable_static+set}" = set; then
|
2143 |
|
|
enableval=$enable_static; p=${PACKAGE-default}
|
2144 |
|
|
case $enableval in
|
2145 |
|
|
yes) enable_static=yes ;;
|
2146 |
|
|
no) enable_static=no ;;
|
2147 |
|
|
*)
|
2148 |
|
|
enable_static=no
|
2149 |
|
|
# Look at the argument we got. We use all the common list separators.
|
2150 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
2151 |
|
|
for pkg in $enableval; do
|
2152 |
|
|
IFS="$lt_save_ifs"
|
2153 |
|
|
if test "X$pkg" = "X$p"; then
|
2154 |
|
|
enable_static=yes
|
2155 |
|
|
fi
|
2156 |
|
|
done
|
2157 |
|
|
IFS="$lt_save_ifs"
|
2158 |
|
|
;;
|
2159 |
|
|
esac
|
2160 |
|
|
else
|
2161 |
|
|
enable_static=yes
|
2162 |
|
|
fi
|
2163 |
|
|
|
2164 |
|
|
|
2165 |
|
|
# Check whether --enable-fast-install was given.
|
2166 |
|
|
if test "${enable_fast_install+set}" = set; then
|
2167 |
|
|
enableval=$enable_fast_install; p=${PACKAGE-default}
|
2168 |
|
|
case $enableval in
|
2169 |
|
|
yes) enable_fast_install=yes ;;
|
2170 |
|
|
no) enable_fast_install=no ;;
|
2171 |
|
|
*)
|
2172 |
|
|
enable_fast_install=no
|
2173 |
|
|
# Look at the argument we got. We use all the common list separators.
|
2174 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
2175 |
|
|
for pkg in $enableval; do
|
2176 |
|
|
IFS="$lt_save_ifs"
|
2177 |
|
|
if test "X$pkg" = "X$p"; then
|
2178 |
|
|
enable_fast_install=yes
|
2179 |
|
|
fi
|
2180 |
|
|
done
|
2181 |
|
|
IFS="$lt_save_ifs"
|
2182 |
|
|
;;
|
2183 |
|
|
esac
|
2184 |
|
|
else
|
2185 |
|
|
enable_fast_install=yes
|
2186 |
|
|
fi
|
2187 |
|
|
|
2188 |
|
|
|
2189 |
|
|
ac_ext=c
|
2190 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
2191 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2192 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2193 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2194 |
|
|
if test -n "$ac_tool_prefix"; then
|
2195 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
2196 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
2197 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2198 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2199 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2200 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2201 |
|
|
else
|
2202 |
|
|
if test -n "$CC"; then
|
2203 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2204 |
|
|
else
|
2205 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2206 |
|
|
for as_dir in $PATH
|
2207 |
|
|
do
|
2208 |
|
|
IFS=$as_save_IFS
|
2209 |
|
|
test -z "$as_dir" && as_dir=.
|
2210 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2211 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2212 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
2213 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2214 |
|
|
break 2
|
2215 |
|
|
fi
|
2216 |
|
|
done
|
2217 |
|
|
done
|
2218 |
|
|
IFS=$as_save_IFS
|
2219 |
|
|
|
2220 |
|
|
fi
|
2221 |
|
|
fi
|
2222 |
|
|
CC=$ac_cv_prog_CC
|
2223 |
|
|
if test -n "$CC"; then
|
2224 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2225 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2226 |
|
|
else
|
2227 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2228 |
|
|
echo "${ECHO_T}no" >&6; }
|
2229 |
|
|
fi
|
2230 |
|
|
|
2231 |
|
|
|
2232 |
|
|
fi
|
2233 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
2234 |
|
|
ac_ct_CC=$CC
|
2235 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
2236 |
|
|
set dummy gcc; ac_word=$2
|
2237 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2238 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2239 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
2240 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2241 |
|
|
else
|
2242 |
|
|
if test -n "$ac_ct_CC"; then
|
2243 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
2244 |
|
|
else
|
2245 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2246 |
|
|
for as_dir in $PATH
|
2247 |
|
|
do
|
2248 |
|
|
IFS=$as_save_IFS
|
2249 |
|
|
test -z "$as_dir" && as_dir=.
|
2250 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2251 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2252 |
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
2253 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2254 |
|
|
break 2
|
2255 |
|
|
fi
|
2256 |
|
|
done
|
2257 |
|
|
done
|
2258 |
|
|
IFS=$as_save_IFS
|
2259 |
|
|
|
2260 |
|
|
fi
|
2261 |
|
|
fi
|
2262 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
2263 |
|
|
if test -n "$ac_ct_CC"; then
|
2264 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
2265 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
2266 |
|
|
else
|
2267 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2268 |
|
|
echo "${ECHO_T}no" >&6; }
|
2269 |
|
|
fi
|
2270 |
|
|
|
2271 |
|
|
if test "x$ac_ct_CC" = x; then
|
2272 |
|
|
CC=""
|
2273 |
|
|
else
|
2274 |
|
|
case $cross_compiling:$ac_tool_warned in
|
2275 |
|
|
yes:)
|
2276 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
2277 |
|
|
whose name does not start with the host triplet. If you think this
|
2278 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
2279 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
2280 |
|
|
whose name does not start with the host triplet. If you think this
|
2281 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
2282 |
|
|
ac_tool_warned=yes ;;
|
2283 |
|
|
esac
|
2284 |
|
|
CC=$ac_ct_CC
|
2285 |
|
|
fi
|
2286 |
|
|
else
|
2287 |
|
|
CC="$ac_cv_prog_CC"
|
2288 |
|
|
fi
|
2289 |
|
|
|
2290 |
|
|
if test -z "$CC"; then
|
2291 |
|
|
if test -n "$ac_tool_prefix"; then
|
2292 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
2293 |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
2294 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2295 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2296 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2297 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2298 |
|
|
else
|
2299 |
|
|
if test -n "$CC"; then
|
2300 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2301 |
|
|
else
|
2302 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2303 |
|
|
for as_dir in $PATH
|
2304 |
|
|
do
|
2305 |
|
|
IFS=$as_save_IFS
|
2306 |
|
|
test -z "$as_dir" && as_dir=.
|
2307 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2308 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2309 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
2310 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2311 |
|
|
break 2
|
2312 |
|
|
fi
|
2313 |
|
|
done
|
2314 |
|
|
done
|
2315 |
|
|
IFS=$as_save_IFS
|
2316 |
|
|
|
2317 |
|
|
fi
|
2318 |
|
|
fi
|
2319 |
|
|
CC=$ac_cv_prog_CC
|
2320 |
|
|
if test -n "$CC"; then
|
2321 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2322 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2323 |
|
|
else
|
2324 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2325 |
|
|
echo "${ECHO_T}no" >&6; }
|
2326 |
|
|
fi
|
2327 |
|
|
|
2328 |
|
|
|
2329 |
|
|
fi
|
2330 |
|
|
fi
|
2331 |
|
|
if test -z "$CC"; then
|
2332 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
2333 |
|
|
set dummy cc; ac_word=$2
|
2334 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2335 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2336 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2337 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2338 |
|
|
else
|
2339 |
|
|
if test -n "$CC"; then
|
2340 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2341 |
|
|
else
|
2342 |
|
|
ac_prog_rejected=no
|
2343 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2344 |
|
|
for as_dir in $PATH
|
2345 |
|
|
do
|
2346 |
|
|
IFS=$as_save_IFS
|
2347 |
|
|
test -z "$as_dir" && as_dir=.
|
2348 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2349 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2350 |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
2351 |
|
|
ac_prog_rejected=yes
|
2352 |
|
|
continue
|
2353 |
|
|
fi
|
2354 |
|
|
ac_cv_prog_CC="cc"
|
2355 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2356 |
|
|
break 2
|
2357 |
|
|
fi
|
2358 |
|
|
done
|
2359 |
|
|
done
|
2360 |
|
|
IFS=$as_save_IFS
|
2361 |
|
|
|
2362 |
|
|
if test $ac_prog_rejected = yes; then
|
2363 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
2364 |
|
|
set dummy $ac_cv_prog_CC
|
2365 |
|
|
shift
|
2366 |
|
|
if test $@%:@ != 0; then
|
2367 |
|
|
# We chose a different compiler from the bogus one.
|
2368 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
2369 |
|
|
# first if we set CC to just the basename; use the full file name.
|
2370 |
|
|
shift
|
2371 |
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
2372 |
|
|
fi
|
2373 |
|
|
fi
|
2374 |
|
|
fi
|
2375 |
|
|
fi
|
2376 |
|
|
CC=$ac_cv_prog_CC
|
2377 |
|
|
if test -n "$CC"; then
|
2378 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2379 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2380 |
|
|
else
|
2381 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2382 |
|
|
echo "${ECHO_T}no" >&6; }
|
2383 |
|
|
fi
|
2384 |
|
|
|
2385 |
|
|
|
2386 |
|
|
fi
|
2387 |
|
|
if test -z "$CC"; then
|
2388 |
|
|
if test -n "$ac_tool_prefix"; then
|
2389 |
|
|
for ac_prog in cl.exe
|
2390 |
|
|
do
|
2391 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
2392 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
2393 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2394 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2395 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2396 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2397 |
|
|
else
|
2398 |
|
|
if test -n "$CC"; then
|
2399 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2400 |
|
|
else
|
2401 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2402 |
|
|
for as_dir in $PATH
|
2403 |
|
|
do
|
2404 |
|
|
IFS=$as_save_IFS
|
2405 |
|
|
test -z "$as_dir" && as_dir=.
|
2406 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2407 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2408 |
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
2409 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2410 |
|
|
break 2
|
2411 |
|
|
fi
|
2412 |
|
|
done
|
2413 |
|
|
done
|
2414 |
|
|
IFS=$as_save_IFS
|
2415 |
|
|
|
2416 |
|
|
fi
|
2417 |
|
|
fi
|
2418 |
|
|
CC=$ac_cv_prog_CC
|
2419 |
|
|
if test -n "$CC"; then
|
2420 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
2421 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
2422 |
|
|
else
|
2423 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2424 |
|
|
echo "${ECHO_T}no" >&6; }
|
2425 |
|
|
fi
|
2426 |
|
|
|
2427 |
|
|
|
2428 |
|
|
test -n "$CC" && break
|
2429 |
|
|
done
|
2430 |
|
|
fi
|
2431 |
|
|
if test -z "$CC"; then
|
2432 |
|
|
ac_ct_CC=$CC
|
2433 |
|
|
for ac_prog in cl.exe
|
2434 |
|
|
do
|
2435 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
2436 |
|
|
set dummy $ac_prog; ac_word=$2
|
2437 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2438 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
2439 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
2440 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2441 |
|
|
else
|
2442 |
|
|
if test -n "$ac_ct_CC"; then
|
2443 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
2444 |
|
|
else
|
2445 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2446 |
|
|
for as_dir in $PATH
|
2447 |
|
|
do
|
2448 |
|
|
IFS=$as_save_IFS
|
2449 |
|
|
test -z "$as_dir" && as_dir=.
|
2450 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2451 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
2452 |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
2453 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2454 |
|
|
break 2
|
2455 |
|
|
fi
|
2456 |
|
|
done
|
2457 |
|
|
done
|
2458 |
|
|
IFS=$as_save_IFS
|
2459 |
|
|
|
2460 |
|
|
fi
|
2461 |
|
|
fi
|
2462 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
2463 |
|
|
if test -n "$ac_ct_CC"; then
|
2464 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
2465 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
2466 |
|
|
else
|
2467 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
2468 |
|
|
echo "${ECHO_T}no" >&6; }
|
2469 |
|
|
fi
|
2470 |
|
|
|
2471 |
|
|
|
2472 |
|
|
test -n "$ac_ct_CC" && break
|
2473 |
|
|
done
|
2474 |
|
|
|
2475 |
|
|
if test "x$ac_ct_CC" = x; then
|
2476 |
|
|
CC=""
|
2477 |
|
|
else
|
2478 |
|
|
case $cross_compiling:$ac_tool_warned in
|
2479 |
|
|
yes:)
|
2480 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
2481 |
|
|
whose name does not start with the host triplet. If you think this
|
2482 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
2483 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
2484 |
|
|
whose name does not start with the host triplet. If you think this
|
2485 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
2486 |
|
|
ac_tool_warned=yes ;;
|
2487 |
|
|
esac
|
2488 |
|
|
CC=$ac_ct_CC
|
2489 |
|
|
fi
|
2490 |
|
|
fi
|
2491 |
|
|
|
2492 |
|
|
fi
|
2493 |
|
|
|
2494 |
|
|
|
2495 |
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
2496 |
|
|
See \`config.log' for more details." >&5
|
2497 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
2498 |
|
|
See \`config.log' for more details." >&2;}
|
2499 |
|
|
{ (exit 1); exit 1; }; }
|
2500 |
|
|
|
2501 |
|
|
# Provide some information about the compiler.
|
2502 |
|
|
echo "$as_me:$LINENO: checking for C compiler version" >&5
|
2503 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
2504 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
2505 |
|
|
case "(($ac_try" in
|
2506 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2507 |
|
|
*) ac_try_echo=$ac_try;;
|
2508 |
|
|
esac
|
2509 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2510 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
2511 |
|
|
ac_status=$?
|
2512 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2513 |
|
|
(exit $ac_status); }
|
2514 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
2515 |
|
|
case "(($ac_try" in
|
2516 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2517 |
|
|
*) ac_try_echo=$ac_try;;
|
2518 |
|
|
esac
|
2519 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2520 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
2521 |
|
|
ac_status=$?
|
2522 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2523 |
|
|
(exit $ac_status); }
|
2524 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
2525 |
|
|
case "(($ac_try" in
|
2526 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2527 |
|
|
*) ac_try_echo=$ac_try;;
|
2528 |
|
|
esac
|
2529 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2530 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
2531 |
|
|
ac_status=$?
|
2532 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2533 |
|
|
(exit $ac_status); }
|
2534 |
|
|
|
2535 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2536 |
|
|
/* confdefs.h. */
|
2537 |
|
|
_ACEOF
|
2538 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2539 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2540 |
|
|
/* end confdefs.h. */
|
2541 |
|
|
|
2542 |
|
|
int
|
2543 |
|
|
main ()
|
2544 |
|
|
{
|
2545 |
|
|
|
2546 |
|
|
;
|
2547 |
|
|
return 0;
|
2548 |
|
|
}
|
2549 |
|
|
_ACEOF
|
2550 |
|
|
ac_clean_files_save=$ac_clean_files
|
2551 |
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
2552 |
|
|
# Try to create an executable without -o first, disregard a.out.
|
2553 |
|
|
# It will help us diagnose broken compilers, and finding out an intuition
|
2554 |
|
|
# of exeext.
|
2555 |
|
|
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
2556 |
|
|
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
2557 |
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
2558 |
|
|
#
|
2559 |
|
|
# List of possible output files, starting from the most likely.
|
2560 |
|
|
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
2561 |
|
|
# only as a last resort. b.out is created by i960 compilers.
|
2562 |
|
|
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
2563 |
|
|
#
|
2564 |
|
|
# The IRIX 6 linker writes into existing files which may not be
|
2565 |
|
|
# executable, retaining their permissions. Remove them first so a
|
2566 |
|
|
# subsequent execution test works.
|
2567 |
|
|
ac_rmfiles=
|
2568 |
|
|
for ac_file in $ac_files
|
2569 |
|
|
do
|
2570 |
|
|
case $ac_file in
|
2571 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
2572 |
|
|
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
2573 |
|
|
esac
|
2574 |
|
|
done
|
2575 |
|
|
rm -f $ac_rmfiles
|
2576 |
|
|
|
2577 |
|
|
if { (ac_try="$ac_link_default"
|
2578 |
|
|
case "(($ac_try" in
|
2579 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2580 |
|
|
*) ac_try_echo=$ac_try;;
|
2581 |
|
|
esac
|
2582 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2583 |
|
|
(eval "$ac_link_default") 2>&5
|
2584 |
|
|
ac_status=$?
|
2585 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2586 |
|
|
(exit $ac_status); }; then
|
2587 |
|
|
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
2588 |
|
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
2589 |
|
|
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
2590 |
|
|
# so that the user can short-circuit this test for compilers unknown to
|
2591 |
|
|
# Autoconf.
|
2592 |
|
|
for ac_file in $ac_files ''
|
2593 |
|
|
do
|
2594 |
|
|
test -f "$ac_file" || continue
|
2595 |
|
|
case $ac_file in
|
2596 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
2597 |
|
|
;;
|
2598 |
|
|
[ab].out )
|
2599 |
|
|
# We found the default executable, but exeext='' is most
|
2600 |
|
|
# certainly right.
|
2601 |
|
|
break;;
|
2602 |
|
|
*.* )
|
2603 |
|
|
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
2604 |
|
|
then :; else
|
2605 |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
2606 |
|
|
fi
|
2607 |
|
|
# We set ac_cv_exeext here because the later test for it is not
|
2608 |
|
|
# safe: cross compilers may not add the suffix if given an `-o'
|
2609 |
|
|
# argument, so we may need to know it at that point already.
|
2610 |
|
|
# Even if this section looks crufty: it has the advantage of
|
2611 |
|
|
# actually working.
|
2612 |
|
|
break;;
|
2613 |
|
|
* )
|
2614 |
|
|
break;;
|
2615 |
|
|
esac
|
2616 |
|
|
done
|
2617 |
|
|
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
2618 |
|
|
|
2619 |
|
|
else
|
2620 |
|
|
ac_file=''
|
2621 |
|
|
fi
|
2622 |
|
|
|
2623 |
|
|
{ echo "$as_me:$LINENO: result: $ac_file" >&5
|
2624 |
|
|
echo "${ECHO_T}$ac_file" >&6; }
|
2625 |
|
|
if test -z "$ac_file"; then
|
2626 |
|
|
echo "$as_me: failed program was:" >&5
|
2627 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2628 |
|
|
|
2629 |
|
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
2630 |
|
|
See \`config.log' for more details." >&5
|
2631 |
|
|
echo "$as_me: error: C compiler cannot create executables
|
2632 |
|
|
See \`config.log' for more details." >&2;}
|
2633 |
|
|
{ (exit 77); exit 77; }; }
|
2634 |
|
|
fi
|
2635 |
|
|
|
2636 |
|
|
ac_exeext=$ac_cv_exeext
|
2637 |
|
|
|
2638 |
|
|
# Check that the compiler produces executables we can run. If not, either
|
2639 |
|
|
# the compiler is broken, or we cross compile.
|
2640 |
|
|
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
2641 |
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
2642 |
|
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
2643 |
|
|
# If not cross compiling, check that we can run a simple program.
|
2644 |
|
|
if test "$cross_compiling" != yes; then
|
2645 |
|
|
if { ac_try='./$ac_file'
|
2646 |
|
|
{ (case "(($ac_try" in
|
2647 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2648 |
|
|
*) ac_try_echo=$ac_try;;
|
2649 |
|
|
esac
|
2650 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2651 |
|
|
(eval "$ac_try") 2>&5
|
2652 |
|
|
ac_status=$?
|
2653 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2654 |
|
|
(exit $ac_status); }; }; then
|
2655 |
|
|
cross_compiling=no
|
2656 |
|
|
else
|
2657 |
|
|
if test "$cross_compiling" = maybe; then
|
2658 |
|
|
cross_compiling=yes
|
2659 |
|
|
else
|
2660 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
2661 |
|
|
If you meant to cross compile, use \`--host'.
|
2662 |
|
|
See \`config.log' for more details." >&5
|
2663 |
|
|
echo "$as_me: error: cannot run C compiled programs.
|
2664 |
|
|
If you meant to cross compile, use \`--host'.
|
2665 |
|
|
See \`config.log' for more details." >&2;}
|
2666 |
|
|
{ (exit 1); exit 1; }; }
|
2667 |
|
|
fi
|
2668 |
|
|
fi
|
2669 |
|
|
fi
|
2670 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
2671 |
|
|
echo "${ECHO_T}yes" >&6; }
|
2672 |
|
|
|
2673 |
|
|
rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
2674 |
|
|
ac_clean_files=$ac_clean_files_save
|
2675 |
|
|
# Check that the compiler produces executables we can run. If not, either
|
2676 |
|
|
# the compiler is broken, or we cross compile.
|
2677 |
|
|
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
2678 |
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
2679 |
|
|
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
2680 |
|
|
echo "${ECHO_T}$cross_compiling" >&6; }
|
2681 |
|
|
|
2682 |
|
|
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
2683 |
|
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
2684 |
|
|
if { (ac_try="$ac_link"
|
2685 |
|
|
case "(($ac_try" in
|
2686 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2687 |
|
|
*) ac_try_echo=$ac_try;;
|
2688 |
|
|
esac
|
2689 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2690 |
|
|
(eval "$ac_link") 2>&5
|
2691 |
|
|
ac_status=$?
|
2692 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2693 |
|
|
(exit $ac_status); }; then
|
2694 |
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
2695 |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
2696 |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
2697 |
|
|
# `rm'.
|
2698 |
|
|
for ac_file in conftest.exe conftest conftest.*; do
|
2699 |
|
|
test -f "$ac_file" || continue
|
2700 |
|
|
case $ac_file in
|
2701 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
2702 |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
2703 |
|
|
break;;
|
2704 |
|
|
* ) break;;
|
2705 |
|
|
esac
|
2706 |
|
|
done
|
2707 |
|
|
else
|
2708 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
2709 |
|
|
See \`config.log' for more details." >&5
|
2710 |
|
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
2711 |
|
|
See \`config.log' for more details." >&2;}
|
2712 |
|
|
{ (exit 1); exit 1; }; }
|
2713 |
|
|
fi
|
2714 |
|
|
|
2715 |
|
|
rm -f conftest$ac_cv_exeext
|
2716 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
2717 |
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
2718 |
|
|
|
2719 |
|
|
rm -f conftest.$ac_ext
|
2720 |
|
|
EXEEXT=$ac_cv_exeext
|
2721 |
|
|
ac_exeext=$EXEEXT
|
2722 |
|
|
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
2723 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
2724 |
|
|
if test "${ac_cv_objext+set}" = set; then
|
2725 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2726 |
|
|
else
|
2727 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2728 |
|
|
/* confdefs.h. */
|
2729 |
|
|
_ACEOF
|
2730 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2731 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2732 |
|
|
/* end confdefs.h. */
|
2733 |
|
|
|
2734 |
|
|
int
|
2735 |
|
|
main ()
|
2736 |
|
|
{
|
2737 |
|
|
|
2738 |
|
|
;
|
2739 |
|
|
return 0;
|
2740 |
|
|
}
|
2741 |
|
|
_ACEOF
|
2742 |
|
|
rm -f conftest.o conftest.obj
|
2743 |
|
|
if { (ac_try="$ac_compile"
|
2744 |
|
|
case "(($ac_try" in
|
2745 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2746 |
|
|
*) ac_try_echo=$ac_try;;
|
2747 |
|
|
esac
|
2748 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2749 |
|
|
(eval "$ac_compile") 2>&5
|
2750 |
|
|
ac_status=$?
|
2751 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2752 |
|
|
(exit $ac_status); }; then
|
2753 |
|
|
for ac_file in conftest.o conftest.obj conftest.*; do
|
2754 |
|
|
test -f "$ac_file" || continue;
|
2755 |
|
|
case $ac_file in
|
2756 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
2757 |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
2758 |
|
|
break;;
|
2759 |
|
|
esac
|
2760 |
|
|
done
|
2761 |
|
|
else
|
2762 |
|
|
echo "$as_me: failed program was:" >&5
|
2763 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2764 |
|
|
|
2765 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
2766 |
|
|
See \`config.log' for more details." >&5
|
2767 |
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
2768 |
|
|
See \`config.log' for more details." >&2;}
|
2769 |
|
|
{ (exit 1); exit 1; }; }
|
2770 |
|
|
fi
|
2771 |
|
|
|
2772 |
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
2773 |
|
|
fi
|
2774 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
2775 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6; }
|
2776 |
|
|
OBJEXT=$ac_cv_objext
|
2777 |
|
|
ac_objext=$OBJEXT
|
2778 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
2779 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
2780 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
2781 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2782 |
|
|
else
|
2783 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2784 |
|
|
/* confdefs.h. */
|
2785 |
|
|
_ACEOF
|
2786 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2787 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2788 |
|
|
/* end confdefs.h. */
|
2789 |
|
|
|
2790 |
|
|
int
|
2791 |
|
|
main ()
|
2792 |
|
|
{
|
2793 |
|
|
#ifndef __GNUC__
|
2794 |
|
|
choke me
|
2795 |
|
|
#endif
|
2796 |
|
|
|
2797 |
|
|
;
|
2798 |
|
|
return 0;
|
2799 |
|
|
}
|
2800 |
|
|
_ACEOF
|
2801 |
|
|
rm -f conftest.$ac_objext
|
2802 |
|
|
if { (ac_try="$ac_compile"
|
2803 |
|
|
case "(($ac_try" in
|
2804 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2805 |
|
|
*) ac_try_echo=$ac_try;;
|
2806 |
|
|
esac
|
2807 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2808 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2809 |
|
|
ac_status=$?
|
2810 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2811 |
|
|
rm -f conftest.er1
|
2812 |
|
|
cat conftest.err >&5
|
2813 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2814 |
|
|
(exit $ac_status); } && {
|
2815 |
|
|
test -z "$ac_c_werror_flag" ||
|
2816 |
|
|
test ! -s conftest.err
|
2817 |
|
|
} && test -s conftest.$ac_objext; then
|
2818 |
|
|
ac_compiler_gnu=yes
|
2819 |
|
|
else
|
2820 |
|
|
echo "$as_me: failed program was:" >&5
|
2821 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2822 |
|
|
|
2823 |
|
|
ac_compiler_gnu=no
|
2824 |
|
|
fi
|
2825 |
|
|
|
2826 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2827 |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
2828 |
|
|
|
2829 |
|
|
fi
|
2830 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
2831 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
2832 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
2833 |
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
2834 |
|
|
ac_save_CFLAGS=$CFLAGS
|
2835 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
2836 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
2837 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
2838 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2839 |
|
|
else
|
2840 |
|
|
ac_save_c_werror_flag=$ac_c_werror_flag
|
2841 |
|
|
ac_c_werror_flag=yes
|
2842 |
|
|
ac_cv_prog_cc_g=no
|
2843 |
|
|
CFLAGS="-g"
|
2844 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2845 |
|
|
/* confdefs.h. */
|
2846 |
|
|
_ACEOF
|
2847 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2848 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2849 |
|
|
/* end confdefs.h. */
|
2850 |
|
|
|
2851 |
|
|
int
|
2852 |
|
|
main ()
|
2853 |
|
|
{
|
2854 |
|
|
|
2855 |
|
|
;
|
2856 |
|
|
return 0;
|
2857 |
|
|
}
|
2858 |
|
|
_ACEOF
|
2859 |
|
|
rm -f conftest.$ac_objext
|
2860 |
|
|
if { (ac_try="$ac_compile"
|
2861 |
|
|
case "(($ac_try" in
|
2862 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2863 |
|
|
*) ac_try_echo=$ac_try;;
|
2864 |
|
|
esac
|
2865 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2866 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2867 |
|
|
ac_status=$?
|
2868 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2869 |
|
|
rm -f conftest.er1
|
2870 |
|
|
cat conftest.err >&5
|
2871 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2872 |
|
|
(exit $ac_status); } && {
|
2873 |
|
|
test -z "$ac_c_werror_flag" ||
|
2874 |
|
|
test ! -s conftest.err
|
2875 |
|
|
} && test -s conftest.$ac_objext; then
|
2876 |
|
|
ac_cv_prog_cc_g=yes
|
2877 |
|
|
else
|
2878 |
|
|
echo "$as_me: failed program was:" >&5
|
2879 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2880 |
|
|
|
2881 |
|
|
CFLAGS=""
|
2882 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2883 |
|
|
/* confdefs.h. */
|
2884 |
|
|
_ACEOF
|
2885 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2886 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2887 |
|
|
/* end confdefs.h. */
|
2888 |
|
|
|
2889 |
|
|
int
|
2890 |
|
|
main ()
|
2891 |
|
|
{
|
2892 |
|
|
|
2893 |
|
|
;
|
2894 |
|
|
return 0;
|
2895 |
|
|
}
|
2896 |
|
|
_ACEOF
|
2897 |
|
|
rm -f conftest.$ac_objext
|
2898 |
|
|
if { (ac_try="$ac_compile"
|
2899 |
|
|
case "(($ac_try" in
|
2900 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2901 |
|
|
*) ac_try_echo=$ac_try;;
|
2902 |
|
|
esac
|
2903 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2904 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2905 |
|
|
ac_status=$?
|
2906 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2907 |
|
|
rm -f conftest.er1
|
2908 |
|
|
cat conftest.err >&5
|
2909 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2910 |
|
|
(exit $ac_status); } && {
|
2911 |
|
|
test -z "$ac_c_werror_flag" ||
|
2912 |
|
|
test ! -s conftest.err
|
2913 |
|
|
} && test -s conftest.$ac_objext; then
|
2914 |
|
|
:
|
2915 |
|
|
else
|
2916 |
|
|
echo "$as_me: failed program was:" >&5
|
2917 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2918 |
|
|
|
2919 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
2920 |
|
|
CFLAGS="-g"
|
2921 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2922 |
|
|
/* confdefs.h. */
|
2923 |
|
|
_ACEOF
|
2924 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2925 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2926 |
|
|
/* end confdefs.h. */
|
2927 |
|
|
|
2928 |
|
|
int
|
2929 |
|
|
main ()
|
2930 |
|
|
{
|
2931 |
|
|
|
2932 |
|
|
;
|
2933 |
|
|
return 0;
|
2934 |
|
|
}
|
2935 |
|
|
_ACEOF
|
2936 |
|
|
rm -f conftest.$ac_objext
|
2937 |
|
|
if { (ac_try="$ac_compile"
|
2938 |
|
|
case "(($ac_try" in
|
2939 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
2940 |
|
|
*) ac_try_echo=$ac_try;;
|
2941 |
|
|
esac
|
2942 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
2943 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
2944 |
|
|
ac_status=$?
|
2945 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2946 |
|
|
rm -f conftest.er1
|
2947 |
|
|
cat conftest.err >&5
|
2948 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2949 |
|
|
(exit $ac_status); } && {
|
2950 |
|
|
test -z "$ac_c_werror_flag" ||
|
2951 |
|
|
test ! -s conftest.err
|
2952 |
|
|
} && test -s conftest.$ac_objext; then
|
2953 |
|
|
ac_cv_prog_cc_g=yes
|
2954 |
|
|
else
|
2955 |
|
|
echo "$as_me: failed program was:" >&5
|
2956 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2957 |
|
|
|
2958 |
|
|
|
2959 |
|
|
fi
|
2960 |
|
|
|
2961 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2962 |
|
|
fi
|
2963 |
|
|
|
2964 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2965 |
|
|
fi
|
2966 |
|
|
|
2967 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2968 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
2969 |
|
|
fi
|
2970 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
2971 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
2972 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
2973 |
|
|
CFLAGS=$ac_save_CFLAGS
|
2974 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
2975 |
|
|
if test "$GCC" = yes; then
|
2976 |
|
|
CFLAGS="-g -O2"
|
2977 |
|
|
else
|
2978 |
|
|
CFLAGS="-g"
|
2979 |
|
|
fi
|
2980 |
|
|
else
|
2981 |
|
|
if test "$GCC" = yes; then
|
2982 |
|
|
CFLAGS="-O2"
|
2983 |
|
|
else
|
2984 |
|
|
CFLAGS=
|
2985 |
|
|
fi
|
2986 |
|
|
fi
|
2987 |
|
|
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
2988 |
|
|
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
2989 |
|
|
if test "${ac_cv_prog_cc_c89+set}" = set; then
|
2990 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2991 |
|
|
else
|
2992 |
|
|
ac_cv_prog_cc_c89=no
|
2993 |
|
|
ac_save_CC=$CC
|
2994 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2995 |
|
|
/* confdefs.h. */
|
2996 |
|
|
_ACEOF
|
2997 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2998 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2999 |
|
|
/* end confdefs.h. */
|
3000 |
|
|
#include
|
3001 |
|
|
#include
|
3002 |
|
|
#include
|
3003 |
|
|
#include
|
3004 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
3005 |
|
|
struct buf { int x; };
|
3006 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
3007 |
|
|
static char *e (p, i)
|
3008 |
|
|
char **p;
|
3009 |
|
|
int i;
|
3010 |
|
|
{
|
3011 |
|
|
return p[i];
|
3012 |
|
|
}
|
3013 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
3014 |
|
|
{
|
3015 |
|
|
char *s;
|
3016 |
|
|
va_list v;
|
3017 |
|
|
va_start (v,p);
|
3018 |
|
|
s = g (p, va_arg (v,int));
|
3019 |
|
|
va_end (v);
|
3020 |
|
|
return s;
|
3021 |
|
|
}
|
3022 |
|
|
|
3023 |
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
3024 |
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
3025 |
|
|
These don't provoke an error unfortunately, instead are silently treated
|
3026 |
|
|
as 'x'. The following induces an error, until -std is added to get
|
3027 |
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
3028 |
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
3029 |
|
|
that's true only with -std. */
|
3030 |
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
3031 |
|
|
|
3032 |
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
3033 |
|
|
inside strings and character constants. */
|
3034 |
|
|
#define FOO(x) 'x'
|
3035 |
|
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
3036 |
|
|
|
3037 |
|
|
int test (int i, double x);
|
3038 |
|
|
struct s1 {int (*f) (int a);};
|
3039 |
|
|
struct s2 {int (*f) (double a);};
|
3040 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
3041 |
|
|
int argc;
|
3042 |
|
|
char **argv;
|
3043 |
|
|
int
|
3044 |
|
|
main ()
|
3045 |
|
|
{
|
3046 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
3047 |
|
|
;
|
3048 |
|
|
return 0;
|
3049 |
|
|
}
|
3050 |
|
|
_ACEOF
|
3051 |
|
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
3052 |
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
3053 |
|
|
do
|
3054 |
|
|
CC="$ac_save_CC $ac_arg"
|
3055 |
|
|
rm -f conftest.$ac_objext
|
3056 |
|
|
if { (ac_try="$ac_compile"
|
3057 |
|
|
case "(($ac_try" in
|
3058 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
3059 |
|
|
*) ac_try_echo=$ac_try;;
|
3060 |
|
|
esac
|
3061 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
3062 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
3063 |
|
|
ac_status=$?
|
3064 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3065 |
|
|
rm -f conftest.er1
|
3066 |
|
|
cat conftest.err >&5
|
3067 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3068 |
|
|
(exit $ac_status); } && {
|
3069 |
|
|
test -z "$ac_c_werror_flag" ||
|
3070 |
|
|
test ! -s conftest.err
|
3071 |
|
|
} && test -s conftest.$ac_objext; then
|
3072 |
|
|
ac_cv_prog_cc_c89=$ac_arg
|
3073 |
|
|
else
|
3074 |
|
|
echo "$as_me: failed program was:" >&5
|
3075 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3076 |
|
|
|
3077 |
|
|
|
3078 |
|
|
fi
|
3079 |
|
|
|
3080 |
|
|
rm -f core conftest.err conftest.$ac_objext
|
3081 |
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
3082 |
|
|
done
|
3083 |
|
|
rm -f conftest.$ac_ext
|
3084 |
|
|
CC=$ac_save_CC
|
3085 |
|
|
|
3086 |
|
|
fi
|
3087 |
|
|
# AC_CACHE_VAL
|
3088 |
|
|
case "x$ac_cv_prog_cc_c89" in
|
3089 |
|
|
x)
|
3090 |
|
|
{ echo "$as_me:$LINENO: result: none needed" >&5
|
3091 |
|
|
echo "${ECHO_T}none needed" >&6; } ;;
|
3092 |
|
|
xno)
|
3093 |
|
|
{ echo "$as_me:$LINENO: result: unsupported" >&5
|
3094 |
|
|
echo "${ECHO_T}unsupported" >&6; } ;;
|
3095 |
|
|
*)
|
3096 |
|
|
CC="$CC $ac_cv_prog_cc_c89"
|
3097 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
3098 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
3099 |
|
|
esac
|
3100 |
|
|
|
3101 |
|
|
|
3102 |
|
|
ac_ext=c
|
3103 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3104 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3105 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3106 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3107 |
|
|
|
3108 |
|
|
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
3109 |
|
|
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
|
3110 |
|
|
if test "${lt_cv_path_SED+set}" = set; then
|
3111 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3112 |
|
|
else
|
3113 |
|
|
# Loop through the user's path and test for sed and gsed.
|
3114 |
|
|
# Then use that list of sed's as ones to test for truncation.
|
3115 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3116 |
|
|
for as_dir in $PATH
|
3117 |
|
|
do
|
3118 |
|
|
IFS=$as_save_IFS
|
3119 |
|
|
test -z "$as_dir" && as_dir=.
|
3120 |
|
|
for lt_ac_prog in sed gsed; do
|
3121 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3122 |
|
|
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
|
3123 |
|
|
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
3124 |
|
|
fi
|
3125 |
|
|
done
|
3126 |
|
|
done
|
3127 |
|
|
done
|
3128 |
|
|
IFS=$as_save_IFS
|
3129 |
|
|
lt_ac_max=0
|
3130 |
|
|
lt_ac_count=0
|
3131 |
|
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
3132 |
|
|
# along with /bin/sed that truncates output.
|
3133 |
|
|
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
3134 |
|
|
test ! -f $lt_ac_sed && continue
|
3135 |
|
|
cat /dev/null > conftest.in
|
3136 |
|
|
lt_ac_count=0
|
3137 |
|
|
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
3138 |
|
|
# Check for GNU sed and select it if it is found.
|
3139 |
|
|
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
3140 |
|
|
lt_cv_path_SED=$lt_ac_sed
|
3141 |
|
|
break
|
3142 |
|
|
fi
|
3143 |
|
|
while true; do
|
3144 |
|
|
cat conftest.in conftest.in >conftest.tmp
|
3145 |
|
|
mv conftest.tmp conftest.in
|
3146 |
|
|
cp conftest.in conftest.nl
|
3147 |
|
|
echo >>conftest.nl
|
3148 |
|
|
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
3149 |
|
|
cmp -s conftest.out conftest.nl || break
|
3150 |
|
|
# 10000 chars as input seems more than enough
|
3151 |
|
|
test $lt_ac_count -gt 10 && break
|
3152 |
|
|
lt_ac_count=`expr $lt_ac_count + 1`
|
3153 |
|
|
if test $lt_ac_count -gt $lt_ac_max; then
|
3154 |
|
|
lt_ac_max=$lt_ac_count
|
3155 |
|
|
lt_cv_path_SED=$lt_ac_sed
|
3156 |
|
|
fi
|
3157 |
|
|
done
|
3158 |
|
|
done
|
3159 |
|
|
|
3160 |
|
|
fi
|
3161 |
|
|
|
3162 |
|
|
SED=$lt_cv_path_SED
|
3163 |
|
|
|
3164 |
|
|
{ echo "$as_me:$LINENO: result: $SED" >&5
|
3165 |
|
|
echo "${ECHO_T}$SED" >&6; }
|
3166 |
|
|
|
3167 |
|
|
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
3168 |
|
|
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
3169 |
|
|
if test "${ac_cv_path_GREP+set}" = set; then
|
3170 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3171 |
|
|
else
|
3172 |
|
|
# Extract the first word of "grep ggrep" to use in msg output
|
3173 |
|
|
if test -z "$GREP"; then
|
3174 |
|
|
set dummy grep ggrep; ac_prog_name=$2
|
3175 |
|
|
if test "${ac_cv_path_GREP+set}" = set; then
|
3176 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3177 |
|
|
else
|
3178 |
|
|
ac_path_GREP_found=false
|
3179 |
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
3180 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3181 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
3182 |
|
|
do
|
3183 |
|
|
IFS=$as_save_IFS
|
3184 |
|
|
test -z "$as_dir" && as_dir=.
|
3185 |
|
|
for ac_prog in grep ggrep; do
|
3186 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3187 |
|
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
3188 |
|
|
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
3189 |
|
|
# Check for GNU ac_path_GREP and select it if it is found.
|
3190 |
|
|
# Check for GNU $ac_path_GREP
|
3191 |
|
|
case `"$ac_path_GREP" --version 2>&1` in
|
3192 |
|
|
*GNU*)
|
3193 |
|
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
3194 |
|
|
*)
|
3195 |
|
|
ac_count=0
|
3196 |
|
|
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
3197 |
|
|
while :
|
3198 |
|
|
do
|
3199 |
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
3200 |
|
|
mv "conftest.tmp" "conftest.in"
|
3201 |
|
|
cp "conftest.in" "conftest.nl"
|
3202 |
|
|
echo 'GREP' >> "conftest.nl"
|
3203 |
|
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
3204 |
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
3205 |
|
|
ac_count=`expr $ac_count + 1`
|
3206 |
|
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
3207 |
|
|
# Best one so far, save it but keep looking for a better one
|
3208 |
|
|
ac_cv_path_GREP="$ac_path_GREP"
|
3209 |
|
|
ac_path_GREP_max=$ac_count
|
3210 |
|
|
fi
|
3211 |
|
|
# 10*(2^10) chars as input seems more than enough
|
3212 |
|
|
test $ac_count -gt 10 && break
|
3213 |
|
|
done
|
3214 |
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
3215 |
|
|
esac
|
3216 |
|
|
|
3217 |
|
|
|
3218 |
|
|
$ac_path_GREP_found && break 3
|
3219 |
|
|
done
|
3220 |
|
|
done
|
3221 |
|
|
|
3222 |
|
|
done
|
3223 |
|
|
IFS=$as_save_IFS
|
3224 |
|
|
|
3225 |
|
|
|
3226 |
|
|
fi
|
3227 |
|
|
|
3228 |
|
|
GREP="$ac_cv_path_GREP"
|
3229 |
|
|
if test -z "$GREP"; then
|
3230 |
|
|
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
3231 |
|
|
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
3232 |
|
|
{ (exit 1); exit 1; }; }
|
3233 |
|
|
fi
|
3234 |
|
|
|
3235 |
|
|
else
|
3236 |
|
|
ac_cv_path_GREP=$GREP
|
3237 |
|
|
fi
|
3238 |
|
|
|
3239 |
|
|
|
3240 |
|
|
fi
|
3241 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
3242 |
|
|
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
3243 |
|
|
GREP="$ac_cv_path_GREP"
|
3244 |
|
|
|
3245 |
|
|
|
3246 |
|
|
{ echo "$as_me:$LINENO: checking for egrep" >&5
|
3247 |
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
3248 |
|
|
if test "${ac_cv_path_EGREP+set}" = set; then
|
3249 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3250 |
|
|
else
|
3251 |
|
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
3252 |
|
|
then ac_cv_path_EGREP="$GREP -E"
|
3253 |
|
|
else
|
3254 |
|
|
# Extract the first word of "egrep" to use in msg output
|
3255 |
|
|
if test -z "$EGREP"; then
|
3256 |
|
|
set dummy egrep; ac_prog_name=$2
|
3257 |
|
|
if test "${ac_cv_path_EGREP+set}" = set; then
|
3258 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3259 |
|
|
else
|
3260 |
|
|
ac_path_EGREP_found=false
|
3261 |
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
3262 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3263 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
3264 |
|
|
do
|
3265 |
|
|
IFS=$as_save_IFS
|
3266 |
|
|
test -z "$as_dir" && as_dir=.
|
3267 |
|
|
for ac_prog in egrep; do
|
3268 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3269 |
|
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
3270 |
|
|
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
3271 |
|
|
# Check for GNU ac_path_EGREP and select it if it is found.
|
3272 |
|
|
# Check for GNU $ac_path_EGREP
|
3273 |
|
|
case `"$ac_path_EGREP" --version 2>&1` in
|
3274 |
|
|
*GNU*)
|
3275 |
|
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
3276 |
|
|
*)
|
3277 |
|
|
ac_count=0
|
3278 |
|
|
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
3279 |
|
|
while :
|
3280 |
|
|
do
|
3281 |
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
3282 |
|
|
mv "conftest.tmp" "conftest.in"
|
3283 |
|
|
cp "conftest.in" "conftest.nl"
|
3284 |
|
|
echo 'EGREP' >> "conftest.nl"
|
3285 |
|
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
3286 |
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
3287 |
|
|
ac_count=`expr $ac_count + 1`
|
3288 |
|
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
3289 |
|
|
# Best one so far, save it but keep looking for a better one
|
3290 |
|
|
ac_cv_path_EGREP="$ac_path_EGREP"
|
3291 |
|
|
ac_path_EGREP_max=$ac_count
|
3292 |
|
|
fi
|
3293 |
|
|
# 10*(2^10) chars as input seems more than enough
|
3294 |
|
|
test $ac_count -gt 10 && break
|
3295 |
|
|
done
|
3296 |
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
3297 |
|
|
esac
|
3298 |
|
|
|
3299 |
|
|
|
3300 |
|
|
$ac_path_EGREP_found && break 3
|
3301 |
|
|
done
|
3302 |
|
|
done
|
3303 |
|
|
|
3304 |
|
|
done
|
3305 |
|
|
IFS=$as_save_IFS
|
3306 |
|
|
|
3307 |
|
|
|
3308 |
|
|
fi
|
3309 |
|
|
|
3310 |
|
|
EGREP="$ac_cv_path_EGREP"
|
3311 |
|
|
if test -z "$EGREP"; then
|
3312 |
|
|
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
3313 |
|
|
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
3314 |
|
|
{ (exit 1); exit 1; }; }
|
3315 |
|
|
fi
|
3316 |
|
|
|
3317 |
|
|
else
|
3318 |
|
|
ac_cv_path_EGREP=$EGREP
|
3319 |
|
|
fi
|
3320 |
|
|
|
3321 |
|
|
|
3322 |
|
|
fi
|
3323 |
|
|
fi
|
3324 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
3325 |
|
|
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
3326 |
|
|
EGREP="$ac_cv_path_EGREP"
|
3327 |
|
|
|
3328 |
|
|
|
3329 |
|
|
|
3330 |
|
|
# Check whether --with-gnu-ld was given.
|
3331 |
|
|
if test "${with_gnu_ld+set}" = set; then
|
3332 |
|
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
3333 |
|
|
else
|
3334 |
|
|
with_gnu_ld=no
|
3335 |
|
|
fi
|
3336 |
|
|
|
3337 |
|
|
ac_prog=ld
|
3338 |
|
|
if test "$GCC" = yes; then
|
3339 |
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
3340 |
|
|
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
3341 |
|
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
|
3342 |
|
|
case $host in
|
3343 |
|
|
*-*-mingw*)
|
3344 |
|
|
# gcc leaves a trailing carriage return which upsets mingw
|
3345 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
3346 |
|
|
*)
|
3347 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
3348 |
|
|
esac
|
3349 |
|
|
case $ac_prog in
|
3350 |
|
|
# Accept absolute paths.
|
3351 |
|
|
[\\/]* | ?:[\\/]*)
|
3352 |
|
|
re_direlt='/[^/][^/]*/\.\./'
|
3353 |
|
|
# Canonicalize the pathname of ld
|
3354 |
|
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
3355 |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
3356 |
|
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
3357 |
|
|
done
|
3358 |
|
|
test -z "$LD" && LD="$ac_prog"
|
3359 |
|
|
;;
|
3360 |
|
|
"")
|
3361 |
|
|
# If it fails, then pretend we aren't using GCC.
|
3362 |
|
|
ac_prog=ld
|
3363 |
|
|
;;
|
3364 |
|
|
*)
|
3365 |
|
|
# If it is relative, then search for the first ld in PATH.
|
3366 |
|
|
with_gnu_ld=unknown
|
3367 |
|
|
;;
|
3368 |
|
|
esac
|
3369 |
|
|
elif test "$with_gnu_ld" = yes; then
|
3370 |
|
|
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
|
3371 |
|
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
|
3372 |
|
|
else
|
3373 |
|
|
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
3374 |
|
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
|
3375 |
|
|
fi
|
3376 |
|
|
if test "${lt_cv_path_LD+set}" = set; then
|
3377 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3378 |
|
|
else
|
3379 |
|
|
if test -z "$LD"; then
|
3380 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
3381 |
|
|
for ac_dir in $PATH; do
|
3382 |
|
|
IFS="$lt_save_ifs"
|
3383 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3384 |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
3385 |
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
3386 |
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
3387 |
|
|
# but apparently some variants of GNU ld only accept -v.
|
3388 |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
3389 |
|
|
case `"$lt_cv_path_LD" -v 2>&1
|
3390 |
|
|
*GNU* | *'with BFD'*)
|
3391 |
|
|
test "$with_gnu_ld" != no && break
|
3392 |
|
|
;;
|
3393 |
|
|
*)
|
3394 |
|
|
test "$with_gnu_ld" != yes && break
|
3395 |
|
|
;;
|
3396 |
|
|
esac
|
3397 |
|
|
fi
|
3398 |
|
|
done
|
3399 |
|
|
IFS="$lt_save_ifs"
|
3400 |
|
|
else
|
3401 |
|
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
3402 |
|
|
fi
|
3403 |
|
|
fi
|
3404 |
|
|
|
3405 |
|
|
LD="$lt_cv_path_LD"
|
3406 |
|
|
if test -n "$LD"; then
|
3407 |
|
|
{ echo "$as_me:$LINENO: result: $LD" >&5
|
3408 |
|
|
echo "${ECHO_T}$LD" >&6; }
|
3409 |
|
|
else
|
3410 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
3411 |
|
|
echo "${ECHO_T}no" >&6; }
|
3412 |
|
|
fi
|
3413 |
|
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
3414 |
|
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
3415 |
|
|
{ (exit 1); exit 1; }; }
|
3416 |
|
|
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
3417 |
|
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
|
3418 |
|
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
3419 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3420 |
|
|
else
|
3421 |
|
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
3422 |
|
|
case `$LD -v 2>&1
|
3423 |
|
|
*GNU* | *'with BFD'*)
|
3424 |
|
|
lt_cv_prog_gnu_ld=yes
|
3425 |
|
|
;;
|
3426 |
|
|
*)
|
3427 |
|
|
lt_cv_prog_gnu_ld=no
|
3428 |
|
|
;;
|
3429 |
|
|
esac
|
3430 |
|
|
fi
|
3431 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
3432 |
|
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
|
3433 |
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
3434 |
|
|
|
3435 |
|
|
|
3436 |
|
|
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
3437 |
|
|
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
|
3438 |
|
|
if test "${lt_cv_ld_reload_flag+set}" = set; then
|
3439 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3440 |
|
|
else
|
3441 |
|
|
lt_cv_ld_reload_flag='-r'
|
3442 |
|
|
fi
|
3443 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
3444 |
|
|
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
|
3445 |
|
|
reload_flag=$lt_cv_ld_reload_flag
|
3446 |
|
|
case $reload_flag in
|
3447 |
|
|
"" | " "*) ;;
|
3448 |
|
|
*) reload_flag=" $reload_flag" ;;
|
3449 |
|
|
esac
|
3450 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
3451 |
|
|
case $host_os in
|
3452 |
|
|
darwin*)
|
3453 |
|
|
if test "$GCC" = yes; then
|
3454 |
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
3455 |
|
|
else
|
3456 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
3457 |
|
|
fi
|
3458 |
|
|
;;
|
3459 |
|
|
esac
|
3460 |
|
|
|
3461 |
|
|
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
|
3462 |
|
|
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
|
3463 |
|
|
if test "${lt_cv_path_NM+set}" = set; then
|
3464 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3465 |
|
|
else
|
3466 |
|
|
if test -n "$NM"; then
|
3467 |
|
|
# Let the user override the test.
|
3468 |
|
|
lt_cv_path_NM="$NM"
|
3469 |
|
|
else
|
3470 |
|
|
lt_nm_to_check="${ac_tool_prefix}nm"
|
3471 |
|
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
3472 |
|
|
lt_nm_to_check="$lt_nm_to_check nm"
|
3473 |
|
|
fi
|
3474 |
|
|
for lt_tmp_nm in $lt_nm_to_check; do
|
3475 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
3476 |
|
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
3477 |
|
|
IFS="$lt_save_ifs"
|
3478 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3479 |
|
|
tmp_nm="$ac_dir/$lt_tmp_nm"
|
3480 |
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
3481 |
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
3482 |
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
3483 |
|
|
# nm: unknown option "B" ignored
|
3484 |
|
|
# Tru64's nm complains that /dev/null is an invalid object file
|
3485 |
|
|
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
3486 |
|
|
*/dev/null* | *'Invalid file or object type'*)
|
3487 |
|
|
lt_cv_path_NM="$tmp_nm -B"
|
3488 |
|
|
break
|
3489 |
|
|
;;
|
3490 |
|
|
*)
|
3491 |
|
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
3492 |
|
|
*/dev/null*)
|
3493 |
|
|
lt_cv_path_NM="$tmp_nm -p"
|
3494 |
|
|
break
|
3495 |
|
|
;;
|
3496 |
|
|
*)
|
3497 |
|
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
3498 |
|
|
continue # so that we can try to find one that supports BSD flags
|
3499 |
|
|
;;
|
3500 |
|
|
esac
|
3501 |
|
|
;;
|
3502 |
|
|
esac
|
3503 |
|
|
fi
|
3504 |
|
|
done
|
3505 |
|
|
IFS="$lt_save_ifs"
|
3506 |
|
|
done
|
3507 |
|
|
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
3508 |
|
|
fi
|
3509 |
|
|
fi
|
3510 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
3511 |
|
|
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
|
3512 |
|
|
NM="$lt_cv_path_NM"
|
3513 |
|
|
|
3514 |
|
|
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
3515 |
|
|
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
3516 |
|
|
LN_S=$as_ln_s
|
3517 |
|
|
if test "$LN_S" = "ln -s"; then
|
3518 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
3519 |
|
|
echo "${ECHO_T}yes" >&6; }
|
3520 |
|
|
else
|
3521 |
|
|
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
3522 |
|
|
echo "${ECHO_T}no, using $LN_S" >&6; }
|
3523 |
|
|
fi
|
3524 |
|
|
|
3525 |
|
|
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
3526 |
|
|
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
|
3527 |
|
|
if test "${lt_cv_deplibs_check_method+set}" = set; then
|
3528 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3529 |
|
|
else
|
3530 |
|
|
lt_cv_file_magic_cmd='$MAGIC_CMD'
|
3531 |
|
|
lt_cv_file_magic_test_file=
|
3532 |
|
|
lt_cv_deplibs_check_method='unknown'
|
3533 |
|
|
# Need to set the preceding variable on all platforms that support
|
3534 |
|
|
# interlibrary dependencies.
|
3535 |
|
|
# 'none' -- dependencies not supported.
|
3536 |
|
|
# `unknown' -- same as none, but documents that we really don't know.
|
3537 |
|
|
# 'pass_all' -- all dependencies passed with no checks.
|
3538 |
|
|
# 'test_compile' -- check by making test program.
|
3539 |
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path
|
3540 |
|
|
# which responds to the $file_magic_cmd with a given extended regex.
|
3541 |
|
|
# If you have `file' or equivalent on your system and you're not sure
|
3542 |
|
|
# whether `pass_all' will *always* work, you probably want this one.
|
3543 |
|
|
|
3544 |
|
|
case $host_os in
|
3545 |
|
|
aix4* | aix5*)
|
3546 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3547 |
|
|
;;
|
3548 |
|
|
|
3549 |
|
|
beos*)
|
3550 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3551 |
|
|
;;
|
3552 |
|
|
|
3553 |
|
|
bsdi[45]*)
|
3554 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
3555 |
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
3556 |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so
|
3557 |
|
|
;;
|
3558 |
|
|
|
3559 |
|
|
cygwin*)
|
3560 |
|
|
# func_win32_libid is a shell function defined in ltmain.sh
|
3561 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
3562 |
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
3563 |
|
|
;;
|
3564 |
|
|
|
3565 |
|
|
mingw* | pw32*)
|
3566 |
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by
|
3567 |
|
|
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
3568 |
|
|
# unless we find 'file', for example because we are cross-compiling.
|
3569 |
|
|
if ( file / ) >/dev/null 2>&1; then
|
3570 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
3571 |
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
3572 |
|
|
else
|
3573 |
|
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
3574 |
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
3575 |
|
|
fi
|
3576 |
|
|
;;
|
3577 |
|
|
|
3578 |
|
|
darwin* | rhapsody*)
|
3579 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3580 |
|
|
;;
|
3581 |
|
|
|
3582 |
|
|
freebsd* | dragonfly*)
|
3583 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
3584 |
|
|
case $host_cpu in
|
3585 |
|
|
i*86 )
|
3586 |
|
|
# Not sure whether the presence of OpenBSD here was a mistake.
|
3587 |
|
|
# Let's accept both of them until this is cleared up.
|
3588 |
|
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
3589 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
3590 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
3591 |
|
|
;;
|
3592 |
|
|
esac
|
3593 |
|
|
else
|
3594 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3595 |
|
|
fi
|
3596 |
|
|
;;
|
3597 |
|
|
|
3598 |
|
|
gnu*)
|
3599 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3600 |
|
|
;;
|
3601 |
|
|
|
3602 |
|
|
hpux10.20* | hpux11*)
|
3603 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
3604 |
|
|
case $host_cpu in
|
3605 |
|
|
ia64*)
|
3606 |
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
3607 |
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
3608 |
|
|
;;
|
3609 |
|
|
hppa*64*)
|
3610 |
|
|
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]'
|
3611 |
|
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
3612 |
|
|
;;
|
3613 |
|
|
*)
|
3614 |
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
3615 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
3616 |
|
|
;;
|
3617 |
|
|
esac
|
3618 |
|
|
;;
|
3619 |
|
|
|
3620 |
|
|
interix[3-9]*)
|
3621 |
|
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
3622 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
3623 |
|
|
;;
|
3624 |
|
|
|
3625 |
|
|
irix5* | irix6* | nonstopux*)
|
3626 |
|
|
case $LD in
|
3627 |
|
|
*-32|*"-32 ") libmagic=32-bit;;
|
3628 |
|
|
*-n32|*"-n32 ") libmagic=N32;;
|
3629 |
|
|
*-64|*"-64 ") libmagic=64-bit;;
|
3630 |
|
|
*) libmagic=never-match;;
|
3631 |
|
|
esac
|
3632 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3633 |
|
|
;;
|
3634 |
|
|
|
3635 |
|
|
# This must be Linux ELF.
|
3636 |
|
|
linux* | k*bsd*-gnu)
|
3637 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3638 |
|
|
;;
|
3639 |
|
|
|
3640 |
|
|
netbsd*)
|
3641 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
3642 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
3643 |
|
|
else
|
3644 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
3645 |
|
|
fi
|
3646 |
|
|
;;
|
3647 |
|
|
|
3648 |
|
|
newos6*)
|
3649 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
3650 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
3651 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
3652 |
|
|
;;
|
3653 |
|
|
|
3654 |
|
|
nto-qnx*)
|
3655 |
|
|
lt_cv_deplibs_check_method=unknown
|
3656 |
|
|
;;
|
3657 |
|
|
|
3658 |
|
|
openbsd*)
|
3659 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
3660 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
3661 |
|
|
else
|
3662 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
3663 |
|
|
fi
|
3664 |
|
|
;;
|
3665 |
|
|
|
3666 |
|
|
osf3* | osf4* | osf5*)
|
3667 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3668 |
|
|
;;
|
3669 |
|
|
|
3670 |
|
|
rdos*)
|
3671 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3672 |
|
|
;;
|
3673 |
|
|
|
3674 |
|
|
solaris*)
|
3675 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3676 |
|
|
;;
|
3677 |
|
|
|
3678 |
|
|
sysv4 | sysv4.3*)
|
3679 |
|
|
case $host_vendor in
|
3680 |
|
|
motorola)
|
3681 |
|
|
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]'
|
3682 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
3683 |
|
|
;;
|
3684 |
|
|
ncr)
|
3685 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3686 |
|
|
;;
|
3687 |
|
|
sequent)
|
3688 |
|
|
lt_cv_file_magic_cmd='/bin/file'
|
3689 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
3690 |
|
|
;;
|
3691 |
|
|
sni)
|
3692 |
|
|
lt_cv_file_magic_cmd='/bin/file'
|
3693 |
|
|
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
3694 |
|
|
lt_cv_file_magic_test_file=/lib/libc.so
|
3695 |
|
|
;;
|
3696 |
|
|
siemens)
|
3697 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3698 |
|
|
;;
|
3699 |
|
|
pc)
|
3700 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3701 |
|
|
;;
|
3702 |
|
|
esac
|
3703 |
|
|
;;
|
3704 |
|
|
|
3705 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
3706 |
|
|
lt_cv_deplibs_check_method=pass_all
|
3707 |
|
|
;;
|
3708 |
|
|
esac
|
3709 |
|
|
|
3710 |
|
|
fi
|
3711 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
3712 |
|
|
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
|
3713 |
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
3714 |
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
3715 |
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
3716 |
|
|
|
3717 |
|
|
|
3718 |
|
|
|
3719 |
|
|
|
3720 |
|
|
# If no C compiler was specified, use CC.
|
3721 |
|
|
LTCC=${LTCC-"$CC"}
|
3722 |
|
|
|
3723 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
3724 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
3725 |
|
|
|
3726 |
|
|
# Allow CC to be a program name with arguments.
|
3727 |
|
|
compiler=$CC
|
3728 |
|
|
|
3729 |
|
|
|
3730 |
|
|
# Check whether --enable-libtool-lock was given.
|
3731 |
|
|
if test "${enable_libtool_lock+set}" = set; then
|
3732 |
|
|
enableval=$enable_libtool_lock;
|
3733 |
|
|
fi
|
3734 |
|
|
|
3735 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
3736 |
|
|
|
3737 |
|
|
# Some flags need to be propagated to the compiler or linker for good
|
3738 |
|
|
# libtool support.
|
3739 |
|
|
case $host in
|
3740 |
|
|
ia64-*-hpux*)
|
3741 |
|
|
# Find out which ABI we are using.
|
3742 |
|
|
echo 'int i;' > conftest.$ac_ext
|
3743 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3744 |
|
|
(eval $ac_compile) 2>&5
|
3745 |
|
|
ac_status=$?
|
3746 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3747 |
|
|
(exit $ac_status); }; then
|
3748 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
3749 |
|
|
*ELF-32*)
|
3750 |
|
|
HPUX_IA64_MODE="32"
|
3751 |
|
|
;;
|
3752 |
|
|
*ELF-64*)
|
3753 |
|
|
HPUX_IA64_MODE="64"
|
3754 |
|
|
;;
|
3755 |
|
|
esac
|
3756 |
|
|
fi
|
3757 |
|
|
rm -rf conftest*
|
3758 |
|
|
;;
|
3759 |
|
|
*-*-irix6*)
|
3760 |
|
|
# Find out which ABI we are using.
|
3761 |
|
|
echo '#line __oline__ "configure"' > conftest.$ac_ext
|
3762 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3763 |
|
|
(eval $ac_compile) 2>&5
|
3764 |
|
|
ac_status=$?
|
3765 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3766 |
|
|
(exit $ac_status); }; then
|
3767 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
3768 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
3769 |
|
|
*32-bit*)
|
3770 |
|
|
LD="${LD-ld} -melf32bsmip"
|
3771 |
|
|
;;
|
3772 |
|
|
*N32*)
|
3773 |
|
|
LD="${LD-ld} -melf32bmipn32"
|
3774 |
|
|
;;
|
3775 |
|
|
*64-bit*)
|
3776 |
|
|
LD="${LD-ld} -melf64bmip"
|
3777 |
|
|
;;
|
3778 |
|
|
esac
|
3779 |
|
|
else
|
3780 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
3781 |
|
|
*32-bit*)
|
3782 |
|
|
LD="${LD-ld} -32"
|
3783 |
|
|
;;
|
3784 |
|
|
*N32*)
|
3785 |
|
|
LD="${LD-ld} -n32"
|
3786 |
|
|
;;
|
3787 |
|
|
*64-bit*)
|
3788 |
|
|
LD="${LD-ld} -64"
|
3789 |
|
|
;;
|
3790 |
|
|
esac
|
3791 |
|
|
fi
|
3792 |
|
|
fi
|
3793 |
|
|
rm -rf conftest*
|
3794 |
|
|
;;
|
3795 |
|
|
|
3796 |
|
|
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
3797 |
|
|
s390*-*linux*|sparc*-*linux*)
|
3798 |
|
|
# Find out which ABI we are using.
|
3799 |
|
|
echo 'int i;' > conftest.$ac_ext
|
3800 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3801 |
|
|
(eval $ac_compile) 2>&5
|
3802 |
|
|
ac_status=$?
|
3803 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3804 |
|
|
(exit $ac_status); }; then
|
3805 |
|
|
case `/usr/bin/file conftest.o` in
|
3806 |
|
|
*32-bit*)
|
3807 |
|
|
case $host in
|
3808 |
|
|
x86_64-*kfreebsd*-gnu)
|
3809 |
|
|
LD="${LD-ld} -m elf_i386_fbsd"
|
3810 |
|
|
;;
|
3811 |
|
|
x86_64-*linux*)
|
3812 |
|
|
LD="${LD-ld} -m elf_i386"
|
3813 |
|
|
;;
|
3814 |
|
|
ppc64-*linux*|powerpc64-*linux*)
|
3815 |
|
|
LD="${LD-ld} -m elf32ppclinux"
|
3816 |
|
|
;;
|
3817 |
|
|
s390x-*linux*)
|
3818 |
|
|
LD="${LD-ld} -m elf_s390"
|
3819 |
|
|
;;
|
3820 |
|
|
sparc64-*linux*)
|
3821 |
|
|
LD="${LD-ld} -m elf32_sparc"
|
3822 |
|
|
;;
|
3823 |
|
|
esac
|
3824 |
|
|
;;
|
3825 |
|
|
*64-bit*)
|
3826 |
|
|
libsuff=64
|
3827 |
|
|
case $host in
|
3828 |
|
|
x86_64-*kfreebsd*-gnu)
|
3829 |
|
|
LD="${LD-ld} -m elf_x86_64_fbsd"
|
3830 |
|
|
;;
|
3831 |
|
|
x86_64-*linux*)
|
3832 |
|
|
LD="${LD-ld} -m elf_x86_64"
|
3833 |
|
|
;;
|
3834 |
|
|
ppc*-*linux*|powerpc*-*linux*)
|
3835 |
|
|
LD="${LD-ld} -m elf64ppc"
|
3836 |
|
|
;;
|
3837 |
|
|
s390*-*linux*)
|
3838 |
|
|
LD="${LD-ld} -m elf64_s390"
|
3839 |
|
|
;;
|
3840 |
|
|
sparc*-*linux*)
|
3841 |
|
|
LD="${LD-ld} -m elf64_sparc"
|
3842 |
|
|
;;
|
3843 |
|
|
esac
|
3844 |
|
|
;;
|
3845 |
|
|
esac
|
3846 |
|
|
fi
|
3847 |
|
|
rm -rf conftest*
|
3848 |
|
|
;;
|
3849 |
|
|
|
3850 |
|
|
*-*-sco3.2v5*)
|
3851 |
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
3852 |
|
|
SAVE_CFLAGS="$CFLAGS"
|
3853 |
|
|
CFLAGS="$CFLAGS -belf"
|
3854 |
|
|
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
3855 |
|
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
|
3856 |
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then
|
3857 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3858 |
|
|
else
|
3859 |
|
|
ac_ext=c
|
3860 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3861 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3862 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3863 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3864 |
|
|
|
3865 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3866 |
|
|
/* confdefs.h. */
|
3867 |
|
|
_ACEOF
|
3868 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3869 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3870 |
|
|
/* end confdefs.h. */
|
3871 |
|
|
|
3872 |
|
|
int
|
3873 |
|
|
main ()
|
3874 |
|
|
{
|
3875 |
|
|
|
3876 |
|
|
;
|
3877 |
|
|
return 0;
|
3878 |
|
|
}
|
3879 |
|
|
_ACEOF
|
3880 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
3881 |
|
|
if { (ac_try="$ac_link"
|
3882 |
|
|
case "(($ac_try" in
|
3883 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
3884 |
|
|
*) ac_try_echo=$ac_try;;
|
3885 |
|
|
esac
|
3886 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
3887 |
|
|
(eval "$ac_link") 2>conftest.er1
|
3888 |
|
|
ac_status=$?
|
3889 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3890 |
|
|
rm -f conftest.er1
|
3891 |
|
|
cat conftest.err >&5
|
3892 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3893 |
|
|
(exit $ac_status); } && {
|
3894 |
|
|
test -z "$ac_c_werror_flag" ||
|
3895 |
|
|
test ! -s conftest.err
|
3896 |
|
|
} && test -s conftest$ac_exeext &&
|
3897 |
|
|
$as_test_x conftest$ac_exeext; then
|
3898 |
|
|
lt_cv_cc_needs_belf=yes
|
3899 |
|
|
else
|
3900 |
|
|
echo "$as_me: failed program was:" >&5
|
3901 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3902 |
|
|
|
3903 |
|
|
lt_cv_cc_needs_belf=no
|
3904 |
|
|
fi
|
3905 |
|
|
|
3906 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
3907 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
3908 |
|
|
ac_ext=c
|
3909 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3910 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3911 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3912 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3913 |
|
|
|
3914 |
|
|
fi
|
3915 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
3916 |
|
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
|
3917 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
3918 |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
3919 |
|
|
CFLAGS="$SAVE_CFLAGS"
|
3920 |
|
|
fi
|
3921 |
|
|
;;
|
3922 |
|
|
sparc*-*solaris*)
|
3923 |
|
|
# Find out which ABI we are using.
|
3924 |
|
|
echo 'int i;' > conftest.$ac_ext
|
3925 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3926 |
|
|
(eval $ac_compile) 2>&5
|
3927 |
|
|
ac_status=$?
|
3928 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3929 |
|
|
(exit $ac_status); }; then
|
3930 |
|
|
case `/usr/bin/file conftest.o` in
|
3931 |
|
|
*64-bit*)
|
3932 |
|
|
case $lt_cv_prog_gnu_ld in
|
3933 |
|
|
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
3934 |
|
|
*) LD="${LD-ld} -64" ;;
|
3935 |
|
|
esac
|
3936 |
|
|
;;
|
3937 |
|
|
esac
|
3938 |
|
|
fi
|
3939 |
|
|
rm -rf conftest*
|
3940 |
|
|
;;
|
3941 |
|
|
|
3942 |
|
|
|
3943 |
|
|
esac
|
3944 |
|
|
|
3945 |
|
|
need_locks="$enable_libtool_lock"
|
3946 |
|
|
|
3947 |
|
|
|
3948 |
|
|
ac_ext=c
|
3949 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3950 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3951 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3952 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3953 |
|
|
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
3954 |
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
3955 |
|
|
# On Suns, sometimes $CPP names a directory.
|
3956 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
3957 |
|
|
CPP=
|
3958 |
|
|
fi
|
3959 |
|
|
if test -z "$CPP"; then
|
3960 |
|
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
3961 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3962 |
|
|
else
|
3963 |
|
|
# Double quotes because CPP needs to be expanded
|
3964 |
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
3965 |
|
|
do
|
3966 |
|
|
ac_preproc_ok=false
|
3967 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
3968 |
|
|
do
|
3969 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
3970 |
|
|
# with a fresh cross-compiler works.
|
3971 |
|
|
# Prefer to if __STDC__ is defined, since
|
3972 |
|
|
# exists even on freestanding compilers.
|
3973 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
3974 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
3975 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3976 |
|
|
/* confdefs.h. */
|
3977 |
|
|
_ACEOF
|
3978 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3979 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3980 |
|
|
/* end confdefs.h. */
|
3981 |
|
|
@%:@ifdef __STDC__
|
3982 |
|
|
@%:@ include
|
3983 |
|
|
@%:@else
|
3984 |
|
|
@%:@ include
|
3985 |
|
|
@%:@endif
|
3986 |
|
|
Syntax error
|
3987 |
|
|
_ACEOF
|
3988 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
3989 |
|
|
case "(($ac_try" in
|
3990 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
3991 |
|
|
*) ac_try_echo=$ac_try;;
|
3992 |
|
|
esac
|
3993 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
3994 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
3995 |
|
|
ac_status=$?
|
3996 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3997 |
|
|
rm -f conftest.er1
|
3998 |
|
|
cat conftest.err >&5
|
3999 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4000 |
|
|
(exit $ac_status); } >/dev/null && {
|
4001 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4002 |
|
|
test ! -s conftest.err
|
4003 |
|
|
}; then
|
4004 |
|
|
:
|
4005 |
|
|
else
|
4006 |
|
|
echo "$as_me: failed program was:" >&5
|
4007 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4008 |
|
|
|
4009 |
|
|
# Broken: fails on valid input.
|
4010 |
|
|
continue
|
4011 |
|
|
fi
|
4012 |
|
|
|
4013 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4014 |
|
|
|
4015 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
4016 |
|
|
# can be detected and how.
|
4017 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4018 |
|
|
/* confdefs.h. */
|
4019 |
|
|
_ACEOF
|
4020 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4021 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4022 |
|
|
/* end confdefs.h. */
|
4023 |
|
|
@%:@include
|
4024 |
|
|
_ACEOF
|
4025 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4026 |
|
|
case "(($ac_try" in
|
4027 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4028 |
|
|
*) ac_try_echo=$ac_try;;
|
4029 |
|
|
esac
|
4030 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4031 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4032 |
|
|
ac_status=$?
|
4033 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4034 |
|
|
rm -f conftest.er1
|
4035 |
|
|
cat conftest.err >&5
|
4036 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4037 |
|
|
(exit $ac_status); } >/dev/null && {
|
4038 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4039 |
|
|
test ! -s conftest.err
|
4040 |
|
|
}; then
|
4041 |
|
|
# Broken: success on invalid input.
|
4042 |
|
|
continue
|
4043 |
|
|
else
|
4044 |
|
|
echo "$as_me: failed program was:" >&5
|
4045 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4046 |
|
|
|
4047 |
|
|
# Passes both tests.
|
4048 |
|
|
ac_preproc_ok=:
|
4049 |
|
|
break
|
4050 |
|
|
fi
|
4051 |
|
|
|
4052 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4053 |
|
|
|
4054 |
|
|
done
|
4055 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
4056 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4057 |
|
|
if $ac_preproc_ok; then
|
4058 |
|
|
break
|
4059 |
|
|
fi
|
4060 |
|
|
|
4061 |
|
|
done
|
4062 |
|
|
ac_cv_prog_CPP=$CPP
|
4063 |
|
|
|
4064 |
|
|
fi
|
4065 |
|
|
CPP=$ac_cv_prog_CPP
|
4066 |
|
|
else
|
4067 |
|
|
ac_cv_prog_CPP=$CPP
|
4068 |
|
|
fi
|
4069 |
|
|
{ echo "$as_me:$LINENO: result: $CPP" >&5
|
4070 |
|
|
echo "${ECHO_T}$CPP" >&6; }
|
4071 |
|
|
ac_preproc_ok=false
|
4072 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
4073 |
|
|
do
|
4074 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
4075 |
|
|
# with a fresh cross-compiler works.
|
4076 |
|
|
# Prefer to if __STDC__ is defined, since
|
4077 |
|
|
# exists even on freestanding compilers.
|
4078 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
4079 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
4080 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4081 |
|
|
/* confdefs.h. */
|
4082 |
|
|
_ACEOF
|
4083 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4084 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4085 |
|
|
/* end confdefs.h. */
|
4086 |
|
|
@%:@ifdef __STDC__
|
4087 |
|
|
@%:@ include
|
4088 |
|
|
@%:@else
|
4089 |
|
|
@%:@ include
|
4090 |
|
|
@%:@endif
|
4091 |
|
|
Syntax error
|
4092 |
|
|
_ACEOF
|
4093 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4094 |
|
|
case "(($ac_try" in
|
4095 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4096 |
|
|
*) ac_try_echo=$ac_try;;
|
4097 |
|
|
esac
|
4098 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4099 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4100 |
|
|
ac_status=$?
|
4101 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4102 |
|
|
rm -f conftest.er1
|
4103 |
|
|
cat conftest.err >&5
|
4104 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4105 |
|
|
(exit $ac_status); } >/dev/null && {
|
4106 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4107 |
|
|
test ! -s conftest.err
|
4108 |
|
|
}; then
|
4109 |
|
|
:
|
4110 |
|
|
else
|
4111 |
|
|
echo "$as_me: failed program was:" >&5
|
4112 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4113 |
|
|
|
4114 |
|
|
# Broken: fails on valid input.
|
4115 |
|
|
continue
|
4116 |
|
|
fi
|
4117 |
|
|
|
4118 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4119 |
|
|
|
4120 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
4121 |
|
|
# can be detected and how.
|
4122 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4123 |
|
|
/* confdefs.h. */
|
4124 |
|
|
_ACEOF
|
4125 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4126 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4127 |
|
|
/* end confdefs.h. */
|
4128 |
|
|
@%:@include
|
4129 |
|
|
_ACEOF
|
4130 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4131 |
|
|
case "(($ac_try" in
|
4132 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4133 |
|
|
*) ac_try_echo=$ac_try;;
|
4134 |
|
|
esac
|
4135 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4136 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4137 |
|
|
ac_status=$?
|
4138 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4139 |
|
|
rm -f conftest.er1
|
4140 |
|
|
cat conftest.err >&5
|
4141 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4142 |
|
|
(exit $ac_status); } >/dev/null && {
|
4143 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4144 |
|
|
test ! -s conftest.err
|
4145 |
|
|
}; then
|
4146 |
|
|
# Broken: success on invalid input.
|
4147 |
|
|
continue
|
4148 |
|
|
else
|
4149 |
|
|
echo "$as_me: failed program was:" >&5
|
4150 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4151 |
|
|
|
4152 |
|
|
# Passes both tests.
|
4153 |
|
|
ac_preproc_ok=:
|
4154 |
|
|
break
|
4155 |
|
|
fi
|
4156 |
|
|
|
4157 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4158 |
|
|
|
4159 |
|
|
done
|
4160 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
4161 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4162 |
|
|
if $ac_preproc_ok; then
|
4163 |
|
|
:
|
4164 |
|
|
else
|
4165 |
|
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
4166 |
|
|
See \`config.log' for more details." >&5
|
4167 |
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
4168 |
|
|
See \`config.log' for more details." >&2;}
|
4169 |
|
|
{ (exit 1); exit 1; }; }
|
4170 |
|
|
fi
|
4171 |
|
|
|
4172 |
|
|
ac_ext=c
|
4173 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
4174 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4175 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4176 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
4177 |
|
|
|
4178 |
|
|
|
4179 |
|
|
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
4180 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
4181 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then
|
4182 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4183 |
|
|
else
|
4184 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4185 |
|
|
/* confdefs.h. */
|
4186 |
|
|
_ACEOF
|
4187 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4188 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4189 |
|
|
/* end confdefs.h. */
|
4190 |
|
|
#include
|
4191 |
|
|
#include
|
4192 |
|
|
#include
|
4193 |
|
|
#include
|
4194 |
|
|
|
4195 |
|
|
int
|
4196 |
|
|
main ()
|
4197 |
|
|
{
|
4198 |
|
|
|
4199 |
|
|
;
|
4200 |
|
|
return 0;
|
4201 |
|
|
}
|
4202 |
|
|
_ACEOF
|
4203 |
|
|
rm -f conftest.$ac_objext
|
4204 |
|
|
if { (ac_try="$ac_compile"
|
4205 |
|
|
case "(($ac_try" in
|
4206 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4207 |
|
|
*) ac_try_echo=$ac_try;;
|
4208 |
|
|
esac
|
4209 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4210 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4211 |
|
|
ac_status=$?
|
4212 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4213 |
|
|
rm -f conftest.er1
|
4214 |
|
|
cat conftest.err >&5
|
4215 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4216 |
|
|
(exit $ac_status); } && {
|
4217 |
|
|
test -z "$ac_c_werror_flag" ||
|
4218 |
|
|
test ! -s conftest.err
|
4219 |
|
|
} && test -s conftest.$ac_objext; then
|
4220 |
|
|
ac_cv_header_stdc=yes
|
4221 |
|
|
else
|
4222 |
|
|
echo "$as_me: failed program was:" >&5
|
4223 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4224 |
|
|
|
4225 |
|
|
ac_cv_header_stdc=no
|
4226 |
|
|
fi
|
4227 |
|
|
|
4228 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4229 |
|
|
|
4230 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4231 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
4232 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4233 |
|
|
/* confdefs.h. */
|
4234 |
|
|
_ACEOF
|
4235 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4236 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4237 |
|
|
/* end confdefs.h. */
|
4238 |
|
|
#include
|
4239 |
|
|
|
4240 |
|
|
_ACEOF
|
4241 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4242 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
4243 |
|
|
:
|
4244 |
|
|
else
|
4245 |
|
|
ac_cv_header_stdc=no
|
4246 |
|
|
fi
|
4247 |
|
|
rm -f conftest*
|
4248 |
|
|
|
4249 |
|
|
fi
|
4250 |
|
|
|
4251 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4252 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
4253 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4254 |
|
|
/* confdefs.h. */
|
4255 |
|
|
_ACEOF
|
4256 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4257 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4258 |
|
|
/* end confdefs.h. */
|
4259 |
|
|
#include
|
4260 |
|
|
|
4261 |
|
|
_ACEOF
|
4262 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4263 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
4264 |
|
|
:
|
4265 |
|
|
else
|
4266 |
|
|
ac_cv_header_stdc=no
|
4267 |
|
|
fi
|
4268 |
|
|
rm -f conftest*
|
4269 |
|
|
|
4270 |
|
|
fi
|
4271 |
|
|
|
4272 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4273 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
4274 |
|
|
if test "$cross_compiling" = yes; then
|
4275 |
|
|
:
|
4276 |
|
|
else
|
4277 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4278 |
|
|
/* confdefs.h. */
|
4279 |
|
|
_ACEOF
|
4280 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4281 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4282 |
|
|
/* end confdefs.h. */
|
4283 |
|
|
#include
|
4284 |
|
|
#include
|
4285 |
|
|
#if ((' ' & 0x0FF) == 0x020)
|
4286 |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
4287 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
4288 |
|
|
#else
|
4289 |
|
|
# define ISLOWER(c) \
|
4290 |
|
|
(('a' <= (c) && (c) <= 'i') \
|
4291 |
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
4292 |
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
4293 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
4294 |
|
|
#endif
|
4295 |
|
|
|
4296 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
4297 |
|
|
int
|
4298 |
|
|
main ()
|
4299 |
|
|
{
|
4300 |
|
|
int i;
|
4301 |
|
|
for (i = 0; i < 256; i++)
|
4302 |
|
|
if (XOR (islower (i), ISLOWER (i))
|
4303 |
|
|
|| toupper (i) != TOUPPER (i))
|
4304 |
|
|
return 2;
|
4305 |
|
|
return 0;
|
4306 |
|
|
}
|
4307 |
|
|
_ACEOF
|
4308 |
|
|
rm -f conftest$ac_exeext
|
4309 |
|
|
if { (ac_try="$ac_link"
|
4310 |
|
|
case "(($ac_try" in
|
4311 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4312 |
|
|
*) ac_try_echo=$ac_try;;
|
4313 |
|
|
esac
|
4314 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4315 |
|
|
(eval "$ac_link") 2>&5
|
4316 |
|
|
ac_status=$?
|
4317 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4318 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
4319 |
|
|
{ (case "(($ac_try" in
|
4320 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4321 |
|
|
*) ac_try_echo=$ac_try;;
|
4322 |
|
|
esac
|
4323 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4324 |
|
|
(eval "$ac_try") 2>&5
|
4325 |
|
|
ac_status=$?
|
4326 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4327 |
|
|
(exit $ac_status); }; }; then
|
4328 |
|
|
:
|
4329 |
|
|
else
|
4330 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
4331 |
|
|
echo "$as_me: failed program was:" >&5
|
4332 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4333 |
|
|
|
4334 |
|
|
( exit $ac_status )
|
4335 |
|
|
ac_cv_header_stdc=no
|
4336 |
|
|
fi
|
4337 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
4338 |
|
|
fi
|
4339 |
|
|
|
4340 |
|
|
|
4341 |
|
|
fi
|
4342 |
|
|
fi
|
4343 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
4344 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
4345 |
|
|
if test $ac_cv_header_stdc = yes; then
|
4346 |
|
|
|
4347 |
|
|
cat >>confdefs.h <<\_ACEOF
|
4348 |
|
|
@%:@define STDC_HEADERS 1
|
4349 |
|
|
_ACEOF
|
4350 |
|
|
|
4351 |
|
|
fi
|
4352 |
|
|
|
4353 |
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
4354 |
|
|
|
4355 |
|
|
|
4356 |
|
|
|
4357 |
|
|
|
4358 |
|
|
|
4359 |
|
|
|
4360 |
|
|
|
4361 |
|
|
|
4362 |
|
|
|
4363 |
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
4364 |
|
|
inttypes.h stdint.h unistd.h
|
4365 |
|
|
do
|
4366 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
4367 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4368 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
4369 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4370 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4371 |
|
|
else
|
4372 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4373 |
|
|
/* confdefs.h. */
|
4374 |
|
|
_ACEOF
|
4375 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4376 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4377 |
|
|
/* end confdefs.h. */
|
4378 |
|
|
$ac_includes_default
|
4379 |
|
|
|
4380 |
|
|
@%:@include <$ac_header>
|
4381 |
|
|
_ACEOF
|
4382 |
|
|
rm -f conftest.$ac_objext
|
4383 |
|
|
if { (ac_try="$ac_compile"
|
4384 |
|
|
case "(($ac_try" in
|
4385 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4386 |
|
|
*) ac_try_echo=$ac_try;;
|
4387 |
|
|
esac
|
4388 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4389 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4390 |
|
|
ac_status=$?
|
4391 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4392 |
|
|
rm -f conftest.er1
|
4393 |
|
|
cat conftest.err >&5
|
4394 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4395 |
|
|
(exit $ac_status); } && {
|
4396 |
|
|
test -z "$ac_c_werror_flag" ||
|
4397 |
|
|
test ! -s conftest.err
|
4398 |
|
|
} && test -s conftest.$ac_objext; then
|
4399 |
|
|
eval "$as_ac_Header=yes"
|
4400 |
|
|
else
|
4401 |
|
|
echo "$as_me: failed program was:" >&5
|
4402 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4403 |
|
|
|
4404 |
|
|
eval "$as_ac_Header=no"
|
4405 |
|
|
fi
|
4406 |
|
|
|
4407 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4408 |
|
|
fi
|
4409 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
4410 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
4411 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
4412 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
4413 |
|
|
cat >>confdefs.h <<_ACEOF
|
4414 |
|
|
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
4415 |
|
|
_ACEOF
|
4416 |
|
|
|
4417 |
|
|
fi
|
4418 |
|
|
|
4419 |
|
|
done
|
4420 |
|
|
|
4421 |
|
|
|
4422 |
|
|
|
4423 |
|
|
for ac_header in dlfcn.h
|
4424 |
|
|
do
|
4425 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
4426 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4427 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4428 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
4429 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4430 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4431 |
|
|
fi
|
4432 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
4433 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
4434 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
4435 |
|
|
else
|
4436 |
|
|
# Is the header compilable?
|
4437 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
4438 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
4439 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4440 |
|
|
/* confdefs.h. */
|
4441 |
|
|
_ACEOF
|
4442 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4443 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4444 |
|
|
/* end confdefs.h. */
|
4445 |
|
|
$ac_includes_default
|
4446 |
|
|
@%:@include <$ac_header>
|
4447 |
|
|
_ACEOF
|
4448 |
|
|
rm -f conftest.$ac_objext
|
4449 |
|
|
if { (ac_try="$ac_compile"
|
4450 |
|
|
case "(($ac_try" in
|
4451 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4452 |
|
|
*) ac_try_echo=$ac_try;;
|
4453 |
|
|
esac
|
4454 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4455 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4456 |
|
|
ac_status=$?
|
4457 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4458 |
|
|
rm -f conftest.er1
|
4459 |
|
|
cat conftest.err >&5
|
4460 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4461 |
|
|
(exit $ac_status); } && {
|
4462 |
|
|
test -z "$ac_c_werror_flag" ||
|
4463 |
|
|
test ! -s conftest.err
|
4464 |
|
|
} && test -s conftest.$ac_objext; then
|
4465 |
|
|
ac_header_compiler=yes
|
4466 |
|
|
else
|
4467 |
|
|
echo "$as_me: failed program was:" >&5
|
4468 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4469 |
|
|
|
4470 |
|
|
ac_header_compiler=no
|
4471 |
|
|
fi
|
4472 |
|
|
|
4473 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4474 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
4475 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
4476 |
|
|
|
4477 |
|
|
# Is the header present?
|
4478 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
4479 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
4480 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4481 |
|
|
/* confdefs.h. */
|
4482 |
|
|
_ACEOF
|
4483 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4484 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4485 |
|
|
/* end confdefs.h. */
|
4486 |
|
|
@%:@include <$ac_header>
|
4487 |
|
|
_ACEOF
|
4488 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4489 |
|
|
case "(($ac_try" in
|
4490 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4491 |
|
|
*) ac_try_echo=$ac_try;;
|
4492 |
|
|
esac
|
4493 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4494 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4495 |
|
|
ac_status=$?
|
4496 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4497 |
|
|
rm -f conftest.er1
|
4498 |
|
|
cat conftest.err >&5
|
4499 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4500 |
|
|
(exit $ac_status); } >/dev/null && {
|
4501 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
4502 |
|
|
test ! -s conftest.err
|
4503 |
|
|
}; then
|
4504 |
|
|
ac_header_preproc=yes
|
4505 |
|
|
else
|
4506 |
|
|
echo "$as_me: failed program was:" >&5
|
4507 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4508 |
|
|
|
4509 |
|
|
ac_header_preproc=no
|
4510 |
|
|
fi
|
4511 |
|
|
|
4512 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4513 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
4514 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
4515 |
|
|
|
4516 |
|
|
# So? What about this header?
|
4517 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
4518 |
|
|
yes:no: )
|
4519 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
4520 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
4521 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
4522 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
4523 |
|
|
ac_header_preproc=yes
|
4524 |
|
|
;;
|
4525 |
|
|
no:yes:* )
|
4526 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
4527 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
4528 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
4529 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
4530 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
4531 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
4532 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
4533 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
4534 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
4535 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
4536 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
4537 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
4538 |
|
|
( cat <<\_ASBOX
|
4539 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
4540 |
|
|
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
|
4541 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
4542 |
|
|
_ASBOX
|
4543 |
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
4544 |
|
|
;;
|
4545 |
|
|
esac
|
4546 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4547 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
4548 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
4549 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4550 |
|
|
else
|
4551 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
4552 |
|
|
fi
|
4553 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
4554 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
4555 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
4556 |
|
|
|
4557 |
|
|
fi
|
4558 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
4559 |
|
|
cat >>confdefs.h <<_ACEOF
|
4560 |
|
|
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
4561 |
|
|
_ACEOF
|
4562 |
|
|
|
4563 |
|
|
fi
|
4564 |
|
|
|
4565 |
|
|
done
|
4566 |
|
|
|
4567 |
|
|
ac_ext=cpp
|
4568 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
4569 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4570 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4571 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
4572 |
|
|
if test -z "$CXX"; then
|
4573 |
|
|
if test -n "$CCC"; then
|
4574 |
|
|
CXX=$CCC
|
4575 |
|
|
else
|
4576 |
|
|
if test -n "$ac_tool_prefix"; then
|
4577 |
|
|
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
4578 |
|
|
do
|
4579 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
4580 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
4581 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
4582 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
4583 |
|
|
if test "${ac_cv_prog_CXX+set}" = set; then
|
4584 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4585 |
|
|
else
|
4586 |
|
|
if test -n "$CXX"; then
|
4587 |
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
4588 |
|
|
else
|
4589 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4590 |
|
|
for as_dir in $PATH
|
4591 |
|
|
do
|
4592 |
|
|
IFS=$as_save_IFS
|
4593 |
|
|
test -z "$as_dir" && as_dir=.
|
4594 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
4595 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
4596 |
|
|
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
4597 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
4598 |
|
|
break 2
|
4599 |
|
|
fi
|
4600 |
|
|
done
|
4601 |
|
|
done
|
4602 |
|
|
IFS=$as_save_IFS
|
4603 |
|
|
|
4604 |
|
|
fi
|
4605 |
|
|
fi
|
4606 |
|
|
CXX=$ac_cv_prog_CXX
|
4607 |
|
|
if test -n "$CXX"; then
|
4608 |
|
|
{ echo "$as_me:$LINENO: result: $CXX" >&5
|
4609 |
|
|
echo "${ECHO_T}$CXX" >&6; }
|
4610 |
|
|
else
|
4611 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
4612 |
|
|
echo "${ECHO_T}no" >&6; }
|
4613 |
|
|
fi
|
4614 |
|
|
|
4615 |
|
|
|
4616 |
|
|
test -n "$CXX" && break
|
4617 |
|
|
done
|
4618 |
|
|
fi
|
4619 |
|
|
if test -z "$CXX"; then
|
4620 |
|
|
ac_ct_CXX=$CXX
|
4621 |
|
|
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
4622 |
|
|
do
|
4623 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
4624 |
|
|
set dummy $ac_prog; ac_word=$2
|
4625 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
4626 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
4627 |
|
|
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
4628 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4629 |
|
|
else
|
4630 |
|
|
if test -n "$ac_ct_CXX"; then
|
4631 |
|
|
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
4632 |
|
|
else
|
4633 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4634 |
|
|
for as_dir in $PATH
|
4635 |
|
|
do
|
4636 |
|
|
IFS=$as_save_IFS
|
4637 |
|
|
test -z "$as_dir" && as_dir=.
|
4638 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
4639 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
4640 |
|
|
ac_cv_prog_ac_ct_CXX="$ac_prog"
|
4641 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
4642 |
|
|
break 2
|
4643 |
|
|
fi
|
4644 |
|
|
done
|
4645 |
|
|
done
|
4646 |
|
|
IFS=$as_save_IFS
|
4647 |
|
|
|
4648 |
|
|
fi
|
4649 |
|
|
fi
|
4650 |
|
|
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
4651 |
|
|
if test -n "$ac_ct_CXX"; then
|
4652 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
4653 |
|
|
echo "${ECHO_T}$ac_ct_CXX" >&6; }
|
4654 |
|
|
else
|
4655 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
4656 |
|
|
echo "${ECHO_T}no" >&6; }
|
4657 |
|
|
fi
|
4658 |
|
|
|
4659 |
|
|
|
4660 |
|
|
test -n "$ac_ct_CXX" && break
|
4661 |
|
|
done
|
4662 |
|
|
|
4663 |
|
|
if test "x$ac_ct_CXX" = x; then
|
4664 |
|
|
CXX="g++"
|
4665 |
|
|
else
|
4666 |
|
|
case $cross_compiling:$ac_tool_warned in
|
4667 |
|
|
yes:)
|
4668 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
4669 |
|
|
whose name does not start with the host triplet. If you think this
|
4670 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
4671 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
4672 |
|
|
whose name does not start with the host triplet. If you think this
|
4673 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
4674 |
|
|
ac_tool_warned=yes ;;
|
4675 |
|
|
esac
|
4676 |
|
|
CXX=$ac_ct_CXX
|
4677 |
|
|
fi
|
4678 |
|
|
fi
|
4679 |
|
|
|
4680 |
|
|
fi
|
4681 |
|
|
fi
|
4682 |
|
|
# Provide some information about the compiler.
|
4683 |
|
|
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
4684 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
4685 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
4686 |
|
|
case "(($ac_try" in
|
4687 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4688 |
|
|
*) ac_try_echo=$ac_try;;
|
4689 |
|
|
esac
|
4690 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4691 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
4692 |
|
|
ac_status=$?
|
4693 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4694 |
|
|
(exit $ac_status); }
|
4695 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
4696 |
|
|
case "(($ac_try" in
|
4697 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4698 |
|
|
*) ac_try_echo=$ac_try;;
|
4699 |
|
|
esac
|
4700 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4701 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
4702 |
|
|
ac_status=$?
|
4703 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4704 |
|
|
(exit $ac_status); }
|
4705 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
4706 |
|
|
case "(($ac_try" in
|
4707 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4708 |
|
|
*) ac_try_echo=$ac_try;;
|
4709 |
|
|
esac
|
4710 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4711 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
4712 |
|
|
ac_status=$?
|
4713 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4714 |
|
|
(exit $ac_status); }
|
4715 |
|
|
|
4716 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
4717 |
|
|
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
|
4718 |
|
|
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
4719 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4720 |
|
|
else
|
4721 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4722 |
|
|
/* confdefs.h. */
|
4723 |
|
|
_ACEOF
|
4724 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4725 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4726 |
|
|
/* end confdefs.h. */
|
4727 |
|
|
|
4728 |
|
|
int
|
4729 |
|
|
main ()
|
4730 |
|
|
{
|
4731 |
|
|
#ifndef __GNUC__
|
4732 |
|
|
choke me
|
4733 |
|
|
#endif
|
4734 |
|
|
|
4735 |
|
|
;
|
4736 |
|
|
return 0;
|
4737 |
|
|
}
|
4738 |
|
|
_ACEOF
|
4739 |
|
|
rm -f conftest.$ac_objext
|
4740 |
|
|
if { (ac_try="$ac_compile"
|
4741 |
|
|
case "(($ac_try" in
|
4742 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4743 |
|
|
*) ac_try_echo=$ac_try;;
|
4744 |
|
|
esac
|
4745 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4746 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4747 |
|
|
ac_status=$?
|
4748 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4749 |
|
|
rm -f conftest.er1
|
4750 |
|
|
cat conftest.err >&5
|
4751 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4752 |
|
|
(exit $ac_status); } && {
|
4753 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4754 |
|
|
test ! -s conftest.err
|
4755 |
|
|
} && test -s conftest.$ac_objext; then
|
4756 |
|
|
ac_compiler_gnu=yes
|
4757 |
|
|
else
|
4758 |
|
|
echo "$as_me: failed program was:" >&5
|
4759 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4760 |
|
|
|
4761 |
|
|
ac_compiler_gnu=no
|
4762 |
|
|
fi
|
4763 |
|
|
|
4764 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4765 |
|
|
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
4766 |
|
|
|
4767 |
|
|
fi
|
4768 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
4769 |
|
|
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
|
4770 |
|
|
GXX=`test $ac_compiler_gnu = yes && echo yes`
|
4771 |
|
|
ac_test_CXXFLAGS=${CXXFLAGS+set}
|
4772 |
|
|
ac_save_CXXFLAGS=$CXXFLAGS
|
4773 |
|
|
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
4774 |
|
|
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
|
4775 |
|
|
if test "${ac_cv_prog_cxx_g+set}" = set; then
|
4776 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4777 |
|
|
else
|
4778 |
|
|
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
4779 |
|
|
ac_cxx_werror_flag=yes
|
4780 |
|
|
ac_cv_prog_cxx_g=no
|
4781 |
|
|
CXXFLAGS="-g"
|
4782 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4783 |
|
|
/* confdefs.h. */
|
4784 |
|
|
_ACEOF
|
4785 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4786 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4787 |
|
|
/* end confdefs.h. */
|
4788 |
|
|
|
4789 |
|
|
int
|
4790 |
|
|
main ()
|
4791 |
|
|
{
|
4792 |
|
|
|
4793 |
|
|
;
|
4794 |
|
|
return 0;
|
4795 |
|
|
}
|
4796 |
|
|
_ACEOF
|
4797 |
|
|
rm -f conftest.$ac_objext
|
4798 |
|
|
if { (ac_try="$ac_compile"
|
4799 |
|
|
case "(($ac_try" in
|
4800 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4801 |
|
|
*) ac_try_echo=$ac_try;;
|
4802 |
|
|
esac
|
4803 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4804 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4805 |
|
|
ac_status=$?
|
4806 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4807 |
|
|
rm -f conftest.er1
|
4808 |
|
|
cat conftest.err >&5
|
4809 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4810 |
|
|
(exit $ac_status); } && {
|
4811 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4812 |
|
|
test ! -s conftest.err
|
4813 |
|
|
} && test -s conftest.$ac_objext; then
|
4814 |
|
|
ac_cv_prog_cxx_g=yes
|
4815 |
|
|
else
|
4816 |
|
|
echo "$as_me: failed program was:" >&5
|
4817 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4818 |
|
|
|
4819 |
|
|
CXXFLAGS=""
|
4820 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4821 |
|
|
/* confdefs.h. */
|
4822 |
|
|
_ACEOF
|
4823 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4824 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4825 |
|
|
/* end confdefs.h. */
|
4826 |
|
|
|
4827 |
|
|
int
|
4828 |
|
|
main ()
|
4829 |
|
|
{
|
4830 |
|
|
|
4831 |
|
|
;
|
4832 |
|
|
return 0;
|
4833 |
|
|
}
|
4834 |
|
|
_ACEOF
|
4835 |
|
|
rm -f conftest.$ac_objext
|
4836 |
|
|
if { (ac_try="$ac_compile"
|
4837 |
|
|
case "(($ac_try" in
|
4838 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4839 |
|
|
*) ac_try_echo=$ac_try;;
|
4840 |
|
|
esac
|
4841 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4842 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4843 |
|
|
ac_status=$?
|
4844 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4845 |
|
|
rm -f conftest.er1
|
4846 |
|
|
cat conftest.err >&5
|
4847 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4848 |
|
|
(exit $ac_status); } && {
|
4849 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4850 |
|
|
test ! -s conftest.err
|
4851 |
|
|
} && test -s conftest.$ac_objext; then
|
4852 |
|
|
:
|
4853 |
|
|
else
|
4854 |
|
|
echo "$as_me: failed program was:" >&5
|
4855 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4856 |
|
|
|
4857 |
|
|
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
4858 |
|
|
CXXFLAGS="-g"
|
4859 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4860 |
|
|
/* confdefs.h. */
|
4861 |
|
|
_ACEOF
|
4862 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4863 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4864 |
|
|
/* end confdefs.h. */
|
4865 |
|
|
|
4866 |
|
|
int
|
4867 |
|
|
main ()
|
4868 |
|
|
{
|
4869 |
|
|
|
4870 |
|
|
;
|
4871 |
|
|
return 0;
|
4872 |
|
|
}
|
4873 |
|
|
_ACEOF
|
4874 |
|
|
rm -f conftest.$ac_objext
|
4875 |
|
|
if { (ac_try="$ac_compile"
|
4876 |
|
|
case "(($ac_try" in
|
4877 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4878 |
|
|
*) ac_try_echo=$ac_try;;
|
4879 |
|
|
esac
|
4880 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4881 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
4882 |
|
|
ac_status=$?
|
4883 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4884 |
|
|
rm -f conftest.er1
|
4885 |
|
|
cat conftest.err >&5
|
4886 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4887 |
|
|
(exit $ac_status); } && {
|
4888 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
4889 |
|
|
test ! -s conftest.err
|
4890 |
|
|
} && test -s conftest.$ac_objext; then
|
4891 |
|
|
ac_cv_prog_cxx_g=yes
|
4892 |
|
|
else
|
4893 |
|
|
echo "$as_me: failed program was:" >&5
|
4894 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4895 |
|
|
|
4896 |
|
|
|
4897 |
|
|
fi
|
4898 |
|
|
|
4899 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4900 |
|
|
fi
|
4901 |
|
|
|
4902 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4903 |
|
|
fi
|
4904 |
|
|
|
4905 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
4906 |
|
|
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
4907 |
|
|
fi
|
4908 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
4909 |
|
|
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
|
4910 |
|
|
if test "$ac_test_CXXFLAGS" = set; then
|
4911 |
|
|
CXXFLAGS=$ac_save_CXXFLAGS
|
4912 |
|
|
elif test $ac_cv_prog_cxx_g = yes; then
|
4913 |
|
|
if test "$GXX" = yes; then
|
4914 |
|
|
CXXFLAGS="-g -O2"
|
4915 |
|
|
else
|
4916 |
|
|
CXXFLAGS="-g"
|
4917 |
|
|
fi
|
4918 |
|
|
else
|
4919 |
|
|
if test "$GXX" = yes; then
|
4920 |
|
|
CXXFLAGS="-O2"
|
4921 |
|
|
else
|
4922 |
|
|
CXXFLAGS=
|
4923 |
|
|
fi
|
4924 |
|
|
fi
|
4925 |
|
|
ac_ext=cpp
|
4926 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
4927 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4928 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4929 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
4930 |
|
|
|
4931 |
|
|
|
4932 |
|
|
|
4933 |
|
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
4934 |
|
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
4935 |
|
|
(test "X$CXX" != "Xg++"))) ; then
|
4936 |
|
|
ac_ext=cpp
|
4937 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
4938 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4939 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4940 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
4941 |
|
|
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
|
4942 |
|
|
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
|
4943 |
|
|
if test -z "$CXXCPP"; then
|
4944 |
|
|
if test "${ac_cv_prog_CXXCPP+set}" = set; then
|
4945 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4946 |
|
|
else
|
4947 |
|
|
# Double quotes because CXXCPP needs to be expanded
|
4948 |
|
|
for CXXCPP in "$CXX -E" "/lib/cpp"
|
4949 |
|
|
do
|
4950 |
|
|
ac_preproc_ok=false
|
4951 |
|
|
for ac_cxx_preproc_warn_flag in '' yes
|
4952 |
|
|
do
|
4953 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
4954 |
|
|
# with a fresh cross-compiler works.
|
4955 |
|
|
# Prefer to if __STDC__ is defined, since
|
4956 |
|
|
# exists even on freestanding compilers.
|
4957 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
4958 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
4959 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4960 |
|
|
/* confdefs.h. */
|
4961 |
|
|
_ACEOF
|
4962 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4963 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4964 |
|
|
/* end confdefs.h. */
|
4965 |
|
|
@%:@ifdef __STDC__
|
4966 |
|
|
@%:@ include
|
4967 |
|
|
@%:@else
|
4968 |
|
|
@%:@ include
|
4969 |
|
|
@%:@endif
|
4970 |
|
|
Syntax error
|
4971 |
|
|
_ACEOF
|
4972 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
4973 |
|
|
case "(($ac_try" in
|
4974 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
4975 |
|
|
*) ac_try_echo=$ac_try;;
|
4976 |
|
|
esac
|
4977 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
4978 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
4979 |
|
|
ac_status=$?
|
4980 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4981 |
|
|
rm -f conftest.er1
|
4982 |
|
|
cat conftest.err >&5
|
4983 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4984 |
|
|
(exit $ac_status); } >/dev/null && {
|
4985 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
4986 |
|
|
test ! -s conftest.err
|
4987 |
|
|
}; then
|
4988 |
|
|
:
|
4989 |
|
|
else
|
4990 |
|
|
echo "$as_me: failed program was:" >&5
|
4991 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4992 |
|
|
|
4993 |
|
|
# Broken: fails on valid input.
|
4994 |
|
|
continue
|
4995 |
|
|
fi
|
4996 |
|
|
|
4997 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4998 |
|
|
|
4999 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
5000 |
|
|
# can be detected and how.
|
5001 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5002 |
|
|
/* confdefs.h. */
|
5003 |
|
|
_ACEOF
|
5004 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5005 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5006 |
|
|
/* end confdefs.h. */
|
5007 |
|
|
@%:@include
|
5008 |
|
|
_ACEOF
|
5009 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
5010 |
|
|
case "(($ac_try" in
|
5011 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5012 |
|
|
*) ac_try_echo=$ac_try;;
|
5013 |
|
|
esac
|
5014 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5015 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
5016 |
|
|
ac_status=$?
|
5017 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5018 |
|
|
rm -f conftest.er1
|
5019 |
|
|
cat conftest.err >&5
|
5020 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5021 |
|
|
(exit $ac_status); } >/dev/null && {
|
5022 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
5023 |
|
|
test ! -s conftest.err
|
5024 |
|
|
}; then
|
5025 |
|
|
# Broken: success on invalid input.
|
5026 |
|
|
continue
|
5027 |
|
|
else
|
5028 |
|
|
echo "$as_me: failed program was:" >&5
|
5029 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5030 |
|
|
|
5031 |
|
|
# Passes both tests.
|
5032 |
|
|
ac_preproc_ok=:
|
5033 |
|
|
break
|
5034 |
|
|
fi
|
5035 |
|
|
|
5036 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5037 |
|
|
|
5038 |
|
|
done
|
5039 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
5040 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5041 |
|
|
if $ac_preproc_ok; then
|
5042 |
|
|
break
|
5043 |
|
|
fi
|
5044 |
|
|
|
5045 |
|
|
done
|
5046 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP
|
5047 |
|
|
|
5048 |
|
|
fi
|
5049 |
|
|
CXXCPP=$ac_cv_prog_CXXCPP
|
5050 |
|
|
else
|
5051 |
|
|
ac_cv_prog_CXXCPP=$CXXCPP
|
5052 |
|
|
fi
|
5053 |
|
|
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
|
5054 |
|
|
echo "${ECHO_T}$CXXCPP" >&6; }
|
5055 |
|
|
ac_preproc_ok=false
|
5056 |
|
|
for ac_cxx_preproc_warn_flag in '' yes
|
5057 |
|
|
do
|
5058 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
5059 |
|
|
# with a fresh cross-compiler works.
|
5060 |
|
|
# Prefer to if __STDC__ is defined, since
|
5061 |
|
|
# exists even on freestanding compilers.
|
5062 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
5063 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
5064 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5065 |
|
|
/* confdefs.h. */
|
5066 |
|
|
_ACEOF
|
5067 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5068 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5069 |
|
|
/* end confdefs.h. */
|
5070 |
|
|
@%:@ifdef __STDC__
|
5071 |
|
|
@%:@ include
|
5072 |
|
|
@%:@else
|
5073 |
|
|
@%:@ include
|
5074 |
|
|
@%:@endif
|
5075 |
|
|
Syntax error
|
5076 |
|
|
_ACEOF
|
5077 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
5078 |
|
|
case "(($ac_try" in
|
5079 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5080 |
|
|
*) ac_try_echo=$ac_try;;
|
5081 |
|
|
esac
|
5082 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5083 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
5084 |
|
|
ac_status=$?
|
5085 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5086 |
|
|
rm -f conftest.er1
|
5087 |
|
|
cat conftest.err >&5
|
5088 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5089 |
|
|
(exit $ac_status); } >/dev/null && {
|
5090 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
5091 |
|
|
test ! -s conftest.err
|
5092 |
|
|
}; then
|
5093 |
|
|
:
|
5094 |
|
|
else
|
5095 |
|
|
echo "$as_me: failed program was:" >&5
|
5096 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5097 |
|
|
|
5098 |
|
|
# Broken: fails on valid input.
|
5099 |
|
|
continue
|
5100 |
|
|
fi
|
5101 |
|
|
|
5102 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5103 |
|
|
|
5104 |
|
|
# OK, works on sane cases. Now check whether nonexistent headers
|
5105 |
|
|
# can be detected and how.
|
5106 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5107 |
|
|
/* confdefs.h. */
|
5108 |
|
|
_ACEOF
|
5109 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5110 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5111 |
|
|
/* end confdefs.h. */
|
5112 |
|
|
@%:@include
|
5113 |
|
|
_ACEOF
|
5114 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
5115 |
|
|
case "(($ac_try" in
|
5116 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5117 |
|
|
*) ac_try_echo=$ac_try;;
|
5118 |
|
|
esac
|
5119 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5120 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
5121 |
|
|
ac_status=$?
|
5122 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5123 |
|
|
rm -f conftest.er1
|
5124 |
|
|
cat conftest.err >&5
|
5125 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5126 |
|
|
(exit $ac_status); } >/dev/null && {
|
5127 |
|
|
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
5128 |
|
|
test ! -s conftest.err
|
5129 |
|
|
}; then
|
5130 |
|
|
# Broken: success on invalid input.
|
5131 |
|
|
continue
|
5132 |
|
|
else
|
5133 |
|
|
echo "$as_me: failed program was:" >&5
|
5134 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5135 |
|
|
|
5136 |
|
|
# Passes both tests.
|
5137 |
|
|
ac_preproc_ok=:
|
5138 |
|
|
break
|
5139 |
|
|
fi
|
5140 |
|
|
|
5141 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5142 |
|
|
|
5143 |
|
|
done
|
5144 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
5145 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5146 |
|
|
if $ac_preproc_ok; then
|
5147 |
|
|
:
|
5148 |
|
|
else
|
5149 |
|
|
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
5150 |
|
|
See \`config.log' for more details." >&5
|
5151 |
|
|
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
5152 |
|
|
See \`config.log' for more details." >&2;}
|
5153 |
|
|
{ (exit 1); exit 1; }; }
|
5154 |
|
|
fi
|
5155 |
|
|
|
5156 |
|
|
ac_ext=cpp
|
5157 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
5158 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
5159 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
5160 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
5161 |
|
|
|
5162 |
|
|
fi
|
5163 |
|
|
|
5164 |
|
|
|
5165 |
|
|
ac_ext=f
|
5166 |
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
5167 |
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
5168 |
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
5169 |
|
|
if test -n "$ac_tool_prefix"; then
|
5170 |
|
|
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
|
5171 |
|
|
do
|
5172 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
5173 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
5174 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5175 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5176 |
|
|
if test "${ac_cv_prog_F77+set}" = set; then
|
5177 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5178 |
|
|
else
|
5179 |
|
|
if test -n "$F77"; then
|
5180 |
|
|
ac_cv_prog_F77="$F77" # Let the user override the test.
|
5181 |
|
|
else
|
5182 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5183 |
|
|
for as_dir in $PATH
|
5184 |
|
|
do
|
5185 |
|
|
IFS=$as_save_IFS
|
5186 |
|
|
test -z "$as_dir" && as_dir=.
|
5187 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5188 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5189 |
|
|
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
|
5190 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5191 |
|
|
break 2
|
5192 |
|
|
fi
|
5193 |
|
|
done
|
5194 |
|
|
done
|
5195 |
|
|
IFS=$as_save_IFS
|
5196 |
|
|
|
5197 |
|
|
fi
|
5198 |
|
|
fi
|
5199 |
|
|
F77=$ac_cv_prog_F77
|
5200 |
|
|
if test -n "$F77"; then
|
5201 |
|
|
{ echo "$as_me:$LINENO: result: $F77" >&5
|
5202 |
|
|
echo "${ECHO_T}$F77" >&6; }
|
5203 |
|
|
else
|
5204 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5205 |
|
|
echo "${ECHO_T}no" >&6; }
|
5206 |
|
|
fi
|
5207 |
|
|
|
5208 |
|
|
|
5209 |
|
|
test -n "$F77" && break
|
5210 |
|
|
done
|
5211 |
|
|
fi
|
5212 |
|
|
if test -z "$F77"; then
|
5213 |
|
|
ac_ct_F77=$F77
|
5214 |
|
|
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
|
5215 |
|
|
do
|
5216 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
5217 |
|
|
set dummy $ac_prog; ac_word=$2
|
5218 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5219 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5220 |
|
|
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
|
5221 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5222 |
|
|
else
|
5223 |
|
|
if test -n "$ac_ct_F77"; then
|
5224 |
|
|
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
|
5225 |
|
|
else
|
5226 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5227 |
|
|
for as_dir in $PATH
|
5228 |
|
|
do
|
5229 |
|
|
IFS=$as_save_IFS
|
5230 |
|
|
test -z "$as_dir" && as_dir=.
|
5231 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5232 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5233 |
|
|
ac_cv_prog_ac_ct_F77="$ac_prog"
|
5234 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5235 |
|
|
break 2
|
5236 |
|
|
fi
|
5237 |
|
|
done
|
5238 |
|
|
done
|
5239 |
|
|
IFS=$as_save_IFS
|
5240 |
|
|
|
5241 |
|
|
fi
|
5242 |
|
|
fi
|
5243 |
|
|
ac_ct_F77=$ac_cv_prog_ac_ct_F77
|
5244 |
|
|
if test -n "$ac_ct_F77"; then
|
5245 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
|
5246 |
|
|
echo "${ECHO_T}$ac_ct_F77" >&6; }
|
5247 |
|
|
else
|
5248 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5249 |
|
|
echo "${ECHO_T}no" >&6; }
|
5250 |
|
|
fi
|
5251 |
|
|
|
5252 |
|
|
|
5253 |
|
|
test -n "$ac_ct_F77" && break
|
5254 |
|
|
done
|
5255 |
|
|
|
5256 |
|
|
if test "x$ac_ct_F77" = x; then
|
5257 |
|
|
F77=""
|
5258 |
|
|
else
|
5259 |
|
|
case $cross_compiling:$ac_tool_warned in
|
5260 |
|
|
yes:)
|
5261 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
5262 |
|
|
whose name does not start with the host triplet. If you think this
|
5263 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
5264 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
5265 |
|
|
whose name does not start with the host triplet. If you think this
|
5266 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
5267 |
|
|
ac_tool_warned=yes ;;
|
5268 |
|
|
esac
|
5269 |
|
|
F77=$ac_ct_F77
|
5270 |
|
|
fi
|
5271 |
|
|
fi
|
5272 |
|
|
|
5273 |
|
|
|
5274 |
|
|
# Provide some information about the compiler.
|
5275 |
|
|
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
|
5276 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
5277 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
5278 |
|
|
case "(($ac_try" in
|
5279 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5280 |
|
|
*) ac_try_echo=$ac_try;;
|
5281 |
|
|
esac
|
5282 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5283 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
5284 |
|
|
ac_status=$?
|
5285 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5286 |
|
|
(exit $ac_status); }
|
5287 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
5288 |
|
|
case "(($ac_try" in
|
5289 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5290 |
|
|
*) ac_try_echo=$ac_try;;
|
5291 |
|
|
esac
|
5292 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5293 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
5294 |
|
|
ac_status=$?
|
5295 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5296 |
|
|
(exit $ac_status); }
|
5297 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
5298 |
|
|
case "(($ac_try" in
|
5299 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5300 |
|
|
*) ac_try_echo=$ac_try;;
|
5301 |
|
|
esac
|
5302 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5303 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
5304 |
|
|
ac_status=$?
|
5305 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5306 |
|
|
(exit $ac_status); }
|
5307 |
|
|
rm -f a.out
|
5308 |
|
|
|
5309 |
|
|
# If we don't use `.F' as extension, the preprocessor is not run on the
|
5310 |
|
|
# input file. (Note that this only needs to work for GNU compilers.)
|
5311 |
|
|
ac_save_ext=$ac_ext
|
5312 |
|
|
ac_ext=F
|
5313 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
|
5314 |
|
|
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
|
5315 |
|
|
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
|
5316 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5317 |
|
|
else
|
5318 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5319 |
|
|
program main
|
5320 |
|
|
#ifndef __GNUC__
|
5321 |
|
|
choke me
|
5322 |
|
|
#endif
|
5323 |
|
|
|
5324 |
|
|
end
|
5325 |
|
|
_ACEOF
|
5326 |
|
|
rm -f conftest.$ac_objext
|
5327 |
|
|
if { (ac_try="$ac_compile"
|
5328 |
|
|
case "(($ac_try" in
|
5329 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5330 |
|
|
*) ac_try_echo=$ac_try;;
|
5331 |
|
|
esac
|
5332 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5333 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
5334 |
|
|
ac_status=$?
|
5335 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5336 |
|
|
rm -f conftest.er1
|
5337 |
|
|
cat conftest.err >&5
|
5338 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5339 |
|
|
(exit $ac_status); } && {
|
5340 |
|
|
test -z "$ac_f77_werror_flag" ||
|
5341 |
|
|
test ! -s conftest.err
|
5342 |
|
|
} && test -s conftest.$ac_objext; then
|
5343 |
|
|
ac_compiler_gnu=yes
|
5344 |
|
|
else
|
5345 |
|
|
echo "$as_me: failed program was:" >&5
|
5346 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5347 |
|
|
|
5348 |
|
|
ac_compiler_gnu=no
|
5349 |
|
|
fi
|
5350 |
|
|
|
5351 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
5352 |
|
|
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
|
5353 |
|
|
|
5354 |
|
|
fi
|
5355 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
|
5356 |
|
|
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
|
5357 |
|
|
ac_ext=$ac_save_ext
|
5358 |
|
|
ac_test_FFLAGS=${FFLAGS+set}
|
5359 |
|
|
ac_save_FFLAGS=$FFLAGS
|
5360 |
|
|
FFLAGS=
|
5361 |
|
|
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
|
5362 |
|
|
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
|
5363 |
|
|
if test "${ac_cv_prog_f77_g+set}" = set; then
|
5364 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5365 |
|
|
else
|
5366 |
|
|
FFLAGS=-g
|
5367 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5368 |
|
|
program main
|
5369 |
|
|
|
5370 |
|
|
end
|
5371 |
|
|
_ACEOF
|
5372 |
|
|
rm -f conftest.$ac_objext
|
5373 |
|
|
if { (ac_try="$ac_compile"
|
5374 |
|
|
case "(($ac_try" in
|
5375 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
5376 |
|
|
*) ac_try_echo=$ac_try;;
|
5377 |
|
|
esac
|
5378 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
5379 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
5380 |
|
|
ac_status=$?
|
5381 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5382 |
|
|
rm -f conftest.er1
|
5383 |
|
|
cat conftest.err >&5
|
5384 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5385 |
|
|
(exit $ac_status); } && {
|
5386 |
|
|
test -z "$ac_f77_werror_flag" ||
|
5387 |
|
|
test ! -s conftest.err
|
5388 |
|
|
} && test -s conftest.$ac_objext; then
|
5389 |
|
|
ac_cv_prog_f77_g=yes
|
5390 |
|
|
else
|
5391 |
|
|
echo "$as_me: failed program was:" >&5
|
5392 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5393 |
|
|
|
5394 |
|
|
ac_cv_prog_f77_g=no
|
5395 |
|
|
fi
|
5396 |
|
|
|
5397 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
5398 |
|
|
|
5399 |
|
|
fi
|
5400 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
|
5401 |
|
|
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
|
5402 |
|
|
if test "$ac_test_FFLAGS" = set; then
|
5403 |
|
|
FFLAGS=$ac_save_FFLAGS
|
5404 |
|
|
elif test $ac_cv_prog_f77_g = yes; then
|
5405 |
|
|
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
5406 |
|
|
FFLAGS="-g -O2"
|
5407 |
|
|
else
|
5408 |
|
|
FFLAGS="-g"
|
5409 |
|
|
fi
|
5410 |
|
|
else
|
5411 |
|
|
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
5412 |
|
|
FFLAGS="-O2"
|
5413 |
|
|
else
|
5414 |
|
|
FFLAGS=
|
5415 |
|
|
fi
|
5416 |
|
|
fi
|
5417 |
|
|
|
5418 |
|
|
G77=`test $ac_compiler_gnu = yes && echo yes`
|
5419 |
|
|
ac_ext=c
|
5420 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
5421 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
5422 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
5423 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
5424 |
|
|
|
5425 |
|
|
|
5426 |
|
|
|
5427 |
|
|
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
5428 |
|
|
|
5429 |
|
|
# find the maximum length of command line arguments
|
5430 |
|
|
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
5431 |
|
|
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
|
5432 |
|
|
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
5433 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5434 |
|
|
else
|
5435 |
|
|
i=0
|
5436 |
|
|
teststring="ABCD"
|
5437 |
|
|
|
5438 |
|
|
case $build_os in
|
5439 |
|
|
msdosdjgpp*)
|
5440 |
|
|
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
5441 |
|
|
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
5442 |
|
|
# during glob expansion). Even if it were fixed, the result of this
|
5443 |
|
|
# check would be larger than it should be.
|
5444 |
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
5445 |
|
|
;;
|
5446 |
|
|
|
5447 |
|
|
gnu*)
|
5448 |
|
|
# Under GNU Hurd, this test is not required because there is
|
5449 |
|
|
# no limit to the length of command line arguments.
|
5450 |
|
|
# Libtool will interpret -1 as no limit whatsoever
|
5451 |
|
|
lt_cv_sys_max_cmd_len=-1;
|
5452 |
|
|
;;
|
5453 |
|
|
|
5454 |
|
|
cygwin* | mingw*)
|
5455 |
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
5456 |
|
|
# about 5 minutes as the teststring grows exponentially.
|
5457 |
|
|
# Worse, since 9x/ME are not pre-emptively multitasking,
|
5458 |
|
|
# you end up with a "frozen" computer, even though with patience
|
5459 |
|
|
# the test eventually succeeds (with a max line length of 256k).
|
5460 |
|
|
# Instead, let's just punt: use the minimum linelength reported by
|
5461 |
|
|
# all of the supported platforms: 8192 (on NT/2K/XP).
|
5462 |
|
|
lt_cv_sys_max_cmd_len=8192;
|
5463 |
|
|
;;
|
5464 |
|
|
|
5465 |
|
|
amigaos*)
|
5466 |
|
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
5467 |
|
|
# So we just punt and use a minimum line length of 8192.
|
5468 |
|
|
lt_cv_sys_max_cmd_len=8192;
|
5469 |
|
|
;;
|
5470 |
|
|
|
5471 |
|
|
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
5472 |
|
|
# This has been around since 386BSD, at least. Likely further.
|
5473 |
|
|
if test -x /sbin/sysctl; then
|
5474 |
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
5475 |
|
|
elif test -x /usr/sbin/sysctl; then
|
5476 |
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
5477 |
|
|
else
|
5478 |
|
|
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
5479 |
|
|
fi
|
5480 |
|
|
# And add a safety zone
|
5481 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
5482 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
5483 |
|
|
;;
|
5484 |
|
|
|
5485 |
|
|
interix*)
|
5486 |
|
|
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
5487 |
|
|
lt_cv_sys_max_cmd_len=196608
|
5488 |
|
|
;;
|
5489 |
|
|
|
5490 |
|
|
osf*)
|
5491 |
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
5492 |
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
5493 |
|
|
# nice to cause kernel panics so lets avoid the loop below.
|
5494 |
|
|
# First set a reasonable default.
|
5495 |
|
|
lt_cv_sys_max_cmd_len=16384
|
5496 |
|
|
#
|
5497 |
|
|
if test -x /sbin/sysconfig; then
|
5498 |
|
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
5499 |
|
|
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
5500 |
|
|
esac
|
5501 |
|
|
fi
|
5502 |
|
|
;;
|
5503 |
|
|
sco3.2v5*)
|
5504 |
|
|
lt_cv_sys_max_cmd_len=102400
|
5505 |
|
|
;;
|
5506 |
|
|
sysv5* | sco5v6* | sysv4.2uw2*)
|
5507 |
|
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
5508 |
|
|
if test -n "$kargmax"; then
|
5509 |
|
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
5510 |
|
|
else
|
5511 |
|
|
lt_cv_sys_max_cmd_len=32768
|
5512 |
|
|
fi
|
5513 |
|
|
;;
|
5514 |
|
|
*)
|
5515 |
|
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
5516 |
|
|
if test -n "$lt_cv_sys_max_cmd_len"; then
|
5517 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
5518 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
5519 |
|
|
else
|
5520 |
|
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
5521 |
|
|
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
|
5522 |
|
|
= "XX$teststring") >/dev/null 2>&1 &&
|
5523 |
|
|
new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
5524 |
|
|
lt_cv_sys_max_cmd_len=$new_result &&
|
5525 |
|
|
test $i != 17 # 1/2 MB should be enough
|
5526 |
|
|
do
|
5527 |
|
|
i=`expr $i + 1`
|
5528 |
|
|
teststring=$teststring$teststring
|
5529 |
|
|
done
|
5530 |
|
|
teststring=
|
5531 |
|
|
# Add a significant safety factor because C++ compilers can tack on massive
|
5532 |
|
|
# amounts of additional arguments before passing them to the linker.
|
5533 |
|
|
# It appears as though 1/2 is a usable value.
|
5534 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
5535 |
|
|
fi
|
5536 |
|
|
;;
|
5537 |
|
|
esac
|
5538 |
|
|
|
5539 |
|
|
fi
|
5540 |
|
|
|
5541 |
|
|
if test -n $lt_cv_sys_max_cmd_len ; then
|
5542 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
5543 |
|
|
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
|
5544 |
|
|
else
|
5545 |
|
|
{ echo "$as_me:$LINENO: result: none" >&5
|
5546 |
|
|
echo "${ECHO_T}none" >&6; }
|
5547 |
|
|
fi
|
5548 |
|
|
|
5549 |
|
|
|
5550 |
|
|
|
5551 |
|
|
|
5552 |
|
|
|
5553 |
|
|
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
5554 |
|
|
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
5555 |
|
|
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
|
5556 |
|
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
5557 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5558 |
|
|
else
|
5559 |
|
|
|
5560 |
|
|
# These are sane defaults that work on at least a few old systems.
|
5561 |
|
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
5562 |
|
|
|
5563 |
|
|
# Character class describing NM global symbol codes.
|
5564 |
|
|
symcode='[BCDEGRST]'
|
5565 |
|
|
|
5566 |
|
|
# Regexp to match symbols that can be accessed directly from C.
|
5567 |
|
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
5568 |
|
|
|
5569 |
|
|
# Transform an extracted symbol line into a proper C declaration
|
5570 |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
5571 |
|
|
|
5572 |
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
5573 |
|
|
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'"
|
5574 |
|
|
|
5575 |
|
|
# Define system-specific variables.
|
5576 |
|
|
case $host_os in
|
5577 |
|
|
aix*)
|
5578 |
|
|
symcode='[BCDT]'
|
5579 |
|
|
;;
|
5580 |
|
|
cygwin* | mingw* | pw32*)
|
5581 |
|
|
symcode='[ABCDGISTW]'
|
5582 |
|
|
;;
|
5583 |
|
|
hpux*) # Its linker distinguishes data from code symbols
|
5584 |
|
|
if test "$host_cpu" = ia64; then
|
5585 |
|
|
symcode='[ABCDEGRST]'
|
5586 |
|
|
fi
|
5587 |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
5588 |
|
|
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'"
|
5589 |
|
|
;;
|
5590 |
|
|
linux* | k*bsd*-gnu)
|
5591 |
|
|
if test "$host_cpu" = ia64; then
|
5592 |
|
|
symcode='[ABCDGIRSTW]'
|
5593 |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
5594 |
|
|
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'"
|
5595 |
|
|
fi
|
5596 |
|
|
;;
|
5597 |
|
|
irix* | nonstopux*)
|
5598 |
|
|
symcode='[BCDEGRST]'
|
5599 |
|
|
;;
|
5600 |
|
|
osf*)
|
5601 |
|
|
symcode='[BCDEGQRST]'
|
5602 |
|
|
;;
|
5603 |
|
|
solaris*)
|
5604 |
|
|
symcode='[BDRT]'
|
5605 |
|
|
;;
|
5606 |
|
|
sco3.2v5*)
|
5607 |
|
|
symcode='[DT]'
|
5608 |
|
|
;;
|
5609 |
|
|
sysv4.2uw2*)
|
5610 |
|
|
symcode='[DT]'
|
5611 |
|
|
;;
|
5612 |
|
|
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
5613 |
|
|
symcode='[ABDT]'
|
5614 |
|
|
;;
|
5615 |
|
|
sysv4)
|
5616 |
|
|
symcode='[DFNSTU]'
|
5617 |
|
|
;;
|
5618 |
|
|
esac
|
5619 |
|
|
|
5620 |
|
|
# Handle CRLF in mingw tool chain
|
5621 |
|
|
opt_cr=
|
5622 |
|
|
case $build_os in
|
5623 |
|
|
mingw*)
|
5624 |
|
|
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
5625 |
|
|
;;
|
5626 |
|
|
esac
|
5627 |
|
|
|
5628 |
|
|
# If we're using GNU nm, then use its standard symbol codes.
|
5629 |
|
|
case `$NM -V 2>&1` in
|
5630 |
|
|
*GNU* | *'with BFD'*)
|
5631 |
|
|
symcode='[ABCDGIRSTW]' ;;
|
5632 |
|
|
esac
|
5633 |
|
|
|
5634 |
|
|
# Try without a prefix undercore, then with it.
|
5635 |
|
|
for ac_symprfx in "" "_"; do
|
5636 |
|
|
|
5637 |
|
|
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
5638 |
|
|
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
5639 |
|
|
|
5640 |
|
|
# Write the raw and C identifiers.
|
5641 |
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
5642 |
|
|
|
5643 |
|
|
# Check to see that the pipe works correctly.
|
5644 |
|
|
pipe_works=no
|
5645 |
|
|
|
5646 |
|
|
rm -f conftest*
|
5647 |
|
|
cat > conftest.$ac_ext <
|
5648 |
|
|
#ifdef __cplusplus
|
5649 |
|
|
extern "C" {
|
5650 |
|
|
#endif
|
5651 |
|
|
char nm_test_var;
|
5652 |
|
|
void nm_test_func(){}
|
5653 |
|
|
#ifdef __cplusplus
|
5654 |
|
|
}
|
5655 |
|
|
#endif
|
5656 |
|
|
int main(){nm_test_var='a';nm_test_func();return(0);}
|
5657 |
|
|
EOF
|
5658 |
|
|
|
5659 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5660 |
|
|
(eval $ac_compile) 2>&5
|
5661 |
|
|
ac_status=$?
|
5662 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5663 |
|
|
(exit $ac_status); }; then
|
5664 |
|
|
# Now try to grab the symbols.
|
5665 |
|
|
nlist=conftest.nm
|
5666 |
|
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
5667 |
|
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
5668 |
|
|
ac_status=$?
|
5669 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5670 |
|
|
(exit $ac_status); } && test -s "$nlist"; then
|
5671 |
|
|
# Try sorting and uniquifying the output.
|
5672 |
|
|
if sort "$nlist" | uniq > "$nlist"T; then
|
5673 |
|
|
mv -f "$nlist"T "$nlist"
|
5674 |
|
|
else
|
5675 |
|
|
rm -f "$nlist"T
|
5676 |
|
|
fi
|
5677 |
|
|
|
5678 |
|
|
# Make sure that we snagged all the symbols we need.
|
5679 |
|
|
if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
5680 |
|
|
if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
5681 |
|
|
cat < conftest.$ac_ext
|
5682 |
|
|
#ifdef __cplusplus
|
5683 |
|
|
extern "C" {
|
5684 |
|
|
#endif
|
5685 |
|
|
|
5686 |
|
|
EOF
|
5687 |
|
|
# Now generate the symbol file.
|
5688 |
|
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
5689 |
|
|
|
5690 |
|
|
cat <> conftest.$ac_ext
|
5691 |
|
|
#if defined (__STDC__) && __STDC__
|
5692 |
|
|
# define lt_ptr_t void *
|
5693 |
|
|
#else
|
5694 |
|
|
# define lt_ptr_t char *
|
5695 |
|
|
# define const
|
5696 |
|
|
#endif
|
5697 |
|
|
|
5698 |
|
|
/* The mapping between symbol names and symbols. */
|
5699 |
|
|
const struct {
|
5700 |
|
|
const char *name;
|
5701 |
|
|
lt_ptr_t address;
|
5702 |
|
|
}
|
5703 |
|
|
lt_preloaded_symbols[] =
|
5704 |
|
|
{
|
5705 |
|
|
EOF
|
5706 |
|
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
5707 |
|
|
cat <<\EOF >> conftest.$ac_ext
|
5708 |
|
|
{0, (lt_ptr_t) 0}
|
5709 |
|
|
};
|
5710 |
|
|
|
5711 |
|
|
#ifdef __cplusplus
|
5712 |
|
|
}
|
5713 |
|
|
#endif
|
5714 |
|
|
EOF
|
5715 |
|
|
# Now try linking the two files.
|
5716 |
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
5717 |
|
|
lt_save_LIBS="$LIBS"
|
5718 |
|
|
lt_save_CFLAGS="$CFLAGS"
|
5719 |
|
|
LIBS="conftstm.$ac_objext"
|
5720 |
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
5721 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5722 |
|
|
(eval $ac_link) 2>&5
|
5723 |
|
|
ac_status=$?
|
5724 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5725 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then
|
5726 |
|
|
pipe_works=yes
|
5727 |
|
|
fi
|
5728 |
|
|
LIBS="$lt_save_LIBS"
|
5729 |
|
|
CFLAGS="$lt_save_CFLAGS"
|
5730 |
|
|
else
|
5731 |
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
5732 |
|
|
fi
|
5733 |
|
|
else
|
5734 |
|
|
echo "cannot find nm_test_var in $nlist" >&5
|
5735 |
|
|
fi
|
5736 |
|
|
else
|
5737 |
|
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
5738 |
|
|
fi
|
5739 |
|
|
else
|
5740 |
|
|
echo "$progname: failed program was:" >&5
|
5741 |
|
|
cat conftest.$ac_ext >&5
|
5742 |
|
|
fi
|
5743 |
|
|
rm -f conftest* conftst*
|
5744 |
|
|
|
5745 |
|
|
# Do not use the global_symbol_pipe unless it works.
|
5746 |
|
|
if test "$pipe_works" = yes; then
|
5747 |
|
|
break
|
5748 |
|
|
else
|
5749 |
|
|
lt_cv_sys_global_symbol_pipe=
|
5750 |
|
|
fi
|
5751 |
|
|
done
|
5752 |
|
|
|
5753 |
|
|
fi
|
5754 |
|
|
|
5755 |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
5756 |
|
|
lt_cv_sys_global_symbol_to_cdecl=
|
5757 |
|
|
fi
|
5758 |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
5759 |
|
|
{ echo "$as_me:$LINENO: result: failed" >&5
|
5760 |
|
|
echo "${ECHO_T}failed" >&6; }
|
5761 |
|
|
else
|
5762 |
|
|
{ echo "$as_me:$LINENO: result: ok" >&5
|
5763 |
|
|
echo "${ECHO_T}ok" >&6; }
|
5764 |
|
|
fi
|
5765 |
|
|
|
5766 |
|
|
{ echo "$as_me:$LINENO: checking for objdir" >&5
|
5767 |
|
|
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
|
5768 |
|
|
if test "${lt_cv_objdir+set}" = set; then
|
5769 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5770 |
|
|
else
|
5771 |
|
|
rm -f .libs 2>/dev/null
|
5772 |
|
|
mkdir .libs 2>/dev/null
|
5773 |
|
|
if test -d .libs; then
|
5774 |
|
|
lt_cv_objdir=.libs
|
5775 |
|
|
else
|
5776 |
|
|
# MS-DOS does not allow filenames that begin with a dot.
|
5777 |
|
|
lt_cv_objdir=_libs
|
5778 |
|
|
fi
|
5779 |
|
|
rmdir .libs 2>/dev/null
|
5780 |
|
|
fi
|
5781 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
|
5782 |
|
|
echo "${ECHO_T}$lt_cv_objdir" >&6; }
|
5783 |
|
|
objdir=$lt_cv_objdir
|
5784 |
|
|
|
5785 |
|
|
|
5786 |
|
|
|
5787 |
|
|
|
5788 |
|
|
|
5789 |
|
|
case $host_os in
|
5790 |
|
|
aix3*)
|
5791 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
5792 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
5793 |
|
|
# vanish in a puff of smoke.
|
5794 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then
|
5795 |
|
|
COLLECT_NAMES=
|
5796 |
|
|
export COLLECT_NAMES
|
5797 |
|
|
fi
|
5798 |
|
|
;;
|
5799 |
|
|
esac
|
5800 |
|
|
|
5801 |
|
|
# Sed substitution that helps us do robust quoting. It backslashifies
|
5802 |
|
|
# metacharacters that are still active within double-quoted strings.
|
5803 |
|
|
Xsed='sed -e 1s/^X//'
|
5804 |
|
|
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
|
5805 |
|
|
|
5806 |
|
|
# Same as above, but do not quote variable references.
|
5807 |
|
|
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
|
5808 |
|
|
|
5809 |
|
|
# Sed substitution to delay expansion of an escaped shell variable in a
|
5810 |
|
|
# double_quote_subst'ed string.
|
5811 |
|
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
5812 |
|
|
|
5813 |
|
|
# Sed substitution to avoid accidental globbing in evaled expressions
|
5814 |
|
|
no_glob_subst='s/\*/\\\*/g'
|
5815 |
|
|
|
5816 |
|
|
# Constants:
|
5817 |
|
|
rm="rm -f"
|
5818 |
|
|
|
5819 |
|
|
# Global variables:
|
5820 |
|
|
default_ofile=libtool
|
5821 |
|
|
can_build_shared=yes
|
5822 |
|
|
|
5823 |
|
|
# All known linkers require a `.a' archive for static linking (except MSVC,
|
5824 |
|
|
# which needs '.lib').
|
5825 |
|
|
libext=a
|
5826 |
|
|
ltmain="$ac_aux_dir/ltmain.sh"
|
5827 |
|
|
ofile="$default_ofile"
|
5828 |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
5829 |
|
|
|
5830 |
|
|
if test -n "$ac_tool_prefix"; then
|
5831 |
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
5832 |
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
5833 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5834 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5835 |
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
5836 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5837 |
|
|
else
|
5838 |
|
|
if test -n "$AR"; then
|
5839 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
5840 |
|
|
else
|
5841 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5842 |
|
|
for as_dir in $PATH
|
5843 |
|
|
do
|
5844 |
|
|
IFS=$as_save_IFS
|
5845 |
|
|
test -z "$as_dir" && as_dir=.
|
5846 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5847 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5848 |
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
5849 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5850 |
|
|
break 2
|
5851 |
|
|
fi
|
5852 |
|
|
done
|
5853 |
|
|
done
|
5854 |
|
|
IFS=$as_save_IFS
|
5855 |
|
|
|
5856 |
|
|
fi
|
5857 |
|
|
fi
|
5858 |
|
|
AR=$ac_cv_prog_AR
|
5859 |
|
|
if test -n "$AR"; then
|
5860 |
|
|
{ echo "$as_me:$LINENO: result: $AR" >&5
|
5861 |
|
|
echo "${ECHO_T}$AR" >&6; }
|
5862 |
|
|
else
|
5863 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5864 |
|
|
echo "${ECHO_T}no" >&6; }
|
5865 |
|
|
fi
|
5866 |
|
|
|
5867 |
|
|
|
5868 |
|
|
fi
|
5869 |
|
|
if test -z "$ac_cv_prog_AR"; then
|
5870 |
|
|
ac_ct_AR=$AR
|
5871 |
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
5872 |
|
|
set dummy ar; ac_word=$2
|
5873 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5874 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5875 |
|
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
5876 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5877 |
|
|
else
|
5878 |
|
|
if test -n "$ac_ct_AR"; then
|
5879 |
|
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
5880 |
|
|
else
|
5881 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5882 |
|
|
for as_dir in $PATH
|
5883 |
|
|
do
|
5884 |
|
|
IFS=$as_save_IFS
|
5885 |
|
|
test -z "$as_dir" && as_dir=.
|
5886 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5887 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5888 |
|
|
ac_cv_prog_ac_ct_AR="ar"
|
5889 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5890 |
|
|
break 2
|
5891 |
|
|
fi
|
5892 |
|
|
done
|
5893 |
|
|
done
|
5894 |
|
|
IFS=$as_save_IFS
|
5895 |
|
|
|
5896 |
|
|
fi
|
5897 |
|
|
fi
|
5898 |
|
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
5899 |
|
|
if test -n "$ac_ct_AR"; then
|
5900 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
5901 |
|
|
echo "${ECHO_T}$ac_ct_AR" >&6; }
|
5902 |
|
|
else
|
5903 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5904 |
|
|
echo "${ECHO_T}no" >&6; }
|
5905 |
|
|
fi
|
5906 |
|
|
|
5907 |
|
|
if test "x$ac_ct_AR" = x; then
|
5908 |
|
|
AR="false"
|
5909 |
|
|
else
|
5910 |
|
|
case $cross_compiling:$ac_tool_warned in
|
5911 |
|
|
yes:)
|
5912 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
5913 |
|
|
whose name does not start with the host triplet. If you think this
|
5914 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
5915 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
5916 |
|
|
whose name does not start with the host triplet. If you think this
|
5917 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
5918 |
|
|
ac_tool_warned=yes ;;
|
5919 |
|
|
esac
|
5920 |
|
|
AR=$ac_ct_AR
|
5921 |
|
|
fi
|
5922 |
|
|
else
|
5923 |
|
|
AR="$ac_cv_prog_AR"
|
5924 |
|
|
fi
|
5925 |
|
|
|
5926 |
|
|
if test -n "$ac_tool_prefix"; then
|
5927 |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
5928 |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
5929 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5930 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5931 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
5932 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5933 |
|
|
else
|
5934 |
|
|
if test -n "$RANLIB"; then
|
5935 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
5936 |
|
|
else
|
5937 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5938 |
|
|
for as_dir in $PATH
|
5939 |
|
|
do
|
5940 |
|
|
IFS=$as_save_IFS
|
5941 |
|
|
test -z "$as_dir" && as_dir=.
|
5942 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5943 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5944 |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
5945 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5946 |
|
|
break 2
|
5947 |
|
|
fi
|
5948 |
|
|
done
|
5949 |
|
|
done
|
5950 |
|
|
IFS=$as_save_IFS
|
5951 |
|
|
|
5952 |
|
|
fi
|
5953 |
|
|
fi
|
5954 |
|
|
RANLIB=$ac_cv_prog_RANLIB
|
5955 |
|
|
if test -n "$RANLIB"; then
|
5956 |
|
|
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
|
5957 |
|
|
echo "${ECHO_T}$RANLIB" >&6; }
|
5958 |
|
|
else
|
5959 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
5960 |
|
|
echo "${ECHO_T}no" >&6; }
|
5961 |
|
|
fi
|
5962 |
|
|
|
5963 |
|
|
|
5964 |
|
|
fi
|
5965 |
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
5966 |
|
|
ac_ct_RANLIB=$RANLIB
|
5967 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
5968 |
|
|
set dummy ranlib; ac_word=$2
|
5969 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5970 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
5971 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
5972 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5973 |
|
|
else
|
5974 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
5975 |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
5976 |
|
|
else
|
5977 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5978 |
|
|
for as_dir in $PATH
|
5979 |
|
|
do
|
5980 |
|
|
IFS=$as_save_IFS
|
5981 |
|
|
test -z "$as_dir" && as_dir=.
|
5982 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5983 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
5984 |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
5985 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5986 |
|
|
break 2
|
5987 |
|
|
fi
|
5988 |
|
|
done
|
5989 |
|
|
done
|
5990 |
|
|
IFS=$as_save_IFS
|
5991 |
|
|
|
5992 |
|
|
fi
|
5993 |
|
|
fi
|
5994 |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
5995 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
5996 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
5997 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
5998 |
|
|
else
|
5999 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6000 |
|
|
echo "${ECHO_T}no" >&6; }
|
6001 |
|
|
fi
|
6002 |
|
|
|
6003 |
|
|
if test "x$ac_ct_RANLIB" = x; then
|
6004 |
|
|
RANLIB=":"
|
6005 |
|
|
else
|
6006 |
|
|
case $cross_compiling:$ac_tool_warned in
|
6007 |
|
|
yes:)
|
6008 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
6009 |
|
|
whose name does not start with the host triplet. If you think this
|
6010 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
6011 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
6012 |
|
|
whose name does not start with the host triplet. If you think this
|
6013 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
6014 |
|
|
ac_tool_warned=yes ;;
|
6015 |
|
|
esac
|
6016 |
|
|
RANLIB=$ac_ct_RANLIB
|
6017 |
|
|
fi
|
6018 |
|
|
else
|
6019 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
6020 |
|
|
fi
|
6021 |
|
|
|
6022 |
|
|
if test -n "$ac_tool_prefix"; then
|
6023 |
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
6024 |
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
6025 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6026 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
6027 |
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
6028 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6029 |
|
|
else
|
6030 |
|
|
if test -n "$STRIP"; then
|
6031 |
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
6032 |
|
|
else
|
6033 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6034 |
|
|
for as_dir in $PATH
|
6035 |
|
|
do
|
6036 |
|
|
IFS=$as_save_IFS
|
6037 |
|
|
test -z "$as_dir" && as_dir=.
|
6038 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6039 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
6040 |
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
6041 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6042 |
|
|
break 2
|
6043 |
|
|
fi
|
6044 |
|
|
done
|
6045 |
|
|
done
|
6046 |
|
|
IFS=$as_save_IFS
|
6047 |
|
|
|
6048 |
|
|
fi
|
6049 |
|
|
fi
|
6050 |
|
|
STRIP=$ac_cv_prog_STRIP
|
6051 |
|
|
if test -n "$STRIP"; then
|
6052 |
|
|
{ echo "$as_me:$LINENO: result: $STRIP" >&5
|
6053 |
|
|
echo "${ECHO_T}$STRIP" >&6; }
|
6054 |
|
|
else
|
6055 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6056 |
|
|
echo "${ECHO_T}no" >&6; }
|
6057 |
|
|
fi
|
6058 |
|
|
|
6059 |
|
|
|
6060 |
|
|
fi
|
6061 |
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
6062 |
|
|
ac_ct_STRIP=$STRIP
|
6063 |
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
6064 |
|
|
set dummy strip; ac_word=$2
|
6065 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6066 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
6067 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
6068 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6069 |
|
|
else
|
6070 |
|
|
if test -n "$ac_ct_STRIP"; then
|
6071 |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
6072 |
|
|
else
|
6073 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6074 |
|
|
for as_dir in $PATH
|
6075 |
|
|
do
|
6076 |
|
|
IFS=$as_save_IFS
|
6077 |
|
|
test -z "$as_dir" && as_dir=.
|
6078 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6079 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
6080 |
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
6081 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6082 |
|
|
break 2
|
6083 |
|
|
fi
|
6084 |
|
|
done
|
6085 |
|
|
done
|
6086 |
|
|
IFS=$as_save_IFS
|
6087 |
|
|
|
6088 |
|
|
fi
|
6089 |
|
|
fi
|
6090 |
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
6091 |
|
|
if test -n "$ac_ct_STRIP"; then
|
6092 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
6093 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
6094 |
|
|
else
|
6095 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6096 |
|
|
echo "${ECHO_T}no" >&6; }
|
6097 |
|
|
fi
|
6098 |
|
|
|
6099 |
|
|
if test "x$ac_ct_STRIP" = x; then
|
6100 |
|
|
STRIP=":"
|
6101 |
|
|
else
|
6102 |
|
|
case $cross_compiling:$ac_tool_warned in
|
6103 |
|
|
yes:)
|
6104 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
6105 |
|
|
whose name does not start with the host triplet. If you think this
|
6106 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
6107 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
6108 |
|
|
whose name does not start with the host triplet. If you think this
|
6109 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
6110 |
|
|
ac_tool_warned=yes ;;
|
6111 |
|
|
esac
|
6112 |
|
|
STRIP=$ac_ct_STRIP
|
6113 |
|
|
fi
|
6114 |
|
|
else
|
6115 |
|
|
STRIP="$ac_cv_prog_STRIP"
|
6116 |
|
|
fi
|
6117 |
|
|
|
6118 |
|
|
|
6119 |
|
|
old_CC="$CC"
|
6120 |
|
|
old_CFLAGS="$CFLAGS"
|
6121 |
|
|
|
6122 |
|
|
# Set sane defaults for various variables
|
6123 |
|
|
test -z "$AR" && AR=ar
|
6124 |
|
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
6125 |
|
|
test -z "$AS" && AS=as
|
6126 |
|
|
test -z "$CC" && CC=cc
|
6127 |
|
|
test -z "$LTCC" && LTCC=$CC
|
6128 |
|
|
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
6129 |
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
6130 |
|
|
test -z "$LD" && LD=ld
|
6131 |
|
|
test -z "$LN_S" && LN_S="ln -s"
|
6132 |
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
6133 |
|
|
test -z "$NM" && NM=nm
|
6134 |
|
|
test -z "$SED" && SED=sed
|
6135 |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
6136 |
|
|
test -z "$RANLIB" && RANLIB=:
|
6137 |
|
|
test -z "$STRIP" && STRIP=:
|
6138 |
|
|
test -z "$ac_objext" && ac_objext=o
|
6139 |
|
|
|
6140 |
|
|
# Determine commands to create old-style static archives.
|
6141 |
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
6142 |
|
|
old_postinstall_cmds='chmod 644 $oldlib'
|
6143 |
|
|
old_postuninstall_cmds=
|
6144 |
|
|
|
6145 |
|
|
if test -n "$RANLIB"; then
|
6146 |
|
|
case $host_os in
|
6147 |
|
|
openbsd*)
|
6148 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
6149 |
|
|
;;
|
6150 |
|
|
*)
|
6151 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
6152 |
|
|
;;
|
6153 |
|
|
esac
|
6154 |
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
6155 |
|
|
fi
|
6156 |
|
|
|
6157 |
|
|
for cc_temp in $compiler""; do
|
6158 |
|
|
case $cc_temp in
|
6159 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
6160 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
6161 |
|
|
\-*) ;;
|
6162 |
|
|
*) break;;
|
6163 |
|
|
esac
|
6164 |
|
|
done
|
6165 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
6166 |
|
|
|
6167 |
|
|
|
6168 |
|
|
# Only perform the check for file, if the check method requires it
|
6169 |
|
|
case $deplibs_check_method in
|
6170 |
|
|
file_magic*)
|
6171 |
|
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
6172 |
|
|
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
|
6173 |
|
|
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
|
6174 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
6175 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6176 |
|
|
else
|
6177 |
|
|
case $MAGIC_CMD in
|
6178 |
|
|
[\\/*] | ?:[\\/]*)
|
6179 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
6180 |
|
|
;;
|
6181 |
|
|
*)
|
6182 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
6183 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
6184 |
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
6185 |
|
|
for ac_dir in $ac_dummy; do
|
6186 |
|
|
IFS="$lt_save_ifs"
|
6187 |
|
|
test -z "$ac_dir" && ac_dir=.
|
6188 |
|
|
if test -f $ac_dir/${ac_tool_prefix}file; then
|
6189 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
6190 |
|
|
if test -n "$file_magic_test_file"; then
|
6191 |
|
|
case $deplibs_check_method in
|
6192 |
|
|
"file_magic "*)
|
6193 |
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
6194 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6195 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
6196 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
6197 |
|
|
:
|
6198 |
|
|
else
|
6199 |
|
|
cat <&2
|
6200 |
|
|
|
6201 |
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
6202 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
6203 |
|
|
*** The result is that libtool may fail to recognize shared libraries
|
6204 |
|
|
*** as such. This will affect the creation of libtool libraries that
|
6205 |
|
|
*** depend on shared libraries, but programs linked with such libtool
|
6206 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
6207 |
|
|
*** may want to report the problem to your system manager and/or to
|
6208 |
|
|
*** bug-libtool@gnu.org
|
6209 |
|
|
|
6210 |
|
|
EOF
|
6211 |
|
|
fi ;;
|
6212 |
|
|
esac
|
6213 |
|
|
fi
|
6214 |
|
|
break
|
6215 |
|
|
fi
|
6216 |
|
|
done
|
6217 |
|
|
IFS="$lt_save_ifs"
|
6218 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
6219 |
|
|
;;
|
6220 |
|
|
esac
|
6221 |
|
|
fi
|
6222 |
|
|
|
6223 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6224 |
|
|
if test -n "$MAGIC_CMD"; then
|
6225 |
|
|
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
6226 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
6227 |
|
|
else
|
6228 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6229 |
|
|
echo "${ECHO_T}no" >&6; }
|
6230 |
|
|
fi
|
6231 |
|
|
|
6232 |
|
|
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
6233 |
|
|
if test -n "$ac_tool_prefix"; then
|
6234 |
|
|
{ echo "$as_me:$LINENO: checking for file" >&5
|
6235 |
|
|
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
|
6236 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
6237 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6238 |
|
|
else
|
6239 |
|
|
case $MAGIC_CMD in
|
6240 |
|
|
[\\/*] | ?:[\\/]*)
|
6241 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
6242 |
|
|
;;
|
6243 |
|
|
*)
|
6244 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
6245 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
6246 |
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
6247 |
|
|
for ac_dir in $ac_dummy; do
|
6248 |
|
|
IFS="$lt_save_ifs"
|
6249 |
|
|
test -z "$ac_dir" && ac_dir=.
|
6250 |
|
|
if test -f $ac_dir/file; then
|
6251 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
6252 |
|
|
if test -n "$file_magic_test_file"; then
|
6253 |
|
|
case $deplibs_check_method in
|
6254 |
|
|
"file_magic "*)
|
6255 |
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
6256 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6257 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
6258 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
6259 |
|
|
:
|
6260 |
|
|
else
|
6261 |
|
|
cat <&2
|
6262 |
|
|
|
6263 |
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
6264 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
6265 |
|
|
*** The result is that libtool may fail to recognize shared libraries
|
6266 |
|
|
*** as such. This will affect the creation of libtool libraries that
|
6267 |
|
|
*** depend on shared libraries, but programs linked with such libtool
|
6268 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
6269 |
|
|
*** may want to report the problem to your system manager and/or to
|
6270 |
|
|
*** bug-libtool@gnu.org
|
6271 |
|
|
|
6272 |
|
|
EOF
|
6273 |
|
|
fi ;;
|
6274 |
|
|
esac
|
6275 |
|
|
fi
|
6276 |
|
|
break
|
6277 |
|
|
fi
|
6278 |
|
|
done
|
6279 |
|
|
IFS="$lt_save_ifs"
|
6280 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
6281 |
|
|
;;
|
6282 |
|
|
esac
|
6283 |
|
|
fi
|
6284 |
|
|
|
6285 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
6286 |
|
|
if test -n "$MAGIC_CMD"; then
|
6287 |
|
|
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
6288 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
6289 |
|
|
else
|
6290 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
6291 |
|
|
echo "${ECHO_T}no" >&6; }
|
6292 |
|
|
fi
|
6293 |
|
|
|
6294 |
|
|
else
|
6295 |
|
|
MAGIC_CMD=:
|
6296 |
|
|
fi
|
6297 |
|
|
fi
|
6298 |
|
|
|
6299 |
|
|
fi
|
6300 |
|
|
;;
|
6301 |
|
|
esac
|
6302 |
|
|
|
6303 |
|
|
enable_dlopen=no
|
6304 |
|
|
enable_win32_dll=no
|
6305 |
|
|
|
6306 |
|
|
# Check whether --enable-libtool-lock was given.
|
6307 |
|
|
if test "${enable_libtool_lock+set}" = set; then
|
6308 |
|
|
enableval=$enable_libtool_lock;
|
6309 |
|
|
fi
|
6310 |
|
|
|
6311 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
6312 |
|
|
|
6313 |
|
|
|
6314 |
|
|
# Check whether --with-pic was given.
|
6315 |
|
|
if test "${with_pic+set}" = set; then
|
6316 |
|
|
withval=$with_pic; pic_mode="$withval"
|
6317 |
|
|
else
|
6318 |
|
|
pic_mode=default
|
6319 |
|
|
fi
|
6320 |
|
|
|
6321 |
|
|
test -z "$pic_mode" && pic_mode=default
|
6322 |
|
|
|
6323 |
|
|
# Use C for the default configuration in the libtool script
|
6324 |
|
|
tagname=
|
6325 |
|
|
lt_save_CC="$CC"
|
6326 |
|
|
ac_ext=c
|
6327 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
6328 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
6329 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
6330 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
6331 |
|
|
|
6332 |
|
|
|
6333 |
|
|
# Source file extension for C test sources.
|
6334 |
|
|
ac_ext=c
|
6335 |
|
|
|
6336 |
|
|
# Object file extension for compiled C test sources.
|
6337 |
|
|
objext=o
|
6338 |
|
|
objext=$objext
|
6339 |
|
|
|
6340 |
|
|
# Code to be used in simple compile tests
|
6341 |
|
|
lt_simple_compile_test_code="int some_variable = 0;"
|
6342 |
|
|
|
6343 |
|
|
# Code to be used in simple link tests
|
6344 |
|
|
lt_simple_link_test_code='int main(){return(0);}'
|
6345 |
|
|
|
6346 |
|
|
|
6347 |
|
|
# If no C compiler was specified, use CC.
|
6348 |
|
|
LTCC=${LTCC-"$CC"}
|
6349 |
|
|
|
6350 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
6351 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
6352 |
|
|
|
6353 |
|
|
# Allow CC to be a program name with arguments.
|
6354 |
|
|
compiler=$CC
|
6355 |
|
|
|
6356 |
|
|
|
6357 |
|
|
# save warnings/boilerplate of simple test code
|
6358 |
|
|
ac_outfile=conftest.$ac_objext
|
6359 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
6360 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
6361 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
6362 |
|
|
$rm conftest*
|
6363 |
|
|
|
6364 |
|
|
ac_outfile=conftest.$ac_objext
|
6365 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
6366 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
6367 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
6368 |
|
|
$rm conftest*
|
6369 |
|
|
|
6370 |
|
|
|
6371 |
|
|
## CAVEAT EMPTOR:
|
6372 |
|
|
## There is no encapsulation within the following macros, do not change
|
6373 |
|
|
## the running order or otherwise move them around unless you know exactly
|
6374 |
|
|
## what you are doing...
|
6375 |
|
|
|
6376 |
|
|
lt_prog_compiler_no_builtin_flag=
|
6377 |
|
|
|
6378 |
|
|
if test "$GCC" = yes; then
|
6379 |
|
|
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
|
6380 |
|
|
|
6381 |
|
|
|
6382 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
6383 |
|
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
|
6384 |
|
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
6385 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6386 |
|
|
else
|
6387 |
|
|
lt_cv_prog_compiler_rtti_exceptions=no
|
6388 |
|
|
ac_outfile=conftest.$ac_objext
|
6389 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
6390 |
|
|
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
6391 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
6392 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
6393 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
6394 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
6395 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
6396 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
6397 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
6398 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
6399 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
6400 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
6401 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
6402 |
|
|
ac_status=$?
|
6403 |
|
|
cat conftest.err >&5
|
6404 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
6405 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
6406 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
6407 |
|
|
# So say no if there are warnings other than the usual output.
|
6408 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
6409 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
6410 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
6411 |
|
|
lt_cv_prog_compiler_rtti_exceptions=yes
|
6412 |
|
|
fi
|
6413 |
|
|
fi
|
6414 |
|
|
$rm conftest*
|
6415 |
|
|
|
6416 |
|
|
fi
|
6417 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
6418 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
6419 |
|
|
|
6420 |
|
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
6421 |
|
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
6422 |
|
|
else
|
6423 |
|
|
:
|
6424 |
|
|
fi
|
6425 |
|
|
|
6426 |
|
|
fi
|
6427 |
|
|
|
6428 |
|
|
lt_prog_compiler_wl=
|
6429 |
|
|
lt_prog_compiler_pic=
|
6430 |
|
|
lt_prog_compiler_static=
|
6431 |
|
|
|
6432 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
6433 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
6434 |
|
|
|
6435 |
|
|
if test "$GCC" = yes; then
|
6436 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6437 |
|
|
lt_prog_compiler_static='-static'
|
6438 |
|
|
|
6439 |
|
|
case $host_os in
|
6440 |
|
|
aix*)
|
6441 |
|
|
# All AIX code is PIC.
|
6442 |
|
|
if test "$host_cpu" = ia64; then
|
6443 |
|
|
# AIX 5 now supports IA64 processor
|
6444 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6445 |
|
|
fi
|
6446 |
|
|
;;
|
6447 |
|
|
|
6448 |
|
|
amigaos*)
|
6449 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
6450 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
6451 |
|
|
# like `-m68040'.
|
6452 |
|
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
6453 |
|
|
;;
|
6454 |
|
|
|
6455 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
6456 |
|
|
# PIC is the default for these OSes.
|
6457 |
|
|
;;
|
6458 |
|
|
|
6459 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
6460 |
|
|
# This hack is so that the source file can tell whether it is being
|
6461 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
6462 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
6463 |
|
|
# (--disable-auto-import) libraries
|
6464 |
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
6465 |
|
|
;;
|
6466 |
|
|
|
6467 |
|
|
darwin* | rhapsody*)
|
6468 |
|
|
# PIC is the default on this platform
|
6469 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
6470 |
|
|
lt_prog_compiler_pic='-fno-common'
|
6471 |
|
|
;;
|
6472 |
|
|
|
6473 |
|
|
interix[3-9]*)
|
6474 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
6475 |
|
|
# Instead, we relocate shared libraries at runtime.
|
6476 |
|
|
;;
|
6477 |
|
|
|
6478 |
|
|
msdosdjgpp*)
|
6479 |
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
6480 |
|
|
# on systems that don't support them.
|
6481 |
|
|
lt_prog_compiler_can_build_shared=no
|
6482 |
|
|
enable_shared=no
|
6483 |
|
|
;;
|
6484 |
|
|
|
6485 |
|
|
sysv4*MP*)
|
6486 |
|
|
if test -d /usr/nec; then
|
6487 |
|
|
lt_prog_compiler_pic=-Kconform_pic
|
6488 |
|
|
fi
|
6489 |
|
|
;;
|
6490 |
|
|
|
6491 |
|
|
hpux*)
|
6492 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
6493 |
|
|
# not for PA HP-UX.
|
6494 |
|
|
case $host_cpu in
|
6495 |
|
|
hppa*64*|ia64*)
|
6496 |
|
|
# +Z the default
|
6497 |
|
|
;;
|
6498 |
|
|
*)
|
6499 |
|
|
lt_prog_compiler_pic='-fPIC'
|
6500 |
|
|
;;
|
6501 |
|
|
esac
|
6502 |
|
|
;;
|
6503 |
|
|
|
6504 |
|
|
*)
|
6505 |
|
|
lt_prog_compiler_pic='-fPIC'
|
6506 |
|
|
;;
|
6507 |
|
|
esac
|
6508 |
|
|
else
|
6509 |
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
6510 |
|
|
case $host_os in
|
6511 |
|
|
aix*)
|
6512 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6513 |
|
|
if test "$host_cpu" = ia64; then
|
6514 |
|
|
# AIX 5 now supports IA64 processor
|
6515 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6516 |
|
|
else
|
6517 |
|
|
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
6518 |
|
|
fi
|
6519 |
|
|
;;
|
6520 |
|
|
darwin*)
|
6521 |
|
|
# PIC is the default on this platform
|
6522 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
6523 |
|
|
case $cc_basename in
|
6524 |
|
|
xlc*)
|
6525 |
|
|
lt_prog_compiler_pic='-qnocommon'
|
6526 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6527 |
|
|
;;
|
6528 |
|
|
esac
|
6529 |
|
|
;;
|
6530 |
|
|
|
6531 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
6532 |
|
|
# This hack is so that the source file can tell whether it is being
|
6533 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
6534 |
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
6535 |
|
|
;;
|
6536 |
|
|
|
6537 |
|
|
hpux9* | hpux10* | hpux11*)
|
6538 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6539 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
6540 |
|
|
# not for PA HP-UX.
|
6541 |
|
|
case $host_cpu in
|
6542 |
|
|
hppa*64*|ia64*)
|
6543 |
|
|
# +Z the default
|
6544 |
|
|
;;
|
6545 |
|
|
*)
|
6546 |
|
|
lt_prog_compiler_pic='+Z'
|
6547 |
|
|
;;
|
6548 |
|
|
esac
|
6549 |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
6550 |
|
|
lt_prog_compiler_static='${wl}-a ${wl}archive'
|
6551 |
|
|
;;
|
6552 |
|
|
|
6553 |
|
|
irix5* | irix6* | nonstopux*)
|
6554 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6555 |
|
|
# PIC (with -KPIC) is the default.
|
6556 |
|
|
lt_prog_compiler_static='-non_shared'
|
6557 |
|
|
;;
|
6558 |
|
|
|
6559 |
|
|
newsos6)
|
6560 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6561 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6562 |
|
|
;;
|
6563 |
|
|
|
6564 |
|
|
linux* | k*bsd*-gnu)
|
6565 |
|
|
case $cc_basename in
|
6566 |
|
|
icc* | ecc*)
|
6567 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6568 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6569 |
|
|
lt_prog_compiler_static='-static'
|
6570 |
|
|
;;
|
6571 |
|
|
pgcc* | pgf77* | pgf90* | pgf95*)
|
6572 |
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
6573 |
|
|
# which looks to be a dead project)
|
6574 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6575 |
|
|
lt_prog_compiler_pic='-fpic'
|
6576 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6577 |
|
|
;;
|
6578 |
|
|
ccc*)
|
6579 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6580 |
|
|
# All Alpha code is PIC.
|
6581 |
|
|
lt_prog_compiler_static='-non_shared'
|
6582 |
|
|
;;
|
6583 |
|
|
*)
|
6584 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
6585 |
|
|
*Sun\ C*)
|
6586 |
|
|
# Sun C 5.9
|
6587 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6588 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6589 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6590 |
|
|
;;
|
6591 |
|
|
*Sun\ F*)
|
6592 |
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
6593 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6594 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6595 |
|
|
lt_prog_compiler_wl=''
|
6596 |
|
|
;;
|
6597 |
|
|
esac
|
6598 |
|
|
;;
|
6599 |
|
|
esac
|
6600 |
|
|
;;
|
6601 |
|
|
|
6602 |
|
|
osf3* | osf4* | osf5*)
|
6603 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6604 |
|
|
# All OSF/1 code is PIC.
|
6605 |
|
|
lt_prog_compiler_static='-non_shared'
|
6606 |
|
|
;;
|
6607 |
|
|
|
6608 |
|
|
rdos*)
|
6609 |
|
|
lt_prog_compiler_static='-non_shared'
|
6610 |
|
|
;;
|
6611 |
|
|
|
6612 |
|
|
solaris*)
|
6613 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6614 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6615 |
|
|
case $cc_basename in
|
6616 |
|
|
f77* | f90* | f95*)
|
6617 |
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
6618 |
|
|
*)
|
6619 |
|
|
lt_prog_compiler_wl='-Wl,';;
|
6620 |
|
|
esac
|
6621 |
|
|
;;
|
6622 |
|
|
|
6623 |
|
|
sunos4*)
|
6624 |
|
|
lt_prog_compiler_wl='-Qoption ld '
|
6625 |
|
|
lt_prog_compiler_pic='-PIC'
|
6626 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6627 |
|
|
;;
|
6628 |
|
|
|
6629 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
6630 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6631 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6632 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6633 |
|
|
;;
|
6634 |
|
|
|
6635 |
|
|
sysv4*MP*)
|
6636 |
|
|
if test -d /usr/nec ;then
|
6637 |
|
|
lt_prog_compiler_pic='-Kconform_pic'
|
6638 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6639 |
|
|
fi
|
6640 |
|
|
;;
|
6641 |
|
|
|
6642 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
6643 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6644 |
|
|
lt_prog_compiler_pic='-KPIC'
|
6645 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6646 |
|
|
;;
|
6647 |
|
|
|
6648 |
|
|
unicos*)
|
6649 |
|
|
lt_prog_compiler_wl='-Wl,'
|
6650 |
|
|
lt_prog_compiler_can_build_shared=no
|
6651 |
|
|
;;
|
6652 |
|
|
|
6653 |
|
|
uts4*)
|
6654 |
|
|
lt_prog_compiler_pic='-pic'
|
6655 |
|
|
lt_prog_compiler_static='-Bstatic'
|
6656 |
|
|
;;
|
6657 |
|
|
|
6658 |
|
|
*)
|
6659 |
|
|
lt_prog_compiler_can_build_shared=no
|
6660 |
|
|
;;
|
6661 |
|
|
esac
|
6662 |
|
|
fi
|
6663 |
|
|
|
6664 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
|
6665 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
|
6666 |
|
|
|
6667 |
|
|
#
|
6668 |
|
|
# Check to make sure the PIC flag actually works.
|
6669 |
|
|
#
|
6670 |
|
|
if test -n "$lt_prog_compiler_pic"; then
|
6671 |
|
|
|
6672 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
6673 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
|
6674 |
|
|
if test "${lt_prog_compiler_pic_works+set}" = set; then
|
6675 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6676 |
|
|
else
|
6677 |
|
|
lt_prog_compiler_pic_works=no
|
6678 |
|
|
ac_outfile=conftest.$ac_objext
|
6679 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
6680 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
6681 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
6682 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
6683 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
6684 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
6685 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
6686 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
6687 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
6688 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
6689 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
6690 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
6691 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
6692 |
|
|
ac_status=$?
|
6693 |
|
|
cat conftest.err >&5
|
6694 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
6695 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
6696 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
6697 |
|
|
# So say no if there are warnings other than the usual output.
|
6698 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
6699 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
6700 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
6701 |
|
|
lt_prog_compiler_pic_works=yes
|
6702 |
|
|
fi
|
6703 |
|
|
fi
|
6704 |
|
|
$rm conftest*
|
6705 |
|
|
|
6706 |
|
|
fi
|
6707 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
|
6708 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
|
6709 |
|
|
|
6710 |
|
|
if test x"$lt_prog_compiler_pic_works" = xyes; then
|
6711 |
|
|
case $lt_prog_compiler_pic in
|
6712 |
|
|
"" | " "*) ;;
|
6713 |
|
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
6714 |
|
|
esac
|
6715 |
|
|
else
|
6716 |
|
|
lt_prog_compiler_pic=
|
6717 |
|
|
lt_prog_compiler_can_build_shared=no
|
6718 |
|
|
fi
|
6719 |
|
|
|
6720 |
|
|
fi
|
6721 |
|
|
case $host_os in
|
6722 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
6723 |
|
|
*djgpp*)
|
6724 |
|
|
lt_prog_compiler_pic=
|
6725 |
|
|
;;
|
6726 |
|
|
*)
|
6727 |
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
6728 |
|
|
;;
|
6729 |
|
|
esac
|
6730 |
|
|
|
6731 |
|
|
#
|
6732 |
|
|
# Check to make sure the static flag actually works.
|
6733 |
|
|
#
|
6734 |
|
|
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
6735 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
6736 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
6737 |
|
|
if test "${lt_prog_compiler_static_works+set}" = set; then
|
6738 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6739 |
|
|
else
|
6740 |
|
|
lt_prog_compiler_static_works=no
|
6741 |
|
|
save_LDFLAGS="$LDFLAGS"
|
6742 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
6743 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
6744 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
6745 |
|
|
# The linker can only warn and ignore the option if not recognized
|
6746 |
|
|
# So say no if there are warnings
|
6747 |
|
|
if test -s conftest.err; then
|
6748 |
|
|
# Append any errors to the config.log.
|
6749 |
|
|
cat conftest.err 1>&5
|
6750 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
6751 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
6752 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
6753 |
|
|
lt_prog_compiler_static_works=yes
|
6754 |
|
|
fi
|
6755 |
|
|
else
|
6756 |
|
|
lt_prog_compiler_static_works=yes
|
6757 |
|
|
fi
|
6758 |
|
|
fi
|
6759 |
|
|
$rm conftest*
|
6760 |
|
|
LDFLAGS="$save_LDFLAGS"
|
6761 |
|
|
|
6762 |
|
|
fi
|
6763 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
|
6764 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
|
6765 |
|
|
|
6766 |
|
|
if test x"$lt_prog_compiler_static_works" = xyes; then
|
6767 |
|
|
:
|
6768 |
|
|
else
|
6769 |
|
|
lt_prog_compiler_static=
|
6770 |
|
|
fi
|
6771 |
|
|
|
6772 |
|
|
|
6773 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
6774 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
6775 |
|
|
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
6776 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6777 |
|
|
else
|
6778 |
|
|
lt_cv_prog_compiler_c_o=no
|
6779 |
|
|
$rm -r conftest 2>/dev/null
|
6780 |
|
|
mkdir conftest
|
6781 |
|
|
cd conftest
|
6782 |
|
|
mkdir out
|
6783 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
6784 |
|
|
|
6785 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
6786 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
6787 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
6788 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
6789 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
6790 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
6791 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
6792 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
6793 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
6794 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
6795 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
6796 |
|
|
ac_status=$?
|
6797 |
|
|
cat out/conftest.err >&5
|
6798 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
6799 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
6800 |
|
|
then
|
6801 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
6802 |
|
|
# So say no if there are warnings
|
6803 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
6804 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
6805 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
6806 |
|
|
lt_cv_prog_compiler_c_o=yes
|
6807 |
|
|
fi
|
6808 |
|
|
fi
|
6809 |
|
|
chmod u+w . 2>&5
|
6810 |
|
|
$rm conftest*
|
6811 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
6812 |
|
|
# template instantiation
|
6813 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
6814 |
|
|
$rm out/* && rmdir out
|
6815 |
|
|
cd ..
|
6816 |
|
|
rmdir conftest
|
6817 |
|
|
$rm conftest*
|
6818 |
|
|
|
6819 |
|
|
fi
|
6820 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
6821 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
|
6822 |
|
|
|
6823 |
|
|
|
6824 |
|
|
hard_links="nottested"
|
6825 |
|
|
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
6826 |
|
|
# do not overwrite the value of need_locks provided by the user
|
6827 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
6828 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
6829 |
|
|
hard_links=yes
|
6830 |
|
|
$rm conftest*
|
6831 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
6832 |
|
|
touch conftest.a
|
6833 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
6834 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
6835 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
6836 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
6837 |
|
|
if test "$hard_links" = no; then
|
6838 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
6839 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
6840 |
|
|
need_locks=warn
|
6841 |
|
|
fi
|
6842 |
|
|
else
|
6843 |
|
|
need_locks=no
|
6844 |
|
|
fi
|
6845 |
|
|
|
6846 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
6847 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
6848 |
|
|
|
6849 |
|
|
runpath_var=
|
6850 |
|
|
allow_undefined_flag=
|
6851 |
|
|
enable_shared_with_static_runtimes=no
|
6852 |
|
|
archive_cmds=
|
6853 |
|
|
archive_expsym_cmds=
|
6854 |
|
|
old_archive_From_new_cmds=
|
6855 |
|
|
old_archive_from_expsyms_cmds=
|
6856 |
|
|
export_dynamic_flag_spec=
|
6857 |
|
|
whole_archive_flag_spec=
|
6858 |
|
|
thread_safe_flag_spec=
|
6859 |
|
|
hardcode_libdir_flag_spec=
|
6860 |
|
|
hardcode_libdir_flag_spec_ld=
|
6861 |
|
|
hardcode_libdir_separator=
|
6862 |
|
|
hardcode_direct=no
|
6863 |
|
|
hardcode_minus_L=no
|
6864 |
|
|
hardcode_shlibpath_var=unsupported
|
6865 |
|
|
link_all_deplibs=unknown
|
6866 |
|
|
hardcode_automatic=no
|
6867 |
|
|
module_cmds=
|
6868 |
|
|
module_expsym_cmds=
|
6869 |
|
|
always_export_symbols=no
|
6870 |
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
6871 |
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
6872 |
|
|
# included in the symbol list
|
6873 |
|
|
include_expsyms=
|
6874 |
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
6875 |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
6876 |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
6877 |
|
|
# as well as any symbol that contains `d'.
|
6878 |
|
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
|
6879 |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
6880 |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
6881 |
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
6882 |
|
|
# rely on this symbol name, it's probably fine to never include it in
|
6883 |
|
|
# preloaded symbol tables.
|
6884 |
|
|
extract_expsyms_cmds=
|
6885 |
|
|
# Just being paranoid about ensuring that cc_basename is set.
|
6886 |
|
|
for cc_temp in $compiler""; do
|
6887 |
|
|
case $cc_temp in
|
6888 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
6889 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
6890 |
|
|
\-*) ;;
|
6891 |
|
|
*) break;;
|
6892 |
|
|
esac
|
6893 |
|
|
done
|
6894 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
6895 |
|
|
|
6896 |
|
|
case $host_os in
|
6897 |
|
|
cygwin* | mingw* | pw32*)
|
6898 |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
6899 |
|
|
# When not using gcc, we currently assume that we are using
|
6900 |
|
|
# Microsoft Visual C++.
|
6901 |
|
|
if test "$GCC" != yes; then
|
6902 |
|
|
with_gnu_ld=no
|
6903 |
|
|
fi
|
6904 |
|
|
;;
|
6905 |
|
|
interix*)
|
6906 |
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
6907 |
|
|
with_gnu_ld=yes
|
6908 |
|
|
;;
|
6909 |
|
|
openbsd*)
|
6910 |
|
|
with_gnu_ld=no
|
6911 |
|
|
;;
|
6912 |
|
|
esac
|
6913 |
|
|
|
6914 |
|
|
ld_shlibs=yes
|
6915 |
|
|
if test "$with_gnu_ld" = yes; then
|
6916 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
6917 |
|
|
wlarc='${wl}'
|
6918 |
|
|
|
6919 |
|
|
# Set some defaults for GNU ld with shared library support. These
|
6920 |
|
|
# are reset later if shared libraries are not supported. Putting them
|
6921 |
|
|
# here allows them to be overridden if necessary.
|
6922 |
|
|
runpath_var=LD_RUN_PATH
|
6923 |
|
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
|
6924 |
|
|
export_dynamic_flag_spec='${wl}--export-dynamic'
|
6925 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
6926 |
|
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
6927 |
|
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
6928 |
|
|
else
|
6929 |
|
|
whole_archive_flag_spec=
|
6930 |
|
|
fi
|
6931 |
|
|
supports_anon_versioning=no
|
6932 |
|
|
case `$LD -v 2>/dev/null` in
|
6933 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
6934 |
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
6935 |
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
6936 |
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
6937 |
|
|
*) supports_anon_versioning=yes ;;
|
6938 |
|
|
esac
|
6939 |
|
|
|
6940 |
|
|
# See if GNU ld supports shared libraries.
|
6941 |
|
|
case $host_os in
|
6942 |
|
|
aix3* | aix4* | aix5*)
|
6943 |
|
|
# On AIX/PPC, the GNU linker is very broken
|
6944 |
|
|
if test "$host_cpu" != ia64; then
|
6945 |
|
|
ld_shlibs=no
|
6946 |
|
|
cat <&2
|
6947 |
|
|
|
6948 |
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
6949 |
|
|
*** to be unable to reliably create shared libraries on AIX.
|
6950 |
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
6951 |
|
|
*** really care for shared libraries, you may want to modify your PATH
|
6952 |
|
|
*** so that a non-GNU linker is found, and then restart.
|
6953 |
|
|
|
6954 |
|
|
EOF
|
6955 |
|
|
fi
|
6956 |
|
|
;;
|
6957 |
|
|
|
6958 |
|
|
amigaos*)
|
6959 |
|
|
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
6960 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
6961 |
|
|
hardcode_minus_L=yes
|
6962 |
|
|
|
6963 |
|
|
# Samuel A. Falvo II reports
|
6964 |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
6965 |
|
|
# to version 4, is to share data among multiple programs linked
|
6966 |
|
|
# with the same dynamic library. Since this doesn't match the
|
6967 |
|
|
# behavior of shared libraries on other platforms, we can't use
|
6968 |
|
|
# them.
|
6969 |
|
|
ld_shlibs=no
|
6970 |
|
|
;;
|
6971 |
|
|
|
6972 |
|
|
beos*)
|
6973 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
6974 |
|
|
allow_undefined_flag=unsupported
|
6975 |
|
|
# Joseph Beckenbach says some releases of gcc
|
6976 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
6977 |
|
|
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
6978 |
|
|
else
|
6979 |
|
|
ld_shlibs=no
|
6980 |
|
|
fi
|
6981 |
|
|
;;
|
6982 |
|
|
|
6983 |
|
|
cygwin* | mingw* | pw32*)
|
6984 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
6985 |
|
|
# as there is no search path for DLLs.
|
6986 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
6987 |
|
|
allow_undefined_flag=unsupported
|
6988 |
|
|
always_export_symbols=no
|
6989 |
|
|
enable_shared_with_static_runtimes=yes
|
6990 |
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
6991 |
|
|
|
6992 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
6993 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
6994 |
|
|
# If the export-symbols file already is a .def file (1st line
|
6995 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
6996 |
|
|
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
6997 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
6998 |
|
|
else
|
6999 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
7000 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
7001 |
|
|
fi~
|
7002 |
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
7003 |
|
|
else
|
7004 |
|
|
ld_shlibs=no
|
7005 |
|
|
fi
|
7006 |
|
|
;;
|
7007 |
|
|
|
7008 |
|
|
interix[3-9]*)
|
7009 |
|
|
hardcode_direct=no
|
7010 |
|
|
hardcode_shlibpath_var=no
|
7011 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
7012 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7013 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
7014 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
7015 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
7016 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
7017 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
7018 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
7019 |
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
7020 |
|
|
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
7021 |
|
|
;;
|
7022 |
|
|
|
7023 |
|
|
gnu* | linux* | k*bsd*-gnu)
|
7024 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7025 |
|
|
tmp_addflag=
|
7026 |
|
|
case $cc_basename,$host_cpu in
|
7027 |
|
|
pgcc*) # Portland Group C compiler
|
7028 |
|
|
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
7029 |
|
|
tmp_addflag=' $pic_flag'
|
7030 |
|
|
;;
|
7031 |
|
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
7032 |
|
|
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
7033 |
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
7034 |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
7035 |
|
|
tmp_addflag=' -i_dynamic' ;;
|
7036 |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
7037 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
7038 |
|
|
ifc* | ifort*) # Intel Fortran compiler
|
7039 |
|
|
tmp_addflag=' -nofor_main' ;;
|
7040 |
|
|
esac
|
7041 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
7042 |
|
|
*Sun\ C*) # Sun C 5.9
|
7043 |
|
|
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
7044 |
|
|
tmp_sharedflag='-G' ;;
|
7045 |
|
|
*Sun\ F*) # Sun Fortran 8.3
|
7046 |
|
|
tmp_sharedflag='-G' ;;
|
7047 |
|
|
*)
|
7048 |
|
|
tmp_sharedflag='-shared' ;;
|
7049 |
|
|
esac
|
7050 |
|
|
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7051 |
|
|
|
7052 |
|
|
if test $supports_anon_versioning = yes; then
|
7053 |
|
|
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
|
7054 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
7055 |
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
7056 |
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
7057 |
|
|
fi
|
7058 |
|
|
else
|
7059 |
|
|
ld_shlibs=no
|
7060 |
|
|
fi
|
7061 |
|
|
;;
|
7062 |
|
|
|
7063 |
|
|
netbsd*)
|
7064 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
7065 |
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
7066 |
|
|
wlarc=
|
7067 |
|
|
else
|
7068 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7069 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
7070 |
|
|
fi
|
7071 |
|
|
;;
|
7072 |
|
|
|
7073 |
|
|
solaris*)
|
7074 |
|
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
7075 |
|
|
ld_shlibs=no
|
7076 |
|
|
cat <&2
|
7077 |
|
|
|
7078 |
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
7079 |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
7080 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
7081 |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
7082 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
7083 |
|
|
*** used, and then restart.
|
7084 |
|
|
|
7085 |
|
|
EOF
|
7086 |
|
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7087 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7088 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
7089 |
|
|
else
|
7090 |
|
|
ld_shlibs=no
|
7091 |
|
|
fi
|
7092 |
|
|
;;
|
7093 |
|
|
|
7094 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
7095 |
|
|
case `$LD -v 2>&1` in
|
7096 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
7097 |
|
|
ld_shlibs=no
|
7098 |
|
|
cat <<_LT_EOF 1>&2
|
7099 |
|
|
|
7100 |
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
7101 |
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
7102 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
7103 |
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
7104 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
7105 |
|
|
*** used, and then restart.
|
7106 |
|
|
|
7107 |
|
|
_LT_EOF
|
7108 |
|
|
;;
|
7109 |
|
|
*)
|
7110 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7111 |
|
|
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
7112 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
7113 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
7114 |
|
|
else
|
7115 |
|
|
ld_shlibs=no
|
7116 |
|
|
fi
|
7117 |
|
|
;;
|
7118 |
|
|
esac
|
7119 |
|
|
;;
|
7120 |
|
|
|
7121 |
|
|
sunos4*)
|
7122 |
|
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
7123 |
|
|
wlarc=
|
7124 |
|
|
hardcode_direct=yes
|
7125 |
|
|
hardcode_shlibpath_var=no
|
7126 |
|
|
;;
|
7127 |
|
|
|
7128 |
|
|
*)
|
7129 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
7130 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
7131 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
7132 |
|
|
else
|
7133 |
|
|
ld_shlibs=no
|
7134 |
|
|
fi
|
7135 |
|
|
;;
|
7136 |
|
|
esac
|
7137 |
|
|
|
7138 |
|
|
if test "$ld_shlibs" = no; then
|
7139 |
|
|
runpath_var=
|
7140 |
|
|
hardcode_libdir_flag_spec=
|
7141 |
|
|
export_dynamic_flag_spec=
|
7142 |
|
|
whole_archive_flag_spec=
|
7143 |
|
|
fi
|
7144 |
|
|
else
|
7145 |
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
7146 |
|
|
case $host_os in
|
7147 |
|
|
aix3*)
|
7148 |
|
|
allow_undefined_flag=unsupported
|
7149 |
|
|
always_export_symbols=yes
|
7150 |
|
|
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
7151 |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
7152 |
|
|
# are no directories specified by -L.
|
7153 |
|
|
hardcode_minus_L=yes
|
7154 |
|
|
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
7155 |
|
|
# Neither direct hardcoding nor static linking is supported with a
|
7156 |
|
|
# broken collect2.
|
7157 |
|
|
hardcode_direct=unsupported
|
7158 |
|
|
fi
|
7159 |
|
|
;;
|
7160 |
|
|
|
7161 |
|
|
aix4* | aix5*)
|
7162 |
|
|
if test "$host_cpu" = ia64; then
|
7163 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
7164 |
|
|
# have to do anything special.
|
7165 |
|
|
aix_use_runtimelinking=no
|
7166 |
|
|
exp_sym_flag='-Bexport'
|
7167 |
|
|
no_entry_flag=""
|
7168 |
|
|
else
|
7169 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
7170 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
7171 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
7172 |
|
|
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
7173 |
|
|
else
|
7174 |
|
|
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
7175 |
|
|
fi
|
7176 |
|
|
aix_use_runtimelinking=no
|
7177 |
|
|
|
7178 |
|
|
# Test if we are trying to use run time linking or normal
|
7179 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
7180 |
|
|
# need to do runtime linking.
|
7181 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
7182 |
|
|
for ld_flag in $LDFLAGS; do
|
7183 |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
7184 |
|
|
aix_use_runtimelinking=yes
|
7185 |
|
|
break
|
7186 |
|
|
fi
|
7187 |
|
|
done
|
7188 |
|
|
;;
|
7189 |
|
|
esac
|
7190 |
|
|
|
7191 |
|
|
exp_sym_flag='-bexport'
|
7192 |
|
|
no_entry_flag='-bnoentry'
|
7193 |
|
|
fi
|
7194 |
|
|
|
7195 |
|
|
# When large executables or shared objects are built, AIX ld can
|
7196 |
|
|
# have problems creating the table of contents. If linking a library
|
7197 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
7198 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
7199 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
7200 |
|
|
|
7201 |
|
|
archive_cmds=''
|
7202 |
|
|
hardcode_direct=yes
|
7203 |
|
|
hardcode_libdir_separator=':'
|
7204 |
|
|
link_all_deplibs=yes
|
7205 |
|
|
|
7206 |
|
|
if test "$GCC" = yes; then
|
7207 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
7208 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
7209 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
7210 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
7211 |
|
|
if test -f "$collect2name" && \
|
7212 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
7213 |
|
|
then
|
7214 |
|
|
# We have reworked collect2
|
7215 |
|
|
:
|
7216 |
|
|
else
|
7217 |
|
|
# We have old collect2
|
7218 |
|
|
hardcode_direct=unsupported
|
7219 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
7220 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
7221 |
|
|
# to unsupported forces relinking
|
7222 |
|
|
hardcode_minus_L=yes
|
7223 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7224 |
|
|
hardcode_libdir_separator=
|
7225 |
|
|
fi
|
7226 |
|
|
;;
|
7227 |
|
|
esac
|
7228 |
|
|
shared_flag='-shared'
|
7229 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
7230 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
7231 |
|
|
fi
|
7232 |
|
|
else
|
7233 |
|
|
# not using gcc
|
7234 |
|
|
if test "$host_cpu" = ia64; then
|
7235 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
7236 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
7237 |
|
|
shared_flag='-G'
|
7238 |
|
|
else
|
7239 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
7240 |
|
|
shared_flag='${wl}-G'
|
7241 |
|
|
else
|
7242 |
|
|
shared_flag='${wl}-bM:SRE'
|
7243 |
|
|
fi
|
7244 |
|
|
fi
|
7245 |
|
|
fi
|
7246 |
|
|
|
7247 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
7248 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
7249 |
|
|
always_export_symbols=yes
|
7250 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
7251 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
7252 |
|
|
# -berok will link without error, but may produce a broken library.
|
7253 |
|
|
allow_undefined_flag='-berok'
|
7254 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
7255 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7256 |
|
|
/* confdefs.h. */
|
7257 |
|
|
_ACEOF
|
7258 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7259 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7260 |
|
|
/* end confdefs.h. */
|
7261 |
|
|
|
7262 |
|
|
int
|
7263 |
|
|
main ()
|
7264 |
|
|
{
|
7265 |
|
|
|
7266 |
|
|
;
|
7267 |
|
|
return 0;
|
7268 |
|
|
}
|
7269 |
|
|
_ACEOF
|
7270 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7271 |
|
|
if { (ac_try="$ac_link"
|
7272 |
|
|
case "(($ac_try" in
|
7273 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
7274 |
|
|
*) ac_try_echo=$ac_try;;
|
7275 |
|
|
esac
|
7276 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
7277 |
|
|
(eval "$ac_link") 2>conftest.er1
|
7278 |
|
|
ac_status=$?
|
7279 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7280 |
|
|
rm -f conftest.er1
|
7281 |
|
|
cat conftest.err >&5
|
7282 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7283 |
|
|
(exit $ac_status); } && {
|
7284 |
|
|
test -z "$ac_c_werror_flag" ||
|
7285 |
|
|
test ! -s conftest.err
|
7286 |
|
|
} && test -s conftest$ac_exeext &&
|
7287 |
|
|
$as_test_x conftest$ac_exeext; then
|
7288 |
|
|
|
7289 |
|
|
lt_aix_libpath_sed='
|
7290 |
|
|
/Import File Strings/,/^$/ {
|
7291 |
|
|
/^0/ {
|
7292 |
|
|
s/^0 *\(.*\)$/\1/
|
7293 |
|
|
p
|
7294 |
|
|
}
|
7295 |
|
|
}'
|
7296 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7297 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
7298 |
|
|
if test -z "$aix_libpath"; then
|
7299 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7300 |
|
|
fi
|
7301 |
|
|
else
|
7302 |
|
|
echo "$as_me: failed program was:" >&5
|
7303 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7304 |
|
|
|
7305 |
|
|
|
7306 |
|
|
fi
|
7307 |
|
|
|
7308 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
7309 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7310 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
7311 |
|
|
|
7312 |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
7313 |
|
|
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
7314 |
|
|
else
|
7315 |
|
|
if test "$host_cpu" = ia64; then
|
7316 |
|
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
7317 |
|
|
allow_undefined_flag="-z nodefs"
|
7318 |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
7319 |
|
|
else
|
7320 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
7321 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7322 |
|
|
/* confdefs.h. */
|
7323 |
|
|
_ACEOF
|
7324 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7325 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7326 |
|
|
/* end confdefs.h. */
|
7327 |
|
|
|
7328 |
|
|
int
|
7329 |
|
|
main ()
|
7330 |
|
|
{
|
7331 |
|
|
|
7332 |
|
|
;
|
7333 |
|
|
return 0;
|
7334 |
|
|
}
|
7335 |
|
|
_ACEOF
|
7336 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7337 |
|
|
if { (ac_try="$ac_link"
|
7338 |
|
|
case "(($ac_try" in
|
7339 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
7340 |
|
|
*) ac_try_echo=$ac_try;;
|
7341 |
|
|
esac
|
7342 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
7343 |
|
|
(eval "$ac_link") 2>conftest.er1
|
7344 |
|
|
ac_status=$?
|
7345 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7346 |
|
|
rm -f conftest.er1
|
7347 |
|
|
cat conftest.err >&5
|
7348 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7349 |
|
|
(exit $ac_status); } && {
|
7350 |
|
|
test -z "$ac_c_werror_flag" ||
|
7351 |
|
|
test ! -s conftest.err
|
7352 |
|
|
} && test -s conftest$ac_exeext &&
|
7353 |
|
|
$as_test_x conftest$ac_exeext; then
|
7354 |
|
|
|
7355 |
|
|
lt_aix_libpath_sed='
|
7356 |
|
|
/Import File Strings/,/^$/ {
|
7357 |
|
|
/^0/ {
|
7358 |
|
|
s/^0 *\(.*\)$/\1/
|
7359 |
|
|
p
|
7360 |
|
|
}
|
7361 |
|
|
}'
|
7362 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7363 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
7364 |
|
|
if test -z "$aix_libpath"; then
|
7365 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
7366 |
|
|
fi
|
7367 |
|
|
else
|
7368 |
|
|
echo "$as_me: failed program was:" >&5
|
7369 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7370 |
|
|
|
7371 |
|
|
|
7372 |
|
|
fi
|
7373 |
|
|
|
7374 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
7375 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7376 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
7377 |
|
|
|
7378 |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
7379 |
|
|
# Warning - without using the other run time loading flags,
|
7380 |
|
|
# -berok will link without error, but may produce a broken library.
|
7381 |
|
|
no_undefined_flag=' ${wl}-bernotok'
|
7382 |
|
|
allow_undefined_flag=' ${wl}-berok'
|
7383 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
7384 |
|
|
whole_archive_flag_spec='$convenience'
|
7385 |
|
|
archive_cmds_need_lc=yes
|
7386 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
7387 |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
7388 |
|
|
fi
|
7389 |
|
|
fi
|
7390 |
|
|
;;
|
7391 |
|
|
|
7392 |
|
|
amigaos*)
|
7393 |
|
|
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
7394 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7395 |
|
|
hardcode_minus_L=yes
|
7396 |
|
|
# see comment about different semantics on the GNU ld section
|
7397 |
|
|
ld_shlibs=no
|
7398 |
|
|
;;
|
7399 |
|
|
|
7400 |
|
|
bsdi[45]*)
|
7401 |
|
|
export_dynamic_flag_spec=-rdynamic
|
7402 |
|
|
;;
|
7403 |
|
|
|
7404 |
|
|
cygwin* | mingw* | pw32*)
|
7405 |
|
|
# When not using gcc, we currently assume that we are using
|
7406 |
|
|
# Microsoft Visual C++.
|
7407 |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
7408 |
|
|
# no search path for DLLs.
|
7409 |
|
|
hardcode_libdir_flag_spec=' '
|
7410 |
|
|
allow_undefined_flag=unsupported
|
7411 |
|
|
# Tell ltmain to make .lib files, not .a files.
|
7412 |
|
|
libext=lib
|
7413 |
|
|
# Tell ltmain to make .dll files, not .so files.
|
7414 |
|
|
shrext_cmds=".dll"
|
7415 |
|
|
# FIXME: Setting linknames here is a bad hack.
|
7416 |
|
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
7417 |
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
7418 |
|
|
old_archive_From_new_cmds='true'
|
7419 |
|
|
# FIXME: Should let the user specify the lib program.
|
7420 |
|
|
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
7421 |
|
|
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
7422 |
|
|
enable_shared_with_static_runtimes=yes
|
7423 |
|
|
;;
|
7424 |
|
|
|
7425 |
|
|
darwin* | rhapsody*)
|
7426 |
|
|
case $host_os in
|
7427 |
|
|
rhapsody* | darwin1.[012])
|
7428 |
|
|
allow_undefined_flag='${wl}-undefined ${wl}suppress'
|
7429 |
|
|
;;
|
7430 |
|
|
*) # Darwin 1.3 on
|
7431 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
7432 |
|
|
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
7433 |
|
|
else
|
7434 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
7435 |
|
|
10.[012])
|
7436 |
|
|
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
7437 |
|
|
;;
|
7438 |
|
|
10.*)
|
7439 |
|
|
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
|
7440 |
|
|
;;
|
7441 |
|
|
esac
|
7442 |
|
|
fi
|
7443 |
|
|
;;
|
7444 |
|
|
esac
|
7445 |
|
|
archive_cmds_need_lc=no
|
7446 |
|
|
hardcode_direct=no
|
7447 |
|
|
hardcode_automatic=yes
|
7448 |
|
|
hardcode_shlibpath_var=unsupported
|
7449 |
|
|
whole_archive_flag_spec=''
|
7450 |
|
|
link_all_deplibs=yes
|
7451 |
|
|
if test "$GCC" = yes ; then
|
7452 |
|
|
output_verbose_link_cmd='echo'
|
7453 |
|
|
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
7454 |
|
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
7455 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
7456 |
|
|
archive_expsym_cmds='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}'
|
7457 |
|
|
module_expsym_cmds='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}'
|
7458 |
|
|
else
|
7459 |
|
|
case $cc_basename in
|
7460 |
|
|
xlc*)
|
7461 |
|
|
output_verbose_link_cmd='echo'
|
7462 |
|
|
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
7463 |
|
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
7464 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
7465 |
|
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
7466 |
|
|
module_expsym_cmds='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}'
|
7467 |
|
|
;;
|
7468 |
|
|
*)
|
7469 |
|
|
ld_shlibs=no
|
7470 |
|
|
;;
|
7471 |
|
|
esac
|
7472 |
|
|
fi
|
7473 |
|
|
;;
|
7474 |
|
|
|
7475 |
|
|
dgux*)
|
7476 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7477 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7478 |
|
|
hardcode_shlibpath_var=no
|
7479 |
|
|
;;
|
7480 |
|
|
|
7481 |
|
|
freebsd1*)
|
7482 |
|
|
ld_shlibs=no
|
7483 |
|
|
;;
|
7484 |
|
|
|
7485 |
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
7486 |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
7487 |
|
|
# does not break anything, and helps significantly (at the cost of a little
|
7488 |
|
|
# extra space).
|
7489 |
|
|
freebsd2.2*)
|
7490 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
7491 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7492 |
|
|
hardcode_direct=yes
|
7493 |
|
|
hardcode_shlibpath_var=no
|
7494 |
|
|
;;
|
7495 |
|
|
|
7496 |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
7497 |
|
|
freebsd2*)
|
7498 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
7499 |
|
|
hardcode_direct=yes
|
7500 |
|
|
hardcode_minus_L=yes
|
7501 |
|
|
hardcode_shlibpath_var=no
|
7502 |
|
|
;;
|
7503 |
|
|
|
7504 |
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
7505 |
|
|
freebsd* | dragonfly*)
|
7506 |
|
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
7507 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7508 |
|
|
hardcode_direct=yes
|
7509 |
|
|
hardcode_shlibpath_var=no
|
7510 |
|
|
;;
|
7511 |
|
|
|
7512 |
|
|
hpux9*)
|
7513 |
|
|
if test "$GCC" = yes; then
|
7514 |
|
|
archive_cmds='$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'
|
7515 |
|
|
else
|
7516 |
|
|
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
7517 |
|
|
fi
|
7518 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
7519 |
|
|
hardcode_libdir_separator=:
|
7520 |
|
|
hardcode_direct=yes
|
7521 |
|
|
|
7522 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
7523 |
|
|
# but as the default location of the library.
|
7524 |
|
|
hardcode_minus_L=yes
|
7525 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7526 |
|
|
;;
|
7527 |
|
|
|
7528 |
|
|
hpux10*)
|
7529 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
7530 |
|
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
7531 |
|
|
else
|
7532 |
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
7533 |
|
|
fi
|
7534 |
|
|
if test "$with_gnu_ld" = no; then
|
7535 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
7536 |
|
|
hardcode_libdir_separator=:
|
7537 |
|
|
|
7538 |
|
|
hardcode_direct=yes
|
7539 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7540 |
|
|
|
7541 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
7542 |
|
|
# but as the default location of the library.
|
7543 |
|
|
hardcode_minus_L=yes
|
7544 |
|
|
fi
|
7545 |
|
|
;;
|
7546 |
|
|
|
7547 |
|
|
hpux11*)
|
7548 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
7549 |
|
|
case $host_cpu in
|
7550 |
|
|
hppa*64*)
|
7551 |
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7552 |
|
|
;;
|
7553 |
|
|
ia64*)
|
7554 |
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
7555 |
|
|
;;
|
7556 |
|
|
*)
|
7557 |
|
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
7558 |
|
|
;;
|
7559 |
|
|
esac
|
7560 |
|
|
else
|
7561 |
|
|
case $host_cpu in
|
7562 |
|
|
hppa*64*)
|
7563 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7564 |
|
|
;;
|
7565 |
|
|
ia64*)
|
7566 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
7567 |
|
|
;;
|
7568 |
|
|
*)
|
7569 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
7570 |
|
|
;;
|
7571 |
|
|
esac
|
7572 |
|
|
fi
|
7573 |
|
|
if test "$with_gnu_ld" = no; then
|
7574 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
7575 |
|
|
hardcode_libdir_separator=:
|
7576 |
|
|
|
7577 |
|
|
case $host_cpu in
|
7578 |
|
|
hppa*64*|ia64*)
|
7579 |
|
|
hardcode_libdir_flag_spec_ld='+b $libdir'
|
7580 |
|
|
hardcode_direct=no
|
7581 |
|
|
hardcode_shlibpath_var=no
|
7582 |
|
|
;;
|
7583 |
|
|
*)
|
7584 |
|
|
hardcode_direct=yes
|
7585 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7586 |
|
|
|
7587 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
7588 |
|
|
# but as the default location of the library.
|
7589 |
|
|
hardcode_minus_L=yes
|
7590 |
|
|
;;
|
7591 |
|
|
esac
|
7592 |
|
|
fi
|
7593 |
|
|
;;
|
7594 |
|
|
|
7595 |
|
|
irix5* | irix6* | nonstopux*)
|
7596 |
|
|
if test "$GCC" = yes; then
|
7597 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
7598 |
|
|
else
|
7599 |
|
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
7600 |
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
7601 |
|
|
fi
|
7602 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7603 |
|
|
hardcode_libdir_separator=:
|
7604 |
|
|
link_all_deplibs=yes
|
7605 |
|
|
;;
|
7606 |
|
|
|
7607 |
|
|
netbsd*)
|
7608 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
7609 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
7610 |
|
|
else
|
7611 |
|
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
7612 |
|
|
fi
|
7613 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7614 |
|
|
hardcode_direct=yes
|
7615 |
|
|
hardcode_shlibpath_var=no
|
7616 |
|
|
;;
|
7617 |
|
|
|
7618 |
|
|
newsos6)
|
7619 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7620 |
|
|
hardcode_direct=yes
|
7621 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7622 |
|
|
hardcode_libdir_separator=:
|
7623 |
|
|
hardcode_shlibpath_var=no
|
7624 |
|
|
;;
|
7625 |
|
|
|
7626 |
|
|
openbsd*)
|
7627 |
|
|
if test -f /usr/libexec/ld.so; then
|
7628 |
|
|
hardcode_direct=yes
|
7629 |
|
|
hardcode_shlibpath_var=no
|
7630 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
7631 |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
7632 |
|
|
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
7633 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
7634 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
7635 |
|
|
else
|
7636 |
|
|
case $host_os in
|
7637 |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
7638 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
7639 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7640 |
|
|
;;
|
7641 |
|
|
*)
|
7642 |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
7643 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
7644 |
|
|
;;
|
7645 |
|
|
esac
|
7646 |
|
|
fi
|
7647 |
|
|
else
|
7648 |
|
|
ld_shlibs=no
|
7649 |
|
|
fi
|
7650 |
|
|
;;
|
7651 |
|
|
|
7652 |
|
|
os2*)
|
7653 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7654 |
|
|
hardcode_minus_L=yes
|
7655 |
|
|
allow_undefined_flag=unsupported
|
7656 |
|
|
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
7657 |
|
|
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
7658 |
|
|
;;
|
7659 |
|
|
|
7660 |
|
|
osf3*)
|
7661 |
|
|
if test "$GCC" = yes; then
|
7662 |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
7663 |
|
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
7664 |
|
|
else
|
7665 |
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
7666 |
|
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
7667 |
|
|
fi
|
7668 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7669 |
|
|
hardcode_libdir_separator=:
|
7670 |
|
|
;;
|
7671 |
|
|
|
7672 |
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
7673 |
|
|
if test "$GCC" = yes; then
|
7674 |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
7675 |
|
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
7676 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
7677 |
|
|
else
|
7678 |
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
7679 |
|
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
7680 |
|
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
7681 |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
7682 |
|
|
|
7683 |
|
|
# Both c and cxx compiler support -rpath directly
|
7684 |
|
|
hardcode_libdir_flag_spec='-rpath $libdir'
|
7685 |
|
|
fi
|
7686 |
|
|
hardcode_libdir_separator=:
|
7687 |
|
|
;;
|
7688 |
|
|
|
7689 |
|
|
solaris*)
|
7690 |
|
|
no_undefined_flag=' -z text'
|
7691 |
|
|
if test "$GCC" = yes; then
|
7692 |
|
|
wlarc='${wl}'
|
7693 |
|
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7694 |
|
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
7695 |
|
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
7696 |
|
|
else
|
7697 |
|
|
wlarc=''
|
7698 |
|
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7699 |
|
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
7700 |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
7701 |
|
|
fi
|
7702 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
7703 |
|
|
hardcode_shlibpath_var=no
|
7704 |
|
|
case $host_os in
|
7705 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
7706 |
|
|
*)
|
7707 |
|
|
# The compiler driver will combine and reorder linker options,
|
7708 |
|
|
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
7709 |
|
|
# but is careful enough not to reorder.
|
7710 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
7711 |
|
|
if test "$GCC" = yes; then
|
7712 |
|
|
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
7713 |
|
|
else
|
7714 |
|
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
7715 |
|
|
fi
|
7716 |
|
|
;;
|
7717 |
|
|
esac
|
7718 |
|
|
link_all_deplibs=yes
|
7719 |
|
|
;;
|
7720 |
|
|
|
7721 |
|
|
sunos4*)
|
7722 |
|
|
if test "x$host_vendor" = xsequent; then
|
7723 |
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
7724 |
|
|
# files that make .init and .fini sections work.
|
7725 |
|
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
7726 |
|
|
else
|
7727 |
|
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
7728 |
|
|
fi
|
7729 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7730 |
|
|
hardcode_direct=yes
|
7731 |
|
|
hardcode_minus_L=yes
|
7732 |
|
|
hardcode_shlibpath_var=no
|
7733 |
|
|
;;
|
7734 |
|
|
|
7735 |
|
|
sysv4)
|
7736 |
|
|
case $host_vendor in
|
7737 |
|
|
sni)
|
7738 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7739 |
|
|
hardcode_direct=yes # is this really true???
|
7740 |
|
|
;;
|
7741 |
|
|
siemens)
|
7742 |
|
|
## LD is ld it makes a PLAMLIB
|
7743 |
|
|
## CC just makes a GrossModule.
|
7744 |
|
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
7745 |
|
|
reload_cmds='$CC -r -o $output$reload_objs'
|
7746 |
|
|
hardcode_direct=no
|
7747 |
|
|
;;
|
7748 |
|
|
motorola)
|
7749 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7750 |
|
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
7751 |
|
|
;;
|
7752 |
|
|
esac
|
7753 |
|
|
runpath_var='LD_RUN_PATH'
|
7754 |
|
|
hardcode_shlibpath_var=no
|
7755 |
|
|
;;
|
7756 |
|
|
|
7757 |
|
|
sysv4.3*)
|
7758 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7759 |
|
|
hardcode_shlibpath_var=no
|
7760 |
|
|
export_dynamic_flag_spec='-Bexport'
|
7761 |
|
|
;;
|
7762 |
|
|
|
7763 |
|
|
sysv4*MP*)
|
7764 |
|
|
if test -d /usr/nec; then
|
7765 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7766 |
|
|
hardcode_shlibpath_var=no
|
7767 |
|
|
runpath_var=LD_RUN_PATH
|
7768 |
|
|
hardcode_runpath_var=yes
|
7769 |
|
|
ld_shlibs=yes
|
7770 |
|
|
fi
|
7771 |
|
|
;;
|
7772 |
|
|
|
7773 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
7774 |
|
|
no_undefined_flag='${wl}-z,text'
|
7775 |
|
|
archive_cmds_need_lc=no
|
7776 |
|
|
hardcode_shlibpath_var=no
|
7777 |
|
|
runpath_var='LD_RUN_PATH'
|
7778 |
|
|
|
7779 |
|
|
if test "$GCC" = yes; then
|
7780 |
|
|
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7781 |
|
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7782 |
|
|
else
|
7783 |
|
|
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7784 |
|
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7785 |
|
|
fi
|
7786 |
|
|
;;
|
7787 |
|
|
|
7788 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
7789 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
7790 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
7791 |
|
|
# always be unresolved, which means just about no library would
|
7792 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
7793 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
7794 |
|
|
# as -z defs.
|
7795 |
|
|
no_undefined_flag='${wl}-z,text'
|
7796 |
|
|
allow_undefined_flag='${wl}-z,nodefs'
|
7797 |
|
|
archive_cmds_need_lc=no
|
7798 |
|
|
hardcode_shlibpath_var=no
|
7799 |
|
|
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
7800 |
|
|
hardcode_libdir_separator=':'
|
7801 |
|
|
link_all_deplibs=yes
|
7802 |
|
|
export_dynamic_flag_spec='${wl}-Bexport'
|
7803 |
|
|
runpath_var='LD_RUN_PATH'
|
7804 |
|
|
|
7805 |
|
|
if test "$GCC" = yes; then
|
7806 |
|
|
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7807 |
|
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7808 |
|
|
else
|
7809 |
|
|
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7810 |
|
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
7811 |
|
|
fi
|
7812 |
|
|
;;
|
7813 |
|
|
|
7814 |
|
|
uts4*)
|
7815 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
7816 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
7817 |
|
|
hardcode_shlibpath_var=no
|
7818 |
|
|
;;
|
7819 |
|
|
|
7820 |
|
|
*)
|
7821 |
|
|
ld_shlibs=no
|
7822 |
|
|
;;
|
7823 |
|
|
esac
|
7824 |
|
|
fi
|
7825 |
|
|
|
7826 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
7827 |
|
|
echo "${ECHO_T}$ld_shlibs" >&6; }
|
7828 |
|
|
test "$ld_shlibs" = no && can_build_shared=no
|
7829 |
|
|
|
7830 |
|
|
#
|
7831 |
|
|
# Do we need to explicitly link libc?
|
7832 |
|
|
#
|
7833 |
|
|
case "x$archive_cmds_need_lc" in
|
7834 |
|
|
x|xyes)
|
7835 |
|
|
# Assume -lc should be added
|
7836 |
|
|
archive_cmds_need_lc=yes
|
7837 |
|
|
|
7838 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
7839 |
|
|
case $archive_cmds in
|
7840 |
|
|
*'~'*)
|
7841 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
7842 |
|
|
;;
|
7843 |
|
|
'$CC '*)
|
7844 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
7845 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
7846 |
|
|
# to ld, don't add -lc before -lgcc.
|
7847 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
7848 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
7849 |
|
|
$rm conftest*
|
7850 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
7851 |
|
|
|
7852 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7853 |
|
|
(eval $ac_compile) 2>&5
|
7854 |
|
|
ac_status=$?
|
7855 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7856 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
7857 |
|
|
soname=conftest
|
7858 |
|
|
lib=conftest
|
7859 |
|
|
libobjs=conftest.$ac_objext
|
7860 |
|
|
deplibs=
|
7861 |
|
|
wl=$lt_prog_compiler_wl
|
7862 |
|
|
pic_flag=$lt_prog_compiler_pic
|
7863 |
|
|
compiler_flags=-v
|
7864 |
|
|
linker_flags=-v
|
7865 |
|
|
verstring=
|
7866 |
|
|
output_objdir=.
|
7867 |
|
|
libname=conftest
|
7868 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag
|
7869 |
|
|
allow_undefined_flag=
|
7870 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
7871 |
|
|
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
7872 |
|
|
ac_status=$?
|
7873 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7874 |
|
|
(exit $ac_status); }
|
7875 |
|
|
then
|
7876 |
|
|
archive_cmds_need_lc=no
|
7877 |
|
|
else
|
7878 |
|
|
archive_cmds_need_lc=yes
|
7879 |
|
|
fi
|
7880 |
|
|
allow_undefined_flag=$lt_save_allow_undefined_flag
|
7881 |
|
|
else
|
7882 |
|
|
cat conftest.err 1>&5
|
7883 |
|
|
fi
|
7884 |
|
|
$rm conftest*
|
7885 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
|
7886 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
|
7887 |
|
|
;;
|
7888 |
|
|
esac
|
7889 |
|
|
fi
|
7890 |
|
|
;;
|
7891 |
|
|
esac
|
7892 |
|
|
|
7893 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
7894 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
7895 |
|
|
library_names_spec=
|
7896 |
|
|
libname_spec='lib$name'
|
7897 |
|
|
soname_spec=
|
7898 |
|
|
shrext_cmds=".so"
|
7899 |
|
|
postinstall_cmds=
|
7900 |
|
|
postuninstall_cmds=
|
7901 |
|
|
finish_cmds=
|
7902 |
|
|
finish_eval=
|
7903 |
|
|
shlibpath_var=
|
7904 |
|
|
shlibpath_overrides_runpath=unknown
|
7905 |
|
|
version_type=none
|
7906 |
|
|
dynamic_linker="$host_os ld.so"
|
7907 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
7908 |
|
|
|
7909 |
|
|
if test "$GCC" = yes; then
|
7910 |
|
|
case $host_os in
|
7911 |
|
|
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
7912 |
|
|
*) lt_awk_arg="/^libraries:/" ;;
|
7913 |
|
|
esac
|
7914 |
|
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
7915 |
|
|
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
|
7916 |
|
|
# if the path contains ";" then we assume it to be the separator
|
7917 |
|
|
# otherwise default to the standard path separator (i.e. ":") - it is
|
7918 |
|
|
# assumed that no part of a normal pathname contains ";" but that should
|
7919 |
|
|
# okay in the real world where ";" in dirpaths is itself problematic.
|
7920 |
|
|
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
7921 |
|
|
else
|
7922 |
|
|
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
7923 |
|
|
fi
|
7924 |
|
|
# Ok, now we have the path, separated by spaces, we can step through it
|
7925 |
|
|
# and add multilib dir if necessary.
|
7926 |
|
|
lt_tmp_lt_search_path_spec=
|
7927 |
|
|
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
7928 |
|
|
for lt_sys_path in $lt_search_path_spec; do
|
7929 |
|
|
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
7930 |
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
7931 |
|
|
else
|
7932 |
|
|
test -d "$lt_sys_path" && \
|
7933 |
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
7934 |
|
|
fi
|
7935 |
|
|
done
|
7936 |
|
|
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
|
7937 |
|
|
BEGIN {RS=" "; FS="/|\n";} {
|
7938 |
|
|
lt_foo="";
|
7939 |
|
|
lt_count=0;
|
7940 |
|
|
for (lt_i = NF; lt_i > 0; lt_i--) {
|
7941 |
|
|
if ($lt_i != "" && $lt_i != ".") {
|
7942 |
|
|
if ($lt_i == "..") {
|
7943 |
|
|
lt_count++;
|
7944 |
|
|
} else {
|
7945 |
|
|
if (lt_count == 0) {
|
7946 |
|
|
lt_foo="/" $lt_i lt_foo;
|
7947 |
|
|
} else {
|
7948 |
|
|
lt_count--;
|
7949 |
|
|
}
|
7950 |
|
|
}
|
7951 |
|
|
}
|
7952 |
|
|
}
|
7953 |
|
|
if (lt_foo != "") { lt_freq[lt_foo]++; }
|
7954 |
|
|
if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
7955 |
|
|
}'`
|
7956 |
|
|
sys_lib_search_path_spec=`echo $lt_search_path_spec`
|
7957 |
|
|
else
|
7958 |
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
7959 |
|
|
fi
|
7960 |
|
|
need_lib_prefix=unknown
|
7961 |
|
|
hardcode_into_libs=no
|
7962 |
|
|
|
7963 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
7964 |
|
|
# flags to be left without arguments
|
7965 |
|
|
need_version=unknown
|
7966 |
|
|
|
7967 |
|
|
case $host_os in
|
7968 |
|
|
aix3*)
|
7969 |
|
|
version_type=linux
|
7970 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
7971 |
|
|
shlibpath_var=LIBPATH
|
7972 |
|
|
|
7973 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
7974 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
7975 |
|
|
;;
|
7976 |
|
|
|
7977 |
|
|
aix4* | aix5*)
|
7978 |
|
|
version_type=linux
|
7979 |
|
|
need_lib_prefix=no
|
7980 |
|
|
need_version=no
|
7981 |
|
|
hardcode_into_libs=yes
|
7982 |
|
|
if test "$host_cpu" = ia64; then
|
7983 |
|
|
# AIX 5 supports IA64
|
7984 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
7985 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
7986 |
|
|
else
|
7987 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
7988 |
|
|
# for dependence libraries. The import file would start with
|
7989 |
|
|
# the line `#! .'. This would cause the generated library to
|
7990 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
7991 |
|
|
# development snapshots of GCC prior to 3.0.
|
7992 |
|
|
case $host_os in
|
7993 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
7994 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
7995 |
|
|
echo ' yes '
|
7996 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
7997 |
|
|
:
|
7998 |
|
|
else
|
7999 |
|
|
can_build_shared=no
|
8000 |
|
|
fi
|
8001 |
|
|
;;
|
8002 |
|
|
esac
|
8003 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
8004 |
|
|
# soname into executable. Probably we can add versioning support to
|
8005 |
|
|
# collect2, so additional links can be useful in future.
|
8006 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
8007 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
8008 |
|
|
# instead of lib.a to let people know that these are not
|
8009 |
|
|
# typical AIX shared libraries.
|
8010 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8011 |
|
|
else
|
8012 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
8013 |
|
|
# and later when we are not doing run time linking.
|
8014 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
8015 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8016 |
|
|
fi
|
8017 |
|
|
shlibpath_var=LIBPATH
|
8018 |
|
|
fi
|
8019 |
|
|
;;
|
8020 |
|
|
|
8021 |
|
|
amigaos*)
|
8022 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
8023 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
8024 |
|
|
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'
|
8025 |
|
|
;;
|
8026 |
|
|
|
8027 |
|
|
beos*)
|
8028 |
|
|
library_names_spec='${libname}${shared_ext}'
|
8029 |
|
|
dynamic_linker="$host_os ld.so"
|
8030 |
|
|
shlibpath_var=LIBRARY_PATH
|
8031 |
|
|
;;
|
8032 |
|
|
|
8033 |
|
|
bsdi[45]*)
|
8034 |
|
|
version_type=linux
|
8035 |
|
|
need_version=no
|
8036 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8037 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8038 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
8039 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8040 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
8041 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
8042 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
8043 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
8044 |
|
|
# libtool to hard-code these into programs
|
8045 |
|
|
;;
|
8046 |
|
|
|
8047 |
|
|
cygwin* | mingw* | pw32*)
|
8048 |
|
|
version_type=windows
|
8049 |
|
|
shrext_cmds=".dll"
|
8050 |
|
|
need_version=no
|
8051 |
|
|
need_lib_prefix=no
|
8052 |
|
|
|
8053 |
|
|
case $GCC,$host_os in
|
8054 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
8055 |
|
|
library_names_spec='$libname.dll.a'
|
8056 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
8057 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
8058 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
8059 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
8060 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
8061 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
8062 |
|
|
chmod a+x \$dldir/$dlname'
|
8063 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
8064 |
|
|
dlpath=$dir/\$dldll~
|
8065 |
|
|
$rm \$dlpath'
|
8066 |
|
|
shlibpath_overrides_runpath=yes
|
8067 |
|
|
|
8068 |
|
|
case $host_os in
|
8069 |
|
|
cygwin*)
|
8070 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
8071 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
8072 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
8073 |
|
|
;;
|
8074 |
|
|
mingw*)
|
8075 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
8076 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
8077 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
8078 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
8079 |
|
|
# It is most probably a Windows format PATH printed by
|
8080 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
8081 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
8082 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
8083 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
8084 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
8085 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
8086 |
|
|
else
|
8087 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
8088 |
|
|
fi
|
8089 |
|
|
;;
|
8090 |
|
|
pw32*)
|
8091 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
8092 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
8093 |
|
|
;;
|
8094 |
|
|
esac
|
8095 |
|
|
;;
|
8096 |
|
|
|
8097 |
|
|
*)
|
8098 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
8099 |
|
|
;;
|
8100 |
|
|
esac
|
8101 |
|
|
dynamic_linker='Win32 ld.exe'
|
8102 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
8103 |
|
|
shlibpath_var=PATH
|
8104 |
|
|
;;
|
8105 |
|
|
|
8106 |
|
|
darwin* | rhapsody*)
|
8107 |
|
|
dynamic_linker="$host_os dyld"
|
8108 |
|
|
version_type=darwin
|
8109 |
|
|
need_lib_prefix=no
|
8110 |
|
|
need_version=no
|
8111 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
8112 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
8113 |
|
|
shlibpath_overrides_runpath=yes
|
8114 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
8115 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
8116 |
|
|
|
8117 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
8118 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
8119 |
|
|
;;
|
8120 |
|
|
|
8121 |
|
|
dgux*)
|
8122 |
|
|
version_type=linux
|
8123 |
|
|
need_lib_prefix=no
|
8124 |
|
|
need_version=no
|
8125 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
8126 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8127 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8128 |
|
|
;;
|
8129 |
|
|
|
8130 |
|
|
freebsd1*)
|
8131 |
|
|
dynamic_linker=no
|
8132 |
|
|
;;
|
8133 |
|
|
|
8134 |
|
|
freebsd* | dragonfly*)
|
8135 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
8136 |
|
|
# versioning mechanism, adjust this.
|
8137 |
|
|
if test -x /usr/bin/objformat; then
|
8138 |
|
|
objformat=`/usr/bin/objformat`
|
8139 |
|
|
else
|
8140 |
|
|
case $host_os in
|
8141 |
|
|
freebsd[123]*) objformat=aout ;;
|
8142 |
|
|
*) objformat=elf ;;
|
8143 |
|
|
esac
|
8144 |
|
|
fi
|
8145 |
|
|
version_type=freebsd-$objformat
|
8146 |
|
|
case $version_type in
|
8147 |
|
|
freebsd-elf*)
|
8148 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
8149 |
|
|
need_version=no
|
8150 |
|
|
need_lib_prefix=no
|
8151 |
|
|
;;
|
8152 |
|
|
freebsd-*)
|
8153 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
8154 |
|
|
need_version=yes
|
8155 |
|
|
;;
|
8156 |
|
|
esac
|
8157 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8158 |
|
|
case $host_os in
|
8159 |
|
|
freebsd2*)
|
8160 |
|
|
shlibpath_overrides_runpath=yes
|
8161 |
|
|
;;
|
8162 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
8163 |
|
|
shlibpath_overrides_runpath=yes
|
8164 |
|
|
hardcode_into_libs=yes
|
8165 |
|
|
;;
|
8166 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
8167 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
8168 |
|
|
shlibpath_overrides_runpath=no
|
8169 |
|
|
hardcode_into_libs=yes
|
8170 |
|
|
;;
|
8171 |
|
|
*) # from 4.6 on, and DragonFly
|
8172 |
|
|
shlibpath_overrides_runpath=yes
|
8173 |
|
|
hardcode_into_libs=yes
|
8174 |
|
|
;;
|
8175 |
|
|
esac
|
8176 |
|
|
;;
|
8177 |
|
|
|
8178 |
|
|
gnu*)
|
8179 |
|
|
version_type=linux
|
8180 |
|
|
need_lib_prefix=no
|
8181 |
|
|
need_version=no
|
8182 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
8183 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8184 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8185 |
|
|
hardcode_into_libs=yes
|
8186 |
|
|
;;
|
8187 |
|
|
|
8188 |
|
|
hpux9* | hpux10* | hpux11*)
|
8189 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
8190 |
|
|
# link against other versions.
|
8191 |
|
|
version_type=sunos
|
8192 |
|
|
need_lib_prefix=no
|
8193 |
|
|
need_version=no
|
8194 |
|
|
case $host_cpu in
|
8195 |
|
|
ia64*)
|
8196 |
|
|
shrext_cmds='.so'
|
8197 |
|
|
hardcode_into_libs=yes
|
8198 |
|
|
dynamic_linker="$host_os dld.so"
|
8199 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8200 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
8201 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8202 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8203 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
8204 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
8205 |
|
|
else
|
8206 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
8207 |
|
|
fi
|
8208 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
8209 |
|
|
;;
|
8210 |
|
|
hppa*64*)
|
8211 |
|
|
shrext_cmds='.sl'
|
8212 |
|
|
hardcode_into_libs=yes
|
8213 |
|
|
dynamic_linker="$host_os dld.sl"
|
8214 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
8215 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
8216 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8217 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8218 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
8219 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
8220 |
|
|
;;
|
8221 |
|
|
*)
|
8222 |
|
|
shrext_cmds='.sl'
|
8223 |
|
|
dynamic_linker="$host_os dld.sl"
|
8224 |
|
|
shlibpath_var=SHLIB_PATH
|
8225 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
8226 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8227 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8228 |
|
|
;;
|
8229 |
|
|
esac
|
8230 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
8231 |
|
|
postinstall_cmds='chmod 555 $lib'
|
8232 |
|
|
;;
|
8233 |
|
|
|
8234 |
|
|
interix[3-9]*)
|
8235 |
|
|
version_type=linux
|
8236 |
|
|
need_lib_prefix=no
|
8237 |
|
|
need_version=no
|
8238 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
8239 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8240 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
8241 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8242 |
|
|
shlibpath_overrides_runpath=no
|
8243 |
|
|
hardcode_into_libs=yes
|
8244 |
|
|
;;
|
8245 |
|
|
|
8246 |
|
|
irix5* | irix6* | nonstopux*)
|
8247 |
|
|
case $host_os in
|
8248 |
|
|
nonstopux*) version_type=nonstopux ;;
|
8249 |
|
|
*)
|
8250 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
8251 |
|
|
version_type=linux
|
8252 |
|
|
else
|
8253 |
|
|
version_type=irix
|
8254 |
|
|
fi ;;
|
8255 |
|
|
esac
|
8256 |
|
|
need_lib_prefix=no
|
8257 |
|
|
need_version=no
|
8258 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8259 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
8260 |
|
|
case $host_os in
|
8261 |
|
|
irix5* | nonstopux*)
|
8262 |
|
|
libsuff= shlibsuff=
|
8263 |
|
|
;;
|
8264 |
|
|
*)
|
8265 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
8266 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
8267 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
8268 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
8269 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
8270 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
8271 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
8272 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
8273 |
|
|
esac
|
8274 |
|
|
;;
|
8275 |
|
|
esac
|
8276 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
8277 |
|
|
shlibpath_overrides_runpath=no
|
8278 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
8279 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
8280 |
|
|
hardcode_into_libs=yes
|
8281 |
|
|
;;
|
8282 |
|
|
|
8283 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
8284 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
8285 |
|
|
dynamic_linker=no
|
8286 |
|
|
;;
|
8287 |
|
|
|
8288 |
|
|
# This must be Linux ELF.
|
8289 |
|
|
linux* | k*bsd*-gnu)
|
8290 |
|
|
version_type=linux
|
8291 |
|
|
need_lib_prefix=no
|
8292 |
|
|
need_version=no
|
8293 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8294 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8295 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
8296 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8297 |
|
|
shlibpath_overrides_runpath=no
|
8298 |
|
|
# This implies no fast_install, which is unacceptable.
|
8299 |
|
|
# Some rework will be needed to allow for fast_install
|
8300 |
|
|
# before this can be enabled.
|
8301 |
|
|
hardcode_into_libs=yes
|
8302 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
8303 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
8304 |
|
|
|
8305 |
|
|
# Append ld.so.conf contents to the search path
|
8306 |
|
|
if test -f /etc/ld.so.conf; then
|
8307 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
8308 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
8309 |
|
|
fi
|
8310 |
|
|
|
8311 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
8312 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
8313 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
8314 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
8315 |
|
|
# people can always --disable-shared, the test was removed, and we
|
8316 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
8317 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
8318 |
|
|
;;
|
8319 |
|
|
|
8320 |
|
|
netbsd*)
|
8321 |
|
|
version_type=sunos
|
8322 |
|
|
need_lib_prefix=no
|
8323 |
|
|
need_version=no
|
8324 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
8325 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
8326 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
8327 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
8328 |
|
|
else
|
8329 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
8330 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8331 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
8332 |
|
|
fi
|
8333 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8334 |
|
|
shlibpath_overrides_runpath=yes
|
8335 |
|
|
hardcode_into_libs=yes
|
8336 |
|
|
;;
|
8337 |
|
|
|
8338 |
|
|
newsos6)
|
8339 |
|
|
version_type=linux
|
8340 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8341 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8342 |
|
|
shlibpath_overrides_runpath=yes
|
8343 |
|
|
;;
|
8344 |
|
|
|
8345 |
|
|
nto-qnx*)
|
8346 |
|
|
version_type=linux
|
8347 |
|
|
need_lib_prefix=no
|
8348 |
|
|
need_version=no
|
8349 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8350 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8351 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8352 |
|
|
shlibpath_overrides_runpath=yes
|
8353 |
|
|
;;
|
8354 |
|
|
|
8355 |
|
|
openbsd*)
|
8356 |
|
|
version_type=sunos
|
8357 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
8358 |
|
|
need_lib_prefix=no
|
8359 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
8360 |
|
|
case $host_os in
|
8361 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
8362 |
|
|
*) need_version=no ;;
|
8363 |
|
|
esac
|
8364 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
8365 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
8366 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8367 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
8368 |
|
|
case $host_os in
|
8369 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
8370 |
|
|
shlibpath_overrides_runpath=no
|
8371 |
|
|
;;
|
8372 |
|
|
*)
|
8373 |
|
|
shlibpath_overrides_runpath=yes
|
8374 |
|
|
;;
|
8375 |
|
|
esac
|
8376 |
|
|
else
|
8377 |
|
|
shlibpath_overrides_runpath=yes
|
8378 |
|
|
fi
|
8379 |
|
|
;;
|
8380 |
|
|
|
8381 |
|
|
os2*)
|
8382 |
|
|
libname_spec='$name'
|
8383 |
|
|
shrext_cmds=".dll"
|
8384 |
|
|
need_lib_prefix=no
|
8385 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
8386 |
|
|
dynamic_linker='OS/2 ld.exe'
|
8387 |
|
|
shlibpath_var=LIBPATH
|
8388 |
|
|
;;
|
8389 |
|
|
|
8390 |
|
|
osf3* | osf4* | osf5*)
|
8391 |
|
|
version_type=osf
|
8392 |
|
|
need_lib_prefix=no
|
8393 |
|
|
need_version=no
|
8394 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8395 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8396 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8397 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
8398 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
8399 |
|
|
;;
|
8400 |
|
|
|
8401 |
|
|
rdos*)
|
8402 |
|
|
dynamic_linker=no
|
8403 |
|
|
;;
|
8404 |
|
|
|
8405 |
|
|
solaris*)
|
8406 |
|
|
version_type=linux
|
8407 |
|
|
need_lib_prefix=no
|
8408 |
|
|
need_version=no
|
8409 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8410 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8411 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8412 |
|
|
shlibpath_overrides_runpath=yes
|
8413 |
|
|
hardcode_into_libs=yes
|
8414 |
|
|
# ldd complains unless libraries are executable
|
8415 |
|
|
postinstall_cmds='chmod +x $lib'
|
8416 |
|
|
;;
|
8417 |
|
|
|
8418 |
|
|
sunos4*)
|
8419 |
|
|
version_type=sunos
|
8420 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
8421 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
8422 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8423 |
|
|
shlibpath_overrides_runpath=yes
|
8424 |
|
|
if test "$with_gnu_ld" = yes; then
|
8425 |
|
|
need_lib_prefix=no
|
8426 |
|
|
fi
|
8427 |
|
|
need_version=yes
|
8428 |
|
|
;;
|
8429 |
|
|
|
8430 |
|
|
sysv4 | sysv4.3*)
|
8431 |
|
|
version_type=linux
|
8432 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8433 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8434 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8435 |
|
|
case $host_vendor in
|
8436 |
|
|
sni)
|
8437 |
|
|
shlibpath_overrides_runpath=no
|
8438 |
|
|
need_lib_prefix=no
|
8439 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
8440 |
|
|
runpath_var=LD_RUN_PATH
|
8441 |
|
|
;;
|
8442 |
|
|
siemens)
|
8443 |
|
|
need_lib_prefix=no
|
8444 |
|
|
;;
|
8445 |
|
|
motorola)
|
8446 |
|
|
need_lib_prefix=no
|
8447 |
|
|
need_version=no
|
8448 |
|
|
shlibpath_overrides_runpath=no
|
8449 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
8450 |
|
|
;;
|
8451 |
|
|
esac
|
8452 |
|
|
;;
|
8453 |
|
|
|
8454 |
|
|
sysv4*MP*)
|
8455 |
|
|
if test -d /usr/nec ;then
|
8456 |
|
|
version_type=linux
|
8457 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
8458 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
8459 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8460 |
|
|
fi
|
8461 |
|
|
;;
|
8462 |
|
|
|
8463 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
8464 |
|
|
version_type=freebsd-elf
|
8465 |
|
|
need_lib_prefix=no
|
8466 |
|
|
need_version=no
|
8467 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
8468 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8469 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8470 |
|
|
hardcode_into_libs=yes
|
8471 |
|
|
if test "$with_gnu_ld" = yes; then
|
8472 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
8473 |
|
|
shlibpath_overrides_runpath=no
|
8474 |
|
|
else
|
8475 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
8476 |
|
|
shlibpath_overrides_runpath=yes
|
8477 |
|
|
case $host_os in
|
8478 |
|
|
sco3.2v5*)
|
8479 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
8480 |
|
|
;;
|
8481 |
|
|
esac
|
8482 |
|
|
fi
|
8483 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
8484 |
|
|
;;
|
8485 |
|
|
|
8486 |
|
|
uts4*)
|
8487 |
|
|
version_type=linux
|
8488 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
8489 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
8490 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
8491 |
|
|
;;
|
8492 |
|
|
|
8493 |
|
|
*)
|
8494 |
|
|
dynamic_linker=no
|
8495 |
|
|
;;
|
8496 |
|
|
esac
|
8497 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
8498 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
8499 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
8500 |
|
|
|
8501 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
8502 |
|
|
if test "$GCC" = yes; then
|
8503 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
8504 |
|
|
fi
|
8505 |
|
|
|
8506 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
8507 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
8508 |
|
|
hardcode_action=
|
8509 |
|
|
if test -n "$hardcode_libdir_flag_spec" || \
|
8510 |
|
|
test -n "$runpath_var" || \
|
8511 |
|
|
test "X$hardcode_automatic" = "Xyes" ; then
|
8512 |
|
|
|
8513 |
|
|
# We can hardcode non-existant directories.
|
8514 |
|
|
if test "$hardcode_direct" != no &&
|
8515 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
8516 |
|
|
# have to relink, otherwise we might link with an installed library
|
8517 |
|
|
# when we should be linking with a yet-to-be-installed one
|
8518 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
8519 |
|
|
test "$hardcode_minus_L" != no; then
|
8520 |
|
|
# Linking always hardcodes the temporary library directory.
|
8521 |
|
|
hardcode_action=relink
|
8522 |
|
|
else
|
8523 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
8524 |
|
|
hardcode_action=immediate
|
8525 |
|
|
fi
|
8526 |
|
|
else
|
8527 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
8528 |
|
|
# directories.
|
8529 |
|
|
hardcode_action=unsupported
|
8530 |
|
|
fi
|
8531 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
|
8532 |
|
|
echo "${ECHO_T}$hardcode_action" >&6; }
|
8533 |
|
|
|
8534 |
|
|
if test "$hardcode_action" = relink; then
|
8535 |
|
|
# Fast installation is not supported
|
8536 |
|
|
enable_fast_install=no
|
8537 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
8538 |
|
|
test "$enable_shared" = no; then
|
8539 |
|
|
# Fast installation is not necessary
|
8540 |
|
|
enable_fast_install=needless
|
8541 |
|
|
fi
|
8542 |
|
|
|
8543 |
|
|
striplib=
|
8544 |
|
|
old_striplib=
|
8545 |
|
|
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
8546 |
|
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
|
8547 |
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
8548 |
|
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
8549 |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
8550 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
8551 |
|
|
echo "${ECHO_T}yes" >&6; }
|
8552 |
|
|
else
|
8553 |
|
|
# FIXME - insert some real tests, host_os isn't really good enough
|
8554 |
|
|
case $host_os in
|
8555 |
|
|
darwin*)
|
8556 |
|
|
if test -n "$STRIP" ; then
|
8557 |
|
|
striplib="$STRIP -x"
|
8558 |
|
|
old_striplib="$STRIP -S"
|
8559 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
8560 |
|
|
echo "${ECHO_T}yes" >&6; }
|
8561 |
|
|
else
|
8562 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
8563 |
|
|
echo "${ECHO_T}no" >&6; }
|
8564 |
|
|
fi
|
8565 |
|
|
;;
|
8566 |
|
|
*)
|
8567 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
8568 |
|
|
echo "${ECHO_T}no" >&6; }
|
8569 |
|
|
;;
|
8570 |
|
|
esac
|
8571 |
|
|
fi
|
8572 |
|
|
|
8573 |
|
|
if test "x$enable_dlopen" != xyes; then
|
8574 |
|
|
enable_dlopen=unknown
|
8575 |
|
|
enable_dlopen_self=unknown
|
8576 |
|
|
enable_dlopen_self_static=unknown
|
8577 |
|
|
else
|
8578 |
|
|
lt_cv_dlopen=no
|
8579 |
|
|
lt_cv_dlopen_libs=
|
8580 |
|
|
|
8581 |
|
|
case $host_os in
|
8582 |
|
|
beos*)
|
8583 |
|
|
lt_cv_dlopen="load_add_on"
|
8584 |
|
|
lt_cv_dlopen_libs=
|
8585 |
|
|
lt_cv_dlopen_self=yes
|
8586 |
|
|
;;
|
8587 |
|
|
|
8588 |
|
|
mingw* | pw32*)
|
8589 |
|
|
lt_cv_dlopen="LoadLibrary"
|
8590 |
|
|
lt_cv_dlopen_libs=
|
8591 |
|
|
;;
|
8592 |
|
|
|
8593 |
|
|
cygwin*)
|
8594 |
|
|
lt_cv_dlopen="dlopen"
|
8595 |
|
|
lt_cv_dlopen_libs=
|
8596 |
|
|
;;
|
8597 |
|
|
|
8598 |
|
|
darwin*)
|
8599 |
|
|
# if libdl is installed we need to link against it
|
8600 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
8601 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
8602 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
8603 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8604 |
|
|
else
|
8605 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8606 |
|
|
LIBS="-ldl $LIBS"
|
8607 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8608 |
|
|
/* confdefs.h. */
|
8609 |
|
|
_ACEOF
|
8610 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8611 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8612 |
|
|
/* end confdefs.h. */
|
8613 |
|
|
|
8614 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8615 |
|
|
Use char because int might match the return type of a GCC
|
8616 |
|
|
builtin and then its argument prototype would still apply. */
|
8617 |
|
|
#ifdef __cplusplus
|
8618 |
|
|
extern "C"
|
8619 |
|
|
#endif
|
8620 |
|
|
char dlopen ();
|
8621 |
|
|
int
|
8622 |
|
|
main ()
|
8623 |
|
|
{
|
8624 |
|
|
return dlopen ();
|
8625 |
|
|
;
|
8626 |
|
|
return 0;
|
8627 |
|
|
}
|
8628 |
|
|
_ACEOF
|
8629 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8630 |
|
|
if { (ac_try="$ac_link"
|
8631 |
|
|
case "(($ac_try" in
|
8632 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8633 |
|
|
*) ac_try_echo=$ac_try;;
|
8634 |
|
|
esac
|
8635 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8636 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8637 |
|
|
ac_status=$?
|
8638 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8639 |
|
|
rm -f conftest.er1
|
8640 |
|
|
cat conftest.err >&5
|
8641 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8642 |
|
|
(exit $ac_status); } && {
|
8643 |
|
|
test -z "$ac_c_werror_flag" ||
|
8644 |
|
|
test ! -s conftest.err
|
8645 |
|
|
} && test -s conftest$ac_exeext &&
|
8646 |
|
|
$as_test_x conftest$ac_exeext; then
|
8647 |
|
|
ac_cv_lib_dl_dlopen=yes
|
8648 |
|
|
else
|
8649 |
|
|
echo "$as_me: failed program was:" >&5
|
8650 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8651 |
|
|
|
8652 |
|
|
ac_cv_lib_dl_dlopen=no
|
8653 |
|
|
fi
|
8654 |
|
|
|
8655 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8656 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8657 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
8658 |
|
|
fi
|
8659 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
8660 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
8661 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then
|
8662 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
8663 |
|
|
else
|
8664 |
|
|
|
8665 |
|
|
lt_cv_dlopen="dyld"
|
8666 |
|
|
lt_cv_dlopen_libs=
|
8667 |
|
|
lt_cv_dlopen_self=yes
|
8668 |
|
|
|
8669 |
|
|
fi
|
8670 |
|
|
|
8671 |
|
|
;;
|
8672 |
|
|
|
8673 |
|
|
*)
|
8674 |
|
|
{ echo "$as_me:$LINENO: checking for shl_load" >&5
|
8675 |
|
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
|
8676 |
|
|
if test "${ac_cv_func_shl_load+set}" = set; then
|
8677 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8678 |
|
|
else
|
8679 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8680 |
|
|
/* confdefs.h. */
|
8681 |
|
|
_ACEOF
|
8682 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8683 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8684 |
|
|
/* end confdefs.h. */
|
8685 |
|
|
/* Define shl_load to an innocuous variant, in case declares shl_load.
|
8686 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
8687 |
|
|
#define shl_load innocuous_shl_load
|
8688 |
|
|
|
8689 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
8690 |
|
|
which can conflict with char shl_load (); below.
|
8691 |
|
|
Prefer to if __STDC__ is defined, since
|
8692 |
|
|
exists even on freestanding compilers. */
|
8693 |
|
|
|
8694 |
|
|
#ifdef __STDC__
|
8695 |
|
|
# include
|
8696 |
|
|
#else
|
8697 |
|
|
# include
|
8698 |
|
|
#endif
|
8699 |
|
|
|
8700 |
|
|
#undef shl_load
|
8701 |
|
|
|
8702 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8703 |
|
|
Use char because int might match the return type of a GCC
|
8704 |
|
|
builtin and then its argument prototype would still apply. */
|
8705 |
|
|
#ifdef __cplusplus
|
8706 |
|
|
extern "C"
|
8707 |
|
|
#endif
|
8708 |
|
|
char shl_load ();
|
8709 |
|
|
/* The GNU C library defines this for functions which it implements
|
8710 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
8711 |
|
|
something starting with __ and the normal name is an alias. */
|
8712 |
|
|
#if defined __stub_shl_load || defined __stub___shl_load
|
8713 |
|
|
choke me
|
8714 |
|
|
#endif
|
8715 |
|
|
|
8716 |
|
|
int
|
8717 |
|
|
main ()
|
8718 |
|
|
{
|
8719 |
|
|
return shl_load ();
|
8720 |
|
|
;
|
8721 |
|
|
return 0;
|
8722 |
|
|
}
|
8723 |
|
|
_ACEOF
|
8724 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8725 |
|
|
if { (ac_try="$ac_link"
|
8726 |
|
|
case "(($ac_try" in
|
8727 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8728 |
|
|
*) ac_try_echo=$ac_try;;
|
8729 |
|
|
esac
|
8730 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8731 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8732 |
|
|
ac_status=$?
|
8733 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8734 |
|
|
rm -f conftest.er1
|
8735 |
|
|
cat conftest.err >&5
|
8736 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8737 |
|
|
(exit $ac_status); } && {
|
8738 |
|
|
test -z "$ac_c_werror_flag" ||
|
8739 |
|
|
test ! -s conftest.err
|
8740 |
|
|
} && test -s conftest$ac_exeext &&
|
8741 |
|
|
$as_test_x conftest$ac_exeext; then
|
8742 |
|
|
ac_cv_func_shl_load=yes
|
8743 |
|
|
else
|
8744 |
|
|
echo "$as_me: failed program was:" >&5
|
8745 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8746 |
|
|
|
8747 |
|
|
ac_cv_func_shl_load=no
|
8748 |
|
|
fi
|
8749 |
|
|
|
8750 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8751 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8752 |
|
|
fi
|
8753 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
8754 |
|
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
|
8755 |
|
|
if test $ac_cv_func_shl_load = yes; then
|
8756 |
|
|
lt_cv_dlopen="shl_load"
|
8757 |
|
|
else
|
8758 |
|
|
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
8759 |
|
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
|
8760 |
|
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
8761 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8762 |
|
|
else
|
8763 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8764 |
|
|
LIBS="-ldld $LIBS"
|
8765 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8766 |
|
|
/* confdefs.h. */
|
8767 |
|
|
_ACEOF
|
8768 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8769 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8770 |
|
|
/* end confdefs.h. */
|
8771 |
|
|
|
8772 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8773 |
|
|
Use char because int might match the return type of a GCC
|
8774 |
|
|
builtin and then its argument prototype would still apply. */
|
8775 |
|
|
#ifdef __cplusplus
|
8776 |
|
|
extern "C"
|
8777 |
|
|
#endif
|
8778 |
|
|
char shl_load ();
|
8779 |
|
|
int
|
8780 |
|
|
main ()
|
8781 |
|
|
{
|
8782 |
|
|
return shl_load ();
|
8783 |
|
|
;
|
8784 |
|
|
return 0;
|
8785 |
|
|
}
|
8786 |
|
|
_ACEOF
|
8787 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8788 |
|
|
if { (ac_try="$ac_link"
|
8789 |
|
|
case "(($ac_try" in
|
8790 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8791 |
|
|
*) ac_try_echo=$ac_try;;
|
8792 |
|
|
esac
|
8793 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8794 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8795 |
|
|
ac_status=$?
|
8796 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8797 |
|
|
rm -f conftest.er1
|
8798 |
|
|
cat conftest.err >&5
|
8799 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8800 |
|
|
(exit $ac_status); } && {
|
8801 |
|
|
test -z "$ac_c_werror_flag" ||
|
8802 |
|
|
test ! -s conftest.err
|
8803 |
|
|
} && test -s conftest$ac_exeext &&
|
8804 |
|
|
$as_test_x conftest$ac_exeext; then
|
8805 |
|
|
ac_cv_lib_dld_shl_load=yes
|
8806 |
|
|
else
|
8807 |
|
|
echo "$as_me: failed program was:" >&5
|
8808 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8809 |
|
|
|
8810 |
|
|
ac_cv_lib_dld_shl_load=no
|
8811 |
|
|
fi
|
8812 |
|
|
|
8813 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8814 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8815 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
8816 |
|
|
fi
|
8817 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
8818 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
|
8819 |
|
|
if test $ac_cv_lib_dld_shl_load = yes; then
|
8820 |
|
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
8821 |
|
|
else
|
8822 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen" >&5
|
8823 |
|
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
|
8824 |
|
|
if test "${ac_cv_func_dlopen+set}" = set; then
|
8825 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8826 |
|
|
else
|
8827 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8828 |
|
|
/* confdefs.h. */
|
8829 |
|
|
_ACEOF
|
8830 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8831 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8832 |
|
|
/* end confdefs.h. */
|
8833 |
|
|
/* Define dlopen to an innocuous variant, in case declares dlopen.
|
8834 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
8835 |
|
|
#define dlopen innocuous_dlopen
|
8836 |
|
|
|
8837 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
8838 |
|
|
which can conflict with char dlopen (); below.
|
8839 |
|
|
Prefer to if __STDC__ is defined, since
|
8840 |
|
|
exists even on freestanding compilers. */
|
8841 |
|
|
|
8842 |
|
|
#ifdef __STDC__
|
8843 |
|
|
# include
|
8844 |
|
|
#else
|
8845 |
|
|
# include
|
8846 |
|
|
#endif
|
8847 |
|
|
|
8848 |
|
|
#undef dlopen
|
8849 |
|
|
|
8850 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8851 |
|
|
Use char because int might match the return type of a GCC
|
8852 |
|
|
builtin and then its argument prototype would still apply. */
|
8853 |
|
|
#ifdef __cplusplus
|
8854 |
|
|
extern "C"
|
8855 |
|
|
#endif
|
8856 |
|
|
char dlopen ();
|
8857 |
|
|
/* The GNU C library defines this for functions which it implements
|
8858 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
8859 |
|
|
something starting with __ and the normal name is an alias. */
|
8860 |
|
|
#if defined __stub_dlopen || defined __stub___dlopen
|
8861 |
|
|
choke me
|
8862 |
|
|
#endif
|
8863 |
|
|
|
8864 |
|
|
int
|
8865 |
|
|
main ()
|
8866 |
|
|
{
|
8867 |
|
|
return dlopen ();
|
8868 |
|
|
;
|
8869 |
|
|
return 0;
|
8870 |
|
|
}
|
8871 |
|
|
_ACEOF
|
8872 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8873 |
|
|
if { (ac_try="$ac_link"
|
8874 |
|
|
case "(($ac_try" in
|
8875 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8876 |
|
|
*) ac_try_echo=$ac_try;;
|
8877 |
|
|
esac
|
8878 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8879 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8880 |
|
|
ac_status=$?
|
8881 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8882 |
|
|
rm -f conftest.er1
|
8883 |
|
|
cat conftest.err >&5
|
8884 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8885 |
|
|
(exit $ac_status); } && {
|
8886 |
|
|
test -z "$ac_c_werror_flag" ||
|
8887 |
|
|
test ! -s conftest.err
|
8888 |
|
|
} && test -s conftest$ac_exeext &&
|
8889 |
|
|
$as_test_x conftest$ac_exeext; then
|
8890 |
|
|
ac_cv_func_dlopen=yes
|
8891 |
|
|
else
|
8892 |
|
|
echo "$as_me: failed program was:" >&5
|
8893 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8894 |
|
|
|
8895 |
|
|
ac_cv_func_dlopen=no
|
8896 |
|
|
fi
|
8897 |
|
|
|
8898 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8899 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8900 |
|
|
fi
|
8901 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
8902 |
|
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
|
8903 |
|
|
if test $ac_cv_func_dlopen = yes; then
|
8904 |
|
|
lt_cv_dlopen="dlopen"
|
8905 |
|
|
else
|
8906 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
8907 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
8908 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
8909 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8910 |
|
|
else
|
8911 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8912 |
|
|
LIBS="-ldl $LIBS"
|
8913 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8914 |
|
|
/* confdefs.h. */
|
8915 |
|
|
_ACEOF
|
8916 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8917 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8918 |
|
|
/* end confdefs.h. */
|
8919 |
|
|
|
8920 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8921 |
|
|
Use char because int might match the return type of a GCC
|
8922 |
|
|
builtin and then its argument prototype would still apply. */
|
8923 |
|
|
#ifdef __cplusplus
|
8924 |
|
|
extern "C"
|
8925 |
|
|
#endif
|
8926 |
|
|
char dlopen ();
|
8927 |
|
|
int
|
8928 |
|
|
main ()
|
8929 |
|
|
{
|
8930 |
|
|
return dlopen ();
|
8931 |
|
|
;
|
8932 |
|
|
return 0;
|
8933 |
|
|
}
|
8934 |
|
|
_ACEOF
|
8935 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8936 |
|
|
if { (ac_try="$ac_link"
|
8937 |
|
|
case "(($ac_try" in
|
8938 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
8939 |
|
|
*) ac_try_echo=$ac_try;;
|
8940 |
|
|
esac
|
8941 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
8942 |
|
|
(eval "$ac_link") 2>conftest.er1
|
8943 |
|
|
ac_status=$?
|
8944 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8945 |
|
|
rm -f conftest.er1
|
8946 |
|
|
cat conftest.err >&5
|
8947 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8948 |
|
|
(exit $ac_status); } && {
|
8949 |
|
|
test -z "$ac_c_werror_flag" ||
|
8950 |
|
|
test ! -s conftest.err
|
8951 |
|
|
} && test -s conftest$ac_exeext &&
|
8952 |
|
|
$as_test_x conftest$ac_exeext; then
|
8953 |
|
|
ac_cv_lib_dl_dlopen=yes
|
8954 |
|
|
else
|
8955 |
|
|
echo "$as_me: failed program was:" >&5
|
8956 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8957 |
|
|
|
8958 |
|
|
ac_cv_lib_dl_dlopen=no
|
8959 |
|
|
fi
|
8960 |
|
|
|
8961 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
8962 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8963 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
8964 |
|
|
fi
|
8965 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
8966 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
8967 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then
|
8968 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
8969 |
|
|
else
|
8970 |
|
|
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
8971 |
|
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
|
8972 |
|
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
8973 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8974 |
|
|
else
|
8975 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
8976 |
|
|
LIBS="-lsvld $LIBS"
|
8977 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8978 |
|
|
/* confdefs.h. */
|
8979 |
|
|
_ACEOF
|
8980 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8981 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8982 |
|
|
/* end confdefs.h. */
|
8983 |
|
|
|
8984 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
8985 |
|
|
Use char because int might match the return type of a GCC
|
8986 |
|
|
builtin and then its argument prototype would still apply. */
|
8987 |
|
|
#ifdef __cplusplus
|
8988 |
|
|
extern "C"
|
8989 |
|
|
#endif
|
8990 |
|
|
char dlopen ();
|
8991 |
|
|
int
|
8992 |
|
|
main ()
|
8993 |
|
|
{
|
8994 |
|
|
return dlopen ();
|
8995 |
|
|
;
|
8996 |
|
|
return 0;
|
8997 |
|
|
}
|
8998 |
|
|
_ACEOF
|
8999 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
9000 |
|
|
if { (ac_try="$ac_link"
|
9001 |
|
|
case "(($ac_try" in
|
9002 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
9003 |
|
|
*) ac_try_echo=$ac_try;;
|
9004 |
|
|
esac
|
9005 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
9006 |
|
|
(eval "$ac_link") 2>conftest.er1
|
9007 |
|
|
ac_status=$?
|
9008 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
9009 |
|
|
rm -f conftest.er1
|
9010 |
|
|
cat conftest.err >&5
|
9011 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9012 |
|
|
(exit $ac_status); } && {
|
9013 |
|
|
test -z "$ac_c_werror_flag" ||
|
9014 |
|
|
test ! -s conftest.err
|
9015 |
|
|
} && test -s conftest$ac_exeext &&
|
9016 |
|
|
$as_test_x conftest$ac_exeext; then
|
9017 |
|
|
ac_cv_lib_svld_dlopen=yes
|
9018 |
|
|
else
|
9019 |
|
|
echo "$as_me: failed program was:" >&5
|
9020 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
9021 |
|
|
|
9022 |
|
|
ac_cv_lib_svld_dlopen=no
|
9023 |
|
|
fi
|
9024 |
|
|
|
9025 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
9026 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
9027 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
9028 |
|
|
fi
|
9029 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
9030 |
|
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
|
9031 |
|
|
if test $ac_cv_lib_svld_dlopen = yes; then
|
9032 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
9033 |
|
|
else
|
9034 |
|
|
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
9035 |
|
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
|
9036 |
|
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
9037 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
9038 |
|
|
else
|
9039 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
9040 |
|
|
LIBS="-ldld $LIBS"
|
9041 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
9042 |
|
|
/* confdefs.h. */
|
9043 |
|
|
_ACEOF
|
9044 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
9045 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
9046 |
|
|
/* end confdefs.h. */
|
9047 |
|
|
|
9048 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
9049 |
|
|
Use char because int might match the return type of a GCC
|
9050 |
|
|
builtin and then its argument prototype would still apply. */
|
9051 |
|
|
#ifdef __cplusplus
|
9052 |
|
|
extern "C"
|
9053 |
|
|
#endif
|
9054 |
|
|
char dld_link ();
|
9055 |
|
|
int
|
9056 |
|
|
main ()
|
9057 |
|
|
{
|
9058 |
|
|
return dld_link ();
|
9059 |
|
|
;
|
9060 |
|
|
return 0;
|
9061 |
|
|
}
|
9062 |
|
|
_ACEOF
|
9063 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
9064 |
|
|
if { (ac_try="$ac_link"
|
9065 |
|
|
case "(($ac_try" in
|
9066 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
9067 |
|
|
*) ac_try_echo=$ac_try;;
|
9068 |
|
|
esac
|
9069 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
9070 |
|
|
(eval "$ac_link") 2>conftest.er1
|
9071 |
|
|
ac_status=$?
|
9072 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
9073 |
|
|
rm -f conftest.er1
|
9074 |
|
|
cat conftest.err >&5
|
9075 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9076 |
|
|
(exit $ac_status); } && {
|
9077 |
|
|
test -z "$ac_c_werror_flag" ||
|
9078 |
|
|
test ! -s conftest.err
|
9079 |
|
|
} && test -s conftest$ac_exeext &&
|
9080 |
|
|
$as_test_x conftest$ac_exeext; then
|
9081 |
|
|
ac_cv_lib_dld_dld_link=yes
|
9082 |
|
|
else
|
9083 |
|
|
echo "$as_me: failed program was:" >&5
|
9084 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
9085 |
|
|
|
9086 |
|
|
ac_cv_lib_dld_dld_link=no
|
9087 |
|
|
fi
|
9088 |
|
|
|
9089 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
9090 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
9091 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
9092 |
|
|
fi
|
9093 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
9094 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
|
9095 |
|
|
if test $ac_cv_lib_dld_dld_link = yes; then
|
9096 |
|
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
9097 |
|
|
fi
|
9098 |
|
|
|
9099 |
|
|
|
9100 |
|
|
fi
|
9101 |
|
|
|
9102 |
|
|
|
9103 |
|
|
fi
|
9104 |
|
|
|
9105 |
|
|
|
9106 |
|
|
fi
|
9107 |
|
|
|
9108 |
|
|
|
9109 |
|
|
fi
|
9110 |
|
|
|
9111 |
|
|
|
9112 |
|
|
fi
|
9113 |
|
|
|
9114 |
|
|
;;
|
9115 |
|
|
esac
|
9116 |
|
|
|
9117 |
|
|
if test "x$lt_cv_dlopen" != xno; then
|
9118 |
|
|
enable_dlopen=yes
|
9119 |
|
|
else
|
9120 |
|
|
enable_dlopen=no
|
9121 |
|
|
fi
|
9122 |
|
|
|
9123 |
|
|
case $lt_cv_dlopen in
|
9124 |
|
|
dlopen)
|
9125 |
|
|
save_CPPFLAGS="$CPPFLAGS"
|
9126 |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
9127 |
|
|
|
9128 |
|
|
save_LDFLAGS="$LDFLAGS"
|
9129 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
9130 |
|
|
|
9131 |
|
|
save_LIBS="$LIBS"
|
9132 |
|
|
LIBS="$lt_cv_dlopen_libs $LIBS"
|
9133 |
|
|
|
9134 |
|
|
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
9135 |
|
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
|
9136 |
|
|
if test "${lt_cv_dlopen_self+set}" = set; then
|
9137 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
9138 |
|
|
else
|
9139 |
|
|
if test "$cross_compiling" = yes; then :
|
9140 |
|
|
lt_cv_dlopen_self=cross
|
9141 |
|
|
else
|
9142 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
9143 |
|
|
lt_status=$lt_dlunknown
|
9144 |
|
|
cat > conftest.$ac_ext <
|
9145 |
|
|
#line __oline__ "configure"
|
9146 |
|
|
#include "confdefs.h"
|
9147 |
|
|
|
9148 |
|
|
#if HAVE_DLFCN_H
|
9149 |
|
|
#include
|
9150 |
|
|
#endif
|
9151 |
|
|
|
9152 |
|
|
#include
|
9153 |
|
|
|
9154 |
|
|
#ifdef RTLD_GLOBAL
|
9155 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
9156 |
|
|
#else
|
9157 |
|
|
# ifdef DL_GLOBAL
|
9158 |
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
9159 |
|
|
# else
|
9160 |
|
|
# define LT_DLGLOBAL 0
|
9161 |
|
|
# endif
|
9162 |
|
|
#endif
|
9163 |
|
|
|
9164 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
9165 |
|
|
find out it does not work in some platform. */
|
9166 |
|
|
#ifndef LT_DLLAZY_OR_NOW
|
9167 |
|
|
# ifdef RTLD_LAZY
|
9168 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
9169 |
|
|
# else
|
9170 |
|
|
# ifdef DL_LAZY
|
9171 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
9172 |
|
|
# else
|
9173 |
|
|
# ifdef RTLD_NOW
|
9174 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
9175 |
|
|
# else
|
9176 |
|
|
# ifdef DL_NOW
|
9177 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
9178 |
|
|
# else
|
9179 |
|
|
# define LT_DLLAZY_OR_NOW 0
|
9180 |
|
|
# endif
|
9181 |
|
|
# endif
|
9182 |
|
|
# endif
|
9183 |
|
|
# endif
|
9184 |
|
|
#endif
|
9185 |
|
|
|
9186 |
|
|
#ifdef __cplusplus
|
9187 |
|
|
extern "C" void exit (int);
|
9188 |
|
|
#endif
|
9189 |
|
|
|
9190 |
|
|
void fnord() { int i=42;}
|
9191 |
|
|
int main ()
|
9192 |
|
|
{
|
9193 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
9194 |
|
|
int status = $lt_dlunknown;
|
9195 |
|
|
|
9196 |
|
|
if (self)
|
9197 |
|
|
{
|
9198 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
9199 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
9200 |
|
|
/* dlclose (self); */
|
9201 |
|
|
}
|
9202 |
|
|
else
|
9203 |
|
|
puts (dlerror ());
|
9204 |
|
|
|
9205 |
|
|
exit (status);
|
9206 |
|
|
}
|
9207 |
|
|
EOF
|
9208 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
9209 |
|
|
(eval $ac_link) 2>&5
|
9210 |
|
|
ac_status=$?
|
9211 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9212 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
9213 |
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
9214 |
|
|
lt_status=$?
|
9215 |
|
|
case x$lt_status in
|
9216 |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
9217 |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
9218 |
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
9219 |
|
|
esac
|
9220 |
|
|
else :
|
9221 |
|
|
# compilation failed
|
9222 |
|
|
lt_cv_dlopen_self=no
|
9223 |
|
|
fi
|
9224 |
|
|
fi
|
9225 |
|
|
rm -fr conftest*
|
9226 |
|
|
|
9227 |
|
|
|
9228 |
|
|
fi
|
9229 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
9230 |
|
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
|
9231 |
|
|
|
9232 |
|
|
if test "x$lt_cv_dlopen_self" = xyes; then
|
9233 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
9234 |
|
|
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
9235 |
|
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
|
9236 |
|
|
if test "${lt_cv_dlopen_self_static+set}" = set; then
|
9237 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
9238 |
|
|
else
|
9239 |
|
|
if test "$cross_compiling" = yes; then :
|
9240 |
|
|
lt_cv_dlopen_self_static=cross
|
9241 |
|
|
else
|
9242 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
9243 |
|
|
lt_status=$lt_dlunknown
|
9244 |
|
|
cat > conftest.$ac_ext <
|
9245 |
|
|
#line __oline__ "configure"
|
9246 |
|
|
#include "confdefs.h"
|
9247 |
|
|
|
9248 |
|
|
#if HAVE_DLFCN_H
|
9249 |
|
|
#include
|
9250 |
|
|
#endif
|
9251 |
|
|
|
9252 |
|
|
#include
|
9253 |
|
|
|
9254 |
|
|
#ifdef RTLD_GLOBAL
|
9255 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
9256 |
|
|
#else
|
9257 |
|
|
# ifdef DL_GLOBAL
|
9258 |
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
9259 |
|
|
# else
|
9260 |
|
|
# define LT_DLGLOBAL 0
|
9261 |
|
|
# endif
|
9262 |
|
|
#endif
|
9263 |
|
|
|
9264 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
9265 |
|
|
find out it does not work in some platform. */
|
9266 |
|
|
#ifndef LT_DLLAZY_OR_NOW
|
9267 |
|
|
# ifdef RTLD_LAZY
|
9268 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
9269 |
|
|
# else
|
9270 |
|
|
# ifdef DL_LAZY
|
9271 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
9272 |
|
|
# else
|
9273 |
|
|
# ifdef RTLD_NOW
|
9274 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
9275 |
|
|
# else
|
9276 |
|
|
# ifdef DL_NOW
|
9277 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
9278 |
|
|
# else
|
9279 |
|
|
# define LT_DLLAZY_OR_NOW 0
|
9280 |
|
|
# endif
|
9281 |
|
|
# endif
|
9282 |
|
|
# endif
|
9283 |
|
|
# endif
|
9284 |
|
|
#endif
|
9285 |
|
|
|
9286 |
|
|
#ifdef __cplusplus
|
9287 |
|
|
extern "C" void exit (int);
|
9288 |
|
|
#endif
|
9289 |
|
|
|
9290 |
|
|
void fnord() { int i=42;}
|
9291 |
|
|
int main ()
|
9292 |
|
|
{
|
9293 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
9294 |
|
|
int status = $lt_dlunknown;
|
9295 |
|
|
|
9296 |
|
|
if (self)
|
9297 |
|
|
{
|
9298 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
9299 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
9300 |
|
|
/* dlclose (self); */
|
9301 |
|
|
}
|
9302 |
|
|
else
|
9303 |
|
|
puts (dlerror ());
|
9304 |
|
|
|
9305 |
|
|
exit (status);
|
9306 |
|
|
}
|
9307 |
|
|
EOF
|
9308 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
9309 |
|
|
(eval $ac_link) 2>&5
|
9310 |
|
|
ac_status=$?
|
9311 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9312 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
9313 |
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
9314 |
|
|
lt_status=$?
|
9315 |
|
|
case x$lt_status in
|
9316 |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
9317 |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
9318 |
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
9319 |
|
|
esac
|
9320 |
|
|
else :
|
9321 |
|
|
# compilation failed
|
9322 |
|
|
lt_cv_dlopen_self_static=no
|
9323 |
|
|
fi
|
9324 |
|
|
fi
|
9325 |
|
|
rm -fr conftest*
|
9326 |
|
|
|
9327 |
|
|
|
9328 |
|
|
fi
|
9329 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
9330 |
|
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
|
9331 |
|
|
fi
|
9332 |
|
|
|
9333 |
|
|
CPPFLAGS="$save_CPPFLAGS"
|
9334 |
|
|
LDFLAGS="$save_LDFLAGS"
|
9335 |
|
|
LIBS="$save_LIBS"
|
9336 |
|
|
;;
|
9337 |
|
|
esac
|
9338 |
|
|
|
9339 |
|
|
case $lt_cv_dlopen_self in
|
9340 |
|
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
9341 |
|
|
*) enable_dlopen_self=unknown ;;
|
9342 |
|
|
esac
|
9343 |
|
|
|
9344 |
|
|
case $lt_cv_dlopen_self_static in
|
9345 |
|
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
9346 |
|
|
*) enable_dlopen_self_static=unknown ;;
|
9347 |
|
|
esac
|
9348 |
|
|
fi
|
9349 |
|
|
|
9350 |
|
|
|
9351 |
|
|
# Report which library types will actually be built
|
9352 |
|
|
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
9353 |
|
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
|
9354 |
|
|
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
9355 |
|
|
echo "${ECHO_T}$can_build_shared" >&6; }
|
9356 |
|
|
|
9357 |
|
|
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
9358 |
|
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
|
9359 |
|
|
test "$can_build_shared" = "no" && enable_shared=no
|
9360 |
|
|
|
9361 |
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
9362 |
|
|
# are all built from PIC.
|
9363 |
|
|
case $host_os in
|
9364 |
|
|
aix3*)
|
9365 |
|
|
test "$enable_shared" = yes && enable_static=no
|
9366 |
|
|
if test -n "$RANLIB"; then
|
9367 |
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
9368 |
|
|
postinstall_cmds='$RANLIB $lib'
|
9369 |
|
|
fi
|
9370 |
|
|
;;
|
9371 |
|
|
|
9372 |
|
|
aix4* | aix5*)
|
9373 |
|
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
9374 |
|
|
test "$enable_shared" = yes && enable_static=no
|
9375 |
|
|
fi
|
9376 |
|
|
;;
|
9377 |
|
|
esac
|
9378 |
|
|
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
|
9379 |
|
|
echo "${ECHO_T}$enable_shared" >&6; }
|
9380 |
|
|
|
9381 |
|
|
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
9382 |
|
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
|
9383 |
|
|
# Make sure either enable_shared or enable_static is yes.
|
9384 |
|
|
test "$enable_shared" = yes || enable_static=yes
|
9385 |
|
|
{ echo "$as_me:$LINENO: result: $enable_static" >&5
|
9386 |
|
|
echo "${ECHO_T}$enable_static" >&6; }
|
9387 |
|
|
|
9388 |
|
|
# The else clause should only fire when bootstrapping the
|
9389 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
9390 |
|
|
# with your package, and you will get complaints that there are
|
9391 |
|
|
# no rules to generate ltmain.sh.
|
9392 |
|
|
if test -f "$ltmain"; then
|
9393 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
9394 |
|
|
# without removal of \ escapes.
|
9395 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
9396 |
|
|
setopt NO_GLOB_SUBST
|
9397 |
|
|
fi
|
9398 |
|
|
# Now quote all the things that may contain metacharacters while being
|
9399 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
9400 |
|
|
# variables and quote the copies for generation of the libtool script.
|
9401 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
9402 |
|
|
SED SHELL STRIP \
|
9403 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
9404 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
9405 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
9406 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
9407 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
9408 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
9409 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
9410 |
|
|
compiler \
|
9411 |
|
|
CC \
|
9412 |
|
|
LD \
|
9413 |
|
|
lt_prog_compiler_wl \
|
9414 |
|
|
lt_prog_compiler_pic \
|
9415 |
|
|
lt_prog_compiler_static \
|
9416 |
|
|
lt_prog_compiler_no_builtin_flag \
|
9417 |
|
|
export_dynamic_flag_spec \
|
9418 |
|
|
thread_safe_flag_spec \
|
9419 |
|
|
whole_archive_flag_spec \
|
9420 |
|
|
enable_shared_with_static_runtimes \
|
9421 |
|
|
old_archive_cmds \
|
9422 |
|
|
old_archive_from_new_cmds \
|
9423 |
|
|
predep_objects \
|
9424 |
|
|
postdep_objects \
|
9425 |
|
|
predeps \
|
9426 |
|
|
postdeps \
|
9427 |
|
|
compiler_lib_search_path \
|
9428 |
|
|
archive_cmds \
|
9429 |
|
|
archive_expsym_cmds \
|
9430 |
|
|
postinstall_cmds \
|
9431 |
|
|
postuninstall_cmds \
|
9432 |
|
|
old_archive_from_expsyms_cmds \
|
9433 |
|
|
allow_undefined_flag \
|
9434 |
|
|
no_undefined_flag \
|
9435 |
|
|
export_symbols_cmds \
|
9436 |
|
|
hardcode_libdir_flag_spec \
|
9437 |
|
|
hardcode_libdir_flag_spec_ld \
|
9438 |
|
|
hardcode_libdir_separator \
|
9439 |
|
|
hardcode_automatic \
|
9440 |
|
|
module_cmds \
|
9441 |
|
|
module_expsym_cmds \
|
9442 |
|
|
lt_cv_prog_compiler_c_o \
|
9443 |
|
|
fix_srcfile_path \
|
9444 |
|
|
exclude_expsyms \
|
9445 |
|
|
include_expsyms; do
|
9446 |
|
|
|
9447 |
|
|
case $var in
|
9448 |
|
|
old_archive_cmds | \
|
9449 |
|
|
old_archive_from_new_cmds | \
|
9450 |
|
|
archive_cmds | \
|
9451 |
|
|
archive_expsym_cmds | \
|
9452 |
|
|
module_cmds | \
|
9453 |
|
|
module_expsym_cmds | \
|
9454 |
|
|
old_archive_from_expsyms_cmds | \
|
9455 |
|
|
export_symbols_cmds | \
|
9456 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
9457 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
9458 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
9459 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
9460 |
|
|
# Double-quote double-evaled strings.
|
9461 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
9462 |
|
|
;;
|
9463 |
|
|
*)
|
9464 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
9465 |
|
|
;;
|
9466 |
|
|
esac
|
9467 |
|
|
done
|
9468 |
|
|
|
9469 |
|
|
case $lt_echo in
|
9470 |
|
|
*'\$0 --fallback-echo"')
|
9471 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
9472 |
|
|
;;
|
9473 |
|
|
esac
|
9474 |
|
|
|
9475 |
|
|
cfgfile="${ofile}T"
|
9476 |
|
|
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
9477 |
|
|
$rm -f "$cfgfile"
|
9478 |
|
|
{ echo "$as_me:$LINENO: creating $ofile" >&5
|
9479 |
|
|
echo "$as_me: creating $ofile" >&6;}
|
9480 |
|
|
|
9481 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
9482 |
|
|
#! $SHELL
|
9483 |
|
|
|
9484 |
|
|
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
9485 |
|
|
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
9486 |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
9487 |
|
|
#
|
9488 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
9489 |
|
|
# Free Software Foundation, Inc.
|
9490 |
|
|
#
|
9491 |
|
|
# This file is part of GNU Libtool:
|
9492 |
|
|
# Originally by Gordon Matzigkeit , 1996
|
9493 |
|
|
#
|
9494 |
|
|
# This program is free software; you can redistribute it and/or modify
|
9495 |
|
|
# it under the terms of the GNU General Public License as published by
|
9496 |
|
|
# the Free Software Foundation; either version 2 of the License, or
|
9497 |
|
|
# (at your option) any later version.
|
9498 |
|
|
#
|
9499 |
|
|
# This program is distributed in the hope that it will be useful, but
|
9500 |
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
9501 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
9502 |
|
|
# General Public License for more details.
|
9503 |
|
|
#
|
9504 |
|
|
# You should have received a copy of the GNU General Public License
|
9505 |
|
|
# along with this program; if not, write to the Free Software
|
9506 |
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
9507 |
|
|
#
|
9508 |
|
|
# As a special exception to the GNU General Public License, if you
|
9509 |
|
|
# distribute this file as part of a program that contains a
|
9510 |
|
|
# configuration script generated by Autoconf, you may include it under
|
9511 |
|
|
# the same distribution terms that you use for the rest of that program.
|
9512 |
|
|
|
9513 |
|
|
# A sed program that does not truncate output.
|
9514 |
|
|
SED=$lt_SED
|
9515 |
|
|
|
9516 |
|
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
9517 |
|
|
Xsed="$SED -e 1s/^X//"
|
9518 |
|
|
|
9519 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
9520 |
|
|
# if CDPATH is set.
|
9521 |
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
9522 |
|
|
|
9523 |
|
|
# The names of the tagged configurations supported by this script.
|
9524 |
|
|
available_tags=
|
9525 |
|
|
|
9526 |
|
|
# ### BEGIN LIBTOOL CONFIG
|
9527 |
|
|
|
9528 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
9529 |
|
|
|
9530 |
|
|
# Shell to use when invoking shell scripts.
|
9531 |
|
|
SHELL=$lt_SHELL
|
9532 |
|
|
|
9533 |
|
|
# Whether or not to build shared libraries.
|
9534 |
|
|
build_libtool_libs=$enable_shared
|
9535 |
|
|
|
9536 |
|
|
# Whether or not to build static libraries.
|
9537 |
|
|
build_old_libs=$enable_static
|
9538 |
|
|
|
9539 |
|
|
# Whether or not to add -lc for building shared libraries.
|
9540 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc
|
9541 |
|
|
|
9542 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
9543 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
9544 |
|
|
|
9545 |
|
|
# Whether or not to optimize for fast installation.
|
9546 |
|
|
fast_install=$enable_fast_install
|
9547 |
|
|
|
9548 |
|
|
# The host system.
|
9549 |
|
|
host_alias=$host_alias
|
9550 |
|
|
host=$host
|
9551 |
|
|
host_os=$host_os
|
9552 |
|
|
|
9553 |
|
|
# The build system.
|
9554 |
|
|
build_alias=$build_alias
|
9555 |
|
|
build=$build
|
9556 |
|
|
build_os=$build_os
|
9557 |
|
|
|
9558 |
|
|
# An echo program that does not interpret backslashes.
|
9559 |
|
|
echo=$lt_echo
|
9560 |
|
|
|
9561 |
|
|
# The archiver.
|
9562 |
|
|
AR=$lt_AR
|
9563 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
9564 |
|
|
|
9565 |
|
|
# A C compiler.
|
9566 |
|
|
LTCC=$lt_LTCC
|
9567 |
|
|
|
9568 |
|
|
# LTCC compiler flags.
|
9569 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
9570 |
|
|
|
9571 |
|
|
# A language-specific compiler.
|
9572 |
|
|
CC=$lt_compiler
|
9573 |
|
|
|
9574 |
|
|
# Is the compiler the GNU C compiler?
|
9575 |
|
|
with_gcc=$GCC
|
9576 |
|
|
|
9577 |
|
|
# An ERE matcher.
|
9578 |
|
|
EGREP=$lt_EGREP
|
9579 |
|
|
|
9580 |
|
|
# The linker used to build libraries.
|
9581 |
|
|
LD=$lt_LD
|
9582 |
|
|
|
9583 |
|
|
# Whether we need hard or soft links.
|
9584 |
|
|
LN_S=$lt_LN_S
|
9585 |
|
|
|
9586 |
|
|
# A BSD-compatible nm program.
|
9587 |
|
|
NM=$lt_NM
|
9588 |
|
|
|
9589 |
|
|
# A symbol stripping program
|
9590 |
|
|
STRIP=$lt_STRIP
|
9591 |
|
|
|
9592 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
9593 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
9594 |
|
|
|
9595 |
|
|
# Used on cygwin: DLL creation program.
|
9596 |
|
|
DLLTOOL="$DLLTOOL"
|
9597 |
|
|
|
9598 |
|
|
# Used on cygwin: object dumper.
|
9599 |
|
|
OBJDUMP="$OBJDUMP"
|
9600 |
|
|
|
9601 |
|
|
# Used on cygwin: assembler.
|
9602 |
|
|
AS="$AS"
|
9603 |
|
|
|
9604 |
|
|
# The name of the directory that contains temporary libtool files.
|
9605 |
|
|
objdir=$objdir
|
9606 |
|
|
|
9607 |
|
|
# How to create reloadable object files.
|
9608 |
|
|
reload_flag=$lt_reload_flag
|
9609 |
|
|
reload_cmds=$lt_reload_cmds
|
9610 |
|
|
|
9611 |
|
|
# How to pass a linker flag through the compiler.
|
9612 |
|
|
wl=$lt_lt_prog_compiler_wl
|
9613 |
|
|
|
9614 |
|
|
# Object file suffix (normally "o").
|
9615 |
|
|
objext="$ac_objext"
|
9616 |
|
|
|
9617 |
|
|
# Old archive suffix (normally "a").
|
9618 |
|
|
libext="$libext"
|
9619 |
|
|
|
9620 |
|
|
# Shared library suffix (normally ".so").
|
9621 |
|
|
shrext_cmds='$shrext_cmds'
|
9622 |
|
|
|
9623 |
|
|
# Executable file suffix (normally "").
|
9624 |
|
|
exeext="$exeext"
|
9625 |
|
|
|
9626 |
|
|
# Additional compiler flags for building library objects.
|
9627 |
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
9628 |
|
|
pic_mode=$pic_mode
|
9629 |
|
|
|
9630 |
|
|
# What is the maximum length of a command?
|
9631 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
9632 |
|
|
|
9633 |
|
|
# Does compiler simultaneously support -c and -o options?
|
9634 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
9635 |
|
|
|
9636 |
|
|
# Must we lock files when doing compilation?
|
9637 |
|
|
need_locks=$lt_need_locks
|
9638 |
|
|
|
9639 |
|
|
# Do we need the lib prefix for modules?
|
9640 |
|
|
need_lib_prefix=$need_lib_prefix
|
9641 |
|
|
|
9642 |
|
|
# Do we need a version for libraries?
|
9643 |
|
|
need_version=$need_version
|
9644 |
|
|
|
9645 |
|
|
# Whether dlopen is supported.
|
9646 |
|
|
dlopen_support=$enable_dlopen
|
9647 |
|
|
|
9648 |
|
|
# Whether dlopen of programs is supported.
|
9649 |
|
|
dlopen_self=$enable_dlopen_self
|
9650 |
|
|
|
9651 |
|
|
# Whether dlopen of statically linked programs is supported.
|
9652 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
9653 |
|
|
|
9654 |
|
|
# Compiler flag to prevent dynamic linking.
|
9655 |
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
9656 |
|
|
|
9657 |
|
|
# Compiler flag to turn off builtin functions.
|
9658 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
9659 |
|
|
|
9660 |
|
|
# Compiler flag to allow reflexive dlopens.
|
9661 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
9662 |
|
|
|
9663 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
9664 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
9665 |
|
|
|
9666 |
|
|
# Compiler flag to generate thread-safe objects.
|
9667 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec
|
9668 |
|
|
|
9669 |
|
|
# Library versioning type.
|
9670 |
|
|
version_type=$version_type
|
9671 |
|
|
|
9672 |
|
|
# Format of library name prefix.
|
9673 |
|
|
libname_spec=$lt_libname_spec
|
9674 |
|
|
|
9675 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
9676 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
9677 |
|
|
library_names_spec=$lt_library_names_spec
|
9678 |
|
|
|
9679 |
|
|
# The coded name of the library, if different from the real name.
|
9680 |
|
|
soname_spec=$lt_soname_spec
|
9681 |
|
|
|
9682 |
|
|
# Commands used to build and install an old-style archive.
|
9683 |
|
|
RANLIB=$lt_RANLIB
|
9684 |
|
|
old_archive_cmds=$lt_old_archive_cmds
|
9685 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
9686 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
9687 |
|
|
|
9688 |
|
|
# Create an old-style archive from a shared archive.
|
9689 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
9690 |
|
|
|
9691 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
9692 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
9693 |
|
|
|
9694 |
|
|
# Commands used to build and install a shared archive.
|
9695 |
|
|
archive_cmds=$lt_archive_cmds
|
9696 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds
|
9697 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
9698 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
9699 |
|
|
|
9700 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
9701 |
|
|
module_cmds=$lt_module_cmds
|
9702 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds
|
9703 |
|
|
|
9704 |
|
|
# Commands to strip libraries.
|
9705 |
|
|
old_striplib=$lt_old_striplib
|
9706 |
|
|
striplib=$lt_striplib
|
9707 |
|
|
|
9708 |
|
|
# Dependencies to place before the objects being linked to create a
|
9709 |
|
|
# shared library.
|
9710 |
|
|
predep_objects=$lt_predep_objects
|
9711 |
|
|
|
9712 |
|
|
# Dependencies to place after the objects being linked to create a
|
9713 |
|
|
# shared library.
|
9714 |
|
|
postdep_objects=$lt_postdep_objects
|
9715 |
|
|
|
9716 |
|
|
# Dependencies to place before the objects being linked to create a
|
9717 |
|
|
# shared library.
|
9718 |
|
|
predeps=$lt_predeps
|
9719 |
|
|
|
9720 |
|
|
# Dependencies to place after the objects being linked to create a
|
9721 |
|
|
# shared library.
|
9722 |
|
|
postdeps=$lt_postdeps
|
9723 |
|
|
|
9724 |
|
|
# The library search path used internally by the compiler when linking
|
9725 |
|
|
# a shared library.
|
9726 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path
|
9727 |
|
|
|
9728 |
|
|
# Method to check whether dependent libraries are shared objects.
|
9729 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
9730 |
|
|
|
9731 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
9732 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
9733 |
|
|
|
9734 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
9735 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag
|
9736 |
|
|
|
9737 |
|
|
# Flag that forces no undefined symbols.
|
9738 |
|
|
no_undefined_flag=$lt_no_undefined_flag
|
9739 |
|
|
|
9740 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
9741 |
|
|
finish_cmds=$lt_finish_cmds
|
9742 |
|
|
|
9743 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
9744 |
|
|
finish_eval=$lt_finish_eval
|
9745 |
|
|
|
9746 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
9747 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
9748 |
|
|
|
9749 |
|
|
# Transform the output of nm in a proper C declaration
|
9750 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
9751 |
|
|
|
9752 |
|
|
# Transform the output of nm in a C name address pair
|
9753 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
9754 |
|
|
|
9755 |
|
|
# This is the shared library runtime path variable.
|
9756 |
|
|
runpath_var=$runpath_var
|
9757 |
|
|
|
9758 |
|
|
# This is the shared library path variable.
|
9759 |
|
|
shlibpath_var=$shlibpath_var
|
9760 |
|
|
|
9761 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
9762 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
9763 |
|
|
|
9764 |
|
|
# How to hardcode a shared library path into an executable.
|
9765 |
|
|
hardcode_action=$hardcode_action
|
9766 |
|
|
|
9767 |
|
|
# Whether we should hardcode library paths into libraries.
|
9768 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
9769 |
|
|
|
9770 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
9771 |
|
|
# This must work even if \$libdir does not exist.
|
9772 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
9773 |
|
|
|
9774 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
9775 |
|
|
# a binary during linking. This must work even if \$libdir does
|
9776 |
|
|
# not exist.
|
9777 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
9778 |
|
|
|
9779 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
9780 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
9781 |
|
|
|
9782 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
9783 |
|
|
# resulting binary.
|
9784 |
|
|
hardcode_direct=$hardcode_direct
|
9785 |
|
|
|
9786 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
9787 |
|
|
# resulting binary.
|
9788 |
|
|
hardcode_minus_L=$hardcode_minus_L
|
9789 |
|
|
|
9790 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
9791 |
|
|
# the resulting binary.
|
9792 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var
|
9793 |
|
|
|
9794 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
9795 |
|
|
# and all subsequent libraries and executables linked against it.
|
9796 |
|
|
hardcode_automatic=$hardcode_automatic
|
9797 |
|
|
|
9798 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
9799 |
|
|
# restored at relink time.
|
9800 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
9801 |
|
|
|
9802 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
9803 |
|
|
link_all_deplibs=$link_all_deplibs
|
9804 |
|
|
|
9805 |
|
|
# Compile-time system search path for libraries
|
9806 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
9807 |
|
|
|
9808 |
|
|
# Run-time system search path for libraries
|
9809 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
9810 |
|
|
|
9811 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
9812 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
9813 |
|
|
|
9814 |
|
|
# Set to yes if exported symbols are required.
|
9815 |
|
|
always_export_symbols=$always_export_symbols
|
9816 |
|
|
|
9817 |
|
|
# The commands to list exported symbols.
|
9818 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds
|
9819 |
|
|
|
9820 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
9821 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
9822 |
|
|
|
9823 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
9824 |
|
|
exclude_expsyms=$lt_exclude_expsyms
|
9825 |
|
|
|
9826 |
|
|
# Symbols that must always be exported.
|
9827 |
|
|
include_expsyms=$lt_include_expsyms
|
9828 |
|
|
|
9829 |
|
|
# ### END LIBTOOL CONFIG
|
9830 |
|
|
|
9831 |
|
|
__EOF__
|
9832 |
|
|
|
9833 |
|
|
|
9834 |
|
|
case $host_os in
|
9835 |
|
|
aix3*)
|
9836 |
|
|
cat <<\EOF >> "$cfgfile"
|
9837 |
|
|
|
9838 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
9839 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
9840 |
|
|
# vanish in a puff of smoke.
|
9841 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then
|
9842 |
|
|
COLLECT_NAMES=
|
9843 |
|
|
export COLLECT_NAMES
|
9844 |
|
|
fi
|
9845 |
|
|
EOF
|
9846 |
|
|
;;
|
9847 |
|
|
esac
|
9848 |
|
|
|
9849 |
|
|
# We use sed instead of cat because bash on DJGPP gets confused if
|
9850 |
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
9851 |
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
9852 |
|
|
# is reportedly fixed, but why not run on old versions too?
|
9853 |
|
|
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
9854 |
|
|
|
9855 |
|
|
mv -f "$cfgfile" "$ofile" || \
|
9856 |
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
9857 |
|
|
chmod +x "$ofile"
|
9858 |
|
|
|
9859 |
|
|
else
|
9860 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
9861 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
9862 |
|
|
# libtool script then.
|
9863 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
9864 |
|
|
if test -f "$ltmain_in"; then
|
9865 |
|
|
test -f Makefile && make "$ltmain"
|
9866 |
|
|
fi
|
9867 |
|
|
fi
|
9868 |
|
|
|
9869 |
|
|
|
9870 |
|
|
ac_ext=c
|
9871 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
9872 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
9873 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
9874 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
9875 |
|
|
|
9876 |
|
|
CC="$lt_save_CC"
|
9877 |
|
|
|
9878 |
|
|
|
9879 |
|
|
# Check whether --with-tags was given.
|
9880 |
|
|
if test "${with_tags+set}" = set; then
|
9881 |
|
|
withval=$with_tags; tagnames="$withval"
|
9882 |
|
|
fi
|
9883 |
|
|
|
9884 |
|
|
|
9885 |
|
|
if test -f "$ltmain" && test -n "$tagnames"; then
|
9886 |
|
|
if test ! -f "${ofile}"; then
|
9887 |
|
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
|
9888 |
|
|
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
|
9889 |
|
|
fi
|
9890 |
|
|
|
9891 |
|
|
if test -z "$LTCC"; then
|
9892 |
|
|
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
9893 |
|
|
if test -z "$LTCC"; then
|
9894 |
|
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
|
9895 |
|
|
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
|
9896 |
|
|
else
|
9897 |
|
|
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
|
9898 |
|
|
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
|
9899 |
|
|
fi
|
9900 |
|
|
fi
|
9901 |
|
|
if test -z "$LTCFLAGS"; then
|
9902 |
|
|
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
9903 |
|
|
fi
|
9904 |
|
|
|
9905 |
|
|
# Extract list of available tagged configurations in $ofile.
|
9906 |
|
|
# Note that this assumes the entire list is on one line.
|
9907 |
|
|
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
9908 |
|
|
|
9909 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
9910 |
|
|
for tagname in $tagnames; do
|
9911 |
|
|
IFS="$lt_save_ifs"
|
9912 |
|
|
# Check whether tagname contains only valid characters
|
9913 |
|
|
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
|
9914 |
|
|
"") ;;
|
9915 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
|
9916 |
|
|
echo "$as_me: error: invalid tag name: $tagname" >&2;}
|
9917 |
|
|
{ (exit 1); exit 1; }; }
|
9918 |
|
|
;;
|
9919 |
|
|
esac
|
9920 |
|
|
|
9921 |
|
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
9922 |
|
|
then
|
9923 |
|
|
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
|
9924 |
|
|
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
|
9925 |
|
|
{ (exit 1); exit 1; }; }
|
9926 |
|
|
fi
|
9927 |
|
|
|
9928 |
|
|
# Update the list of available tags.
|
9929 |
|
|
if test -n "$tagname"; then
|
9930 |
|
|
echo appending configuration tag \"$tagname\" to $ofile
|
9931 |
|
|
|
9932 |
|
|
case $tagname in
|
9933 |
|
|
CXX)
|
9934 |
|
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
9935 |
|
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
9936 |
|
|
(test "X$CXX" != "Xg++"))) ; then
|
9937 |
|
|
ac_ext=cpp
|
9938 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
9939 |
|
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
9940 |
|
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
9941 |
|
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
9942 |
|
|
|
9943 |
|
|
|
9944 |
|
|
|
9945 |
|
|
|
9946 |
|
|
archive_cmds_need_lc_CXX=no
|
9947 |
|
|
allow_undefined_flag_CXX=
|
9948 |
|
|
always_export_symbols_CXX=no
|
9949 |
|
|
archive_expsym_cmds_CXX=
|
9950 |
|
|
export_dynamic_flag_spec_CXX=
|
9951 |
|
|
hardcode_direct_CXX=no
|
9952 |
|
|
hardcode_libdir_flag_spec_CXX=
|
9953 |
|
|
hardcode_libdir_flag_spec_ld_CXX=
|
9954 |
|
|
hardcode_libdir_separator_CXX=
|
9955 |
|
|
hardcode_minus_L_CXX=no
|
9956 |
|
|
hardcode_shlibpath_var_CXX=unsupported
|
9957 |
|
|
hardcode_automatic_CXX=no
|
9958 |
|
|
module_cmds_CXX=
|
9959 |
|
|
module_expsym_cmds_CXX=
|
9960 |
|
|
link_all_deplibs_CXX=unknown
|
9961 |
|
|
old_archive_cmds_CXX=$old_archive_cmds
|
9962 |
|
|
no_undefined_flag_CXX=
|
9963 |
|
|
whole_archive_flag_spec_CXX=
|
9964 |
|
|
enable_shared_with_static_runtimes_CXX=no
|
9965 |
|
|
|
9966 |
|
|
# Dependencies to place before and after the object being linked:
|
9967 |
|
|
predep_objects_CXX=
|
9968 |
|
|
postdep_objects_CXX=
|
9969 |
|
|
predeps_CXX=
|
9970 |
|
|
postdeps_CXX=
|
9971 |
|
|
compiler_lib_search_path_CXX=
|
9972 |
|
|
|
9973 |
|
|
# Source file extension for C++ test sources.
|
9974 |
|
|
ac_ext=cpp
|
9975 |
|
|
|
9976 |
|
|
# Object file extension for compiled C++ test sources.
|
9977 |
|
|
objext=o
|
9978 |
|
|
objext_CXX=$objext
|
9979 |
|
|
|
9980 |
|
|
# Code to be used in simple compile tests
|
9981 |
|
|
lt_simple_compile_test_code="int some_variable = 0;"
|
9982 |
|
|
|
9983 |
|
|
# Code to be used in simple link tests
|
9984 |
|
|
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
|
9985 |
|
|
|
9986 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
9987 |
|
|
|
9988 |
|
|
# If no C compiler was specified, use CC.
|
9989 |
|
|
LTCC=${LTCC-"$CC"}
|
9990 |
|
|
|
9991 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
9992 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
9993 |
|
|
|
9994 |
|
|
# Allow CC to be a program name with arguments.
|
9995 |
|
|
compiler=$CC
|
9996 |
|
|
|
9997 |
|
|
|
9998 |
|
|
# save warnings/boilerplate of simple test code
|
9999 |
|
|
ac_outfile=conftest.$ac_objext
|
10000 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
10001 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
10002 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
10003 |
|
|
$rm conftest*
|
10004 |
|
|
|
10005 |
|
|
ac_outfile=conftest.$ac_objext
|
10006 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
10007 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
10008 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
10009 |
|
|
$rm conftest*
|
10010 |
|
|
|
10011 |
|
|
|
10012 |
|
|
# Allow CC to be a program name with arguments.
|
10013 |
|
|
lt_save_CC=$CC
|
10014 |
|
|
lt_save_LD=$LD
|
10015 |
|
|
lt_save_GCC=$GCC
|
10016 |
|
|
GCC=$GXX
|
10017 |
|
|
lt_save_with_gnu_ld=$with_gnu_ld
|
10018 |
|
|
lt_save_path_LD=$lt_cv_path_LD
|
10019 |
|
|
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
10020 |
|
|
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
10021 |
|
|
else
|
10022 |
|
|
$as_unset lt_cv_prog_gnu_ld
|
10023 |
|
|
fi
|
10024 |
|
|
if test -n "${lt_cv_path_LDCXX+set}"; then
|
10025 |
|
|
lt_cv_path_LD=$lt_cv_path_LDCXX
|
10026 |
|
|
else
|
10027 |
|
|
$as_unset lt_cv_path_LD
|
10028 |
|
|
fi
|
10029 |
|
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
10030 |
|
|
CC=${CXX-"c++"}
|
10031 |
|
|
compiler=$CC
|
10032 |
|
|
compiler_CXX=$CC
|
10033 |
|
|
for cc_temp in $compiler""; do
|
10034 |
|
|
case $cc_temp in
|
10035 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
10036 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
10037 |
|
|
\-*) ;;
|
10038 |
|
|
*) break;;
|
10039 |
|
|
esac
|
10040 |
|
|
done
|
10041 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
10042 |
|
|
|
10043 |
|
|
|
10044 |
|
|
# We don't want -fno-exception wen compiling C++ code, so set the
|
10045 |
|
|
# no_builtin_flag separately
|
10046 |
|
|
if test "$GXX" = yes; then
|
10047 |
|
|
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
|
10048 |
|
|
else
|
10049 |
|
|
lt_prog_compiler_no_builtin_flag_CXX=
|
10050 |
|
|
fi
|
10051 |
|
|
|
10052 |
|
|
if test "$GXX" = yes; then
|
10053 |
|
|
# Set up default GNU C++ configuration
|
10054 |
|
|
|
10055 |
|
|
|
10056 |
|
|
# Check whether --with-gnu-ld was given.
|
10057 |
|
|
if test "${with_gnu_ld+set}" = set; then
|
10058 |
|
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
10059 |
|
|
else
|
10060 |
|
|
with_gnu_ld=no
|
10061 |
|
|
fi
|
10062 |
|
|
|
10063 |
|
|
ac_prog=ld
|
10064 |
|
|
if test "$GCC" = yes; then
|
10065 |
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
10066 |
|
|
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
10067 |
|
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
|
10068 |
|
|
case $host in
|
10069 |
|
|
*-*-mingw*)
|
10070 |
|
|
# gcc leaves a trailing carriage return which upsets mingw
|
10071 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
10072 |
|
|
*)
|
10073 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
10074 |
|
|
esac
|
10075 |
|
|
case $ac_prog in
|
10076 |
|
|
# Accept absolute paths.
|
10077 |
|
|
[\\/]* | ?:[\\/]*)
|
10078 |
|
|
re_direlt='/[^/][^/]*/\.\./'
|
10079 |
|
|
# Canonicalize the pathname of ld
|
10080 |
|
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
10081 |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
10082 |
|
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
10083 |
|
|
done
|
10084 |
|
|
test -z "$LD" && LD="$ac_prog"
|
10085 |
|
|
;;
|
10086 |
|
|
"")
|
10087 |
|
|
# If it fails, then pretend we aren't using GCC.
|
10088 |
|
|
ac_prog=ld
|
10089 |
|
|
;;
|
10090 |
|
|
*)
|
10091 |
|
|
# If it is relative, then search for the first ld in PATH.
|
10092 |
|
|
with_gnu_ld=unknown
|
10093 |
|
|
;;
|
10094 |
|
|
esac
|
10095 |
|
|
elif test "$with_gnu_ld" = yes; then
|
10096 |
|
|
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
|
10097 |
|
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
|
10098 |
|
|
else
|
10099 |
|
|
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
10100 |
|
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
|
10101 |
|
|
fi
|
10102 |
|
|
if test "${lt_cv_path_LD+set}" = set; then
|
10103 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10104 |
|
|
else
|
10105 |
|
|
if test -z "$LD"; then
|
10106 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
10107 |
|
|
for ac_dir in $PATH; do
|
10108 |
|
|
IFS="$lt_save_ifs"
|
10109 |
|
|
test -z "$ac_dir" && ac_dir=.
|
10110 |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
10111 |
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
10112 |
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
10113 |
|
|
# but apparently some variants of GNU ld only accept -v.
|
10114 |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
10115 |
|
|
case `"$lt_cv_path_LD" -v 2>&1
|
10116 |
|
|
*GNU* | *'with BFD'*)
|
10117 |
|
|
test "$with_gnu_ld" != no && break
|
10118 |
|
|
;;
|
10119 |
|
|
*)
|
10120 |
|
|
test "$with_gnu_ld" != yes && break
|
10121 |
|
|
;;
|
10122 |
|
|
esac
|
10123 |
|
|
fi
|
10124 |
|
|
done
|
10125 |
|
|
IFS="$lt_save_ifs"
|
10126 |
|
|
else
|
10127 |
|
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
10128 |
|
|
fi
|
10129 |
|
|
fi
|
10130 |
|
|
|
10131 |
|
|
LD="$lt_cv_path_LD"
|
10132 |
|
|
if test -n "$LD"; then
|
10133 |
|
|
{ echo "$as_me:$LINENO: result: $LD" >&5
|
10134 |
|
|
echo "${ECHO_T}$LD" >&6; }
|
10135 |
|
|
else
|
10136 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
10137 |
|
|
echo "${ECHO_T}no" >&6; }
|
10138 |
|
|
fi
|
10139 |
|
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
10140 |
|
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
10141 |
|
|
{ (exit 1); exit 1; }; }
|
10142 |
|
|
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
10143 |
|
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
|
10144 |
|
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
10145 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10146 |
|
|
else
|
10147 |
|
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
10148 |
|
|
case `$LD -v 2>&1
|
10149 |
|
|
*GNU* | *'with BFD'*)
|
10150 |
|
|
lt_cv_prog_gnu_ld=yes
|
10151 |
|
|
;;
|
10152 |
|
|
*)
|
10153 |
|
|
lt_cv_prog_gnu_ld=no
|
10154 |
|
|
;;
|
10155 |
|
|
esac
|
10156 |
|
|
fi
|
10157 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
10158 |
|
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
|
10159 |
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
10160 |
|
|
|
10161 |
|
|
|
10162 |
|
|
|
10163 |
|
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the
|
10164 |
|
|
# archiving commands below assume that GNU ld is being used.
|
10165 |
|
|
if test "$with_gnu_ld" = yes; then
|
10166 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10167 |
|
|
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
10168 |
|
|
|
10169 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
10170 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10171 |
|
|
|
10172 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
10173 |
|
|
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
10174 |
|
|
# investigate it a little bit more. (MM)
|
10175 |
|
|
wlarc='${wl}'
|
10176 |
|
|
|
10177 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
10178 |
|
|
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
10179 |
|
|
grep 'no-whole-archive' > /dev/null; then
|
10180 |
|
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
10181 |
|
|
else
|
10182 |
|
|
whole_archive_flag_spec_CXX=
|
10183 |
|
|
fi
|
10184 |
|
|
else
|
10185 |
|
|
with_gnu_ld=no
|
10186 |
|
|
wlarc=
|
10187 |
|
|
|
10188 |
|
|
# A generic and very simple default shared library creation
|
10189 |
|
|
# command for GNU C++ for the case where it uses the native
|
10190 |
|
|
# linker, instead of GNU ld. If possible, this setting should
|
10191 |
|
|
# overridden to take advantage of the native linker features on
|
10192 |
|
|
# the platform it is being used on.
|
10193 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
10194 |
|
|
fi
|
10195 |
|
|
|
10196 |
|
|
# Commands to make compiler produce verbose output that lists
|
10197 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10198 |
|
|
# linking a shared library.
|
10199 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
10200 |
|
|
|
10201 |
|
|
else
|
10202 |
|
|
GXX=no
|
10203 |
|
|
with_gnu_ld=no
|
10204 |
|
|
wlarc=
|
10205 |
|
|
fi
|
10206 |
|
|
|
10207 |
|
|
# PORTME: fill in a description of your system's C++ link characteristics
|
10208 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
10209 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
10210 |
|
|
ld_shlibs_CXX=yes
|
10211 |
|
|
case $host_os in
|
10212 |
|
|
aix3*)
|
10213 |
|
|
# FIXME: insert proper C++ library support
|
10214 |
|
|
ld_shlibs_CXX=no
|
10215 |
|
|
;;
|
10216 |
|
|
aix4* | aix5*)
|
10217 |
|
|
if test "$host_cpu" = ia64; then
|
10218 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
10219 |
|
|
# have to do anything special.
|
10220 |
|
|
aix_use_runtimelinking=no
|
10221 |
|
|
exp_sym_flag='-Bexport'
|
10222 |
|
|
no_entry_flag=""
|
10223 |
|
|
else
|
10224 |
|
|
aix_use_runtimelinking=no
|
10225 |
|
|
|
10226 |
|
|
# Test if we are trying to use run time linking or normal
|
10227 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
10228 |
|
|
# need to do runtime linking.
|
10229 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
10230 |
|
|
for ld_flag in $LDFLAGS; do
|
10231 |
|
|
case $ld_flag in
|
10232 |
|
|
*-brtl*)
|
10233 |
|
|
aix_use_runtimelinking=yes
|
10234 |
|
|
break
|
10235 |
|
|
;;
|
10236 |
|
|
esac
|
10237 |
|
|
done
|
10238 |
|
|
;;
|
10239 |
|
|
esac
|
10240 |
|
|
|
10241 |
|
|
exp_sym_flag='-bexport'
|
10242 |
|
|
no_entry_flag='-bnoentry'
|
10243 |
|
|
fi
|
10244 |
|
|
|
10245 |
|
|
# When large executables or shared objects are built, AIX ld can
|
10246 |
|
|
# have problems creating the table of contents. If linking a library
|
10247 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
10248 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
10249 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
10250 |
|
|
|
10251 |
|
|
archive_cmds_CXX=''
|
10252 |
|
|
hardcode_direct_CXX=yes
|
10253 |
|
|
hardcode_libdir_separator_CXX=':'
|
10254 |
|
|
link_all_deplibs_CXX=yes
|
10255 |
|
|
|
10256 |
|
|
if test "$GXX" = yes; then
|
10257 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
10258 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
10259 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
10260 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
10261 |
|
|
if test -f "$collect2name" && \
|
10262 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
10263 |
|
|
then
|
10264 |
|
|
# We have reworked collect2
|
10265 |
|
|
:
|
10266 |
|
|
else
|
10267 |
|
|
# We have old collect2
|
10268 |
|
|
hardcode_direct_CXX=unsupported
|
10269 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
10270 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
10271 |
|
|
# to unsupported forces relinking
|
10272 |
|
|
hardcode_minus_L_CXX=yes
|
10273 |
|
|
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
10274 |
|
|
hardcode_libdir_separator_CXX=
|
10275 |
|
|
fi
|
10276 |
|
|
;;
|
10277 |
|
|
esac
|
10278 |
|
|
shared_flag='-shared'
|
10279 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
10280 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
10281 |
|
|
fi
|
10282 |
|
|
else
|
10283 |
|
|
# not using gcc
|
10284 |
|
|
if test "$host_cpu" = ia64; then
|
10285 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
10286 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
10287 |
|
|
shared_flag='-G'
|
10288 |
|
|
else
|
10289 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
10290 |
|
|
shared_flag='${wl}-G'
|
10291 |
|
|
else
|
10292 |
|
|
shared_flag='${wl}-bM:SRE'
|
10293 |
|
|
fi
|
10294 |
|
|
fi
|
10295 |
|
|
fi
|
10296 |
|
|
|
10297 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
10298 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
10299 |
|
|
always_export_symbols_CXX=yes
|
10300 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
10301 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
10302 |
|
|
# -berok will link without error, but may produce a broken library.
|
10303 |
|
|
allow_undefined_flag_CXX='-berok'
|
10304 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
10305 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10306 |
|
|
/* confdefs.h. */
|
10307 |
|
|
_ACEOF
|
10308 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10309 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10310 |
|
|
/* end confdefs.h. */
|
10311 |
|
|
|
10312 |
|
|
int
|
10313 |
|
|
main ()
|
10314 |
|
|
{
|
10315 |
|
|
|
10316 |
|
|
;
|
10317 |
|
|
return 0;
|
10318 |
|
|
}
|
10319 |
|
|
_ACEOF
|
10320 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10321 |
|
|
if { (ac_try="$ac_link"
|
10322 |
|
|
case "(($ac_try" in
|
10323 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
10324 |
|
|
*) ac_try_echo=$ac_try;;
|
10325 |
|
|
esac
|
10326 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
10327 |
|
|
(eval "$ac_link") 2>conftest.er1
|
10328 |
|
|
ac_status=$?
|
10329 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10330 |
|
|
rm -f conftest.er1
|
10331 |
|
|
cat conftest.err >&5
|
10332 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10333 |
|
|
(exit $ac_status); } && {
|
10334 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
10335 |
|
|
test ! -s conftest.err
|
10336 |
|
|
} && test -s conftest$ac_exeext &&
|
10337 |
|
|
$as_test_x conftest$ac_exeext; then
|
10338 |
|
|
|
10339 |
|
|
lt_aix_libpath_sed='
|
10340 |
|
|
/Import File Strings/,/^$/ {
|
10341 |
|
|
/^0/ {
|
10342 |
|
|
s/^0 *\(.*\)$/\1/
|
10343 |
|
|
p
|
10344 |
|
|
}
|
10345 |
|
|
}'
|
10346 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10347 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
10348 |
|
|
if test -z "$aix_libpath"; then
|
10349 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10350 |
|
|
fi
|
10351 |
|
|
else
|
10352 |
|
|
echo "$as_me: failed program was:" >&5
|
10353 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10354 |
|
|
|
10355 |
|
|
|
10356 |
|
|
fi
|
10357 |
|
|
|
10358 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
10359 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10360 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
10361 |
|
|
|
10362 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
10363 |
|
|
|
10364 |
|
|
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
10365 |
|
|
else
|
10366 |
|
|
if test "$host_cpu" = ia64; then
|
10367 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
|
10368 |
|
|
allow_undefined_flag_CXX="-z nodefs"
|
10369 |
|
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
10370 |
|
|
else
|
10371 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
10372 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10373 |
|
|
/* confdefs.h. */
|
10374 |
|
|
_ACEOF
|
10375 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10376 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10377 |
|
|
/* end confdefs.h. */
|
10378 |
|
|
|
10379 |
|
|
int
|
10380 |
|
|
main ()
|
10381 |
|
|
{
|
10382 |
|
|
|
10383 |
|
|
;
|
10384 |
|
|
return 0;
|
10385 |
|
|
}
|
10386 |
|
|
_ACEOF
|
10387 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10388 |
|
|
if { (ac_try="$ac_link"
|
10389 |
|
|
case "(($ac_try" in
|
10390 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
10391 |
|
|
*) ac_try_echo=$ac_try;;
|
10392 |
|
|
esac
|
10393 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
10394 |
|
|
(eval "$ac_link") 2>conftest.er1
|
10395 |
|
|
ac_status=$?
|
10396 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10397 |
|
|
rm -f conftest.er1
|
10398 |
|
|
cat conftest.err >&5
|
10399 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10400 |
|
|
(exit $ac_status); } && {
|
10401 |
|
|
test -z "$ac_cxx_werror_flag" ||
|
10402 |
|
|
test ! -s conftest.err
|
10403 |
|
|
} && test -s conftest$ac_exeext &&
|
10404 |
|
|
$as_test_x conftest$ac_exeext; then
|
10405 |
|
|
|
10406 |
|
|
lt_aix_libpath_sed='
|
10407 |
|
|
/Import File Strings/,/^$/ {
|
10408 |
|
|
/^0/ {
|
10409 |
|
|
s/^0 *\(.*\)$/\1/
|
10410 |
|
|
p
|
10411 |
|
|
}
|
10412 |
|
|
}'
|
10413 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10414 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
10415 |
|
|
if test -z "$aix_libpath"; then
|
10416 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
10417 |
|
|
fi
|
10418 |
|
|
else
|
10419 |
|
|
echo "$as_me: failed program was:" >&5
|
10420 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10421 |
|
|
|
10422 |
|
|
|
10423 |
|
|
fi
|
10424 |
|
|
|
10425 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
10426 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10427 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
10428 |
|
|
|
10429 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
10430 |
|
|
# Warning - without using the other run time loading flags,
|
10431 |
|
|
# -berok will link without error, but may produce a broken library.
|
10432 |
|
|
no_undefined_flag_CXX=' ${wl}-bernotok'
|
10433 |
|
|
allow_undefined_flag_CXX=' ${wl}-berok'
|
10434 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
10435 |
|
|
whole_archive_flag_spec_CXX='$convenience'
|
10436 |
|
|
archive_cmds_need_lc_CXX=yes
|
10437 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
10438 |
|
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
10439 |
|
|
fi
|
10440 |
|
|
fi
|
10441 |
|
|
;;
|
10442 |
|
|
|
10443 |
|
|
beos*)
|
10444 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
10445 |
|
|
allow_undefined_flag_CXX=unsupported
|
10446 |
|
|
# Joseph Beckenbach says some releases of gcc
|
10447 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
10448 |
|
|
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10449 |
|
|
else
|
10450 |
|
|
ld_shlibs_CXX=no
|
10451 |
|
|
fi
|
10452 |
|
|
;;
|
10453 |
|
|
|
10454 |
|
|
chorus*)
|
10455 |
|
|
case $cc_basename in
|
10456 |
|
|
*)
|
10457 |
|
|
# FIXME: insert proper C++ library support
|
10458 |
|
|
ld_shlibs_CXX=no
|
10459 |
|
|
;;
|
10460 |
|
|
esac
|
10461 |
|
|
;;
|
10462 |
|
|
|
10463 |
|
|
cygwin* | mingw* | pw32*)
|
10464 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
10465 |
|
|
# as there is no search path for DLLs.
|
10466 |
|
|
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
10467 |
|
|
allow_undefined_flag_CXX=unsupported
|
10468 |
|
|
always_export_symbols_CXX=no
|
10469 |
|
|
enable_shared_with_static_runtimes_CXX=yes
|
10470 |
|
|
|
10471 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
10472 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
10473 |
|
|
# If the export-symbols file already is a .def file (1st line
|
10474 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
10475 |
|
|
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
10476 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
10477 |
|
|
else
|
10478 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
10479 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
10480 |
|
|
fi~
|
10481 |
|
|
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
10482 |
|
|
else
|
10483 |
|
|
ld_shlibs_CXX=no
|
10484 |
|
|
fi
|
10485 |
|
|
;;
|
10486 |
|
|
darwin* | rhapsody*)
|
10487 |
|
|
case $host_os in
|
10488 |
|
|
rhapsody* | darwin1.[012])
|
10489 |
|
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
|
10490 |
|
|
;;
|
10491 |
|
|
*) # Darwin 1.3 on
|
10492 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
10493 |
|
|
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
10494 |
|
|
else
|
10495 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
10496 |
|
|
10.[012])
|
10497 |
|
|
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
10498 |
|
|
;;
|
10499 |
|
|
10.*)
|
10500 |
|
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
|
10501 |
|
|
;;
|
10502 |
|
|
esac
|
10503 |
|
|
fi
|
10504 |
|
|
;;
|
10505 |
|
|
esac
|
10506 |
|
|
archive_cmds_need_lc_CXX=no
|
10507 |
|
|
hardcode_direct_CXX=no
|
10508 |
|
|
hardcode_automatic_CXX=yes
|
10509 |
|
|
hardcode_shlibpath_var_CXX=unsupported
|
10510 |
|
|
whole_archive_flag_spec_CXX=''
|
10511 |
|
|
link_all_deplibs_CXX=yes
|
10512 |
|
|
|
10513 |
|
|
if test "$GXX" = yes ; then
|
10514 |
|
|
lt_int_apple_cc_single_mod=no
|
10515 |
|
|
output_verbose_link_cmd='echo'
|
10516 |
|
|
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
10517 |
|
|
lt_int_apple_cc_single_mod=yes
|
10518 |
|
|
fi
|
10519 |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
10520 |
|
|
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
10521 |
|
|
else
|
10522 |
|
|
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
10523 |
|
|
fi
|
10524 |
|
|
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
10525 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
10526 |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
10527 |
|
|
archive_expsym_cmds_CXX='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}'
|
10528 |
|
|
else
|
10529 |
|
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
10530 |
|
|
fi
|
10531 |
|
|
module_expsym_cmds_CXX='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}'
|
10532 |
|
|
else
|
10533 |
|
|
case $cc_basename in
|
10534 |
|
|
xlc*)
|
10535 |
|
|
output_verbose_link_cmd='echo'
|
10536 |
|
|
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
10537 |
|
|
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
10538 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
10539 |
|
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
10540 |
|
|
module_expsym_cmds_CXX='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}'
|
10541 |
|
|
;;
|
10542 |
|
|
*)
|
10543 |
|
|
ld_shlibs_CXX=no
|
10544 |
|
|
;;
|
10545 |
|
|
esac
|
10546 |
|
|
fi
|
10547 |
|
|
;;
|
10548 |
|
|
|
10549 |
|
|
dgux*)
|
10550 |
|
|
case $cc_basename in
|
10551 |
|
|
ec++*)
|
10552 |
|
|
# FIXME: insert proper C++ library support
|
10553 |
|
|
ld_shlibs_CXX=no
|
10554 |
|
|
;;
|
10555 |
|
|
ghcx*)
|
10556 |
|
|
# Green Hills C++ Compiler
|
10557 |
|
|
# FIXME: insert proper C++ library support
|
10558 |
|
|
ld_shlibs_CXX=no
|
10559 |
|
|
;;
|
10560 |
|
|
*)
|
10561 |
|
|
# FIXME: insert proper C++ library support
|
10562 |
|
|
ld_shlibs_CXX=no
|
10563 |
|
|
;;
|
10564 |
|
|
esac
|
10565 |
|
|
;;
|
10566 |
|
|
freebsd[12]*)
|
10567 |
|
|
# C++ shared libraries reported to be fairly broken before switch to ELF
|
10568 |
|
|
ld_shlibs_CXX=no
|
10569 |
|
|
;;
|
10570 |
|
|
freebsd-elf*)
|
10571 |
|
|
archive_cmds_need_lc_CXX=no
|
10572 |
|
|
;;
|
10573 |
|
|
freebsd* | dragonfly*)
|
10574 |
|
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
10575 |
|
|
# conventions
|
10576 |
|
|
ld_shlibs_CXX=yes
|
10577 |
|
|
;;
|
10578 |
|
|
gnu*)
|
10579 |
|
|
;;
|
10580 |
|
|
hpux9*)
|
10581 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
10582 |
|
|
hardcode_libdir_separator_CXX=:
|
10583 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10584 |
|
|
hardcode_direct_CXX=yes
|
10585 |
|
|
hardcode_minus_L_CXX=yes # Not in the search PATH,
|
10586 |
|
|
# but as the default
|
10587 |
|
|
# location of the library.
|
10588 |
|
|
|
10589 |
|
|
case $cc_basename in
|
10590 |
|
|
CC*)
|
10591 |
|
|
# FIXME: insert proper C++ library support
|
10592 |
|
|
ld_shlibs_CXX=no
|
10593 |
|
|
;;
|
10594 |
|
|
aCC*)
|
10595 |
|
|
archive_cmds_CXX='$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'
|
10596 |
|
|
# Commands to make compiler produce verbose output that lists
|
10597 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10598 |
|
|
# linking a shared library.
|
10599 |
|
|
#
|
10600 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10601 |
|
|
# explicitly linking system object files so we need to strip them
|
10602 |
|
|
# from the output so that they don't get included in the library
|
10603 |
|
|
# dependencies.
|
10604 |
|
|
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'
|
10605 |
|
|
;;
|
10606 |
|
|
*)
|
10607 |
|
|
if test "$GXX" = yes; then
|
10608 |
|
|
archive_cmds_CXX='$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'
|
10609 |
|
|
else
|
10610 |
|
|
# FIXME: insert proper C++ library support
|
10611 |
|
|
ld_shlibs_CXX=no
|
10612 |
|
|
fi
|
10613 |
|
|
;;
|
10614 |
|
|
esac
|
10615 |
|
|
;;
|
10616 |
|
|
hpux10*|hpux11*)
|
10617 |
|
|
if test $with_gnu_ld = no; then
|
10618 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
10619 |
|
|
hardcode_libdir_separator_CXX=:
|
10620 |
|
|
|
10621 |
|
|
case $host_cpu in
|
10622 |
|
|
hppa*64*|ia64*) ;;
|
10623 |
|
|
*)
|
10624 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10625 |
|
|
;;
|
10626 |
|
|
esac
|
10627 |
|
|
fi
|
10628 |
|
|
case $host_cpu in
|
10629 |
|
|
hppa*64*|ia64*)
|
10630 |
|
|
hardcode_direct_CXX=no
|
10631 |
|
|
hardcode_shlibpath_var_CXX=no
|
10632 |
|
|
;;
|
10633 |
|
|
*)
|
10634 |
|
|
hardcode_direct_CXX=yes
|
10635 |
|
|
hardcode_minus_L_CXX=yes # Not in the search PATH,
|
10636 |
|
|
# but as the default
|
10637 |
|
|
# location of the library.
|
10638 |
|
|
;;
|
10639 |
|
|
esac
|
10640 |
|
|
|
10641 |
|
|
case $cc_basename in
|
10642 |
|
|
CC*)
|
10643 |
|
|
# FIXME: insert proper C++ library support
|
10644 |
|
|
ld_shlibs_CXX=no
|
10645 |
|
|
;;
|
10646 |
|
|
aCC*)
|
10647 |
|
|
case $host_cpu in
|
10648 |
|
|
hppa*64*)
|
10649 |
|
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10650 |
|
|
;;
|
10651 |
|
|
ia64*)
|
10652 |
|
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10653 |
|
|
;;
|
10654 |
|
|
*)
|
10655 |
|
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10656 |
|
|
;;
|
10657 |
|
|
esac
|
10658 |
|
|
# Commands to make compiler produce verbose output that lists
|
10659 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10660 |
|
|
# linking a shared library.
|
10661 |
|
|
#
|
10662 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10663 |
|
|
# explicitly linking system object files so we need to strip them
|
10664 |
|
|
# from the output so that they don't get included in the library
|
10665 |
|
|
# dependencies.
|
10666 |
|
|
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'
|
10667 |
|
|
;;
|
10668 |
|
|
*)
|
10669 |
|
|
if test "$GXX" = yes; then
|
10670 |
|
|
if test $with_gnu_ld = no; then
|
10671 |
|
|
case $host_cpu in
|
10672 |
|
|
hppa*64*)
|
10673 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10674 |
|
|
;;
|
10675 |
|
|
ia64*)
|
10676 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10677 |
|
|
;;
|
10678 |
|
|
*)
|
10679 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10680 |
|
|
;;
|
10681 |
|
|
esac
|
10682 |
|
|
fi
|
10683 |
|
|
else
|
10684 |
|
|
# FIXME: insert proper C++ library support
|
10685 |
|
|
ld_shlibs_CXX=no
|
10686 |
|
|
fi
|
10687 |
|
|
;;
|
10688 |
|
|
esac
|
10689 |
|
|
;;
|
10690 |
|
|
interix[3-9]*)
|
10691 |
|
|
hardcode_direct_CXX=no
|
10692 |
|
|
hardcode_shlibpath_var_CXX=no
|
10693 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10694 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10695 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
10696 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
10697 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
10698 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
10699 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
10700 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
10701 |
|
|
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
10702 |
|
|
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
10703 |
|
|
;;
|
10704 |
|
|
irix5* | irix6*)
|
10705 |
|
|
case $cc_basename in
|
10706 |
|
|
CC*)
|
10707 |
|
|
# SGI C++
|
10708 |
|
|
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
10709 |
|
|
|
10710 |
|
|
# Archives containing C++ object files must be created using
|
10711 |
|
|
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
10712 |
|
|
# necessary to make sure instantiated templates are included
|
10713 |
|
|
# in the archive.
|
10714 |
|
|
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
10715 |
|
|
;;
|
10716 |
|
|
*)
|
10717 |
|
|
if test "$GXX" = yes; then
|
10718 |
|
|
if test "$with_gnu_ld" = no; then
|
10719 |
|
|
archive_cmds_CXX='$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}${output_objdir}/so_locations -o $lib'
|
10720 |
|
|
else
|
10721 |
|
|
archive_cmds_CXX='$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'
|
10722 |
|
|
fi
|
10723 |
|
|
fi
|
10724 |
|
|
link_all_deplibs_CXX=yes
|
10725 |
|
|
;;
|
10726 |
|
|
esac
|
10727 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
10728 |
|
|
hardcode_libdir_separator_CXX=:
|
10729 |
|
|
;;
|
10730 |
|
|
linux* | k*bsd*-gnu)
|
10731 |
|
|
case $cc_basename in
|
10732 |
|
|
KCC*)
|
10733 |
|
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
10734 |
|
|
|
10735 |
|
|
# KCC will only create a shared library if the output file
|
10736 |
|
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
10737 |
|
|
# to its proper name (with version) after linking.
|
10738 |
|
|
archive_cmds_CXX='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'
|
10739 |
|
|
archive_expsym_cmds_CXX='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'
|
10740 |
|
|
# Commands to make compiler produce verbose output that lists
|
10741 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10742 |
|
|
# linking a shared library.
|
10743 |
|
|
#
|
10744 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10745 |
|
|
# explicitly linking system object files so we need to strip them
|
10746 |
|
|
# from the output so that they don't get included in the library
|
10747 |
|
|
# dependencies.
|
10748 |
|
|
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'
|
10749 |
|
|
|
10750 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
|
10751 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10752 |
|
|
|
10753 |
|
|
# Archives containing C++ object files must be created using
|
10754 |
|
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
10755 |
|
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
10756 |
|
|
;;
|
10757 |
|
|
icpc*)
|
10758 |
|
|
# Intel C++
|
10759 |
|
|
with_gnu_ld=yes
|
10760 |
|
|
# version 8.0 and above of icpc choke on multiply defined symbols
|
10761 |
|
|
# if we add $predep_objects and $postdep_objects, however 7.1 and
|
10762 |
|
|
# earlier do not add the objects themselves.
|
10763 |
|
|
case `$CC -V 2>&1` in
|
10764 |
|
|
*"Version 7."*)
|
10765 |
|
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10766 |
|
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
10767 |
|
|
;;
|
10768 |
|
|
*) # Version 8.0 or newer
|
10769 |
|
|
tmp_idyn=
|
10770 |
|
|
case $host_cpu in
|
10771 |
|
|
ia64*) tmp_idyn=' -i_dynamic';;
|
10772 |
|
|
esac
|
10773 |
|
|
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10774 |
|
|
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
10775 |
|
|
;;
|
10776 |
|
|
esac
|
10777 |
|
|
archive_cmds_need_lc_CXX=no
|
10778 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10779 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10780 |
|
|
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
10781 |
|
|
;;
|
10782 |
|
|
pgCC*)
|
10783 |
|
|
# Portland Group C++ compiler
|
10784 |
|
|
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
10785 |
|
|
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
10786 |
|
|
|
10787 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
10788 |
|
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
10789 |
|
|
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
10790 |
|
|
;;
|
10791 |
|
|
cxx*)
|
10792 |
|
|
# Compaq C++
|
10793 |
|
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
10794 |
|
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
|
10795 |
|
|
|
10796 |
|
|
runpath_var=LD_RUN_PATH
|
10797 |
|
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
10798 |
|
|
hardcode_libdir_separator_CXX=:
|
10799 |
|
|
|
10800 |
|
|
# Commands to make compiler produce verbose output that lists
|
10801 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10802 |
|
|
# linking a shared library.
|
10803 |
|
|
#
|
10804 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10805 |
|
|
# explicitly linking system object files so we need to strip them
|
10806 |
|
|
# from the output so that they don't get included in the library
|
10807 |
|
|
# dependencies.
|
10808 |
|
|
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'
|
10809 |
|
|
;;
|
10810 |
|
|
*)
|
10811 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
10812 |
|
|
*Sun\ C*)
|
10813 |
|
|
# Sun C++ 5.9
|
10814 |
|
|
no_undefined_flag_CXX=' -zdefs'
|
10815 |
|
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
10816 |
|
|
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
10817 |
|
|
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
10818 |
|
|
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
10819 |
|
|
|
10820 |
|
|
# Not sure whether something based on
|
10821 |
|
|
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
10822 |
|
|
# would be better.
|
10823 |
|
|
output_verbose_link_cmd='echo'
|
10824 |
|
|
|
10825 |
|
|
# Archives containing C++ object files must be created using
|
10826 |
|
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
10827 |
|
|
# necessary to make sure instantiated templates are included
|
10828 |
|
|
# in the archive.
|
10829 |
|
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
10830 |
|
|
;;
|
10831 |
|
|
esac
|
10832 |
|
|
;;
|
10833 |
|
|
esac
|
10834 |
|
|
;;
|
10835 |
|
|
lynxos*)
|
10836 |
|
|
# FIXME: insert proper C++ library support
|
10837 |
|
|
ld_shlibs_CXX=no
|
10838 |
|
|
;;
|
10839 |
|
|
m88k*)
|
10840 |
|
|
# FIXME: insert proper C++ library support
|
10841 |
|
|
ld_shlibs_CXX=no
|
10842 |
|
|
;;
|
10843 |
|
|
mvs*)
|
10844 |
|
|
case $cc_basename in
|
10845 |
|
|
cxx*)
|
10846 |
|
|
# FIXME: insert proper C++ library support
|
10847 |
|
|
ld_shlibs_CXX=no
|
10848 |
|
|
;;
|
10849 |
|
|
*)
|
10850 |
|
|
# FIXME: insert proper C++ library support
|
10851 |
|
|
ld_shlibs_CXX=no
|
10852 |
|
|
;;
|
10853 |
|
|
esac
|
10854 |
|
|
;;
|
10855 |
|
|
netbsd*)
|
10856 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
10857 |
|
|
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
10858 |
|
|
wlarc=
|
10859 |
|
|
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
10860 |
|
|
hardcode_direct_CXX=yes
|
10861 |
|
|
hardcode_shlibpath_var_CXX=no
|
10862 |
|
|
fi
|
10863 |
|
|
# Workaround some broken pre-1.5 toolchains
|
10864 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
10865 |
|
|
;;
|
10866 |
|
|
openbsd2*)
|
10867 |
|
|
# C++ shared libraries are fairly broken
|
10868 |
|
|
ld_shlibs_CXX=no
|
10869 |
|
|
;;
|
10870 |
|
|
openbsd*)
|
10871 |
|
|
if test -f /usr/libexec/ld.so; then
|
10872 |
|
|
hardcode_direct_CXX=yes
|
10873 |
|
|
hardcode_shlibpath_var_CXX=no
|
10874 |
|
|
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
10875 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10876 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
10877 |
|
|
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
10878 |
|
|
export_dynamic_flag_spec_CXX='${wl}-E'
|
10879 |
|
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
10880 |
|
|
fi
|
10881 |
|
|
output_verbose_link_cmd='echo'
|
10882 |
|
|
else
|
10883 |
|
|
ld_shlibs_CXX=no
|
10884 |
|
|
fi
|
10885 |
|
|
;;
|
10886 |
|
|
osf3*)
|
10887 |
|
|
case $cc_basename in
|
10888 |
|
|
KCC*)
|
10889 |
|
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
10890 |
|
|
|
10891 |
|
|
# KCC will only create a shared library if the output file
|
10892 |
|
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
10893 |
|
|
# to its proper name (with version) after linking.
|
10894 |
|
|
archive_cmds_CXX='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'
|
10895 |
|
|
|
10896 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10897 |
|
|
hardcode_libdir_separator_CXX=:
|
10898 |
|
|
|
10899 |
|
|
# Archives containing C++ object files must be created using
|
10900 |
|
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
10901 |
|
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
10902 |
|
|
|
10903 |
|
|
;;
|
10904 |
|
|
RCC*)
|
10905 |
|
|
# Rational C++ 2.4.1
|
10906 |
|
|
# FIXME: insert proper C++ library support
|
10907 |
|
|
ld_shlibs_CXX=no
|
10908 |
|
|
;;
|
10909 |
|
|
cxx*)
|
10910 |
|
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
10911 |
|
|
archive_cmds_CXX='$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 ${output_objdir}/so_locations -o $lib'
|
10912 |
|
|
|
10913 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
10914 |
|
|
hardcode_libdir_separator_CXX=:
|
10915 |
|
|
|
10916 |
|
|
# Commands to make compiler produce verbose output that lists
|
10917 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10918 |
|
|
# linking a shared library.
|
10919 |
|
|
#
|
10920 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10921 |
|
|
# explicitly linking system object files so we need to strip them
|
10922 |
|
|
# from the output so that they don't get included in the library
|
10923 |
|
|
# dependencies.
|
10924 |
|
|
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'
|
10925 |
|
|
;;
|
10926 |
|
|
*)
|
10927 |
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
10928 |
|
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
10929 |
|
|
archive_cmds_CXX='$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}${output_objdir}/so_locations -o $lib'
|
10930 |
|
|
|
10931 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
10932 |
|
|
hardcode_libdir_separator_CXX=:
|
10933 |
|
|
|
10934 |
|
|
# Commands to make compiler produce verbose output that lists
|
10935 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10936 |
|
|
# linking a shared library.
|
10937 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
10938 |
|
|
|
10939 |
|
|
else
|
10940 |
|
|
# FIXME: insert proper C++ library support
|
10941 |
|
|
ld_shlibs_CXX=no
|
10942 |
|
|
fi
|
10943 |
|
|
;;
|
10944 |
|
|
esac
|
10945 |
|
|
;;
|
10946 |
|
|
osf4* | osf5*)
|
10947 |
|
|
case $cc_basename in
|
10948 |
|
|
KCC*)
|
10949 |
|
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
10950 |
|
|
|
10951 |
|
|
# KCC will only create a shared library if the output file
|
10952 |
|
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
10953 |
|
|
# to its proper name (with version) after linking.
|
10954 |
|
|
archive_cmds_CXX='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'
|
10955 |
|
|
|
10956 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
10957 |
|
|
hardcode_libdir_separator_CXX=:
|
10958 |
|
|
|
10959 |
|
|
# Archives containing C++ object files must be created using
|
10960 |
|
|
# the KAI C++ compiler.
|
10961 |
|
|
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
|
10962 |
|
|
;;
|
10963 |
|
|
RCC*)
|
10964 |
|
|
# Rational C++ 2.4.1
|
10965 |
|
|
# FIXME: insert proper C++ library support
|
10966 |
|
|
ld_shlibs_CXX=no
|
10967 |
|
|
;;
|
10968 |
|
|
cxx*)
|
10969 |
|
|
allow_undefined_flag_CXX=' -expect_unresolved \*'
|
10970 |
|
|
archive_cmds_CXX='$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 ${output_objdir}/so_locations -o $lib'
|
10971 |
|
|
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
10972 |
|
|
echo "-hidden">> $lib.exp~
|
10973 |
|
|
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
|
10974 |
|
|
$rm $lib.exp'
|
10975 |
|
|
|
10976 |
|
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
10977 |
|
|
hardcode_libdir_separator_CXX=:
|
10978 |
|
|
|
10979 |
|
|
# Commands to make compiler produce verbose output that lists
|
10980 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10981 |
|
|
# linking a shared library.
|
10982 |
|
|
#
|
10983 |
|
|
# There doesn't appear to be a way to prevent this compiler from
|
10984 |
|
|
# explicitly linking system object files so we need to strip them
|
10985 |
|
|
# from the output so that they don't get included in the library
|
10986 |
|
|
# dependencies.
|
10987 |
|
|
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'
|
10988 |
|
|
;;
|
10989 |
|
|
*)
|
10990 |
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
10991 |
|
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
10992 |
|
|
archive_cmds_CXX='$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}${output_objdir}/so_locations -o $lib'
|
10993 |
|
|
|
10994 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
10995 |
|
|
hardcode_libdir_separator_CXX=:
|
10996 |
|
|
|
10997 |
|
|
# Commands to make compiler produce verbose output that lists
|
10998 |
|
|
# what "hidden" libraries, object files and flags are used when
|
10999 |
|
|
# linking a shared library.
|
11000 |
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
11001 |
|
|
|
11002 |
|
|
else
|
11003 |
|
|
# FIXME: insert proper C++ library support
|
11004 |
|
|
ld_shlibs_CXX=no
|
11005 |
|
|
fi
|
11006 |
|
|
;;
|
11007 |
|
|
esac
|
11008 |
|
|
;;
|
11009 |
|
|
psos*)
|
11010 |
|
|
# FIXME: insert proper C++ library support
|
11011 |
|
|
ld_shlibs_CXX=no
|
11012 |
|
|
;;
|
11013 |
|
|
sunos4*)
|
11014 |
|
|
case $cc_basename in
|
11015 |
|
|
CC*)
|
11016 |
|
|
# Sun C++ 4.x
|
11017 |
|
|
# FIXME: insert proper C++ library support
|
11018 |
|
|
ld_shlibs_CXX=no
|
11019 |
|
|
;;
|
11020 |
|
|
lcc*)
|
11021 |
|
|
# Lucid
|
11022 |
|
|
# FIXME: insert proper C++ library support
|
11023 |
|
|
ld_shlibs_CXX=no
|
11024 |
|
|
;;
|
11025 |
|
|
*)
|
11026 |
|
|
# FIXME: insert proper C++ library support
|
11027 |
|
|
ld_shlibs_CXX=no
|
11028 |
|
|
;;
|
11029 |
|
|
esac
|
11030 |
|
|
;;
|
11031 |
|
|
solaris*)
|
11032 |
|
|
case $cc_basename in
|
11033 |
|
|
CC*)
|
11034 |
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
11035 |
|
|
archive_cmds_need_lc_CXX=yes
|
11036 |
|
|
no_undefined_flag_CXX=' -zdefs'
|
11037 |
|
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
11038 |
|
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11039 |
|
|
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
11040 |
|
|
|
11041 |
|
|
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
11042 |
|
|
hardcode_shlibpath_var_CXX=no
|
11043 |
|
|
case $host_os in
|
11044 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
11045 |
|
|
*)
|
11046 |
|
|
# The compiler driver will combine and reorder linker options,
|
11047 |
|
|
# but understands `-z linker_flag'.
|
11048 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
11049 |
|
|
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
|
11050 |
|
|
;;
|
11051 |
|
|
esac
|
11052 |
|
|
link_all_deplibs_CXX=yes
|
11053 |
|
|
|
11054 |
|
|
output_verbose_link_cmd='echo'
|
11055 |
|
|
|
11056 |
|
|
# Archives containing C++ object files must be created using
|
11057 |
|
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
11058 |
|
|
# necessary to make sure instantiated templates are included
|
11059 |
|
|
# in the archive.
|
11060 |
|
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
11061 |
|
|
;;
|
11062 |
|
|
gcx*)
|
11063 |
|
|
# Green Hills C++ Compiler
|
11064 |
|
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
11065 |
|
|
|
11066 |
|
|
# The C++ compiler must be used to create the archive.
|
11067 |
|
|
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
11068 |
|
|
;;
|
11069 |
|
|
*)
|
11070 |
|
|
# GNU C++ compiler with Solaris linker
|
11071 |
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
11072 |
|
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
11073 |
|
|
if $CC --version | grep -v '^2\.7' > /dev/null; then
|
11074 |
|
|
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
11075 |
|
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11076 |
|
|
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
11077 |
|
|
|
11078 |
|
|
# Commands to make compiler produce verbose output that lists
|
11079 |
|
|
# what "hidden" libraries, object files and flags are used when
|
11080 |
|
|
# linking a shared library.
|
11081 |
|
|
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
11082 |
|
|
else
|
11083 |
|
|
# g++ 2.7 appears to require `-G' NOT `-shared' on this
|
11084 |
|
|
# platform.
|
11085 |
|
|
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
11086 |
|
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
11087 |
|
|
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
11088 |
|
|
|
11089 |
|
|
# Commands to make compiler produce verbose output that lists
|
11090 |
|
|
# what "hidden" libraries, object files and flags are used when
|
11091 |
|
|
# linking a shared library.
|
11092 |
|
|
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
11093 |
|
|
fi
|
11094 |
|
|
|
11095 |
|
|
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
|
11096 |
|
|
case $host_os in
|
11097 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
11098 |
|
|
*)
|
11099 |
|
|
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
11100 |
|
|
;;
|
11101 |
|
|
esac
|
11102 |
|
|
fi
|
11103 |
|
|
;;
|
11104 |
|
|
esac
|
11105 |
|
|
;;
|
11106 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
11107 |
|
|
no_undefined_flag_CXX='${wl}-z,text'
|
11108 |
|
|
archive_cmds_need_lc_CXX=no
|
11109 |
|
|
hardcode_shlibpath_var_CXX=no
|
11110 |
|
|
runpath_var='LD_RUN_PATH'
|
11111 |
|
|
|
11112 |
|
|
case $cc_basename in
|
11113 |
|
|
CC*)
|
11114 |
|
|
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11115 |
|
|
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11116 |
|
|
;;
|
11117 |
|
|
*)
|
11118 |
|
|
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11119 |
|
|
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11120 |
|
|
;;
|
11121 |
|
|
esac
|
11122 |
|
|
;;
|
11123 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
11124 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
11125 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
11126 |
|
|
# always be unresolved, which means just about no library would
|
11127 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
11128 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
11129 |
|
|
# as -z defs.
|
11130 |
|
|
# For security reasons, it is highly recommended that you always
|
11131 |
|
|
# use absolute paths for naming shared libraries, and exclude the
|
11132 |
|
|
# DT_RUNPATH tag from executables and libraries. But doing so
|
11133 |
|
|
# requires that you compile everything twice, which is a pain.
|
11134 |
|
|
# So that behaviour is only enabled if SCOABSPATH is set to a
|
11135 |
|
|
# non-empty value in the environment. Most likely only useful for
|
11136 |
|
|
# creating official distributions of packages.
|
11137 |
|
|
# This is a hack until libtool officially supports absolute path
|
11138 |
|
|
# names for shared libraries.
|
11139 |
|
|
no_undefined_flag_CXX='${wl}-z,text'
|
11140 |
|
|
allow_undefined_flag_CXX='${wl}-z,nodefs'
|
11141 |
|
|
archive_cmds_need_lc_CXX=no
|
11142 |
|
|
hardcode_shlibpath_var_CXX=no
|
11143 |
|
|
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
11144 |
|
|
hardcode_libdir_separator_CXX=':'
|
11145 |
|
|
link_all_deplibs_CXX=yes
|
11146 |
|
|
export_dynamic_flag_spec_CXX='${wl}-Bexport'
|
11147 |
|
|
runpath_var='LD_RUN_PATH'
|
11148 |
|
|
|
11149 |
|
|
case $cc_basename in
|
11150 |
|
|
CC*)
|
11151 |
|
|
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11152 |
|
|
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11153 |
|
|
;;
|
11154 |
|
|
*)
|
11155 |
|
|
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11156 |
|
|
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
11157 |
|
|
;;
|
11158 |
|
|
esac
|
11159 |
|
|
;;
|
11160 |
|
|
tandem*)
|
11161 |
|
|
case $cc_basename in
|
11162 |
|
|
NCC*)
|
11163 |
|
|
# NonStop-UX NCC 3.20
|
11164 |
|
|
# FIXME: insert proper C++ library support
|
11165 |
|
|
ld_shlibs_CXX=no
|
11166 |
|
|
;;
|
11167 |
|
|
*)
|
11168 |
|
|
# FIXME: insert proper C++ library support
|
11169 |
|
|
ld_shlibs_CXX=no
|
11170 |
|
|
;;
|
11171 |
|
|
esac
|
11172 |
|
|
;;
|
11173 |
|
|
vxworks*)
|
11174 |
|
|
# FIXME: insert proper C++ library support
|
11175 |
|
|
ld_shlibs_CXX=no
|
11176 |
|
|
;;
|
11177 |
|
|
*)
|
11178 |
|
|
# FIXME: insert proper C++ library support
|
11179 |
|
|
ld_shlibs_CXX=no
|
11180 |
|
|
;;
|
11181 |
|
|
esac
|
11182 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
11183 |
|
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
|
11184 |
|
|
test "$ld_shlibs_CXX" = no && can_build_shared=no
|
11185 |
|
|
|
11186 |
|
|
GCC_CXX="$GXX"
|
11187 |
|
|
LD_CXX="$LD"
|
11188 |
|
|
|
11189 |
|
|
## CAVEAT EMPTOR:
|
11190 |
|
|
## There is no encapsulation within the following macros, do not change
|
11191 |
|
|
## the running order or otherwise move them around unless you know exactly
|
11192 |
|
|
## what you are doing...
|
11193 |
|
|
|
11194 |
|
|
cat > conftest.$ac_ext <
|
11195 |
|
|
class Foo
|
11196 |
|
|
{
|
11197 |
|
|
public:
|
11198 |
|
|
Foo (void) { a = 0; }
|
11199 |
|
|
private:
|
11200 |
|
|
int a;
|
11201 |
|
|
};
|
11202 |
|
|
EOF
|
11203 |
|
|
|
11204 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
11205 |
|
|
(eval $ac_compile) 2>&5
|
11206 |
|
|
ac_status=$?
|
11207 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11208 |
|
|
(exit $ac_status); }; then
|
11209 |
|
|
# Parse the compiler output and extract the necessary
|
11210 |
|
|
# objects, libraries and library flags.
|
11211 |
|
|
|
11212 |
|
|
# Sentinel used to keep track of whether or not we are before
|
11213 |
|
|
# the conftest object file.
|
11214 |
|
|
pre_test_object_deps_done=no
|
11215 |
|
|
|
11216 |
|
|
# The `*' in the case matches for architectures that use `case' in
|
11217 |
|
|
# $output_verbose_cmd can trigger glob expansion during the loop
|
11218 |
|
|
# eval without this substitution.
|
11219 |
|
|
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
|
11220 |
|
|
|
11221 |
|
|
for p in `eval $output_verbose_link_cmd`; do
|
11222 |
|
|
case $p in
|
11223 |
|
|
|
11224 |
|
|
-L* | -R* | -l*)
|
11225 |
|
|
# Some compilers place space between "-{L,R}" and the path.
|
11226 |
|
|
# Remove the space.
|
11227 |
|
|
if test $p = "-L" \
|
11228 |
|
|
|| test $p = "-R"; then
|
11229 |
|
|
prev=$p
|
11230 |
|
|
continue
|
11231 |
|
|
else
|
11232 |
|
|
prev=
|
11233 |
|
|
fi
|
11234 |
|
|
|
11235 |
|
|
if test "$pre_test_object_deps_done" = no; then
|
11236 |
|
|
case $p in
|
11237 |
|
|
-L* | -R*)
|
11238 |
|
|
# Internal compiler library paths should come after those
|
11239 |
|
|
# provided the user. The postdeps already come after the
|
11240 |
|
|
# user supplied libs so there is no need to process them.
|
11241 |
|
|
if test -z "$compiler_lib_search_path_CXX"; then
|
11242 |
|
|
compiler_lib_search_path_CXX="${prev}${p}"
|
11243 |
|
|
else
|
11244 |
|
|
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
|
11245 |
|
|
fi
|
11246 |
|
|
;;
|
11247 |
|
|
# The "-l" case would never come before the object being
|
11248 |
|
|
# linked, so don't bother handling this case.
|
11249 |
|
|
esac
|
11250 |
|
|
else
|
11251 |
|
|
if test -z "$postdeps_CXX"; then
|
11252 |
|
|
postdeps_CXX="${prev}${p}"
|
11253 |
|
|
else
|
11254 |
|
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
11255 |
|
|
fi
|
11256 |
|
|
fi
|
11257 |
|
|
;;
|
11258 |
|
|
|
11259 |
|
|
*.$objext)
|
11260 |
|
|
# This assumes that the test object file only shows up
|
11261 |
|
|
# once in the compiler output.
|
11262 |
|
|
if test "$p" = "conftest.$objext"; then
|
11263 |
|
|
pre_test_object_deps_done=yes
|
11264 |
|
|
continue
|
11265 |
|
|
fi
|
11266 |
|
|
|
11267 |
|
|
if test "$pre_test_object_deps_done" = no; then
|
11268 |
|
|
if test -z "$predep_objects_CXX"; then
|
11269 |
|
|
predep_objects_CXX="$p"
|
11270 |
|
|
else
|
11271 |
|
|
predep_objects_CXX="$predep_objects_CXX $p"
|
11272 |
|
|
fi
|
11273 |
|
|
else
|
11274 |
|
|
if test -z "$postdep_objects_CXX"; then
|
11275 |
|
|
postdep_objects_CXX="$p"
|
11276 |
|
|
else
|
11277 |
|
|
postdep_objects_CXX="$postdep_objects_CXX $p"
|
11278 |
|
|
fi
|
11279 |
|
|
fi
|
11280 |
|
|
;;
|
11281 |
|
|
|
11282 |
|
|
*) ;; # Ignore the rest.
|
11283 |
|
|
|
11284 |
|
|
esac
|
11285 |
|
|
done
|
11286 |
|
|
|
11287 |
|
|
# Clean up.
|
11288 |
|
|
rm -f a.out a.exe
|
11289 |
|
|
else
|
11290 |
|
|
echo "libtool.m4: error: problem compiling CXX test program"
|
11291 |
|
|
fi
|
11292 |
|
|
|
11293 |
|
|
$rm -f confest.$objext
|
11294 |
|
|
|
11295 |
|
|
# PORTME: override above test on systems where it is broken
|
11296 |
|
|
case $host_os in
|
11297 |
|
|
interix[3-9]*)
|
11298 |
|
|
# Interix 3.5 installs completely hosed .la files for C++, so rather than
|
11299 |
|
|
# hack all around it, let's just trust "g++" to DTRT.
|
11300 |
|
|
predep_objects_CXX=
|
11301 |
|
|
postdep_objects_CXX=
|
11302 |
|
|
postdeps_CXX=
|
11303 |
|
|
;;
|
11304 |
|
|
|
11305 |
|
|
linux*)
|
11306 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
11307 |
|
|
*Sun\ C*)
|
11308 |
|
|
# Sun C++ 5.9
|
11309 |
|
|
#
|
11310 |
|
|
# The more standards-conforming stlport4 library is
|
11311 |
|
|
# incompatible with the Cstd library. Avoid specifying
|
11312 |
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
11313 |
|
|
# -library=stlport4 depends on it.
|
11314 |
|
|
case " $CXX $CXXFLAGS " in
|
11315 |
|
|
*" -library=stlport4 "*)
|
11316 |
|
|
solaris_use_stlport4=yes
|
11317 |
|
|
;;
|
11318 |
|
|
esac
|
11319 |
|
|
if test "$solaris_use_stlport4" != yes; then
|
11320 |
|
|
postdeps_CXX='-library=Cstd -library=Crun'
|
11321 |
|
|
fi
|
11322 |
|
|
;;
|
11323 |
|
|
esac
|
11324 |
|
|
;;
|
11325 |
|
|
|
11326 |
|
|
solaris*)
|
11327 |
|
|
case $cc_basename in
|
11328 |
|
|
CC*)
|
11329 |
|
|
# The more standards-conforming stlport4 library is
|
11330 |
|
|
# incompatible with the Cstd library. Avoid specifying
|
11331 |
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
11332 |
|
|
# -library=stlport4 depends on it.
|
11333 |
|
|
case " $CXX $CXXFLAGS " in
|
11334 |
|
|
*" -library=stlport4 "*)
|
11335 |
|
|
solaris_use_stlport4=yes
|
11336 |
|
|
;;
|
11337 |
|
|
esac
|
11338 |
|
|
|
11339 |
|
|
# Adding this requires a known-good setup of shared libraries for
|
11340 |
|
|
# Sun compiler versions before 5.6, else PIC objects from an old
|
11341 |
|
|
# archive will be linked into the output, leading to subtle bugs.
|
11342 |
|
|
if test "$solaris_use_stlport4" != yes; then
|
11343 |
|
|
postdeps_CXX='-library=Cstd -library=Crun'
|
11344 |
|
|
fi
|
11345 |
|
|
;;
|
11346 |
|
|
esac
|
11347 |
|
|
;;
|
11348 |
|
|
esac
|
11349 |
|
|
|
11350 |
|
|
|
11351 |
|
|
case " $postdeps_CXX " in
|
11352 |
|
|
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
|
11353 |
|
|
esac
|
11354 |
|
|
|
11355 |
|
|
lt_prog_compiler_wl_CXX=
|
11356 |
|
|
lt_prog_compiler_pic_CXX=
|
11357 |
|
|
lt_prog_compiler_static_CXX=
|
11358 |
|
|
|
11359 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
11360 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
11361 |
|
|
|
11362 |
|
|
# C++ specific cases for pic, static, wl, etc.
|
11363 |
|
|
if test "$GXX" = yes; then
|
11364 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11365 |
|
|
lt_prog_compiler_static_CXX='-static'
|
11366 |
|
|
|
11367 |
|
|
case $host_os in
|
11368 |
|
|
aix*)
|
11369 |
|
|
# All AIX code is PIC.
|
11370 |
|
|
if test "$host_cpu" = ia64; then
|
11371 |
|
|
# AIX 5 now supports IA64 processor
|
11372 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11373 |
|
|
fi
|
11374 |
|
|
;;
|
11375 |
|
|
amigaos*)
|
11376 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
11377 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
11378 |
|
|
# like `-m68040'.
|
11379 |
|
|
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
|
11380 |
|
|
;;
|
11381 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
11382 |
|
|
# PIC is the default for these OSes.
|
11383 |
|
|
;;
|
11384 |
|
|
mingw* | cygwin* | os2* | pw32*)
|
11385 |
|
|
# This hack is so that the source file can tell whether it is being
|
11386 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
11387 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
11388 |
|
|
# (--disable-auto-import) libraries
|
11389 |
|
|
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
11390 |
|
|
;;
|
11391 |
|
|
darwin* | rhapsody*)
|
11392 |
|
|
# PIC is the default on this platform
|
11393 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
11394 |
|
|
lt_prog_compiler_pic_CXX='-fno-common'
|
11395 |
|
|
;;
|
11396 |
|
|
*djgpp*)
|
11397 |
|
|
# DJGPP does not support shared libraries at all
|
11398 |
|
|
lt_prog_compiler_pic_CXX=
|
11399 |
|
|
;;
|
11400 |
|
|
interix[3-9]*)
|
11401 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
11402 |
|
|
# Instead, we relocate shared libraries at runtime.
|
11403 |
|
|
;;
|
11404 |
|
|
sysv4*MP*)
|
11405 |
|
|
if test -d /usr/nec; then
|
11406 |
|
|
lt_prog_compiler_pic_CXX=-Kconform_pic
|
11407 |
|
|
fi
|
11408 |
|
|
;;
|
11409 |
|
|
hpux*)
|
11410 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
11411 |
|
|
# not for PA HP-UX.
|
11412 |
|
|
case $host_cpu in
|
11413 |
|
|
hppa*64*|ia64*)
|
11414 |
|
|
;;
|
11415 |
|
|
*)
|
11416 |
|
|
lt_prog_compiler_pic_CXX='-fPIC'
|
11417 |
|
|
;;
|
11418 |
|
|
esac
|
11419 |
|
|
;;
|
11420 |
|
|
*)
|
11421 |
|
|
lt_prog_compiler_pic_CXX='-fPIC'
|
11422 |
|
|
;;
|
11423 |
|
|
esac
|
11424 |
|
|
else
|
11425 |
|
|
case $host_os in
|
11426 |
|
|
aix4* | aix5*)
|
11427 |
|
|
# All AIX code is PIC.
|
11428 |
|
|
if test "$host_cpu" = ia64; then
|
11429 |
|
|
# AIX 5 now supports IA64 processor
|
11430 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11431 |
|
|
else
|
11432 |
|
|
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
|
11433 |
|
|
fi
|
11434 |
|
|
;;
|
11435 |
|
|
chorus*)
|
11436 |
|
|
case $cc_basename in
|
11437 |
|
|
cxch68*)
|
11438 |
|
|
# Green Hills C++ Compiler
|
11439 |
|
|
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
|
11440 |
|
|
;;
|
11441 |
|
|
esac
|
11442 |
|
|
;;
|
11443 |
|
|
darwin*)
|
11444 |
|
|
# PIC is the default on this platform
|
11445 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
11446 |
|
|
case $cc_basename in
|
11447 |
|
|
xlc*)
|
11448 |
|
|
lt_prog_compiler_pic_CXX='-qnocommon'
|
11449 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11450 |
|
|
;;
|
11451 |
|
|
esac
|
11452 |
|
|
;;
|
11453 |
|
|
dgux*)
|
11454 |
|
|
case $cc_basename in
|
11455 |
|
|
ec++*)
|
11456 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11457 |
|
|
;;
|
11458 |
|
|
ghcx*)
|
11459 |
|
|
# Green Hills C++ Compiler
|
11460 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11461 |
|
|
;;
|
11462 |
|
|
*)
|
11463 |
|
|
;;
|
11464 |
|
|
esac
|
11465 |
|
|
;;
|
11466 |
|
|
freebsd* | dragonfly*)
|
11467 |
|
|
# FreeBSD uses GNU C++
|
11468 |
|
|
;;
|
11469 |
|
|
hpux9* | hpux10* | hpux11*)
|
11470 |
|
|
case $cc_basename in
|
11471 |
|
|
CC*)
|
11472 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11473 |
|
|
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
11474 |
|
|
if test "$host_cpu" != ia64; then
|
11475 |
|
|
lt_prog_compiler_pic_CXX='+Z'
|
11476 |
|
|
fi
|
11477 |
|
|
;;
|
11478 |
|
|
aCC*)
|
11479 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11480 |
|
|
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
11481 |
|
|
case $host_cpu in
|
11482 |
|
|
hppa*64*|ia64*)
|
11483 |
|
|
# +Z the default
|
11484 |
|
|
;;
|
11485 |
|
|
*)
|
11486 |
|
|
lt_prog_compiler_pic_CXX='+Z'
|
11487 |
|
|
;;
|
11488 |
|
|
esac
|
11489 |
|
|
;;
|
11490 |
|
|
*)
|
11491 |
|
|
;;
|
11492 |
|
|
esac
|
11493 |
|
|
;;
|
11494 |
|
|
interix*)
|
11495 |
|
|
# This is c89, which is MS Visual C++ (no shared libs)
|
11496 |
|
|
# Anyone wants to do a port?
|
11497 |
|
|
;;
|
11498 |
|
|
irix5* | irix6* | nonstopux*)
|
11499 |
|
|
case $cc_basename in
|
11500 |
|
|
CC*)
|
11501 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11502 |
|
|
lt_prog_compiler_static_CXX='-non_shared'
|
11503 |
|
|
# CC pic flag -KPIC is the default.
|
11504 |
|
|
;;
|
11505 |
|
|
*)
|
11506 |
|
|
;;
|
11507 |
|
|
esac
|
11508 |
|
|
;;
|
11509 |
|
|
linux* | k*bsd*-gnu)
|
11510 |
|
|
case $cc_basename in
|
11511 |
|
|
KCC*)
|
11512 |
|
|
# KAI C++ Compiler
|
11513 |
|
|
lt_prog_compiler_wl_CXX='--backend -Wl,'
|
11514 |
|
|
lt_prog_compiler_pic_CXX='-fPIC'
|
11515 |
|
|
;;
|
11516 |
|
|
icpc* | ecpc*)
|
11517 |
|
|
# Intel C++
|
11518 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11519 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11520 |
|
|
lt_prog_compiler_static_CXX='-static'
|
11521 |
|
|
;;
|
11522 |
|
|
pgCC*)
|
11523 |
|
|
# Portland Group C++ compiler.
|
11524 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11525 |
|
|
lt_prog_compiler_pic_CXX='-fpic'
|
11526 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11527 |
|
|
;;
|
11528 |
|
|
cxx*)
|
11529 |
|
|
# Compaq C++
|
11530 |
|
|
# Make sure the PIC flag is empty. It appears that all Alpha
|
11531 |
|
|
# Linux and Compaq Tru64 Unix objects are PIC.
|
11532 |
|
|
lt_prog_compiler_pic_CXX=
|
11533 |
|
|
lt_prog_compiler_static_CXX='-non_shared'
|
11534 |
|
|
;;
|
11535 |
|
|
*)
|
11536 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
11537 |
|
|
*Sun\ C*)
|
11538 |
|
|
# Sun C++ 5.9
|
11539 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11540 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11541 |
|
|
lt_prog_compiler_wl_CXX='-Qoption ld '
|
11542 |
|
|
;;
|
11543 |
|
|
esac
|
11544 |
|
|
;;
|
11545 |
|
|
esac
|
11546 |
|
|
;;
|
11547 |
|
|
lynxos*)
|
11548 |
|
|
;;
|
11549 |
|
|
m88k*)
|
11550 |
|
|
;;
|
11551 |
|
|
mvs*)
|
11552 |
|
|
case $cc_basename in
|
11553 |
|
|
cxx*)
|
11554 |
|
|
lt_prog_compiler_pic_CXX='-W c,exportall'
|
11555 |
|
|
;;
|
11556 |
|
|
*)
|
11557 |
|
|
;;
|
11558 |
|
|
esac
|
11559 |
|
|
;;
|
11560 |
|
|
netbsd*)
|
11561 |
|
|
;;
|
11562 |
|
|
osf3* | osf4* | osf5*)
|
11563 |
|
|
case $cc_basename in
|
11564 |
|
|
KCC*)
|
11565 |
|
|
lt_prog_compiler_wl_CXX='--backend -Wl,'
|
11566 |
|
|
;;
|
11567 |
|
|
RCC*)
|
11568 |
|
|
# Rational C++ 2.4.1
|
11569 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11570 |
|
|
;;
|
11571 |
|
|
cxx*)
|
11572 |
|
|
# Digital/Compaq C++
|
11573 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11574 |
|
|
# Make sure the PIC flag is empty. It appears that all Alpha
|
11575 |
|
|
# Linux and Compaq Tru64 Unix objects are PIC.
|
11576 |
|
|
lt_prog_compiler_pic_CXX=
|
11577 |
|
|
lt_prog_compiler_static_CXX='-non_shared'
|
11578 |
|
|
;;
|
11579 |
|
|
*)
|
11580 |
|
|
;;
|
11581 |
|
|
esac
|
11582 |
|
|
;;
|
11583 |
|
|
psos*)
|
11584 |
|
|
;;
|
11585 |
|
|
solaris*)
|
11586 |
|
|
case $cc_basename in
|
11587 |
|
|
CC*)
|
11588 |
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
11589 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11590 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11591 |
|
|
lt_prog_compiler_wl_CXX='-Qoption ld '
|
11592 |
|
|
;;
|
11593 |
|
|
gcx*)
|
11594 |
|
|
# Green Hills C++ Compiler
|
11595 |
|
|
lt_prog_compiler_pic_CXX='-PIC'
|
11596 |
|
|
;;
|
11597 |
|
|
*)
|
11598 |
|
|
;;
|
11599 |
|
|
esac
|
11600 |
|
|
;;
|
11601 |
|
|
sunos4*)
|
11602 |
|
|
case $cc_basename in
|
11603 |
|
|
CC*)
|
11604 |
|
|
# Sun C++ 4.x
|
11605 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11606 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11607 |
|
|
;;
|
11608 |
|
|
lcc*)
|
11609 |
|
|
# Lucid
|
11610 |
|
|
lt_prog_compiler_pic_CXX='-pic'
|
11611 |
|
|
;;
|
11612 |
|
|
*)
|
11613 |
|
|
;;
|
11614 |
|
|
esac
|
11615 |
|
|
;;
|
11616 |
|
|
tandem*)
|
11617 |
|
|
case $cc_basename in
|
11618 |
|
|
NCC*)
|
11619 |
|
|
# NonStop-UX NCC 3.20
|
11620 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11621 |
|
|
;;
|
11622 |
|
|
*)
|
11623 |
|
|
;;
|
11624 |
|
|
esac
|
11625 |
|
|
;;
|
11626 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
11627 |
|
|
case $cc_basename in
|
11628 |
|
|
CC*)
|
11629 |
|
|
lt_prog_compiler_wl_CXX='-Wl,'
|
11630 |
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
11631 |
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
11632 |
|
|
;;
|
11633 |
|
|
esac
|
11634 |
|
|
;;
|
11635 |
|
|
vxworks*)
|
11636 |
|
|
;;
|
11637 |
|
|
*)
|
11638 |
|
|
lt_prog_compiler_can_build_shared_CXX=no
|
11639 |
|
|
;;
|
11640 |
|
|
esac
|
11641 |
|
|
fi
|
11642 |
|
|
|
11643 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
|
11644 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
|
11645 |
|
|
|
11646 |
|
|
#
|
11647 |
|
|
# Check to make sure the PIC flag actually works.
|
11648 |
|
|
#
|
11649 |
|
|
if test -n "$lt_prog_compiler_pic_CXX"; then
|
11650 |
|
|
|
11651 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
|
11652 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
|
11653 |
|
|
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
|
11654 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11655 |
|
|
else
|
11656 |
|
|
lt_prog_compiler_pic_works_CXX=no
|
11657 |
|
|
ac_outfile=conftest.$ac_objext
|
11658 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
11659 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
|
11660 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
11661 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
11662 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
11663 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
11664 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
11665 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
11666 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
11667 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
11668 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
11669 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
11670 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
11671 |
|
|
ac_status=$?
|
11672 |
|
|
cat conftest.err >&5
|
11673 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
11674 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
11675 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
11676 |
|
|
# So say no if there are warnings other than the usual output.
|
11677 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
11678 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
11679 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
11680 |
|
|
lt_prog_compiler_pic_works_CXX=yes
|
11681 |
|
|
fi
|
11682 |
|
|
fi
|
11683 |
|
|
$rm conftest*
|
11684 |
|
|
|
11685 |
|
|
fi
|
11686 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
|
11687 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
|
11688 |
|
|
|
11689 |
|
|
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
|
11690 |
|
|
case $lt_prog_compiler_pic_CXX in
|
11691 |
|
|
"" | " "*) ;;
|
11692 |
|
|
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
|
11693 |
|
|
esac
|
11694 |
|
|
else
|
11695 |
|
|
lt_prog_compiler_pic_CXX=
|
11696 |
|
|
lt_prog_compiler_can_build_shared_CXX=no
|
11697 |
|
|
fi
|
11698 |
|
|
|
11699 |
|
|
fi
|
11700 |
|
|
case $host_os in
|
11701 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
11702 |
|
|
*djgpp*)
|
11703 |
|
|
lt_prog_compiler_pic_CXX=
|
11704 |
|
|
;;
|
11705 |
|
|
*)
|
11706 |
|
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
11707 |
|
|
;;
|
11708 |
|
|
esac
|
11709 |
|
|
|
11710 |
|
|
#
|
11711 |
|
|
# Check to make sure the static flag actually works.
|
11712 |
|
|
#
|
11713 |
|
|
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
|
11714 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
11715 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
11716 |
|
|
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
|
11717 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11718 |
|
|
else
|
11719 |
|
|
lt_prog_compiler_static_works_CXX=no
|
11720 |
|
|
save_LDFLAGS="$LDFLAGS"
|
11721 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
11722 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
11723 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
11724 |
|
|
# The linker can only warn and ignore the option if not recognized
|
11725 |
|
|
# So say no if there are warnings
|
11726 |
|
|
if test -s conftest.err; then
|
11727 |
|
|
# Append any errors to the config.log.
|
11728 |
|
|
cat conftest.err 1>&5
|
11729 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
11730 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
11731 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
11732 |
|
|
lt_prog_compiler_static_works_CXX=yes
|
11733 |
|
|
fi
|
11734 |
|
|
else
|
11735 |
|
|
lt_prog_compiler_static_works_CXX=yes
|
11736 |
|
|
fi
|
11737 |
|
|
fi
|
11738 |
|
|
$rm conftest*
|
11739 |
|
|
LDFLAGS="$save_LDFLAGS"
|
11740 |
|
|
|
11741 |
|
|
fi
|
11742 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
|
11743 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
|
11744 |
|
|
|
11745 |
|
|
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
|
11746 |
|
|
:
|
11747 |
|
|
else
|
11748 |
|
|
lt_prog_compiler_static_CXX=
|
11749 |
|
|
fi
|
11750 |
|
|
|
11751 |
|
|
|
11752 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
11753 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
11754 |
|
|
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
|
11755 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11756 |
|
|
else
|
11757 |
|
|
lt_cv_prog_compiler_c_o_CXX=no
|
11758 |
|
|
$rm -r conftest 2>/dev/null
|
11759 |
|
|
mkdir conftest
|
11760 |
|
|
cd conftest
|
11761 |
|
|
mkdir out
|
11762 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
11763 |
|
|
|
11764 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
11765 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
11766 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
11767 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
11768 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
11769 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
11770 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
11771 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
11772 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
11773 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
11774 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
11775 |
|
|
ac_status=$?
|
11776 |
|
|
cat out/conftest.err >&5
|
11777 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
11778 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
11779 |
|
|
then
|
11780 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
11781 |
|
|
# So say no if there are warnings
|
11782 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
11783 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
11784 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
11785 |
|
|
lt_cv_prog_compiler_c_o_CXX=yes
|
11786 |
|
|
fi
|
11787 |
|
|
fi
|
11788 |
|
|
chmod u+w . 2>&5
|
11789 |
|
|
$rm conftest*
|
11790 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
11791 |
|
|
# template instantiation
|
11792 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
11793 |
|
|
$rm out/* && rmdir out
|
11794 |
|
|
cd ..
|
11795 |
|
|
rmdir conftest
|
11796 |
|
|
$rm conftest*
|
11797 |
|
|
|
11798 |
|
|
fi
|
11799 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
|
11800 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
|
11801 |
|
|
|
11802 |
|
|
|
11803 |
|
|
hard_links="nottested"
|
11804 |
|
|
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
|
11805 |
|
|
# do not overwrite the value of need_locks provided by the user
|
11806 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
11807 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
11808 |
|
|
hard_links=yes
|
11809 |
|
|
$rm conftest*
|
11810 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
11811 |
|
|
touch conftest.a
|
11812 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
11813 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
11814 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
11815 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
11816 |
|
|
if test "$hard_links" = no; then
|
11817 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
11818 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
11819 |
|
|
need_locks=warn
|
11820 |
|
|
fi
|
11821 |
|
|
else
|
11822 |
|
|
need_locks=no
|
11823 |
|
|
fi
|
11824 |
|
|
|
11825 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
11826 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
11827 |
|
|
|
11828 |
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
11829 |
|
|
case $host_os in
|
11830 |
|
|
aix4* | aix5*)
|
11831 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
11832 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
11833 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
11834 |
|
|
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
11835 |
|
|
else
|
11836 |
|
|
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
11837 |
|
|
fi
|
11838 |
|
|
;;
|
11839 |
|
|
pw32*)
|
11840 |
|
|
export_symbols_cmds_CXX="$ltdll_cmds"
|
11841 |
|
|
;;
|
11842 |
|
|
cygwin* | mingw*)
|
11843 |
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
11844 |
|
|
;;
|
11845 |
|
|
*)
|
11846 |
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
11847 |
|
|
;;
|
11848 |
|
|
esac
|
11849 |
|
|
|
11850 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
11851 |
|
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
|
11852 |
|
|
test "$ld_shlibs_CXX" = no && can_build_shared=no
|
11853 |
|
|
|
11854 |
|
|
#
|
11855 |
|
|
# Do we need to explicitly link libc?
|
11856 |
|
|
#
|
11857 |
|
|
case "x$archive_cmds_need_lc_CXX" in
|
11858 |
|
|
x|xyes)
|
11859 |
|
|
# Assume -lc should be added
|
11860 |
|
|
archive_cmds_need_lc_CXX=yes
|
11861 |
|
|
|
11862 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
11863 |
|
|
case $archive_cmds_CXX in
|
11864 |
|
|
*'~'*)
|
11865 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
11866 |
|
|
;;
|
11867 |
|
|
'$CC '*)
|
11868 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
11869 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
11870 |
|
|
# to ld, don't add -lc before -lgcc.
|
11871 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
11872 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
11873 |
|
|
$rm conftest*
|
11874 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
11875 |
|
|
|
11876 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
11877 |
|
|
(eval $ac_compile) 2>&5
|
11878 |
|
|
ac_status=$?
|
11879 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11880 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
11881 |
|
|
soname=conftest
|
11882 |
|
|
lib=conftest
|
11883 |
|
|
libobjs=conftest.$ac_objext
|
11884 |
|
|
deplibs=
|
11885 |
|
|
wl=$lt_prog_compiler_wl_CXX
|
11886 |
|
|
pic_flag=$lt_prog_compiler_pic_CXX
|
11887 |
|
|
compiler_flags=-v
|
11888 |
|
|
linker_flags=-v
|
11889 |
|
|
verstring=
|
11890 |
|
|
output_objdir=.
|
11891 |
|
|
libname=conftest
|
11892 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
|
11893 |
|
|
allow_undefined_flag_CXX=
|
11894 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
11895 |
|
|
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
11896 |
|
|
ac_status=$?
|
11897 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11898 |
|
|
(exit $ac_status); }
|
11899 |
|
|
then
|
11900 |
|
|
archive_cmds_need_lc_CXX=no
|
11901 |
|
|
else
|
11902 |
|
|
archive_cmds_need_lc_CXX=yes
|
11903 |
|
|
fi
|
11904 |
|
|
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
|
11905 |
|
|
else
|
11906 |
|
|
cat conftest.err 1>&5
|
11907 |
|
|
fi
|
11908 |
|
|
$rm conftest*
|
11909 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
|
11910 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
|
11911 |
|
|
;;
|
11912 |
|
|
esac
|
11913 |
|
|
fi
|
11914 |
|
|
;;
|
11915 |
|
|
esac
|
11916 |
|
|
|
11917 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
11918 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
11919 |
|
|
library_names_spec=
|
11920 |
|
|
libname_spec='lib$name'
|
11921 |
|
|
soname_spec=
|
11922 |
|
|
shrext_cmds=".so"
|
11923 |
|
|
postinstall_cmds=
|
11924 |
|
|
postuninstall_cmds=
|
11925 |
|
|
finish_cmds=
|
11926 |
|
|
finish_eval=
|
11927 |
|
|
shlibpath_var=
|
11928 |
|
|
shlibpath_overrides_runpath=unknown
|
11929 |
|
|
version_type=none
|
11930 |
|
|
dynamic_linker="$host_os ld.so"
|
11931 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
11932 |
|
|
|
11933 |
|
|
need_lib_prefix=unknown
|
11934 |
|
|
hardcode_into_libs=no
|
11935 |
|
|
|
11936 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
11937 |
|
|
# flags to be left without arguments
|
11938 |
|
|
need_version=unknown
|
11939 |
|
|
|
11940 |
|
|
case $host_os in
|
11941 |
|
|
aix3*)
|
11942 |
|
|
version_type=linux
|
11943 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
11944 |
|
|
shlibpath_var=LIBPATH
|
11945 |
|
|
|
11946 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
11947 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
11948 |
|
|
;;
|
11949 |
|
|
|
11950 |
|
|
aix4* | aix5*)
|
11951 |
|
|
version_type=linux
|
11952 |
|
|
need_lib_prefix=no
|
11953 |
|
|
need_version=no
|
11954 |
|
|
hardcode_into_libs=yes
|
11955 |
|
|
if test "$host_cpu" = ia64; then
|
11956 |
|
|
# AIX 5 supports IA64
|
11957 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
11958 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
11959 |
|
|
else
|
11960 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
11961 |
|
|
# for dependence libraries. The import file would start with
|
11962 |
|
|
# the line `#! .'. This would cause the generated library to
|
11963 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
11964 |
|
|
# development snapshots of GCC prior to 3.0.
|
11965 |
|
|
case $host_os in
|
11966 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
11967 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
11968 |
|
|
echo ' yes '
|
11969 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
11970 |
|
|
:
|
11971 |
|
|
else
|
11972 |
|
|
can_build_shared=no
|
11973 |
|
|
fi
|
11974 |
|
|
;;
|
11975 |
|
|
esac
|
11976 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
11977 |
|
|
# soname into executable. Probably we can add versioning support to
|
11978 |
|
|
# collect2, so additional links can be useful in future.
|
11979 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
11980 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
11981 |
|
|
# instead of lib.a to let people know that these are not
|
11982 |
|
|
# typical AIX shared libraries.
|
11983 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
11984 |
|
|
else
|
11985 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
11986 |
|
|
# and later when we are not doing run time linking.
|
11987 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
11988 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
11989 |
|
|
fi
|
11990 |
|
|
shlibpath_var=LIBPATH
|
11991 |
|
|
fi
|
11992 |
|
|
;;
|
11993 |
|
|
|
11994 |
|
|
amigaos*)
|
11995 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
11996 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
11997 |
|
|
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'
|
11998 |
|
|
;;
|
11999 |
|
|
|
12000 |
|
|
beos*)
|
12001 |
|
|
library_names_spec='${libname}${shared_ext}'
|
12002 |
|
|
dynamic_linker="$host_os ld.so"
|
12003 |
|
|
shlibpath_var=LIBRARY_PATH
|
12004 |
|
|
;;
|
12005 |
|
|
|
12006 |
|
|
bsdi[45]*)
|
12007 |
|
|
version_type=linux
|
12008 |
|
|
need_version=no
|
12009 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12010 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12011 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
12012 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12013 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
12014 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
12015 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
12016 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
12017 |
|
|
# libtool to hard-code these into programs
|
12018 |
|
|
;;
|
12019 |
|
|
|
12020 |
|
|
cygwin* | mingw* | pw32*)
|
12021 |
|
|
version_type=windows
|
12022 |
|
|
shrext_cmds=".dll"
|
12023 |
|
|
need_version=no
|
12024 |
|
|
need_lib_prefix=no
|
12025 |
|
|
|
12026 |
|
|
case $GCC,$host_os in
|
12027 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
12028 |
|
|
library_names_spec='$libname.dll.a'
|
12029 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
12030 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
12031 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
12032 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
12033 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
12034 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
12035 |
|
|
chmod a+x \$dldir/$dlname'
|
12036 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
12037 |
|
|
dlpath=$dir/\$dldll~
|
12038 |
|
|
$rm \$dlpath'
|
12039 |
|
|
shlibpath_overrides_runpath=yes
|
12040 |
|
|
|
12041 |
|
|
case $host_os in
|
12042 |
|
|
cygwin*)
|
12043 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
12044 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
12045 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
12046 |
|
|
;;
|
12047 |
|
|
mingw*)
|
12048 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
12049 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
12050 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
12051 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
12052 |
|
|
# It is most probably a Windows format PATH printed by
|
12053 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
12054 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
12055 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
12056 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
12057 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
12058 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
12059 |
|
|
else
|
12060 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
12061 |
|
|
fi
|
12062 |
|
|
;;
|
12063 |
|
|
pw32*)
|
12064 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
12065 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
12066 |
|
|
;;
|
12067 |
|
|
esac
|
12068 |
|
|
;;
|
12069 |
|
|
|
12070 |
|
|
*)
|
12071 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
12072 |
|
|
;;
|
12073 |
|
|
esac
|
12074 |
|
|
dynamic_linker='Win32 ld.exe'
|
12075 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
12076 |
|
|
shlibpath_var=PATH
|
12077 |
|
|
;;
|
12078 |
|
|
|
12079 |
|
|
darwin* | rhapsody*)
|
12080 |
|
|
dynamic_linker="$host_os dyld"
|
12081 |
|
|
version_type=darwin
|
12082 |
|
|
need_lib_prefix=no
|
12083 |
|
|
need_version=no
|
12084 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
12085 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
12086 |
|
|
shlibpath_overrides_runpath=yes
|
12087 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
12088 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
12089 |
|
|
|
12090 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
12091 |
|
|
;;
|
12092 |
|
|
|
12093 |
|
|
dgux*)
|
12094 |
|
|
version_type=linux
|
12095 |
|
|
need_lib_prefix=no
|
12096 |
|
|
need_version=no
|
12097 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
12098 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12099 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12100 |
|
|
;;
|
12101 |
|
|
|
12102 |
|
|
freebsd1*)
|
12103 |
|
|
dynamic_linker=no
|
12104 |
|
|
;;
|
12105 |
|
|
|
12106 |
|
|
freebsd* | dragonfly*)
|
12107 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
12108 |
|
|
# versioning mechanism, adjust this.
|
12109 |
|
|
if test -x /usr/bin/objformat; then
|
12110 |
|
|
objformat=`/usr/bin/objformat`
|
12111 |
|
|
else
|
12112 |
|
|
case $host_os in
|
12113 |
|
|
freebsd[123]*) objformat=aout ;;
|
12114 |
|
|
*) objformat=elf ;;
|
12115 |
|
|
esac
|
12116 |
|
|
fi
|
12117 |
|
|
version_type=freebsd-$objformat
|
12118 |
|
|
case $version_type in
|
12119 |
|
|
freebsd-elf*)
|
12120 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
12121 |
|
|
need_version=no
|
12122 |
|
|
need_lib_prefix=no
|
12123 |
|
|
;;
|
12124 |
|
|
freebsd-*)
|
12125 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
12126 |
|
|
need_version=yes
|
12127 |
|
|
;;
|
12128 |
|
|
esac
|
12129 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12130 |
|
|
case $host_os in
|
12131 |
|
|
freebsd2*)
|
12132 |
|
|
shlibpath_overrides_runpath=yes
|
12133 |
|
|
;;
|
12134 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
12135 |
|
|
shlibpath_overrides_runpath=yes
|
12136 |
|
|
hardcode_into_libs=yes
|
12137 |
|
|
;;
|
12138 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
12139 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
12140 |
|
|
shlibpath_overrides_runpath=no
|
12141 |
|
|
hardcode_into_libs=yes
|
12142 |
|
|
;;
|
12143 |
|
|
*) # from 4.6 on, and DragonFly
|
12144 |
|
|
shlibpath_overrides_runpath=yes
|
12145 |
|
|
hardcode_into_libs=yes
|
12146 |
|
|
;;
|
12147 |
|
|
esac
|
12148 |
|
|
;;
|
12149 |
|
|
|
12150 |
|
|
gnu*)
|
12151 |
|
|
version_type=linux
|
12152 |
|
|
need_lib_prefix=no
|
12153 |
|
|
need_version=no
|
12154 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
12155 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12156 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12157 |
|
|
hardcode_into_libs=yes
|
12158 |
|
|
;;
|
12159 |
|
|
|
12160 |
|
|
hpux9* | hpux10* | hpux11*)
|
12161 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
12162 |
|
|
# link against other versions.
|
12163 |
|
|
version_type=sunos
|
12164 |
|
|
need_lib_prefix=no
|
12165 |
|
|
need_version=no
|
12166 |
|
|
case $host_cpu in
|
12167 |
|
|
ia64*)
|
12168 |
|
|
shrext_cmds='.so'
|
12169 |
|
|
hardcode_into_libs=yes
|
12170 |
|
|
dynamic_linker="$host_os dld.so"
|
12171 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12172 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
12173 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12174 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12175 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
12176 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
12177 |
|
|
else
|
12178 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
12179 |
|
|
fi
|
12180 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
12181 |
|
|
;;
|
12182 |
|
|
hppa*64*)
|
12183 |
|
|
shrext_cmds='.sl'
|
12184 |
|
|
hardcode_into_libs=yes
|
12185 |
|
|
dynamic_linker="$host_os dld.sl"
|
12186 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
12187 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
12188 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12189 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12190 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
12191 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
12192 |
|
|
;;
|
12193 |
|
|
*)
|
12194 |
|
|
shrext_cmds='.sl'
|
12195 |
|
|
dynamic_linker="$host_os dld.sl"
|
12196 |
|
|
shlibpath_var=SHLIB_PATH
|
12197 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
12198 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12199 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12200 |
|
|
;;
|
12201 |
|
|
esac
|
12202 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
12203 |
|
|
postinstall_cmds='chmod 555 $lib'
|
12204 |
|
|
;;
|
12205 |
|
|
|
12206 |
|
|
interix[3-9]*)
|
12207 |
|
|
version_type=linux
|
12208 |
|
|
need_lib_prefix=no
|
12209 |
|
|
need_version=no
|
12210 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
12211 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12212 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
12213 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12214 |
|
|
shlibpath_overrides_runpath=no
|
12215 |
|
|
hardcode_into_libs=yes
|
12216 |
|
|
;;
|
12217 |
|
|
|
12218 |
|
|
irix5* | irix6* | nonstopux*)
|
12219 |
|
|
case $host_os in
|
12220 |
|
|
nonstopux*) version_type=nonstopux ;;
|
12221 |
|
|
*)
|
12222 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
12223 |
|
|
version_type=linux
|
12224 |
|
|
else
|
12225 |
|
|
version_type=irix
|
12226 |
|
|
fi ;;
|
12227 |
|
|
esac
|
12228 |
|
|
need_lib_prefix=no
|
12229 |
|
|
need_version=no
|
12230 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12231 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
12232 |
|
|
case $host_os in
|
12233 |
|
|
irix5* | nonstopux*)
|
12234 |
|
|
libsuff= shlibsuff=
|
12235 |
|
|
;;
|
12236 |
|
|
*)
|
12237 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
12238 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
12239 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
12240 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
12241 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
12242 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
12243 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
12244 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
12245 |
|
|
esac
|
12246 |
|
|
;;
|
12247 |
|
|
esac
|
12248 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
12249 |
|
|
shlibpath_overrides_runpath=no
|
12250 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
12251 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
12252 |
|
|
hardcode_into_libs=yes
|
12253 |
|
|
;;
|
12254 |
|
|
|
12255 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
12256 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
12257 |
|
|
dynamic_linker=no
|
12258 |
|
|
;;
|
12259 |
|
|
|
12260 |
|
|
# This must be Linux ELF.
|
12261 |
|
|
linux* | k*bsd*-gnu)
|
12262 |
|
|
version_type=linux
|
12263 |
|
|
need_lib_prefix=no
|
12264 |
|
|
need_version=no
|
12265 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12266 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12267 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
12268 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12269 |
|
|
shlibpath_overrides_runpath=no
|
12270 |
|
|
# This implies no fast_install, which is unacceptable.
|
12271 |
|
|
# Some rework will be needed to allow for fast_install
|
12272 |
|
|
# before this can be enabled.
|
12273 |
|
|
hardcode_into_libs=yes
|
12274 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
12275 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
12276 |
|
|
|
12277 |
|
|
# Append ld.so.conf contents to the search path
|
12278 |
|
|
if test -f /etc/ld.so.conf; then
|
12279 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
12280 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
12281 |
|
|
fi
|
12282 |
|
|
|
12283 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
12284 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
12285 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
12286 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
12287 |
|
|
# people can always --disable-shared, the test was removed, and we
|
12288 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
12289 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
12290 |
|
|
;;
|
12291 |
|
|
|
12292 |
|
|
netbsd*)
|
12293 |
|
|
version_type=sunos
|
12294 |
|
|
need_lib_prefix=no
|
12295 |
|
|
need_version=no
|
12296 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
12297 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
12298 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
12299 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
12300 |
|
|
else
|
12301 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
12302 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12303 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
12304 |
|
|
fi
|
12305 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12306 |
|
|
shlibpath_overrides_runpath=yes
|
12307 |
|
|
hardcode_into_libs=yes
|
12308 |
|
|
;;
|
12309 |
|
|
|
12310 |
|
|
newsos6)
|
12311 |
|
|
version_type=linux
|
12312 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12313 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12314 |
|
|
shlibpath_overrides_runpath=yes
|
12315 |
|
|
;;
|
12316 |
|
|
|
12317 |
|
|
nto-qnx*)
|
12318 |
|
|
version_type=linux
|
12319 |
|
|
need_lib_prefix=no
|
12320 |
|
|
need_version=no
|
12321 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12322 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12323 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12324 |
|
|
shlibpath_overrides_runpath=yes
|
12325 |
|
|
;;
|
12326 |
|
|
|
12327 |
|
|
openbsd*)
|
12328 |
|
|
version_type=sunos
|
12329 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
12330 |
|
|
need_lib_prefix=no
|
12331 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
12332 |
|
|
case $host_os in
|
12333 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
12334 |
|
|
*) need_version=no ;;
|
12335 |
|
|
esac
|
12336 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
12337 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
12338 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12339 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
12340 |
|
|
case $host_os in
|
12341 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
12342 |
|
|
shlibpath_overrides_runpath=no
|
12343 |
|
|
;;
|
12344 |
|
|
*)
|
12345 |
|
|
shlibpath_overrides_runpath=yes
|
12346 |
|
|
;;
|
12347 |
|
|
esac
|
12348 |
|
|
else
|
12349 |
|
|
shlibpath_overrides_runpath=yes
|
12350 |
|
|
fi
|
12351 |
|
|
;;
|
12352 |
|
|
|
12353 |
|
|
os2*)
|
12354 |
|
|
libname_spec='$name'
|
12355 |
|
|
shrext_cmds=".dll"
|
12356 |
|
|
need_lib_prefix=no
|
12357 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
12358 |
|
|
dynamic_linker='OS/2 ld.exe'
|
12359 |
|
|
shlibpath_var=LIBPATH
|
12360 |
|
|
;;
|
12361 |
|
|
|
12362 |
|
|
osf3* | osf4* | osf5*)
|
12363 |
|
|
version_type=osf
|
12364 |
|
|
need_lib_prefix=no
|
12365 |
|
|
need_version=no
|
12366 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12367 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12368 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12369 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
12370 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
12371 |
|
|
;;
|
12372 |
|
|
|
12373 |
|
|
rdos*)
|
12374 |
|
|
dynamic_linker=no
|
12375 |
|
|
;;
|
12376 |
|
|
|
12377 |
|
|
solaris*)
|
12378 |
|
|
version_type=linux
|
12379 |
|
|
need_lib_prefix=no
|
12380 |
|
|
need_version=no
|
12381 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12382 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12383 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12384 |
|
|
shlibpath_overrides_runpath=yes
|
12385 |
|
|
hardcode_into_libs=yes
|
12386 |
|
|
# ldd complains unless libraries are executable
|
12387 |
|
|
postinstall_cmds='chmod +x $lib'
|
12388 |
|
|
;;
|
12389 |
|
|
|
12390 |
|
|
sunos4*)
|
12391 |
|
|
version_type=sunos
|
12392 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
12393 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
12394 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12395 |
|
|
shlibpath_overrides_runpath=yes
|
12396 |
|
|
if test "$with_gnu_ld" = yes; then
|
12397 |
|
|
need_lib_prefix=no
|
12398 |
|
|
fi
|
12399 |
|
|
need_version=yes
|
12400 |
|
|
;;
|
12401 |
|
|
|
12402 |
|
|
sysv4 | sysv4.3*)
|
12403 |
|
|
version_type=linux
|
12404 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12405 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12406 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12407 |
|
|
case $host_vendor in
|
12408 |
|
|
sni)
|
12409 |
|
|
shlibpath_overrides_runpath=no
|
12410 |
|
|
need_lib_prefix=no
|
12411 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
12412 |
|
|
runpath_var=LD_RUN_PATH
|
12413 |
|
|
;;
|
12414 |
|
|
siemens)
|
12415 |
|
|
need_lib_prefix=no
|
12416 |
|
|
;;
|
12417 |
|
|
motorola)
|
12418 |
|
|
need_lib_prefix=no
|
12419 |
|
|
need_version=no
|
12420 |
|
|
shlibpath_overrides_runpath=no
|
12421 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
12422 |
|
|
;;
|
12423 |
|
|
esac
|
12424 |
|
|
;;
|
12425 |
|
|
|
12426 |
|
|
sysv4*MP*)
|
12427 |
|
|
if test -d /usr/nec ;then
|
12428 |
|
|
version_type=linux
|
12429 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
12430 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
12431 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12432 |
|
|
fi
|
12433 |
|
|
;;
|
12434 |
|
|
|
12435 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
12436 |
|
|
version_type=freebsd-elf
|
12437 |
|
|
need_lib_prefix=no
|
12438 |
|
|
need_version=no
|
12439 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
12440 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12441 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12442 |
|
|
hardcode_into_libs=yes
|
12443 |
|
|
if test "$with_gnu_ld" = yes; then
|
12444 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
12445 |
|
|
shlibpath_overrides_runpath=no
|
12446 |
|
|
else
|
12447 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
12448 |
|
|
shlibpath_overrides_runpath=yes
|
12449 |
|
|
case $host_os in
|
12450 |
|
|
sco3.2v5*)
|
12451 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
12452 |
|
|
;;
|
12453 |
|
|
esac
|
12454 |
|
|
fi
|
12455 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
12456 |
|
|
;;
|
12457 |
|
|
|
12458 |
|
|
uts4*)
|
12459 |
|
|
version_type=linux
|
12460 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
12461 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
12462 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
12463 |
|
|
;;
|
12464 |
|
|
|
12465 |
|
|
*)
|
12466 |
|
|
dynamic_linker=no
|
12467 |
|
|
;;
|
12468 |
|
|
esac
|
12469 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
12470 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
12471 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
12472 |
|
|
|
12473 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
12474 |
|
|
if test "$GCC" = yes; then
|
12475 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
12476 |
|
|
fi
|
12477 |
|
|
|
12478 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
12479 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
12480 |
|
|
hardcode_action_CXX=
|
12481 |
|
|
if test -n "$hardcode_libdir_flag_spec_CXX" || \
|
12482 |
|
|
test -n "$runpath_var_CXX" || \
|
12483 |
|
|
test "X$hardcode_automatic_CXX" = "Xyes" ; then
|
12484 |
|
|
|
12485 |
|
|
# We can hardcode non-existant directories.
|
12486 |
|
|
if test "$hardcode_direct_CXX" != no &&
|
12487 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
12488 |
|
|
# have to relink, otherwise we might link with an installed library
|
12489 |
|
|
# when we should be linking with a yet-to-be-installed one
|
12490 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
|
12491 |
|
|
test "$hardcode_minus_L_CXX" != no; then
|
12492 |
|
|
# Linking always hardcodes the temporary library directory.
|
12493 |
|
|
hardcode_action_CXX=relink
|
12494 |
|
|
else
|
12495 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
12496 |
|
|
hardcode_action_CXX=immediate
|
12497 |
|
|
fi
|
12498 |
|
|
else
|
12499 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
12500 |
|
|
# directories.
|
12501 |
|
|
hardcode_action_CXX=unsupported
|
12502 |
|
|
fi
|
12503 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
|
12504 |
|
|
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
|
12505 |
|
|
|
12506 |
|
|
if test "$hardcode_action_CXX" = relink; then
|
12507 |
|
|
# Fast installation is not supported
|
12508 |
|
|
enable_fast_install=no
|
12509 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
12510 |
|
|
test "$enable_shared" = no; then
|
12511 |
|
|
# Fast installation is not necessary
|
12512 |
|
|
enable_fast_install=needless
|
12513 |
|
|
fi
|
12514 |
|
|
|
12515 |
|
|
|
12516 |
|
|
# The else clause should only fire when bootstrapping the
|
12517 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
12518 |
|
|
# with your package, and you will get complaints that there are
|
12519 |
|
|
# no rules to generate ltmain.sh.
|
12520 |
|
|
if test -f "$ltmain"; then
|
12521 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
12522 |
|
|
# without removal of \ escapes.
|
12523 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
12524 |
|
|
setopt NO_GLOB_SUBST
|
12525 |
|
|
fi
|
12526 |
|
|
# Now quote all the things that may contain metacharacters while being
|
12527 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
12528 |
|
|
# variables and quote the copies for generation of the libtool script.
|
12529 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
12530 |
|
|
SED SHELL STRIP \
|
12531 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
12532 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
12533 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
12534 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
12535 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
12536 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
12537 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
12538 |
|
|
compiler_CXX \
|
12539 |
|
|
CC_CXX \
|
12540 |
|
|
LD_CXX \
|
12541 |
|
|
lt_prog_compiler_wl_CXX \
|
12542 |
|
|
lt_prog_compiler_pic_CXX \
|
12543 |
|
|
lt_prog_compiler_static_CXX \
|
12544 |
|
|
lt_prog_compiler_no_builtin_flag_CXX \
|
12545 |
|
|
export_dynamic_flag_spec_CXX \
|
12546 |
|
|
thread_safe_flag_spec_CXX \
|
12547 |
|
|
whole_archive_flag_spec_CXX \
|
12548 |
|
|
enable_shared_with_static_runtimes_CXX \
|
12549 |
|
|
old_archive_cmds_CXX \
|
12550 |
|
|
old_archive_from_new_cmds_CXX \
|
12551 |
|
|
predep_objects_CXX \
|
12552 |
|
|
postdep_objects_CXX \
|
12553 |
|
|
predeps_CXX \
|
12554 |
|
|
postdeps_CXX \
|
12555 |
|
|
compiler_lib_search_path_CXX \
|
12556 |
|
|
archive_cmds_CXX \
|
12557 |
|
|
archive_expsym_cmds_CXX \
|
12558 |
|
|
postinstall_cmds_CXX \
|
12559 |
|
|
postuninstall_cmds_CXX \
|
12560 |
|
|
old_archive_from_expsyms_cmds_CXX \
|
12561 |
|
|
allow_undefined_flag_CXX \
|
12562 |
|
|
no_undefined_flag_CXX \
|
12563 |
|
|
export_symbols_cmds_CXX \
|
12564 |
|
|
hardcode_libdir_flag_spec_CXX \
|
12565 |
|
|
hardcode_libdir_flag_spec_ld_CXX \
|
12566 |
|
|
hardcode_libdir_separator_CXX \
|
12567 |
|
|
hardcode_automatic_CXX \
|
12568 |
|
|
module_cmds_CXX \
|
12569 |
|
|
module_expsym_cmds_CXX \
|
12570 |
|
|
lt_cv_prog_compiler_c_o_CXX \
|
12571 |
|
|
fix_srcfile_path_CXX \
|
12572 |
|
|
exclude_expsyms_CXX \
|
12573 |
|
|
include_expsyms_CXX; do
|
12574 |
|
|
|
12575 |
|
|
case $var in
|
12576 |
|
|
old_archive_cmds_CXX | \
|
12577 |
|
|
old_archive_from_new_cmds_CXX | \
|
12578 |
|
|
archive_cmds_CXX | \
|
12579 |
|
|
archive_expsym_cmds_CXX | \
|
12580 |
|
|
module_cmds_CXX | \
|
12581 |
|
|
module_expsym_cmds_CXX | \
|
12582 |
|
|
old_archive_from_expsyms_cmds_CXX | \
|
12583 |
|
|
export_symbols_cmds_CXX | \
|
12584 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
12585 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
12586 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
12587 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
12588 |
|
|
# Double-quote double-evaled strings.
|
12589 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
12590 |
|
|
;;
|
12591 |
|
|
*)
|
12592 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
12593 |
|
|
;;
|
12594 |
|
|
esac
|
12595 |
|
|
done
|
12596 |
|
|
|
12597 |
|
|
case $lt_echo in
|
12598 |
|
|
*'\$0 --fallback-echo"')
|
12599 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
12600 |
|
|
;;
|
12601 |
|
|
esac
|
12602 |
|
|
|
12603 |
|
|
cfgfile="$ofile"
|
12604 |
|
|
|
12605 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
12606 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
12607 |
|
|
|
12608 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
12609 |
|
|
|
12610 |
|
|
# Shell to use when invoking shell scripts.
|
12611 |
|
|
SHELL=$lt_SHELL
|
12612 |
|
|
|
12613 |
|
|
# Whether or not to build shared libraries.
|
12614 |
|
|
build_libtool_libs=$enable_shared
|
12615 |
|
|
|
12616 |
|
|
# Whether or not to build static libraries.
|
12617 |
|
|
build_old_libs=$enable_static
|
12618 |
|
|
|
12619 |
|
|
# Whether or not to add -lc for building shared libraries.
|
12620 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_CXX
|
12621 |
|
|
|
12622 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
12623 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
|
12624 |
|
|
|
12625 |
|
|
# Whether or not to optimize for fast installation.
|
12626 |
|
|
fast_install=$enable_fast_install
|
12627 |
|
|
|
12628 |
|
|
# The host system.
|
12629 |
|
|
host_alias=$host_alias
|
12630 |
|
|
host=$host
|
12631 |
|
|
host_os=$host_os
|
12632 |
|
|
|
12633 |
|
|
# The build system.
|
12634 |
|
|
build_alias=$build_alias
|
12635 |
|
|
build=$build
|
12636 |
|
|
build_os=$build_os
|
12637 |
|
|
|
12638 |
|
|
# An echo program that does not interpret backslashes.
|
12639 |
|
|
echo=$lt_echo
|
12640 |
|
|
|
12641 |
|
|
# The archiver.
|
12642 |
|
|
AR=$lt_AR
|
12643 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
12644 |
|
|
|
12645 |
|
|
# A C compiler.
|
12646 |
|
|
LTCC=$lt_LTCC
|
12647 |
|
|
|
12648 |
|
|
# LTCC compiler flags.
|
12649 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
12650 |
|
|
|
12651 |
|
|
# A language-specific compiler.
|
12652 |
|
|
CC=$lt_compiler_CXX
|
12653 |
|
|
|
12654 |
|
|
# Is the compiler the GNU C compiler?
|
12655 |
|
|
with_gcc=$GCC_CXX
|
12656 |
|
|
|
12657 |
|
|
# An ERE matcher.
|
12658 |
|
|
EGREP=$lt_EGREP
|
12659 |
|
|
|
12660 |
|
|
# The linker used to build libraries.
|
12661 |
|
|
LD=$lt_LD_CXX
|
12662 |
|
|
|
12663 |
|
|
# Whether we need hard or soft links.
|
12664 |
|
|
LN_S=$lt_LN_S
|
12665 |
|
|
|
12666 |
|
|
# A BSD-compatible nm program.
|
12667 |
|
|
NM=$lt_NM
|
12668 |
|
|
|
12669 |
|
|
# A symbol stripping program
|
12670 |
|
|
STRIP=$lt_STRIP
|
12671 |
|
|
|
12672 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
12673 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
12674 |
|
|
|
12675 |
|
|
# Used on cygwin: DLL creation program.
|
12676 |
|
|
DLLTOOL="$DLLTOOL"
|
12677 |
|
|
|
12678 |
|
|
# Used on cygwin: object dumper.
|
12679 |
|
|
OBJDUMP="$OBJDUMP"
|
12680 |
|
|
|
12681 |
|
|
# Used on cygwin: assembler.
|
12682 |
|
|
AS="$AS"
|
12683 |
|
|
|
12684 |
|
|
# The name of the directory that contains temporary libtool files.
|
12685 |
|
|
objdir=$objdir
|
12686 |
|
|
|
12687 |
|
|
# How to create reloadable object files.
|
12688 |
|
|
reload_flag=$lt_reload_flag
|
12689 |
|
|
reload_cmds=$lt_reload_cmds
|
12690 |
|
|
|
12691 |
|
|
# How to pass a linker flag through the compiler.
|
12692 |
|
|
wl=$lt_lt_prog_compiler_wl_CXX
|
12693 |
|
|
|
12694 |
|
|
# Object file suffix (normally "o").
|
12695 |
|
|
objext="$ac_objext"
|
12696 |
|
|
|
12697 |
|
|
# Old archive suffix (normally "a").
|
12698 |
|
|
libext="$libext"
|
12699 |
|
|
|
12700 |
|
|
# Shared library suffix (normally ".so").
|
12701 |
|
|
shrext_cmds='$shrext_cmds'
|
12702 |
|
|
|
12703 |
|
|
# Executable file suffix (normally "").
|
12704 |
|
|
exeext="$exeext"
|
12705 |
|
|
|
12706 |
|
|
# Additional compiler flags for building library objects.
|
12707 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_CXX
|
12708 |
|
|
pic_mode=$pic_mode
|
12709 |
|
|
|
12710 |
|
|
# What is the maximum length of a command?
|
12711 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
12712 |
|
|
|
12713 |
|
|
# Does compiler simultaneously support -c and -o options?
|
12714 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
|
12715 |
|
|
|
12716 |
|
|
# Must we lock files when doing compilation?
|
12717 |
|
|
need_locks=$lt_need_locks
|
12718 |
|
|
|
12719 |
|
|
# Do we need the lib prefix for modules?
|
12720 |
|
|
need_lib_prefix=$need_lib_prefix
|
12721 |
|
|
|
12722 |
|
|
# Do we need a version for libraries?
|
12723 |
|
|
need_version=$need_version
|
12724 |
|
|
|
12725 |
|
|
# Whether dlopen is supported.
|
12726 |
|
|
dlopen_support=$enable_dlopen
|
12727 |
|
|
|
12728 |
|
|
# Whether dlopen of programs is supported.
|
12729 |
|
|
dlopen_self=$enable_dlopen_self
|
12730 |
|
|
|
12731 |
|
|
# Whether dlopen of statically linked programs is supported.
|
12732 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
12733 |
|
|
|
12734 |
|
|
# Compiler flag to prevent dynamic linking.
|
12735 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_CXX
|
12736 |
|
|
|
12737 |
|
|
# Compiler flag to turn off builtin functions.
|
12738 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
12739 |
|
|
|
12740 |
|
|
# Compiler flag to allow reflexive dlopens.
|
12741 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
|
12742 |
|
|
|
12743 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
12744 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
|
12745 |
|
|
|
12746 |
|
|
# Compiler flag to generate thread-safe objects.
|
12747 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
|
12748 |
|
|
|
12749 |
|
|
# Library versioning type.
|
12750 |
|
|
version_type=$version_type
|
12751 |
|
|
|
12752 |
|
|
# Format of library name prefix.
|
12753 |
|
|
libname_spec=$lt_libname_spec
|
12754 |
|
|
|
12755 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
12756 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
12757 |
|
|
library_names_spec=$lt_library_names_spec
|
12758 |
|
|
|
12759 |
|
|
# The coded name of the library, if different from the real name.
|
12760 |
|
|
soname_spec=$lt_soname_spec
|
12761 |
|
|
|
12762 |
|
|
# Commands used to build and install an old-style archive.
|
12763 |
|
|
RANLIB=$lt_RANLIB
|
12764 |
|
|
old_archive_cmds=$lt_old_archive_cmds_CXX
|
12765 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
12766 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
12767 |
|
|
|
12768 |
|
|
# Create an old-style archive from a shared archive.
|
12769 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
|
12770 |
|
|
|
12771 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
12772 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
|
12773 |
|
|
|
12774 |
|
|
# Commands used to build and install a shared archive.
|
12775 |
|
|
archive_cmds=$lt_archive_cmds_CXX
|
12776 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
|
12777 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
12778 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
12779 |
|
|
|
12780 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
12781 |
|
|
module_cmds=$lt_module_cmds_CXX
|
12782 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_CXX
|
12783 |
|
|
|
12784 |
|
|
# Commands to strip libraries.
|
12785 |
|
|
old_striplib=$lt_old_striplib
|
12786 |
|
|
striplib=$lt_striplib
|
12787 |
|
|
|
12788 |
|
|
# Dependencies to place before the objects being linked to create a
|
12789 |
|
|
# shared library.
|
12790 |
|
|
predep_objects=$lt_predep_objects_CXX
|
12791 |
|
|
|
12792 |
|
|
# Dependencies to place after the objects being linked to create a
|
12793 |
|
|
# shared library.
|
12794 |
|
|
postdep_objects=$lt_postdep_objects_CXX
|
12795 |
|
|
|
12796 |
|
|
# Dependencies to place before the objects being linked to create a
|
12797 |
|
|
# shared library.
|
12798 |
|
|
predeps=$lt_predeps_CXX
|
12799 |
|
|
|
12800 |
|
|
# Dependencies to place after the objects being linked to create a
|
12801 |
|
|
# shared library.
|
12802 |
|
|
postdeps=$lt_postdeps_CXX
|
12803 |
|
|
|
12804 |
|
|
# The library search path used internally by the compiler when linking
|
12805 |
|
|
# a shared library.
|
12806 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
|
12807 |
|
|
|
12808 |
|
|
# Method to check whether dependent libraries are shared objects.
|
12809 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
12810 |
|
|
|
12811 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
12812 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
12813 |
|
|
|
12814 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
12815 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_CXX
|
12816 |
|
|
|
12817 |
|
|
# Flag that forces no undefined symbols.
|
12818 |
|
|
no_undefined_flag=$lt_no_undefined_flag_CXX
|
12819 |
|
|
|
12820 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
12821 |
|
|
finish_cmds=$lt_finish_cmds
|
12822 |
|
|
|
12823 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
12824 |
|
|
finish_eval=$lt_finish_eval
|
12825 |
|
|
|
12826 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
12827 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
12828 |
|
|
|
12829 |
|
|
# Transform the output of nm in a proper C declaration
|
12830 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
12831 |
|
|
|
12832 |
|
|
# Transform the output of nm in a C name address pair
|
12833 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
12834 |
|
|
|
12835 |
|
|
# This is the shared library runtime path variable.
|
12836 |
|
|
runpath_var=$runpath_var
|
12837 |
|
|
|
12838 |
|
|
# This is the shared library path variable.
|
12839 |
|
|
shlibpath_var=$shlibpath_var
|
12840 |
|
|
|
12841 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
12842 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
12843 |
|
|
|
12844 |
|
|
# How to hardcode a shared library path into an executable.
|
12845 |
|
|
hardcode_action=$hardcode_action_CXX
|
12846 |
|
|
|
12847 |
|
|
# Whether we should hardcode library paths into libraries.
|
12848 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
12849 |
|
|
|
12850 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
12851 |
|
|
# This must work even if \$libdir does not exist.
|
12852 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
|
12853 |
|
|
|
12854 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
12855 |
|
|
# a binary during linking. This must work even if \$libdir does
|
12856 |
|
|
# not exist.
|
12857 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
|
12858 |
|
|
|
12859 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
12860 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
|
12861 |
|
|
|
12862 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
12863 |
|
|
# resulting binary.
|
12864 |
|
|
hardcode_direct=$hardcode_direct_CXX
|
12865 |
|
|
|
12866 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
12867 |
|
|
# resulting binary.
|
12868 |
|
|
hardcode_minus_L=$hardcode_minus_L_CXX
|
12869 |
|
|
|
12870 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
12871 |
|
|
# the resulting binary.
|
12872 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
|
12873 |
|
|
|
12874 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
12875 |
|
|
# and all subsequent libraries and executables linked against it.
|
12876 |
|
|
hardcode_automatic=$hardcode_automatic_CXX
|
12877 |
|
|
|
12878 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
12879 |
|
|
# restored at relink time.
|
12880 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
12881 |
|
|
|
12882 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
12883 |
|
|
link_all_deplibs=$link_all_deplibs_CXX
|
12884 |
|
|
|
12885 |
|
|
# Compile-time system search path for libraries
|
12886 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
12887 |
|
|
|
12888 |
|
|
# Run-time system search path for libraries
|
12889 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
12890 |
|
|
|
12891 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
12892 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
12893 |
|
|
|
12894 |
|
|
# Set to yes if exported symbols are required.
|
12895 |
|
|
always_export_symbols=$always_export_symbols_CXX
|
12896 |
|
|
|
12897 |
|
|
# The commands to list exported symbols.
|
12898 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_CXX
|
12899 |
|
|
|
12900 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
12901 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
12902 |
|
|
|
12903 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
12904 |
|
|
exclude_expsyms=$lt_exclude_expsyms_CXX
|
12905 |
|
|
|
12906 |
|
|
# Symbols that must always be exported.
|
12907 |
|
|
include_expsyms=$lt_include_expsyms_CXX
|
12908 |
|
|
|
12909 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
12910 |
|
|
|
12911 |
|
|
__EOF__
|
12912 |
|
|
|
12913 |
|
|
|
12914 |
|
|
else
|
12915 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
12916 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
12917 |
|
|
# libtool script then.
|
12918 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
12919 |
|
|
if test -f "$ltmain_in"; then
|
12920 |
|
|
test -f Makefile && make "$ltmain"
|
12921 |
|
|
fi
|
12922 |
|
|
fi
|
12923 |
|
|
|
12924 |
|
|
|
12925 |
|
|
ac_ext=c
|
12926 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
12927 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
12928 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
12929 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
12930 |
|
|
|
12931 |
|
|
CC=$lt_save_CC
|
12932 |
|
|
LDCXX=$LD
|
12933 |
|
|
LD=$lt_save_LD
|
12934 |
|
|
GCC=$lt_save_GCC
|
12935 |
|
|
with_gnu_ldcxx=$with_gnu_ld
|
12936 |
|
|
with_gnu_ld=$lt_save_with_gnu_ld
|
12937 |
|
|
lt_cv_path_LDCXX=$lt_cv_path_LD
|
12938 |
|
|
lt_cv_path_LD=$lt_save_path_LD
|
12939 |
|
|
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
12940 |
|
|
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
12941 |
|
|
|
12942 |
|
|
else
|
12943 |
|
|
tagname=""
|
12944 |
|
|
fi
|
12945 |
|
|
;;
|
12946 |
|
|
|
12947 |
|
|
F77)
|
12948 |
|
|
if test -n "$F77" && test "X$F77" != "Xno"; then
|
12949 |
|
|
|
12950 |
|
|
ac_ext=f
|
12951 |
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
12952 |
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
12953 |
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
12954 |
|
|
|
12955 |
|
|
|
12956 |
|
|
archive_cmds_need_lc_F77=no
|
12957 |
|
|
allow_undefined_flag_F77=
|
12958 |
|
|
always_export_symbols_F77=no
|
12959 |
|
|
archive_expsym_cmds_F77=
|
12960 |
|
|
export_dynamic_flag_spec_F77=
|
12961 |
|
|
hardcode_direct_F77=no
|
12962 |
|
|
hardcode_libdir_flag_spec_F77=
|
12963 |
|
|
hardcode_libdir_flag_spec_ld_F77=
|
12964 |
|
|
hardcode_libdir_separator_F77=
|
12965 |
|
|
hardcode_minus_L_F77=no
|
12966 |
|
|
hardcode_automatic_F77=no
|
12967 |
|
|
module_cmds_F77=
|
12968 |
|
|
module_expsym_cmds_F77=
|
12969 |
|
|
link_all_deplibs_F77=unknown
|
12970 |
|
|
old_archive_cmds_F77=$old_archive_cmds
|
12971 |
|
|
no_undefined_flag_F77=
|
12972 |
|
|
whole_archive_flag_spec_F77=
|
12973 |
|
|
enable_shared_with_static_runtimes_F77=no
|
12974 |
|
|
|
12975 |
|
|
# Source file extension for f77 test sources.
|
12976 |
|
|
ac_ext=f
|
12977 |
|
|
|
12978 |
|
|
# Object file extension for compiled f77 test sources.
|
12979 |
|
|
objext=o
|
12980 |
|
|
objext_F77=$objext
|
12981 |
|
|
|
12982 |
|
|
# Code to be used in simple compile tests
|
12983 |
|
|
lt_simple_compile_test_code="\
|
12984 |
|
|
subroutine t
|
12985 |
|
|
return
|
12986 |
|
|
end
|
12987 |
|
|
"
|
12988 |
|
|
|
12989 |
|
|
# Code to be used in simple link tests
|
12990 |
|
|
lt_simple_link_test_code="\
|
12991 |
|
|
program t
|
12992 |
|
|
end
|
12993 |
|
|
"
|
12994 |
|
|
|
12995 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
12996 |
|
|
|
12997 |
|
|
# If no C compiler was specified, use CC.
|
12998 |
|
|
LTCC=${LTCC-"$CC"}
|
12999 |
|
|
|
13000 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
13001 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
13002 |
|
|
|
13003 |
|
|
# Allow CC to be a program name with arguments.
|
13004 |
|
|
compiler=$CC
|
13005 |
|
|
|
13006 |
|
|
|
13007 |
|
|
# save warnings/boilerplate of simple test code
|
13008 |
|
|
ac_outfile=conftest.$ac_objext
|
13009 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
13010 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
13011 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
13012 |
|
|
$rm conftest*
|
13013 |
|
|
|
13014 |
|
|
ac_outfile=conftest.$ac_objext
|
13015 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
13016 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
13017 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
13018 |
|
|
$rm conftest*
|
13019 |
|
|
|
13020 |
|
|
|
13021 |
|
|
# Allow CC to be a program name with arguments.
|
13022 |
|
|
lt_save_CC="$CC"
|
13023 |
|
|
CC=${F77-"f77"}
|
13024 |
|
|
compiler=$CC
|
13025 |
|
|
compiler_F77=$CC
|
13026 |
|
|
for cc_temp in $compiler""; do
|
13027 |
|
|
case $cc_temp in
|
13028 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
13029 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
13030 |
|
|
\-*) ;;
|
13031 |
|
|
*) break;;
|
13032 |
|
|
esac
|
13033 |
|
|
done
|
13034 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
13035 |
|
|
|
13036 |
|
|
|
13037 |
|
|
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
13038 |
|
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
|
13039 |
|
|
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
13040 |
|
|
echo "${ECHO_T}$can_build_shared" >&6; }
|
13041 |
|
|
|
13042 |
|
|
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
13043 |
|
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
|
13044 |
|
|
test "$can_build_shared" = "no" && enable_shared=no
|
13045 |
|
|
|
13046 |
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
13047 |
|
|
# are all built from PIC.
|
13048 |
|
|
case $host_os in
|
13049 |
|
|
aix3*)
|
13050 |
|
|
test "$enable_shared" = yes && enable_static=no
|
13051 |
|
|
if test -n "$RANLIB"; then
|
13052 |
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
13053 |
|
|
postinstall_cmds='$RANLIB $lib'
|
13054 |
|
|
fi
|
13055 |
|
|
;;
|
13056 |
|
|
aix4* | aix5*)
|
13057 |
|
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
13058 |
|
|
test "$enable_shared" = yes && enable_static=no
|
13059 |
|
|
fi
|
13060 |
|
|
;;
|
13061 |
|
|
esac
|
13062 |
|
|
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
|
13063 |
|
|
echo "${ECHO_T}$enable_shared" >&6; }
|
13064 |
|
|
|
13065 |
|
|
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
13066 |
|
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
|
13067 |
|
|
# Make sure either enable_shared or enable_static is yes.
|
13068 |
|
|
test "$enable_shared" = yes || enable_static=yes
|
13069 |
|
|
{ echo "$as_me:$LINENO: result: $enable_static" >&5
|
13070 |
|
|
echo "${ECHO_T}$enable_static" >&6; }
|
13071 |
|
|
|
13072 |
|
|
GCC_F77="$G77"
|
13073 |
|
|
LD_F77="$LD"
|
13074 |
|
|
|
13075 |
|
|
lt_prog_compiler_wl_F77=
|
13076 |
|
|
lt_prog_compiler_pic_F77=
|
13077 |
|
|
lt_prog_compiler_static_F77=
|
13078 |
|
|
|
13079 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
13080 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
13081 |
|
|
|
13082 |
|
|
if test "$GCC" = yes; then
|
13083 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13084 |
|
|
lt_prog_compiler_static_F77='-static'
|
13085 |
|
|
|
13086 |
|
|
case $host_os in
|
13087 |
|
|
aix*)
|
13088 |
|
|
# All AIX code is PIC.
|
13089 |
|
|
if test "$host_cpu" = ia64; then
|
13090 |
|
|
# AIX 5 now supports IA64 processor
|
13091 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13092 |
|
|
fi
|
13093 |
|
|
;;
|
13094 |
|
|
|
13095 |
|
|
amigaos*)
|
13096 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
13097 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
13098 |
|
|
# like `-m68040'.
|
13099 |
|
|
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
|
13100 |
|
|
;;
|
13101 |
|
|
|
13102 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
13103 |
|
|
# PIC is the default for these OSes.
|
13104 |
|
|
;;
|
13105 |
|
|
|
13106 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
13107 |
|
|
# This hack is so that the source file can tell whether it is being
|
13108 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
13109 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
13110 |
|
|
# (--disable-auto-import) libraries
|
13111 |
|
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
13112 |
|
|
;;
|
13113 |
|
|
|
13114 |
|
|
darwin* | rhapsody*)
|
13115 |
|
|
# PIC is the default on this platform
|
13116 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
13117 |
|
|
lt_prog_compiler_pic_F77='-fno-common'
|
13118 |
|
|
;;
|
13119 |
|
|
|
13120 |
|
|
interix[3-9]*)
|
13121 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
13122 |
|
|
# Instead, we relocate shared libraries at runtime.
|
13123 |
|
|
;;
|
13124 |
|
|
|
13125 |
|
|
msdosdjgpp*)
|
13126 |
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
13127 |
|
|
# on systems that don't support them.
|
13128 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13129 |
|
|
enable_shared=no
|
13130 |
|
|
;;
|
13131 |
|
|
|
13132 |
|
|
sysv4*MP*)
|
13133 |
|
|
if test -d /usr/nec; then
|
13134 |
|
|
lt_prog_compiler_pic_F77=-Kconform_pic
|
13135 |
|
|
fi
|
13136 |
|
|
;;
|
13137 |
|
|
|
13138 |
|
|
hpux*)
|
13139 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
13140 |
|
|
# not for PA HP-UX.
|
13141 |
|
|
case $host_cpu in
|
13142 |
|
|
hppa*64*|ia64*)
|
13143 |
|
|
# +Z the default
|
13144 |
|
|
;;
|
13145 |
|
|
*)
|
13146 |
|
|
lt_prog_compiler_pic_F77='-fPIC'
|
13147 |
|
|
;;
|
13148 |
|
|
esac
|
13149 |
|
|
;;
|
13150 |
|
|
|
13151 |
|
|
*)
|
13152 |
|
|
lt_prog_compiler_pic_F77='-fPIC'
|
13153 |
|
|
;;
|
13154 |
|
|
esac
|
13155 |
|
|
else
|
13156 |
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
13157 |
|
|
case $host_os in
|
13158 |
|
|
aix*)
|
13159 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13160 |
|
|
if test "$host_cpu" = ia64; then
|
13161 |
|
|
# AIX 5 now supports IA64 processor
|
13162 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13163 |
|
|
else
|
13164 |
|
|
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
|
13165 |
|
|
fi
|
13166 |
|
|
;;
|
13167 |
|
|
darwin*)
|
13168 |
|
|
# PIC is the default on this platform
|
13169 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
13170 |
|
|
case $cc_basename in
|
13171 |
|
|
xlc*)
|
13172 |
|
|
lt_prog_compiler_pic_F77='-qnocommon'
|
13173 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13174 |
|
|
;;
|
13175 |
|
|
esac
|
13176 |
|
|
;;
|
13177 |
|
|
|
13178 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
13179 |
|
|
# This hack is so that the source file can tell whether it is being
|
13180 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
13181 |
|
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
13182 |
|
|
;;
|
13183 |
|
|
|
13184 |
|
|
hpux9* | hpux10* | hpux11*)
|
13185 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13186 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
13187 |
|
|
# not for PA HP-UX.
|
13188 |
|
|
case $host_cpu in
|
13189 |
|
|
hppa*64*|ia64*)
|
13190 |
|
|
# +Z the default
|
13191 |
|
|
;;
|
13192 |
|
|
*)
|
13193 |
|
|
lt_prog_compiler_pic_F77='+Z'
|
13194 |
|
|
;;
|
13195 |
|
|
esac
|
13196 |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
13197 |
|
|
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
|
13198 |
|
|
;;
|
13199 |
|
|
|
13200 |
|
|
irix5* | irix6* | nonstopux*)
|
13201 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13202 |
|
|
# PIC (with -KPIC) is the default.
|
13203 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13204 |
|
|
;;
|
13205 |
|
|
|
13206 |
|
|
newsos6)
|
13207 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13208 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13209 |
|
|
;;
|
13210 |
|
|
|
13211 |
|
|
linux* | k*bsd*-gnu)
|
13212 |
|
|
case $cc_basename in
|
13213 |
|
|
icc* | ecc*)
|
13214 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13215 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13216 |
|
|
lt_prog_compiler_static_F77='-static'
|
13217 |
|
|
;;
|
13218 |
|
|
pgcc* | pgf77* | pgf90* | pgf95*)
|
13219 |
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
13220 |
|
|
# which looks to be a dead project)
|
13221 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13222 |
|
|
lt_prog_compiler_pic_F77='-fpic'
|
13223 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13224 |
|
|
;;
|
13225 |
|
|
ccc*)
|
13226 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13227 |
|
|
# All Alpha code is PIC.
|
13228 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13229 |
|
|
;;
|
13230 |
|
|
*)
|
13231 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
13232 |
|
|
*Sun\ C*)
|
13233 |
|
|
# Sun C 5.9
|
13234 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13235 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13236 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13237 |
|
|
;;
|
13238 |
|
|
*Sun\ F*)
|
13239 |
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
13240 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13241 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13242 |
|
|
lt_prog_compiler_wl_F77=''
|
13243 |
|
|
;;
|
13244 |
|
|
esac
|
13245 |
|
|
;;
|
13246 |
|
|
esac
|
13247 |
|
|
;;
|
13248 |
|
|
|
13249 |
|
|
osf3* | osf4* | osf5*)
|
13250 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13251 |
|
|
# All OSF/1 code is PIC.
|
13252 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13253 |
|
|
;;
|
13254 |
|
|
|
13255 |
|
|
rdos*)
|
13256 |
|
|
lt_prog_compiler_static_F77='-non_shared'
|
13257 |
|
|
;;
|
13258 |
|
|
|
13259 |
|
|
solaris*)
|
13260 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13261 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13262 |
|
|
case $cc_basename in
|
13263 |
|
|
f77* | f90* | f95*)
|
13264 |
|
|
lt_prog_compiler_wl_F77='-Qoption ld ';;
|
13265 |
|
|
*)
|
13266 |
|
|
lt_prog_compiler_wl_F77='-Wl,';;
|
13267 |
|
|
esac
|
13268 |
|
|
;;
|
13269 |
|
|
|
13270 |
|
|
sunos4*)
|
13271 |
|
|
lt_prog_compiler_wl_F77='-Qoption ld '
|
13272 |
|
|
lt_prog_compiler_pic_F77='-PIC'
|
13273 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13274 |
|
|
;;
|
13275 |
|
|
|
13276 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
13277 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13278 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13279 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13280 |
|
|
;;
|
13281 |
|
|
|
13282 |
|
|
sysv4*MP*)
|
13283 |
|
|
if test -d /usr/nec ;then
|
13284 |
|
|
lt_prog_compiler_pic_F77='-Kconform_pic'
|
13285 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13286 |
|
|
fi
|
13287 |
|
|
;;
|
13288 |
|
|
|
13289 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
13290 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13291 |
|
|
lt_prog_compiler_pic_F77='-KPIC'
|
13292 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13293 |
|
|
;;
|
13294 |
|
|
|
13295 |
|
|
unicos*)
|
13296 |
|
|
lt_prog_compiler_wl_F77='-Wl,'
|
13297 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13298 |
|
|
;;
|
13299 |
|
|
|
13300 |
|
|
uts4*)
|
13301 |
|
|
lt_prog_compiler_pic_F77='-pic'
|
13302 |
|
|
lt_prog_compiler_static_F77='-Bstatic'
|
13303 |
|
|
;;
|
13304 |
|
|
|
13305 |
|
|
*)
|
13306 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13307 |
|
|
;;
|
13308 |
|
|
esac
|
13309 |
|
|
fi
|
13310 |
|
|
|
13311 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
|
13312 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
|
13313 |
|
|
|
13314 |
|
|
#
|
13315 |
|
|
# Check to make sure the PIC flag actually works.
|
13316 |
|
|
#
|
13317 |
|
|
if test -n "$lt_prog_compiler_pic_F77"; then
|
13318 |
|
|
|
13319 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
|
13320 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
|
13321 |
|
|
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
|
13322 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
13323 |
|
|
else
|
13324 |
|
|
lt_prog_compiler_pic_works_F77=no
|
13325 |
|
|
ac_outfile=conftest.$ac_objext
|
13326 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
13327 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic_F77"
|
13328 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
13329 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
13330 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
13331 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
13332 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
13333 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
13334 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
13335 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
13336 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
13337 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
13338 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
13339 |
|
|
ac_status=$?
|
13340 |
|
|
cat conftest.err >&5
|
13341 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
13342 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
13343 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
13344 |
|
|
# So say no if there are warnings other than the usual output.
|
13345 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
13346 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
13347 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
13348 |
|
|
lt_prog_compiler_pic_works_F77=yes
|
13349 |
|
|
fi
|
13350 |
|
|
fi
|
13351 |
|
|
$rm conftest*
|
13352 |
|
|
|
13353 |
|
|
fi
|
13354 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
|
13355 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
|
13356 |
|
|
|
13357 |
|
|
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
|
13358 |
|
|
case $lt_prog_compiler_pic_F77 in
|
13359 |
|
|
"" | " "*) ;;
|
13360 |
|
|
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
|
13361 |
|
|
esac
|
13362 |
|
|
else
|
13363 |
|
|
lt_prog_compiler_pic_F77=
|
13364 |
|
|
lt_prog_compiler_can_build_shared_F77=no
|
13365 |
|
|
fi
|
13366 |
|
|
|
13367 |
|
|
fi
|
13368 |
|
|
case $host_os in
|
13369 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
13370 |
|
|
*djgpp*)
|
13371 |
|
|
lt_prog_compiler_pic_F77=
|
13372 |
|
|
;;
|
13373 |
|
|
*)
|
13374 |
|
|
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
|
13375 |
|
|
;;
|
13376 |
|
|
esac
|
13377 |
|
|
|
13378 |
|
|
#
|
13379 |
|
|
# Check to make sure the static flag actually works.
|
13380 |
|
|
#
|
13381 |
|
|
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
|
13382 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
13383 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
13384 |
|
|
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
|
13385 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
13386 |
|
|
else
|
13387 |
|
|
lt_prog_compiler_static_works_F77=no
|
13388 |
|
|
save_LDFLAGS="$LDFLAGS"
|
13389 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
13390 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
13391 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
13392 |
|
|
# The linker can only warn and ignore the option if not recognized
|
13393 |
|
|
# So say no if there are warnings
|
13394 |
|
|
if test -s conftest.err; then
|
13395 |
|
|
# Append any errors to the config.log.
|
13396 |
|
|
cat conftest.err 1>&5
|
13397 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
13398 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
13399 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
13400 |
|
|
lt_prog_compiler_static_works_F77=yes
|
13401 |
|
|
fi
|
13402 |
|
|
else
|
13403 |
|
|
lt_prog_compiler_static_works_F77=yes
|
13404 |
|
|
fi
|
13405 |
|
|
fi
|
13406 |
|
|
$rm conftest*
|
13407 |
|
|
LDFLAGS="$save_LDFLAGS"
|
13408 |
|
|
|
13409 |
|
|
fi
|
13410 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
|
13411 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
|
13412 |
|
|
|
13413 |
|
|
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
|
13414 |
|
|
:
|
13415 |
|
|
else
|
13416 |
|
|
lt_prog_compiler_static_F77=
|
13417 |
|
|
fi
|
13418 |
|
|
|
13419 |
|
|
|
13420 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
13421 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
13422 |
|
|
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
|
13423 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
13424 |
|
|
else
|
13425 |
|
|
lt_cv_prog_compiler_c_o_F77=no
|
13426 |
|
|
$rm -r conftest 2>/dev/null
|
13427 |
|
|
mkdir conftest
|
13428 |
|
|
cd conftest
|
13429 |
|
|
mkdir out
|
13430 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
13431 |
|
|
|
13432 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
13433 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
13434 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
13435 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
13436 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
13437 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
13438 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
13439 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
13440 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
13441 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
13442 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
13443 |
|
|
ac_status=$?
|
13444 |
|
|
cat out/conftest.err >&5
|
13445 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
13446 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
13447 |
|
|
then
|
13448 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
13449 |
|
|
# So say no if there are warnings
|
13450 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
13451 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
13452 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
13453 |
|
|
lt_cv_prog_compiler_c_o_F77=yes
|
13454 |
|
|
fi
|
13455 |
|
|
fi
|
13456 |
|
|
chmod u+w . 2>&5
|
13457 |
|
|
$rm conftest*
|
13458 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
13459 |
|
|
# template instantiation
|
13460 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
13461 |
|
|
$rm out/* && rmdir out
|
13462 |
|
|
cd ..
|
13463 |
|
|
rmdir conftest
|
13464 |
|
|
$rm conftest*
|
13465 |
|
|
|
13466 |
|
|
fi
|
13467 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
|
13468 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
|
13469 |
|
|
|
13470 |
|
|
|
13471 |
|
|
hard_links="nottested"
|
13472 |
|
|
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
|
13473 |
|
|
# do not overwrite the value of need_locks provided by the user
|
13474 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
13475 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
13476 |
|
|
hard_links=yes
|
13477 |
|
|
$rm conftest*
|
13478 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
13479 |
|
|
touch conftest.a
|
13480 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
13481 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
13482 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
13483 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
13484 |
|
|
if test "$hard_links" = no; then
|
13485 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
13486 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
13487 |
|
|
need_locks=warn
|
13488 |
|
|
fi
|
13489 |
|
|
else
|
13490 |
|
|
need_locks=no
|
13491 |
|
|
fi
|
13492 |
|
|
|
13493 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
13494 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
13495 |
|
|
|
13496 |
|
|
runpath_var=
|
13497 |
|
|
allow_undefined_flag_F77=
|
13498 |
|
|
enable_shared_with_static_runtimes_F77=no
|
13499 |
|
|
archive_cmds_F77=
|
13500 |
|
|
archive_expsym_cmds_F77=
|
13501 |
|
|
old_archive_From_new_cmds_F77=
|
13502 |
|
|
old_archive_from_expsyms_cmds_F77=
|
13503 |
|
|
export_dynamic_flag_spec_F77=
|
13504 |
|
|
whole_archive_flag_spec_F77=
|
13505 |
|
|
thread_safe_flag_spec_F77=
|
13506 |
|
|
hardcode_libdir_flag_spec_F77=
|
13507 |
|
|
hardcode_libdir_flag_spec_ld_F77=
|
13508 |
|
|
hardcode_libdir_separator_F77=
|
13509 |
|
|
hardcode_direct_F77=no
|
13510 |
|
|
hardcode_minus_L_F77=no
|
13511 |
|
|
hardcode_shlibpath_var_F77=unsupported
|
13512 |
|
|
link_all_deplibs_F77=unknown
|
13513 |
|
|
hardcode_automatic_F77=no
|
13514 |
|
|
module_cmds_F77=
|
13515 |
|
|
module_expsym_cmds_F77=
|
13516 |
|
|
always_export_symbols_F77=no
|
13517 |
|
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
13518 |
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
13519 |
|
|
# included in the symbol list
|
13520 |
|
|
include_expsyms_F77=
|
13521 |
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
13522 |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
13523 |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
13524 |
|
|
# as well as any symbol that contains `d'.
|
13525 |
|
|
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
|
13526 |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
13527 |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
13528 |
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
13529 |
|
|
# rely on this symbol name, it's probably fine to never include it in
|
13530 |
|
|
# preloaded symbol tables.
|
13531 |
|
|
extract_expsyms_cmds=
|
13532 |
|
|
# Just being paranoid about ensuring that cc_basename is set.
|
13533 |
|
|
for cc_temp in $compiler""; do
|
13534 |
|
|
case $cc_temp in
|
13535 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
13536 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
13537 |
|
|
\-*) ;;
|
13538 |
|
|
*) break;;
|
13539 |
|
|
esac
|
13540 |
|
|
done
|
13541 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
13542 |
|
|
|
13543 |
|
|
case $host_os in
|
13544 |
|
|
cygwin* | mingw* | pw32*)
|
13545 |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
13546 |
|
|
# When not using gcc, we currently assume that we are using
|
13547 |
|
|
# Microsoft Visual C++.
|
13548 |
|
|
if test "$GCC" != yes; then
|
13549 |
|
|
with_gnu_ld=no
|
13550 |
|
|
fi
|
13551 |
|
|
;;
|
13552 |
|
|
interix*)
|
13553 |
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
13554 |
|
|
with_gnu_ld=yes
|
13555 |
|
|
;;
|
13556 |
|
|
openbsd*)
|
13557 |
|
|
with_gnu_ld=no
|
13558 |
|
|
;;
|
13559 |
|
|
esac
|
13560 |
|
|
|
13561 |
|
|
ld_shlibs_F77=yes
|
13562 |
|
|
if test "$with_gnu_ld" = yes; then
|
13563 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
13564 |
|
|
wlarc='${wl}'
|
13565 |
|
|
|
13566 |
|
|
# Set some defaults for GNU ld with shared library support. These
|
13567 |
|
|
# are reset later if shared libraries are not supported. Putting them
|
13568 |
|
|
# here allows them to be overridden if necessary.
|
13569 |
|
|
runpath_var=LD_RUN_PATH
|
13570 |
|
|
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
|
13571 |
|
|
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
|
13572 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
13573 |
|
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
13574 |
|
|
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
13575 |
|
|
else
|
13576 |
|
|
whole_archive_flag_spec_F77=
|
13577 |
|
|
fi
|
13578 |
|
|
supports_anon_versioning=no
|
13579 |
|
|
case `$LD -v 2>/dev/null` in
|
13580 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
13581 |
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
13582 |
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
13583 |
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
13584 |
|
|
*) supports_anon_versioning=yes ;;
|
13585 |
|
|
esac
|
13586 |
|
|
|
13587 |
|
|
# See if GNU ld supports shared libraries.
|
13588 |
|
|
case $host_os in
|
13589 |
|
|
aix3* | aix4* | aix5*)
|
13590 |
|
|
# On AIX/PPC, the GNU linker is very broken
|
13591 |
|
|
if test "$host_cpu" != ia64; then
|
13592 |
|
|
ld_shlibs_F77=no
|
13593 |
|
|
cat <&2
|
13594 |
|
|
|
13595 |
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
13596 |
|
|
*** to be unable to reliably create shared libraries on AIX.
|
13597 |
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
13598 |
|
|
*** really care for shared libraries, you may want to modify your PATH
|
13599 |
|
|
*** so that a non-GNU linker is found, and then restart.
|
13600 |
|
|
|
13601 |
|
|
EOF
|
13602 |
|
|
fi
|
13603 |
|
|
;;
|
13604 |
|
|
|
13605 |
|
|
amigaos*)
|
13606 |
|
|
archive_cmds_F77='$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)'
|
13607 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
13608 |
|
|
hardcode_minus_L_F77=yes
|
13609 |
|
|
|
13610 |
|
|
# Samuel A. Falvo II reports
|
13611 |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
13612 |
|
|
# to version 4, is to share data among multiple programs linked
|
13613 |
|
|
# with the same dynamic library. Since this doesn't match the
|
13614 |
|
|
# behavior of shared libraries on other platforms, we can't use
|
13615 |
|
|
# them.
|
13616 |
|
|
ld_shlibs_F77=no
|
13617 |
|
|
;;
|
13618 |
|
|
|
13619 |
|
|
beos*)
|
13620 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13621 |
|
|
allow_undefined_flag_F77=unsupported
|
13622 |
|
|
# Joseph Beckenbach says some releases of gcc
|
13623 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
13624 |
|
|
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13625 |
|
|
else
|
13626 |
|
|
ld_shlibs_F77=no
|
13627 |
|
|
fi
|
13628 |
|
|
;;
|
13629 |
|
|
|
13630 |
|
|
cygwin* | mingw* | pw32*)
|
13631 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
|
13632 |
|
|
# as there is no search path for DLLs.
|
13633 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
13634 |
|
|
allow_undefined_flag_F77=unsupported
|
13635 |
|
|
always_export_symbols_F77=no
|
13636 |
|
|
enable_shared_with_static_runtimes_F77=yes
|
13637 |
|
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
13638 |
|
|
|
13639 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
13640 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
13641 |
|
|
# If the export-symbols file already is a .def file (1st line
|
13642 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
13643 |
|
|
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
13644 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
13645 |
|
|
else
|
13646 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
13647 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
13648 |
|
|
fi~
|
13649 |
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
13650 |
|
|
else
|
13651 |
|
|
ld_shlibs_F77=no
|
13652 |
|
|
fi
|
13653 |
|
|
;;
|
13654 |
|
|
|
13655 |
|
|
interix[3-9]*)
|
13656 |
|
|
hardcode_direct_F77=no
|
13657 |
|
|
hardcode_shlibpath_var_F77=no
|
13658 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
13659 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
13660 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
13661 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
13662 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
13663 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
13664 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
13665 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
13666 |
|
|
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
13667 |
|
|
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
13668 |
|
|
;;
|
13669 |
|
|
|
13670 |
|
|
gnu* | linux* | k*bsd*-gnu)
|
13671 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13672 |
|
|
tmp_addflag=
|
13673 |
|
|
case $cc_basename,$host_cpu in
|
13674 |
|
|
pgcc*) # Portland Group C compiler
|
13675 |
|
|
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
13676 |
|
|
tmp_addflag=' $pic_flag'
|
13677 |
|
|
;;
|
13678 |
|
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
13679 |
|
|
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
13680 |
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
13681 |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
13682 |
|
|
tmp_addflag=' -i_dynamic' ;;
|
13683 |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
13684 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
13685 |
|
|
ifc* | ifort*) # Intel Fortran compiler
|
13686 |
|
|
tmp_addflag=' -nofor_main' ;;
|
13687 |
|
|
esac
|
13688 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
13689 |
|
|
*Sun\ C*) # Sun C 5.9
|
13690 |
|
|
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
13691 |
|
|
tmp_sharedflag='-G' ;;
|
13692 |
|
|
*Sun\ F*) # Sun Fortran 8.3
|
13693 |
|
|
tmp_sharedflag='-G' ;;
|
13694 |
|
|
*)
|
13695 |
|
|
tmp_sharedflag='-shared' ;;
|
13696 |
|
|
esac
|
13697 |
|
|
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13698 |
|
|
|
13699 |
|
|
if test $supports_anon_versioning = yes; then
|
13700 |
|
|
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
|
13701 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
13702 |
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
13703 |
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
13704 |
|
|
fi
|
13705 |
|
|
else
|
13706 |
|
|
ld_shlibs_F77=no
|
13707 |
|
|
fi
|
13708 |
|
|
;;
|
13709 |
|
|
|
13710 |
|
|
netbsd*)
|
13711 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
13712 |
|
|
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
13713 |
|
|
wlarc=
|
13714 |
|
|
else
|
13715 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13716 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
13717 |
|
|
fi
|
13718 |
|
|
;;
|
13719 |
|
|
|
13720 |
|
|
solaris*)
|
13721 |
|
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
13722 |
|
|
ld_shlibs_F77=no
|
13723 |
|
|
cat <&2
|
13724 |
|
|
|
13725 |
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
13726 |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
13727 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
13728 |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
13729 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
13730 |
|
|
*** used, and then restart.
|
13731 |
|
|
|
13732 |
|
|
EOF
|
13733 |
|
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13734 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13735 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
13736 |
|
|
else
|
13737 |
|
|
ld_shlibs_F77=no
|
13738 |
|
|
fi
|
13739 |
|
|
;;
|
13740 |
|
|
|
13741 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
13742 |
|
|
case `$LD -v 2>&1` in
|
13743 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
13744 |
|
|
ld_shlibs_F77=no
|
13745 |
|
|
cat <<_LT_EOF 1>&2
|
13746 |
|
|
|
13747 |
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
13748 |
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
13749 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
13750 |
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
13751 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
13752 |
|
|
*** used, and then restart.
|
13753 |
|
|
|
13754 |
|
|
_LT_EOF
|
13755 |
|
|
;;
|
13756 |
|
|
*)
|
13757 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13758 |
|
|
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
13759 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
13760 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
13761 |
|
|
else
|
13762 |
|
|
ld_shlibs_F77=no
|
13763 |
|
|
fi
|
13764 |
|
|
;;
|
13765 |
|
|
esac
|
13766 |
|
|
;;
|
13767 |
|
|
|
13768 |
|
|
sunos4*)
|
13769 |
|
|
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
13770 |
|
|
wlarc=
|
13771 |
|
|
hardcode_direct_F77=yes
|
13772 |
|
|
hardcode_shlibpath_var_F77=no
|
13773 |
|
|
;;
|
13774 |
|
|
|
13775 |
|
|
*)
|
13776 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
13777 |
|
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
13778 |
|
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
13779 |
|
|
else
|
13780 |
|
|
ld_shlibs_F77=no
|
13781 |
|
|
fi
|
13782 |
|
|
;;
|
13783 |
|
|
esac
|
13784 |
|
|
|
13785 |
|
|
if test "$ld_shlibs_F77" = no; then
|
13786 |
|
|
runpath_var=
|
13787 |
|
|
hardcode_libdir_flag_spec_F77=
|
13788 |
|
|
export_dynamic_flag_spec_F77=
|
13789 |
|
|
whole_archive_flag_spec_F77=
|
13790 |
|
|
fi
|
13791 |
|
|
else
|
13792 |
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
13793 |
|
|
case $host_os in
|
13794 |
|
|
aix3*)
|
13795 |
|
|
allow_undefined_flag_F77=unsupported
|
13796 |
|
|
always_export_symbols_F77=yes
|
13797 |
|
|
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
13798 |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
13799 |
|
|
# are no directories specified by -L.
|
13800 |
|
|
hardcode_minus_L_F77=yes
|
13801 |
|
|
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
13802 |
|
|
# Neither direct hardcoding nor static linking is supported with a
|
13803 |
|
|
# broken collect2.
|
13804 |
|
|
hardcode_direct_F77=unsupported
|
13805 |
|
|
fi
|
13806 |
|
|
;;
|
13807 |
|
|
|
13808 |
|
|
aix4* | aix5*)
|
13809 |
|
|
if test "$host_cpu" = ia64; then
|
13810 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
13811 |
|
|
# have to do anything special.
|
13812 |
|
|
aix_use_runtimelinking=no
|
13813 |
|
|
exp_sym_flag='-Bexport'
|
13814 |
|
|
no_entry_flag=""
|
13815 |
|
|
else
|
13816 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
13817 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
13818 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
13819 |
|
|
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
13820 |
|
|
else
|
13821 |
|
|
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
13822 |
|
|
fi
|
13823 |
|
|
aix_use_runtimelinking=no
|
13824 |
|
|
|
13825 |
|
|
# Test if we are trying to use run time linking or normal
|
13826 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
13827 |
|
|
# need to do runtime linking.
|
13828 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
13829 |
|
|
for ld_flag in $LDFLAGS; do
|
13830 |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
13831 |
|
|
aix_use_runtimelinking=yes
|
13832 |
|
|
break
|
13833 |
|
|
fi
|
13834 |
|
|
done
|
13835 |
|
|
;;
|
13836 |
|
|
esac
|
13837 |
|
|
|
13838 |
|
|
exp_sym_flag='-bexport'
|
13839 |
|
|
no_entry_flag='-bnoentry'
|
13840 |
|
|
fi
|
13841 |
|
|
|
13842 |
|
|
# When large executables or shared objects are built, AIX ld can
|
13843 |
|
|
# have problems creating the table of contents. If linking a library
|
13844 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
13845 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
13846 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
13847 |
|
|
|
13848 |
|
|
archive_cmds_F77=''
|
13849 |
|
|
hardcode_direct_F77=yes
|
13850 |
|
|
hardcode_libdir_separator_F77=':'
|
13851 |
|
|
link_all_deplibs_F77=yes
|
13852 |
|
|
|
13853 |
|
|
if test "$GCC" = yes; then
|
13854 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
13855 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
13856 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
13857 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
13858 |
|
|
if test -f "$collect2name" && \
|
13859 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
13860 |
|
|
then
|
13861 |
|
|
# We have reworked collect2
|
13862 |
|
|
:
|
13863 |
|
|
else
|
13864 |
|
|
# We have old collect2
|
13865 |
|
|
hardcode_direct_F77=unsupported
|
13866 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
13867 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
13868 |
|
|
# to unsupported forces relinking
|
13869 |
|
|
hardcode_minus_L_F77=yes
|
13870 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
13871 |
|
|
hardcode_libdir_separator_F77=
|
13872 |
|
|
fi
|
13873 |
|
|
;;
|
13874 |
|
|
esac
|
13875 |
|
|
shared_flag='-shared'
|
13876 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
13877 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
13878 |
|
|
fi
|
13879 |
|
|
else
|
13880 |
|
|
# not using gcc
|
13881 |
|
|
if test "$host_cpu" = ia64; then
|
13882 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
13883 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
13884 |
|
|
shared_flag='-G'
|
13885 |
|
|
else
|
13886 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
13887 |
|
|
shared_flag='${wl}-G'
|
13888 |
|
|
else
|
13889 |
|
|
shared_flag='${wl}-bM:SRE'
|
13890 |
|
|
fi
|
13891 |
|
|
fi
|
13892 |
|
|
fi
|
13893 |
|
|
|
13894 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
13895 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
13896 |
|
|
always_export_symbols_F77=yes
|
13897 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
13898 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
13899 |
|
|
# -berok will link without error, but may produce a broken library.
|
13900 |
|
|
allow_undefined_flag_F77='-berok'
|
13901 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
13902 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
13903 |
|
|
program main
|
13904 |
|
|
|
13905 |
|
|
end
|
13906 |
|
|
_ACEOF
|
13907 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
13908 |
|
|
if { (ac_try="$ac_link"
|
13909 |
|
|
case "(($ac_try" in
|
13910 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
13911 |
|
|
*) ac_try_echo=$ac_try;;
|
13912 |
|
|
esac
|
13913 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
13914 |
|
|
(eval "$ac_link") 2>conftest.er1
|
13915 |
|
|
ac_status=$?
|
13916 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
13917 |
|
|
rm -f conftest.er1
|
13918 |
|
|
cat conftest.err >&5
|
13919 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
13920 |
|
|
(exit $ac_status); } && {
|
13921 |
|
|
test -z "$ac_f77_werror_flag" ||
|
13922 |
|
|
test ! -s conftest.err
|
13923 |
|
|
} && test -s conftest$ac_exeext &&
|
13924 |
|
|
$as_test_x conftest$ac_exeext; then
|
13925 |
|
|
|
13926 |
|
|
lt_aix_libpath_sed='
|
13927 |
|
|
/Import File Strings/,/^$/ {
|
13928 |
|
|
/^0/ {
|
13929 |
|
|
s/^0 *\(.*\)$/\1/
|
13930 |
|
|
p
|
13931 |
|
|
}
|
13932 |
|
|
}'
|
13933 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
13934 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
13935 |
|
|
if test -z "$aix_libpath"; then
|
13936 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
13937 |
|
|
fi
|
13938 |
|
|
else
|
13939 |
|
|
echo "$as_me: failed program was:" >&5
|
13940 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
13941 |
|
|
|
13942 |
|
|
|
13943 |
|
|
fi
|
13944 |
|
|
|
13945 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
13946 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
13947 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
13948 |
|
|
|
13949 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
13950 |
|
|
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
13951 |
|
|
else
|
13952 |
|
|
if test "$host_cpu" = ia64; then
|
13953 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
|
13954 |
|
|
allow_undefined_flag_F77="-z nodefs"
|
13955 |
|
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
13956 |
|
|
else
|
13957 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
13958 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
13959 |
|
|
program main
|
13960 |
|
|
|
13961 |
|
|
end
|
13962 |
|
|
_ACEOF
|
13963 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
13964 |
|
|
if { (ac_try="$ac_link"
|
13965 |
|
|
case "(($ac_try" in
|
13966 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
13967 |
|
|
*) ac_try_echo=$ac_try;;
|
13968 |
|
|
esac
|
13969 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
13970 |
|
|
(eval "$ac_link") 2>conftest.er1
|
13971 |
|
|
ac_status=$?
|
13972 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
13973 |
|
|
rm -f conftest.er1
|
13974 |
|
|
cat conftest.err >&5
|
13975 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
13976 |
|
|
(exit $ac_status); } && {
|
13977 |
|
|
test -z "$ac_f77_werror_flag" ||
|
13978 |
|
|
test ! -s conftest.err
|
13979 |
|
|
} && test -s conftest$ac_exeext &&
|
13980 |
|
|
$as_test_x conftest$ac_exeext; then
|
13981 |
|
|
|
13982 |
|
|
lt_aix_libpath_sed='
|
13983 |
|
|
/Import File Strings/,/^$/ {
|
13984 |
|
|
/^0/ {
|
13985 |
|
|
s/^0 *\(.*\)$/\1/
|
13986 |
|
|
p
|
13987 |
|
|
}
|
13988 |
|
|
}'
|
13989 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
13990 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
13991 |
|
|
if test -z "$aix_libpath"; then
|
13992 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
13993 |
|
|
fi
|
13994 |
|
|
else
|
13995 |
|
|
echo "$as_me: failed program was:" >&5
|
13996 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
13997 |
|
|
|
13998 |
|
|
|
13999 |
|
|
fi
|
14000 |
|
|
|
14001 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
14002 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
14003 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
14004 |
|
|
|
14005 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
14006 |
|
|
# Warning - without using the other run time loading flags,
|
14007 |
|
|
# -berok will link without error, but may produce a broken library.
|
14008 |
|
|
no_undefined_flag_F77=' ${wl}-bernotok'
|
14009 |
|
|
allow_undefined_flag_F77=' ${wl}-berok'
|
14010 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
14011 |
|
|
whole_archive_flag_spec_F77='$convenience'
|
14012 |
|
|
archive_cmds_need_lc_F77=yes
|
14013 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
14014 |
|
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
14015 |
|
|
fi
|
14016 |
|
|
fi
|
14017 |
|
|
;;
|
14018 |
|
|
|
14019 |
|
|
amigaos*)
|
14020 |
|
|
archive_cmds_F77='$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)'
|
14021 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14022 |
|
|
hardcode_minus_L_F77=yes
|
14023 |
|
|
# see comment about different semantics on the GNU ld section
|
14024 |
|
|
ld_shlibs_F77=no
|
14025 |
|
|
;;
|
14026 |
|
|
|
14027 |
|
|
bsdi[45]*)
|
14028 |
|
|
export_dynamic_flag_spec_F77=-rdynamic
|
14029 |
|
|
;;
|
14030 |
|
|
|
14031 |
|
|
cygwin* | mingw* | pw32*)
|
14032 |
|
|
# When not using gcc, we currently assume that we are using
|
14033 |
|
|
# Microsoft Visual C++.
|
14034 |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
14035 |
|
|
# no search path for DLLs.
|
14036 |
|
|
hardcode_libdir_flag_spec_F77=' '
|
14037 |
|
|
allow_undefined_flag_F77=unsupported
|
14038 |
|
|
# Tell ltmain to make .lib files, not .a files.
|
14039 |
|
|
libext=lib
|
14040 |
|
|
# Tell ltmain to make .dll files, not .so files.
|
14041 |
|
|
shrext_cmds=".dll"
|
14042 |
|
|
# FIXME: Setting linknames here is a bad hack.
|
14043 |
|
|
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
14044 |
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
14045 |
|
|
old_archive_From_new_cmds_F77='true'
|
14046 |
|
|
# FIXME: Should let the user specify the lib program.
|
14047 |
|
|
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
14048 |
|
|
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
|
14049 |
|
|
enable_shared_with_static_runtimes_F77=yes
|
14050 |
|
|
;;
|
14051 |
|
|
|
14052 |
|
|
darwin* | rhapsody*)
|
14053 |
|
|
case $host_os in
|
14054 |
|
|
rhapsody* | darwin1.[012])
|
14055 |
|
|
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
|
14056 |
|
|
;;
|
14057 |
|
|
*) # Darwin 1.3 on
|
14058 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
14059 |
|
|
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
14060 |
|
|
else
|
14061 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
14062 |
|
|
10.[012])
|
14063 |
|
|
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
14064 |
|
|
;;
|
14065 |
|
|
10.*)
|
14066 |
|
|
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
|
14067 |
|
|
;;
|
14068 |
|
|
esac
|
14069 |
|
|
fi
|
14070 |
|
|
;;
|
14071 |
|
|
esac
|
14072 |
|
|
archive_cmds_need_lc_F77=no
|
14073 |
|
|
hardcode_direct_F77=no
|
14074 |
|
|
hardcode_automatic_F77=yes
|
14075 |
|
|
hardcode_shlibpath_var_F77=unsupported
|
14076 |
|
|
whole_archive_flag_spec_F77=''
|
14077 |
|
|
link_all_deplibs_F77=yes
|
14078 |
|
|
if test "$GCC" = yes ; then
|
14079 |
|
|
output_verbose_link_cmd='echo'
|
14080 |
|
|
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
14081 |
|
|
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
14082 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
14083 |
|
|
archive_expsym_cmds_F77='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}'
|
14084 |
|
|
module_expsym_cmds_F77='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}'
|
14085 |
|
|
else
|
14086 |
|
|
case $cc_basename in
|
14087 |
|
|
xlc*)
|
14088 |
|
|
output_verbose_link_cmd='echo'
|
14089 |
|
|
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
14090 |
|
|
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
14091 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
14092 |
|
|
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
14093 |
|
|
module_expsym_cmds_F77='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}'
|
14094 |
|
|
;;
|
14095 |
|
|
*)
|
14096 |
|
|
ld_shlibs_F77=no
|
14097 |
|
|
;;
|
14098 |
|
|
esac
|
14099 |
|
|
fi
|
14100 |
|
|
;;
|
14101 |
|
|
|
14102 |
|
|
dgux*)
|
14103 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14104 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14105 |
|
|
hardcode_shlibpath_var_F77=no
|
14106 |
|
|
;;
|
14107 |
|
|
|
14108 |
|
|
freebsd1*)
|
14109 |
|
|
ld_shlibs_F77=no
|
14110 |
|
|
;;
|
14111 |
|
|
|
14112 |
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
14113 |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
14114 |
|
|
# does not break anything, and helps significantly (at the cost of a little
|
14115 |
|
|
# extra space).
|
14116 |
|
|
freebsd2.2*)
|
14117 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
14118 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14119 |
|
|
hardcode_direct_F77=yes
|
14120 |
|
|
hardcode_shlibpath_var_F77=no
|
14121 |
|
|
;;
|
14122 |
|
|
|
14123 |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
14124 |
|
|
freebsd2*)
|
14125 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
14126 |
|
|
hardcode_direct_F77=yes
|
14127 |
|
|
hardcode_minus_L_F77=yes
|
14128 |
|
|
hardcode_shlibpath_var_F77=no
|
14129 |
|
|
;;
|
14130 |
|
|
|
14131 |
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
14132 |
|
|
freebsd* | dragonfly*)
|
14133 |
|
|
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
14134 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14135 |
|
|
hardcode_direct_F77=yes
|
14136 |
|
|
hardcode_shlibpath_var_F77=no
|
14137 |
|
|
;;
|
14138 |
|
|
|
14139 |
|
|
hpux9*)
|
14140 |
|
|
if test "$GCC" = yes; then
|
14141 |
|
|
archive_cmds_F77='$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'
|
14142 |
|
|
else
|
14143 |
|
|
archive_cmds_F77='$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'
|
14144 |
|
|
fi
|
14145 |
|
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
14146 |
|
|
hardcode_libdir_separator_F77=:
|
14147 |
|
|
hardcode_direct_F77=yes
|
14148 |
|
|
|
14149 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
14150 |
|
|
# but as the default location of the library.
|
14151 |
|
|
hardcode_minus_L_F77=yes
|
14152 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14153 |
|
|
;;
|
14154 |
|
|
|
14155 |
|
|
hpux10*)
|
14156 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
14157 |
|
|
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
14158 |
|
|
else
|
14159 |
|
|
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
14160 |
|
|
fi
|
14161 |
|
|
if test "$with_gnu_ld" = no; then
|
14162 |
|
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
14163 |
|
|
hardcode_libdir_separator_F77=:
|
14164 |
|
|
|
14165 |
|
|
hardcode_direct_F77=yes
|
14166 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14167 |
|
|
|
14168 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
14169 |
|
|
# but as the default location of the library.
|
14170 |
|
|
hardcode_minus_L_F77=yes
|
14171 |
|
|
fi
|
14172 |
|
|
;;
|
14173 |
|
|
|
14174 |
|
|
hpux11*)
|
14175 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
14176 |
|
|
case $host_cpu in
|
14177 |
|
|
hppa*64*)
|
14178 |
|
|
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14179 |
|
|
;;
|
14180 |
|
|
ia64*)
|
14181 |
|
|
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
14182 |
|
|
;;
|
14183 |
|
|
*)
|
14184 |
|
|
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
14185 |
|
|
;;
|
14186 |
|
|
esac
|
14187 |
|
|
else
|
14188 |
|
|
case $host_cpu in
|
14189 |
|
|
hppa*64*)
|
14190 |
|
|
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14191 |
|
|
;;
|
14192 |
|
|
ia64*)
|
14193 |
|
|
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
14194 |
|
|
;;
|
14195 |
|
|
*)
|
14196 |
|
|
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
14197 |
|
|
;;
|
14198 |
|
|
esac
|
14199 |
|
|
fi
|
14200 |
|
|
if test "$with_gnu_ld" = no; then
|
14201 |
|
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
14202 |
|
|
hardcode_libdir_separator_F77=:
|
14203 |
|
|
|
14204 |
|
|
case $host_cpu in
|
14205 |
|
|
hppa*64*|ia64*)
|
14206 |
|
|
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
|
14207 |
|
|
hardcode_direct_F77=no
|
14208 |
|
|
hardcode_shlibpath_var_F77=no
|
14209 |
|
|
;;
|
14210 |
|
|
*)
|
14211 |
|
|
hardcode_direct_F77=yes
|
14212 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14213 |
|
|
|
14214 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
14215 |
|
|
# but as the default location of the library.
|
14216 |
|
|
hardcode_minus_L_F77=yes
|
14217 |
|
|
;;
|
14218 |
|
|
esac
|
14219 |
|
|
fi
|
14220 |
|
|
;;
|
14221 |
|
|
|
14222 |
|
|
irix5* | irix6* | nonstopux*)
|
14223 |
|
|
if test "$GCC" = yes; then
|
14224 |
|
|
archive_cmds_F77='$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'
|
14225 |
|
|
else
|
14226 |
|
|
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
14227 |
|
|
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
|
14228 |
|
|
fi
|
14229 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14230 |
|
|
hardcode_libdir_separator_F77=:
|
14231 |
|
|
link_all_deplibs_F77=yes
|
14232 |
|
|
;;
|
14233 |
|
|
|
14234 |
|
|
netbsd*)
|
14235 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
14236 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
14237 |
|
|
else
|
14238 |
|
|
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
14239 |
|
|
fi
|
14240 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14241 |
|
|
hardcode_direct_F77=yes
|
14242 |
|
|
hardcode_shlibpath_var_F77=no
|
14243 |
|
|
;;
|
14244 |
|
|
|
14245 |
|
|
newsos6)
|
14246 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14247 |
|
|
hardcode_direct_F77=yes
|
14248 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14249 |
|
|
hardcode_libdir_separator_F77=:
|
14250 |
|
|
hardcode_shlibpath_var_F77=no
|
14251 |
|
|
;;
|
14252 |
|
|
|
14253 |
|
|
openbsd*)
|
14254 |
|
|
if test -f /usr/libexec/ld.so; then
|
14255 |
|
|
hardcode_direct_F77=yes
|
14256 |
|
|
hardcode_shlibpath_var_F77=no
|
14257 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
14258 |
|
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
14259 |
|
|
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
14260 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
14261 |
|
|
export_dynamic_flag_spec_F77='${wl}-E'
|
14262 |
|
|
else
|
14263 |
|
|
case $host_os in
|
14264 |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
14265 |
|
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
14266 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14267 |
|
|
;;
|
14268 |
|
|
*)
|
14269 |
|
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
14270 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
14271 |
|
|
;;
|
14272 |
|
|
esac
|
14273 |
|
|
fi
|
14274 |
|
|
else
|
14275 |
|
|
ld_shlibs_F77=no
|
14276 |
|
|
fi
|
14277 |
|
|
;;
|
14278 |
|
|
|
14279 |
|
|
os2*)
|
14280 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14281 |
|
|
hardcode_minus_L_F77=yes
|
14282 |
|
|
allow_undefined_flag_F77=unsupported
|
14283 |
|
|
archive_cmds_F77='$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'
|
14284 |
|
|
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
14285 |
|
|
;;
|
14286 |
|
|
|
14287 |
|
|
osf3*)
|
14288 |
|
|
if test "$GCC" = yes; then
|
14289 |
|
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
14290 |
|
|
archive_cmds_F77='$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'
|
14291 |
|
|
else
|
14292 |
|
|
allow_undefined_flag_F77=' -expect_unresolved \*'
|
14293 |
|
|
archive_cmds_F77='$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'
|
14294 |
|
|
fi
|
14295 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14296 |
|
|
hardcode_libdir_separator_F77=:
|
14297 |
|
|
;;
|
14298 |
|
|
|
14299 |
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
14300 |
|
|
if test "$GCC" = yes; then
|
14301 |
|
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
14302 |
|
|
archive_cmds_F77='$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'
|
14303 |
|
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
14304 |
|
|
else
|
14305 |
|
|
allow_undefined_flag_F77=' -expect_unresolved \*'
|
14306 |
|
|
archive_cmds_F77='$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'
|
14307 |
|
|
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
14308 |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
14309 |
|
|
|
14310 |
|
|
# Both c and cxx compiler support -rpath directly
|
14311 |
|
|
hardcode_libdir_flag_spec_F77='-rpath $libdir'
|
14312 |
|
|
fi
|
14313 |
|
|
hardcode_libdir_separator_F77=:
|
14314 |
|
|
;;
|
14315 |
|
|
|
14316 |
|
|
solaris*)
|
14317 |
|
|
no_undefined_flag_F77=' -z text'
|
14318 |
|
|
if test "$GCC" = yes; then
|
14319 |
|
|
wlarc='${wl}'
|
14320 |
|
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14321 |
|
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
14322 |
|
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
14323 |
|
|
else
|
14324 |
|
|
wlarc=''
|
14325 |
|
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14326 |
|
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
14327 |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
14328 |
|
|
fi
|
14329 |
|
|
hardcode_libdir_flag_spec_F77='-R$libdir'
|
14330 |
|
|
hardcode_shlibpath_var_F77=no
|
14331 |
|
|
case $host_os in
|
14332 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
14333 |
|
|
*)
|
14334 |
|
|
# The compiler driver will combine and reorder linker options,
|
14335 |
|
|
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
14336 |
|
|
# but is careful enough not to reorder.
|
14337 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
14338 |
|
|
if test "$GCC" = yes; then
|
14339 |
|
|
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
14340 |
|
|
else
|
14341 |
|
|
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
|
14342 |
|
|
fi
|
14343 |
|
|
;;
|
14344 |
|
|
esac
|
14345 |
|
|
link_all_deplibs_F77=yes
|
14346 |
|
|
;;
|
14347 |
|
|
|
14348 |
|
|
sunos4*)
|
14349 |
|
|
if test "x$host_vendor" = xsequent; then
|
14350 |
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
14351 |
|
|
# files that make .init and .fini sections work.
|
14352 |
|
|
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
14353 |
|
|
else
|
14354 |
|
|
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
14355 |
|
|
fi
|
14356 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14357 |
|
|
hardcode_direct_F77=yes
|
14358 |
|
|
hardcode_minus_L_F77=yes
|
14359 |
|
|
hardcode_shlibpath_var_F77=no
|
14360 |
|
|
;;
|
14361 |
|
|
|
14362 |
|
|
sysv4)
|
14363 |
|
|
case $host_vendor in
|
14364 |
|
|
sni)
|
14365 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14366 |
|
|
hardcode_direct_F77=yes # is this really true???
|
14367 |
|
|
;;
|
14368 |
|
|
siemens)
|
14369 |
|
|
## LD is ld it makes a PLAMLIB
|
14370 |
|
|
## CC just makes a GrossModule.
|
14371 |
|
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
14372 |
|
|
reload_cmds_F77='$CC -r -o $output$reload_objs'
|
14373 |
|
|
hardcode_direct_F77=no
|
14374 |
|
|
;;
|
14375 |
|
|
motorola)
|
14376 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14377 |
|
|
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
|
14378 |
|
|
;;
|
14379 |
|
|
esac
|
14380 |
|
|
runpath_var='LD_RUN_PATH'
|
14381 |
|
|
hardcode_shlibpath_var_F77=no
|
14382 |
|
|
;;
|
14383 |
|
|
|
14384 |
|
|
sysv4.3*)
|
14385 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14386 |
|
|
hardcode_shlibpath_var_F77=no
|
14387 |
|
|
export_dynamic_flag_spec_F77='-Bexport'
|
14388 |
|
|
;;
|
14389 |
|
|
|
14390 |
|
|
sysv4*MP*)
|
14391 |
|
|
if test -d /usr/nec; then
|
14392 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14393 |
|
|
hardcode_shlibpath_var_F77=no
|
14394 |
|
|
runpath_var=LD_RUN_PATH
|
14395 |
|
|
hardcode_runpath_var=yes
|
14396 |
|
|
ld_shlibs_F77=yes
|
14397 |
|
|
fi
|
14398 |
|
|
;;
|
14399 |
|
|
|
14400 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
14401 |
|
|
no_undefined_flag_F77='${wl}-z,text'
|
14402 |
|
|
archive_cmds_need_lc_F77=no
|
14403 |
|
|
hardcode_shlibpath_var_F77=no
|
14404 |
|
|
runpath_var='LD_RUN_PATH'
|
14405 |
|
|
|
14406 |
|
|
if test "$GCC" = yes; then
|
14407 |
|
|
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14408 |
|
|
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14409 |
|
|
else
|
14410 |
|
|
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14411 |
|
|
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14412 |
|
|
fi
|
14413 |
|
|
;;
|
14414 |
|
|
|
14415 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
14416 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
14417 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
14418 |
|
|
# always be unresolved, which means just about no library would
|
14419 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
14420 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
14421 |
|
|
# as -z defs.
|
14422 |
|
|
no_undefined_flag_F77='${wl}-z,text'
|
14423 |
|
|
allow_undefined_flag_F77='${wl}-z,nodefs'
|
14424 |
|
|
archive_cmds_need_lc_F77=no
|
14425 |
|
|
hardcode_shlibpath_var_F77=no
|
14426 |
|
|
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
14427 |
|
|
hardcode_libdir_separator_F77=':'
|
14428 |
|
|
link_all_deplibs_F77=yes
|
14429 |
|
|
export_dynamic_flag_spec_F77='${wl}-Bexport'
|
14430 |
|
|
runpath_var='LD_RUN_PATH'
|
14431 |
|
|
|
14432 |
|
|
if test "$GCC" = yes; then
|
14433 |
|
|
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14434 |
|
|
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14435 |
|
|
else
|
14436 |
|
|
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14437 |
|
|
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
14438 |
|
|
fi
|
14439 |
|
|
;;
|
14440 |
|
|
|
14441 |
|
|
uts4*)
|
14442 |
|
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
14443 |
|
|
hardcode_libdir_flag_spec_F77='-L$libdir'
|
14444 |
|
|
hardcode_shlibpath_var_F77=no
|
14445 |
|
|
;;
|
14446 |
|
|
|
14447 |
|
|
*)
|
14448 |
|
|
ld_shlibs_F77=no
|
14449 |
|
|
;;
|
14450 |
|
|
esac
|
14451 |
|
|
fi
|
14452 |
|
|
|
14453 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
|
14454 |
|
|
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
|
14455 |
|
|
test "$ld_shlibs_F77" = no && can_build_shared=no
|
14456 |
|
|
|
14457 |
|
|
#
|
14458 |
|
|
# Do we need to explicitly link libc?
|
14459 |
|
|
#
|
14460 |
|
|
case "x$archive_cmds_need_lc_F77" in
|
14461 |
|
|
x|xyes)
|
14462 |
|
|
# Assume -lc should be added
|
14463 |
|
|
archive_cmds_need_lc_F77=yes
|
14464 |
|
|
|
14465 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
14466 |
|
|
case $archive_cmds_F77 in
|
14467 |
|
|
*'~'*)
|
14468 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
14469 |
|
|
;;
|
14470 |
|
|
'$CC '*)
|
14471 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
14472 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
14473 |
|
|
# to ld, don't add -lc before -lgcc.
|
14474 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
14475 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
14476 |
|
|
$rm conftest*
|
14477 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
14478 |
|
|
|
14479 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
14480 |
|
|
(eval $ac_compile) 2>&5
|
14481 |
|
|
ac_status=$?
|
14482 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14483 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
14484 |
|
|
soname=conftest
|
14485 |
|
|
lib=conftest
|
14486 |
|
|
libobjs=conftest.$ac_objext
|
14487 |
|
|
deplibs=
|
14488 |
|
|
wl=$lt_prog_compiler_wl_F77
|
14489 |
|
|
pic_flag=$lt_prog_compiler_pic_F77
|
14490 |
|
|
compiler_flags=-v
|
14491 |
|
|
linker_flags=-v
|
14492 |
|
|
verstring=
|
14493 |
|
|
output_objdir=.
|
14494 |
|
|
libname=conftest
|
14495 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
|
14496 |
|
|
allow_undefined_flag_F77=
|
14497 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
14498 |
|
|
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
14499 |
|
|
ac_status=$?
|
14500 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14501 |
|
|
(exit $ac_status); }
|
14502 |
|
|
then
|
14503 |
|
|
archive_cmds_need_lc_F77=no
|
14504 |
|
|
else
|
14505 |
|
|
archive_cmds_need_lc_F77=yes
|
14506 |
|
|
fi
|
14507 |
|
|
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
|
14508 |
|
|
else
|
14509 |
|
|
cat conftest.err 1>&5
|
14510 |
|
|
fi
|
14511 |
|
|
$rm conftest*
|
14512 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
|
14513 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
|
14514 |
|
|
;;
|
14515 |
|
|
esac
|
14516 |
|
|
fi
|
14517 |
|
|
;;
|
14518 |
|
|
esac
|
14519 |
|
|
|
14520 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
14521 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
14522 |
|
|
library_names_spec=
|
14523 |
|
|
libname_spec='lib$name'
|
14524 |
|
|
soname_spec=
|
14525 |
|
|
shrext_cmds=".so"
|
14526 |
|
|
postinstall_cmds=
|
14527 |
|
|
postuninstall_cmds=
|
14528 |
|
|
finish_cmds=
|
14529 |
|
|
finish_eval=
|
14530 |
|
|
shlibpath_var=
|
14531 |
|
|
shlibpath_overrides_runpath=unknown
|
14532 |
|
|
version_type=none
|
14533 |
|
|
dynamic_linker="$host_os ld.so"
|
14534 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
14535 |
|
|
|
14536 |
|
|
need_lib_prefix=unknown
|
14537 |
|
|
hardcode_into_libs=no
|
14538 |
|
|
|
14539 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
14540 |
|
|
# flags to be left without arguments
|
14541 |
|
|
need_version=unknown
|
14542 |
|
|
|
14543 |
|
|
case $host_os in
|
14544 |
|
|
aix3*)
|
14545 |
|
|
version_type=linux
|
14546 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
14547 |
|
|
shlibpath_var=LIBPATH
|
14548 |
|
|
|
14549 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
14550 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14551 |
|
|
;;
|
14552 |
|
|
|
14553 |
|
|
aix4* | aix5*)
|
14554 |
|
|
version_type=linux
|
14555 |
|
|
need_lib_prefix=no
|
14556 |
|
|
need_version=no
|
14557 |
|
|
hardcode_into_libs=yes
|
14558 |
|
|
if test "$host_cpu" = ia64; then
|
14559 |
|
|
# AIX 5 supports IA64
|
14560 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
14561 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14562 |
|
|
else
|
14563 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
14564 |
|
|
# for dependence libraries. The import file would start with
|
14565 |
|
|
# the line `#! .'. This would cause the generated library to
|
14566 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
14567 |
|
|
# development snapshots of GCC prior to 3.0.
|
14568 |
|
|
case $host_os in
|
14569 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
14570 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
14571 |
|
|
echo ' yes '
|
14572 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
14573 |
|
|
:
|
14574 |
|
|
else
|
14575 |
|
|
can_build_shared=no
|
14576 |
|
|
fi
|
14577 |
|
|
;;
|
14578 |
|
|
esac
|
14579 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
14580 |
|
|
# soname into executable. Probably we can add versioning support to
|
14581 |
|
|
# collect2, so additional links can be useful in future.
|
14582 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
14583 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
14584 |
|
|
# instead of lib.a to let people know that these are not
|
14585 |
|
|
# typical AIX shared libraries.
|
14586 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14587 |
|
|
else
|
14588 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
14589 |
|
|
# and later when we are not doing run time linking.
|
14590 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
14591 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14592 |
|
|
fi
|
14593 |
|
|
shlibpath_var=LIBPATH
|
14594 |
|
|
fi
|
14595 |
|
|
;;
|
14596 |
|
|
|
14597 |
|
|
amigaos*)
|
14598 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
14599 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
14600 |
|
|
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'
|
14601 |
|
|
;;
|
14602 |
|
|
|
14603 |
|
|
beos*)
|
14604 |
|
|
library_names_spec='${libname}${shared_ext}'
|
14605 |
|
|
dynamic_linker="$host_os ld.so"
|
14606 |
|
|
shlibpath_var=LIBRARY_PATH
|
14607 |
|
|
;;
|
14608 |
|
|
|
14609 |
|
|
bsdi[45]*)
|
14610 |
|
|
version_type=linux
|
14611 |
|
|
need_version=no
|
14612 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14613 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14614 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
14615 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14616 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
14617 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
14618 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
14619 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
14620 |
|
|
# libtool to hard-code these into programs
|
14621 |
|
|
;;
|
14622 |
|
|
|
14623 |
|
|
cygwin* | mingw* | pw32*)
|
14624 |
|
|
version_type=windows
|
14625 |
|
|
shrext_cmds=".dll"
|
14626 |
|
|
need_version=no
|
14627 |
|
|
need_lib_prefix=no
|
14628 |
|
|
|
14629 |
|
|
case $GCC,$host_os in
|
14630 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
14631 |
|
|
library_names_spec='$libname.dll.a'
|
14632 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
14633 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
14634 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
14635 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
14636 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
14637 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
14638 |
|
|
chmod a+x \$dldir/$dlname'
|
14639 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
14640 |
|
|
dlpath=$dir/\$dldll~
|
14641 |
|
|
$rm \$dlpath'
|
14642 |
|
|
shlibpath_overrides_runpath=yes
|
14643 |
|
|
|
14644 |
|
|
case $host_os in
|
14645 |
|
|
cygwin*)
|
14646 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
14647 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
14648 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
14649 |
|
|
;;
|
14650 |
|
|
mingw*)
|
14651 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
14652 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
14653 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
14654 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
14655 |
|
|
# It is most probably a Windows format PATH printed by
|
14656 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
14657 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
14658 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
14659 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
14660 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
14661 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
14662 |
|
|
else
|
14663 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
14664 |
|
|
fi
|
14665 |
|
|
;;
|
14666 |
|
|
pw32*)
|
14667 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
14668 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
14669 |
|
|
;;
|
14670 |
|
|
esac
|
14671 |
|
|
;;
|
14672 |
|
|
|
14673 |
|
|
*)
|
14674 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
14675 |
|
|
;;
|
14676 |
|
|
esac
|
14677 |
|
|
dynamic_linker='Win32 ld.exe'
|
14678 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
14679 |
|
|
shlibpath_var=PATH
|
14680 |
|
|
;;
|
14681 |
|
|
|
14682 |
|
|
darwin* | rhapsody*)
|
14683 |
|
|
dynamic_linker="$host_os dyld"
|
14684 |
|
|
version_type=darwin
|
14685 |
|
|
need_lib_prefix=no
|
14686 |
|
|
need_version=no
|
14687 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
14688 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
14689 |
|
|
shlibpath_overrides_runpath=yes
|
14690 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
14691 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
14692 |
|
|
|
14693 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
14694 |
|
|
;;
|
14695 |
|
|
|
14696 |
|
|
dgux*)
|
14697 |
|
|
version_type=linux
|
14698 |
|
|
need_lib_prefix=no
|
14699 |
|
|
need_version=no
|
14700 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
14701 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14702 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14703 |
|
|
;;
|
14704 |
|
|
|
14705 |
|
|
freebsd1*)
|
14706 |
|
|
dynamic_linker=no
|
14707 |
|
|
;;
|
14708 |
|
|
|
14709 |
|
|
freebsd* | dragonfly*)
|
14710 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
14711 |
|
|
# versioning mechanism, adjust this.
|
14712 |
|
|
if test -x /usr/bin/objformat; then
|
14713 |
|
|
objformat=`/usr/bin/objformat`
|
14714 |
|
|
else
|
14715 |
|
|
case $host_os in
|
14716 |
|
|
freebsd[123]*) objformat=aout ;;
|
14717 |
|
|
*) objformat=elf ;;
|
14718 |
|
|
esac
|
14719 |
|
|
fi
|
14720 |
|
|
version_type=freebsd-$objformat
|
14721 |
|
|
case $version_type in
|
14722 |
|
|
freebsd-elf*)
|
14723 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
14724 |
|
|
need_version=no
|
14725 |
|
|
need_lib_prefix=no
|
14726 |
|
|
;;
|
14727 |
|
|
freebsd-*)
|
14728 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
14729 |
|
|
need_version=yes
|
14730 |
|
|
;;
|
14731 |
|
|
esac
|
14732 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14733 |
|
|
case $host_os in
|
14734 |
|
|
freebsd2*)
|
14735 |
|
|
shlibpath_overrides_runpath=yes
|
14736 |
|
|
;;
|
14737 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
14738 |
|
|
shlibpath_overrides_runpath=yes
|
14739 |
|
|
hardcode_into_libs=yes
|
14740 |
|
|
;;
|
14741 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
14742 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
14743 |
|
|
shlibpath_overrides_runpath=no
|
14744 |
|
|
hardcode_into_libs=yes
|
14745 |
|
|
;;
|
14746 |
|
|
*) # from 4.6 on, and DragonFly
|
14747 |
|
|
shlibpath_overrides_runpath=yes
|
14748 |
|
|
hardcode_into_libs=yes
|
14749 |
|
|
;;
|
14750 |
|
|
esac
|
14751 |
|
|
;;
|
14752 |
|
|
|
14753 |
|
|
gnu*)
|
14754 |
|
|
version_type=linux
|
14755 |
|
|
need_lib_prefix=no
|
14756 |
|
|
need_version=no
|
14757 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
14758 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14759 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14760 |
|
|
hardcode_into_libs=yes
|
14761 |
|
|
;;
|
14762 |
|
|
|
14763 |
|
|
hpux9* | hpux10* | hpux11*)
|
14764 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
14765 |
|
|
# link against other versions.
|
14766 |
|
|
version_type=sunos
|
14767 |
|
|
need_lib_prefix=no
|
14768 |
|
|
need_version=no
|
14769 |
|
|
case $host_cpu in
|
14770 |
|
|
ia64*)
|
14771 |
|
|
shrext_cmds='.so'
|
14772 |
|
|
hardcode_into_libs=yes
|
14773 |
|
|
dynamic_linker="$host_os dld.so"
|
14774 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14775 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
14776 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14777 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14778 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
14779 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
14780 |
|
|
else
|
14781 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
14782 |
|
|
fi
|
14783 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
14784 |
|
|
;;
|
14785 |
|
|
hppa*64*)
|
14786 |
|
|
shrext_cmds='.sl'
|
14787 |
|
|
hardcode_into_libs=yes
|
14788 |
|
|
dynamic_linker="$host_os dld.sl"
|
14789 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
14790 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
14791 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14792 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14793 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
14794 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
14795 |
|
|
;;
|
14796 |
|
|
*)
|
14797 |
|
|
shrext_cmds='.sl'
|
14798 |
|
|
dynamic_linker="$host_os dld.sl"
|
14799 |
|
|
shlibpath_var=SHLIB_PATH
|
14800 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
14801 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14802 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14803 |
|
|
;;
|
14804 |
|
|
esac
|
14805 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
14806 |
|
|
postinstall_cmds='chmod 555 $lib'
|
14807 |
|
|
;;
|
14808 |
|
|
|
14809 |
|
|
interix[3-9]*)
|
14810 |
|
|
version_type=linux
|
14811 |
|
|
need_lib_prefix=no
|
14812 |
|
|
need_version=no
|
14813 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
14814 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14815 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
14816 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14817 |
|
|
shlibpath_overrides_runpath=no
|
14818 |
|
|
hardcode_into_libs=yes
|
14819 |
|
|
;;
|
14820 |
|
|
|
14821 |
|
|
irix5* | irix6* | nonstopux*)
|
14822 |
|
|
case $host_os in
|
14823 |
|
|
nonstopux*) version_type=nonstopux ;;
|
14824 |
|
|
*)
|
14825 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
14826 |
|
|
version_type=linux
|
14827 |
|
|
else
|
14828 |
|
|
version_type=irix
|
14829 |
|
|
fi ;;
|
14830 |
|
|
esac
|
14831 |
|
|
need_lib_prefix=no
|
14832 |
|
|
need_version=no
|
14833 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14834 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
14835 |
|
|
case $host_os in
|
14836 |
|
|
irix5* | nonstopux*)
|
14837 |
|
|
libsuff= shlibsuff=
|
14838 |
|
|
;;
|
14839 |
|
|
*)
|
14840 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
14841 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
14842 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
14843 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
14844 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
14845 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
14846 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
14847 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
14848 |
|
|
esac
|
14849 |
|
|
;;
|
14850 |
|
|
esac
|
14851 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
14852 |
|
|
shlibpath_overrides_runpath=no
|
14853 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
14854 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
14855 |
|
|
hardcode_into_libs=yes
|
14856 |
|
|
;;
|
14857 |
|
|
|
14858 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
14859 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
14860 |
|
|
dynamic_linker=no
|
14861 |
|
|
;;
|
14862 |
|
|
|
14863 |
|
|
# This must be Linux ELF.
|
14864 |
|
|
linux* | k*bsd*-gnu)
|
14865 |
|
|
version_type=linux
|
14866 |
|
|
need_lib_prefix=no
|
14867 |
|
|
need_version=no
|
14868 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14869 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14870 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
14871 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14872 |
|
|
shlibpath_overrides_runpath=no
|
14873 |
|
|
# This implies no fast_install, which is unacceptable.
|
14874 |
|
|
# Some rework will be needed to allow for fast_install
|
14875 |
|
|
# before this can be enabled.
|
14876 |
|
|
hardcode_into_libs=yes
|
14877 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
14878 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
14879 |
|
|
|
14880 |
|
|
# Append ld.so.conf contents to the search path
|
14881 |
|
|
if test -f /etc/ld.so.conf; then
|
14882 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
14883 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
14884 |
|
|
fi
|
14885 |
|
|
|
14886 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
14887 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
14888 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
14889 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
14890 |
|
|
# people can always --disable-shared, the test was removed, and we
|
14891 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
14892 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
14893 |
|
|
;;
|
14894 |
|
|
|
14895 |
|
|
netbsd*)
|
14896 |
|
|
version_type=sunos
|
14897 |
|
|
need_lib_prefix=no
|
14898 |
|
|
need_version=no
|
14899 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
14900 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
14901 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
14902 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
14903 |
|
|
else
|
14904 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
14905 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14906 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
14907 |
|
|
fi
|
14908 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14909 |
|
|
shlibpath_overrides_runpath=yes
|
14910 |
|
|
hardcode_into_libs=yes
|
14911 |
|
|
;;
|
14912 |
|
|
|
14913 |
|
|
newsos6)
|
14914 |
|
|
version_type=linux
|
14915 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14916 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14917 |
|
|
shlibpath_overrides_runpath=yes
|
14918 |
|
|
;;
|
14919 |
|
|
|
14920 |
|
|
nto-qnx*)
|
14921 |
|
|
version_type=linux
|
14922 |
|
|
need_lib_prefix=no
|
14923 |
|
|
need_version=no
|
14924 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14925 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14926 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14927 |
|
|
shlibpath_overrides_runpath=yes
|
14928 |
|
|
;;
|
14929 |
|
|
|
14930 |
|
|
openbsd*)
|
14931 |
|
|
version_type=sunos
|
14932 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
14933 |
|
|
need_lib_prefix=no
|
14934 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
14935 |
|
|
case $host_os in
|
14936 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
14937 |
|
|
*) need_version=no ;;
|
14938 |
|
|
esac
|
14939 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
14940 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
14941 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14942 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
14943 |
|
|
case $host_os in
|
14944 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
14945 |
|
|
shlibpath_overrides_runpath=no
|
14946 |
|
|
;;
|
14947 |
|
|
*)
|
14948 |
|
|
shlibpath_overrides_runpath=yes
|
14949 |
|
|
;;
|
14950 |
|
|
esac
|
14951 |
|
|
else
|
14952 |
|
|
shlibpath_overrides_runpath=yes
|
14953 |
|
|
fi
|
14954 |
|
|
;;
|
14955 |
|
|
|
14956 |
|
|
os2*)
|
14957 |
|
|
libname_spec='$name'
|
14958 |
|
|
shrext_cmds=".dll"
|
14959 |
|
|
need_lib_prefix=no
|
14960 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
14961 |
|
|
dynamic_linker='OS/2 ld.exe'
|
14962 |
|
|
shlibpath_var=LIBPATH
|
14963 |
|
|
;;
|
14964 |
|
|
|
14965 |
|
|
osf3* | osf4* | osf5*)
|
14966 |
|
|
version_type=osf
|
14967 |
|
|
need_lib_prefix=no
|
14968 |
|
|
need_version=no
|
14969 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14970 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14971 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14972 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
14973 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
14974 |
|
|
;;
|
14975 |
|
|
|
14976 |
|
|
rdos*)
|
14977 |
|
|
dynamic_linker=no
|
14978 |
|
|
;;
|
14979 |
|
|
|
14980 |
|
|
solaris*)
|
14981 |
|
|
version_type=linux
|
14982 |
|
|
need_lib_prefix=no
|
14983 |
|
|
need_version=no
|
14984 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14985 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
14986 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14987 |
|
|
shlibpath_overrides_runpath=yes
|
14988 |
|
|
hardcode_into_libs=yes
|
14989 |
|
|
# ldd complains unless libraries are executable
|
14990 |
|
|
postinstall_cmds='chmod +x $lib'
|
14991 |
|
|
;;
|
14992 |
|
|
|
14993 |
|
|
sunos4*)
|
14994 |
|
|
version_type=sunos
|
14995 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
14996 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
14997 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
14998 |
|
|
shlibpath_overrides_runpath=yes
|
14999 |
|
|
if test "$with_gnu_ld" = yes; then
|
15000 |
|
|
need_lib_prefix=no
|
15001 |
|
|
fi
|
15002 |
|
|
need_version=yes
|
15003 |
|
|
;;
|
15004 |
|
|
|
15005 |
|
|
sysv4 | sysv4.3*)
|
15006 |
|
|
version_type=linux
|
15007 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
15008 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
15009 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15010 |
|
|
case $host_vendor in
|
15011 |
|
|
sni)
|
15012 |
|
|
shlibpath_overrides_runpath=no
|
15013 |
|
|
need_lib_prefix=no
|
15014 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
15015 |
|
|
runpath_var=LD_RUN_PATH
|
15016 |
|
|
;;
|
15017 |
|
|
siemens)
|
15018 |
|
|
need_lib_prefix=no
|
15019 |
|
|
;;
|
15020 |
|
|
motorola)
|
15021 |
|
|
need_lib_prefix=no
|
15022 |
|
|
need_version=no
|
15023 |
|
|
shlibpath_overrides_runpath=no
|
15024 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
15025 |
|
|
;;
|
15026 |
|
|
esac
|
15027 |
|
|
;;
|
15028 |
|
|
|
15029 |
|
|
sysv4*MP*)
|
15030 |
|
|
if test -d /usr/nec ;then
|
15031 |
|
|
version_type=linux
|
15032 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
15033 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
15034 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15035 |
|
|
fi
|
15036 |
|
|
;;
|
15037 |
|
|
|
15038 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
15039 |
|
|
version_type=freebsd-elf
|
15040 |
|
|
need_lib_prefix=no
|
15041 |
|
|
need_version=no
|
15042 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
15043 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
15044 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15045 |
|
|
hardcode_into_libs=yes
|
15046 |
|
|
if test "$with_gnu_ld" = yes; then
|
15047 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
15048 |
|
|
shlibpath_overrides_runpath=no
|
15049 |
|
|
else
|
15050 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
15051 |
|
|
shlibpath_overrides_runpath=yes
|
15052 |
|
|
case $host_os in
|
15053 |
|
|
sco3.2v5*)
|
15054 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
15055 |
|
|
;;
|
15056 |
|
|
esac
|
15057 |
|
|
fi
|
15058 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
15059 |
|
|
;;
|
15060 |
|
|
|
15061 |
|
|
uts4*)
|
15062 |
|
|
version_type=linux
|
15063 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
15064 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
15065 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
15066 |
|
|
;;
|
15067 |
|
|
|
15068 |
|
|
*)
|
15069 |
|
|
dynamic_linker=no
|
15070 |
|
|
;;
|
15071 |
|
|
esac
|
15072 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
15073 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
15074 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
15075 |
|
|
|
15076 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
15077 |
|
|
if test "$GCC" = yes; then
|
15078 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
15079 |
|
|
fi
|
15080 |
|
|
|
15081 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
15082 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
15083 |
|
|
hardcode_action_F77=
|
15084 |
|
|
if test -n "$hardcode_libdir_flag_spec_F77" || \
|
15085 |
|
|
test -n "$runpath_var_F77" || \
|
15086 |
|
|
test "X$hardcode_automatic_F77" = "Xyes" ; then
|
15087 |
|
|
|
15088 |
|
|
# We can hardcode non-existant directories.
|
15089 |
|
|
if test "$hardcode_direct_F77" != no &&
|
15090 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
15091 |
|
|
# have to relink, otherwise we might link with an installed library
|
15092 |
|
|
# when we should be linking with a yet-to-be-installed one
|
15093 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
|
15094 |
|
|
test "$hardcode_minus_L_F77" != no; then
|
15095 |
|
|
# Linking always hardcodes the temporary library directory.
|
15096 |
|
|
hardcode_action_F77=relink
|
15097 |
|
|
else
|
15098 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
15099 |
|
|
hardcode_action_F77=immediate
|
15100 |
|
|
fi
|
15101 |
|
|
else
|
15102 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
15103 |
|
|
# directories.
|
15104 |
|
|
hardcode_action_F77=unsupported
|
15105 |
|
|
fi
|
15106 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
|
15107 |
|
|
echo "${ECHO_T}$hardcode_action_F77" >&6; }
|
15108 |
|
|
|
15109 |
|
|
if test "$hardcode_action_F77" = relink; then
|
15110 |
|
|
# Fast installation is not supported
|
15111 |
|
|
enable_fast_install=no
|
15112 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
15113 |
|
|
test "$enable_shared" = no; then
|
15114 |
|
|
# Fast installation is not necessary
|
15115 |
|
|
enable_fast_install=needless
|
15116 |
|
|
fi
|
15117 |
|
|
|
15118 |
|
|
|
15119 |
|
|
# The else clause should only fire when bootstrapping the
|
15120 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
15121 |
|
|
# with your package, and you will get complaints that there are
|
15122 |
|
|
# no rules to generate ltmain.sh.
|
15123 |
|
|
if test -f "$ltmain"; then
|
15124 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
15125 |
|
|
# without removal of \ escapes.
|
15126 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
15127 |
|
|
setopt NO_GLOB_SUBST
|
15128 |
|
|
fi
|
15129 |
|
|
# Now quote all the things that may contain metacharacters while being
|
15130 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
15131 |
|
|
# variables and quote the copies for generation of the libtool script.
|
15132 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
15133 |
|
|
SED SHELL STRIP \
|
15134 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
15135 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
15136 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
15137 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
15138 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
15139 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
15140 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
15141 |
|
|
compiler_F77 \
|
15142 |
|
|
CC_F77 \
|
15143 |
|
|
LD_F77 \
|
15144 |
|
|
lt_prog_compiler_wl_F77 \
|
15145 |
|
|
lt_prog_compiler_pic_F77 \
|
15146 |
|
|
lt_prog_compiler_static_F77 \
|
15147 |
|
|
lt_prog_compiler_no_builtin_flag_F77 \
|
15148 |
|
|
export_dynamic_flag_spec_F77 \
|
15149 |
|
|
thread_safe_flag_spec_F77 \
|
15150 |
|
|
whole_archive_flag_spec_F77 \
|
15151 |
|
|
enable_shared_with_static_runtimes_F77 \
|
15152 |
|
|
old_archive_cmds_F77 \
|
15153 |
|
|
old_archive_from_new_cmds_F77 \
|
15154 |
|
|
predep_objects_F77 \
|
15155 |
|
|
postdep_objects_F77 \
|
15156 |
|
|
predeps_F77 \
|
15157 |
|
|
postdeps_F77 \
|
15158 |
|
|
compiler_lib_search_path_F77 \
|
15159 |
|
|
archive_cmds_F77 \
|
15160 |
|
|
archive_expsym_cmds_F77 \
|
15161 |
|
|
postinstall_cmds_F77 \
|
15162 |
|
|
postuninstall_cmds_F77 \
|
15163 |
|
|
old_archive_from_expsyms_cmds_F77 \
|
15164 |
|
|
allow_undefined_flag_F77 \
|
15165 |
|
|
no_undefined_flag_F77 \
|
15166 |
|
|
export_symbols_cmds_F77 \
|
15167 |
|
|
hardcode_libdir_flag_spec_F77 \
|
15168 |
|
|
hardcode_libdir_flag_spec_ld_F77 \
|
15169 |
|
|
hardcode_libdir_separator_F77 \
|
15170 |
|
|
hardcode_automatic_F77 \
|
15171 |
|
|
module_cmds_F77 \
|
15172 |
|
|
module_expsym_cmds_F77 \
|
15173 |
|
|
lt_cv_prog_compiler_c_o_F77 \
|
15174 |
|
|
fix_srcfile_path_F77 \
|
15175 |
|
|
exclude_expsyms_F77 \
|
15176 |
|
|
include_expsyms_F77; do
|
15177 |
|
|
|
15178 |
|
|
case $var in
|
15179 |
|
|
old_archive_cmds_F77 | \
|
15180 |
|
|
old_archive_from_new_cmds_F77 | \
|
15181 |
|
|
archive_cmds_F77 | \
|
15182 |
|
|
archive_expsym_cmds_F77 | \
|
15183 |
|
|
module_cmds_F77 | \
|
15184 |
|
|
module_expsym_cmds_F77 | \
|
15185 |
|
|
old_archive_from_expsyms_cmds_F77 | \
|
15186 |
|
|
export_symbols_cmds_F77 | \
|
15187 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
15188 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
15189 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
15190 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
15191 |
|
|
# Double-quote double-evaled strings.
|
15192 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
15193 |
|
|
;;
|
15194 |
|
|
*)
|
15195 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
15196 |
|
|
;;
|
15197 |
|
|
esac
|
15198 |
|
|
done
|
15199 |
|
|
|
15200 |
|
|
case $lt_echo in
|
15201 |
|
|
*'\$0 --fallback-echo"')
|
15202 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
15203 |
|
|
;;
|
15204 |
|
|
esac
|
15205 |
|
|
|
15206 |
|
|
cfgfile="$ofile"
|
15207 |
|
|
|
15208 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
15209 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
15210 |
|
|
|
15211 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
15212 |
|
|
|
15213 |
|
|
# Shell to use when invoking shell scripts.
|
15214 |
|
|
SHELL=$lt_SHELL
|
15215 |
|
|
|
15216 |
|
|
# Whether or not to build shared libraries.
|
15217 |
|
|
build_libtool_libs=$enable_shared
|
15218 |
|
|
|
15219 |
|
|
# Whether or not to build static libraries.
|
15220 |
|
|
build_old_libs=$enable_static
|
15221 |
|
|
|
15222 |
|
|
# Whether or not to add -lc for building shared libraries.
|
15223 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_F77
|
15224 |
|
|
|
15225 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
15226 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
|
15227 |
|
|
|
15228 |
|
|
# Whether or not to optimize for fast installation.
|
15229 |
|
|
fast_install=$enable_fast_install
|
15230 |
|
|
|
15231 |
|
|
# The host system.
|
15232 |
|
|
host_alias=$host_alias
|
15233 |
|
|
host=$host
|
15234 |
|
|
host_os=$host_os
|
15235 |
|
|
|
15236 |
|
|
# The build system.
|
15237 |
|
|
build_alias=$build_alias
|
15238 |
|
|
build=$build
|
15239 |
|
|
build_os=$build_os
|
15240 |
|
|
|
15241 |
|
|
# An echo program that does not interpret backslashes.
|
15242 |
|
|
echo=$lt_echo
|
15243 |
|
|
|
15244 |
|
|
# The archiver.
|
15245 |
|
|
AR=$lt_AR
|
15246 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
15247 |
|
|
|
15248 |
|
|
# A C compiler.
|
15249 |
|
|
LTCC=$lt_LTCC
|
15250 |
|
|
|
15251 |
|
|
# LTCC compiler flags.
|
15252 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
15253 |
|
|
|
15254 |
|
|
# A language-specific compiler.
|
15255 |
|
|
CC=$lt_compiler_F77
|
15256 |
|
|
|
15257 |
|
|
# Is the compiler the GNU C compiler?
|
15258 |
|
|
with_gcc=$GCC_F77
|
15259 |
|
|
|
15260 |
|
|
# An ERE matcher.
|
15261 |
|
|
EGREP=$lt_EGREP
|
15262 |
|
|
|
15263 |
|
|
# The linker used to build libraries.
|
15264 |
|
|
LD=$lt_LD_F77
|
15265 |
|
|
|
15266 |
|
|
# Whether we need hard or soft links.
|
15267 |
|
|
LN_S=$lt_LN_S
|
15268 |
|
|
|
15269 |
|
|
# A BSD-compatible nm program.
|
15270 |
|
|
NM=$lt_NM
|
15271 |
|
|
|
15272 |
|
|
# A symbol stripping program
|
15273 |
|
|
STRIP=$lt_STRIP
|
15274 |
|
|
|
15275 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
15276 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
15277 |
|
|
|
15278 |
|
|
# Used on cygwin: DLL creation program.
|
15279 |
|
|
DLLTOOL="$DLLTOOL"
|
15280 |
|
|
|
15281 |
|
|
# Used on cygwin: object dumper.
|
15282 |
|
|
OBJDUMP="$OBJDUMP"
|
15283 |
|
|
|
15284 |
|
|
# Used on cygwin: assembler.
|
15285 |
|
|
AS="$AS"
|
15286 |
|
|
|
15287 |
|
|
# The name of the directory that contains temporary libtool files.
|
15288 |
|
|
objdir=$objdir
|
15289 |
|
|
|
15290 |
|
|
# How to create reloadable object files.
|
15291 |
|
|
reload_flag=$lt_reload_flag
|
15292 |
|
|
reload_cmds=$lt_reload_cmds
|
15293 |
|
|
|
15294 |
|
|
# How to pass a linker flag through the compiler.
|
15295 |
|
|
wl=$lt_lt_prog_compiler_wl_F77
|
15296 |
|
|
|
15297 |
|
|
# Object file suffix (normally "o").
|
15298 |
|
|
objext="$ac_objext"
|
15299 |
|
|
|
15300 |
|
|
# Old archive suffix (normally "a").
|
15301 |
|
|
libext="$libext"
|
15302 |
|
|
|
15303 |
|
|
# Shared library suffix (normally ".so").
|
15304 |
|
|
shrext_cmds='$shrext_cmds'
|
15305 |
|
|
|
15306 |
|
|
# Executable file suffix (normally "").
|
15307 |
|
|
exeext="$exeext"
|
15308 |
|
|
|
15309 |
|
|
# Additional compiler flags for building library objects.
|
15310 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_F77
|
15311 |
|
|
pic_mode=$pic_mode
|
15312 |
|
|
|
15313 |
|
|
# What is the maximum length of a command?
|
15314 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
15315 |
|
|
|
15316 |
|
|
# Does compiler simultaneously support -c and -o options?
|
15317 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
|
15318 |
|
|
|
15319 |
|
|
# Must we lock files when doing compilation?
|
15320 |
|
|
need_locks=$lt_need_locks
|
15321 |
|
|
|
15322 |
|
|
# Do we need the lib prefix for modules?
|
15323 |
|
|
need_lib_prefix=$need_lib_prefix
|
15324 |
|
|
|
15325 |
|
|
# Do we need a version for libraries?
|
15326 |
|
|
need_version=$need_version
|
15327 |
|
|
|
15328 |
|
|
# Whether dlopen is supported.
|
15329 |
|
|
dlopen_support=$enable_dlopen
|
15330 |
|
|
|
15331 |
|
|
# Whether dlopen of programs is supported.
|
15332 |
|
|
dlopen_self=$enable_dlopen_self
|
15333 |
|
|
|
15334 |
|
|
# Whether dlopen of statically linked programs is supported.
|
15335 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
15336 |
|
|
|
15337 |
|
|
# Compiler flag to prevent dynamic linking.
|
15338 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_F77
|
15339 |
|
|
|
15340 |
|
|
# Compiler flag to turn off builtin functions.
|
15341 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
|
15342 |
|
|
|
15343 |
|
|
# Compiler flag to allow reflexive dlopens.
|
15344 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
|
15345 |
|
|
|
15346 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
15347 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
|
15348 |
|
|
|
15349 |
|
|
# Compiler flag to generate thread-safe objects.
|
15350 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
|
15351 |
|
|
|
15352 |
|
|
# Library versioning type.
|
15353 |
|
|
version_type=$version_type
|
15354 |
|
|
|
15355 |
|
|
# Format of library name prefix.
|
15356 |
|
|
libname_spec=$lt_libname_spec
|
15357 |
|
|
|
15358 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
15359 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
15360 |
|
|
library_names_spec=$lt_library_names_spec
|
15361 |
|
|
|
15362 |
|
|
# The coded name of the library, if different from the real name.
|
15363 |
|
|
soname_spec=$lt_soname_spec
|
15364 |
|
|
|
15365 |
|
|
# Commands used to build and install an old-style archive.
|
15366 |
|
|
RANLIB=$lt_RANLIB
|
15367 |
|
|
old_archive_cmds=$lt_old_archive_cmds_F77
|
15368 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
15369 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
15370 |
|
|
|
15371 |
|
|
# Create an old-style archive from a shared archive.
|
15372 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
|
15373 |
|
|
|
15374 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
15375 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
|
15376 |
|
|
|
15377 |
|
|
# Commands used to build and install a shared archive.
|
15378 |
|
|
archive_cmds=$lt_archive_cmds_F77
|
15379 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
|
15380 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
15381 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
15382 |
|
|
|
15383 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
15384 |
|
|
module_cmds=$lt_module_cmds_F77
|
15385 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_F77
|
15386 |
|
|
|
15387 |
|
|
# Commands to strip libraries.
|
15388 |
|
|
old_striplib=$lt_old_striplib
|
15389 |
|
|
striplib=$lt_striplib
|
15390 |
|
|
|
15391 |
|
|
# Dependencies to place before the objects being linked to create a
|
15392 |
|
|
# shared library.
|
15393 |
|
|
predep_objects=$lt_predep_objects_F77
|
15394 |
|
|
|
15395 |
|
|
# Dependencies to place after the objects being linked to create a
|
15396 |
|
|
# shared library.
|
15397 |
|
|
postdep_objects=$lt_postdep_objects_F77
|
15398 |
|
|
|
15399 |
|
|
# Dependencies to place before the objects being linked to create a
|
15400 |
|
|
# shared library.
|
15401 |
|
|
predeps=$lt_predeps_F77
|
15402 |
|
|
|
15403 |
|
|
# Dependencies to place after the objects being linked to create a
|
15404 |
|
|
# shared library.
|
15405 |
|
|
postdeps=$lt_postdeps_F77
|
15406 |
|
|
|
15407 |
|
|
# The library search path used internally by the compiler when linking
|
15408 |
|
|
# a shared library.
|
15409 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
|
15410 |
|
|
|
15411 |
|
|
# Method to check whether dependent libraries are shared objects.
|
15412 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
15413 |
|
|
|
15414 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
15415 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
15416 |
|
|
|
15417 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
15418 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_F77
|
15419 |
|
|
|
15420 |
|
|
# Flag that forces no undefined symbols.
|
15421 |
|
|
no_undefined_flag=$lt_no_undefined_flag_F77
|
15422 |
|
|
|
15423 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
15424 |
|
|
finish_cmds=$lt_finish_cmds
|
15425 |
|
|
|
15426 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
15427 |
|
|
finish_eval=$lt_finish_eval
|
15428 |
|
|
|
15429 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
15430 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
15431 |
|
|
|
15432 |
|
|
# Transform the output of nm in a proper C declaration
|
15433 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
15434 |
|
|
|
15435 |
|
|
# Transform the output of nm in a C name address pair
|
15436 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
15437 |
|
|
|
15438 |
|
|
# This is the shared library runtime path variable.
|
15439 |
|
|
runpath_var=$runpath_var
|
15440 |
|
|
|
15441 |
|
|
# This is the shared library path variable.
|
15442 |
|
|
shlibpath_var=$shlibpath_var
|
15443 |
|
|
|
15444 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
15445 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
15446 |
|
|
|
15447 |
|
|
# How to hardcode a shared library path into an executable.
|
15448 |
|
|
hardcode_action=$hardcode_action_F77
|
15449 |
|
|
|
15450 |
|
|
# Whether we should hardcode library paths into libraries.
|
15451 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
15452 |
|
|
|
15453 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
15454 |
|
|
# This must work even if \$libdir does not exist.
|
15455 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
|
15456 |
|
|
|
15457 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
15458 |
|
|
# a binary during linking. This must work even if \$libdir does
|
15459 |
|
|
# not exist.
|
15460 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
|
15461 |
|
|
|
15462 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
15463 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
|
15464 |
|
|
|
15465 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
15466 |
|
|
# resulting binary.
|
15467 |
|
|
hardcode_direct=$hardcode_direct_F77
|
15468 |
|
|
|
15469 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
15470 |
|
|
# resulting binary.
|
15471 |
|
|
hardcode_minus_L=$hardcode_minus_L_F77
|
15472 |
|
|
|
15473 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
15474 |
|
|
# the resulting binary.
|
15475 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
|
15476 |
|
|
|
15477 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
15478 |
|
|
# and all subsequent libraries and executables linked against it.
|
15479 |
|
|
hardcode_automatic=$hardcode_automatic_F77
|
15480 |
|
|
|
15481 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
15482 |
|
|
# restored at relink time.
|
15483 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
15484 |
|
|
|
15485 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
15486 |
|
|
link_all_deplibs=$link_all_deplibs_F77
|
15487 |
|
|
|
15488 |
|
|
# Compile-time system search path for libraries
|
15489 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
15490 |
|
|
|
15491 |
|
|
# Run-time system search path for libraries
|
15492 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
15493 |
|
|
|
15494 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
15495 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
15496 |
|
|
|
15497 |
|
|
# Set to yes if exported symbols are required.
|
15498 |
|
|
always_export_symbols=$always_export_symbols_F77
|
15499 |
|
|
|
15500 |
|
|
# The commands to list exported symbols.
|
15501 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_F77
|
15502 |
|
|
|
15503 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
15504 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
15505 |
|
|
|
15506 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
15507 |
|
|
exclude_expsyms=$lt_exclude_expsyms_F77
|
15508 |
|
|
|
15509 |
|
|
# Symbols that must always be exported.
|
15510 |
|
|
include_expsyms=$lt_include_expsyms_F77
|
15511 |
|
|
|
15512 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
15513 |
|
|
|
15514 |
|
|
__EOF__
|
15515 |
|
|
|
15516 |
|
|
|
15517 |
|
|
else
|
15518 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
15519 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
15520 |
|
|
# libtool script then.
|
15521 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
15522 |
|
|
if test -f "$ltmain_in"; then
|
15523 |
|
|
test -f Makefile && make "$ltmain"
|
15524 |
|
|
fi
|
15525 |
|
|
fi
|
15526 |
|
|
|
15527 |
|
|
|
15528 |
|
|
ac_ext=c
|
15529 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
15530 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
15531 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
15532 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
15533 |
|
|
|
15534 |
|
|
CC="$lt_save_CC"
|
15535 |
|
|
|
15536 |
|
|
else
|
15537 |
|
|
tagname=""
|
15538 |
|
|
fi
|
15539 |
|
|
;;
|
15540 |
|
|
|
15541 |
|
|
GCJ)
|
15542 |
|
|
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
15543 |
|
|
|
15544 |
|
|
|
15545 |
|
|
# Source file extension for Java test sources.
|
15546 |
|
|
ac_ext=java
|
15547 |
|
|
|
15548 |
|
|
# Object file extension for compiled Java test sources.
|
15549 |
|
|
objext=o
|
15550 |
|
|
objext_GCJ=$objext
|
15551 |
|
|
|
15552 |
|
|
# Code to be used in simple compile tests
|
15553 |
|
|
lt_simple_compile_test_code="class foo {}"
|
15554 |
|
|
|
15555 |
|
|
# Code to be used in simple link tests
|
15556 |
|
|
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
|
15557 |
|
|
|
15558 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
15559 |
|
|
|
15560 |
|
|
# If no C compiler was specified, use CC.
|
15561 |
|
|
LTCC=${LTCC-"$CC"}
|
15562 |
|
|
|
15563 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
15564 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
15565 |
|
|
|
15566 |
|
|
# Allow CC to be a program name with arguments.
|
15567 |
|
|
compiler=$CC
|
15568 |
|
|
|
15569 |
|
|
|
15570 |
|
|
# save warnings/boilerplate of simple test code
|
15571 |
|
|
ac_outfile=conftest.$ac_objext
|
15572 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
15573 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
15574 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
15575 |
|
|
$rm conftest*
|
15576 |
|
|
|
15577 |
|
|
ac_outfile=conftest.$ac_objext
|
15578 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
15579 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
15580 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
15581 |
|
|
$rm conftest*
|
15582 |
|
|
|
15583 |
|
|
|
15584 |
|
|
# Allow CC to be a program name with arguments.
|
15585 |
|
|
lt_save_CC="$CC"
|
15586 |
|
|
CC=${GCJ-"gcj"}
|
15587 |
|
|
compiler=$CC
|
15588 |
|
|
compiler_GCJ=$CC
|
15589 |
|
|
for cc_temp in $compiler""; do
|
15590 |
|
|
case $cc_temp in
|
15591 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
15592 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
15593 |
|
|
\-*) ;;
|
15594 |
|
|
*) break;;
|
15595 |
|
|
esac
|
15596 |
|
|
done
|
15597 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
15598 |
|
|
|
15599 |
|
|
|
15600 |
|
|
# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
15601 |
|
|
archive_cmds_need_lc_GCJ=no
|
15602 |
|
|
|
15603 |
|
|
old_archive_cmds_GCJ=$old_archive_cmds
|
15604 |
|
|
|
15605 |
|
|
## CAVEAT EMPTOR:
|
15606 |
|
|
## There is no encapsulation within the following macros, do not change
|
15607 |
|
|
## the running order or otherwise move them around unless you know exactly
|
15608 |
|
|
## what you are doing...
|
15609 |
|
|
|
15610 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ=
|
15611 |
|
|
|
15612 |
|
|
if test "$GCC" = yes; then
|
15613 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
|
15614 |
|
|
|
15615 |
|
|
|
15616 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
15617 |
|
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
|
15618 |
|
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
15619 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
15620 |
|
|
else
|
15621 |
|
|
lt_cv_prog_compiler_rtti_exceptions=no
|
15622 |
|
|
ac_outfile=conftest.$ac_objext
|
15623 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
15624 |
|
|
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
15625 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
15626 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
15627 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
15628 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
15629 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
15630 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
15631 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15632 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15633 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
15634 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
15635 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
15636 |
|
|
ac_status=$?
|
15637 |
|
|
cat conftest.err >&5
|
15638 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
15639 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
15640 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
15641 |
|
|
# So say no if there are warnings other than the usual output.
|
15642 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
15643 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
15644 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
15645 |
|
|
lt_cv_prog_compiler_rtti_exceptions=yes
|
15646 |
|
|
fi
|
15647 |
|
|
fi
|
15648 |
|
|
$rm conftest*
|
15649 |
|
|
|
15650 |
|
|
fi
|
15651 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
15652 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
15653 |
|
|
|
15654 |
|
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
15655 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
|
15656 |
|
|
else
|
15657 |
|
|
:
|
15658 |
|
|
fi
|
15659 |
|
|
|
15660 |
|
|
fi
|
15661 |
|
|
|
15662 |
|
|
lt_prog_compiler_wl_GCJ=
|
15663 |
|
|
lt_prog_compiler_pic_GCJ=
|
15664 |
|
|
lt_prog_compiler_static_GCJ=
|
15665 |
|
|
|
15666 |
|
|
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
15667 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
15668 |
|
|
|
15669 |
|
|
if test "$GCC" = yes; then
|
15670 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15671 |
|
|
lt_prog_compiler_static_GCJ='-static'
|
15672 |
|
|
|
15673 |
|
|
case $host_os in
|
15674 |
|
|
aix*)
|
15675 |
|
|
# All AIX code is PIC.
|
15676 |
|
|
if test "$host_cpu" = ia64; then
|
15677 |
|
|
# AIX 5 now supports IA64 processor
|
15678 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15679 |
|
|
fi
|
15680 |
|
|
;;
|
15681 |
|
|
|
15682 |
|
|
amigaos*)
|
15683 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
15684 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
15685 |
|
|
# like `-m68040'.
|
15686 |
|
|
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
|
15687 |
|
|
;;
|
15688 |
|
|
|
15689 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
15690 |
|
|
# PIC is the default for these OSes.
|
15691 |
|
|
;;
|
15692 |
|
|
|
15693 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
15694 |
|
|
# This hack is so that the source file can tell whether it is being
|
15695 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
15696 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
15697 |
|
|
# (--disable-auto-import) libraries
|
15698 |
|
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
15699 |
|
|
;;
|
15700 |
|
|
|
15701 |
|
|
darwin* | rhapsody*)
|
15702 |
|
|
# PIC is the default on this platform
|
15703 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
15704 |
|
|
lt_prog_compiler_pic_GCJ='-fno-common'
|
15705 |
|
|
;;
|
15706 |
|
|
|
15707 |
|
|
interix[3-9]*)
|
15708 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
15709 |
|
|
# Instead, we relocate shared libraries at runtime.
|
15710 |
|
|
;;
|
15711 |
|
|
|
15712 |
|
|
msdosdjgpp*)
|
15713 |
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
15714 |
|
|
# on systems that don't support them.
|
15715 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15716 |
|
|
enable_shared=no
|
15717 |
|
|
;;
|
15718 |
|
|
|
15719 |
|
|
sysv4*MP*)
|
15720 |
|
|
if test -d /usr/nec; then
|
15721 |
|
|
lt_prog_compiler_pic_GCJ=-Kconform_pic
|
15722 |
|
|
fi
|
15723 |
|
|
;;
|
15724 |
|
|
|
15725 |
|
|
hpux*)
|
15726 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
15727 |
|
|
# not for PA HP-UX.
|
15728 |
|
|
case $host_cpu in
|
15729 |
|
|
hppa*64*|ia64*)
|
15730 |
|
|
# +Z the default
|
15731 |
|
|
;;
|
15732 |
|
|
*)
|
15733 |
|
|
lt_prog_compiler_pic_GCJ='-fPIC'
|
15734 |
|
|
;;
|
15735 |
|
|
esac
|
15736 |
|
|
;;
|
15737 |
|
|
|
15738 |
|
|
*)
|
15739 |
|
|
lt_prog_compiler_pic_GCJ='-fPIC'
|
15740 |
|
|
;;
|
15741 |
|
|
esac
|
15742 |
|
|
else
|
15743 |
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
15744 |
|
|
case $host_os in
|
15745 |
|
|
aix*)
|
15746 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15747 |
|
|
if test "$host_cpu" = ia64; then
|
15748 |
|
|
# AIX 5 now supports IA64 processor
|
15749 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15750 |
|
|
else
|
15751 |
|
|
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
|
15752 |
|
|
fi
|
15753 |
|
|
;;
|
15754 |
|
|
darwin*)
|
15755 |
|
|
# PIC is the default on this platform
|
15756 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
15757 |
|
|
case $cc_basename in
|
15758 |
|
|
xlc*)
|
15759 |
|
|
lt_prog_compiler_pic_GCJ='-qnocommon'
|
15760 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15761 |
|
|
;;
|
15762 |
|
|
esac
|
15763 |
|
|
;;
|
15764 |
|
|
|
15765 |
|
|
mingw* | cygwin* | pw32* | os2*)
|
15766 |
|
|
# This hack is so that the source file can tell whether it is being
|
15767 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
15768 |
|
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
15769 |
|
|
;;
|
15770 |
|
|
|
15771 |
|
|
hpux9* | hpux10* | hpux11*)
|
15772 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15773 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
15774 |
|
|
# not for PA HP-UX.
|
15775 |
|
|
case $host_cpu in
|
15776 |
|
|
hppa*64*|ia64*)
|
15777 |
|
|
# +Z the default
|
15778 |
|
|
;;
|
15779 |
|
|
*)
|
15780 |
|
|
lt_prog_compiler_pic_GCJ='+Z'
|
15781 |
|
|
;;
|
15782 |
|
|
esac
|
15783 |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
15784 |
|
|
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
|
15785 |
|
|
;;
|
15786 |
|
|
|
15787 |
|
|
irix5* | irix6* | nonstopux*)
|
15788 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15789 |
|
|
# PIC (with -KPIC) is the default.
|
15790 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15791 |
|
|
;;
|
15792 |
|
|
|
15793 |
|
|
newsos6)
|
15794 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15795 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15796 |
|
|
;;
|
15797 |
|
|
|
15798 |
|
|
linux* | k*bsd*-gnu)
|
15799 |
|
|
case $cc_basename in
|
15800 |
|
|
icc* | ecc*)
|
15801 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15802 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15803 |
|
|
lt_prog_compiler_static_GCJ='-static'
|
15804 |
|
|
;;
|
15805 |
|
|
pgcc* | pgf77* | pgf90* | pgf95*)
|
15806 |
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
15807 |
|
|
# which looks to be a dead project)
|
15808 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15809 |
|
|
lt_prog_compiler_pic_GCJ='-fpic'
|
15810 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15811 |
|
|
;;
|
15812 |
|
|
ccc*)
|
15813 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15814 |
|
|
# All Alpha code is PIC.
|
15815 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15816 |
|
|
;;
|
15817 |
|
|
*)
|
15818 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
15819 |
|
|
*Sun\ C*)
|
15820 |
|
|
# Sun C 5.9
|
15821 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15822 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15823 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15824 |
|
|
;;
|
15825 |
|
|
*Sun\ F*)
|
15826 |
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
15827 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15828 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15829 |
|
|
lt_prog_compiler_wl_GCJ=''
|
15830 |
|
|
;;
|
15831 |
|
|
esac
|
15832 |
|
|
;;
|
15833 |
|
|
esac
|
15834 |
|
|
;;
|
15835 |
|
|
|
15836 |
|
|
osf3* | osf4* | osf5*)
|
15837 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15838 |
|
|
# All OSF/1 code is PIC.
|
15839 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15840 |
|
|
;;
|
15841 |
|
|
|
15842 |
|
|
rdos*)
|
15843 |
|
|
lt_prog_compiler_static_GCJ='-non_shared'
|
15844 |
|
|
;;
|
15845 |
|
|
|
15846 |
|
|
solaris*)
|
15847 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15848 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15849 |
|
|
case $cc_basename in
|
15850 |
|
|
f77* | f90* | f95*)
|
15851 |
|
|
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
|
15852 |
|
|
*)
|
15853 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,';;
|
15854 |
|
|
esac
|
15855 |
|
|
;;
|
15856 |
|
|
|
15857 |
|
|
sunos4*)
|
15858 |
|
|
lt_prog_compiler_wl_GCJ='-Qoption ld '
|
15859 |
|
|
lt_prog_compiler_pic_GCJ='-PIC'
|
15860 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15861 |
|
|
;;
|
15862 |
|
|
|
15863 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
15864 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15865 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15866 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15867 |
|
|
;;
|
15868 |
|
|
|
15869 |
|
|
sysv4*MP*)
|
15870 |
|
|
if test -d /usr/nec ;then
|
15871 |
|
|
lt_prog_compiler_pic_GCJ='-Kconform_pic'
|
15872 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15873 |
|
|
fi
|
15874 |
|
|
;;
|
15875 |
|
|
|
15876 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
15877 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15878 |
|
|
lt_prog_compiler_pic_GCJ='-KPIC'
|
15879 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15880 |
|
|
;;
|
15881 |
|
|
|
15882 |
|
|
unicos*)
|
15883 |
|
|
lt_prog_compiler_wl_GCJ='-Wl,'
|
15884 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15885 |
|
|
;;
|
15886 |
|
|
|
15887 |
|
|
uts4*)
|
15888 |
|
|
lt_prog_compiler_pic_GCJ='-pic'
|
15889 |
|
|
lt_prog_compiler_static_GCJ='-Bstatic'
|
15890 |
|
|
;;
|
15891 |
|
|
|
15892 |
|
|
*)
|
15893 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15894 |
|
|
;;
|
15895 |
|
|
esac
|
15896 |
|
|
fi
|
15897 |
|
|
|
15898 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
|
15899 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
|
15900 |
|
|
|
15901 |
|
|
#
|
15902 |
|
|
# Check to make sure the PIC flag actually works.
|
15903 |
|
|
#
|
15904 |
|
|
if test -n "$lt_prog_compiler_pic_GCJ"; then
|
15905 |
|
|
|
15906 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
|
15907 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
|
15908 |
|
|
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
|
15909 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
15910 |
|
|
else
|
15911 |
|
|
lt_prog_compiler_pic_works_GCJ=no
|
15912 |
|
|
ac_outfile=conftest.$ac_objext
|
15913 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
15914 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
|
15915 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
15916 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
15917 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
15918 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
15919 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
15920 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
15921 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15922 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15923 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
15924 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
15925 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
15926 |
|
|
ac_status=$?
|
15927 |
|
|
cat conftest.err >&5
|
15928 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
15929 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
15930 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
15931 |
|
|
# So say no if there are warnings other than the usual output.
|
15932 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
15933 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
15934 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
15935 |
|
|
lt_prog_compiler_pic_works_GCJ=yes
|
15936 |
|
|
fi
|
15937 |
|
|
fi
|
15938 |
|
|
$rm conftest*
|
15939 |
|
|
|
15940 |
|
|
fi
|
15941 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
|
15942 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
|
15943 |
|
|
|
15944 |
|
|
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
|
15945 |
|
|
case $lt_prog_compiler_pic_GCJ in
|
15946 |
|
|
"" | " "*) ;;
|
15947 |
|
|
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
|
15948 |
|
|
esac
|
15949 |
|
|
else
|
15950 |
|
|
lt_prog_compiler_pic_GCJ=
|
15951 |
|
|
lt_prog_compiler_can_build_shared_GCJ=no
|
15952 |
|
|
fi
|
15953 |
|
|
|
15954 |
|
|
fi
|
15955 |
|
|
case $host_os in
|
15956 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
15957 |
|
|
*djgpp*)
|
15958 |
|
|
lt_prog_compiler_pic_GCJ=
|
15959 |
|
|
;;
|
15960 |
|
|
*)
|
15961 |
|
|
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
|
15962 |
|
|
;;
|
15963 |
|
|
esac
|
15964 |
|
|
|
15965 |
|
|
#
|
15966 |
|
|
# Check to make sure the static flag actually works.
|
15967 |
|
|
#
|
15968 |
|
|
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
|
15969 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
15970 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
15971 |
|
|
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
|
15972 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
15973 |
|
|
else
|
15974 |
|
|
lt_prog_compiler_static_works_GCJ=no
|
15975 |
|
|
save_LDFLAGS="$LDFLAGS"
|
15976 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
15977 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
15978 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
15979 |
|
|
# The linker can only warn and ignore the option if not recognized
|
15980 |
|
|
# So say no if there are warnings
|
15981 |
|
|
if test -s conftest.err; then
|
15982 |
|
|
# Append any errors to the config.log.
|
15983 |
|
|
cat conftest.err 1>&5
|
15984 |
|
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
15985 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
15986 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
15987 |
|
|
lt_prog_compiler_static_works_GCJ=yes
|
15988 |
|
|
fi
|
15989 |
|
|
else
|
15990 |
|
|
lt_prog_compiler_static_works_GCJ=yes
|
15991 |
|
|
fi
|
15992 |
|
|
fi
|
15993 |
|
|
$rm conftest*
|
15994 |
|
|
LDFLAGS="$save_LDFLAGS"
|
15995 |
|
|
|
15996 |
|
|
fi
|
15997 |
|
|
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
|
15998 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
|
15999 |
|
|
|
16000 |
|
|
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
|
16001 |
|
|
:
|
16002 |
|
|
else
|
16003 |
|
|
lt_prog_compiler_static_GCJ=
|
16004 |
|
|
fi
|
16005 |
|
|
|
16006 |
|
|
|
16007 |
|
|
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
16008 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
16009 |
|
|
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
|
16010 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
16011 |
|
|
else
|
16012 |
|
|
lt_cv_prog_compiler_c_o_GCJ=no
|
16013 |
|
|
$rm -r conftest 2>/dev/null
|
16014 |
|
|
mkdir conftest
|
16015 |
|
|
cd conftest
|
16016 |
|
|
mkdir out
|
16017 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
16018 |
|
|
|
16019 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
16020 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
16021 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
16022 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
16023 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
16024 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
16025 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
16026 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
16027 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
16028 |
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
16029 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
16030 |
|
|
ac_status=$?
|
16031 |
|
|
cat out/conftest.err >&5
|
16032 |
|
|
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
16033 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
16034 |
|
|
then
|
16035 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
16036 |
|
|
# So say no if there are warnings
|
16037 |
|
|
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
16038 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
16039 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
16040 |
|
|
lt_cv_prog_compiler_c_o_GCJ=yes
|
16041 |
|
|
fi
|
16042 |
|
|
fi
|
16043 |
|
|
chmod u+w . 2>&5
|
16044 |
|
|
$rm conftest*
|
16045 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
16046 |
|
|
# template instantiation
|
16047 |
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
16048 |
|
|
$rm out/* && rmdir out
|
16049 |
|
|
cd ..
|
16050 |
|
|
rmdir conftest
|
16051 |
|
|
$rm conftest*
|
16052 |
|
|
|
16053 |
|
|
fi
|
16054 |
|
|
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
|
16055 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
|
16056 |
|
|
|
16057 |
|
|
|
16058 |
|
|
hard_links="nottested"
|
16059 |
|
|
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
|
16060 |
|
|
# do not overwrite the value of need_locks provided by the user
|
16061 |
|
|
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
16062 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
16063 |
|
|
hard_links=yes
|
16064 |
|
|
$rm conftest*
|
16065 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
16066 |
|
|
touch conftest.a
|
16067 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
16068 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
16069 |
|
|
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
16070 |
|
|
echo "${ECHO_T}$hard_links" >&6; }
|
16071 |
|
|
if test "$hard_links" = no; then
|
16072 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
16073 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
16074 |
|
|
need_locks=warn
|
16075 |
|
|
fi
|
16076 |
|
|
else
|
16077 |
|
|
need_locks=no
|
16078 |
|
|
fi
|
16079 |
|
|
|
16080 |
|
|
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
16081 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
16082 |
|
|
|
16083 |
|
|
runpath_var=
|
16084 |
|
|
allow_undefined_flag_GCJ=
|
16085 |
|
|
enable_shared_with_static_runtimes_GCJ=no
|
16086 |
|
|
archive_cmds_GCJ=
|
16087 |
|
|
archive_expsym_cmds_GCJ=
|
16088 |
|
|
old_archive_From_new_cmds_GCJ=
|
16089 |
|
|
old_archive_from_expsyms_cmds_GCJ=
|
16090 |
|
|
export_dynamic_flag_spec_GCJ=
|
16091 |
|
|
whole_archive_flag_spec_GCJ=
|
16092 |
|
|
thread_safe_flag_spec_GCJ=
|
16093 |
|
|
hardcode_libdir_flag_spec_GCJ=
|
16094 |
|
|
hardcode_libdir_flag_spec_ld_GCJ=
|
16095 |
|
|
hardcode_libdir_separator_GCJ=
|
16096 |
|
|
hardcode_direct_GCJ=no
|
16097 |
|
|
hardcode_minus_L_GCJ=no
|
16098 |
|
|
hardcode_shlibpath_var_GCJ=unsupported
|
16099 |
|
|
link_all_deplibs_GCJ=unknown
|
16100 |
|
|
hardcode_automatic_GCJ=no
|
16101 |
|
|
module_cmds_GCJ=
|
16102 |
|
|
module_expsym_cmds_GCJ=
|
16103 |
|
|
always_export_symbols_GCJ=no
|
16104 |
|
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
16105 |
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
16106 |
|
|
# included in the symbol list
|
16107 |
|
|
include_expsyms_GCJ=
|
16108 |
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
16109 |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
16110 |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
16111 |
|
|
# as well as any symbol that contains `d'.
|
16112 |
|
|
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
|
16113 |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
16114 |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
16115 |
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
16116 |
|
|
# rely on this symbol name, it's probably fine to never include it in
|
16117 |
|
|
# preloaded symbol tables.
|
16118 |
|
|
extract_expsyms_cmds=
|
16119 |
|
|
# Just being paranoid about ensuring that cc_basename is set.
|
16120 |
|
|
for cc_temp in $compiler""; do
|
16121 |
|
|
case $cc_temp in
|
16122 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
16123 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
16124 |
|
|
\-*) ;;
|
16125 |
|
|
*) break;;
|
16126 |
|
|
esac
|
16127 |
|
|
done
|
16128 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
16129 |
|
|
|
16130 |
|
|
case $host_os in
|
16131 |
|
|
cygwin* | mingw* | pw32*)
|
16132 |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
16133 |
|
|
# When not using gcc, we currently assume that we are using
|
16134 |
|
|
# Microsoft Visual C++.
|
16135 |
|
|
if test "$GCC" != yes; then
|
16136 |
|
|
with_gnu_ld=no
|
16137 |
|
|
fi
|
16138 |
|
|
;;
|
16139 |
|
|
interix*)
|
16140 |
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
16141 |
|
|
with_gnu_ld=yes
|
16142 |
|
|
;;
|
16143 |
|
|
openbsd*)
|
16144 |
|
|
with_gnu_ld=no
|
16145 |
|
|
;;
|
16146 |
|
|
esac
|
16147 |
|
|
|
16148 |
|
|
ld_shlibs_GCJ=yes
|
16149 |
|
|
if test "$with_gnu_ld" = yes; then
|
16150 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
16151 |
|
|
wlarc='${wl}'
|
16152 |
|
|
|
16153 |
|
|
# Set some defaults for GNU ld with shared library support. These
|
16154 |
|
|
# are reset later if shared libraries are not supported. Putting them
|
16155 |
|
|
# here allows them to be overridden if necessary.
|
16156 |
|
|
runpath_var=LD_RUN_PATH
|
16157 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
|
16158 |
|
|
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
|
16159 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
16160 |
|
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
16161 |
|
|
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
16162 |
|
|
else
|
16163 |
|
|
whole_archive_flag_spec_GCJ=
|
16164 |
|
|
fi
|
16165 |
|
|
supports_anon_versioning=no
|
16166 |
|
|
case `$LD -v 2>/dev/null` in
|
16167 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
16168 |
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
16169 |
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
16170 |
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
16171 |
|
|
*) supports_anon_versioning=yes ;;
|
16172 |
|
|
esac
|
16173 |
|
|
|
16174 |
|
|
# See if GNU ld supports shared libraries.
|
16175 |
|
|
case $host_os in
|
16176 |
|
|
aix3* | aix4* | aix5*)
|
16177 |
|
|
# On AIX/PPC, the GNU linker is very broken
|
16178 |
|
|
if test "$host_cpu" != ia64; then
|
16179 |
|
|
ld_shlibs_GCJ=no
|
16180 |
|
|
cat <&2
|
16181 |
|
|
|
16182 |
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
16183 |
|
|
*** to be unable to reliably create shared libraries on AIX.
|
16184 |
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
16185 |
|
|
*** really care for shared libraries, you may want to modify your PATH
|
16186 |
|
|
*** so that a non-GNU linker is found, and then restart.
|
16187 |
|
|
|
16188 |
|
|
EOF
|
16189 |
|
|
fi
|
16190 |
|
|
;;
|
16191 |
|
|
|
16192 |
|
|
amigaos*)
|
16193 |
|
|
archive_cmds_GCJ='$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)'
|
16194 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16195 |
|
|
hardcode_minus_L_GCJ=yes
|
16196 |
|
|
|
16197 |
|
|
# Samuel A. Falvo II reports
|
16198 |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
16199 |
|
|
# to version 4, is to share data among multiple programs linked
|
16200 |
|
|
# with the same dynamic library. Since this doesn't match the
|
16201 |
|
|
# behavior of shared libraries on other platforms, we can't use
|
16202 |
|
|
# them.
|
16203 |
|
|
ld_shlibs_GCJ=no
|
16204 |
|
|
;;
|
16205 |
|
|
|
16206 |
|
|
beos*)
|
16207 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16208 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16209 |
|
|
# Joseph Beckenbach says some releases of gcc
|
16210 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
16211 |
|
|
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16212 |
|
|
else
|
16213 |
|
|
ld_shlibs_GCJ=no
|
16214 |
|
|
fi
|
16215 |
|
|
;;
|
16216 |
|
|
|
16217 |
|
|
cygwin* | mingw* | pw32*)
|
16218 |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
|
16219 |
|
|
# as there is no search path for DLLs.
|
16220 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16221 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16222 |
|
|
always_export_symbols_GCJ=no
|
16223 |
|
|
enable_shared_with_static_runtimes_GCJ=yes
|
16224 |
|
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
16225 |
|
|
|
16226 |
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
16227 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
16228 |
|
|
# If the export-symbols file already is a .def file (1st line
|
16229 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
16230 |
|
|
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
16231 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
16232 |
|
|
else
|
16233 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
16234 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
16235 |
|
|
fi~
|
16236 |
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
16237 |
|
|
else
|
16238 |
|
|
ld_shlibs_GCJ=no
|
16239 |
|
|
fi
|
16240 |
|
|
;;
|
16241 |
|
|
|
16242 |
|
|
interix[3-9]*)
|
16243 |
|
|
hardcode_direct_GCJ=no
|
16244 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16245 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
16246 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16247 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
16248 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
16249 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
16250 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
16251 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
16252 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
16253 |
|
|
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
16254 |
|
|
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
16255 |
|
|
;;
|
16256 |
|
|
|
16257 |
|
|
gnu* | linux* | k*bsd*-gnu)
|
16258 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16259 |
|
|
tmp_addflag=
|
16260 |
|
|
case $cc_basename,$host_cpu in
|
16261 |
|
|
pgcc*) # Portland Group C compiler
|
16262 |
|
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
16263 |
|
|
tmp_addflag=' $pic_flag'
|
16264 |
|
|
;;
|
16265 |
|
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
16266 |
|
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
16267 |
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
16268 |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
16269 |
|
|
tmp_addflag=' -i_dynamic' ;;
|
16270 |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
16271 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
16272 |
|
|
ifc* | ifort*) # Intel Fortran compiler
|
16273 |
|
|
tmp_addflag=' -nofor_main' ;;
|
16274 |
|
|
esac
|
16275 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
16276 |
|
|
*Sun\ C*) # Sun C 5.9
|
16277 |
|
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
16278 |
|
|
tmp_sharedflag='-G' ;;
|
16279 |
|
|
*Sun\ F*) # Sun Fortran 8.3
|
16280 |
|
|
tmp_sharedflag='-G' ;;
|
16281 |
|
|
*)
|
16282 |
|
|
tmp_sharedflag='-shared' ;;
|
16283 |
|
|
esac
|
16284 |
|
|
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16285 |
|
|
|
16286 |
|
|
if test $supports_anon_versioning = yes; then
|
16287 |
|
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
|
16288 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
16289 |
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
16290 |
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
16291 |
|
|
fi
|
16292 |
|
|
else
|
16293 |
|
|
ld_shlibs_GCJ=no
|
16294 |
|
|
fi
|
16295 |
|
|
;;
|
16296 |
|
|
|
16297 |
|
|
netbsd*)
|
16298 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
16299 |
|
|
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
16300 |
|
|
wlarc=
|
16301 |
|
|
else
|
16302 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16303 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
16304 |
|
|
fi
|
16305 |
|
|
;;
|
16306 |
|
|
|
16307 |
|
|
solaris*)
|
16308 |
|
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
16309 |
|
|
ld_shlibs_GCJ=no
|
16310 |
|
|
cat <&2
|
16311 |
|
|
|
16312 |
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
16313 |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
16314 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
16315 |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
16316 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
16317 |
|
|
*** used, and then restart.
|
16318 |
|
|
|
16319 |
|
|
EOF
|
16320 |
|
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16321 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16322 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
16323 |
|
|
else
|
16324 |
|
|
ld_shlibs_GCJ=no
|
16325 |
|
|
fi
|
16326 |
|
|
;;
|
16327 |
|
|
|
16328 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
16329 |
|
|
case `$LD -v 2>&1` in
|
16330 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
16331 |
|
|
ld_shlibs_GCJ=no
|
16332 |
|
|
cat <<_LT_EOF 1>&2
|
16333 |
|
|
|
16334 |
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
16335 |
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
16336 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
16337 |
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
16338 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
16339 |
|
|
*** used, and then restart.
|
16340 |
|
|
|
16341 |
|
|
_LT_EOF
|
16342 |
|
|
;;
|
16343 |
|
|
*)
|
16344 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16345 |
|
|
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
16346 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
16347 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
16348 |
|
|
else
|
16349 |
|
|
ld_shlibs_GCJ=no
|
16350 |
|
|
fi
|
16351 |
|
|
;;
|
16352 |
|
|
esac
|
16353 |
|
|
;;
|
16354 |
|
|
|
16355 |
|
|
sunos4*)
|
16356 |
|
|
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
16357 |
|
|
wlarc=
|
16358 |
|
|
hardcode_direct_GCJ=yes
|
16359 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16360 |
|
|
;;
|
16361 |
|
|
|
16362 |
|
|
*)
|
16363 |
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
16364 |
|
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
16365 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
16366 |
|
|
else
|
16367 |
|
|
ld_shlibs_GCJ=no
|
16368 |
|
|
fi
|
16369 |
|
|
;;
|
16370 |
|
|
esac
|
16371 |
|
|
|
16372 |
|
|
if test "$ld_shlibs_GCJ" = no; then
|
16373 |
|
|
runpath_var=
|
16374 |
|
|
hardcode_libdir_flag_spec_GCJ=
|
16375 |
|
|
export_dynamic_flag_spec_GCJ=
|
16376 |
|
|
whole_archive_flag_spec_GCJ=
|
16377 |
|
|
fi
|
16378 |
|
|
else
|
16379 |
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
16380 |
|
|
case $host_os in
|
16381 |
|
|
aix3*)
|
16382 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16383 |
|
|
always_export_symbols_GCJ=yes
|
16384 |
|
|
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
16385 |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
16386 |
|
|
# are no directories specified by -L.
|
16387 |
|
|
hardcode_minus_L_GCJ=yes
|
16388 |
|
|
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
16389 |
|
|
# Neither direct hardcoding nor static linking is supported with a
|
16390 |
|
|
# broken collect2.
|
16391 |
|
|
hardcode_direct_GCJ=unsupported
|
16392 |
|
|
fi
|
16393 |
|
|
;;
|
16394 |
|
|
|
16395 |
|
|
aix4* | aix5*)
|
16396 |
|
|
if test "$host_cpu" = ia64; then
|
16397 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
16398 |
|
|
# have to do anything special.
|
16399 |
|
|
aix_use_runtimelinking=no
|
16400 |
|
|
exp_sym_flag='-Bexport'
|
16401 |
|
|
no_entry_flag=""
|
16402 |
|
|
else
|
16403 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
16404 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
16405 |
|
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
16406 |
|
|
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
16407 |
|
|
else
|
16408 |
|
|
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
16409 |
|
|
fi
|
16410 |
|
|
aix_use_runtimelinking=no
|
16411 |
|
|
|
16412 |
|
|
# Test if we are trying to use run time linking or normal
|
16413 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
16414 |
|
|
# need to do runtime linking.
|
16415 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
16416 |
|
|
for ld_flag in $LDFLAGS; do
|
16417 |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
16418 |
|
|
aix_use_runtimelinking=yes
|
16419 |
|
|
break
|
16420 |
|
|
fi
|
16421 |
|
|
done
|
16422 |
|
|
;;
|
16423 |
|
|
esac
|
16424 |
|
|
|
16425 |
|
|
exp_sym_flag='-bexport'
|
16426 |
|
|
no_entry_flag='-bnoentry'
|
16427 |
|
|
fi
|
16428 |
|
|
|
16429 |
|
|
# When large executables or shared objects are built, AIX ld can
|
16430 |
|
|
# have problems creating the table of contents. If linking a library
|
16431 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
16432 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
16433 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
16434 |
|
|
|
16435 |
|
|
archive_cmds_GCJ=''
|
16436 |
|
|
hardcode_direct_GCJ=yes
|
16437 |
|
|
hardcode_libdir_separator_GCJ=':'
|
16438 |
|
|
link_all_deplibs_GCJ=yes
|
16439 |
|
|
|
16440 |
|
|
if test "$GCC" = yes; then
|
16441 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
16442 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
16443 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
16444 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
16445 |
|
|
if test -f "$collect2name" && \
|
16446 |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
16447 |
|
|
then
|
16448 |
|
|
# We have reworked collect2
|
16449 |
|
|
:
|
16450 |
|
|
else
|
16451 |
|
|
# We have old collect2
|
16452 |
|
|
hardcode_direct_GCJ=unsupported
|
16453 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
16454 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
16455 |
|
|
# to unsupported forces relinking
|
16456 |
|
|
hardcode_minus_L_GCJ=yes
|
16457 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16458 |
|
|
hardcode_libdir_separator_GCJ=
|
16459 |
|
|
fi
|
16460 |
|
|
;;
|
16461 |
|
|
esac
|
16462 |
|
|
shared_flag='-shared'
|
16463 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
16464 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
16465 |
|
|
fi
|
16466 |
|
|
else
|
16467 |
|
|
# not using gcc
|
16468 |
|
|
if test "$host_cpu" = ia64; then
|
16469 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
16470 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
16471 |
|
|
shared_flag='-G'
|
16472 |
|
|
else
|
16473 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
16474 |
|
|
shared_flag='${wl}-G'
|
16475 |
|
|
else
|
16476 |
|
|
shared_flag='${wl}-bM:SRE'
|
16477 |
|
|
fi
|
16478 |
|
|
fi
|
16479 |
|
|
fi
|
16480 |
|
|
|
16481 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
16482 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
16483 |
|
|
always_export_symbols_GCJ=yes
|
16484 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
16485 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
16486 |
|
|
# -berok will link without error, but may produce a broken library.
|
16487 |
|
|
allow_undefined_flag_GCJ='-berok'
|
16488 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
16489 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
16490 |
|
|
/* confdefs.h. */
|
16491 |
|
|
_ACEOF
|
16492 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
16493 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
16494 |
|
|
/* end confdefs.h. */
|
16495 |
|
|
|
16496 |
|
|
int
|
16497 |
|
|
main ()
|
16498 |
|
|
{
|
16499 |
|
|
|
16500 |
|
|
;
|
16501 |
|
|
return 0;
|
16502 |
|
|
}
|
16503 |
|
|
_ACEOF
|
16504 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
16505 |
|
|
if { (ac_try="$ac_link"
|
16506 |
|
|
case "(($ac_try" in
|
16507 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
16508 |
|
|
*) ac_try_echo=$ac_try;;
|
16509 |
|
|
esac
|
16510 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
16511 |
|
|
(eval "$ac_link") 2>conftest.er1
|
16512 |
|
|
ac_status=$?
|
16513 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
16514 |
|
|
rm -f conftest.er1
|
16515 |
|
|
cat conftest.err >&5
|
16516 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
16517 |
|
|
(exit $ac_status); } && {
|
16518 |
|
|
test -z "$ac_c_werror_flag" ||
|
16519 |
|
|
test ! -s conftest.err
|
16520 |
|
|
} && test -s conftest$ac_exeext &&
|
16521 |
|
|
$as_test_x conftest$ac_exeext; then
|
16522 |
|
|
|
16523 |
|
|
lt_aix_libpath_sed='
|
16524 |
|
|
/Import File Strings/,/^$/ {
|
16525 |
|
|
/^0/ {
|
16526 |
|
|
s/^0 *\(.*\)$/\1/
|
16527 |
|
|
p
|
16528 |
|
|
}
|
16529 |
|
|
}'
|
16530 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16531 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
16532 |
|
|
if test -z "$aix_libpath"; then
|
16533 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16534 |
|
|
fi
|
16535 |
|
|
else
|
16536 |
|
|
echo "$as_me: failed program was:" >&5
|
16537 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
16538 |
|
|
|
16539 |
|
|
|
16540 |
|
|
fi
|
16541 |
|
|
|
16542 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
16543 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
16544 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
16545 |
|
|
|
16546 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
16547 |
|
|
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
16548 |
|
|
else
|
16549 |
|
|
if test "$host_cpu" = ia64; then
|
16550 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
|
16551 |
|
|
allow_undefined_flag_GCJ="-z nodefs"
|
16552 |
|
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
16553 |
|
|
else
|
16554 |
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
16555 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
16556 |
|
|
/* confdefs.h. */
|
16557 |
|
|
_ACEOF
|
16558 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
16559 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
16560 |
|
|
/* end confdefs.h. */
|
16561 |
|
|
|
16562 |
|
|
int
|
16563 |
|
|
main ()
|
16564 |
|
|
{
|
16565 |
|
|
|
16566 |
|
|
;
|
16567 |
|
|
return 0;
|
16568 |
|
|
}
|
16569 |
|
|
_ACEOF
|
16570 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
16571 |
|
|
if { (ac_try="$ac_link"
|
16572 |
|
|
case "(($ac_try" in
|
16573 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
16574 |
|
|
*) ac_try_echo=$ac_try;;
|
16575 |
|
|
esac
|
16576 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
16577 |
|
|
(eval "$ac_link") 2>conftest.er1
|
16578 |
|
|
ac_status=$?
|
16579 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
16580 |
|
|
rm -f conftest.er1
|
16581 |
|
|
cat conftest.err >&5
|
16582 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
16583 |
|
|
(exit $ac_status); } && {
|
16584 |
|
|
test -z "$ac_c_werror_flag" ||
|
16585 |
|
|
test ! -s conftest.err
|
16586 |
|
|
} && test -s conftest$ac_exeext &&
|
16587 |
|
|
$as_test_x conftest$ac_exeext; then
|
16588 |
|
|
|
16589 |
|
|
lt_aix_libpath_sed='
|
16590 |
|
|
/Import File Strings/,/^$/ {
|
16591 |
|
|
/^0/ {
|
16592 |
|
|
s/^0 *\(.*\)$/\1/
|
16593 |
|
|
p
|
16594 |
|
|
}
|
16595 |
|
|
}'
|
16596 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16597 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
16598 |
|
|
if test -z "$aix_libpath"; then
|
16599 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
16600 |
|
|
fi
|
16601 |
|
|
else
|
16602 |
|
|
echo "$as_me: failed program was:" >&5
|
16603 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
16604 |
|
|
|
16605 |
|
|
|
16606 |
|
|
fi
|
16607 |
|
|
|
16608 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
16609 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
16610 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
16611 |
|
|
|
16612 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
16613 |
|
|
# Warning - without using the other run time loading flags,
|
16614 |
|
|
# -berok will link without error, but may produce a broken library.
|
16615 |
|
|
no_undefined_flag_GCJ=' ${wl}-bernotok'
|
16616 |
|
|
allow_undefined_flag_GCJ=' ${wl}-berok'
|
16617 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
16618 |
|
|
whole_archive_flag_spec_GCJ='$convenience'
|
16619 |
|
|
archive_cmds_need_lc_GCJ=yes
|
16620 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
16621 |
|
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
16622 |
|
|
fi
|
16623 |
|
|
fi
|
16624 |
|
|
;;
|
16625 |
|
|
|
16626 |
|
|
amigaos*)
|
16627 |
|
|
archive_cmds_GCJ='$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)'
|
16628 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16629 |
|
|
hardcode_minus_L_GCJ=yes
|
16630 |
|
|
# see comment about different semantics on the GNU ld section
|
16631 |
|
|
ld_shlibs_GCJ=no
|
16632 |
|
|
;;
|
16633 |
|
|
|
16634 |
|
|
bsdi[45]*)
|
16635 |
|
|
export_dynamic_flag_spec_GCJ=-rdynamic
|
16636 |
|
|
;;
|
16637 |
|
|
|
16638 |
|
|
cygwin* | mingw* | pw32*)
|
16639 |
|
|
# When not using gcc, we currently assume that we are using
|
16640 |
|
|
# Microsoft Visual C++.
|
16641 |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
16642 |
|
|
# no search path for DLLs.
|
16643 |
|
|
hardcode_libdir_flag_spec_GCJ=' '
|
16644 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16645 |
|
|
# Tell ltmain to make .lib files, not .a files.
|
16646 |
|
|
libext=lib
|
16647 |
|
|
# Tell ltmain to make .dll files, not .so files.
|
16648 |
|
|
shrext_cmds=".dll"
|
16649 |
|
|
# FIXME: Setting linknames here is a bad hack.
|
16650 |
|
|
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
16651 |
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
16652 |
|
|
old_archive_From_new_cmds_GCJ='true'
|
16653 |
|
|
# FIXME: Should let the user specify the lib program.
|
16654 |
|
|
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
16655 |
|
|
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
|
16656 |
|
|
enable_shared_with_static_runtimes_GCJ=yes
|
16657 |
|
|
;;
|
16658 |
|
|
|
16659 |
|
|
darwin* | rhapsody*)
|
16660 |
|
|
case $host_os in
|
16661 |
|
|
rhapsody* | darwin1.[012])
|
16662 |
|
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
|
16663 |
|
|
;;
|
16664 |
|
|
*) # Darwin 1.3 on
|
16665 |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
16666 |
|
|
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
16667 |
|
|
else
|
16668 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in
|
16669 |
|
|
10.[012])
|
16670 |
|
|
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
16671 |
|
|
;;
|
16672 |
|
|
10.*)
|
16673 |
|
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
|
16674 |
|
|
;;
|
16675 |
|
|
esac
|
16676 |
|
|
fi
|
16677 |
|
|
;;
|
16678 |
|
|
esac
|
16679 |
|
|
archive_cmds_need_lc_GCJ=no
|
16680 |
|
|
hardcode_direct_GCJ=no
|
16681 |
|
|
hardcode_automatic_GCJ=yes
|
16682 |
|
|
hardcode_shlibpath_var_GCJ=unsupported
|
16683 |
|
|
whole_archive_flag_spec_GCJ=''
|
16684 |
|
|
link_all_deplibs_GCJ=yes
|
16685 |
|
|
if test "$GCC" = yes ; then
|
16686 |
|
|
output_verbose_link_cmd='echo'
|
16687 |
|
|
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
16688 |
|
|
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
16689 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
16690 |
|
|
archive_expsym_cmds_GCJ='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}'
|
16691 |
|
|
module_expsym_cmds_GCJ='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}'
|
16692 |
|
|
else
|
16693 |
|
|
case $cc_basename in
|
16694 |
|
|
xlc*)
|
16695 |
|
|
output_verbose_link_cmd='echo'
|
16696 |
|
|
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
16697 |
|
|
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
16698 |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
16699 |
|
|
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
16700 |
|
|
module_expsym_cmds_GCJ='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}'
|
16701 |
|
|
;;
|
16702 |
|
|
*)
|
16703 |
|
|
ld_shlibs_GCJ=no
|
16704 |
|
|
;;
|
16705 |
|
|
esac
|
16706 |
|
|
fi
|
16707 |
|
|
;;
|
16708 |
|
|
|
16709 |
|
|
dgux*)
|
16710 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16711 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16712 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16713 |
|
|
;;
|
16714 |
|
|
|
16715 |
|
|
freebsd1*)
|
16716 |
|
|
ld_shlibs_GCJ=no
|
16717 |
|
|
;;
|
16718 |
|
|
|
16719 |
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
16720 |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
16721 |
|
|
# does not break anything, and helps significantly (at the cost of a little
|
16722 |
|
|
# extra space).
|
16723 |
|
|
freebsd2.2*)
|
16724 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
16725 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16726 |
|
|
hardcode_direct_GCJ=yes
|
16727 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16728 |
|
|
;;
|
16729 |
|
|
|
16730 |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
16731 |
|
|
freebsd2*)
|
16732 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
16733 |
|
|
hardcode_direct_GCJ=yes
|
16734 |
|
|
hardcode_minus_L_GCJ=yes
|
16735 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16736 |
|
|
;;
|
16737 |
|
|
|
16738 |
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
16739 |
|
|
freebsd* | dragonfly*)
|
16740 |
|
|
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
16741 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16742 |
|
|
hardcode_direct_GCJ=yes
|
16743 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16744 |
|
|
;;
|
16745 |
|
|
|
16746 |
|
|
hpux9*)
|
16747 |
|
|
if test "$GCC" = yes; then
|
16748 |
|
|
archive_cmds_GCJ='$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'
|
16749 |
|
|
else
|
16750 |
|
|
archive_cmds_GCJ='$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'
|
16751 |
|
|
fi
|
16752 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
16753 |
|
|
hardcode_libdir_separator_GCJ=:
|
16754 |
|
|
hardcode_direct_GCJ=yes
|
16755 |
|
|
|
16756 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
16757 |
|
|
# but as the default location of the library.
|
16758 |
|
|
hardcode_minus_L_GCJ=yes
|
16759 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16760 |
|
|
;;
|
16761 |
|
|
|
16762 |
|
|
hpux10*)
|
16763 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
16764 |
|
|
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
16765 |
|
|
else
|
16766 |
|
|
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
16767 |
|
|
fi
|
16768 |
|
|
if test "$with_gnu_ld" = no; then
|
16769 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
16770 |
|
|
hardcode_libdir_separator_GCJ=:
|
16771 |
|
|
|
16772 |
|
|
hardcode_direct_GCJ=yes
|
16773 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16774 |
|
|
|
16775 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
16776 |
|
|
# but as the default location of the library.
|
16777 |
|
|
hardcode_minus_L_GCJ=yes
|
16778 |
|
|
fi
|
16779 |
|
|
;;
|
16780 |
|
|
|
16781 |
|
|
hpux11*)
|
16782 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
16783 |
|
|
case $host_cpu in
|
16784 |
|
|
hppa*64*)
|
16785 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16786 |
|
|
;;
|
16787 |
|
|
ia64*)
|
16788 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
16789 |
|
|
;;
|
16790 |
|
|
*)
|
16791 |
|
|
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
16792 |
|
|
;;
|
16793 |
|
|
esac
|
16794 |
|
|
else
|
16795 |
|
|
case $host_cpu in
|
16796 |
|
|
hppa*64*)
|
16797 |
|
|
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16798 |
|
|
;;
|
16799 |
|
|
ia64*)
|
16800 |
|
|
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
16801 |
|
|
;;
|
16802 |
|
|
*)
|
16803 |
|
|
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
16804 |
|
|
;;
|
16805 |
|
|
esac
|
16806 |
|
|
fi
|
16807 |
|
|
if test "$with_gnu_ld" = no; then
|
16808 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
16809 |
|
|
hardcode_libdir_separator_GCJ=:
|
16810 |
|
|
|
16811 |
|
|
case $host_cpu in
|
16812 |
|
|
hppa*64*|ia64*)
|
16813 |
|
|
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
|
16814 |
|
|
hardcode_direct_GCJ=no
|
16815 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16816 |
|
|
;;
|
16817 |
|
|
*)
|
16818 |
|
|
hardcode_direct_GCJ=yes
|
16819 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16820 |
|
|
|
16821 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
16822 |
|
|
# but as the default location of the library.
|
16823 |
|
|
hardcode_minus_L_GCJ=yes
|
16824 |
|
|
;;
|
16825 |
|
|
esac
|
16826 |
|
|
fi
|
16827 |
|
|
;;
|
16828 |
|
|
|
16829 |
|
|
irix5* | irix6* | nonstopux*)
|
16830 |
|
|
if test "$GCC" = yes; then
|
16831 |
|
|
archive_cmds_GCJ='$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'
|
16832 |
|
|
else
|
16833 |
|
|
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
16834 |
|
|
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
|
16835 |
|
|
fi
|
16836 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16837 |
|
|
hardcode_libdir_separator_GCJ=:
|
16838 |
|
|
link_all_deplibs_GCJ=yes
|
16839 |
|
|
;;
|
16840 |
|
|
|
16841 |
|
|
netbsd*)
|
16842 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
16843 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
16844 |
|
|
else
|
16845 |
|
|
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
16846 |
|
|
fi
|
16847 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16848 |
|
|
hardcode_direct_GCJ=yes
|
16849 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16850 |
|
|
;;
|
16851 |
|
|
|
16852 |
|
|
newsos6)
|
16853 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16854 |
|
|
hardcode_direct_GCJ=yes
|
16855 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16856 |
|
|
hardcode_libdir_separator_GCJ=:
|
16857 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16858 |
|
|
;;
|
16859 |
|
|
|
16860 |
|
|
openbsd*)
|
16861 |
|
|
if test -f /usr/libexec/ld.so; then
|
16862 |
|
|
hardcode_direct_GCJ=yes
|
16863 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16864 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
16865 |
|
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
16866 |
|
|
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
16867 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
16868 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-E'
|
16869 |
|
|
else
|
16870 |
|
|
case $host_os in
|
16871 |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
16872 |
|
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
16873 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16874 |
|
|
;;
|
16875 |
|
|
*)
|
16876 |
|
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
16877 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
16878 |
|
|
;;
|
16879 |
|
|
esac
|
16880 |
|
|
fi
|
16881 |
|
|
else
|
16882 |
|
|
ld_shlibs_GCJ=no
|
16883 |
|
|
fi
|
16884 |
|
|
;;
|
16885 |
|
|
|
16886 |
|
|
os2*)
|
16887 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16888 |
|
|
hardcode_minus_L_GCJ=yes
|
16889 |
|
|
allow_undefined_flag_GCJ=unsupported
|
16890 |
|
|
archive_cmds_GCJ='$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'
|
16891 |
|
|
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
16892 |
|
|
;;
|
16893 |
|
|
|
16894 |
|
|
osf3*)
|
16895 |
|
|
if test "$GCC" = yes; then
|
16896 |
|
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
16897 |
|
|
archive_cmds_GCJ='$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'
|
16898 |
|
|
else
|
16899 |
|
|
allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
16900 |
|
|
archive_cmds_GCJ='$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'
|
16901 |
|
|
fi
|
16902 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16903 |
|
|
hardcode_libdir_separator_GCJ=:
|
16904 |
|
|
;;
|
16905 |
|
|
|
16906 |
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
16907 |
|
|
if test "$GCC" = yes; then
|
16908 |
|
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
16909 |
|
|
archive_cmds_GCJ='$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'
|
16910 |
|
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
16911 |
|
|
else
|
16912 |
|
|
allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
16913 |
|
|
archive_cmds_GCJ='$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'
|
16914 |
|
|
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
16915 |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
16916 |
|
|
|
16917 |
|
|
# Both c and cxx compiler support -rpath directly
|
16918 |
|
|
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
|
16919 |
|
|
fi
|
16920 |
|
|
hardcode_libdir_separator_GCJ=:
|
16921 |
|
|
;;
|
16922 |
|
|
|
16923 |
|
|
solaris*)
|
16924 |
|
|
no_undefined_flag_GCJ=' -z text'
|
16925 |
|
|
if test "$GCC" = yes; then
|
16926 |
|
|
wlarc='${wl}'
|
16927 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16928 |
|
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
16929 |
|
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
16930 |
|
|
else
|
16931 |
|
|
wlarc=''
|
16932 |
|
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16933 |
|
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
16934 |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
16935 |
|
|
fi
|
16936 |
|
|
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
16937 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16938 |
|
|
case $host_os in
|
16939 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
16940 |
|
|
*)
|
16941 |
|
|
# The compiler driver will combine and reorder linker options,
|
16942 |
|
|
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
16943 |
|
|
# but is careful enough not to reorder.
|
16944 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
16945 |
|
|
if test "$GCC" = yes; then
|
16946 |
|
|
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
16947 |
|
|
else
|
16948 |
|
|
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
|
16949 |
|
|
fi
|
16950 |
|
|
;;
|
16951 |
|
|
esac
|
16952 |
|
|
link_all_deplibs_GCJ=yes
|
16953 |
|
|
;;
|
16954 |
|
|
|
16955 |
|
|
sunos4*)
|
16956 |
|
|
if test "x$host_vendor" = xsequent; then
|
16957 |
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
16958 |
|
|
# files that make .init and .fini sections work.
|
16959 |
|
|
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
16960 |
|
|
else
|
16961 |
|
|
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
16962 |
|
|
fi
|
16963 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
16964 |
|
|
hardcode_direct_GCJ=yes
|
16965 |
|
|
hardcode_minus_L_GCJ=yes
|
16966 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16967 |
|
|
;;
|
16968 |
|
|
|
16969 |
|
|
sysv4)
|
16970 |
|
|
case $host_vendor in
|
16971 |
|
|
sni)
|
16972 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16973 |
|
|
hardcode_direct_GCJ=yes # is this really true???
|
16974 |
|
|
;;
|
16975 |
|
|
siemens)
|
16976 |
|
|
## LD is ld it makes a PLAMLIB
|
16977 |
|
|
## CC just makes a GrossModule.
|
16978 |
|
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
16979 |
|
|
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
|
16980 |
|
|
hardcode_direct_GCJ=no
|
16981 |
|
|
;;
|
16982 |
|
|
motorola)
|
16983 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16984 |
|
|
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
|
16985 |
|
|
;;
|
16986 |
|
|
esac
|
16987 |
|
|
runpath_var='LD_RUN_PATH'
|
16988 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16989 |
|
|
;;
|
16990 |
|
|
|
16991 |
|
|
sysv4.3*)
|
16992 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16993 |
|
|
hardcode_shlibpath_var_GCJ=no
|
16994 |
|
|
export_dynamic_flag_spec_GCJ='-Bexport'
|
16995 |
|
|
;;
|
16996 |
|
|
|
16997 |
|
|
sysv4*MP*)
|
16998 |
|
|
if test -d /usr/nec; then
|
16999 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
17000 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17001 |
|
|
runpath_var=LD_RUN_PATH
|
17002 |
|
|
hardcode_runpath_var=yes
|
17003 |
|
|
ld_shlibs_GCJ=yes
|
17004 |
|
|
fi
|
17005 |
|
|
;;
|
17006 |
|
|
|
17007 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
17008 |
|
|
no_undefined_flag_GCJ='${wl}-z,text'
|
17009 |
|
|
archive_cmds_need_lc_GCJ=no
|
17010 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17011 |
|
|
runpath_var='LD_RUN_PATH'
|
17012 |
|
|
|
17013 |
|
|
if test "$GCC" = yes; then
|
17014 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17015 |
|
|
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17016 |
|
|
else
|
17017 |
|
|
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17018 |
|
|
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17019 |
|
|
fi
|
17020 |
|
|
;;
|
17021 |
|
|
|
17022 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
17023 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
17024 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
17025 |
|
|
# always be unresolved, which means just about no library would
|
17026 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
17027 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
17028 |
|
|
# as -z defs.
|
17029 |
|
|
no_undefined_flag_GCJ='${wl}-z,text'
|
17030 |
|
|
allow_undefined_flag_GCJ='${wl}-z,nodefs'
|
17031 |
|
|
archive_cmds_need_lc_GCJ=no
|
17032 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17033 |
|
|
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
17034 |
|
|
hardcode_libdir_separator_GCJ=':'
|
17035 |
|
|
link_all_deplibs_GCJ=yes
|
17036 |
|
|
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
|
17037 |
|
|
runpath_var='LD_RUN_PATH'
|
17038 |
|
|
|
17039 |
|
|
if test "$GCC" = yes; then
|
17040 |
|
|
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17041 |
|
|
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17042 |
|
|
else
|
17043 |
|
|
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17044 |
|
|
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
17045 |
|
|
fi
|
17046 |
|
|
;;
|
17047 |
|
|
|
17048 |
|
|
uts4*)
|
17049 |
|
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
17050 |
|
|
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
17051 |
|
|
hardcode_shlibpath_var_GCJ=no
|
17052 |
|
|
;;
|
17053 |
|
|
|
17054 |
|
|
*)
|
17055 |
|
|
ld_shlibs_GCJ=no
|
17056 |
|
|
;;
|
17057 |
|
|
esac
|
17058 |
|
|
fi
|
17059 |
|
|
|
17060 |
|
|
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
|
17061 |
|
|
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
|
17062 |
|
|
test "$ld_shlibs_GCJ" = no && can_build_shared=no
|
17063 |
|
|
|
17064 |
|
|
#
|
17065 |
|
|
# Do we need to explicitly link libc?
|
17066 |
|
|
#
|
17067 |
|
|
case "x$archive_cmds_need_lc_GCJ" in
|
17068 |
|
|
x|xyes)
|
17069 |
|
|
# Assume -lc should be added
|
17070 |
|
|
archive_cmds_need_lc_GCJ=yes
|
17071 |
|
|
|
17072 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
17073 |
|
|
case $archive_cmds_GCJ in
|
17074 |
|
|
*'~'*)
|
17075 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
17076 |
|
|
;;
|
17077 |
|
|
'$CC '*)
|
17078 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
17079 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
17080 |
|
|
# to ld, don't add -lc before -lgcc.
|
17081 |
|
|
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
17082 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
17083 |
|
|
$rm conftest*
|
17084 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
17085 |
|
|
|
17086 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
17087 |
|
|
(eval $ac_compile) 2>&5
|
17088 |
|
|
ac_status=$?
|
17089 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
17090 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
17091 |
|
|
soname=conftest
|
17092 |
|
|
lib=conftest
|
17093 |
|
|
libobjs=conftest.$ac_objext
|
17094 |
|
|
deplibs=
|
17095 |
|
|
wl=$lt_prog_compiler_wl_GCJ
|
17096 |
|
|
pic_flag=$lt_prog_compiler_pic_GCJ
|
17097 |
|
|
compiler_flags=-v
|
17098 |
|
|
linker_flags=-v
|
17099 |
|
|
verstring=
|
17100 |
|
|
output_objdir=.
|
17101 |
|
|
libname=conftest
|
17102 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
|
17103 |
|
|
allow_undefined_flag_GCJ=
|
17104 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
17105 |
|
|
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
17106 |
|
|
ac_status=$?
|
17107 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
17108 |
|
|
(exit $ac_status); }
|
17109 |
|
|
then
|
17110 |
|
|
archive_cmds_need_lc_GCJ=no
|
17111 |
|
|
else
|
17112 |
|
|
archive_cmds_need_lc_GCJ=yes
|
17113 |
|
|
fi
|
17114 |
|
|
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
|
17115 |
|
|
else
|
17116 |
|
|
cat conftest.err 1>&5
|
17117 |
|
|
fi
|
17118 |
|
|
$rm conftest*
|
17119 |
|
|
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
|
17120 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
|
17121 |
|
|
;;
|
17122 |
|
|
esac
|
17123 |
|
|
fi
|
17124 |
|
|
;;
|
17125 |
|
|
esac
|
17126 |
|
|
|
17127 |
|
|
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
17128 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
17129 |
|
|
library_names_spec=
|
17130 |
|
|
libname_spec='lib$name'
|
17131 |
|
|
soname_spec=
|
17132 |
|
|
shrext_cmds=".so"
|
17133 |
|
|
postinstall_cmds=
|
17134 |
|
|
postuninstall_cmds=
|
17135 |
|
|
finish_cmds=
|
17136 |
|
|
finish_eval=
|
17137 |
|
|
shlibpath_var=
|
17138 |
|
|
shlibpath_overrides_runpath=unknown
|
17139 |
|
|
version_type=none
|
17140 |
|
|
dynamic_linker="$host_os ld.so"
|
17141 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
17142 |
|
|
|
17143 |
|
|
need_lib_prefix=unknown
|
17144 |
|
|
hardcode_into_libs=no
|
17145 |
|
|
|
17146 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
17147 |
|
|
# flags to be left without arguments
|
17148 |
|
|
need_version=unknown
|
17149 |
|
|
|
17150 |
|
|
case $host_os in
|
17151 |
|
|
aix3*)
|
17152 |
|
|
version_type=linux
|
17153 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
17154 |
|
|
shlibpath_var=LIBPATH
|
17155 |
|
|
|
17156 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
17157 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17158 |
|
|
;;
|
17159 |
|
|
|
17160 |
|
|
aix4* | aix5*)
|
17161 |
|
|
version_type=linux
|
17162 |
|
|
need_lib_prefix=no
|
17163 |
|
|
need_version=no
|
17164 |
|
|
hardcode_into_libs=yes
|
17165 |
|
|
if test "$host_cpu" = ia64; then
|
17166 |
|
|
# AIX 5 supports IA64
|
17167 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
17168 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17169 |
|
|
else
|
17170 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
17171 |
|
|
# for dependence libraries. The import file would start with
|
17172 |
|
|
# the line `#! .'. This would cause the generated library to
|
17173 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
17174 |
|
|
# development snapshots of GCC prior to 3.0.
|
17175 |
|
|
case $host_os in
|
17176 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
17177 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
17178 |
|
|
echo ' yes '
|
17179 |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
17180 |
|
|
:
|
17181 |
|
|
else
|
17182 |
|
|
can_build_shared=no
|
17183 |
|
|
fi
|
17184 |
|
|
;;
|
17185 |
|
|
esac
|
17186 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
17187 |
|
|
# soname into executable. Probably we can add versioning support to
|
17188 |
|
|
# collect2, so additional links can be useful in future.
|
17189 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
17190 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
17191 |
|
|
# instead of lib.a to let people know that these are not
|
17192 |
|
|
# typical AIX shared libraries.
|
17193 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17194 |
|
|
else
|
17195 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
17196 |
|
|
# and later when we are not doing run time linking.
|
17197 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
17198 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17199 |
|
|
fi
|
17200 |
|
|
shlibpath_var=LIBPATH
|
17201 |
|
|
fi
|
17202 |
|
|
;;
|
17203 |
|
|
|
17204 |
|
|
amigaos*)
|
17205 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
17206 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
17207 |
|
|
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'
|
17208 |
|
|
;;
|
17209 |
|
|
|
17210 |
|
|
beos*)
|
17211 |
|
|
library_names_spec='${libname}${shared_ext}'
|
17212 |
|
|
dynamic_linker="$host_os ld.so"
|
17213 |
|
|
shlibpath_var=LIBRARY_PATH
|
17214 |
|
|
;;
|
17215 |
|
|
|
17216 |
|
|
bsdi[45]*)
|
17217 |
|
|
version_type=linux
|
17218 |
|
|
need_version=no
|
17219 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17220 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17221 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
17222 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17223 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
17224 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
17225 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
17226 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
17227 |
|
|
# libtool to hard-code these into programs
|
17228 |
|
|
;;
|
17229 |
|
|
|
17230 |
|
|
cygwin* | mingw* | pw32*)
|
17231 |
|
|
version_type=windows
|
17232 |
|
|
shrext_cmds=".dll"
|
17233 |
|
|
need_version=no
|
17234 |
|
|
need_lib_prefix=no
|
17235 |
|
|
|
17236 |
|
|
case $GCC,$host_os in
|
17237 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32*)
|
17238 |
|
|
library_names_spec='$libname.dll.a'
|
17239 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
17240 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
17241 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
17242 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
17243 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
17244 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
17245 |
|
|
chmod a+x \$dldir/$dlname'
|
17246 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
17247 |
|
|
dlpath=$dir/\$dldll~
|
17248 |
|
|
$rm \$dlpath'
|
17249 |
|
|
shlibpath_overrides_runpath=yes
|
17250 |
|
|
|
17251 |
|
|
case $host_os in
|
17252 |
|
|
cygwin*)
|
17253 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
17254 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
17255 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
17256 |
|
|
;;
|
17257 |
|
|
mingw*)
|
17258 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
17259 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
17260 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
17261 |
|
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
17262 |
|
|
# It is most probably a Windows format PATH printed by
|
17263 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
17264 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
17265 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
17266 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
17267 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
17268 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
17269 |
|
|
else
|
17270 |
|
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
17271 |
|
|
fi
|
17272 |
|
|
;;
|
17273 |
|
|
pw32*)
|
17274 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
17275 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
17276 |
|
|
;;
|
17277 |
|
|
esac
|
17278 |
|
|
;;
|
17279 |
|
|
|
17280 |
|
|
*)
|
17281 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
17282 |
|
|
;;
|
17283 |
|
|
esac
|
17284 |
|
|
dynamic_linker='Win32 ld.exe'
|
17285 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
17286 |
|
|
shlibpath_var=PATH
|
17287 |
|
|
;;
|
17288 |
|
|
|
17289 |
|
|
darwin* | rhapsody*)
|
17290 |
|
|
dynamic_linker="$host_os dyld"
|
17291 |
|
|
version_type=darwin
|
17292 |
|
|
need_lib_prefix=no
|
17293 |
|
|
need_version=no
|
17294 |
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
17295 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
17296 |
|
|
shlibpath_overrides_runpath=yes
|
17297 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
17298 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
17299 |
|
|
|
17300 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
17301 |
|
|
;;
|
17302 |
|
|
|
17303 |
|
|
dgux*)
|
17304 |
|
|
version_type=linux
|
17305 |
|
|
need_lib_prefix=no
|
17306 |
|
|
need_version=no
|
17307 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
17308 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17309 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17310 |
|
|
;;
|
17311 |
|
|
|
17312 |
|
|
freebsd1*)
|
17313 |
|
|
dynamic_linker=no
|
17314 |
|
|
;;
|
17315 |
|
|
|
17316 |
|
|
freebsd* | dragonfly*)
|
17317 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
17318 |
|
|
# versioning mechanism, adjust this.
|
17319 |
|
|
if test -x /usr/bin/objformat; then
|
17320 |
|
|
objformat=`/usr/bin/objformat`
|
17321 |
|
|
else
|
17322 |
|
|
case $host_os in
|
17323 |
|
|
freebsd[123]*) objformat=aout ;;
|
17324 |
|
|
*) objformat=elf ;;
|
17325 |
|
|
esac
|
17326 |
|
|
fi
|
17327 |
|
|
version_type=freebsd-$objformat
|
17328 |
|
|
case $version_type in
|
17329 |
|
|
freebsd-elf*)
|
17330 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
17331 |
|
|
need_version=no
|
17332 |
|
|
need_lib_prefix=no
|
17333 |
|
|
;;
|
17334 |
|
|
freebsd-*)
|
17335 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
17336 |
|
|
need_version=yes
|
17337 |
|
|
;;
|
17338 |
|
|
esac
|
17339 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17340 |
|
|
case $host_os in
|
17341 |
|
|
freebsd2*)
|
17342 |
|
|
shlibpath_overrides_runpath=yes
|
17343 |
|
|
;;
|
17344 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
17345 |
|
|
shlibpath_overrides_runpath=yes
|
17346 |
|
|
hardcode_into_libs=yes
|
17347 |
|
|
;;
|
17348 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
17349 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
17350 |
|
|
shlibpath_overrides_runpath=no
|
17351 |
|
|
hardcode_into_libs=yes
|
17352 |
|
|
;;
|
17353 |
|
|
*) # from 4.6 on, and DragonFly
|
17354 |
|
|
shlibpath_overrides_runpath=yes
|
17355 |
|
|
hardcode_into_libs=yes
|
17356 |
|
|
;;
|
17357 |
|
|
esac
|
17358 |
|
|
;;
|
17359 |
|
|
|
17360 |
|
|
gnu*)
|
17361 |
|
|
version_type=linux
|
17362 |
|
|
need_lib_prefix=no
|
17363 |
|
|
need_version=no
|
17364 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
17365 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17366 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17367 |
|
|
hardcode_into_libs=yes
|
17368 |
|
|
;;
|
17369 |
|
|
|
17370 |
|
|
hpux9* | hpux10* | hpux11*)
|
17371 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
17372 |
|
|
# link against other versions.
|
17373 |
|
|
version_type=sunos
|
17374 |
|
|
need_lib_prefix=no
|
17375 |
|
|
need_version=no
|
17376 |
|
|
case $host_cpu in
|
17377 |
|
|
ia64*)
|
17378 |
|
|
shrext_cmds='.so'
|
17379 |
|
|
hardcode_into_libs=yes
|
17380 |
|
|
dynamic_linker="$host_os dld.so"
|
17381 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17382 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
17383 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17384 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17385 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
17386 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
17387 |
|
|
else
|
17388 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
17389 |
|
|
fi
|
17390 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
17391 |
|
|
;;
|
17392 |
|
|
hppa*64*)
|
17393 |
|
|
shrext_cmds='.sl'
|
17394 |
|
|
hardcode_into_libs=yes
|
17395 |
|
|
dynamic_linker="$host_os dld.sl"
|
17396 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
17397 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
17398 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17399 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17400 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
17401 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
17402 |
|
|
;;
|
17403 |
|
|
*)
|
17404 |
|
|
shrext_cmds='.sl'
|
17405 |
|
|
dynamic_linker="$host_os dld.sl"
|
17406 |
|
|
shlibpath_var=SHLIB_PATH
|
17407 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
17408 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17409 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17410 |
|
|
;;
|
17411 |
|
|
esac
|
17412 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
17413 |
|
|
postinstall_cmds='chmod 555 $lib'
|
17414 |
|
|
;;
|
17415 |
|
|
|
17416 |
|
|
interix[3-9]*)
|
17417 |
|
|
version_type=linux
|
17418 |
|
|
need_lib_prefix=no
|
17419 |
|
|
need_version=no
|
17420 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
17421 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17422 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
17423 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17424 |
|
|
shlibpath_overrides_runpath=no
|
17425 |
|
|
hardcode_into_libs=yes
|
17426 |
|
|
;;
|
17427 |
|
|
|
17428 |
|
|
irix5* | irix6* | nonstopux*)
|
17429 |
|
|
case $host_os in
|
17430 |
|
|
nonstopux*) version_type=nonstopux ;;
|
17431 |
|
|
*)
|
17432 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
17433 |
|
|
version_type=linux
|
17434 |
|
|
else
|
17435 |
|
|
version_type=irix
|
17436 |
|
|
fi ;;
|
17437 |
|
|
esac
|
17438 |
|
|
need_lib_prefix=no
|
17439 |
|
|
need_version=no
|
17440 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17441 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
17442 |
|
|
case $host_os in
|
17443 |
|
|
irix5* | nonstopux*)
|
17444 |
|
|
libsuff= shlibsuff=
|
17445 |
|
|
;;
|
17446 |
|
|
*)
|
17447 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
17448 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
17449 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
17450 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
17451 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
17452 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
17453 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
17454 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
17455 |
|
|
esac
|
17456 |
|
|
;;
|
17457 |
|
|
esac
|
17458 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
17459 |
|
|
shlibpath_overrides_runpath=no
|
17460 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
17461 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
17462 |
|
|
hardcode_into_libs=yes
|
17463 |
|
|
;;
|
17464 |
|
|
|
17465 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
17466 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
17467 |
|
|
dynamic_linker=no
|
17468 |
|
|
;;
|
17469 |
|
|
|
17470 |
|
|
# This must be Linux ELF.
|
17471 |
|
|
linux* | k*bsd*-gnu)
|
17472 |
|
|
version_type=linux
|
17473 |
|
|
need_lib_prefix=no
|
17474 |
|
|
need_version=no
|
17475 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17476 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17477 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
17478 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17479 |
|
|
shlibpath_overrides_runpath=no
|
17480 |
|
|
# This implies no fast_install, which is unacceptable.
|
17481 |
|
|
# Some rework will be needed to allow for fast_install
|
17482 |
|
|
# before this can be enabled.
|
17483 |
|
|
hardcode_into_libs=yes
|
17484 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
17485 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
17486 |
|
|
|
17487 |
|
|
# Append ld.so.conf contents to the search path
|
17488 |
|
|
if test -f /etc/ld.so.conf; then
|
17489 |
|
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
17490 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
17491 |
|
|
fi
|
17492 |
|
|
|
17493 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
17494 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
17495 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
17496 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
17497 |
|
|
# people can always --disable-shared, the test was removed, and we
|
17498 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
17499 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
17500 |
|
|
;;
|
17501 |
|
|
|
17502 |
|
|
netbsd*)
|
17503 |
|
|
version_type=sunos
|
17504 |
|
|
need_lib_prefix=no
|
17505 |
|
|
need_version=no
|
17506 |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
17507 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
17508 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
17509 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
17510 |
|
|
else
|
17511 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
17512 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17513 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
17514 |
|
|
fi
|
17515 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17516 |
|
|
shlibpath_overrides_runpath=yes
|
17517 |
|
|
hardcode_into_libs=yes
|
17518 |
|
|
;;
|
17519 |
|
|
|
17520 |
|
|
newsos6)
|
17521 |
|
|
version_type=linux
|
17522 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17523 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17524 |
|
|
shlibpath_overrides_runpath=yes
|
17525 |
|
|
;;
|
17526 |
|
|
|
17527 |
|
|
nto-qnx*)
|
17528 |
|
|
version_type=linux
|
17529 |
|
|
need_lib_prefix=no
|
17530 |
|
|
need_version=no
|
17531 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17532 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17533 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17534 |
|
|
shlibpath_overrides_runpath=yes
|
17535 |
|
|
;;
|
17536 |
|
|
|
17537 |
|
|
openbsd*)
|
17538 |
|
|
version_type=sunos
|
17539 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
17540 |
|
|
need_lib_prefix=no
|
17541 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
17542 |
|
|
case $host_os in
|
17543 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
17544 |
|
|
*) need_version=no ;;
|
17545 |
|
|
esac
|
17546 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
17547 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
17548 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17549 |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
17550 |
|
|
case $host_os in
|
17551 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
17552 |
|
|
shlibpath_overrides_runpath=no
|
17553 |
|
|
;;
|
17554 |
|
|
*)
|
17555 |
|
|
shlibpath_overrides_runpath=yes
|
17556 |
|
|
;;
|
17557 |
|
|
esac
|
17558 |
|
|
else
|
17559 |
|
|
shlibpath_overrides_runpath=yes
|
17560 |
|
|
fi
|
17561 |
|
|
;;
|
17562 |
|
|
|
17563 |
|
|
os2*)
|
17564 |
|
|
libname_spec='$name'
|
17565 |
|
|
shrext_cmds=".dll"
|
17566 |
|
|
need_lib_prefix=no
|
17567 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
17568 |
|
|
dynamic_linker='OS/2 ld.exe'
|
17569 |
|
|
shlibpath_var=LIBPATH
|
17570 |
|
|
;;
|
17571 |
|
|
|
17572 |
|
|
osf3* | osf4* | osf5*)
|
17573 |
|
|
version_type=osf
|
17574 |
|
|
need_lib_prefix=no
|
17575 |
|
|
need_version=no
|
17576 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17577 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17578 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17579 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
17580 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
17581 |
|
|
;;
|
17582 |
|
|
|
17583 |
|
|
rdos*)
|
17584 |
|
|
dynamic_linker=no
|
17585 |
|
|
;;
|
17586 |
|
|
|
17587 |
|
|
solaris*)
|
17588 |
|
|
version_type=linux
|
17589 |
|
|
need_lib_prefix=no
|
17590 |
|
|
need_version=no
|
17591 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17592 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17593 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17594 |
|
|
shlibpath_overrides_runpath=yes
|
17595 |
|
|
hardcode_into_libs=yes
|
17596 |
|
|
# ldd complains unless libraries are executable
|
17597 |
|
|
postinstall_cmds='chmod +x $lib'
|
17598 |
|
|
;;
|
17599 |
|
|
|
17600 |
|
|
sunos4*)
|
17601 |
|
|
version_type=sunos
|
17602 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
17603 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
17604 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17605 |
|
|
shlibpath_overrides_runpath=yes
|
17606 |
|
|
if test "$with_gnu_ld" = yes; then
|
17607 |
|
|
need_lib_prefix=no
|
17608 |
|
|
fi
|
17609 |
|
|
need_version=yes
|
17610 |
|
|
;;
|
17611 |
|
|
|
17612 |
|
|
sysv4 | sysv4.3*)
|
17613 |
|
|
version_type=linux
|
17614 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17615 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17616 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17617 |
|
|
case $host_vendor in
|
17618 |
|
|
sni)
|
17619 |
|
|
shlibpath_overrides_runpath=no
|
17620 |
|
|
need_lib_prefix=no
|
17621 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
17622 |
|
|
runpath_var=LD_RUN_PATH
|
17623 |
|
|
;;
|
17624 |
|
|
siemens)
|
17625 |
|
|
need_lib_prefix=no
|
17626 |
|
|
;;
|
17627 |
|
|
motorola)
|
17628 |
|
|
need_lib_prefix=no
|
17629 |
|
|
need_version=no
|
17630 |
|
|
shlibpath_overrides_runpath=no
|
17631 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
17632 |
|
|
;;
|
17633 |
|
|
esac
|
17634 |
|
|
;;
|
17635 |
|
|
|
17636 |
|
|
sysv4*MP*)
|
17637 |
|
|
if test -d /usr/nec ;then
|
17638 |
|
|
version_type=linux
|
17639 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
17640 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
17641 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17642 |
|
|
fi
|
17643 |
|
|
;;
|
17644 |
|
|
|
17645 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
17646 |
|
|
version_type=freebsd-elf
|
17647 |
|
|
need_lib_prefix=no
|
17648 |
|
|
need_version=no
|
17649 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
17650 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17651 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17652 |
|
|
hardcode_into_libs=yes
|
17653 |
|
|
if test "$with_gnu_ld" = yes; then
|
17654 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
17655 |
|
|
shlibpath_overrides_runpath=no
|
17656 |
|
|
else
|
17657 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
17658 |
|
|
shlibpath_overrides_runpath=yes
|
17659 |
|
|
case $host_os in
|
17660 |
|
|
sco3.2v5*)
|
17661 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
17662 |
|
|
;;
|
17663 |
|
|
esac
|
17664 |
|
|
fi
|
17665 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
17666 |
|
|
;;
|
17667 |
|
|
|
17668 |
|
|
uts4*)
|
17669 |
|
|
version_type=linux
|
17670 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17671 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
17672 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
17673 |
|
|
;;
|
17674 |
|
|
|
17675 |
|
|
*)
|
17676 |
|
|
dynamic_linker=no
|
17677 |
|
|
;;
|
17678 |
|
|
esac
|
17679 |
|
|
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
17680 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6; }
|
17681 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
17682 |
|
|
|
17683 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
17684 |
|
|
if test "$GCC" = yes; then
|
17685 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
17686 |
|
|
fi
|
17687 |
|
|
|
17688 |
|
|
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
17689 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
17690 |
|
|
hardcode_action_GCJ=
|
17691 |
|
|
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
|
17692 |
|
|
test -n "$runpath_var_GCJ" || \
|
17693 |
|
|
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
|
17694 |
|
|
|
17695 |
|
|
# We can hardcode non-existant directories.
|
17696 |
|
|
if test "$hardcode_direct_GCJ" != no &&
|
17697 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
17698 |
|
|
# have to relink, otherwise we might link with an installed library
|
17699 |
|
|
# when we should be linking with a yet-to-be-installed one
|
17700 |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
|
17701 |
|
|
test "$hardcode_minus_L_GCJ" != no; then
|
17702 |
|
|
# Linking always hardcodes the temporary library directory.
|
17703 |
|
|
hardcode_action_GCJ=relink
|
17704 |
|
|
else
|
17705 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
17706 |
|
|
hardcode_action_GCJ=immediate
|
17707 |
|
|
fi
|
17708 |
|
|
else
|
17709 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
17710 |
|
|
# directories.
|
17711 |
|
|
hardcode_action_GCJ=unsupported
|
17712 |
|
|
fi
|
17713 |
|
|
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
|
17714 |
|
|
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
|
17715 |
|
|
|
17716 |
|
|
if test "$hardcode_action_GCJ" = relink; then
|
17717 |
|
|
# Fast installation is not supported
|
17718 |
|
|
enable_fast_install=no
|
17719 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
17720 |
|
|
test "$enable_shared" = no; then
|
17721 |
|
|
# Fast installation is not necessary
|
17722 |
|
|
enable_fast_install=needless
|
17723 |
|
|
fi
|
17724 |
|
|
|
17725 |
|
|
|
17726 |
|
|
# The else clause should only fire when bootstrapping the
|
17727 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
17728 |
|
|
# with your package, and you will get complaints that there are
|
17729 |
|
|
# no rules to generate ltmain.sh.
|
17730 |
|
|
if test -f "$ltmain"; then
|
17731 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
17732 |
|
|
# without removal of \ escapes.
|
17733 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
17734 |
|
|
setopt NO_GLOB_SUBST
|
17735 |
|
|
fi
|
17736 |
|
|
# Now quote all the things that may contain metacharacters while being
|
17737 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
17738 |
|
|
# variables and quote the copies for generation of the libtool script.
|
17739 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
17740 |
|
|
SED SHELL STRIP \
|
17741 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
17742 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
17743 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
17744 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
17745 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
17746 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
17747 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
17748 |
|
|
compiler_GCJ \
|
17749 |
|
|
CC_GCJ \
|
17750 |
|
|
LD_GCJ \
|
17751 |
|
|
lt_prog_compiler_wl_GCJ \
|
17752 |
|
|
lt_prog_compiler_pic_GCJ \
|
17753 |
|
|
lt_prog_compiler_static_GCJ \
|
17754 |
|
|
lt_prog_compiler_no_builtin_flag_GCJ \
|
17755 |
|
|
export_dynamic_flag_spec_GCJ \
|
17756 |
|
|
thread_safe_flag_spec_GCJ \
|
17757 |
|
|
whole_archive_flag_spec_GCJ \
|
17758 |
|
|
enable_shared_with_static_runtimes_GCJ \
|
17759 |
|
|
old_archive_cmds_GCJ \
|
17760 |
|
|
old_archive_from_new_cmds_GCJ \
|
17761 |
|
|
predep_objects_GCJ \
|
17762 |
|
|
postdep_objects_GCJ \
|
17763 |
|
|
predeps_GCJ \
|
17764 |
|
|
postdeps_GCJ \
|
17765 |
|
|
compiler_lib_search_path_GCJ \
|
17766 |
|
|
archive_cmds_GCJ \
|
17767 |
|
|
archive_expsym_cmds_GCJ \
|
17768 |
|
|
postinstall_cmds_GCJ \
|
17769 |
|
|
postuninstall_cmds_GCJ \
|
17770 |
|
|
old_archive_from_expsyms_cmds_GCJ \
|
17771 |
|
|
allow_undefined_flag_GCJ \
|
17772 |
|
|
no_undefined_flag_GCJ \
|
17773 |
|
|
export_symbols_cmds_GCJ \
|
17774 |
|
|
hardcode_libdir_flag_spec_GCJ \
|
17775 |
|
|
hardcode_libdir_flag_spec_ld_GCJ \
|
17776 |
|
|
hardcode_libdir_separator_GCJ \
|
17777 |
|
|
hardcode_automatic_GCJ \
|
17778 |
|
|
module_cmds_GCJ \
|
17779 |
|
|
module_expsym_cmds_GCJ \
|
17780 |
|
|
lt_cv_prog_compiler_c_o_GCJ \
|
17781 |
|
|
fix_srcfile_path_GCJ \
|
17782 |
|
|
exclude_expsyms_GCJ \
|
17783 |
|
|
include_expsyms_GCJ; do
|
17784 |
|
|
|
17785 |
|
|
case $var in
|
17786 |
|
|
old_archive_cmds_GCJ | \
|
17787 |
|
|
old_archive_from_new_cmds_GCJ | \
|
17788 |
|
|
archive_cmds_GCJ | \
|
17789 |
|
|
archive_expsym_cmds_GCJ | \
|
17790 |
|
|
module_cmds_GCJ | \
|
17791 |
|
|
module_expsym_cmds_GCJ | \
|
17792 |
|
|
old_archive_from_expsyms_cmds_GCJ | \
|
17793 |
|
|
export_symbols_cmds_GCJ | \
|
17794 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
17795 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
17796 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
17797 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
17798 |
|
|
# Double-quote double-evaled strings.
|
17799 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
17800 |
|
|
;;
|
17801 |
|
|
*)
|
17802 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
17803 |
|
|
;;
|
17804 |
|
|
esac
|
17805 |
|
|
done
|
17806 |
|
|
|
17807 |
|
|
case $lt_echo in
|
17808 |
|
|
*'\$0 --fallback-echo"')
|
17809 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
17810 |
|
|
;;
|
17811 |
|
|
esac
|
17812 |
|
|
|
17813 |
|
|
cfgfile="$ofile"
|
17814 |
|
|
|
17815 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
17816 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
17817 |
|
|
|
17818 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
17819 |
|
|
|
17820 |
|
|
# Shell to use when invoking shell scripts.
|
17821 |
|
|
SHELL=$lt_SHELL
|
17822 |
|
|
|
17823 |
|
|
# Whether or not to build shared libraries.
|
17824 |
|
|
build_libtool_libs=$enable_shared
|
17825 |
|
|
|
17826 |
|
|
# Whether or not to build static libraries.
|
17827 |
|
|
build_old_libs=$enable_static
|
17828 |
|
|
|
17829 |
|
|
# Whether or not to add -lc for building shared libraries.
|
17830 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
|
17831 |
|
|
|
17832 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
17833 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
|
17834 |
|
|
|
17835 |
|
|
# Whether or not to optimize for fast installation.
|
17836 |
|
|
fast_install=$enable_fast_install
|
17837 |
|
|
|
17838 |
|
|
# The host system.
|
17839 |
|
|
host_alias=$host_alias
|
17840 |
|
|
host=$host
|
17841 |
|
|
host_os=$host_os
|
17842 |
|
|
|
17843 |
|
|
# The build system.
|
17844 |
|
|
build_alias=$build_alias
|
17845 |
|
|
build=$build
|
17846 |
|
|
build_os=$build_os
|
17847 |
|
|
|
17848 |
|
|
# An echo program that does not interpret backslashes.
|
17849 |
|
|
echo=$lt_echo
|
17850 |
|
|
|
17851 |
|
|
# The archiver.
|
17852 |
|
|
AR=$lt_AR
|
17853 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
17854 |
|
|
|
17855 |
|
|
# A C compiler.
|
17856 |
|
|
LTCC=$lt_LTCC
|
17857 |
|
|
|
17858 |
|
|
# LTCC compiler flags.
|
17859 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
17860 |
|
|
|
17861 |
|
|
# A language-specific compiler.
|
17862 |
|
|
CC=$lt_compiler_GCJ
|
17863 |
|
|
|
17864 |
|
|
# Is the compiler the GNU C compiler?
|
17865 |
|
|
with_gcc=$GCC_GCJ
|
17866 |
|
|
|
17867 |
|
|
# An ERE matcher.
|
17868 |
|
|
EGREP=$lt_EGREP
|
17869 |
|
|
|
17870 |
|
|
# The linker used to build libraries.
|
17871 |
|
|
LD=$lt_LD_GCJ
|
17872 |
|
|
|
17873 |
|
|
# Whether we need hard or soft links.
|
17874 |
|
|
LN_S=$lt_LN_S
|
17875 |
|
|
|
17876 |
|
|
# A BSD-compatible nm program.
|
17877 |
|
|
NM=$lt_NM
|
17878 |
|
|
|
17879 |
|
|
# A symbol stripping program
|
17880 |
|
|
STRIP=$lt_STRIP
|
17881 |
|
|
|
17882 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
17883 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
17884 |
|
|
|
17885 |
|
|
# Used on cygwin: DLL creation program.
|
17886 |
|
|
DLLTOOL="$DLLTOOL"
|
17887 |
|
|
|
17888 |
|
|
# Used on cygwin: object dumper.
|
17889 |
|
|
OBJDUMP="$OBJDUMP"
|
17890 |
|
|
|
17891 |
|
|
# Used on cygwin: assembler.
|
17892 |
|
|
AS="$AS"
|
17893 |
|
|
|
17894 |
|
|
# The name of the directory that contains temporary libtool files.
|
17895 |
|
|
objdir=$objdir
|
17896 |
|
|
|
17897 |
|
|
# How to create reloadable object files.
|
17898 |
|
|
reload_flag=$lt_reload_flag
|
17899 |
|
|
reload_cmds=$lt_reload_cmds
|
17900 |
|
|
|
17901 |
|
|
# How to pass a linker flag through the compiler.
|
17902 |
|
|
wl=$lt_lt_prog_compiler_wl_GCJ
|
17903 |
|
|
|
17904 |
|
|
# Object file suffix (normally "o").
|
17905 |
|
|
objext="$ac_objext"
|
17906 |
|
|
|
17907 |
|
|
# Old archive suffix (normally "a").
|
17908 |
|
|
libext="$libext"
|
17909 |
|
|
|
17910 |
|
|
# Shared library suffix (normally ".so").
|
17911 |
|
|
shrext_cmds='$shrext_cmds'
|
17912 |
|
|
|
17913 |
|
|
# Executable file suffix (normally "").
|
17914 |
|
|
exeext="$exeext"
|
17915 |
|
|
|
17916 |
|
|
# Additional compiler flags for building library objects.
|
17917 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_GCJ
|
17918 |
|
|
pic_mode=$pic_mode
|
17919 |
|
|
|
17920 |
|
|
# What is the maximum length of a command?
|
17921 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
17922 |
|
|
|
17923 |
|
|
# Does compiler simultaneously support -c and -o options?
|
17924 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
|
17925 |
|
|
|
17926 |
|
|
# Must we lock files when doing compilation?
|
17927 |
|
|
need_locks=$lt_need_locks
|
17928 |
|
|
|
17929 |
|
|
# Do we need the lib prefix for modules?
|
17930 |
|
|
need_lib_prefix=$need_lib_prefix
|
17931 |
|
|
|
17932 |
|
|
# Do we need a version for libraries?
|
17933 |
|
|
need_version=$need_version
|
17934 |
|
|
|
17935 |
|
|
# Whether dlopen is supported.
|
17936 |
|
|
dlopen_support=$enable_dlopen
|
17937 |
|
|
|
17938 |
|
|
# Whether dlopen of programs is supported.
|
17939 |
|
|
dlopen_self=$enable_dlopen_self
|
17940 |
|
|
|
17941 |
|
|
# Whether dlopen of statically linked programs is supported.
|
17942 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
17943 |
|
|
|
17944 |
|
|
# Compiler flag to prevent dynamic linking.
|
17945 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_GCJ
|
17946 |
|
|
|
17947 |
|
|
# Compiler flag to turn off builtin functions.
|
17948 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
|
17949 |
|
|
|
17950 |
|
|
# Compiler flag to allow reflexive dlopens.
|
17951 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
|
17952 |
|
|
|
17953 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
17954 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
|
17955 |
|
|
|
17956 |
|
|
# Compiler flag to generate thread-safe objects.
|
17957 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
|
17958 |
|
|
|
17959 |
|
|
# Library versioning type.
|
17960 |
|
|
version_type=$version_type
|
17961 |
|
|
|
17962 |
|
|
# Format of library name prefix.
|
17963 |
|
|
libname_spec=$lt_libname_spec
|
17964 |
|
|
|
17965 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
17966 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
17967 |
|
|
library_names_spec=$lt_library_names_spec
|
17968 |
|
|
|
17969 |
|
|
# The coded name of the library, if different from the real name.
|
17970 |
|
|
soname_spec=$lt_soname_spec
|
17971 |
|
|
|
17972 |
|
|
# Commands used to build and install an old-style archive.
|
17973 |
|
|
RANLIB=$lt_RANLIB
|
17974 |
|
|
old_archive_cmds=$lt_old_archive_cmds_GCJ
|
17975 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
17976 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
17977 |
|
|
|
17978 |
|
|
# Create an old-style archive from a shared archive.
|
17979 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
|
17980 |
|
|
|
17981 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
17982 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
|
17983 |
|
|
|
17984 |
|
|
# Commands used to build and install a shared archive.
|
17985 |
|
|
archive_cmds=$lt_archive_cmds_GCJ
|
17986 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
|
17987 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
17988 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
17989 |
|
|
|
17990 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
17991 |
|
|
module_cmds=$lt_module_cmds_GCJ
|
17992 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
|
17993 |
|
|
|
17994 |
|
|
# Commands to strip libraries.
|
17995 |
|
|
old_striplib=$lt_old_striplib
|
17996 |
|
|
striplib=$lt_striplib
|
17997 |
|
|
|
17998 |
|
|
# Dependencies to place before the objects being linked to create a
|
17999 |
|
|
# shared library.
|
18000 |
|
|
predep_objects=$lt_predep_objects_GCJ
|
18001 |
|
|
|
18002 |
|
|
# Dependencies to place after the objects being linked to create a
|
18003 |
|
|
# shared library.
|
18004 |
|
|
postdep_objects=$lt_postdep_objects_GCJ
|
18005 |
|
|
|
18006 |
|
|
# Dependencies to place before the objects being linked to create a
|
18007 |
|
|
# shared library.
|
18008 |
|
|
predeps=$lt_predeps_GCJ
|
18009 |
|
|
|
18010 |
|
|
# Dependencies to place after the objects being linked to create a
|
18011 |
|
|
# shared library.
|
18012 |
|
|
postdeps=$lt_postdeps_GCJ
|
18013 |
|
|
|
18014 |
|
|
# The library search path used internally by the compiler when linking
|
18015 |
|
|
# a shared library.
|
18016 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
|
18017 |
|
|
|
18018 |
|
|
# Method to check whether dependent libraries are shared objects.
|
18019 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
18020 |
|
|
|
18021 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
18022 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
18023 |
|
|
|
18024 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
18025 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
|
18026 |
|
|
|
18027 |
|
|
# Flag that forces no undefined symbols.
|
18028 |
|
|
no_undefined_flag=$lt_no_undefined_flag_GCJ
|
18029 |
|
|
|
18030 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
18031 |
|
|
finish_cmds=$lt_finish_cmds
|
18032 |
|
|
|
18033 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
18034 |
|
|
finish_eval=$lt_finish_eval
|
18035 |
|
|
|
18036 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
18037 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
18038 |
|
|
|
18039 |
|
|
# Transform the output of nm in a proper C declaration
|
18040 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
18041 |
|
|
|
18042 |
|
|
# Transform the output of nm in a C name address pair
|
18043 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
18044 |
|
|
|
18045 |
|
|
# This is the shared library runtime path variable.
|
18046 |
|
|
runpath_var=$runpath_var
|
18047 |
|
|
|
18048 |
|
|
# This is the shared library path variable.
|
18049 |
|
|
shlibpath_var=$shlibpath_var
|
18050 |
|
|
|
18051 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
18052 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
18053 |
|
|
|
18054 |
|
|
# How to hardcode a shared library path into an executable.
|
18055 |
|
|
hardcode_action=$hardcode_action_GCJ
|
18056 |
|
|
|
18057 |
|
|
# Whether we should hardcode library paths into libraries.
|
18058 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
18059 |
|
|
|
18060 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
18061 |
|
|
# This must work even if \$libdir does not exist.
|
18062 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
|
18063 |
|
|
|
18064 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
18065 |
|
|
# a binary during linking. This must work even if \$libdir does
|
18066 |
|
|
# not exist.
|
18067 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
|
18068 |
|
|
|
18069 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
18070 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
|
18071 |
|
|
|
18072 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
18073 |
|
|
# resulting binary.
|
18074 |
|
|
hardcode_direct=$hardcode_direct_GCJ
|
18075 |
|
|
|
18076 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
18077 |
|
|
# resulting binary.
|
18078 |
|
|
hardcode_minus_L=$hardcode_minus_L_GCJ
|
18079 |
|
|
|
18080 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
18081 |
|
|
# the resulting binary.
|
18082 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
|
18083 |
|
|
|
18084 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
18085 |
|
|
# and all subsequent libraries and executables linked against it.
|
18086 |
|
|
hardcode_automatic=$hardcode_automatic_GCJ
|
18087 |
|
|
|
18088 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
18089 |
|
|
# restored at relink time.
|
18090 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
18091 |
|
|
|
18092 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
18093 |
|
|
link_all_deplibs=$link_all_deplibs_GCJ
|
18094 |
|
|
|
18095 |
|
|
# Compile-time system search path for libraries
|
18096 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
18097 |
|
|
|
18098 |
|
|
# Run-time system search path for libraries
|
18099 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
18100 |
|
|
|
18101 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
18102 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
18103 |
|
|
|
18104 |
|
|
# Set to yes if exported symbols are required.
|
18105 |
|
|
always_export_symbols=$always_export_symbols_GCJ
|
18106 |
|
|
|
18107 |
|
|
# The commands to list exported symbols.
|
18108 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
|
18109 |
|
|
|
18110 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
18111 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
18112 |
|
|
|
18113 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
18114 |
|
|
exclude_expsyms=$lt_exclude_expsyms_GCJ
|
18115 |
|
|
|
18116 |
|
|
# Symbols that must always be exported.
|
18117 |
|
|
include_expsyms=$lt_include_expsyms_GCJ
|
18118 |
|
|
|
18119 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
18120 |
|
|
|
18121 |
|
|
__EOF__
|
18122 |
|
|
|
18123 |
|
|
|
18124 |
|
|
else
|
18125 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
18126 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
18127 |
|
|
# libtool script then.
|
18128 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
18129 |
|
|
if test -f "$ltmain_in"; then
|
18130 |
|
|
test -f Makefile && make "$ltmain"
|
18131 |
|
|
fi
|
18132 |
|
|
fi
|
18133 |
|
|
|
18134 |
|
|
|
18135 |
|
|
ac_ext=c
|
18136 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
18137 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
18138 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
18139 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
18140 |
|
|
|
18141 |
|
|
CC="$lt_save_CC"
|
18142 |
|
|
|
18143 |
|
|
else
|
18144 |
|
|
tagname=""
|
18145 |
|
|
fi
|
18146 |
|
|
;;
|
18147 |
|
|
|
18148 |
|
|
RC)
|
18149 |
|
|
|
18150 |
|
|
|
18151 |
|
|
# Source file extension for RC test sources.
|
18152 |
|
|
ac_ext=rc
|
18153 |
|
|
|
18154 |
|
|
# Object file extension for compiled RC test sources.
|
18155 |
|
|
objext=o
|
18156 |
|
|
objext_RC=$objext
|
18157 |
|
|
|
18158 |
|
|
# Code to be used in simple compile tests
|
18159 |
|
|
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
18160 |
|
|
|
18161 |
|
|
# Code to be used in simple link tests
|
18162 |
|
|
lt_simple_link_test_code="$lt_simple_compile_test_code"
|
18163 |
|
|
|
18164 |
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
18165 |
|
|
|
18166 |
|
|
# If no C compiler was specified, use CC.
|
18167 |
|
|
LTCC=${LTCC-"$CC"}
|
18168 |
|
|
|
18169 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
18170 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
18171 |
|
|
|
18172 |
|
|
# Allow CC to be a program name with arguments.
|
18173 |
|
|
compiler=$CC
|
18174 |
|
|
|
18175 |
|
|
|
18176 |
|
|
# save warnings/boilerplate of simple test code
|
18177 |
|
|
ac_outfile=conftest.$ac_objext
|
18178 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
18179 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
18180 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
18181 |
|
|
$rm conftest*
|
18182 |
|
|
|
18183 |
|
|
ac_outfile=conftest.$ac_objext
|
18184 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
18185 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
18186 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
18187 |
|
|
$rm conftest*
|
18188 |
|
|
|
18189 |
|
|
|
18190 |
|
|
# Allow CC to be a program name with arguments.
|
18191 |
|
|
lt_save_CC="$CC"
|
18192 |
|
|
CC=${RC-"windres"}
|
18193 |
|
|
compiler=$CC
|
18194 |
|
|
compiler_RC=$CC
|
18195 |
|
|
for cc_temp in $compiler""; do
|
18196 |
|
|
case $cc_temp in
|
18197 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
18198 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
18199 |
|
|
\-*) ;;
|
18200 |
|
|
*) break;;
|
18201 |
|
|
esac
|
18202 |
|
|
done
|
18203 |
|
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
18204 |
|
|
|
18205 |
|
|
lt_cv_prog_compiler_c_o_RC=yes
|
18206 |
|
|
|
18207 |
|
|
# The else clause should only fire when bootstrapping the
|
18208 |
|
|
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
18209 |
|
|
# with your package, and you will get complaints that there are
|
18210 |
|
|
# no rules to generate ltmain.sh.
|
18211 |
|
|
if test -f "$ltmain"; then
|
18212 |
|
|
# See if we are running on zsh, and set the options which allow our commands through
|
18213 |
|
|
# without removal of \ escapes.
|
18214 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
18215 |
|
|
setopt NO_GLOB_SUBST
|
18216 |
|
|
fi
|
18217 |
|
|
# Now quote all the things that may contain metacharacters while being
|
18218 |
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
18219 |
|
|
# variables and quote the copies for generation of the libtool script.
|
18220 |
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
18221 |
|
|
SED SHELL STRIP \
|
18222 |
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
18223 |
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
18224 |
|
|
deplibs_check_method reload_flag reload_cmds need_locks \
|
18225 |
|
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
18226 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
18227 |
|
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
18228 |
|
|
old_postinstall_cmds old_postuninstall_cmds \
|
18229 |
|
|
compiler_RC \
|
18230 |
|
|
CC_RC \
|
18231 |
|
|
LD_RC \
|
18232 |
|
|
lt_prog_compiler_wl_RC \
|
18233 |
|
|
lt_prog_compiler_pic_RC \
|
18234 |
|
|
lt_prog_compiler_static_RC \
|
18235 |
|
|
lt_prog_compiler_no_builtin_flag_RC \
|
18236 |
|
|
export_dynamic_flag_spec_RC \
|
18237 |
|
|
thread_safe_flag_spec_RC \
|
18238 |
|
|
whole_archive_flag_spec_RC \
|
18239 |
|
|
enable_shared_with_static_runtimes_RC \
|
18240 |
|
|
old_archive_cmds_RC \
|
18241 |
|
|
old_archive_from_new_cmds_RC \
|
18242 |
|
|
predep_objects_RC \
|
18243 |
|
|
postdep_objects_RC \
|
18244 |
|
|
predeps_RC \
|
18245 |
|
|
postdeps_RC \
|
18246 |
|
|
compiler_lib_search_path_RC \
|
18247 |
|
|
archive_cmds_RC \
|
18248 |
|
|
archive_expsym_cmds_RC \
|
18249 |
|
|
postinstall_cmds_RC \
|
18250 |
|
|
postuninstall_cmds_RC \
|
18251 |
|
|
old_archive_from_expsyms_cmds_RC \
|
18252 |
|
|
allow_undefined_flag_RC \
|
18253 |
|
|
no_undefined_flag_RC \
|
18254 |
|
|
export_symbols_cmds_RC \
|
18255 |
|
|
hardcode_libdir_flag_spec_RC \
|
18256 |
|
|
hardcode_libdir_flag_spec_ld_RC \
|
18257 |
|
|
hardcode_libdir_separator_RC \
|
18258 |
|
|
hardcode_automatic_RC \
|
18259 |
|
|
module_cmds_RC \
|
18260 |
|
|
module_expsym_cmds_RC \
|
18261 |
|
|
lt_cv_prog_compiler_c_o_RC \
|
18262 |
|
|
fix_srcfile_path_RC \
|
18263 |
|
|
exclude_expsyms_RC \
|
18264 |
|
|
include_expsyms_RC; do
|
18265 |
|
|
|
18266 |
|
|
case $var in
|
18267 |
|
|
old_archive_cmds_RC | \
|
18268 |
|
|
old_archive_from_new_cmds_RC | \
|
18269 |
|
|
archive_cmds_RC | \
|
18270 |
|
|
archive_expsym_cmds_RC | \
|
18271 |
|
|
module_cmds_RC | \
|
18272 |
|
|
module_expsym_cmds_RC | \
|
18273 |
|
|
old_archive_from_expsyms_cmds_RC | \
|
18274 |
|
|
export_symbols_cmds_RC | \
|
18275 |
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
18276 |
|
|
postinstall_cmds | postuninstall_cmds | \
|
18277 |
|
|
old_postinstall_cmds | old_postuninstall_cmds | \
|
18278 |
|
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
18279 |
|
|
# Double-quote double-evaled strings.
|
18280 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
18281 |
|
|
;;
|
18282 |
|
|
*)
|
18283 |
|
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
18284 |
|
|
;;
|
18285 |
|
|
esac
|
18286 |
|
|
done
|
18287 |
|
|
|
18288 |
|
|
case $lt_echo in
|
18289 |
|
|
*'\$0 --fallback-echo"')
|
18290 |
|
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
18291 |
|
|
;;
|
18292 |
|
|
esac
|
18293 |
|
|
|
18294 |
|
|
cfgfile="$ofile"
|
18295 |
|
|
|
18296 |
|
|
cat <<__EOF__ >> "$cfgfile"
|
18297 |
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
18298 |
|
|
|
18299 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
18300 |
|
|
|
18301 |
|
|
# Shell to use when invoking shell scripts.
|
18302 |
|
|
SHELL=$lt_SHELL
|
18303 |
|
|
|
18304 |
|
|
# Whether or not to build shared libraries.
|
18305 |
|
|
build_libtool_libs=$enable_shared
|
18306 |
|
|
|
18307 |
|
|
# Whether or not to build static libraries.
|
18308 |
|
|
build_old_libs=$enable_static
|
18309 |
|
|
|
18310 |
|
|
# Whether or not to add -lc for building shared libraries.
|
18311 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc_RC
|
18312 |
|
|
|
18313 |
|
|
# Whether or not to disallow shared libs when runtime libs are static
|
18314 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
|
18315 |
|
|
|
18316 |
|
|
# Whether or not to optimize for fast installation.
|
18317 |
|
|
fast_install=$enable_fast_install
|
18318 |
|
|
|
18319 |
|
|
# The host system.
|
18320 |
|
|
host_alias=$host_alias
|
18321 |
|
|
host=$host
|
18322 |
|
|
host_os=$host_os
|
18323 |
|
|
|
18324 |
|
|
# The build system.
|
18325 |
|
|
build_alias=$build_alias
|
18326 |
|
|
build=$build
|
18327 |
|
|
build_os=$build_os
|
18328 |
|
|
|
18329 |
|
|
# An echo program that does not interpret backslashes.
|
18330 |
|
|
echo=$lt_echo
|
18331 |
|
|
|
18332 |
|
|
# The archiver.
|
18333 |
|
|
AR=$lt_AR
|
18334 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
18335 |
|
|
|
18336 |
|
|
# A C compiler.
|
18337 |
|
|
LTCC=$lt_LTCC
|
18338 |
|
|
|
18339 |
|
|
# LTCC compiler flags.
|
18340 |
|
|
LTCFLAGS=$lt_LTCFLAGS
|
18341 |
|
|
|
18342 |
|
|
# A language-specific compiler.
|
18343 |
|
|
CC=$lt_compiler_RC
|
18344 |
|
|
|
18345 |
|
|
# Is the compiler the GNU C compiler?
|
18346 |
|
|
with_gcc=$GCC_RC
|
18347 |
|
|
|
18348 |
|
|
# An ERE matcher.
|
18349 |
|
|
EGREP=$lt_EGREP
|
18350 |
|
|
|
18351 |
|
|
# The linker used to build libraries.
|
18352 |
|
|
LD=$lt_LD_RC
|
18353 |
|
|
|
18354 |
|
|
# Whether we need hard or soft links.
|
18355 |
|
|
LN_S=$lt_LN_S
|
18356 |
|
|
|
18357 |
|
|
# A BSD-compatible nm program.
|
18358 |
|
|
NM=$lt_NM
|
18359 |
|
|
|
18360 |
|
|
# A symbol stripping program
|
18361 |
|
|
STRIP=$lt_STRIP
|
18362 |
|
|
|
18363 |
|
|
# Used to examine libraries when file_magic_cmd begins "file"
|
18364 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
18365 |
|
|
|
18366 |
|
|
# Used on cygwin: DLL creation program.
|
18367 |
|
|
DLLTOOL="$DLLTOOL"
|
18368 |
|
|
|
18369 |
|
|
# Used on cygwin: object dumper.
|
18370 |
|
|
OBJDUMP="$OBJDUMP"
|
18371 |
|
|
|
18372 |
|
|
# Used on cygwin: assembler.
|
18373 |
|
|
AS="$AS"
|
18374 |
|
|
|
18375 |
|
|
# The name of the directory that contains temporary libtool files.
|
18376 |
|
|
objdir=$objdir
|
18377 |
|
|
|
18378 |
|
|
# How to create reloadable object files.
|
18379 |
|
|
reload_flag=$lt_reload_flag
|
18380 |
|
|
reload_cmds=$lt_reload_cmds
|
18381 |
|
|
|
18382 |
|
|
# How to pass a linker flag through the compiler.
|
18383 |
|
|
wl=$lt_lt_prog_compiler_wl_RC
|
18384 |
|
|
|
18385 |
|
|
# Object file suffix (normally "o").
|
18386 |
|
|
objext="$ac_objext"
|
18387 |
|
|
|
18388 |
|
|
# Old archive suffix (normally "a").
|
18389 |
|
|
libext="$libext"
|
18390 |
|
|
|
18391 |
|
|
# Shared library suffix (normally ".so").
|
18392 |
|
|
shrext_cmds='$shrext_cmds'
|
18393 |
|
|
|
18394 |
|
|
# Executable file suffix (normally "").
|
18395 |
|
|
exeext="$exeext"
|
18396 |
|
|
|
18397 |
|
|
# Additional compiler flags for building library objects.
|
18398 |
|
|
pic_flag=$lt_lt_prog_compiler_pic_RC
|
18399 |
|
|
pic_mode=$pic_mode
|
18400 |
|
|
|
18401 |
|
|
# What is the maximum length of a command?
|
18402 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
18403 |
|
|
|
18404 |
|
|
# Does compiler simultaneously support -c and -o options?
|
18405 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
|
18406 |
|
|
|
18407 |
|
|
# Must we lock files when doing compilation?
|
18408 |
|
|
need_locks=$lt_need_locks
|
18409 |
|
|
|
18410 |
|
|
# Do we need the lib prefix for modules?
|
18411 |
|
|
need_lib_prefix=$need_lib_prefix
|
18412 |
|
|
|
18413 |
|
|
# Do we need a version for libraries?
|
18414 |
|
|
need_version=$need_version
|
18415 |
|
|
|
18416 |
|
|
# Whether dlopen is supported.
|
18417 |
|
|
dlopen_support=$enable_dlopen
|
18418 |
|
|
|
18419 |
|
|
# Whether dlopen of programs is supported.
|
18420 |
|
|
dlopen_self=$enable_dlopen_self
|
18421 |
|
|
|
18422 |
|
|
# Whether dlopen of statically linked programs is supported.
|
18423 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
18424 |
|
|
|
18425 |
|
|
# Compiler flag to prevent dynamic linking.
|
18426 |
|
|
link_static_flag=$lt_lt_prog_compiler_static_RC
|
18427 |
|
|
|
18428 |
|
|
# Compiler flag to turn off builtin functions.
|
18429 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
|
18430 |
|
|
|
18431 |
|
|
# Compiler flag to allow reflexive dlopens.
|
18432 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
|
18433 |
|
|
|
18434 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
18435 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
|
18436 |
|
|
|
18437 |
|
|
# Compiler flag to generate thread-safe objects.
|
18438 |
|
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
|
18439 |
|
|
|
18440 |
|
|
# Library versioning type.
|
18441 |
|
|
version_type=$version_type
|
18442 |
|
|
|
18443 |
|
|
# Format of library name prefix.
|
18444 |
|
|
libname_spec=$lt_libname_spec
|
18445 |
|
|
|
18446 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
18447 |
|
|
# The last name is the one that the linker finds with -lNAME.
|
18448 |
|
|
library_names_spec=$lt_library_names_spec
|
18449 |
|
|
|
18450 |
|
|
# The coded name of the library, if different from the real name.
|
18451 |
|
|
soname_spec=$lt_soname_spec
|
18452 |
|
|
|
18453 |
|
|
# Commands used to build and install an old-style archive.
|
18454 |
|
|
RANLIB=$lt_RANLIB
|
18455 |
|
|
old_archive_cmds=$lt_old_archive_cmds_RC
|
18456 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
18457 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
18458 |
|
|
|
18459 |
|
|
# Create an old-style archive from a shared archive.
|
18460 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
|
18461 |
|
|
|
18462 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
18463 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
|
18464 |
|
|
|
18465 |
|
|
# Commands used to build and install a shared archive.
|
18466 |
|
|
archive_cmds=$lt_archive_cmds_RC
|
18467 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
|
18468 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
18469 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
18470 |
|
|
|
18471 |
|
|
# Commands used to build a loadable module (assumed same as above if empty)
|
18472 |
|
|
module_cmds=$lt_module_cmds_RC
|
18473 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds_RC
|
18474 |
|
|
|
18475 |
|
|
# Commands to strip libraries.
|
18476 |
|
|
old_striplib=$lt_old_striplib
|
18477 |
|
|
striplib=$lt_striplib
|
18478 |
|
|
|
18479 |
|
|
# Dependencies to place before the objects being linked to create a
|
18480 |
|
|
# shared library.
|
18481 |
|
|
predep_objects=$lt_predep_objects_RC
|
18482 |
|
|
|
18483 |
|
|
# Dependencies to place after the objects being linked to create a
|
18484 |
|
|
# shared library.
|
18485 |
|
|
postdep_objects=$lt_postdep_objects_RC
|
18486 |
|
|
|
18487 |
|
|
# Dependencies to place before the objects being linked to create a
|
18488 |
|
|
# shared library.
|
18489 |
|
|
predeps=$lt_predeps_RC
|
18490 |
|
|
|
18491 |
|
|
# Dependencies to place after the objects being linked to create a
|
18492 |
|
|
# shared library.
|
18493 |
|
|
postdeps=$lt_postdeps_RC
|
18494 |
|
|
|
18495 |
|
|
# The library search path used internally by the compiler when linking
|
18496 |
|
|
# a shared library.
|
18497 |
|
|
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
|
18498 |
|
|
|
18499 |
|
|
# Method to check whether dependent libraries are shared objects.
|
18500 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
18501 |
|
|
|
18502 |
|
|
# Command to use when deplibs_check_method == file_magic.
|
18503 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
18504 |
|
|
|
18505 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
18506 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag_RC
|
18507 |
|
|
|
18508 |
|
|
# Flag that forces no undefined symbols.
|
18509 |
|
|
no_undefined_flag=$lt_no_undefined_flag_RC
|
18510 |
|
|
|
18511 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
18512 |
|
|
finish_cmds=$lt_finish_cmds
|
18513 |
|
|
|
18514 |
|
|
# Same as above, but a single script fragment to be evaled but not shown.
|
18515 |
|
|
finish_eval=$lt_finish_eval
|
18516 |
|
|
|
18517 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
18518 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
18519 |
|
|
|
18520 |
|
|
# Transform the output of nm in a proper C declaration
|
18521 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
18522 |
|
|
|
18523 |
|
|
# Transform the output of nm in a C name address pair
|
18524 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
18525 |
|
|
|
18526 |
|
|
# This is the shared library runtime path variable.
|
18527 |
|
|
runpath_var=$runpath_var
|
18528 |
|
|
|
18529 |
|
|
# This is the shared library path variable.
|
18530 |
|
|
shlibpath_var=$shlibpath_var
|
18531 |
|
|
|
18532 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
18533 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
18534 |
|
|
|
18535 |
|
|
# How to hardcode a shared library path into an executable.
|
18536 |
|
|
hardcode_action=$hardcode_action_RC
|
18537 |
|
|
|
18538 |
|
|
# Whether we should hardcode library paths into libraries.
|
18539 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
18540 |
|
|
|
18541 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
18542 |
|
|
# This must work even if \$libdir does not exist.
|
18543 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
|
18544 |
|
|
|
18545 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into
|
18546 |
|
|
# a binary during linking. This must work even if \$libdir does
|
18547 |
|
|
# not exist.
|
18548 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
|
18549 |
|
|
|
18550 |
|
|
# Whether we need a single -rpath flag with a separated argument.
|
18551 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
|
18552 |
|
|
|
18553 |
|
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
18554 |
|
|
# resulting binary.
|
18555 |
|
|
hardcode_direct=$hardcode_direct_RC
|
18556 |
|
|
|
18557 |
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
18558 |
|
|
# resulting binary.
|
18559 |
|
|
hardcode_minus_L=$hardcode_minus_L_RC
|
18560 |
|
|
|
18561 |
|
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
18562 |
|
|
# the resulting binary.
|
18563 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
|
18564 |
|
|
|
18565 |
|
|
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
18566 |
|
|
# and all subsequent libraries and executables linked against it.
|
18567 |
|
|
hardcode_automatic=$hardcode_automatic_RC
|
18568 |
|
|
|
18569 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
18570 |
|
|
# restored at relink time.
|
18571 |
|
|
variables_saved_for_relink="$variables_saved_for_relink"
|
18572 |
|
|
|
18573 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
18574 |
|
|
link_all_deplibs=$link_all_deplibs_RC
|
18575 |
|
|
|
18576 |
|
|
# Compile-time system search path for libraries
|
18577 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
18578 |
|
|
|
18579 |
|
|
# Run-time system search path for libraries
|
18580 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
18581 |
|
|
|
18582 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
18583 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
18584 |
|
|
|
18585 |
|
|
# Set to yes if exported symbols are required.
|
18586 |
|
|
always_export_symbols=$always_export_symbols_RC
|
18587 |
|
|
|
18588 |
|
|
# The commands to list exported symbols.
|
18589 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds_RC
|
18590 |
|
|
|
18591 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
18592 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
18593 |
|
|
|
18594 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
18595 |
|
|
exclude_expsyms=$lt_exclude_expsyms_RC
|
18596 |
|
|
|
18597 |
|
|
# Symbols that must always be exported.
|
18598 |
|
|
include_expsyms=$lt_include_expsyms_RC
|
18599 |
|
|
|
18600 |
|
|
# ### END LIBTOOL TAG CONFIG: $tagname
|
18601 |
|
|
|
18602 |
|
|
__EOF__
|
18603 |
|
|
|
18604 |
|
|
|
18605 |
|
|
else
|
18606 |
|
|
# If there is no Makefile yet, we rely on a make rule to execute
|
18607 |
|
|
# `config.status --recheck' to rerun these tests and create the
|
18608 |
|
|
# libtool script then.
|
18609 |
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
18610 |
|
|
if test -f "$ltmain_in"; then
|
18611 |
|
|
test -f Makefile && make "$ltmain"
|
18612 |
|
|
fi
|
18613 |
|
|
fi
|
18614 |
|
|
|
18615 |
|
|
|
18616 |
|
|
ac_ext=c
|
18617 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
18618 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
18619 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
18620 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
18621 |
|
|
|
18622 |
|
|
CC="$lt_save_CC"
|
18623 |
|
|
|
18624 |
|
|
;;
|
18625 |
|
|
|
18626 |
|
|
*)
|
18627 |
|
|
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
|
18628 |
|
|
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
|
18629 |
|
|
{ (exit 1); exit 1; }; }
|
18630 |
|
|
;;
|
18631 |
|
|
esac
|
18632 |
|
|
|
18633 |
|
|
# Append the new tag name to the list of available tags.
|
18634 |
|
|
if test -n "$tagname" ; then
|
18635 |
|
|
available_tags="$available_tags $tagname"
|
18636 |
|
|
fi
|
18637 |
|
|
fi
|
18638 |
|
|
done
|
18639 |
|
|
IFS="$lt_save_ifs"
|
18640 |
|
|
|
18641 |
|
|
# Now substitute the updated list of available tags.
|
18642 |
|
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
18643 |
|
|
mv "${ofile}T" "$ofile"
|
18644 |
|
|
chmod +x "$ofile"
|
18645 |
|
|
else
|
18646 |
|
|
rm -f "${ofile}T"
|
18647 |
|
|
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
|
18648 |
|
|
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
|
18649 |
|
|
{ (exit 1); exit 1; }; }
|
18650 |
|
|
fi
|
18651 |
|
|
fi
|
18652 |
|
|
|
18653 |
|
|
|
18654 |
|
|
|
18655 |
|
|
# This can be used to rebuild libtool when needed
|
18656 |
|
|
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
18657 |
|
|
|
18658 |
|
|
# Always use our own libtool.
|
18659 |
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
18660 |
|
|
|
18661 |
|
|
# Prevent multiple expansion
|
18662 |
|
|
|
18663 |
|
|
|
18664 |
|
|
|
18665 |
|
|
|
18666 |
|
|
|
18667 |
|
|
|
18668 |
|
|
|
18669 |
|
|
|
18670 |
|
|
|
18671 |
|
|
|
18672 |
|
|
|
18673 |
|
|
|
18674 |
|
|
|
18675 |
|
|
|
18676 |
|
|
|
18677 |
|
|
|
18678 |
|
|
|
18679 |
|
|
|
18680 |
|
|
|
18681 |
|
|
|
18682 |
|
|
am__api_version='1.10'
|
18683 |
|
|
|
18684 |
|
|
# Find a good install program. We prefer a C program (faster),
|
18685 |
|
|
# so one script is as good as another. But avoid the broken or
|
18686 |
|
|
# incompatible versions:
|
18687 |
|
|
# SysV /etc/install, /usr/sbin/install
|
18688 |
|
|
# SunOS /usr/etc/install
|
18689 |
|
|
# IRIX /sbin/install
|
18690 |
|
|
# AIX /bin/install
|
18691 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
18692 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
18693 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
18694 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
18695 |
|
|
# OS/2's system install, which has a completely different semantic
|
18696 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
18697 |
|
|
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
18698 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
18699 |
|
|
if test -z "$INSTALL"; then
|
18700 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
18701 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18702 |
|
|
else
|
18703 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
18704 |
|
|
for as_dir in $PATH
|
18705 |
|
|
do
|
18706 |
|
|
IFS=$as_save_IFS
|
18707 |
|
|
test -z "$as_dir" && as_dir=.
|
18708 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
18709 |
|
|
case $as_dir/ in
|
18710 |
|
|
./ | .// | /cC/* | \
|
18711 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
18712 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
18713 |
|
|
/usr/ucb/* ) ;;
|
18714 |
|
|
*)
|
18715 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
18716 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
18717 |
|
|
# by default.
|
18718 |
|
|
for ac_prog in ginstall scoinst install; do
|
18719 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
18720 |
|
|
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
18721 |
|
|
if test $ac_prog = install &&
|
18722 |
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
18723 |
|
|
# AIX install. It has an incompatible calling convention.
|
18724 |
|
|
:
|
18725 |
|
|
elif test $ac_prog = install &&
|
18726 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
18727 |
|
|
# program-specific install script used by HP pwplus--don't use.
|
18728 |
|
|
:
|
18729 |
|
|
else
|
18730 |
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
18731 |
|
|
break 3
|
18732 |
|
|
fi
|
18733 |
|
|
fi
|
18734 |
|
|
done
|
18735 |
|
|
done
|
18736 |
|
|
;;
|
18737 |
|
|
esac
|
18738 |
|
|
done
|
18739 |
|
|
IFS=$as_save_IFS
|
18740 |
|
|
|
18741 |
|
|
|
18742 |
|
|
fi
|
18743 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
18744 |
|
|
INSTALL=$ac_cv_path_install
|
18745 |
|
|
else
|
18746 |
|
|
# As a last resort, use the slow shell script. Don't cache a
|
18747 |
|
|
# value for INSTALL within a source directory, because that will
|
18748 |
|
|
# break other packages using the cache if that directory is
|
18749 |
|
|
# removed, or if the value is a relative name.
|
18750 |
|
|
INSTALL=$ac_install_sh
|
18751 |
|
|
fi
|
18752 |
|
|
fi
|
18753 |
|
|
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
|
18754 |
|
|
echo "${ECHO_T}$INSTALL" >&6; }
|
18755 |
|
|
|
18756 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
18757 |
|
|
# It thinks the first close brace ends the variable substitution.
|
18758 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
18759 |
|
|
|
18760 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
18761 |
|
|
|
18762 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
18763 |
|
|
|
18764 |
|
|
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
18765 |
|
|
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
|
18766 |
|
|
# Just in case
|
18767 |
|
|
sleep 1
|
18768 |
|
|
echo timestamp > conftest.file
|
18769 |
|
|
# Do `set' in a subshell so we don't clobber the current shell's
|
18770 |
|
|
# arguments. Must try -L first in case configure is actually a
|
18771 |
|
|
# symlink; some systems play weird games with the mod time of symlinks
|
18772 |
|
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
18773 |
|
|
# directory).
|
18774 |
|
|
if (
|
18775 |
|
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
18776 |
|
|
if test "$*" = "X"; then
|
18777 |
|
|
# -L didn't work.
|
18778 |
|
|
set X `ls -t $srcdir/configure conftest.file`
|
18779 |
|
|
fi
|
18780 |
|
|
rm -f conftest.file
|
18781 |
|
|
if test "$*" != "X $srcdir/configure conftest.file" \
|
18782 |
|
|
&& test "$*" != "X conftest.file $srcdir/configure"; then
|
18783 |
|
|
|
18784 |
|
|
# If neither matched, then we have a broken ls. This can happen
|
18785 |
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
18786 |
|
|
# broken ls alias from the environment. This has actually
|
18787 |
|
|
# happened. Such a system could not be considered "sane".
|
18788 |
|
|
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
18789 |
|
|
alias in your environment" >&5
|
18790 |
|
|
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
18791 |
|
|
alias in your environment" >&2;}
|
18792 |
|
|
{ (exit 1); exit 1; }; }
|
18793 |
|
|
fi
|
18794 |
|
|
|
18795 |
|
|
test "$2" = conftest.file
|
18796 |
|
|
)
|
18797 |
|
|
then
|
18798 |
|
|
# Ok.
|
18799 |
|
|
:
|
18800 |
|
|
else
|
18801 |
|
|
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
18802 |
|
|
Check your system clock" >&5
|
18803 |
|
|
echo "$as_me: error: newly created file is older than distributed files!
|
18804 |
|
|
Check your system clock" >&2;}
|
18805 |
|
|
{ (exit 1); exit 1; }; }
|
18806 |
|
|
fi
|
18807 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
18808 |
|
|
echo "${ECHO_T}yes" >&6; }
|
18809 |
|
|
test "$program_prefix" != NONE &&
|
18810 |
|
|
program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
18811 |
|
|
# Use a double $ so make ignores it.
|
18812 |
|
|
test "$program_suffix" != NONE &&
|
18813 |
|
|
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
18814 |
|
|
# Double any \ or $. echo might interpret backslashes.
|
18815 |
|
|
# By default was `s,x,x', remove it if useless.
|
18816 |
|
|
cat <<\_ACEOF >conftest.sed
|
18817 |
|
|
s/[\\$]/&&/g;s/;s,x,x,$//
|
18818 |
|
|
_ACEOF
|
18819 |
|
|
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
18820 |
|
|
rm -f conftest.sed
|
18821 |
|
|
|
18822 |
|
|
# expand $ac_aux_dir to an absolute path
|
18823 |
|
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
18824 |
|
|
|
18825 |
|
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
18826 |
|
|
# Use eval to expand $SHELL
|
18827 |
|
|
if eval "$MISSING --run true"; then
|
18828 |
|
|
am_missing_run="$MISSING --run "
|
18829 |
|
|
else
|
18830 |
|
|
am_missing_run=
|
18831 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
18832 |
|
|
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
18833 |
|
|
fi
|
18834 |
|
|
|
18835 |
|
|
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
|
18836 |
|
|
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
|
18837 |
|
|
if test -z "$MKDIR_P"; then
|
18838 |
|
|
if test "${ac_cv_path_mkdir+set}" = set; then
|
18839 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18840 |
|
|
else
|
18841 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
18842 |
|
|
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
18843 |
|
|
do
|
18844 |
|
|
IFS=$as_save_IFS
|
18845 |
|
|
test -z "$as_dir" && as_dir=.
|
18846 |
|
|
for ac_prog in mkdir gmkdir; do
|
18847 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
18848 |
|
|
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
|
18849 |
|
|
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
18850 |
|
|
'mkdir (GNU coreutils) '* | \
|
18851 |
|
|
'mkdir (coreutils) '* | \
|
18852 |
|
|
'mkdir (fileutils) '4.1*)
|
18853 |
|
|
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
18854 |
|
|
break 3;;
|
18855 |
|
|
esac
|
18856 |
|
|
done
|
18857 |
|
|
done
|
18858 |
|
|
done
|
18859 |
|
|
IFS=$as_save_IFS
|
18860 |
|
|
|
18861 |
|
|
fi
|
18862 |
|
|
|
18863 |
|
|
if test "${ac_cv_path_mkdir+set}" = set; then
|
18864 |
|
|
MKDIR_P="$ac_cv_path_mkdir -p"
|
18865 |
|
|
else
|
18866 |
|
|
# As a last resort, use the slow shell script. Don't cache a
|
18867 |
|
|
# value for MKDIR_P within a source directory, because that will
|
18868 |
|
|
# break other packages using the cache if that directory is
|
18869 |
|
|
# removed, or if the value is a relative name.
|
18870 |
|
|
test -d ./--version && rmdir ./--version
|
18871 |
|
|
MKDIR_P="$ac_install_sh -d"
|
18872 |
|
|
fi
|
18873 |
|
|
fi
|
18874 |
|
|
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
|
18875 |
|
|
echo "${ECHO_T}$MKDIR_P" >&6; }
|
18876 |
|
|
|
18877 |
|
|
mkdir_p="$MKDIR_P"
|
18878 |
|
|
case $mkdir_p in
|
18879 |
|
|
[\\/$]* | ?:[\\/]*) ;;
|
18880 |
|
|
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
18881 |
|
|
esac
|
18882 |
|
|
|
18883 |
|
|
for ac_prog in gawk mawk nawk awk
|
18884 |
|
|
do
|
18885 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
18886 |
|
|
set dummy $ac_prog; ac_word=$2
|
18887 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
18888 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
18889 |
|
|
if test "${ac_cv_prog_AWK+set}" = set; then
|
18890 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18891 |
|
|
else
|
18892 |
|
|
if test -n "$AWK"; then
|
18893 |
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
18894 |
|
|
else
|
18895 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
18896 |
|
|
for as_dir in $PATH
|
18897 |
|
|
do
|
18898 |
|
|
IFS=$as_save_IFS
|
18899 |
|
|
test -z "$as_dir" && as_dir=.
|
18900 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
18901 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
18902 |
|
|
ac_cv_prog_AWK="$ac_prog"
|
18903 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
18904 |
|
|
break 2
|
18905 |
|
|
fi
|
18906 |
|
|
done
|
18907 |
|
|
done
|
18908 |
|
|
IFS=$as_save_IFS
|
18909 |
|
|
|
18910 |
|
|
fi
|
18911 |
|
|
fi
|
18912 |
|
|
AWK=$ac_cv_prog_AWK
|
18913 |
|
|
if test -n "$AWK"; then
|
18914 |
|
|
{ echo "$as_me:$LINENO: result: $AWK" >&5
|
18915 |
|
|
echo "${ECHO_T}$AWK" >&6; }
|
18916 |
|
|
else
|
18917 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
18918 |
|
|
echo "${ECHO_T}no" >&6; }
|
18919 |
|
|
fi
|
18920 |
|
|
|
18921 |
|
|
|
18922 |
|
|
test -n "$AWK" && break
|
18923 |
|
|
done
|
18924 |
|
|
|
18925 |
|
|
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
18926 |
|
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
18927 |
|
|
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
18928 |
|
|
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
18929 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
18930 |
|
|
else
|
18931 |
|
|
cat >conftest.make <<\_ACEOF
|
18932 |
|
|
SHELL = /bin/sh
|
18933 |
|
|
all:
|
18934 |
|
|
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
18935 |
|
|
_ACEOF
|
18936 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
18937 |
|
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
18938 |
|
|
*@@@%%%=?*=@@@%%%*)
|
18939 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
18940 |
|
|
*)
|
18941 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no;;
|
18942 |
|
|
esac
|
18943 |
|
|
rm -f conftest.make
|
18944 |
|
|
fi
|
18945 |
|
|
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
18946 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
18947 |
|
|
echo "${ECHO_T}yes" >&6; }
|
18948 |
|
|
SET_MAKE=
|
18949 |
|
|
else
|
18950 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
18951 |
|
|
echo "${ECHO_T}no" >&6; }
|
18952 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
18953 |
|
|
fi
|
18954 |
|
|
|
18955 |
|
|
rm -rf .tst 2>/dev/null
|
18956 |
|
|
mkdir .tst 2>/dev/null
|
18957 |
|
|
if test -d .tst; then
|
18958 |
|
|
am__leading_dot=.
|
18959 |
|
|
else
|
18960 |
|
|
am__leading_dot=_
|
18961 |
|
|
fi
|
18962 |
|
|
rmdir .tst 2>/dev/null
|
18963 |
|
|
|
18964 |
|
|
DEPDIR="${am__leading_dot}deps"
|
18965 |
|
|
|
18966 |
|
|
ac_config_commands="$ac_config_commands depfiles"
|
18967 |
|
|
|
18968 |
|
|
|
18969 |
|
|
am_make=${MAKE-make}
|
18970 |
|
|
cat > confinc << 'END'
|
18971 |
|
|
am__doit:
|
18972 |
|
|
@echo done
|
18973 |
|
|
.PHONY: am__doit
|
18974 |
|
|
END
|
18975 |
|
|
# If we don't find an include directive, just comment out the code.
|
18976 |
|
|
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
18977 |
|
|
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
|
18978 |
|
|
am__include="#"
|
18979 |
|
|
am__quote=
|
18980 |
|
|
_am_result=none
|
18981 |
|
|
# First try GNU make style include.
|
18982 |
|
|
echo "include confinc" > confmf
|
18983 |
|
|
# We grep out `Entering directory' and `Leaving directory'
|
18984 |
|
|
# messages which can occur if `w' ends up in MAKEFLAGS.
|
18985 |
|
|
# In particular we don't look at `^make:' because GNU make might
|
18986 |
|
|
# be invoked under some other name (usually "gmake"), in which
|
18987 |
|
|
# case it prints its new name instead of `make'.
|
18988 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
18989 |
|
|
am__include=include
|
18990 |
|
|
am__quote=
|
18991 |
|
|
_am_result=GNU
|
18992 |
|
|
fi
|
18993 |
|
|
# Now try BSD make style include.
|
18994 |
|
|
if test "$am__include" = "#"; then
|
18995 |
|
|
echo '.include "confinc"' > confmf
|
18996 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
18997 |
|
|
am__include=.include
|
18998 |
|
|
am__quote="\""
|
18999 |
|
|
_am_result=BSD
|
19000 |
|
|
fi
|
19001 |
|
|
fi
|
19002 |
|
|
|
19003 |
|
|
|
19004 |
|
|
{ echo "$as_me:$LINENO: result: $_am_result" >&5
|
19005 |
|
|
echo "${ECHO_T}$_am_result" >&6; }
|
19006 |
|
|
rm -f confinc confmf
|
19007 |
|
|
|
19008 |
|
|
# Check whether --enable-dependency-tracking was given.
|
19009 |
|
|
if test "${enable_dependency_tracking+set}" = set; then
|
19010 |
|
|
enableval=$enable_dependency_tracking;
|
19011 |
|
|
fi
|
19012 |
|
|
|
19013 |
|
|
if test "x$enable_dependency_tracking" != xno; then
|
19014 |
|
|
am_depcomp="$ac_aux_dir/depcomp"
|
19015 |
|
|
AMDEPBACKSLASH='\'
|
19016 |
|
|
fi
|
19017 |
|
|
if test "x$enable_dependency_tracking" != xno; then
|
19018 |
|
|
AMDEP_TRUE=
|
19019 |
|
|
AMDEP_FALSE='#'
|
19020 |
|
|
else
|
19021 |
|
|
AMDEP_TRUE='#'
|
19022 |
|
|
AMDEP_FALSE=
|
19023 |
|
|
fi
|
19024 |
|
|
|
19025 |
|
|
|
19026 |
|
|
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
19027 |
|
|
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
19028 |
|
|
# is not polluted with repeated "-I."
|
19029 |
|
|
am__isrc=' -I$(srcdir)'
|
19030 |
|
|
# test to see if srcdir already configured
|
19031 |
|
|
if test -f $srcdir/config.status; then
|
19032 |
|
|
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
19033 |
|
|
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
19034 |
|
|
{ (exit 1); exit 1; }; }
|
19035 |
|
|
fi
|
19036 |
|
|
fi
|
19037 |
|
|
|
19038 |
|
|
# test whether we have cygpath
|
19039 |
|
|
if test -z "$CYGPATH_W"; then
|
19040 |
|
|
if (cygpath --version) >/dev/null 2>/dev/null; then
|
19041 |
|
|
CYGPATH_W='cygpath -w'
|
19042 |
|
|
else
|
19043 |
|
|
CYGPATH_W=echo
|
19044 |
|
|
fi
|
19045 |
|
|
fi
|
19046 |
|
|
|
19047 |
|
|
|
19048 |
|
|
# Define the identity of the package.
|
19049 |
|
|
PACKAGE='or1ksim'
|
19050 |
|
|
VERSION='0.3.0'
|
19051 |
|
|
|
19052 |
|
|
|
19053 |
|
|
cat >>confdefs.h <<_ACEOF
|
19054 |
|
|
@%:@define PACKAGE "$PACKAGE"
|
19055 |
|
|
_ACEOF
|
19056 |
|
|
|
19057 |
|
|
|
19058 |
|
|
cat >>confdefs.h <<_ACEOF
|
19059 |
|
|
@%:@define VERSION "$VERSION"
|
19060 |
|
|
_ACEOF
|
19061 |
|
|
|
19062 |
|
|
# Some tools Automake needs.
|
19063 |
|
|
|
19064 |
|
|
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
19065 |
|
|
|
19066 |
|
|
|
19067 |
|
|
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
19068 |
|
|
|
19069 |
|
|
|
19070 |
|
|
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
19071 |
|
|
|
19072 |
|
|
|
19073 |
|
|
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
19074 |
|
|
|
19075 |
|
|
|
19076 |
|
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
19077 |
|
|
|
19078 |
|
|
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
19079 |
|
|
|
19080 |
|
|
# Installed binaries are usually stripped using `strip' when the user
|
19081 |
|
|
# run `make install-strip'. However `strip' might not be the right
|
19082 |
|
|
# tool to use in cross-compilation environments, therefore Automake
|
19083 |
|
|
# will honor the `STRIP' environment variable to overrule this program.
|
19084 |
|
|
if test "$cross_compiling" != no; then
|
19085 |
|
|
if test -n "$ac_tool_prefix"; then
|
19086 |
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
19087 |
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
19088 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19089 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19090 |
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
19091 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19092 |
|
|
else
|
19093 |
|
|
if test -n "$STRIP"; then
|
19094 |
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
19095 |
|
|
else
|
19096 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19097 |
|
|
for as_dir in $PATH
|
19098 |
|
|
do
|
19099 |
|
|
IFS=$as_save_IFS
|
19100 |
|
|
test -z "$as_dir" && as_dir=.
|
19101 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19102 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19103 |
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
19104 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19105 |
|
|
break 2
|
19106 |
|
|
fi
|
19107 |
|
|
done
|
19108 |
|
|
done
|
19109 |
|
|
IFS=$as_save_IFS
|
19110 |
|
|
|
19111 |
|
|
fi
|
19112 |
|
|
fi
|
19113 |
|
|
STRIP=$ac_cv_prog_STRIP
|
19114 |
|
|
if test -n "$STRIP"; then
|
19115 |
|
|
{ echo "$as_me:$LINENO: result: $STRIP" >&5
|
19116 |
|
|
echo "${ECHO_T}$STRIP" >&6; }
|
19117 |
|
|
else
|
19118 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19119 |
|
|
echo "${ECHO_T}no" >&6; }
|
19120 |
|
|
fi
|
19121 |
|
|
|
19122 |
|
|
|
19123 |
|
|
fi
|
19124 |
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
19125 |
|
|
ac_ct_STRIP=$STRIP
|
19126 |
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
19127 |
|
|
set dummy strip; ac_word=$2
|
19128 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19129 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19130 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
19131 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19132 |
|
|
else
|
19133 |
|
|
if test -n "$ac_ct_STRIP"; then
|
19134 |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
19135 |
|
|
else
|
19136 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19137 |
|
|
for as_dir in $PATH
|
19138 |
|
|
do
|
19139 |
|
|
IFS=$as_save_IFS
|
19140 |
|
|
test -z "$as_dir" && as_dir=.
|
19141 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19142 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19143 |
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
19144 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19145 |
|
|
break 2
|
19146 |
|
|
fi
|
19147 |
|
|
done
|
19148 |
|
|
done
|
19149 |
|
|
IFS=$as_save_IFS
|
19150 |
|
|
|
19151 |
|
|
fi
|
19152 |
|
|
fi
|
19153 |
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
19154 |
|
|
if test -n "$ac_ct_STRIP"; then
|
19155 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
19156 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
19157 |
|
|
else
|
19158 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19159 |
|
|
echo "${ECHO_T}no" >&6; }
|
19160 |
|
|
fi
|
19161 |
|
|
|
19162 |
|
|
if test "x$ac_ct_STRIP" = x; then
|
19163 |
|
|
STRIP=":"
|
19164 |
|
|
else
|
19165 |
|
|
case $cross_compiling:$ac_tool_warned in
|
19166 |
|
|
yes:)
|
19167 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
19168 |
|
|
whose name does not start with the host triplet. If you think this
|
19169 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
19170 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
19171 |
|
|
whose name does not start with the host triplet. If you think this
|
19172 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
19173 |
|
|
ac_tool_warned=yes ;;
|
19174 |
|
|
esac
|
19175 |
|
|
STRIP=$ac_ct_STRIP
|
19176 |
|
|
fi
|
19177 |
|
|
else
|
19178 |
|
|
STRIP="$ac_cv_prog_STRIP"
|
19179 |
|
|
fi
|
19180 |
|
|
|
19181 |
|
|
fi
|
19182 |
|
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
19183 |
|
|
|
19184 |
|
|
# We need awk for the "check" target. The system "awk" is bad on
|
19185 |
|
|
# some platforms.
|
19186 |
|
|
# Always define AMTAR for backward compatibility.
|
19187 |
|
|
|
19188 |
|
|
AMTAR=${AMTAR-"${am_missing_run}tar"}
|
19189 |
|
|
|
19190 |
|
|
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
19191 |
|
|
|
19192 |
|
|
|
19193 |
|
|
|
19194 |
|
|
|
19195 |
|
|
depcc="$CC" am_compiler_list=
|
19196 |
|
|
|
19197 |
|
|
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
19198 |
|
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
|
19199 |
|
|
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
19200 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19201 |
|
|
else
|
19202 |
|
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
19203 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up
|
19204 |
|
|
# making bogus files that we don't know about and never remove. For
|
19205 |
|
|
# instance it was reported that on HP-UX the gcc test will end up
|
19206 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
19207 |
|
|
# in D'.
|
19208 |
|
|
mkdir conftest.dir
|
19209 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
19210 |
|
|
# using a relative directory.
|
19211 |
|
|
cp "$am_depcomp" conftest.dir
|
19212 |
|
|
cd conftest.dir
|
19213 |
|
|
# We will build objects and dependencies in a subdirectory because
|
19214 |
|
|
# it helps to detect inapplicable dependency modes. For instance
|
19215 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
19216 |
|
|
# side effect of compilation, but ICC will put the dependencies in
|
19217 |
|
|
# the current directory while Tru64 will put them in the object
|
19218 |
|
|
# directory.
|
19219 |
|
|
mkdir sub
|
19220 |
|
|
|
19221 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
19222 |
|
|
if test "$am_compiler_list" = ""; then
|
19223 |
|
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
19224 |
|
|
fi
|
19225 |
|
|
for depmode in $am_compiler_list; do
|
19226 |
|
|
# Setup a source with many dependencies, because some compilers
|
19227 |
|
|
# like to wrap large dependency lists on column 80 (with \), and
|
19228 |
|
|
# we should not choose a depcomp mode which is confused by this.
|
19229 |
|
|
#
|
19230 |
|
|
# We need to recreate these files for each test, as the compiler may
|
19231 |
|
|
# overwrite some of them when testing with obscure command lines.
|
19232 |
|
|
# This happens at least with the AIX C compiler.
|
19233 |
|
|
: > sub/conftest.c
|
19234 |
|
|
for i in 1 2 3 4 5 6; do
|
19235 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
19236 |
|
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
19237 |
|
|
# Solaris 8's {/usr,}/bin/sh.
|
19238 |
|
|
touch sub/conftst$i.h
|
19239 |
|
|
done
|
19240 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
19241 |
|
|
|
19242 |
|
|
case $depmode in
|
19243 |
|
|
nosideeffect)
|
19244 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll
|
19245 |
|
|
# only be used when explicitly requested
|
19246 |
|
|
if test "x$enable_dependency_tracking" = xyes; then
|
19247 |
|
|
continue
|
19248 |
|
|
else
|
19249 |
|
|
break
|
19250 |
|
|
fi
|
19251 |
|
|
;;
|
19252 |
|
|
none) break ;;
|
19253 |
|
|
esac
|
19254 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
19255 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
19256 |
|
|
# handle `-M -o', and we need to detect this.
|
19257 |
|
|
if depmode=$depmode \
|
19258 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
19259 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
19260 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
19261 |
|
|
>/dev/null 2>conftest.err &&
|
19262 |
|
|
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
19263 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
19264 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
19265 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
19266 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings
|
19267 |
|
|
# or remarks (even with -Werror). So we grep stderr for any message
|
19268 |
|
|
# that says an option was ignored or not supported.
|
19269 |
|
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
19270 |
|
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
19271 |
|
|
# The diagnosis changed in icc 8.0:
|
19272 |
|
|
# icc: Command line remark: option '-MP' not supported
|
19273 |
|
|
if (grep 'ignoring option' conftest.err ||
|
19274 |
|
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
19275 |
|
|
am_cv_CC_dependencies_compiler_type=$depmode
|
19276 |
|
|
break
|
19277 |
|
|
fi
|
19278 |
|
|
fi
|
19279 |
|
|
done
|
19280 |
|
|
|
19281 |
|
|
cd ..
|
19282 |
|
|
rm -rf conftest.dir
|
19283 |
|
|
else
|
19284 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
19285 |
|
|
fi
|
19286 |
|
|
|
19287 |
|
|
fi
|
19288 |
|
|
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
19289 |
|
|
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
|
19290 |
|
|
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
19291 |
|
|
|
19292 |
|
|
if
|
19293 |
|
|
test "x$enable_dependency_tracking" != xno \
|
19294 |
|
|
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
19295 |
|
|
am__fastdepCC_TRUE=
|
19296 |
|
|
am__fastdepCC_FALSE='#'
|
19297 |
|
|
else
|
19298 |
|
|
am__fastdepCC_TRUE='#'
|
19299 |
|
|
am__fastdepCC_FALSE=
|
19300 |
|
|
fi
|
19301 |
|
|
|
19302 |
|
|
|
19303 |
|
|
depcc="$CXX" am_compiler_list=
|
19304 |
|
|
|
19305 |
|
|
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
19306 |
|
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
|
19307 |
|
|
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
|
19308 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19309 |
|
|
else
|
19310 |
|
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
19311 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up
|
19312 |
|
|
# making bogus files that we don't know about and never remove. For
|
19313 |
|
|
# instance it was reported that on HP-UX the gcc test will end up
|
19314 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
19315 |
|
|
# in D'.
|
19316 |
|
|
mkdir conftest.dir
|
19317 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
19318 |
|
|
# using a relative directory.
|
19319 |
|
|
cp "$am_depcomp" conftest.dir
|
19320 |
|
|
cd conftest.dir
|
19321 |
|
|
# We will build objects and dependencies in a subdirectory because
|
19322 |
|
|
# it helps to detect inapplicable dependency modes. For instance
|
19323 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
19324 |
|
|
# side effect of compilation, but ICC will put the dependencies in
|
19325 |
|
|
# the current directory while Tru64 will put them in the object
|
19326 |
|
|
# directory.
|
19327 |
|
|
mkdir sub
|
19328 |
|
|
|
19329 |
|
|
am_cv_CXX_dependencies_compiler_type=none
|
19330 |
|
|
if test "$am_compiler_list" = ""; then
|
19331 |
|
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
19332 |
|
|
fi
|
19333 |
|
|
for depmode in $am_compiler_list; do
|
19334 |
|
|
# Setup a source with many dependencies, because some compilers
|
19335 |
|
|
# like to wrap large dependency lists on column 80 (with \), and
|
19336 |
|
|
# we should not choose a depcomp mode which is confused by this.
|
19337 |
|
|
#
|
19338 |
|
|
# We need to recreate these files for each test, as the compiler may
|
19339 |
|
|
# overwrite some of them when testing with obscure command lines.
|
19340 |
|
|
# This happens at least with the AIX C compiler.
|
19341 |
|
|
: > sub/conftest.c
|
19342 |
|
|
for i in 1 2 3 4 5 6; do
|
19343 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
19344 |
|
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
19345 |
|
|
# Solaris 8's {/usr,}/bin/sh.
|
19346 |
|
|
touch sub/conftst$i.h
|
19347 |
|
|
done
|
19348 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
19349 |
|
|
|
19350 |
|
|
case $depmode in
|
19351 |
|
|
nosideeffect)
|
19352 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll
|
19353 |
|
|
# only be used when explicitly requested
|
19354 |
|
|
if test "x$enable_dependency_tracking" = xyes; then
|
19355 |
|
|
continue
|
19356 |
|
|
else
|
19357 |
|
|
break
|
19358 |
|
|
fi
|
19359 |
|
|
;;
|
19360 |
|
|
none) break ;;
|
19361 |
|
|
esac
|
19362 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
19363 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
19364 |
|
|
# handle `-M -o', and we need to detect this.
|
19365 |
|
|
if depmode=$depmode \
|
19366 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
19367 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
19368 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
19369 |
|
|
>/dev/null 2>conftest.err &&
|
19370 |
|
|
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
19371 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
19372 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
19373 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
19374 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings
|
19375 |
|
|
# or remarks (even with -Werror). So we grep stderr for any message
|
19376 |
|
|
# that says an option was ignored or not supported.
|
19377 |
|
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
19378 |
|
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
19379 |
|
|
# The diagnosis changed in icc 8.0:
|
19380 |
|
|
# icc: Command line remark: option '-MP' not supported
|
19381 |
|
|
if (grep 'ignoring option' conftest.err ||
|
19382 |
|
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
19383 |
|
|
am_cv_CXX_dependencies_compiler_type=$depmode
|
19384 |
|
|
break
|
19385 |
|
|
fi
|
19386 |
|
|
fi
|
19387 |
|
|
done
|
19388 |
|
|
|
19389 |
|
|
cd ..
|
19390 |
|
|
rm -rf conftest.dir
|
19391 |
|
|
else
|
19392 |
|
|
am_cv_CXX_dependencies_compiler_type=none
|
19393 |
|
|
fi
|
19394 |
|
|
|
19395 |
|
|
fi
|
19396 |
|
|
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
19397 |
|
|
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
|
19398 |
|
|
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
19399 |
|
|
|
19400 |
|
|
if
|
19401 |
|
|
test "x$enable_dependency_tracking" != xno \
|
19402 |
|
|
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
19403 |
|
|
am__fastdepCXX_TRUE=
|
19404 |
|
|
am__fastdepCXX_FALSE='#'
|
19405 |
|
|
else
|
19406 |
|
|
am__fastdepCXX_TRUE='#'
|
19407 |
|
|
am__fastdepCXX_FALSE=
|
19408 |
|
|
fi
|
19409 |
|
|
|
19410 |
|
|
|
19411 |
|
|
|
19412 |
|
|
ac_config_headers="$ac_config_headers config.h"
|
19413 |
|
|
|
19414 |
|
|
|
19415 |
|
|
|
19416 |
|
|
|
19417 |
|
|
# make sure we are using a recent autoconf version
|
19418 |
|
|
|
19419 |
|
|
|
19420 |
|
|
# yuck
|
19421 |
|
|
case "$target_cpu" in
|
19422 |
|
|
or32*) CPU_ARCH=or32;
|
19423 |
|
|
ARCH_ISA=OR32;;
|
19424 |
|
|
dlx*) CPU_ARCH=dlx;
|
19425 |
|
|
ARCH_ISA=DLX;;
|
19426 |
|
|
*) { { echo "$as_me:$LINENO: error: Unknown target architechture $target_cpu" >&5
|
19427 |
|
|
echo "$as_me: error: Unknown target architechture $target_cpu" >&2;}
|
19428 |
|
|
{ (exit 1); exit 1; }; };;
|
19429 |
|
|
esac
|
19430 |
|
|
|
19431 |
|
|
|
19432 |
|
|
# We want these before the checks, so the checks can modify their values.
|
19433 |
|
|
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
|
19434 |
|
|
|
19435 |
|
|
ac_ext=c
|
19436 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
19437 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
19438 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
19439 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
19440 |
|
|
if test -n "$ac_tool_prefix"; then
|
19441 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
19442 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
19443 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19444 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19445 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19446 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19447 |
|
|
else
|
19448 |
|
|
if test -n "$CC"; then
|
19449 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19450 |
|
|
else
|
19451 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19452 |
|
|
for as_dir in $PATH
|
19453 |
|
|
do
|
19454 |
|
|
IFS=$as_save_IFS
|
19455 |
|
|
test -z "$as_dir" && as_dir=.
|
19456 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19457 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19458 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
19459 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19460 |
|
|
break 2
|
19461 |
|
|
fi
|
19462 |
|
|
done
|
19463 |
|
|
done
|
19464 |
|
|
IFS=$as_save_IFS
|
19465 |
|
|
|
19466 |
|
|
fi
|
19467 |
|
|
fi
|
19468 |
|
|
CC=$ac_cv_prog_CC
|
19469 |
|
|
if test -n "$CC"; then
|
19470 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19471 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19472 |
|
|
else
|
19473 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19474 |
|
|
echo "${ECHO_T}no" >&6; }
|
19475 |
|
|
fi
|
19476 |
|
|
|
19477 |
|
|
|
19478 |
|
|
fi
|
19479 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
19480 |
|
|
ac_ct_CC=$CC
|
19481 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
19482 |
|
|
set dummy gcc; ac_word=$2
|
19483 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19484 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19485 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
19486 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19487 |
|
|
else
|
19488 |
|
|
if test -n "$ac_ct_CC"; then
|
19489 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
19490 |
|
|
else
|
19491 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19492 |
|
|
for as_dir in $PATH
|
19493 |
|
|
do
|
19494 |
|
|
IFS=$as_save_IFS
|
19495 |
|
|
test -z "$as_dir" && as_dir=.
|
19496 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19497 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19498 |
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
19499 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19500 |
|
|
break 2
|
19501 |
|
|
fi
|
19502 |
|
|
done
|
19503 |
|
|
done
|
19504 |
|
|
IFS=$as_save_IFS
|
19505 |
|
|
|
19506 |
|
|
fi
|
19507 |
|
|
fi
|
19508 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
19509 |
|
|
if test -n "$ac_ct_CC"; then
|
19510 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
19511 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
19512 |
|
|
else
|
19513 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19514 |
|
|
echo "${ECHO_T}no" >&6; }
|
19515 |
|
|
fi
|
19516 |
|
|
|
19517 |
|
|
if test "x$ac_ct_CC" = x; then
|
19518 |
|
|
CC=""
|
19519 |
|
|
else
|
19520 |
|
|
case $cross_compiling:$ac_tool_warned in
|
19521 |
|
|
yes:)
|
19522 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
19523 |
|
|
whose name does not start with the host triplet. If you think this
|
19524 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
19525 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
19526 |
|
|
whose name does not start with the host triplet. If you think this
|
19527 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
19528 |
|
|
ac_tool_warned=yes ;;
|
19529 |
|
|
esac
|
19530 |
|
|
CC=$ac_ct_CC
|
19531 |
|
|
fi
|
19532 |
|
|
else
|
19533 |
|
|
CC="$ac_cv_prog_CC"
|
19534 |
|
|
fi
|
19535 |
|
|
|
19536 |
|
|
if test -z "$CC"; then
|
19537 |
|
|
if test -n "$ac_tool_prefix"; then
|
19538 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
19539 |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
19540 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19541 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19542 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19543 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19544 |
|
|
else
|
19545 |
|
|
if test -n "$CC"; then
|
19546 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19547 |
|
|
else
|
19548 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19549 |
|
|
for as_dir in $PATH
|
19550 |
|
|
do
|
19551 |
|
|
IFS=$as_save_IFS
|
19552 |
|
|
test -z "$as_dir" && as_dir=.
|
19553 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19554 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19555 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
19556 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19557 |
|
|
break 2
|
19558 |
|
|
fi
|
19559 |
|
|
done
|
19560 |
|
|
done
|
19561 |
|
|
IFS=$as_save_IFS
|
19562 |
|
|
|
19563 |
|
|
fi
|
19564 |
|
|
fi
|
19565 |
|
|
CC=$ac_cv_prog_CC
|
19566 |
|
|
if test -n "$CC"; then
|
19567 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19568 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19569 |
|
|
else
|
19570 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19571 |
|
|
echo "${ECHO_T}no" >&6; }
|
19572 |
|
|
fi
|
19573 |
|
|
|
19574 |
|
|
|
19575 |
|
|
fi
|
19576 |
|
|
fi
|
19577 |
|
|
if test -z "$CC"; then
|
19578 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
19579 |
|
|
set dummy cc; ac_word=$2
|
19580 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19581 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19582 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19583 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19584 |
|
|
else
|
19585 |
|
|
if test -n "$CC"; then
|
19586 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19587 |
|
|
else
|
19588 |
|
|
ac_prog_rejected=no
|
19589 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19590 |
|
|
for as_dir in $PATH
|
19591 |
|
|
do
|
19592 |
|
|
IFS=$as_save_IFS
|
19593 |
|
|
test -z "$as_dir" && as_dir=.
|
19594 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19595 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19596 |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
19597 |
|
|
ac_prog_rejected=yes
|
19598 |
|
|
continue
|
19599 |
|
|
fi
|
19600 |
|
|
ac_cv_prog_CC="cc"
|
19601 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19602 |
|
|
break 2
|
19603 |
|
|
fi
|
19604 |
|
|
done
|
19605 |
|
|
done
|
19606 |
|
|
IFS=$as_save_IFS
|
19607 |
|
|
|
19608 |
|
|
if test $ac_prog_rejected = yes; then
|
19609 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
19610 |
|
|
set dummy $ac_cv_prog_CC
|
19611 |
|
|
shift
|
19612 |
|
|
if test $@%:@ != 0; then
|
19613 |
|
|
# We chose a different compiler from the bogus one.
|
19614 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
19615 |
|
|
# first if we set CC to just the basename; use the full file name.
|
19616 |
|
|
shift
|
19617 |
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
19618 |
|
|
fi
|
19619 |
|
|
fi
|
19620 |
|
|
fi
|
19621 |
|
|
fi
|
19622 |
|
|
CC=$ac_cv_prog_CC
|
19623 |
|
|
if test -n "$CC"; then
|
19624 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19625 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19626 |
|
|
else
|
19627 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19628 |
|
|
echo "${ECHO_T}no" >&6; }
|
19629 |
|
|
fi
|
19630 |
|
|
|
19631 |
|
|
|
19632 |
|
|
fi
|
19633 |
|
|
if test -z "$CC"; then
|
19634 |
|
|
if test -n "$ac_tool_prefix"; then
|
19635 |
|
|
for ac_prog in cl.exe
|
19636 |
|
|
do
|
19637 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
19638 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
19639 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19640 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19641 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
19642 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19643 |
|
|
else
|
19644 |
|
|
if test -n "$CC"; then
|
19645 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
19646 |
|
|
else
|
19647 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19648 |
|
|
for as_dir in $PATH
|
19649 |
|
|
do
|
19650 |
|
|
IFS=$as_save_IFS
|
19651 |
|
|
test -z "$as_dir" && as_dir=.
|
19652 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19653 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19654 |
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
19655 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19656 |
|
|
break 2
|
19657 |
|
|
fi
|
19658 |
|
|
done
|
19659 |
|
|
done
|
19660 |
|
|
IFS=$as_save_IFS
|
19661 |
|
|
|
19662 |
|
|
fi
|
19663 |
|
|
fi
|
19664 |
|
|
CC=$ac_cv_prog_CC
|
19665 |
|
|
if test -n "$CC"; then
|
19666 |
|
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
19667 |
|
|
echo "${ECHO_T}$CC" >&6; }
|
19668 |
|
|
else
|
19669 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19670 |
|
|
echo "${ECHO_T}no" >&6; }
|
19671 |
|
|
fi
|
19672 |
|
|
|
19673 |
|
|
|
19674 |
|
|
test -n "$CC" && break
|
19675 |
|
|
done
|
19676 |
|
|
fi
|
19677 |
|
|
if test -z "$CC"; then
|
19678 |
|
|
ac_ct_CC=$CC
|
19679 |
|
|
for ac_prog in cl.exe
|
19680 |
|
|
do
|
19681 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
19682 |
|
|
set dummy $ac_prog; ac_word=$2
|
19683 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
19684 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
19685 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
19686 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19687 |
|
|
else
|
19688 |
|
|
if test -n "$ac_ct_CC"; then
|
19689 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
19690 |
|
|
else
|
19691 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
19692 |
|
|
for as_dir in $PATH
|
19693 |
|
|
do
|
19694 |
|
|
IFS=$as_save_IFS
|
19695 |
|
|
test -z "$as_dir" && as_dir=.
|
19696 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
19697 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
19698 |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
19699 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
19700 |
|
|
break 2
|
19701 |
|
|
fi
|
19702 |
|
|
done
|
19703 |
|
|
done
|
19704 |
|
|
IFS=$as_save_IFS
|
19705 |
|
|
|
19706 |
|
|
fi
|
19707 |
|
|
fi
|
19708 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
19709 |
|
|
if test -n "$ac_ct_CC"; then
|
19710 |
|
|
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
19711 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
19712 |
|
|
else
|
19713 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
19714 |
|
|
echo "${ECHO_T}no" >&6; }
|
19715 |
|
|
fi
|
19716 |
|
|
|
19717 |
|
|
|
19718 |
|
|
test -n "$ac_ct_CC" && break
|
19719 |
|
|
done
|
19720 |
|
|
|
19721 |
|
|
if test "x$ac_ct_CC" = x; then
|
19722 |
|
|
CC=""
|
19723 |
|
|
else
|
19724 |
|
|
case $cross_compiling:$ac_tool_warned in
|
19725 |
|
|
yes:)
|
19726 |
|
|
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
19727 |
|
|
whose name does not start with the host triplet. If you think this
|
19728 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
19729 |
|
|
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
19730 |
|
|
whose name does not start with the host triplet. If you think this
|
19731 |
|
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
19732 |
|
|
ac_tool_warned=yes ;;
|
19733 |
|
|
esac
|
19734 |
|
|
CC=$ac_ct_CC
|
19735 |
|
|
fi
|
19736 |
|
|
fi
|
19737 |
|
|
|
19738 |
|
|
fi
|
19739 |
|
|
|
19740 |
|
|
|
19741 |
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
19742 |
|
|
See \`config.log' for more details." >&5
|
19743 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
19744 |
|
|
See \`config.log' for more details." >&2;}
|
19745 |
|
|
{ (exit 1); exit 1; }; }
|
19746 |
|
|
|
19747 |
|
|
# Provide some information about the compiler.
|
19748 |
|
|
echo "$as_me:$LINENO: checking for C compiler version" >&5
|
19749 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
19750 |
|
|
{ (ac_try="$ac_compiler --version >&5"
|
19751 |
|
|
case "(($ac_try" in
|
19752 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19753 |
|
|
*) ac_try_echo=$ac_try;;
|
19754 |
|
|
esac
|
19755 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19756 |
|
|
(eval "$ac_compiler --version >&5") 2>&5
|
19757 |
|
|
ac_status=$?
|
19758 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19759 |
|
|
(exit $ac_status); }
|
19760 |
|
|
{ (ac_try="$ac_compiler -v >&5"
|
19761 |
|
|
case "(($ac_try" in
|
19762 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19763 |
|
|
*) ac_try_echo=$ac_try;;
|
19764 |
|
|
esac
|
19765 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19766 |
|
|
(eval "$ac_compiler -v >&5") 2>&5
|
19767 |
|
|
ac_status=$?
|
19768 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19769 |
|
|
(exit $ac_status); }
|
19770 |
|
|
{ (ac_try="$ac_compiler -V >&5"
|
19771 |
|
|
case "(($ac_try" in
|
19772 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19773 |
|
|
*) ac_try_echo=$ac_try;;
|
19774 |
|
|
esac
|
19775 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19776 |
|
|
(eval "$ac_compiler -V >&5") 2>&5
|
19777 |
|
|
ac_status=$?
|
19778 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19779 |
|
|
(exit $ac_status); }
|
19780 |
|
|
|
19781 |
|
|
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
19782 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
19783 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
19784 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19785 |
|
|
else
|
19786 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19787 |
|
|
/* confdefs.h. */
|
19788 |
|
|
_ACEOF
|
19789 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19790 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19791 |
|
|
/* end confdefs.h. */
|
19792 |
|
|
|
19793 |
|
|
int
|
19794 |
|
|
main ()
|
19795 |
|
|
{
|
19796 |
|
|
#ifndef __GNUC__
|
19797 |
|
|
choke me
|
19798 |
|
|
#endif
|
19799 |
|
|
|
19800 |
|
|
;
|
19801 |
|
|
return 0;
|
19802 |
|
|
}
|
19803 |
|
|
_ACEOF
|
19804 |
|
|
rm -f conftest.$ac_objext
|
19805 |
|
|
if { (ac_try="$ac_compile"
|
19806 |
|
|
case "(($ac_try" in
|
19807 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19808 |
|
|
*) ac_try_echo=$ac_try;;
|
19809 |
|
|
esac
|
19810 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19811 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19812 |
|
|
ac_status=$?
|
19813 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19814 |
|
|
rm -f conftest.er1
|
19815 |
|
|
cat conftest.err >&5
|
19816 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19817 |
|
|
(exit $ac_status); } && {
|
19818 |
|
|
test -z "$ac_c_werror_flag" ||
|
19819 |
|
|
test ! -s conftest.err
|
19820 |
|
|
} && test -s conftest.$ac_objext; then
|
19821 |
|
|
ac_compiler_gnu=yes
|
19822 |
|
|
else
|
19823 |
|
|
echo "$as_me: failed program was:" >&5
|
19824 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19825 |
|
|
|
19826 |
|
|
ac_compiler_gnu=no
|
19827 |
|
|
fi
|
19828 |
|
|
|
19829 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19830 |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
19831 |
|
|
|
19832 |
|
|
fi
|
19833 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
19834 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
19835 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
19836 |
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
19837 |
|
|
ac_save_CFLAGS=$CFLAGS
|
19838 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
19839 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
19840 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
19841 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19842 |
|
|
else
|
19843 |
|
|
ac_save_c_werror_flag=$ac_c_werror_flag
|
19844 |
|
|
ac_c_werror_flag=yes
|
19845 |
|
|
ac_cv_prog_cc_g=no
|
19846 |
|
|
CFLAGS="-g"
|
19847 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19848 |
|
|
/* confdefs.h. */
|
19849 |
|
|
_ACEOF
|
19850 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19851 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19852 |
|
|
/* end confdefs.h. */
|
19853 |
|
|
|
19854 |
|
|
int
|
19855 |
|
|
main ()
|
19856 |
|
|
{
|
19857 |
|
|
|
19858 |
|
|
;
|
19859 |
|
|
return 0;
|
19860 |
|
|
}
|
19861 |
|
|
_ACEOF
|
19862 |
|
|
rm -f conftest.$ac_objext
|
19863 |
|
|
if { (ac_try="$ac_compile"
|
19864 |
|
|
case "(($ac_try" in
|
19865 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19866 |
|
|
*) ac_try_echo=$ac_try;;
|
19867 |
|
|
esac
|
19868 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19869 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19870 |
|
|
ac_status=$?
|
19871 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19872 |
|
|
rm -f conftest.er1
|
19873 |
|
|
cat conftest.err >&5
|
19874 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19875 |
|
|
(exit $ac_status); } && {
|
19876 |
|
|
test -z "$ac_c_werror_flag" ||
|
19877 |
|
|
test ! -s conftest.err
|
19878 |
|
|
} && test -s conftest.$ac_objext; then
|
19879 |
|
|
ac_cv_prog_cc_g=yes
|
19880 |
|
|
else
|
19881 |
|
|
echo "$as_me: failed program was:" >&5
|
19882 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19883 |
|
|
|
19884 |
|
|
CFLAGS=""
|
19885 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19886 |
|
|
/* confdefs.h. */
|
19887 |
|
|
_ACEOF
|
19888 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19889 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19890 |
|
|
/* end confdefs.h. */
|
19891 |
|
|
|
19892 |
|
|
int
|
19893 |
|
|
main ()
|
19894 |
|
|
{
|
19895 |
|
|
|
19896 |
|
|
;
|
19897 |
|
|
return 0;
|
19898 |
|
|
}
|
19899 |
|
|
_ACEOF
|
19900 |
|
|
rm -f conftest.$ac_objext
|
19901 |
|
|
if { (ac_try="$ac_compile"
|
19902 |
|
|
case "(($ac_try" in
|
19903 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19904 |
|
|
*) ac_try_echo=$ac_try;;
|
19905 |
|
|
esac
|
19906 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19907 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19908 |
|
|
ac_status=$?
|
19909 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19910 |
|
|
rm -f conftest.er1
|
19911 |
|
|
cat conftest.err >&5
|
19912 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19913 |
|
|
(exit $ac_status); } && {
|
19914 |
|
|
test -z "$ac_c_werror_flag" ||
|
19915 |
|
|
test ! -s conftest.err
|
19916 |
|
|
} && test -s conftest.$ac_objext; then
|
19917 |
|
|
:
|
19918 |
|
|
else
|
19919 |
|
|
echo "$as_me: failed program was:" >&5
|
19920 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19921 |
|
|
|
19922 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
19923 |
|
|
CFLAGS="-g"
|
19924 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19925 |
|
|
/* confdefs.h. */
|
19926 |
|
|
_ACEOF
|
19927 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
19928 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
19929 |
|
|
/* end confdefs.h. */
|
19930 |
|
|
|
19931 |
|
|
int
|
19932 |
|
|
main ()
|
19933 |
|
|
{
|
19934 |
|
|
|
19935 |
|
|
;
|
19936 |
|
|
return 0;
|
19937 |
|
|
}
|
19938 |
|
|
_ACEOF
|
19939 |
|
|
rm -f conftest.$ac_objext
|
19940 |
|
|
if { (ac_try="$ac_compile"
|
19941 |
|
|
case "(($ac_try" in
|
19942 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19943 |
|
|
*) ac_try_echo=$ac_try;;
|
19944 |
|
|
esac
|
19945 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
19946 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
19947 |
|
|
ac_status=$?
|
19948 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
19949 |
|
|
rm -f conftest.er1
|
19950 |
|
|
cat conftest.err >&5
|
19951 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19952 |
|
|
(exit $ac_status); } && {
|
19953 |
|
|
test -z "$ac_c_werror_flag" ||
|
19954 |
|
|
test ! -s conftest.err
|
19955 |
|
|
} && test -s conftest.$ac_objext; then
|
19956 |
|
|
ac_cv_prog_cc_g=yes
|
19957 |
|
|
else
|
19958 |
|
|
echo "$as_me: failed program was:" >&5
|
19959 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
19960 |
|
|
|
19961 |
|
|
|
19962 |
|
|
fi
|
19963 |
|
|
|
19964 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19965 |
|
|
fi
|
19966 |
|
|
|
19967 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19968 |
|
|
fi
|
19969 |
|
|
|
19970 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19971 |
|
|
ac_c_werror_flag=$ac_save_c_werror_flag
|
19972 |
|
|
fi
|
19973 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
19974 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
19975 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
19976 |
|
|
CFLAGS=$ac_save_CFLAGS
|
19977 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
19978 |
|
|
if test "$GCC" = yes; then
|
19979 |
|
|
CFLAGS="-g -O2"
|
19980 |
|
|
else
|
19981 |
|
|
CFLAGS="-g"
|
19982 |
|
|
fi
|
19983 |
|
|
else
|
19984 |
|
|
if test "$GCC" = yes; then
|
19985 |
|
|
CFLAGS="-O2"
|
19986 |
|
|
else
|
19987 |
|
|
CFLAGS=
|
19988 |
|
|
fi
|
19989 |
|
|
fi
|
19990 |
|
|
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
19991 |
|
|
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
19992 |
|
|
if test "${ac_cv_prog_cc_c89+set}" = set; then
|
19993 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
19994 |
|
|
else
|
19995 |
|
|
ac_cv_prog_cc_c89=no
|
19996 |
|
|
ac_save_CC=$CC
|
19997 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
19998 |
|
|
/* confdefs.h. */
|
19999 |
|
|
_ACEOF
|
20000 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20001 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20002 |
|
|
/* end confdefs.h. */
|
20003 |
|
|
#include
|
20004 |
|
|
#include
|
20005 |
|
|
#include
|
20006 |
|
|
#include
|
20007 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
20008 |
|
|
struct buf { int x; };
|
20009 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
20010 |
|
|
static char *e (p, i)
|
20011 |
|
|
char **p;
|
20012 |
|
|
int i;
|
20013 |
|
|
{
|
20014 |
|
|
return p[i];
|
20015 |
|
|
}
|
20016 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
20017 |
|
|
{
|
20018 |
|
|
char *s;
|
20019 |
|
|
va_list v;
|
20020 |
|
|
va_start (v,p);
|
20021 |
|
|
s = g (p, va_arg (v,int));
|
20022 |
|
|
va_end (v);
|
20023 |
|
|
return s;
|
20024 |
|
|
}
|
20025 |
|
|
|
20026 |
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
20027 |
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
20028 |
|
|
These don't provoke an error unfortunately, instead are silently treated
|
20029 |
|
|
as 'x'. The following induces an error, until -std is added to get
|
20030 |
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
20031 |
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
20032 |
|
|
that's true only with -std. */
|
20033 |
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
20034 |
|
|
|
20035 |
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
20036 |
|
|
inside strings and character constants. */
|
20037 |
|
|
#define FOO(x) 'x'
|
20038 |
|
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
20039 |
|
|
|
20040 |
|
|
int test (int i, double x);
|
20041 |
|
|
struct s1 {int (*f) (int a);};
|
20042 |
|
|
struct s2 {int (*f) (double a);};
|
20043 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
20044 |
|
|
int argc;
|
20045 |
|
|
char **argv;
|
20046 |
|
|
int
|
20047 |
|
|
main ()
|
20048 |
|
|
{
|
20049 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
20050 |
|
|
;
|
20051 |
|
|
return 0;
|
20052 |
|
|
}
|
20053 |
|
|
_ACEOF
|
20054 |
|
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
20055 |
|
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
20056 |
|
|
do
|
20057 |
|
|
CC="$ac_save_CC $ac_arg"
|
20058 |
|
|
rm -f conftest.$ac_objext
|
20059 |
|
|
if { (ac_try="$ac_compile"
|
20060 |
|
|
case "(($ac_try" in
|
20061 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20062 |
|
|
*) ac_try_echo=$ac_try;;
|
20063 |
|
|
esac
|
20064 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20065 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20066 |
|
|
ac_status=$?
|
20067 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20068 |
|
|
rm -f conftest.er1
|
20069 |
|
|
cat conftest.err >&5
|
20070 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20071 |
|
|
(exit $ac_status); } && {
|
20072 |
|
|
test -z "$ac_c_werror_flag" ||
|
20073 |
|
|
test ! -s conftest.err
|
20074 |
|
|
} && test -s conftest.$ac_objext; then
|
20075 |
|
|
ac_cv_prog_cc_c89=$ac_arg
|
20076 |
|
|
else
|
20077 |
|
|
echo "$as_me: failed program was:" >&5
|
20078 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20079 |
|
|
|
20080 |
|
|
|
20081 |
|
|
fi
|
20082 |
|
|
|
20083 |
|
|
rm -f core conftest.err conftest.$ac_objext
|
20084 |
|
|
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
20085 |
|
|
done
|
20086 |
|
|
rm -f conftest.$ac_ext
|
20087 |
|
|
CC=$ac_save_CC
|
20088 |
|
|
|
20089 |
|
|
fi
|
20090 |
|
|
# AC_CACHE_VAL
|
20091 |
|
|
case "x$ac_cv_prog_cc_c89" in
|
20092 |
|
|
x)
|
20093 |
|
|
{ echo "$as_me:$LINENO: result: none needed" >&5
|
20094 |
|
|
echo "${ECHO_T}none needed" >&6; } ;;
|
20095 |
|
|
xno)
|
20096 |
|
|
{ echo "$as_me:$LINENO: result: unsupported" >&5
|
20097 |
|
|
echo "${ECHO_T}unsupported" >&6; } ;;
|
20098 |
|
|
*)
|
20099 |
|
|
CC="$CC $ac_cv_prog_cc_c89"
|
20100 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
20101 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
20102 |
|
|
esac
|
20103 |
|
|
|
20104 |
|
|
|
20105 |
|
|
ac_ext=c
|
20106 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
20107 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
20108 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
20109 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
20110 |
|
|
|
20111 |
|
|
if test "x$CC" != xcc; then
|
20112 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
|
20113 |
|
|
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
|
20114 |
|
|
else
|
20115 |
|
|
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
|
20116 |
|
|
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
|
20117 |
|
|
fi
|
20118 |
|
|
set dummy $CC; ac_cc=`echo $2 |
|
20119 |
|
|
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
20120 |
|
|
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
|
20121 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20122 |
|
|
else
|
20123 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20124 |
|
|
/* confdefs.h. */
|
20125 |
|
|
_ACEOF
|
20126 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20127 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20128 |
|
|
/* end confdefs.h. */
|
20129 |
|
|
|
20130 |
|
|
int
|
20131 |
|
|
main ()
|
20132 |
|
|
{
|
20133 |
|
|
|
20134 |
|
|
;
|
20135 |
|
|
return 0;
|
20136 |
|
|
}
|
20137 |
|
|
_ACEOF
|
20138 |
|
|
# Make sure it works both with $CC and with simple cc.
|
20139 |
|
|
# We do the test twice because some compilers refuse to overwrite an
|
20140 |
|
|
# existing .o file with -o, though they will create one.
|
20141 |
|
|
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
|
20142 |
|
|
rm -f conftest2.*
|
20143 |
|
|
if { (case "(($ac_try" in
|
20144 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20145 |
|
|
*) ac_try_echo=$ac_try;;
|
20146 |
|
|
esac
|
20147 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20148 |
|
|
(eval "$ac_try") 2>&5
|
20149 |
|
|
ac_status=$?
|
20150 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20151 |
|
|
(exit $ac_status); } &&
|
20152 |
|
|
test -f conftest2.$ac_objext && { (case "(($ac_try" in
|
20153 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20154 |
|
|
*) ac_try_echo=$ac_try;;
|
20155 |
|
|
esac
|
20156 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20157 |
|
|
(eval "$ac_try") 2>&5
|
20158 |
|
|
ac_status=$?
|
20159 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20160 |
|
|
(exit $ac_status); };
|
20161 |
|
|
then
|
20162 |
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
|
20163 |
|
|
if test "x$CC" != xcc; then
|
20164 |
|
|
# Test first that cc exists at all.
|
20165 |
|
|
if { ac_try='cc -c conftest.$ac_ext >&5'
|
20166 |
|
|
{ (case "(($ac_try" in
|
20167 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20168 |
|
|
*) ac_try_echo=$ac_try;;
|
20169 |
|
|
esac
|
20170 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20171 |
|
|
(eval "$ac_try") 2>&5
|
20172 |
|
|
ac_status=$?
|
20173 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20174 |
|
|
(exit $ac_status); }; }; then
|
20175 |
|
|
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
|
20176 |
|
|
rm -f conftest2.*
|
20177 |
|
|
if { (case "(($ac_try" in
|
20178 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20179 |
|
|
*) ac_try_echo=$ac_try;;
|
20180 |
|
|
esac
|
20181 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20182 |
|
|
(eval "$ac_try") 2>&5
|
20183 |
|
|
ac_status=$?
|
20184 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20185 |
|
|
(exit $ac_status); } &&
|
20186 |
|
|
test -f conftest2.$ac_objext && { (case "(($ac_try" in
|
20187 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20188 |
|
|
*) ac_try_echo=$ac_try;;
|
20189 |
|
|
esac
|
20190 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20191 |
|
|
(eval "$ac_try") 2>&5
|
20192 |
|
|
ac_status=$?
|
20193 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20194 |
|
|
(exit $ac_status); };
|
20195 |
|
|
then
|
20196 |
|
|
# cc works too.
|
20197 |
|
|
:
|
20198 |
|
|
else
|
20199 |
|
|
# cc exists but doesn't like -o.
|
20200 |
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
20201 |
|
|
fi
|
20202 |
|
|
fi
|
20203 |
|
|
fi
|
20204 |
|
|
else
|
20205 |
|
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no
|
20206 |
|
|
fi
|
20207 |
|
|
rm -f core conftest*
|
20208 |
|
|
|
20209 |
|
|
fi
|
20210 |
|
|
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
|
20211 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
20212 |
|
|
echo "${ECHO_T}yes" >&6; }
|
20213 |
|
|
else
|
20214 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
20215 |
|
|
echo "${ECHO_T}no" >&6; }
|
20216 |
|
|
|
20217 |
|
|
cat >>confdefs.h <<\_ACEOF
|
20218 |
|
|
@%:@define NO_MINUS_C_MINUS_O 1
|
20219 |
|
|
_ACEOF
|
20220 |
|
|
|
20221 |
|
|
fi
|
20222 |
|
|
|
20223 |
|
|
# FIXME: we rely on the cache variable name because
|
20224 |
|
|
# there is no other way.
|
20225 |
|
|
set dummy $CC
|
20226 |
|
|
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
|
20227 |
|
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
|
20228 |
|
|
# Losing compiler, so override with the script.
|
20229 |
|
|
# FIXME: It is wrong to rewrite CC.
|
20230 |
|
|
# But if we don't then we get into trouble of one sort or another.
|
20231 |
|
|
# A longer-term fix would be to have automake use am__CC in this case,
|
20232 |
|
|
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
20233 |
|
|
CC="$am_aux_dir/compile $CC"
|
20234 |
|
|
fi
|
20235 |
|
|
|
20236 |
|
|
|
20237 |
|
|
|
20238 |
|
|
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
20239 |
|
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
20240 |
|
|
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
20241 |
|
|
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
20242 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20243 |
|
|
else
|
20244 |
|
|
cat >conftest.make <<\_ACEOF
|
20245 |
|
|
SHELL = /bin/sh
|
20246 |
|
|
all:
|
20247 |
|
|
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
20248 |
|
|
_ACEOF
|
20249 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
20250 |
|
|
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
20251 |
|
|
*@@@%%%=?*=@@@%%%*)
|
20252 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
20253 |
|
|
*)
|
20254 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no;;
|
20255 |
|
|
esac
|
20256 |
|
|
rm -f conftest.make
|
20257 |
|
|
fi
|
20258 |
|
|
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
20259 |
|
|
{ echo "$as_me:$LINENO: result: yes" >&5
|
20260 |
|
|
echo "${ECHO_T}yes" >&6; }
|
20261 |
|
|
SET_MAKE=
|
20262 |
|
|
else
|
20263 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
20264 |
|
|
echo "${ECHO_T}no" >&6; }
|
20265 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
20266 |
|
|
fi
|
20267 |
|
|
|
20268 |
|
|
|
20269 |
|
|
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
|
20270 |
|
|
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
|
20271 |
|
|
|
20272 |
|
|
if test $ac_cv_c_compiler_gnu = yes; then
|
20273 |
|
|
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
20274 |
|
|
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
|
20275 |
|
|
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
20276 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20277 |
|
|
else
|
20278 |
|
|
ac_pattern="Autoconf.*'x'"
|
20279 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20280 |
|
|
/* confdefs.h. */
|
20281 |
|
|
_ACEOF
|
20282 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20283 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20284 |
|
|
/* end confdefs.h. */
|
20285 |
|
|
#include
|
20286 |
|
|
Autoconf TIOCGETP
|
20287 |
|
|
_ACEOF
|
20288 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
20289 |
|
|
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
20290 |
|
|
ac_cv_prog_gcc_traditional=yes
|
20291 |
|
|
else
|
20292 |
|
|
ac_cv_prog_gcc_traditional=no
|
20293 |
|
|
fi
|
20294 |
|
|
rm -f conftest*
|
20295 |
|
|
|
20296 |
|
|
|
20297 |
|
|
if test $ac_cv_prog_gcc_traditional = no; then
|
20298 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20299 |
|
|
/* confdefs.h. */
|
20300 |
|
|
_ACEOF
|
20301 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20302 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20303 |
|
|
/* end confdefs.h. */
|
20304 |
|
|
#include
|
20305 |
|
|
Autoconf TCGETA
|
20306 |
|
|
_ACEOF
|
20307 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
20308 |
|
|
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
20309 |
|
|
ac_cv_prog_gcc_traditional=yes
|
20310 |
|
|
fi
|
20311 |
|
|
rm -f conftest*
|
20312 |
|
|
|
20313 |
|
|
fi
|
20314 |
|
|
fi
|
20315 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
20316 |
|
|
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
|
20317 |
|
|
if test $ac_cv_prog_gcc_traditional = yes; then
|
20318 |
|
|
CC="$CC -traditional"
|
20319 |
|
|
fi
|
20320 |
|
|
fi
|
20321 |
|
|
|
20322 |
|
|
# Find a good install program. We prefer a C program (faster),
|
20323 |
|
|
# so one script is as good as another. But avoid the broken or
|
20324 |
|
|
# incompatible versions:
|
20325 |
|
|
# SysV /etc/install, /usr/sbin/install
|
20326 |
|
|
# SunOS /usr/etc/install
|
20327 |
|
|
# IRIX /sbin/install
|
20328 |
|
|
# AIX /bin/install
|
20329 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
20330 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
20331 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
20332 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
20333 |
|
|
# OS/2's system install, which has a completely different semantic
|
20334 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
20335 |
|
|
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
20336 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
20337 |
|
|
if test -z "$INSTALL"; then
|
20338 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
20339 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20340 |
|
|
else
|
20341 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
20342 |
|
|
for as_dir in $PATH
|
20343 |
|
|
do
|
20344 |
|
|
IFS=$as_save_IFS
|
20345 |
|
|
test -z "$as_dir" && as_dir=.
|
20346 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
20347 |
|
|
case $as_dir/ in
|
20348 |
|
|
./ | .// | /cC/* | \
|
20349 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
20350 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
20351 |
|
|
/usr/ucb/* ) ;;
|
20352 |
|
|
*)
|
20353 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
20354 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
20355 |
|
|
# by default.
|
20356 |
|
|
for ac_prog in ginstall scoinst install; do
|
20357 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
20358 |
|
|
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
20359 |
|
|
if test $ac_prog = install &&
|
20360 |
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
20361 |
|
|
# AIX install. It has an incompatible calling convention.
|
20362 |
|
|
:
|
20363 |
|
|
elif test $ac_prog = install &&
|
20364 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
20365 |
|
|
# program-specific install script used by HP pwplus--don't use.
|
20366 |
|
|
:
|
20367 |
|
|
else
|
20368 |
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
20369 |
|
|
break 3
|
20370 |
|
|
fi
|
20371 |
|
|
fi
|
20372 |
|
|
done
|
20373 |
|
|
done
|
20374 |
|
|
;;
|
20375 |
|
|
esac
|
20376 |
|
|
done
|
20377 |
|
|
IFS=$as_save_IFS
|
20378 |
|
|
|
20379 |
|
|
|
20380 |
|
|
fi
|
20381 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
20382 |
|
|
INSTALL=$ac_cv_path_install
|
20383 |
|
|
else
|
20384 |
|
|
# As a last resort, use the slow shell script. Don't cache a
|
20385 |
|
|
# value for INSTALL within a source directory, because that will
|
20386 |
|
|
# break other packages using the cache if that directory is
|
20387 |
|
|
# removed, or if the value is a relative name.
|
20388 |
|
|
INSTALL=$ac_install_sh
|
20389 |
|
|
fi
|
20390 |
|
|
fi
|
20391 |
|
|
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
|
20392 |
|
|
echo "${ECHO_T}$INSTALL" >&6; }
|
20393 |
|
|
|
20394 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
20395 |
|
|
# It thinks the first close brace ends the variable substitution.
|
20396 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
20397 |
|
|
|
20398 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
20399 |
|
|
|
20400 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
20401 |
|
|
|
20402 |
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
20403 |
|
|
set dummy ar; ac_word=$2
|
20404 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
20405 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
20406 |
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
20407 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20408 |
|
|
else
|
20409 |
|
|
if test -n "$AR"; then
|
20410 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
20411 |
|
|
else
|
20412 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
20413 |
|
|
for as_dir in $PATH
|
20414 |
|
|
do
|
20415 |
|
|
IFS=$as_save_IFS
|
20416 |
|
|
test -z "$as_dir" && as_dir=.
|
20417 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
20418 |
|
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
20419 |
|
|
ac_cv_prog_AR="ar"
|
20420 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
20421 |
|
|
break 2
|
20422 |
|
|
fi
|
20423 |
|
|
done
|
20424 |
|
|
done
|
20425 |
|
|
IFS=$as_save_IFS
|
20426 |
|
|
|
20427 |
|
|
fi
|
20428 |
|
|
fi
|
20429 |
|
|
AR=$ac_cv_prog_AR
|
20430 |
|
|
if test -n "$AR"; then
|
20431 |
|
|
{ echo "$as_me:$LINENO: result: $AR" >&5
|
20432 |
|
|
echo "${ECHO_T}$AR" >&6; }
|
20433 |
|
|
else
|
20434 |
|
|
{ echo "$as_me:$LINENO: result: no" >&5
|
20435 |
|
|
echo "${ECHO_T}no" >&6; }
|
20436 |
|
|
fi
|
20437 |
|
|
|
20438 |
|
|
|
20439 |
|
|
# Set default for ARFLAGS, since autoconf does not have a macro for it.
|
20440 |
|
|
# This allows people to set it when running configure or make
|
20441 |
|
|
test -n "$ARFLAGS" || ARFLAGS="cr"
|
20442 |
|
|
|
20443 |
|
|
MAKE_SHELL=/bin/sh
|
20444 |
|
|
|
20445 |
|
|
|
20446 |
|
|
|
20447 |
|
|
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
20448 |
|
|
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
20449 |
|
|
if test "${ac_cv_type_signal+set}" = set; then
|
20450 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20451 |
|
|
else
|
20452 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20453 |
|
|
/* confdefs.h. */
|
20454 |
|
|
_ACEOF
|
20455 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20456 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20457 |
|
|
/* end confdefs.h. */
|
20458 |
|
|
#include
|
20459 |
|
|
#include
|
20460 |
|
|
|
20461 |
|
|
int
|
20462 |
|
|
main ()
|
20463 |
|
|
{
|
20464 |
|
|
return *(signal (0, 0)) (0) == 1;
|
20465 |
|
|
;
|
20466 |
|
|
return 0;
|
20467 |
|
|
}
|
20468 |
|
|
_ACEOF
|
20469 |
|
|
rm -f conftest.$ac_objext
|
20470 |
|
|
if { (ac_try="$ac_compile"
|
20471 |
|
|
case "(($ac_try" in
|
20472 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20473 |
|
|
*) ac_try_echo=$ac_try;;
|
20474 |
|
|
esac
|
20475 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20476 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20477 |
|
|
ac_status=$?
|
20478 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20479 |
|
|
rm -f conftest.er1
|
20480 |
|
|
cat conftest.err >&5
|
20481 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20482 |
|
|
(exit $ac_status); } && {
|
20483 |
|
|
test -z "$ac_c_werror_flag" ||
|
20484 |
|
|
test ! -s conftest.err
|
20485 |
|
|
} && test -s conftest.$ac_objext; then
|
20486 |
|
|
ac_cv_type_signal=int
|
20487 |
|
|
else
|
20488 |
|
|
echo "$as_me: failed program was:" >&5
|
20489 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20490 |
|
|
|
20491 |
|
|
ac_cv_type_signal=void
|
20492 |
|
|
fi
|
20493 |
|
|
|
20494 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20495 |
|
|
fi
|
20496 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
20497 |
|
|
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
20498 |
|
|
|
20499 |
|
|
cat >>confdefs.h <<_ACEOF
|
20500 |
|
|
@%:@define RETSIGTYPE $ac_cv_type_signal
|
20501 |
|
|
_ACEOF
|
20502 |
|
|
|
20503 |
|
|
|
20504 |
|
|
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
|
20505 |
|
|
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
|
20506 |
|
|
if test "${ac_cv_header_stat_broken+set}" = set; then
|
20507 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20508 |
|
|
else
|
20509 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20510 |
|
|
/* confdefs.h. */
|
20511 |
|
|
_ACEOF
|
20512 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20513 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20514 |
|
|
/* end confdefs.h. */
|
20515 |
|
|
#include
|
20516 |
|
|
#include
|
20517 |
|
|
|
20518 |
|
|
#if defined S_ISBLK && defined S_IFDIR
|
20519 |
|
|
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
|
20520 |
|
|
#endif
|
20521 |
|
|
|
20522 |
|
|
#if defined S_ISBLK && defined S_IFCHR
|
20523 |
|
|
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
|
20524 |
|
|
#endif
|
20525 |
|
|
|
20526 |
|
|
#if defined S_ISLNK && defined S_IFREG
|
20527 |
|
|
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
|
20528 |
|
|
#endif
|
20529 |
|
|
|
20530 |
|
|
#if defined S_ISSOCK && defined S_IFREG
|
20531 |
|
|
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
|
20532 |
|
|
#endif
|
20533 |
|
|
|
20534 |
|
|
_ACEOF
|
20535 |
|
|
rm -f conftest.$ac_objext
|
20536 |
|
|
if { (ac_try="$ac_compile"
|
20537 |
|
|
case "(($ac_try" in
|
20538 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20539 |
|
|
*) ac_try_echo=$ac_try;;
|
20540 |
|
|
esac
|
20541 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20542 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20543 |
|
|
ac_status=$?
|
20544 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20545 |
|
|
rm -f conftest.er1
|
20546 |
|
|
cat conftest.err >&5
|
20547 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20548 |
|
|
(exit $ac_status); } && {
|
20549 |
|
|
test -z "$ac_c_werror_flag" ||
|
20550 |
|
|
test ! -s conftest.err
|
20551 |
|
|
} && test -s conftest.$ac_objext; then
|
20552 |
|
|
ac_cv_header_stat_broken=no
|
20553 |
|
|
else
|
20554 |
|
|
echo "$as_me: failed program was:" >&5
|
20555 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20556 |
|
|
|
20557 |
|
|
ac_cv_header_stat_broken=yes
|
20558 |
|
|
fi
|
20559 |
|
|
|
20560 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20561 |
|
|
fi
|
20562 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
|
20563 |
|
|
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
|
20564 |
|
|
if test $ac_cv_header_stat_broken = yes; then
|
20565 |
|
|
|
20566 |
|
|
cat >>confdefs.h <<\_ACEOF
|
20567 |
|
|
@%:@define STAT_MACROS_BROKEN 1
|
20568 |
|
|
_ACEOF
|
20569 |
|
|
|
20570 |
|
|
fi
|
20571 |
|
|
|
20572 |
|
|
|
20573 |
|
|
|
20574 |
|
|
|
20575 |
|
|
|
20576 |
|
|
|
20577 |
|
|
ac_header_dirent=no
|
20578 |
|
|
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
20579 |
|
|
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
20580 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
20581 |
|
|
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
20582 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
20583 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20584 |
|
|
else
|
20585 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20586 |
|
|
/* confdefs.h. */
|
20587 |
|
|
_ACEOF
|
20588 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20589 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20590 |
|
|
/* end confdefs.h. */
|
20591 |
|
|
#include
|
20592 |
|
|
#include <$ac_hdr>
|
20593 |
|
|
|
20594 |
|
|
int
|
20595 |
|
|
main ()
|
20596 |
|
|
{
|
20597 |
|
|
if ((DIR *) 0)
|
20598 |
|
|
return 0;
|
20599 |
|
|
;
|
20600 |
|
|
return 0;
|
20601 |
|
|
}
|
20602 |
|
|
_ACEOF
|
20603 |
|
|
rm -f conftest.$ac_objext
|
20604 |
|
|
if { (ac_try="$ac_compile"
|
20605 |
|
|
case "(($ac_try" in
|
20606 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20607 |
|
|
*) ac_try_echo=$ac_try;;
|
20608 |
|
|
esac
|
20609 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20610 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
20611 |
|
|
ac_status=$?
|
20612 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20613 |
|
|
rm -f conftest.er1
|
20614 |
|
|
cat conftest.err >&5
|
20615 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20616 |
|
|
(exit $ac_status); } && {
|
20617 |
|
|
test -z "$ac_c_werror_flag" ||
|
20618 |
|
|
test ! -s conftest.err
|
20619 |
|
|
} && test -s conftest.$ac_objext; then
|
20620 |
|
|
eval "$as_ac_Header=yes"
|
20621 |
|
|
else
|
20622 |
|
|
echo "$as_me: failed program was:" >&5
|
20623 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20624 |
|
|
|
20625 |
|
|
eval "$as_ac_Header=no"
|
20626 |
|
|
fi
|
20627 |
|
|
|
20628 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20629 |
|
|
fi
|
20630 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
20631 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
20632 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
20633 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
20634 |
|
|
cat >>confdefs.h <<_ACEOF
|
20635 |
|
|
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
20636 |
|
|
_ACEOF
|
20637 |
|
|
|
20638 |
|
|
ac_header_dirent=$ac_hdr; break
|
20639 |
|
|
fi
|
20640 |
|
|
|
20641 |
|
|
done
|
20642 |
|
|
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
20643 |
|
|
if test $ac_header_dirent = dirent.h; then
|
20644 |
|
|
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
20645 |
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
20646 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20647 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20648 |
|
|
else
|
20649 |
|
|
ac_func_search_save_LIBS=$LIBS
|
20650 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20651 |
|
|
/* confdefs.h. */
|
20652 |
|
|
_ACEOF
|
20653 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20654 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20655 |
|
|
/* end confdefs.h. */
|
20656 |
|
|
|
20657 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20658 |
|
|
Use char because int might match the return type of a GCC
|
20659 |
|
|
builtin and then its argument prototype would still apply. */
|
20660 |
|
|
#ifdef __cplusplus
|
20661 |
|
|
extern "C"
|
20662 |
|
|
#endif
|
20663 |
|
|
char opendir ();
|
20664 |
|
|
int
|
20665 |
|
|
main ()
|
20666 |
|
|
{
|
20667 |
|
|
return opendir ();
|
20668 |
|
|
;
|
20669 |
|
|
return 0;
|
20670 |
|
|
}
|
20671 |
|
|
_ACEOF
|
20672 |
|
|
for ac_lib in '' dir; do
|
20673 |
|
|
if test -z "$ac_lib"; then
|
20674 |
|
|
ac_res="none required"
|
20675 |
|
|
else
|
20676 |
|
|
ac_res=-l$ac_lib
|
20677 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
20678 |
|
|
fi
|
20679 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
20680 |
|
|
if { (ac_try="$ac_link"
|
20681 |
|
|
case "(($ac_try" in
|
20682 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20683 |
|
|
*) ac_try_echo=$ac_try;;
|
20684 |
|
|
esac
|
20685 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20686 |
|
|
(eval "$ac_link") 2>conftest.er1
|
20687 |
|
|
ac_status=$?
|
20688 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20689 |
|
|
rm -f conftest.er1
|
20690 |
|
|
cat conftest.err >&5
|
20691 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20692 |
|
|
(exit $ac_status); } && {
|
20693 |
|
|
test -z "$ac_c_werror_flag" ||
|
20694 |
|
|
test ! -s conftest.err
|
20695 |
|
|
} && test -s conftest$ac_exeext &&
|
20696 |
|
|
$as_test_x conftest$ac_exeext; then
|
20697 |
|
|
ac_cv_search_opendir=$ac_res
|
20698 |
|
|
else
|
20699 |
|
|
echo "$as_me: failed program was:" >&5
|
20700 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20701 |
|
|
|
20702 |
|
|
|
20703 |
|
|
fi
|
20704 |
|
|
|
20705 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20706 |
|
|
conftest$ac_exeext
|
20707 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20708 |
|
|
break
|
20709 |
|
|
fi
|
20710 |
|
|
done
|
20711 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20712 |
|
|
:
|
20713 |
|
|
else
|
20714 |
|
|
ac_cv_search_opendir=no
|
20715 |
|
|
fi
|
20716 |
|
|
rm conftest.$ac_ext
|
20717 |
|
|
LIBS=$ac_func_search_save_LIBS
|
20718 |
|
|
fi
|
20719 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
20720 |
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
20721 |
|
|
ac_res=$ac_cv_search_opendir
|
20722 |
|
|
if test "$ac_res" != no; then
|
20723 |
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
20724 |
|
|
|
20725 |
|
|
fi
|
20726 |
|
|
|
20727 |
|
|
else
|
20728 |
|
|
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
20729 |
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
20730 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20731 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20732 |
|
|
else
|
20733 |
|
|
ac_func_search_save_LIBS=$LIBS
|
20734 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20735 |
|
|
/* confdefs.h. */
|
20736 |
|
|
_ACEOF
|
20737 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20738 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20739 |
|
|
/* end confdefs.h. */
|
20740 |
|
|
|
20741 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20742 |
|
|
Use char because int might match the return type of a GCC
|
20743 |
|
|
builtin and then its argument prototype would still apply. */
|
20744 |
|
|
#ifdef __cplusplus
|
20745 |
|
|
extern "C"
|
20746 |
|
|
#endif
|
20747 |
|
|
char opendir ();
|
20748 |
|
|
int
|
20749 |
|
|
main ()
|
20750 |
|
|
{
|
20751 |
|
|
return opendir ();
|
20752 |
|
|
;
|
20753 |
|
|
return 0;
|
20754 |
|
|
}
|
20755 |
|
|
_ACEOF
|
20756 |
|
|
for ac_lib in '' x; do
|
20757 |
|
|
if test -z "$ac_lib"; then
|
20758 |
|
|
ac_res="none required"
|
20759 |
|
|
else
|
20760 |
|
|
ac_res=-l$ac_lib
|
20761 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
20762 |
|
|
fi
|
20763 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
20764 |
|
|
if { (ac_try="$ac_link"
|
20765 |
|
|
case "(($ac_try" in
|
20766 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20767 |
|
|
*) ac_try_echo=$ac_try;;
|
20768 |
|
|
esac
|
20769 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20770 |
|
|
(eval "$ac_link") 2>conftest.er1
|
20771 |
|
|
ac_status=$?
|
20772 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20773 |
|
|
rm -f conftest.er1
|
20774 |
|
|
cat conftest.err >&5
|
20775 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20776 |
|
|
(exit $ac_status); } && {
|
20777 |
|
|
test -z "$ac_c_werror_flag" ||
|
20778 |
|
|
test ! -s conftest.err
|
20779 |
|
|
} && test -s conftest$ac_exeext &&
|
20780 |
|
|
$as_test_x conftest$ac_exeext; then
|
20781 |
|
|
ac_cv_search_opendir=$ac_res
|
20782 |
|
|
else
|
20783 |
|
|
echo "$as_me: failed program was:" >&5
|
20784 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20785 |
|
|
|
20786 |
|
|
|
20787 |
|
|
fi
|
20788 |
|
|
|
20789 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20790 |
|
|
conftest$ac_exeext
|
20791 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20792 |
|
|
break
|
20793 |
|
|
fi
|
20794 |
|
|
done
|
20795 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
20796 |
|
|
:
|
20797 |
|
|
else
|
20798 |
|
|
ac_cv_search_opendir=no
|
20799 |
|
|
fi
|
20800 |
|
|
rm conftest.$ac_ext
|
20801 |
|
|
LIBS=$ac_func_search_save_LIBS
|
20802 |
|
|
fi
|
20803 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
20804 |
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
20805 |
|
|
ac_res=$ac_cv_search_opendir
|
20806 |
|
|
if test "$ac_res" != no; then
|
20807 |
|
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
20808 |
|
|
|
20809 |
|
|
fi
|
20810 |
|
|
|
20811 |
|
|
fi
|
20812 |
|
|
|
20813 |
|
|
|
20814 |
|
|
|
20815 |
|
|
|
20816 |
|
|
|
20817 |
|
|
|
20818 |
|
|
|
20819 |
|
|
|
20820 |
|
|
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
|
20821 |
|
|
do
|
20822 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
20823 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
20824 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
20825 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
20826 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20827 |
|
|
else
|
20828 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20829 |
|
|
/* confdefs.h. */
|
20830 |
|
|
_ACEOF
|
20831 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20832 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20833 |
|
|
/* end confdefs.h. */
|
20834 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
20835 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
20836 |
|
|
#define $ac_func innocuous_$ac_func
|
20837 |
|
|
|
20838 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
20839 |
|
|
which can conflict with char $ac_func (); below.
|
20840 |
|
|
Prefer to if __STDC__ is defined, since
|
20841 |
|
|
exists even on freestanding compilers. */
|
20842 |
|
|
|
20843 |
|
|
#ifdef __STDC__
|
20844 |
|
|
# include
|
20845 |
|
|
#else
|
20846 |
|
|
# include
|
20847 |
|
|
#endif
|
20848 |
|
|
|
20849 |
|
|
#undef $ac_func
|
20850 |
|
|
|
20851 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20852 |
|
|
Use char because int might match the return type of a GCC
|
20853 |
|
|
builtin and then its argument prototype would still apply. */
|
20854 |
|
|
#ifdef __cplusplus
|
20855 |
|
|
extern "C"
|
20856 |
|
|
#endif
|
20857 |
|
|
char $ac_func ();
|
20858 |
|
|
/* The GNU C library defines this for functions which it implements
|
20859 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
20860 |
|
|
something starting with __ and the normal name is an alias. */
|
20861 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func
|
20862 |
|
|
choke me
|
20863 |
|
|
#endif
|
20864 |
|
|
|
20865 |
|
|
int
|
20866 |
|
|
main ()
|
20867 |
|
|
{
|
20868 |
|
|
return $ac_func ();
|
20869 |
|
|
;
|
20870 |
|
|
return 0;
|
20871 |
|
|
}
|
20872 |
|
|
_ACEOF
|
20873 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
20874 |
|
|
if { (ac_try="$ac_link"
|
20875 |
|
|
case "(($ac_try" in
|
20876 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20877 |
|
|
*) ac_try_echo=$ac_try;;
|
20878 |
|
|
esac
|
20879 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20880 |
|
|
(eval "$ac_link") 2>conftest.er1
|
20881 |
|
|
ac_status=$?
|
20882 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20883 |
|
|
rm -f conftest.er1
|
20884 |
|
|
cat conftest.err >&5
|
20885 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20886 |
|
|
(exit $ac_status); } && {
|
20887 |
|
|
test -z "$ac_c_werror_flag" ||
|
20888 |
|
|
test ! -s conftest.err
|
20889 |
|
|
} && test -s conftest$ac_exeext &&
|
20890 |
|
|
$as_test_x conftest$ac_exeext; then
|
20891 |
|
|
eval "$as_ac_var=yes"
|
20892 |
|
|
else
|
20893 |
|
|
echo "$as_me: failed program was:" >&5
|
20894 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20895 |
|
|
|
20896 |
|
|
eval "$as_ac_var=no"
|
20897 |
|
|
fi
|
20898 |
|
|
|
20899 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20900 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
20901 |
|
|
fi
|
20902 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
20903 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
20904 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
20905 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
20906 |
|
|
cat >>confdefs.h <<_ACEOF
|
20907 |
|
|
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
20908 |
|
|
_ACEOF
|
20909 |
|
|
|
20910 |
|
|
fi
|
20911 |
|
|
done
|
20912 |
|
|
|
20913 |
|
|
|
20914 |
|
|
|
20915 |
|
|
|
20916 |
|
|
|
20917 |
|
|
|
20918 |
|
|
|
20919 |
|
|
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
|
20920 |
|
|
do
|
20921 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
20922 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
20923 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
20924 |
|
|
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
20925 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20926 |
|
|
else
|
20927 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
20928 |
|
|
/* confdefs.h. */
|
20929 |
|
|
_ACEOF
|
20930 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
20931 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
20932 |
|
|
/* end confdefs.h. */
|
20933 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
20934 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
20935 |
|
|
#define $ac_func innocuous_$ac_func
|
20936 |
|
|
|
20937 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
20938 |
|
|
which can conflict with char $ac_func (); below.
|
20939 |
|
|
Prefer to if __STDC__ is defined, since
|
20940 |
|
|
exists even on freestanding compilers. */
|
20941 |
|
|
|
20942 |
|
|
#ifdef __STDC__
|
20943 |
|
|
# include
|
20944 |
|
|
#else
|
20945 |
|
|
# include
|
20946 |
|
|
#endif
|
20947 |
|
|
|
20948 |
|
|
#undef $ac_func
|
20949 |
|
|
|
20950 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
20951 |
|
|
Use char because int might match the return type of a GCC
|
20952 |
|
|
builtin and then its argument prototype would still apply. */
|
20953 |
|
|
#ifdef __cplusplus
|
20954 |
|
|
extern "C"
|
20955 |
|
|
#endif
|
20956 |
|
|
char $ac_func ();
|
20957 |
|
|
/* The GNU C library defines this for functions which it implements
|
20958 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
20959 |
|
|
something starting with __ and the normal name is an alias. */
|
20960 |
|
|
#if defined __stub_$ac_func || defined __stub___$ac_func
|
20961 |
|
|
choke me
|
20962 |
|
|
#endif
|
20963 |
|
|
|
20964 |
|
|
int
|
20965 |
|
|
main ()
|
20966 |
|
|
{
|
20967 |
|
|
return $ac_func ();
|
20968 |
|
|
;
|
20969 |
|
|
return 0;
|
20970 |
|
|
}
|
20971 |
|
|
_ACEOF
|
20972 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
20973 |
|
|
if { (ac_try="$ac_link"
|
20974 |
|
|
case "(($ac_try" in
|
20975 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20976 |
|
|
*) ac_try_echo=$ac_try;;
|
20977 |
|
|
esac
|
20978 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
20979 |
|
|
(eval "$ac_link") 2>conftest.er1
|
20980 |
|
|
ac_status=$?
|
20981 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
20982 |
|
|
rm -f conftest.er1
|
20983 |
|
|
cat conftest.err >&5
|
20984 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20985 |
|
|
(exit $ac_status); } && {
|
20986 |
|
|
test -z "$ac_c_werror_flag" ||
|
20987 |
|
|
test ! -s conftest.err
|
20988 |
|
|
} && test -s conftest$ac_exeext &&
|
20989 |
|
|
$as_test_x conftest$ac_exeext; then
|
20990 |
|
|
eval "$as_ac_var=yes"
|
20991 |
|
|
else
|
20992 |
|
|
echo "$as_me: failed program was:" >&5
|
20993 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
20994 |
|
|
|
20995 |
|
|
eval "$as_ac_var=no"
|
20996 |
|
|
fi
|
20997 |
|
|
|
20998 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20999 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
21000 |
|
|
fi
|
21001 |
|
|
ac_res=`eval echo '${'$as_ac_var'}'`
|
21002 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
21003 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
21004 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
21005 |
|
|
cat >>confdefs.h <<_ACEOF
|
21006 |
|
|
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
21007 |
|
|
_ACEOF
|
21008 |
|
|
|
21009 |
|
|
fi
|
21010 |
|
|
done
|
21011 |
|
|
|
21012 |
|
|
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
|
21013 |
|
|
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
|
21014 |
|
|
if test "${ac_cv_func_strcoll_works+set}" = set; then
|
21015 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21016 |
|
|
else
|
21017 |
|
|
if test "$cross_compiling" = yes; then
|
21018 |
|
|
ac_cv_func_strcoll_works=no
|
21019 |
|
|
else
|
21020 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21021 |
|
|
/* confdefs.h. */
|
21022 |
|
|
_ACEOF
|
21023 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21024 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21025 |
|
|
/* end confdefs.h. */
|
21026 |
|
|
$ac_includes_default
|
21027 |
|
|
int
|
21028 |
|
|
main ()
|
21029 |
|
|
{
|
21030 |
|
|
return (strcoll ("abc", "def") >= 0 ||
|
21031 |
|
|
strcoll ("ABC", "DEF") >= 0 ||
|
21032 |
|
|
strcoll ("123", "456") >= 0)
|
21033 |
|
|
;
|
21034 |
|
|
return 0;
|
21035 |
|
|
}
|
21036 |
|
|
_ACEOF
|
21037 |
|
|
rm -f conftest$ac_exeext
|
21038 |
|
|
if { (ac_try="$ac_link"
|
21039 |
|
|
case "(($ac_try" in
|
21040 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21041 |
|
|
*) ac_try_echo=$ac_try;;
|
21042 |
|
|
esac
|
21043 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21044 |
|
|
(eval "$ac_link") 2>&5
|
21045 |
|
|
ac_status=$?
|
21046 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21047 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
21048 |
|
|
{ (case "(($ac_try" in
|
21049 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21050 |
|
|
*) ac_try_echo=$ac_try;;
|
21051 |
|
|
esac
|
21052 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21053 |
|
|
(eval "$ac_try") 2>&5
|
21054 |
|
|
ac_status=$?
|
21055 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21056 |
|
|
(exit $ac_status); }; }; then
|
21057 |
|
|
ac_cv_func_strcoll_works=yes
|
21058 |
|
|
else
|
21059 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
21060 |
|
|
echo "$as_me: failed program was:" >&5
|
21061 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21062 |
|
|
|
21063 |
|
|
( exit $ac_status )
|
21064 |
|
|
ac_cv_func_strcoll_works=no
|
21065 |
|
|
fi
|
21066 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
21067 |
|
|
fi
|
21068 |
|
|
|
21069 |
|
|
|
21070 |
|
|
fi
|
21071 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
|
21072 |
|
|
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
|
21073 |
|
|
if test $ac_cv_func_strcoll_works = yes; then
|
21074 |
|
|
|
21075 |
|
|
cat >>confdefs.h <<\_ACEOF
|
21076 |
|
|
@%:@define HAVE_STRCOLL 1
|
21077 |
|
|
_ACEOF
|
21078 |
|
|
|
21079 |
|
|
fi
|
21080 |
|
|
|
21081 |
|
|
|
21082 |
|
|
|
21083 |
|
|
|
21084 |
|
|
|
21085 |
|
|
|
21086 |
|
|
|
21087 |
|
|
|
21088 |
|
|
|
21089 |
|
|
|
21090 |
|
|
|
21091 |
|
|
|
21092 |
|
|
|
21093 |
|
|
|
21094 |
|
|
|
21095 |
|
|
|
21096 |
|
|
|
21097 |
|
|
|
21098 |
|
|
|
21099 |
|
|
|
21100 |
|
|
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h \
|
21101 |
|
|
sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
|
21102 |
|
|
termcap.h termios.h termio.h sys/file.h locale.h\
|
21103 |
|
|
net/ethernet.h sys/ethernet.h malloc.h inttypes.h
|
21104 |
|
|
do
|
21105 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
21106 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
21107 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
21108 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
21109 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
21110 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21111 |
|
|
fi
|
21112 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
21113 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
21114 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
21115 |
|
|
else
|
21116 |
|
|
# Is the header compilable?
|
21117 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
21118 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
21119 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21120 |
|
|
/* confdefs.h. */
|
21121 |
|
|
_ACEOF
|
21122 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21123 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21124 |
|
|
/* end confdefs.h. */
|
21125 |
|
|
$ac_includes_default
|
21126 |
|
|
@%:@include <$ac_header>
|
21127 |
|
|
_ACEOF
|
21128 |
|
|
rm -f conftest.$ac_objext
|
21129 |
|
|
if { (ac_try="$ac_compile"
|
21130 |
|
|
case "(($ac_try" in
|
21131 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21132 |
|
|
*) ac_try_echo=$ac_try;;
|
21133 |
|
|
esac
|
21134 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21135 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21136 |
|
|
ac_status=$?
|
21137 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21138 |
|
|
rm -f conftest.er1
|
21139 |
|
|
cat conftest.err >&5
|
21140 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21141 |
|
|
(exit $ac_status); } && {
|
21142 |
|
|
test -z "$ac_c_werror_flag" ||
|
21143 |
|
|
test ! -s conftest.err
|
21144 |
|
|
} && test -s conftest.$ac_objext; then
|
21145 |
|
|
ac_header_compiler=yes
|
21146 |
|
|
else
|
21147 |
|
|
echo "$as_me: failed program was:" >&5
|
21148 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21149 |
|
|
|
21150 |
|
|
ac_header_compiler=no
|
21151 |
|
|
fi
|
21152 |
|
|
|
21153 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21154 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
21155 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
21156 |
|
|
|
21157 |
|
|
# Is the header present?
|
21158 |
|
|
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
21159 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
21160 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21161 |
|
|
/* confdefs.h. */
|
21162 |
|
|
_ACEOF
|
21163 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21164 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21165 |
|
|
/* end confdefs.h. */
|
21166 |
|
|
@%:@include <$ac_header>
|
21167 |
|
|
_ACEOF
|
21168 |
|
|
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
21169 |
|
|
case "(($ac_try" in
|
21170 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21171 |
|
|
*) ac_try_echo=$ac_try;;
|
21172 |
|
|
esac
|
21173 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21174 |
|
|
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
21175 |
|
|
ac_status=$?
|
21176 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21177 |
|
|
rm -f conftest.er1
|
21178 |
|
|
cat conftest.err >&5
|
21179 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21180 |
|
|
(exit $ac_status); } >/dev/null && {
|
21181 |
|
|
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
21182 |
|
|
test ! -s conftest.err
|
21183 |
|
|
}; then
|
21184 |
|
|
ac_header_preproc=yes
|
21185 |
|
|
else
|
21186 |
|
|
echo "$as_me: failed program was:" >&5
|
21187 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21188 |
|
|
|
21189 |
|
|
ac_header_preproc=no
|
21190 |
|
|
fi
|
21191 |
|
|
|
21192 |
|
|
rm -f conftest.err conftest.$ac_ext
|
21193 |
|
|
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
21194 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
21195 |
|
|
|
21196 |
|
|
# So? What about this header?
|
21197 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
21198 |
|
|
yes:no: )
|
21199 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
21200 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
21201 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
21202 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
21203 |
|
|
ac_header_preproc=yes
|
21204 |
|
|
;;
|
21205 |
|
|
no:yes:* )
|
21206 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
21207 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
21208 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
21209 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
21210 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
21211 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
21212 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
21213 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
21214 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
21215 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
21216 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
21217 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
21218 |
|
|
( cat <<\_ASBOX
|
21219 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
21220 |
|
|
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
|
21221 |
|
|
@%:@@%:@ ------------------------------------- @%:@@%:@
|
21222 |
|
|
_ASBOX
|
21223 |
|
|
) | sed "s/^/$as_me: WARNING: /" >&2
|
21224 |
|
|
;;
|
21225 |
|
|
esac
|
21226 |
|
|
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
21227 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
21228 |
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
21229 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21230 |
|
|
else
|
21231 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
21232 |
|
|
fi
|
21233 |
|
|
ac_res=`eval echo '${'$as_ac_Header'}'`
|
21234 |
|
|
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
21235 |
|
|
echo "${ECHO_T}$ac_res" >&6; }
|
21236 |
|
|
|
21237 |
|
|
fi
|
21238 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
21239 |
|
|
cat >>confdefs.h <<_ACEOF
|
21240 |
|
|
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
21241 |
|
|
_ACEOF
|
21242 |
|
|
|
21243 |
|
|
fi
|
21244 |
|
|
|
21245 |
|
|
done
|
21246 |
|
|
|
21247 |
|
|
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
21248 |
|
|
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
21249 |
|
|
if test "${ac_cv_c_bigendian+set}" = set; then
|
21250 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21251 |
|
|
else
|
21252 |
|
|
# See if sys/param.h defines the BYTE_ORDER macro.
|
21253 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21254 |
|
|
/* confdefs.h. */
|
21255 |
|
|
_ACEOF
|
21256 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21257 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21258 |
|
|
/* end confdefs.h. */
|
21259 |
|
|
#include
|
21260 |
|
|
#include
|
21261 |
|
|
|
21262 |
|
|
int
|
21263 |
|
|
main ()
|
21264 |
|
|
{
|
21265 |
|
|
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
21266 |
|
|
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
21267 |
|
|
bogus endian macros
|
21268 |
|
|
#endif
|
21269 |
|
|
|
21270 |
|
|
;
|
21271 |
|
|
return 0;
|
21272 |
|
|
}
|
21273 |
|
|
_ACEOF
|
21274 |
|
|
rm -f conftest.$ac_objext
|
21275 |
|
|
if { (ac_try="$ac_compile"
|
21276 |
|
|
case "(($ac_try" in
|
21277 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21278 |
|
|
*) ac_try_echo=$ac_try;;
|
21279 |
|
|
esac
|
21280 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21281 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21282 |
|
|
ac_status=$?
|
21283 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21284 |
|
|
rm -f conftest.er1
|
21285 |
|
|
cat conftest.err >&5
|
21286 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21287 |
|
|
(exit $ac_status); } && {
|
21288 |
|
|
test -z "$ac_c_werror_flag" ||
|
21289 |
|
|
test ! -s conftest.err
|
21290 |
|
|
} && test -s conftest.$ac_objext; then
|
21291 |
|
|
# It does; now see whether it defined to BIG_ENDIAN or not.
|
21292 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21293 |
|
|
/* confdefs.h. */
|
21294 |
|
|
_ACEOF
|
21295 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21296 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21297 |
|
|
/* end confdefs.h. */
|
21298 |
|
|
#include
|
21299 |
|
|
#include
|
21300 |
|
|
|
21301 |
|
|
int
|
21302 |
|
|
main ()
|
21303 |
|
|
{
|
21304 |
|
|
#if BYTE_ORDER != BIG_ENDIAN
|
21305 |
|
|
not big endian
|
21306 |
|
|
#endif
|
21307 |
|
|
|
21308 |
|
|
;
|
21309 |
|
|
return 0;
|
21310 |
|
|
}
|
21311 |
|
|
_ACEOF
|
21312 |
|
|
rm -f conftest.$ac_objext
|
21313 |
|
|
if { (ac_try="$ac_compile"
|
21314 |
|
|
case "(($ac_try" in
|
21315 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21316 |
|
|
*) ac_try_echo=$ac_try;;
|
21317 |
|
|
esac
|
21318 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21319 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21320 |
|
|
ac_status=$?
|
21321 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21322 |
|
|
rm -f conftest.er1
|
21323 |
|
|
cat conftest.err >&5
|
21324 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21325 |
|
|
(exit $ac_status); } && {
|
21326 |
|
|
test -z "$ac_c_werror_flag" ||
|
21327 |
|
|
test ! -s conftest.err
|
21328 |
|
|
} && test -s conftest.$ac_objext; then
|
21329 |
|
|
ac_cv_c_bigendian=yes
|
21330 |
|
|
else
|
21331 |
|
|
echo "$as_me: failed program was:" >&5
|
21332 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21333 |
|
|
|
21334 |
|
|
ac_cv_c_bigendian=no
|
21335 |
|
|
fi
|
21336 |
|
|
|
21337 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21338 |
|
|
else
|
21339 |
|
|
echo "$as_me: failed program was:" >&5
|
21340 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21341 |
|
|
|
21342 |
|
|
# It does not; compile a test program.
|
21343 |
|
|
if test "$cross_compiling" = yes; then
|
21344 |
|
|
# try to guess the endianness by grepping values into an object file
|
21345 |
|
|
ac_cv_c_bigendian=unknown
|
21346 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21347 |
|
|
/* confdefs.h. */
|
21348 |
|
|
_ACEOF
|
21349 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21350 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21351 |
|
|
/* end confdefs.h. */
|
21352 |
|
|
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
21353 |
|
|
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
21354 |
|
|
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
21355 |
|
|
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
21356 |
|
|
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
21357 |
|
|
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
21358 |
|
|
int
|
21359 |
|
|
main ()
|
21360 |
|
|
{
|
21361 |
|
|
_ascii (); _ebcdic ();
|
21362 |
|
|
;
|
21363 |
|
|
return 0;
|
21364 |
|
|
}
|
21365 |
|
|
_ACEOF
|
21366 |
|
|
rm -f conftest.$ac_objext
|
21367 |
|
|
if { (ac_try="$ac_compile"
|
21368 |
|
|
case "(($ac_try" in
|
21369 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21370 |
|
|
*) ac_try_echo=$ac_try;;
|
21371 |
|
|
esac
|
21372 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21373 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21374 |
|
|
ac_status=$?
|
21375 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21376 |
|
|
rm -f conftest.er1
|
21377 |
|
|
cat conftest.err >&5
|
21378 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21379 |
|
|
(exit $ac_status); } && {
|
21380 |
|
|
test -z "$ac_c_werror_flag" ||
|
21381 |
|
|
test ! -s conftest.err
|
21382 |
|
|
} && test -s conftest.$ac_objext; then
|
21383 |
|
|
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
21384 |
|
|
ac_cv_c_bigendian=yes
|
21385 |
|
|
fi
|
21386 |
|
|
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
21387 |
|
|
if test "$ac_cv_c_bigendian" = unknown; then
|
21388 |
|
|
ac_cv_c_bigendian=no
|
21389 |
|
|
else
|
21390 |
|
|
# finding both strings is unlikely to happen, but who knows?
|
21391 |
|
|
ac_cv_c_bigendian=unknown
|
21392 |
|
|
fi
|
21393 |
|
|
fi
|
21394 |
|
|
else
|
21395 |
|
|
echo "$as_me: failed program was:" >&5
|
21396 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21397 |
|
|
|
21398 |
|
|
|
21399 |
|
|
fi
|
21400 |
|
|
|
21401 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21402 |
|
|
else
|
21403 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21404 |
|
|
/* confdefs.h. */
|
21405 |
|
|
_ACEOF
|
21406 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21407 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21408 |
|
|
/* end confdefs.h. */
|
21409 |
|
|
$ac_includes_default
|
21410 |
|
|
int
|
21411 |
|
|
main ()
|
21412 |
|
|
{
|
21413 |
|
|
|
21414 |
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
21415 |
|
|
union
|
21416 |
|
|
{
|
21417 |
|
|
long int l;
|
21418 |
|
|
char c[sizeof (long int)];
|
21419 |
|
|
} u;
|
21420 |
|
|
u.l = 1;
|
21421 |
|
|
return u.c[sizeof (long int) - 1] == 1;
|
21422 |
|
|
|
21423 |
|
|
;
|
21424 |
|
|
return 0;
|
21425 |
|
|
}
|
21426 |
|
|
_ACEOF
|
21427 |
|
|
rm -f conftest$ac_exeext
|
21428 |
|
|
if { (ac_try="$ac_link"
|
21429 |
|
|
case "(($ac_try" in
|
21430 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21431 |
|
|
*) ac_try_echo=$ac_try;;
|
21432 |
|
|
esac
|
21433 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21434 |
|
|
(eval "$ac_link") 2>&5
|
21435 |
|
|
ac_status=$?
|
21436 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21437 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
21438 |
|
|
{ (case "(($ac_try" in
|
21439 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21440 |
|
|
*) ac_try_echo=$ac_try;;
|
21441 |
|
|
esac
|
21442 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21443 |
|
|
(eval "$ac_try") 2>&5
|
21444 |
|
|
ac_status=$?
|
21445 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21446 |
|
|
(exit $ac_status); }; }; then
|
21447 |
|
|
ac_cv_c_bigendian=no
|
21448 |
|
|
else
|
21449 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
21450 |
|
|
echo "$as_me: failed program was:" >&5
|
21451 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21452 |
|
|
|
21453 |
|
|
( exit $ac_status )
|
21454 |
|
|
ac_cv_c_bigendian=yes
|
21455 |
|
|
fi
|
21456 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
21457 |
|
|
fi
|
21458 |
|
|
|
21459 |
|
|
|
21460 |
|
|
fi
|
21461 |
|
|
|
21462 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21463 |
|
|
fi
|
21464 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
21465 |
|
|
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
21466 |
|
|
case $ac_cv_c_bigendian in
|
21467 |
|
|
yes)
|
21468 |
|
|
|
21469 |
|
|
cat >>confdefs.h <<\_ACEOF
|
21470 |
|
|
@%:@define WORDS_BIGENDIAN 1
|
21471 |
|
|
_ACEOF
|
21472 |
|
|
;;
|
21473 |
|
|
no)
|
21474 |
|
|
;;
|
21475 |
|
|
*)
|
21476 |
|
|
{ { echo "$as_me:$LINENO: error: unknown endianness
|
21477 |
|
|
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
21478 |
|
|
echo "$as_me: error: unknown endianness
|
21479 |
|
|
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
21480 |
|
|
{ (exit 1); exit 1; }; } ;;
|
21481 |
|
|
esac
|
21482 |
|
|
|
21483 |
|
|
|
21484 |
|
|
# check for "long long" (added by Erez)
|
21485 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21486 |
|
|
/* confdefs.h. */
|
21487 |
|
|
_ACEOF
|
21488 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21489 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21490 |
|
|
/* end confdefs.h. */
|
21491 |
|
|
|
21492 |
|
|
int
|
21493 |
|
|
main ()
|
21494 |
|
|
{
|
21495 |
|
|
long long ll; unsigned long long ull;
|
21496 |
|
|
;
|
21497 |
|
|
return 0;
|
21498 |
|
|
}
|
21499 |
|
|
_ACEOF
|
21500 |
|
|
rm -f conftest.$ac_objext
|
21501 |
|
|
if { (ac_try="$ac_compile"
|
21502 |
|
|
case "(($ac_try" in
|
21503 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21504 |
|
|
*) ac_try_echo=$ac_try;;
|
21505 |
|
|
esac
|
21506 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21507 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21508 |
|
|
ac_status=$?
|
21509 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21510 |
|
|
rm -f conftest.er1
|
21511 |
|
|
cat conftest.err >&5
|
21512 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21513 |
|
|
(exit $ac_status); } && {
|
21514 |
|
|
test -z "$ac_c_werror_flag" ||
|
21515 |
|
|
test ! -s conftest.err
|
21516 |
|
|
} && test -s conftest.$ac_objext; then
|
21517 |
|
|
|
21518 |
|
|
cat >>confdefs.h <<\_ACEOF
|
21519 |
|
|
@%:@define CC_HAS_LONG_LONG 1
|
21520 |
|
|
_ACEOF
|
21521 |
|
|
|
21522 |
|
|
else
|
21523 |
|
|
echo "$as_me: failed program was:" >&5
|
21524 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21525 |
|
|
|
21526 |
|
|
|
21527 |
|
|
fi
|
21528 |
|
|
|
21529 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21530 |
|
|
|
21531 |
|
|
# check for {u,}int{8,16,32}_t in inttypes.h
|
21532 |
|
|
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
|
21533 |
|
|
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
|
21534 |
|
|
if test "${ac_cv_type_uint8_t+set}" = set; then
|
21535 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21536 |
|
|
else
|
21537 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21538 |
|
|
/* confdefs.h. */
|
21539 |
|
|
_ACEOF
|
21540 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21541 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21542 |
|
|
/* end confdefs.h. */
|
21543 |
|
|
#include
|
21544 |
|
|
|
21545 |
|
|
typedef uint8_t ac__type_new_;
|
21546 |
|
|
int
|
21547 |
|
|
main ()
|
21548 |
|
|
{
|
21549 |
|
|
if ((ac__type_new_ *) 0)
|
21550 |
|
|
return 0;
|
21551 |
|
|
if (sizeof (ac__type_new_))
|
21552 |
|
|
return 0;
|
21553 |
|
|
;
|
21554 |
|
|
return 0;
|
21555 |
|
|
}
|
21556 |
|
|
_ACEOF
|
21557 |
|
|
rm -f conftest.$ac_objext
|
21558 |
|
|
if { (ac_try="$ac_compile"
|
21559 |
|
|
case "(($ac_try" in
|
21560 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21561 |
|
|
*) ac_try_echo=$ac_try;;
|
21562 |
|
|
esac
|
21563 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21564 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21565 |
|
|
ac_status=$?
|
21566 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21567 |
|
|
rm -f conftest.er1
|
21568 |
|
|
cat conftest.err >&5
|
21569 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21570 |
|
|
(exit $ac_status); } && {
|
21571 |
|
|
test -z "$ac_c_werror_flag" ||
|
21572 |
|
|
test ! -s conftest.err
|
21573 |
|
|
} && test -s conftest.$ac_objext; then
|
21574 |
|
|
ac_cv_type_uint8_t=yes
|
21575 |
|
|
else
|
21576 |
|
|
echo "$as_me: failed program was:" >&5
|
21577 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21578 |
|
|
|
21579 |
|
|
ac_cv_type_uint8_t=no
|
21580 |
|
|
fi
|
21581 |
|
|
|
21582 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21583 |
|
|
fi
|
21584 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
|
21585 |
|
|
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
|
21586 |
|
|
if test $ac_cv_type_uint8_t = yes; then
|
21587 |
|
|
|
21588 |
|
|
cat >>confdefs.h <<_ACEOF
|
21589 |
|
|
@%:@define HAVE_UINT8_T 1
|
21590 |
|
|
_ACEOF
|
21591 |
|
|
|
21592 |
|
|
|
21593 |
|
|
fi
|
21594 |
|
|
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
|
21595 |
|
|
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
|
21596 |
|
|
if test "${ac_cv_type_uint16_t+set}" = set; then
|
21597 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21598 |
|
|
else
|
21599 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21600 |
|
|
/* confdefs.h. */
|
21601 |
|
|
_ACEOF
|
21602 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21603 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21604 |
|
|
/* end confdefs.h. */
|
21605 |
|
|
#include
|
21606 |
|
|
|
21607 |
|
|
typedef uint16_t ac__type_new_;
|
21608 |
|
|
int
|
21609 |
|
|
main ()
|
21610 |
|
|
{
|
21611 |
|
|
if ((ac__type_new_ *) 0)
|
21612 |
|
|
return 0;
|
21613 |
|
|
if (sizeof (ac__type_new_))
|
21614 |
|
|
return 0;
|
21615 |
|
|
;
|
21616 |
|
|
return 0;
|
21617 |
|
|
}
|
21618 |
|
|
_ACEOF
|
21619 |
|
|
rm -f conftest.$ac_objext
|
21620 |
|
|
if { (ac_try="$ac_compile"
|
21621 |
|
|
case "(($ac_try" in
|
21622 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21623 |
|
|
*) ac_try_echo=$ac_try;;
|
21624 |
|
|
esac
|
21625 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21626 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21627 |
|
|
ac_status=$?
|
21628 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21629 |
|
|
rm -f conftest.er1
|
21630 |
|
|
cat conftest.err >&5
|
21631 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21632 |
|
|
(exit $ac_status); } && {
|
21633 |
|
|
test -z "$ac_c_werror_flag" ||
|
21634 |
|
|
test ! -s conftest.err
|
21635 |
|
|
} && test -s conftest.$ac_objext; then
|
21636 |
|
|
ac_cv_type_uint16_t=yes
|
21637 |
|
|
else
|
21638 |
|
|
echo "$as_me: failed program was:" >&5
|
21639 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21640 |
|
|
|
21641 |
|
|
ac_cv_type_uint16_t=no
|
21642 |
|
|
fi
|
21643 |
|
|
|
21644 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21645 |
|
|
fi
|
21646 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
|
21647 |
|
|
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
|
21648 |
|
|
if test $ac_cv_type_uint16_t = yes; then
|
21649 |
|
|
|
21650 |
|
|
cat >>confdefs.h <<_ACEOF
|
21651 |
|
|
@%:@define HAVE_UINT16_T 1
|
21652 |
|
|
_ACEOF
|
21653 |
|
|
|
21654 |
|
|
|
21655 |
|
|
fi
|
21656 |
|
|
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
|
21657 |
|
|
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
|
21658 |
|
|
if test "${ac_cv_type_uint32_t+set}" = set; then
|
21659 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21660 |
|
|
else
|
21661 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21662 |
|
|
/* confdefs.h. */
|
21663 |
|
|
_ACEOF
|
21664 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21665 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21666 |
|
|
/* end confdefs.h. */
|
21667 |
|
|
#include
|
21668 |
|
|
|
21669 |
|
|
typedef uint32_t ac__type_new_;
|
21670 |
|
|
int
|
21671 |
|
|
main ()
|
21672 |
|
|
{
|
21673 |
|
|
if ((ac__type_new_ *) 0)
|
21674 |
|
|
return 0;
|
21675 |
|
|
if (sizeof (ac__type_new_))
|
21676 |
|
|
return 0;
|
21677 |
|
|
;
|
21678 |
|
|
return 0;
|
21679 |
|
|
}
|
21680 |
|
|
_ACEOF
|
21681 |
|
|
rm -f conftest.$ac_objext
|
21682 |
|
|
if { (ac_try="$ac_compile"
|
21683 |
|
|
case "(($ac_try" in
|
21684 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21685 |
|
|
*) ac_try_echo=$ac_try;;
|
21686 |
|
|
esac
|
21687 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21688 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21689 |
|
|
ac_status=$?
|
21690 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21691 |
|
|
rm -f conftest.er1
|
21692 |
|
|
cat conftest.err >&5
|
21693 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21694 |
|
|
(exit $ac_status); } && {
|
21695 |
|
|
test -z "$ac_c_werror_flag" ||
|
21696 |
|
|
test ! -s conftest.err
|
21697 |
|
|
} && test -s conftest.$ac_objext; then
|
21698 |
|
|
ac_cv_type_uint32_t=yes
|
21699 |
|
|
else
|
21700 |
|
|
echo "$as_me: failed program was:" >&5
|
21701 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21702 |
|
|
|
21703 |
|
|
ac_cv_type_uint32_t=no
|
21704 |
|
|
fi
|
21705 |
|
|
|
21706 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21707 |
|
|
fi
|
21708 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
|
21709 |
|
|
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
|
21710 |
|
|
if test $ac_cv_type_uint32_t = yes; then
|
21711 |
|
|
|
21712 |
|
|
cat >>confdefs.h <<_ACEOF
|
21713 |
|
|
@%:@define HAVE_UINT32_T 1
|
21714 |
|
|
_ACEOF
|
21715 |
|
|
|
21716 |
|
|
|
21717 |
|
|
fi
|
21718 |
|
|
|
21719 |
|
|
{ echo "$as_me:$LINENO: checking for int8_t" >&5
|
21720 |
|
|
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
|
21721 |
|
|
if test "${ac_cv_type_int8_t+set}" = set; then
|
21722 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21723 |
|
|
else
|
21724 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21725 |
|
|
/* confdefs.h. */
|
21726 |
|
|
_ACEOF
|
21727 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21728 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21729 |
|
|
/* end confdefs.h. */
|
21730 |
|
|
#include
|
21731 |
|
|
|
21732 |
|
|
typedef int8_t ac__type_new_;
|
21733 |
|
|
int
|
21734 |
|
|
main ()
|
21735 |
|
|
{
|
21736 |
|
|
if ((ac__type_new_ *) 0)
|
21737 |
|
|
return 0;
|
21738 |
|
|
if (sizeof (ac__type_new_))
|
21739 |
|
|
return 0;
|
21740 |
|
|
;
|
21741 |
|
|
return 0;
|
21742 |
|
|
}
|
21743 |
|
|
_ACEOF
|
21744 |
|
|
rm -f conftest.$ac_objext
|
21745 |
|
|
if { (ac_try="$ac_compile"
|
21746 |
|
|
case "(($ac_try" in
|
21747 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21748 |
|
|
*) ac_try_echo=$ac_try;;
|
21749 |
|
|
esac
|
21750 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21751 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21752 |
|
|
ac_status=$?
|
21753 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21754 |
|
|
rm -f conftest.er1
|
21755 |
|
|
cat conftest.err >&5
|
21756 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21757 |
|
|
(exit $ac_status); } && {
|
21758 |
|
|
test -z "$ac_c_werror_flag" ||
|
21759 |
|
|
test ! -s conftest.err
|
21760 |
|
|
} && test -s conftest.$ac_objext; then
|
21761 |
|
|
ac_cv_type_int8_t=yes
|
21762 |
|
|
else
|
21763 |
|
|
echo "$as_me: failed program was:" >&5
|
21764 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21765 |
|
|
|
21766 |
|
|
ac_cv_type_int8_t=no
|
21767 |
|
|
fi
|
21768 |
|
|
|
21769 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21770 |
|
|
fi
|
21771 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
|
21772 |
|
|
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
|
21773 |
|
|
if test $ac_cv_type_int8_t = yes; then
|
21774 |
|
|
|
21775 |
|
|
cat >>confdefs.h <<_ACEOF
|
21776 |
|
|
@%:@define HAVE_INT8_T 1
|
21777 |
|
|
_ACEOF
|
21778 |
|
|
|
21779 |
|
|
|
21780 |
|
|
fi
|
21781 |
|
|
{ echo "$as_me:$LINENO: checking for int16_t" >&5
|
21782 |
|
|
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
|
21783 |
|
|
if test "${ac_cv_type_int16_t+set}" = set; then
|
21784 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21785 |
|
|
else
|
21786 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21787 |
|
|
/* confdefs.h. */
|
21788 |
|
|
_ACEOF
|
21789 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21790 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21791 |
|
|
/* end confdefs.h. */
|
21792 |
|
|
#include
|
21793 |
|
|
|
21794 |
|
|
typedef int16_t ac__type_new_;
|
21795 |
|
|
int
|
21796 |
|
|
main ()
|
21797 |
|
|
{
|
21798 |
|
|
if ((ac__type_new_ *) 0)
|
21799 |
|
|
return 0;
|
21800 |
|
|
if (sizeof (ac__type_new_))
|
21801 |
|
|
return 0;
|
21802 |
|
|
;
|
21803 |
|
|
return 0;
|
21804 |
|
|
}
|
21805 |
|
|
_ACEOF
|
21806 |
|
|
rm -f conftest.$ac_objext
|
21807 |
|
|
if { (ac_try="$ac_compile"
|
21808 |
|
|
case "(($ac_try" in
|
21809 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21810 |
|
|
*) ac_try_echo=$ac_try;;
|
21811 |
|
|
esac
|
21812 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21813 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21814 |
|
|
ac_status=$?
|
21815 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21816 |
|
|
rm -f conftest.er1
|
21817 |
|
|
cat conftest.err >&5
|
21818 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21819 |
|
|
(exit $ac_status); } && {
|
21820 |
|
|
test -z "$ac_c_werror_flag" ||
|
21821 |
|
|
test ! -s conftest.err
|
21822 |
|
|
} && test -s conftest.$ac_objext; then
|
21823 |
|
|
ac_cv_type_int16_t=yes
|
21824 |
|
|
else
|
21825 |
|
|
echo "$as_me: failed program was:" >&5
|
21826 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21827 |
|
|
|
21828 |
|
|
ac_cv_type_int16_t=no
|
21829 |
|
|
fi
|
21830 |
|
|
|
21831 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21832 |
|
|
fi
|
21833 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
|
21834 |
|
|
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
|
21835 |
|
|
if test $ac_cv_type_int16_t = yes; then
|
21836 |
|
|
|
21837 |
|
|
cat >>confdefs.h <<_ACEOF
|
21838 |
|
|
@%:@define HAVE_INT16_T 1
|
21839 |
|
|
_ACEOF
|
21840 |
|
|
|
21841 |
|
|
|
21842 |
|
|
fi
|
21843 |
|
|
{ echo "$as_me:$LINENO: checking for int32_t" >&5
|
21844 |
|
|
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
|
21845 |
|
|
if test "${ac_cv_type_int32_t+set}" = set; then
|
21846 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21847 |
|
|
else
|
21848 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21849 |
|
|
/* confdefs.h. */
|
21850 |
|
|
_ACEOF
|
21851 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21852 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21853 |
|
|
/* end confdefs.h. */
|
21854 |
|
|
#include
|
21855 |
|
|
|
21856 |
|
|
typedef int32_t ac__type_new_;
|
21857 |
|
|
int
|
21858 |
|
|
main ()
|
21859 |
|
|
{
|
21860 |
|
|
if ((ac__type_new_ *) 0)
|
21861 |
|
|
return 0;
|
21862 |
|
|
if (sizeof (ac__type_new_))
|
21863 |
|
|
return 0;
|
21864 |
|
|
;
|
21865 |
|
|
return 0;
|
21866 |
|
|
}
|
21867 |
|
|
_ACEOF
|
21868 |
|
|
rm -f conftest.$ac_objext
|
21869 |
|
|
if { (ac_try="$ac_compile"
|
21870 |
|
|
case "(($ac_try" in
|
21871 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21872 |
|
|
*) ac_try_echo=$ac_try;;
|
21873 |
|
|
esac
|
21874 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21875 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21876 |
|
|
ac_status=$?
|
21877 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21878 |
|
|
rm -f conftest.er1
|
21879 |
|
|
cat conftest.err >&5
|
21880 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21881 |
|
|
(exit $ac_status); } && {
|
21882 |
|
|
test -z "$ac_c_werror_flag" ||
|
21883 |
|
|
test ! -s conftest.err
|
21884 |
|
|
} && test -s conftest.$ac_objext; then
|
21885 |
|
|
ac_cv_type_int32_t=yes
|
21886 |
|
|
else
|
21887 |
|
|
echo "$as_me: failed program was:" >&5
|
21888 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21889 |
|
|
|
21890 |
|
|
ac_cv_type_int32_t=no
|
21891 |
|
|
fi
|
21892 |
|
|
|
21893 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21894 |
|
|
fi
|
21895 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
|
21896 |
|
|
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
|
21897 |
|
|
if test $ac_cv_type_int32_t = yes; then
|
21898 |
|
|
|
21899 |
|
|
cat >>confdefs.h <<_ACEOF
|
21900 |
|
|
@%:@define HAVE_INT32_T 1
|
21901 |
|
|
_ACEOF
|
21902 |
|
|
|
21903 |
|
|
|
21904 |
|
|
fi
|
21905 |
|
|
|
21906 |
|
|
|
21907 |
|
|
{ echo "$as_me:$LINENO: checking for char" >&5
|
21908 |
|
|
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
|
21909 |
|
|
if test "${ac_cv_type_char+set}" = set; then
|
21910 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21911 |
|
|
else
|
21912 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21913 |
|
|
/* confdefs.h. */
|
21914 |
|
|
_ACEOF
|
21915 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21916 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21917 |
|
|
/* end confdefs.h. */
|
21918 |
|
|
$ac_includes_default
|
21919 |
|
|
typedef char ac__type_new_;
|
21920 |
|
|
int
|
21921 |
|
|
main ()
|
21922 |
|
|
{
|
21923 |
|
|
if ((ac__type_new_ *) 0)
|
21924 |
|
|
return 0;
|
21925 |
|
|
if (sizeof (ac__type_new_))
|
21926 |
|
|
return 0;
|
21927 |
|
|
;
|
21928 |
|
|
return 0;
|
21929 |
|
|
}
|
21930 |
|
|
_ACEOF
|
21931 |
|
|
rm -f conftest.$ac_objext
|
21932 |
|
|
if { (ac_try="$ac_compile"
|
21933 |
|
|
case "(($ac_try" in
|
21934 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21935 |
|
|
*) ac_try_echo=$ac_try;;
|
21936 |
|
|
esac
|
21937 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21938 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21939 |
|
|
ac_status=$?
|
21940 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
21941 |
|
|
rm -f conftest.er1
|
21942 |
|
|
cat conftest.err >&5
|
21943 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21944 |
|
|
(exit $ac_status); } && {
|
21945 |
|
|
test -z "$ac_c_werror_flag" ||
|
21946 |
|
|
test ! -s conftest.err
|
21947 |
|
|
} && test -s conftest.$ac_objext; then
|
21948 |
|
|
ac_cv_type_char=yes
|
21949 |
|
|
else
|
21950 |
|
|
echo "$as_me: failed program was:" >&5
|
21951 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
21952 |
|
|
|
21953 |
|
|
ac_cv_type_char=no
|
21954 |
|
|
fi
|
21955 |
|
|
|
21956 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21957 |
|
|
fi
|
21958 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
|
21959 |
|
|
echo "${ECHO_T}$ac_cv_type_char" >&6; }
|
21960 |
|
|
|
21961 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
21962 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
21963 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
21964 |
|
|
# This bug is HP SR number 8606223364.
|
21965 |
|
|
{ echo "$as_me:$LINENO: checking size of char" >&5
|
21966 |
|
|
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
|
21967 |
|
|
if test "${ac_cv_sizeof_char+set}" = set; then
|
21968 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21969 |
|
|
else
|
21970 |
|
|
if test "$cross_compiling" = yes; then
|
21971 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
21972 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
21973 |
|
|
/* confdefs.h. */
|
21974 |
|
|
_ACEOF
|
21975 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
21976 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
21977 |
|
|
/* end confdefs.h. */
|
21978 |
|
|
$ac_includes_default
|
21979 |
|
|
typedef char ac__type_sizeof_;
|
21980 |
|
|
int
|
21981 |
|
|
main ()
|
21982 |
|
|
{
|
21983 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
21984 |
|
|
test_array @<:@0@:>@ = 0
|
21985 |
|
|
|
21986 |
|
|
;
|
21987 |
|
|
return 0;
|
21988 |
|
|
}
|
21989 |
|
|
_ACEOF
|
21990 |
|
|
rm -f conftest.$ac_objext
|
21991 |
|
|
if { (ac_try="$ac_compile"
|
21992 |
|
|
case "(($ac_try" in
|
21993 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21994 |
|
|
*) ac_try_echo=$ac_try;;
|
21995 |
|
|
esac
|
21996 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
21997 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
21998 |
|
|
ac_status=$?
|
21999 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22000 |
|
|
rm -f conftest.er1
|
22001 |
|
|
cat conftest.err >&5
|
22002 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22003 |
|
|
(exit $ac_status); } && {
|
22004 |
|
|
test -z "$ac_c_werror_flag" ||
|
22005 |
|
|
test ! -s conftest.err
|
22006 |
|
|
} && test -s conftest.$ac_objext; then
|
22007 |
|
|
ac_lo=0 ac_mid=0
|
22008 |
|
|
while :; do
|
22009 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22010 |
|
|
/* confdefs.h. */
|
22011 |
|
|
_ACEOF
|
22012 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22013 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22014 |
|
|
/* end confdefs.h. */
|
22015 |
|
|
$ac_includes_default
|
22016 |
|
|
typedef char ac__type_sizeof_;
|
22017 |
|
|
int
|
22018 |
|
|
main ()
|
22019 |
|
|
{
|
22020 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
22021 |
|
|
test_array @<:@0@:>@ = 0
|
22022 |
|
|
|
22023 |
|
|
;
|
22024 |
|
|
return 0;
|
22025 |
|
|
}
|
22026 |
|
|
_ACEOF
|
22027 |
|
|
rm -f conftest.$ac_objext
|
22028 |
|
|
if { (ac_try="$ac_compile"
|
22029 |
|
|
case "(($ac_try" in
|
22030 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22031 |
|
|
*) ac_try_echo=$ac_try;;
|
22032 |
|
|
esac
|
22033 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22034 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22035 |
|
|
ac_status=$?
|
22036 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22037 |
|
|
rm -f conftest.er1
|
22038 |
|
|
cat conftest.err >&5
|
22039 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22040 |
|
|
(exit $ac_status); } && {
|
22041 |
|
|
test -z "$ac_c_werror_flag" ||
|
22042 |
|
|
test ! -s conftest.err
|
22043 |
|
|
} && test -s conftest.$ac_objext; then
|
22044 |
|
|
ac_hi=$ac_mid; break
|
22045 |
|
|
else
|
22046 |
|
|
echo "$as_me: failed program was:" >&5
|
22047 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22048 |
|
|
|
22049 |
|
|
ac_lo=`expr $ac_mid + 1`
|
22050 |
|
|
if test $ac_lo -le $ac_mid; then
|
22051 |
|
|
ac_lo= ac_hi=
|
22052 |
|
|
break
|
22053 |
|
|
fi
|
22054 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
22055 |
|
|
fi
|
22056 |
|
|
|
22057 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22058 |
|
|
done
|
22059 |
|
|
else
|
22060 |
|
|
echo "$as_me: failed program was:" >&5
|
22061 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22062 |
|
|
|
22063 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22064 |
|
|
/* confdefs.h. */
|
22065 |
|
|
_ACEOF
|
22066 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22067 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22068 |
|
|
/* end confdefs.h. */
|
22069 |
|
|
$ac_includes_default
|
22070 |
|
|
typedef char ac__type_sizeof_;
|
22071 |
|
|
int
|
22072 |
|
|
main ()
|
22073 |
|
|
{
|
22074 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
22075 |
|
|
test_array @<:@0@:>@ = 0
|
22076 |
|
|
|
22077 |
|
|
;
|
22078 |
|
|
return 0;
|
22079 |
|
|
}
|
22080 |
|
|
_ACEOF
|
22081 |
|
|
rm -f conftest.$ac_objext
|
22082 |
|
|
if { (ac_try="$ac_compile"
|
22083 |
|
|
case "(($ac_try" in
|
22084 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22085 |
|
|
*) ac_try_echo=$ac_try;;
|
22086 |
|
|
esac
|
22087 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22088 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22089 |
|
|
ac_status=$?
|
22090 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22091 |
|
|
rm -f conftest.er1
|
22092 |
|
|
cat conftest.err >&5
|
22093 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22094 |
|
|
(exit $ac_status); } && {
|
22095 |
|
|
test -z "$ac_c_werror_flag" ||
|
22096 |
|
|
test ! -s conftest.err
|
22097 |
|
|
} && test -s conftest.$ac_objext; then
|
22098 |
|
|
ac_hi=-1 ac_mid=-1
|
22099 |
|
|
while :; do
|
22100 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22101 |
|
|
/* confdefs.h. */
|
22102 |
|
|
_ACEOF
|
22103 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22104 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22105 |
|
|
/* end confdefs.h. */
|
22106 |
|
|
$ac_includes_default
|
22107 |
|
|
typedef char ac__type_sizeof_;
|
22108 |
|
|
int
|
22109 |
|
|
main ()
|
22110 |
|
|
{
|
22111 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
22112 |
|
|
test_array @<:@0@:>@ = 0
|
22113 |
|
|
|
22114 |
|
|
;
|
22115 |
|
|
return 0;
|
22116 |
|
|
}
|
22117 |
|
|
_ACEOF
|
22118 |
|
|
rm -f conftest.$ac_objext
|
22119 |
|
|
if { (ac_try="$ac_compile"
|
22120 |
|
|
case "(($ac_try" in
|
22121 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22122 |
|
|
*) ac_try_echo=$ac_try;;
|
22123 |
|
|
esac
|
22124 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22125 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22126 |
|
|
ac_status=$?
|
22127 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22128 |
|
|
rm -f conftest.er1
|
22129 |
|
|
cat conftest.err >&5
|
22130 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22131 |
|
|
(exit $ac_status); } && {
|
22132 |
|
|
test -z "$ac_c_werror_flag" ||
|
22133 |
|
|
test ! -s conftest.err
|
22134 |
|
|
} && test -s conftest.$ac_objext; then
|
22135 |
|
|
ac_lo=$ac_mid; break
|
22136 |
|
|
else
|
22137 |
|
|
echo "$as_me: failed program was:" >&5
|
22138 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22139 |
|
|
|
22140 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
22141 |
|
|
if test $ac_mid -le $ac_hi; then
|
22142 |
|
|
ac_lo= ac_hi=
|
22143 |
|
|
break
|
22144 |
|
|
fi
|
22145 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
22146 |
|
|
fi
|
22147 |
|
|
|
22148 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22149 |
|
|
done
|
22150 |
|
|
else
|
22151 |
|
|
echo "$as_me: failed program was:" >&5
|
22152 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22153 |
|
|
|
22154 |
|
|
ac_lo= ac_hi=
|
22155 |
|
|
fi
|
22156 |
|
|
|
22157 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22158 |
|
|
fi
|
22159 |
|
|
|
22160 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22161 |
|
|
# Binary search between lo and hi bounds.
|
22162 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
22163 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
22164 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22165 |
|
|
/* confdefs.h. */
|
22166 |
|
|
_ACEOF
|
22167 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22168 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22169 |
|
|
/* end confdefs.h. */
|
22170 |
|
|
$ac_includes_default
|
22171 |
|
|
typedef char ac__type_sizeof_;
|
22172 |
|
|
int
|
22173 |
|
|
main ()
|
22174 |
|
|
{
|
22175 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
22176 |
|
|
test_array @<:@0@:>@ = 0
|
22177 |
|
|
|
22178 |
|
|
;
|
22179 |
|
|
return 0;
|
22180 |
|
|
}
|
22181 |
|
|
_ACEOF
|
22182 |
|
|
rm -f conftest.$ac_objext
|
22183 |
|
|
if { (ac_try="$ac_compile"
|
22184 |
|
|
case "(($ac_try" in
|
22185 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22186 |
|
|
*) ac_try_echo=$ac_try;;
|
22187 |
|
|
esac
|
22188 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22189 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22190 |
|
|
ac_status=$?
|
22191 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22192 |
|
|
rm -f conftest.er1
|
22193 |
|
|
cat conftest.err >&5
|
22194 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22195 |
|
|
(exit $ac_status); } && {
|
22196 |
|
|
test -z "$ac_c_werror_flag" ||
|
22197 |
|
|
test ! -s conftest.err
|
22198 |
|
|
} && test -s conftest.$ac_objext; then
|
22199 |
|
|
ac_hi=$ac_mid
|
22200 |
|
|
else
|
22201 |
|
|
echo "$as_me: failed program was:" >&5
|
22202 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22203 |
|
|
|
22204 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
22205 |
|
|
fi
|
22206 |
|
|
|
22207 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22208 |
|
|
done
|
22209 |
|
|
case $ac_lo in
|
22210 |
|
|
?*) ac_cv_sizeof_char=$ac_lo;;
|
22211 |
|
|
'') if test "$ac_cv_type_char" = yes; then
|
22212 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
|
22213 |
|
|
See \`config.log' for more details." >&5
|
22214 |
|
|
echo "$as_me: error: cannot compute sizeof (char)
|
22215 |
|
|
See \`config.log' for more details." >&2;}
|
22216 |
|
|
{ (exit 77); exit 77; }; }
|
22217 |
|
|
else
|
22218 |
|
|
ac_cv_sizeof_char=0
|
22219 |
|
|
fi ;;
|
22220 |
|
|
esac
|
22221 |
|
|
else
|
22222 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22223 |
|
|
/* confdefs.h. */
|
22224 |
|
|
_ACEOF
|
22225 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22226 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22227 |
|
|
/* end confdefs.h. */
|
22228 |
|
|
$ac_includes_default
|
22229 |
|
|
typedef char ac__type_sizeof_;
|
22230 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
22231 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
22232 |
|
|
@%:@include
|
22233 |
|
|
@%:@include
|
22234 |
|
|
int
|
22235 |
|
|
main ()
|
22236 |
|
|
{
|
22237 |
|
|
|
22238 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
22239 |
|
|
if (! f)
|
22240 |
|
|
return 1;
|
22241 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
22242 |
|
|
{
|
22243 |
|
|
long int i = longval ();
|
22244 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
22245 |
|
|
return 1;
|
22246 |
|
|
fprintf (f, "%ld\n", i);
|
22247 |
|
|
}
|
22248 |
|
|
else
|
22249 |
|
|
{
|
22250 |
|
|
unsigned long int i = ulongval ();
|
22251 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
22252 |
|
|
return 1;
|
22253 |
|
|
fprintf (f, "%lu\n", i);
|
22254 |
|
|
}
|
22255 |
|
|
return ferror (f) || fclose (f) != 0;
|
22256 |
|
|
|
22257 |
|
|
;
|
22258 |
|
|
return 0;
|
22259 |
|
|
}
|
22260 |
|
|
_ACEOF
|
22261 |
|
|
rm -f conftest$ac_exeext
|
22262 |
|
|
if { (ac_try="$ac_link"
|
22263 |
|
|
case "(($ac_try" in
|
22264 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22265 |
|
|
*) ac_try_echo=$ac_try;;
|
22266 |
|
|
esac
|
22267 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22268 |
|
|
(eval "$ac_link") 2>&5
|
22269 |
|
|
ac_status=$?
|
22270 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22271 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
22272 |
|
|
{ (case "(($ac_try" in
|
22273 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22274 |
|
|
*) ac_try_echo=$ac_try;;
|
22275 |
|
|
esac
|
22276 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22277 |
|
|
(eval "$ac_try") 2>&5
|
22278 |
|
|
ac_status=$?
|
22279 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22280 |
|
|
(exit $ac_status); }; }; then
|
22281 |
|
|
ac_cv_sizeof_char=`cat conftest.val`
|
22282 |
|
|
else
|
22283 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
22284 |
|
|
echo "$as_me: failed program was:" >&5
|
22285 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22286 |
|
|
|
22287 |
|
|
( exit $ac_status )
|
22288 |
|
|
if test "$ac_cv_type_char" = yes; then
|
22289 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
|
22290 |
|
|
See \`config.log' for more details." >&5
|
22291 |
|
|
echo "$as_me: error: cannot compute sizeof (char)
|
22292 |
|
|
See \`config.log' for more details." >&2;}
|
22293 |
|
|
{ (exit 77); exit 77; }; }
|
22294 |
|
|
else
|
22295 |
|
|
ac_cv_sizeof_char=0
|
22296 |
|
|
fi
|
22297 |
|
|
fi
|
22298 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
22299 |
|
|
fi
|
22300 |
|
|
rm -f conftest.val
|
22301 |
|
|
fi
|
22302 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
|
22303 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
|
22304 |
|
|
|
22305 |
|
|
|
22306 |
|
|
|
22307 |
|
|
cat >>confdefs.h <<_ACEOF
|
22308 |
|
|
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
|
22309 |
|
|
_ACEOF
|
22310 |
|
|
|
22311 |
|
|
|
22312 |
|
|
{ echo "$as_me:$LINENO: checking for short" >&5
|
22313 |
|
|
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
|
22314 |
|
|
if test "${ac_cv_type_short+set}" = set; then
|
22315 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22316 |
|
|
else
|
22317 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22318 |
|
|
/* confdefs.h. */
|
22319 |
|
|
_ACEOF
|
22320 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22321 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22322 |
|
|
/* end confdefs.h. */
|
22323 |
|
|
$ac_includes_default
|
22324 |
|
|
typedef short ac__type_new_;
|
22325 |
|
|
int
|
22326 |
|
|
main ()
|
22327 |
|
|
{
|
22328 |
|
|
if ((ac__type_new_ *) 0)
|
22329 |
|
|
return 0;
|
22330 |
|
|
if (sizeof (ac__type_new_))
|
22331 |
|
|
return 0;
|
22332 |
|
|
;
|
22333 |
|
|
return 0;
|
22334 |
|
|
}
|
22335 |
|
|
_ACEOF
|
22336 |
|
|
rm -f conftest.$ac_objext
|
22337 |
|
|
if { (ac_try="$ac_compile"
|
22338 |
|
|
case "(($ac_try" in
|
22339 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22340 |
|
|
*) ac_try_echo=$ac_try;;
|
22341 |
|
|
esac
|
22342 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22343 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22344 |
|
|
ac_status=$?
|
22345 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22346 |
|
|
rm -f conftest.er1
|
22347 |
|
|
cat conftest.err >&5
|
22348 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22349 |
|
|
(exit $ac_status); } && {
|
22350 |
|
|
test -z "$ac_c_werror_flag" ||
|
22351 |
|
|
test ! -s conftest.err
|
22352 |
|
|
} && test -s conftest.$ac_objext; then
|
22353 |
|
|
ac_cv_type_short=yes
|
22354 |
|
|
else
|
22355 |
|
|
echo "$as_me: failed program was:" >&5
|
22356 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22357 |
|
|
|
22358 |
|
|
ac_cv_type_short=no
|
22359 |
|
|
fi
|
22360 |
|
|
|
22361 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22362 |
|
|
fi
|
22363 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
|
22364 |
|
|
echo "${ECHO_T}$ac_cv_type_short" >&6; }
|
22365 |
|
|
|
22366 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
22367 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
22368 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
22369 |
|
|
# This bug is HP SR number 8606223364.
|
22370 |
|
|
{ echo "$as_me:$LINENO: checking size of short" >&5
|
22371 |
|
|
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
|
22372 |
|
|
if test "${ac_cv_sizeof_short+set}" = set; then
|
22373 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22374 |
|
|
else
|
22375 |
|
|
if test "$cross_compiling" = yes; then
|
22376 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
22377 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22378 |
|
|
/* confdefs.h. */
|
22379 |
|
|
_ACEOF
|
22380 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22381 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22382 |
|
|
/* end confdefs.h. */
|
22383 |
|
|
$ac_includes_default
|
22384 |
|
|
typedef short ac__type_sizeof_;
|
22385 |
|
|
int
|
22386 |
|
|
main ()
|
22387 |
|
|
{
|
22388 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
22389 |
|
|
test_array @<:@0@:>@ = 0
|
22390 |
|
|
|
22391 |
|
|
;
|
22392 |
|
|
return 0;
|
22393 |
|
|
}
|
22394 |
|
|
_ACEOF
|
22395 |
|
|
rm -f conftest.$ac_objext
|
22396 |
|
|
if { (ac_try="$ac_compile"
|
22397 |
|
|
case "(($ac_try" in
|
22398 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22399 |
|
|
*) ac_try_echo=$ac_try;;
|
22400 |
|
|
esac
|
22401 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22402 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22403 |
|
|
ac_status=$?
|
22404 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22405 |
|
|
rm -f conftest.er1
|
22406 |
|
|
cat conftest.err >&5
|
22407 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22408 |
|
|
(exit $ac_status); } && {
|
22409 |
|
|
test -z "$ac_c_werror_flag" ||
|
22410 |
|
|
test ! -s conftest.err
|
22411 |
|
|
} && test -s conftest.$ac_objext; then
|
22412 |
|
|
ac_lo=0 ac_mid=0
|
22413 |
|
|
while :; do
|
22414 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22415 |
|
|
/* confdefs.h. */
|
22416 |
|
|
_ACEOF
|
22417 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22418 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22419 |
|
|
/* end confdefs.h. */
|
22420 |
|
|
$ac_includes_default
|
22421 |
|
|
typedef short ac__type_sizeof_;
|
22422 |
|
|
int
|
22423 |
|
|
main ()
|
22424 |
|
|
{
|
22425 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
22426 |
|
|
test_array @<:@0@:>@ = 0
|
22427 |
|
|
|
22428 |
|
|
;
|
22429 |
|
|
return 0;
|
22430 |
|
|
}
|
22431 |
|
|
_ACEOF
|
22432 |
|
|
rm -f conftest.$ac_objext
|
22433 |
|
|
if { (ac_try="$ac_compile"
|
22434 |
|
|
case "(($ac_try" in
|
22435 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22436 |
|
|
*) ac_try_echo=$ac_try;;
|
22437 |
|
|
esac
|
22438 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22439 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22440 |
|
|
ac_status=$?
|
22441 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22442 |
|
|
rm -f conftest.er1
|
22443 |
|
|
cat conftest.err >&5
|
22444 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22445 |
|
|
(exit $ac_status); } && {
|
22446 |
|
|
test -z "$ac_c_werror_flag" ||
|
22447 |
|
|
test ! -s conftest.err
|
22448 |
|
|
} && test -s conftest.$ac_objext; then
|
22449 |
|
|
ac_hi=$ac_mid; break
|
22450 |
|
|
else
|
22451 |
|
|
echo "$as_me: failed program was:" >&5
|
22452 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22453 |
|
|
|
22454 |
|
|
ac_lo=`expr $ac_mid + 1`
|
22455 |
|
|
if test $ac_lo -le $ac_mid; then
|
22456 |
|
|
ac_lo= ac_hi=
|
22457 |
|
|
break
|
22458 |
|
|
fi
|
22459 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
22460 |
|
|
fi
|
22461 |
|
|
|
22462 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22463 |
|
|
done
|
22464 |
|
|
else
|
22465 |
|
|
echo "$as_me: failed program was:" >&5
|
22466 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22467 |
|
|
|
22468 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22469 |
|
|
/* confdefs.h. */
|
22470 |
|
|
_ACEOF
|
22471 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22472 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22473 |
|
|
/* end confdefs.h. */
|
22474 |
|
|
$ac_includes_default
|
22475 |
|
|
typedef short ac__type_sizeof_;
|
22476 |
|
|
int
|
22477 |
|
|
main ()
|
22478 |
|
|
{
|
22479 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
22480 |
|
|
test_array @<:@0@:>@ = 0
|
22481 |
|
|
|
22482 |
|
|
;
|
22483 |
|
|
return 0;
|
22484 |
|
|
}
|
22485 |
|
|
_ACEOF
|
22486 |
|
|
rm -f conftest.$ac_objext
|
22487 |
|
|
if { (ac_try="$ac_compile"
|
22488 |
|
|
case "(($ac_try" in
|
22489 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22490 |
|
|
*) ac_try_echo=$ac_try;;
|
22491 |
|
|
esac
|
22492 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22493 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22494 |
|
|
ac_status=$?
|
22495 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22496 |
|
|
rm -f conftest.er1
|
22497 |
|
|
cat conftest.err >&5
|
22498 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22499 |
|
|
(exit $ac_status); } && {
|
22500 |
|
|
test -z "$ac_c_werror_flag" ||
|
22501 |
|
|
test ! -s conftest.err
|
22502 |
|
|
} && test -s conftest.$ac_objext; then
|
22503 |
|
|
ac_hi=-1 ac_mid=-1
|
22504 |
|
|
while :; do
|
22505 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22506 |
|
|
/* confdefs.h. */
|
22507 |
|
|
_ACEOF
|
22508 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22509 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22510 |
|
|
/* end confdefs.h. */
|
22511 |
|
|
$ac_includes_default
|
22512 |
|
|
typedef short ac__type_sizeof_;
|
22513 |
|
|
int
|
22514 |
|
|
main ()
|
22515 |
|
|
{
|
22516 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
22517 |
|
|
test_array @<:@0@:>@ = 0
|
22518 |
|
|
|
22519 |
|
|
;
|
22520 |
|
|
return 0;
|
22521 |
|
|
}
|
22522 |
|
|
_ACEOF
|
22523 |
|
|
rm -f conftest.$ac_objext
|
22524 |
|
|
if { (ac_try="$ac_compile"
|
22525 |
|
|
case "(($ac_try" in
|
22526 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22527 |
|
|
*) ac_try_echo=$ac_try;;
|
22528 |
|
|
esac
|
22529 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22530 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22531 |
|
|
ac_status=$?
|
22532 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22533 |
|
|
rm -f conftest.er1
|
22534 |
|
|
cat conftest.err >&5
|
22535 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22536 |
|
|
(exit $ac_status); } && {
|
22537 |
|
|
test -z "$ac_c_werror_flag" ||
|
22538 |
|
|
test ! -s conftest.err
|
22539 |
|
|
} && test -s conftest.$ac_objext; then
|
22540 |
|
|
ac_lo=$ac_mid; break
|
22541 |
|
|
else
|
22542 |
|
|
echo "$as_me: failed program was:" >&5
|
22543 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22544 |
|
|
|
22545 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
22546 |
|
|
if test $ac_mid -le $ac_hi; then
|
22547 |
|
|
ac_lo= ac_hi=
|
22548 |
|
|
break
|
22549 |
|
|
fi
|
22550 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
22551 |
|
|
fi
|
22552 |
|
|
|
22553 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22554 |
|
|
done
|
22555 |
|
|
else
|
22556 |
|
|
echo "$as_me: failed program was:" >&5
|
22557 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22558 |
|
|
|
22559 |
|
|
ac_lo= ac_hi=
|
22560 |
|
|
fi
|
22561 |
|
|
|
22562 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22563 |
|
|
fi
|
22564 |
|
|
|
22565 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22566 |
|
|
# Binary search between lo and hi bounds.
|
22567 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
22568 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
22569 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22570 |
|
|
/* confdefs.h. */
|
22571 |
|
|
_ACEOF
|
22572 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22573 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22574 |
|
|
/* end confdefs.h. */
|
22575 |
|
|
$ac_includes_default
|
22576 |
|
|
typedef short ac__type_sizeof_;
|
22577 |
|
|
int
|
22578 |
|
|
main ()
|
22579 |
|
|
{
|
22580 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
22581 |
|
|
test_array @<:@0@:>@ = 0
|
22582 |
|
|
|
22583 |
|
|
;
|
22584 |
|
|
return 0;
|
22585 |
|
|
}
|
22586 |
|
|
_ACEOF
|
22587 |
|
|
rm -f conftest.$ac_objext
|
22588 |
|
|
if { (ac_try="$ac_compile"
|
22589 |
|
|
case "(($ac_try" in
|
22590 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22591 |
|
|
*) ac_try_echo=$ac_try;;
|
22592 |
|
|
esac
|
22593 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22594 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22595 |
|
|
ac_status=$?
|
22596 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22597 |
|
|
rm -f conftest.er1
|
22598 |
|
|
cat conftest.err >&5
|
22599 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22600 |
|
|
(exit $ac_status); } && {
|
22601 |
|
|
test -z "$ac_c_werror_flag" ||
|
22602 |
|
|
test ! -s conftest.err
|
22603 |
|
|
} && test -s conftest.$ac_objext; then
|
22604 |
|
|
ac_hi=$ac_mid
|
22605 |
|
|
else
|
22606 |
|
|
echo "$as_me: failed program was:" >&5
|
22607 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22608 |
|
|
|
22609 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
22610 |
|
|
fi
|
22611 |
|
|
|
22612 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22613 |
|
|
done
|
22614 |
|
|
case $ac_lo in
|
22615 |
|
|
?*) ac_cv_sizeof_short=$ac_lo;;
|
22616 |
|
|
'') if test "$ac_cv_type_short" = yes; then
|
22617 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
22618 |
|
|
See \`config.log' for more details." >&5
|
22619 |
|
|
echo "$as_me: error: cannot compute sizeof (short)
|
22620 |
|
|
See \`config.log' for more details." >&2;}
|
22621 |
|
|
{ (exit 77); exit 77; }; }
|
22622 |
|
|
else
|
22623 |
|
|
ac_cv_sizeof_short=0
|
22624 |
|
|
fi ;;
|
22625 |
|
|
esac
|
22626 |
|
|
else
|
22627 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22628 |
|
|
/* confdefs.h. */
|
22629 |
|
|
_ACEOF
|
22630 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22631 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22632 |
|
|
/* end confdefs.h. */
|
22633 |
|
|
$ac_includes_default
|
22634 |
|
|
typedef short ac__type_sizeof_;
|
22635 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
22636 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
22637 |
|
|
@%:@include
|
22638 |
|
|
@%:@include
|
22639 |
|
|
int
|
22640 |
|
|
main ()
|
22641 |
|
|
{
|
22642 |
|
|
|
22643 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
22644 |
|
|
if (! f)
|
22645 |
|
|
return 1;
|
22646 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
22647 |
|
|
{
|
22648 |
|
|
long int i = longval ();
|
22649 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
22650 |
|
|
return 1;
|
22651 |
|
|
fprintf (f, "%ld\n", i);
|
22652 |
|
|
}
|
22653 |
|
|
else
|
22654 |
|
|
{
|
22655 |
|
|
unsigned long int i = ulongval ();
|
22656 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
22657 |
|
|
return 1;
|
22658 |
|
|
fprintf (f, "%lu\n", i);
|
22659 |
|
|
}
|
22660 |
|
|
return ferror (f) || fclose (f) != 0;
|
22661 |
|
|
|
22662 |
|
|
;
|
22663 |
|
|
return 0;
|
22664 |
|
|
}
|
22665 |
|
|
_ACEOF
|
22666 |
|
|
rm -f conftest$ac_exeext
|
22667 |
|
|
if { (ac_try="$ac_link"
|
22668 |
|
|
case "(($ac_try" in
|
22669 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22670 |
|
|
*) ac_try_echo=$ac_try;;
|
22671 |
|
|
esac
|
22672 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22673 |
|
|
(eval "$ac_link") 2>&5
|
22674 |
|
|
ac_status=$?
|
22675 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22676 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
22677 |
|
|
{ (case "(($ac_try" in
|
22678 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22679 |
|
|
*) ac_try_echo=$ac_try;;
|
22680 |
|
|
esac
|
22681 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22682 |
|
|
(eval "$ac_try") 2>&5
|
22683 |
|
|
ac_status=$?
|
22684 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22685 |
|
|
(exit $ac_status); }; }; then
|
22686 |
|
|
ac_cv_sizeof_short=`cat conftest.val`
|
22687 |
|
|
else
|
22688 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
22689 |
|
|
echo "$as_me: failed program was:" >&5
|
22690 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22691 |
|
|
|
22692 |
|
|
( exit $ac_status )
|
22693 |
|
|
if test "$ac_cv_type_short" = yes; then
|
22694 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
22695 |
|
|
See \`config.log' for more details." >&5
|
22696 |
|
|
echo "$as_me: error: cannot compute sizeof (short)
|
22697 |
|
|
See \`config.log' for more details." >&2;}
|
22698 |
|
|
{ (exit 77); exit 77; }; }
|
22699 |
|
|
else
|
22700 |
|
|
ac_cv_sizeof_short=0
|
22701 |
|
|
fi
|
22702 |
|
|
fi
|
22703 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
22704 |
|
|
fi
|
22705 |
|
|
rm -f conftest.val
|
22706 |
|
|
fi
|
22707 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
|
22708 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
|
22709 |
|
|
|
22710 |
|
|
|
22711 |
|
|
|
22712 |
|
|
cat >>confdefs.h <<_ACEOF
|
22713 |
|
|
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
|
22714 |
|
|
_ACEOF
|
22715 |
|
|
|
22716 |
|
|
|
22717 |
|
|
{ echo "$as_me:$LINENO: checking for int" >&5
|
22718 |
|
|
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
|
22719 |
|
|
if test "${ac_cv_type_int+set}" = set; then
|
22720 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22721 |
|
|
else
|
22722 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22723 |
|
|
/* confdefs.h. */
|
22724 |
|
|
_ACEOF
|
22725 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22726 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22727 |
|
|
/* end confdefs.h. */
|
22728 |
|
|
$ac_includes_default
|
22729 |
|
|
typedef int ac__type_new_;
|
22730 |
|
|
int
|
22731 |
|
|
main ()
|
22732 |
|
|
{
|
22733 |
|
|
if ((ac__type_new_ *) 0)
|
22734 |
|
|
return 0;
|
22735 |
|
|
if (sizeof (ac__type_new_))
|
22736 |
|
|
return 0;
|
22737 |
|
|
;
|
22738 |
|
|
return 0;
|
22739 |
|
|
}
|
22740 |
|
|
_ACEOF
|
22741 |
|
|
rm -f conftest.$ac_objext
|
22742 |
|
|
if { (ac_try="$ac_compile"
|
22743 |
|
|
case "(($ac_try" in
|
22744 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22745 |
|
|
*) ac_try_echo=$ac_try;;
|
22746 |
|
|
esac
|
22747 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22748 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22749 |
|
|
ac_status=$?
|
22750 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22751 |
|
|
rm -f conftest.er1
|
22752 |
|
|
cat conftest.err >&5
|
22753 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22754 |
|
|
(exit $ac_status); } && {
|
22755 |
|
|
test -z "$ac_c_werror_flag" ||
|
22756 |
|
|
test ! -s conftest.err
|
22757 |
|
|
} && test -s conftest.$ac_objext; then
|
22758 |
|
|
ac_cv_type_int=yes
|
22759 |
|
|
else
|
22760 |
|
|
echo "$as_me: failed program was:" >&5
|
22761 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22762 |
|
|
|
22763 |
|
|
ac_cv_type_int=no
|
22764 |
|
|
fi
|
22765 |
|
|
|
22766 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22767 |
|
|
fi
|
22768 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
|
22769 |
|
|
echo "${ECHO_T}$ac_cv_type_int" >&6; }
|
22770 |
|
|
|
22771 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
22772 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
22773 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
22774 |
|
|
# This bug is HP SR number 8606223364.
|
22775 |
|
|
{ echo "$as_me:$LINENO: checking size of int" >&5
|
22776 |
|
|
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
|
22777 |
|
|
if test "${ac_cv_sizeof_int+set}" = set; then
|
22778 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
22779 |
|
|
else
|
22780 |
|
|
if test "$cross_compiling" = yes; then
|
22781 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
22782 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22783 |
|
|
/* confdefs.h. */
|
22784 |
|
|
_ACEOF
|
22785 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22786 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22787 |
|
|
/* end confdefs.h. */
|
22788 |
|
|
$ac_includes_default
|
22789 |
|
|
typedef int ac__type_sizeof_;
|
22790 |
|
|
int
|
22791 |
|
|
main ()
|
22792 |
|
|
{
|
22793 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
22794 |
|
|
test_array @<:@0@:>@ = 0
|
22795 |
|
|
|
22796 |
|
|
;
|
22797 |
|
|
return 0;
|
22798 |
|
|
}
|
22799 |
|
|
_ACEOF
|
22800 |
|
|
rm -f conftest.$ac_objext
|
22801 |
|
|
if { (ac_try="$ac_compile"
|
22802 |
|
|
case "(($ac_try" in
|
22803 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22804 |
|
|
*) ac_try_echo=$ac_try;;
|
22805 |
|
|
esac
|
22806 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22807 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22808 |
|
|
ac_status=$?
|
22809 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22810 |
|
|
rm -f conftest.er1
|
22811 |
|
|
cat conftest.err >&5
|
22812 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22813 |
|
|
(exit $ac_status); } && {
|
22814 |
|
|
test -z "$ac_c_werror_flag" ||
|
22815 |
|
|
test ! -s conftest.err
|
22816 |
|
|
} && test -s conftest.$ac_objext; then
|
22817 |
|
|
ac_lo=0 ac_mid=0
|
22818 |
|
|
while :; do
|
22819 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22820 |
|
|
/* confdefs.h. */
|
22821 |
|
|
_ACEOF
|
22822 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22823 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22824 |
|
|
/* end confdefs.h. */
|
22825 |
|
|
$ac_includes_default
|
22826 |
|
|
typedef int ac__type_sizeof_;
|
22827 |
|
|
int
|
22828 |
|
|
main ()
|
22829 |
|
|
{
|
22830 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
22831 |
|
|
test_array @<:@0@:>@ = 0
|
22832 |
|
|
|
22833 |
|
|
;
|
22834 |
|
|
return 0;
|
22835 |
|
|
}
|
22836 |
|
|
_ACEOF
|
22837 |
|
|
rm -f conftest.$ac_objext
|
22838 |
|
|
if { (ac_try="$ac_compile"
|
22839 |
|
|
case "(($ac_try" in
|
22840 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22841 |
|
|
*) ac_try_echo=$ac_try;;
|
22842 |
|
|
esac
|
22843 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22844 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22845 |
|
|
ac_status=$?
|
22846 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22847 |
|
|
rm -f conftest.er1
|
22848 |
|
|
cat conftest.err >&5
|
22849 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22850 |
|
|
(exit $ac_status); } && {
|
22851 |
|
|
test -z "$ac_c_werror_flag" ||
|
22852 |
|
|
test ! -s conftest.err
|
22853 |
|
|
} && test -s conftest.$ac_objext; then
|
22854 |
|
|
ac_hi=$ac_mid; break
|
22855 |
|
|
else
|
22856 |
|
|
echo "$as_me: failed program was:" >&5
|
22857 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22858 |
|
|
|
22859 |
|
|
ac_lo=`expr $ac_mid + 1`
|
22860 |
|
|
if test $ac_lo -le $ac_mid; then
|
22861 |
|
|
ac_lo= ac_hi=
|
22862 |
|
|
break
|
22863 |
|
|
fi
|
22864 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
22865 |
|
|
fi
|
22866 |
|
|
|
22867 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22868 |
|
|
done
|
22869 |
|
|
else
|
22870 |
|
|
echo "$as_me: failed program was:" >&5
|
22871 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22872 |
|
|
|
22873 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22874 |
|
|
/* confdefs.h. */
|
22875 |
|
|
_ACEOF
|
22876 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22877 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22878 |
|
|
/* end confdefs.h. */
|
22879 |
|
|
$ac_includes_default
|
22880 |
|
|
typedef int ac__type_sizeof_;
|
22881 |
|
|
int
|
22882 |
|
|
main ()
|
22883 |
|
|
{
|
22884 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
22885 |
|
|
test_array @<:@0@:>@ = 0
|
22886 |
|
|
|
22887 |
|
|
;
|
22888 |
|
|
return 0;
|
22889 |
|
|
}
|
22890 |
|
|
_ACEOF
|
22891 |
|
|
rm -f conftest.$ac_objext
|
22892 |
|
|
if { (ac_try="$ac_compile"
|
22893 |
|
|
case "(($ac_try" in
|
22894 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22895 |
|
|
*) ac_try_echo=$ac_try;;
|
22896 |
|
|
esac
|
22897 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22898 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22899 |
|
|
ac_status=$?
|
22900 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22901 |
|
|
rm -f conftest.er1
|
22902 |
|
|
cat conftest.err >&5
|
22903 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22904 |
|
|
(exit $ac_status); } && {
|
22905 |
|
|
test -z "$ac_c_werror_flag" ||
|
22906 |
|
|
test ! -s conftest.err
|
22907 |
|
|
} && test -s conftest.$ac_objext; then
|
22908 |
|
|
ac_hi=-1 ac_mid=-1
|
22909 |
|
|
while :; do
|
22910 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22911 |
|
|
/* confdefs.h. */
|
22912 |
|
|
_ACEOF
|
22913 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22914 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22915 |
|
|
/* end confdefs.h. */
|
22916 |
|
|
$ac_includes_default
|
22917 |
|
|
typedef int ac__type_sizeof_;
|
22918 |
|
|
int
|
22919 |
|
|
main ()
|
22920 |
|
|
{
|
22921 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
22922 |
|
|
test_array @<:@0@:>@ = 0
|
22923 |
|
|
|
22924 |
|
|
;
|
22925 |
|
|
return 0;
|
22926 |
|
|
}
|
22927 |
|
|
_ACEOF
|
22928 |
|
|
rm -f conftest.$ac_objext
|
22929 |
|
|
if { (ac_try="$ac_compile"
|
22930 |
|
|
case "(($ac_try" in
|
22931 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22932 |
|
|
*) ac_try_echo=$ac_try;;
|
22933 |
|
|
esac
|
22934 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22935 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
22936 |
|
|
ac_status=$?
|
22937 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
22938 |
|
|
rm -f conftest.er1
|
22939 |
|
|
cat conftest.err >&5
|
22940 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22941 |
|
|
(exit $ac_status); } && {
|
22942 |
|
|
test -z "$ac_c_werror_flag" ||
|
22943 |
|
|
test ! -s conftest.err
|
22944 |
|
|
} && test -s conftest.$ac_objext; then
|
22945 |
|
|
ac_lo=$ac_mid; break
|
22946 |
|
|
else
|
22947 |
|
|
echo "$as_me: failed program was:" >&5
|
22948 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22949 |
|
|
|
22950 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
22951 |
|
|
if test $ac_mid -le $ac_hi; then
|
22952 |
|
|
ac_lo= ac_hi=
|
22953 |
|
|
break
|
22954 |
|
|
fi
|
22955 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
22956 |
|
|
fi
|
22957 |
|
|
|
22958 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22959 |
|
|
done
|
22960 |
|
|
else
|
22961 |
|
|
echo "$as_me: failed program was:" >&5
|
22962 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
22963 |
|
|
|
22964 |
|
|
ac_lo= ac_hi=
|
22965 |
|
|
fi
|
22966 |
|
|
|
22967 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22968 |
|
|
fi
|
22969 |
|
|
|
22970 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
22971 |
|
|
# Binary search between lo and hi bounds.
|
22972 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
22973 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
22974 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
22975 |
|
|
/* confdefs.h. */
|
22976 |
|
|
_ACEOF
|
22977 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
22978 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
22979 |
|
|
/* end confdefs.h. */
|
22980 |
|
|
$ac_includes_default
|
22981 |
|
|
typedef int ac__type_sizeof_;
|
22982 |
|
|
int
|
22983 |
|
|
main ()
|
22984 |
|
|
{
|
22985 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
22986 |
|
|
test_array @<:@0@:>@ = 0
|
22987 |
|
|
|
22988 |
|
|
;
|
22989 |
|
|
return 0;
|
22990 |
|
|
}
|
22991 |
|
|
_ACEOF
|
22992 |
|
|
rm -f conftest.$ac_objext
|
22993 |
|
|
if { (ac_try="$ac_compile"
|
22994 |
|
|
case "(($ac_try" in
|
22995 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
22996 |
|
|
*) ac_try_echo=$ac_try;;
|
22997 |
|
|
esac
|
22998 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
22999 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23000 |
|
|
ac_status=$?
|
23001 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23002 |
|
|
rm -f conftest.er1
|
23003 |
|
|
cat conftest.err >&5
|
23004 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23005 |
|
|
(exit $ac_status); } && {
|
23006 |
|
|
test -z "$ac_c_werror_flag" ||
|
23007 |
|
|
test ! -s conftest.err
|
23008 |
|
|
} && test -s conftest.$ac_objext; then
|
23009 |
|
|
ac_hi=$ac_mid
|
23010 |
|
|
else
|
23011 |
|
|
echo "$as_me: failed program was:" >&5
|
23012 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23013 |
|
|
|
23014 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
23015 |
|
|
fi
|
23016 |
|
|
|
23017 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23018 |
|
|
done
|
23019 |
|
|
case $ac_lo in
|
23020 |
|
|
?*) ac_cv_sizeof_int=$ac_lo;;
|
23021 |
|
|
'') if test "$ac_cv_type_int" = yes; then
|
23022 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
23023 |
|
|
See \`config.log' for more details." >&5
|
23024 |
|
|
echo "$as_me: error: cannot compute sizeof (int)
|
23025 |
|
|
See \`config.log' for more details." >&2;}
|
23026 |
|
|
{ (exit 77); exit 77; }; }
|
23027 |
|
|
else
|
23028 |
|
|
ac_cv_sizeof_int=0
|
23029 |
|
|
fi ;;
|
23030 |
|
|
esac
|
23031 |
|
|
else
|
23032 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23033 |
|
|
/* confdefs.h. */
|
23034 |
|
|
_ACEOF
|
23035 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23036 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23037 |
|
|
/* end confdefs.h. */
|
23038 |
|
|
$ac_includes_default
|
23039 |
|
|
typedef int ac__type_sizeof_;
|
23040 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
23041 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
23042 |
|
|
@%:@include
|
23043 |
|
|
@%:@include
|
23044 |
|
|
int
|
23045 |
|
|
main ()
|
23046 |
|
|
{
|
23047 |
|
|
|
23048 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
23049 |
|
|
if (! f)
|
23050 |
|
|
return 1;
|
23051 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
23052 |
|
|
{
|
23053 |
|
|
long int i = longval ();
|
23054 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
23055 |
|
|
return 1;
|
23056 |
|
|
fprintf (f, "%ld\n", i);
|
23057 |
|
|
}
|
23058 |
|
|
else
|
23059 |
|
|
{
|
23060 |
|
|
unsigned long int i = ulongval ();
|
23061 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
23062 |
|
|
return 1;
|
23063 |
|
|
fprintf (f, "%lu\n", i);
|
23064 |
|
|
}
|
23065 |
|
|
return ferror (f) || fclose (f) != 0;
|
23066 |
|
|
|
23067 |
|
|
;
|
23068 |
|
|
return 0;
|
23069 |
|
|
}
|
23070 |
|
|
_ACEOF
|
23071 |
|
|
rm -f conftest$ac_exeext
|
23072 |
|
|
if { (ac_try="$ac_link"
|
23073 |
|
|
case "(($ac_try" in
|
23074 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23075 |
|
|
*) ac_try_echo=$ac_try;;
|
23076 |
|
|
esac
|
23077 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23078 |
|
|
(eval "$ac_link") 2>&5
|
23079 |
|
|
ac_status=$?
|
23080 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23081 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
23082 |
|
|
{ (case "(($ac_try" in
|
23083 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23084 |
|
|
*) ac_try_echo=$ac_try;;
|
23085 |
|
|
esac
|
23086 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23087 |
|
|
(eval "$ac_try") 2>&5
|
23088 |
|
|
ac_status=$?
|
23089 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23090 |
|
|
(exit $ac_status); }; }; then
|
23091 |
|
|
ac_cv_sizeof_int=`cat conftest.val`
|
23092 |
|
|
else
|
23093 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
23094 |
|
|
echo "$as_me: failed program was:" >&5
|
23095 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23096 |
|
|
|
23097 |
|
|
( exit $ac_status )
|
23098 |
|
|
if test "$ac_cv_type_int" = yes; then
|
23099 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
23100 |
|
|
See \`config.log' for more details." >&5
|
23101 |
|
|
echo "$as_me: error: cannot compute sizeof (int)
|
23102 |
|
|
See \`config.log' for more details." >&2;}
|
23103 |
|
|
{ (exit 77); exit 77; }; }
|
23104 |
|
|
else
|
23105 |
|
|
ac_cv_sizeof_int=0
|
23106 |
|
|
fi
|
23107 |
|
|
fi
|
23108 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
23109 |
|
|
fi
|
23110 |
|
|
rm -f conftest.val
|
23111 |
|
|
fi
|
23112 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
|
23113 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
|
23114 |
|
|
|
23115 |
|
|
|
23116 |
|
|
|
23117 |
|
|
cat >>confdefs.h <<_ACEOF
|
23118 |
|
|
@%:@define SIZEOF_INT $ac_cv_sizeof_int
|
23119 |
|
|
_ACEOF
|
23120 |
|
|
|
23121 |
|
|
|
23122 |
|
|
{ echo "$as_me:$LINENO: checking for long" >&5
|
23123 |
|
|
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
|
23124 |
|
|
if test "${ac_cv_type_long+set}" = set; then
|
23125 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23126 |
|
|
else
|
23127 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23128 |
|
|
/* confdefs.h. */
|
23129 |
|
|
_ACEOF
|
23130 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23131 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23132 |
|
|
/* end confdefs.h. */
|
23133 |
|
|
$ac_includes_default
|
23134 |
|
|
typedef long ac__type_new_;
|
23135 |
|
|
int
|
23136 |
|
|
main ()
|
23137 |
|
|
{
|
23138 |
|
|
if ((ac__type_new_ *) 0)
|
23139 |
|
|
return 0;
|
23140 |
|
|
if (sizeof (ac__type_new_))
|
23141 |
|
|
return 0;
|
23142 |
|
|
;
|
23143 |
|
|
return 0;
|
23144 |
|
|
}
|
23145 |
|
|
_ACEOF
|
23146 |
|
|
rm -f conftest.$ac_objext
|
23147 |
|
|
if { (ac_try="$ac_compile"
|
23148 |
|
|
case "(($ac_try" in
|
23149 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23150 |
|
|
*) ac_try_echo=$ac_try;;
|
23151 |
|
|
esac
|
23152 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23153 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23154 |
|
|
ac_status=$?
|
23155 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23156 |
|
|
rm -f conftest.er1
|
23157 |
|
|
cat conftest.err >&5
|
23158 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23159 |
|
|
(exit $ac_status); } && {
|
23160 |
|
|
test -z "$ac_c_werror_flag" ||
|
23161 |
|
|
test ! -s conftest.err
|
23162 |
|
|
} && test -s conftest.$ac_objext; then
|
23163 |
|
|
ac_cv_type_long=yes
|
23164 |
|
|
else
|
23165 |
|
|
echo "$as_me: failed program was:" >&5
|
23166 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23167 |
|
|
|
23168 |
|
|
ac_cv_type_long=no
|
23169 |
|
|
fi
|
23170 |
|
|
|
23171 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23172 |
|
|
fi
|
23173 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
|
23174 |
|
|
echo "${ECHO_T}$ac_cv_type_long" >&6; }
|
23175 |
|
|
|
23176 |
|
|
# The cast to long int works around a bug in the HP C Compiler
|
23177 |
|
|
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
23178 |
|
|
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
23179 |
|
|
# This bug is HP SR number 8606223364.
|
23180 |
|
|
{ echo "$as_me:$LINENO: checking size of long" >&5
|
23181 |
|
|
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
|
23182 |
|
|
if test "${ac_cv_sizeof_long+set}" = set; then
|
23183 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23184 |
|
|
else
|
23185 |
|
|
if test "$cross_compiling" = yes; then
|
23186 |
|
|
# Depending upon the size, compute the lo and hi bounds.
|
23187 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23188 |
|
|
/* confdefs.h. */
|
23189 |
|
|
_ACEOF
|
23190 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23191 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23192 |
|
|
/* end confdefs.h. */
|
23193 |
|
|
$ac_includes_default
|
23194 |
|
|
typedef long ac__type_sizeof_;
|
23195 |
|
|
int
|
23196 |
|
|
main ()
|
23197 |
|
|
{
|
23198 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
|
23199 |
|
|
test_array @<:@0@:>@ = 0
|
23200 |
|
|
|
23201 |
|
|
;
|
23202 |
|
|
return 0;
|
23203 |
|
|
}
|
23204 |
|
|
_ACEOF
|
23205 |
|
|
rm -f conftest.$ac_objext
|
23206 |
|
|
if { (ac_try="$ac_compile"
|
23207 |
|
|
case "(($ac_try" in
|
23208 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23209 |
|
|
*) ac_try_echo=$ac_try;;
|
23210 |
|
|
esac
|
23211 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23212 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23213 |
|
|
ac_status=$?
|
23214 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23215 |
|
|
rm -f conftest.er1
|
23216 |
|
|
cat conftest.err >&5
|
23217 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23218 |
|
|
(exit $ac_status); } && {
|
23219 |
|
|
test -z "$ac_c_werror_flag" ||
|
23220 |
|
|
test ! -s conftest.err
|
23221 |
|
|
} && test -s conftest.$ac_objext; then
|
23222 |
|
|
ac_lo=0 ac_mid=0
|
23223 |
|
|
while :; do
|
23224 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23225 |
|
|
/* confdefs.h. */
|
23226 |
|
|
_ACEOF
|
23227 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23228 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23229 |
|
|
/* end confdefs.h. */
|
23230 |
|
|
$ac_includes_default
|
23231 |
|
|
typedef long ac__type_sizeof_;
|
23232 |
|
|
int
|
23233 |
|
|
main ()
|
23234 |
|
|
{
|
23235 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
23236 |
|
|
test_array @<:@0@:>@ = 0
|
23237 |
|
|
|
23238 |
|
|
;
|
23239 |
|
|
return 0;
|
23240 |
|
|
}
|
23241 |
|
|
_ACEOF
|
23242 |
|
|
rm -f conftest.$ac_objext
|
23243 |
|
|
if { (ac_try="$ac_compile"
|
23244 |
|
|
case "(($ac_try" in
|
23245 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23246 |
|
|
*) ac_try_echo=$ac_try;;
|
23247 |
|
|
esac
|
23248 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23249 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23250 |
|
|
ac_status=$?
|
23251 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23252 |
|
|
rm -f conftest.er1
|
23253 |
|
|
cat conftest.err >&5
|
23254 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23255 |
|
|
(exit $ac_status); } && {
|
23256 |
|
|
test -z "$ac_c_werror_flag" ||
|
23257 |
|
|
test ! -s conftest.err
|
23258 |
|
|
} && test -s conftest.$ac_objext; then
|
23259 |
|
|
ac_hi=$ac_mid; break
|
23260 |
|
|
else
|
23261 |
|
|
echo "$as_me: failed program was:" >&5
|
23262 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23263 |
|
|
|
23264 |
|
|
ac_lo=`expr $ac_mid + 1`
|
23265 |
|
|
if test $ac_lo -le $ac_mid; then
|
23266 |
|
|
ac_lo= ac_hi=
|
23267 |
|
|
break
|
23268 |
|
|
fi
|
23269 |
|
|
ac_mid=`expr 2 '*' $ac_mid + 1`
|
23270 |
|
|
fi
|
23271 |
|
|
|
23272 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23273 |
|
|
done
|
23274 |
|
|
else
|
23275 |
|
|
echo "$as_me: failed program was:" >&5
|
23276 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23277 |
|
|
|
23278 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23279 |
|
|
/* confdefs.h. */
|
23280 |
|
|
_ACEOF
|
23281 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23282 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23283 |
|
|
/* end confdefs.h. */
|
23284 |
|
|
$ac_includes_default
|
23285 |
|
|
typedef long ac__type_sizeof_;
|
23286 |
|
|
int
|
23287 |
|
|
main ()
|
23288 |
|
|
{
|
23289 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
|
23290 |
|
|
test_array @<:@0@:>@ = 0
|
23291 |
|
|
|
23292 |
|
|
;
|
23293 |
|
|
return 0;
|
23294 |
|
|
}
|
23295 |
|
|
_ACEOF
|
23296 |
|
|
rm -f conftest.$ac_objext
|
23297 |
|
|
if { (ac_try="$ac_compile"
|
23298 |
|
|
case "(($ac_try" in
|
23299 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23300 |
|
|
*) ac_try_echo=$ac_try;;
|
23301 |
|
|
esac
|
23302 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23303 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23304 |
|
|
ac_status=$?
|
23305 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23306 |
|
|
rm -f conftest.er1
|
23307 |
|
|
cat conftest.err >&5
|
23308 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23309 |
|
|
(exit $ac_status); } && {
|
23310 |
|
|
test -z "$ac_c_werror_flag" ||
|
23311 |
|
|
test ! -s conftest.err
|
23312 |
|
|
} && test -s conftest.$ac_objext; then
|
23313 |
|
|
ac_hi=-1 ac_mid=-1
|
23314 |
|
|
while :; do
|
23315 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23316 |
|
|
/* confdefs.h. */
|
23317 |
|
|
_ACEOF
|
23318 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23319 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23320 |
|
|
/* end confdefs.h. */
|
23321 |
|
|
$ac_includes_default
|
23322 |
|
|
typedef long ac__type_sizeof_;
|
23323 |
|
|
int
|
23324 |
|
|
main ()
|
23325 |
|
|
{
|
23326 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
|
23327 |
|
|
test_array @<:@0@:>@ = 0
|
23328 |
|
|
|
23329 |
|
|
;
|
23330 |
|
|
return 0;
|
23331 |
|
|
}
|
23332 |
|
|
_ACEOF
|
23333 |
|
|
rm -f conftest.$ac_objext
|
23334 |
|
|
if { (ac_try="$ac_compile"
|
23335 |
|
|
case "(($ac_try" in
|
23336 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23337 |
|
|
*) ac_try_echo=$ac_try;;
|
23338 |
|
|
esac
|
23339 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23340 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23341 |
|
|
ac_status=$?
|
23342 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23343 |
|
|
rm -f conftest.er1
|
23344 |
|
|
cat conftest.err >&5
|
23345 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23346 |
|
|
(exit $ac_status); } && {
|
23347 |
|
|
test -z "$ac_c_werror_flag" ||
|
23348 |
|
|
test ! -s conftest.err
|
23349 |
|
|
} && test -s conftest.$ac_objext; then
|
23350 |
|
|
ac_lo=$ac_mid; break
|
23351 |
|
|
else
|
23352 |
|
|
echo "$as_me: failed program was:" >&5
|
23353 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23354 |
|
|
|
23355 |
|
|
ac_hi=`expr '(' $ac_mid ')' - 1`
|
23356 |
|
|
if test $ac_mid -le $ac_hi; then
|
23357 |
|
|
ac_lo= ac_hi=
|
23358 |
|
|
break
|
23359 |
|
|
fi
|
23360 |
|
|
ac_mid=`expr 2 '*' $ac_mid`
|
23361 |
|
|
fi
|
23362 |
|
|
|
23363 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23364 |
|
|
done
|
23365 |
|
|
else
|
23366 |
|
|
echo "$as_me: failed program was:" >&5
|
23367 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23368 |
|
|
|
23369 |
|
|
ac_lo= ac_hi=
|
23370 |
|
|
fi
|
23371 |
|
|
|
23372 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23373 |
|
|
fi
|
23374 |
|
|
|
23375 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23376 |
|
|
# Binary search between lo and hi bounds.
|
23377 |
|
|
while test "x$ac_lo" != "x$ac_hi"; do
|
23378 |
|
|
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
23379 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23380 |
|
|
/* confdefs.h. */
|
23381 |
|
|
_ACEOF
|
23382 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23383 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23384 |
|
|
/* end confdefs.h. */
|
23385 |
|
|
$ac_includes_default
|
23386 |
|
|
typedef long ac__type_sizeof_;
|
23387 |
|
|
int
|
23388 |
|
|
main ()
|
23389 |
|
|
{
|
23390 |
|
|
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
|
23391 |
|
|
test_array @<:@0@:>@ = 0
|
23392 |
|
|
|
23393 |
|
|
;
|
23394 |
|
|
return 0;
|
23395 |
|
|
}
|
23396 |
|
|
_ACEOF
|
23397 |
|
|
rm -f conftest.$ac_objext
|
23398 |
|
|
if { (ac_try="$ac_compile"
|
23399 |
|
|
case "(($ac_try" in
|
23400 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23401 |
|
|
*) ac_try_echo=$ac_try;;
|
23402 |
|
|
esac
|
23403 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23404 |
|
|
(eval "$ac_compile") 2>conftest.er1
|
23405 |
|
|
ac_status=$?
|
23406 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23407 |
|
|
rm -f conftest.er1
|
23408 |
|
|
cat conftest.err >&5
|
23409 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23410 |
|
|
(exit $ac_status); } && {
|
23411 |
|
|
test -z "$ac_c_werror_flag" ||
|
23412 |
|
|
test ! -s conftest.err
|
23413 |
|
|
} && test -s conftest.$ac_objext; then
|
23414 |
|
|
ac_hi=$ac_mid
|
23415 |
|
|
else
|
23416 |
|
|
echo "$as_me: failed program was:" >&5
|
23417 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23418 |
|
|
|
23419 |
|
|
ac_lo=`expr '(' $ac_mid ')' + 1`
|
23420 |
|
|
fi
|
23421 |
|
|
|
23422 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
23423 |
|
|
done
|
23424 |
|
|
case $ac_lo in
|
23425 |
|
|
?*) ac_cv_sizeof_long=$ac_lo;;
|
23426 |
|
|
'') if test "$ac_cv_type_long" = yes; then
|
23427 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
23428 |
|
|
See \`config.log' for more details." >&5
|
23429 |
|
|
echo "$as_me: error: cannot compute sizeof (long)
|
23430 |
|
|
See \`config.log' for more details." >&2;}
|
23431 |
|
|
{ (exit 77); exit 77; }; }
|
23432 |
|
|
else
|
23433 |
|
|
ac_cv_sizeof_long=0
|
23434 |
|
|
fi ;;
|
23435 |
|
|
esac
|
23436 |
|
|
else
|
23437 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23438 |
|
|
/* confdefs.h. */
|
23439 |
|
|
_ACEOF
|
23440 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23441 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23442 |
|
|
/* end confdefs.h. */
|
23443 |
|
|
$ac_includes_default
|
23444 |
|
|
typedef long ac__type_sizeof_;
|
23445 |
|
|
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
23446 |
|
|
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
23447 |
|
|
@%:@include
|
23448 |
|
|
@%:@include
|
23449 |
|
|
int
|
23450 |
|
|
main ()
|
23451 |
|
|
{
|
23452 |
|
|
|
23453 |
|
|
FILE *f = fopen ("conftest.val", "w");
|
23454 |
|
|
if (! f)
|
23455 |
|
|
return 1;
|
23456 |
|
|
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
23457 |
|
|
{
|
23458 |
|
|
long int i = longval ();
|
23459 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
23460 |
|
|
return 1;
|
23461 |
|
|
fprintf (f, "%ld\n", i);
|
23462 |
|
|
}
|
23463 |
|
|
else
|
23464 |
|
|
{
|
23465 |
|
|
unsigned long int i = ulongval ();
|
23466 |
|
|
if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
23467 |
|
|
return 1;
|
23468 |
|
|
fprintf (f, "%lu\n", i);
|
23469 |
|
|
}
|
23470 |
|
|
return ferror (f) || fclose (f) != 0;
|
23471 |
|
|
|
23472 |
|
|
;
|
23473 |
|
|
return 0;
|
23474 |
|
|
}
|
23475 |
|
|
_ACEOF
|
23476 |
|
|
rm -f conftest$ac_exeext
|
23477 |
|
|
if { (ac_try="$ac_link"
|
23478 |
|
|
case "(($ac_try" in
|
23479 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23480 |
|
|
*) ac_try_echo=$ac_try;;
|
23481 |
|
|
esac
|
23482 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23483 |
|
|
(eval "$ac_link") 2>&5
|
23484 |
|
|
ac_status=$?
|
23485 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23486 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
23487 |
|
|
{ (case "(($ac_try" in
|
23488 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23489 |
|
|
*) ac_try_echo=$ac_try;;
|
23490 |
|
|
esac
|
23491 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23492 |
|
|
(eval "$ac_try") 2>&5
|
23493 |
|
|
ac_status=$?
|
23494 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23495 |
|
|
(exit $ac_status); }; }; then
|
23496 |
|
|
ac_cv_sizeof_long=`cat conftest.val`
|
23497 |
|
|
else
|
23498 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
23499 |
|
|
echo "$as_me: failed program was:" >&5
|
23500 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23501 |
|
|
|
23502 |
|
|
( exit $ac_status )
|
23503 |
|
|
if test "$ac_cv_type_long" = yes; then
|
23504 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
23505 |
|
|
See \`config.log' for more details." >&5
|
23506 |
|
|
echo "$as_me: error: cannot compute sizeof (long)
|
23507 |
|
|
See \`config.log' for more details." >&2;}
|
23508 |
|
|
{ (exit 77); exit 77; }; }
|
23509 |
|
|
else
|
23510 |
|
|
ac_cv_sizeof_long=0
|
23511 |
|
|
fi
|
23512 |
|
|
fi
|
23513 |
|
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
23514 |
|
|
fi
|
23515 |
|
|
rm -f conftest.val
|
23516 |
|
|
fi
|
23517 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
|
23518 |
|
|
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
|
23519 |
|
|
|
23520 |
|
|
|
23521 |
|
|
|
23522 |
|
|
cat >>confdefs.h <<_ACEOF
|
23523 |
|
|
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
|
23524 |
|
|
_ACEOF
|
23525 |
|
|
|
23526 |
|
|
|
23527 |
|
|
|
23528 |
|
|
# check for GNU readline
|
23529 |
|
|
|
23530 |
|
|
{ echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
|
23531 |
|
|
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6; }
|
23532 |
|
|
if test "${ac_cv_lib_readline_add_history+set}" = set; then
|
23533 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
23534 |
|
|
else
|
23535 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
23536 |
|
|
LIBS="-lreadline $LIBS"
|
23537 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
23538 |
|
|
/* confdefs.h. */
|
23539 |
|
|
_ACEOF
|
23540 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
23541 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
23542 |
|
|
/* end confdefs.h. */
|
23543 |
|
|
|
23544 |
|
|
/* Override any GCC internal prototype to avoid an error.
|
23545 |
|
|
Use char because int might match the return type of a GCC
|
23546 |
|
|
builtin and then its argument prototype would still apply. */
|
23547 |
|
|
#ifdef __cplusplus
|
23548 |
|
|
extern "C"
|
23549 |
|
|
#endif
|
23550 |
|
|
char add_history ();
|
23551 |
|
|
int
|
23552 |
|
|
main ()
|
23553 |
|
|
{
|
23554 |
|
|
return add_history ();
|
23555 |
|
|
;
|
23556 |
|
|
return 0;
|
23557 |
|
|
}
|
23558 |
|
|
_ACEOF
|
23559 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
23560 |
|
|
if { (ac_try="$ac_link"
|
23561 |
|
|
case "(($ac_try" in
|
23562 |
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
23563 |
|
|
*) ac_try_echo=$ac_try;;
|
23564 |
|
|
esac
|
23565 |
|
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
23566 |
|
|
(eval "$ac_link") 2>conftest.er1
|
23567 |
|
|
ac_status=$?
|
23568 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
23569 |
|
|
rm -f conftest.er1
|
23570 |
|
|
cat conftest.err >&5
|
23571 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
23572 |
|
|
(exit $ac_status); } && {
|
23573 |
|
|
test -z "$ac_c_werror_flag" ||
|
23574 |
|
|
test ! -s conftest.err
|
23575 |
|
|
} && test -s conftest$ac_exeext &&
|
23576 |
|
|
$as_test_x conftest$ac_exeext; then
|
23577 |
|
|
ac_cv_lib_readline_add_history=yes
|
23578 |
|
|
else
|
23579 |
|
|
echo "$as_me: failed program was:" >&5
|
23580 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
23581 |
|
|
|
23582 |
|
|
ac_cv_lib_readline_add_history=no
|
23583 |
|
|
fi
|
23584 |
|
|
|
23585 |
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
23586 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
23587 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
23588 |
|
|
fi
|
23589 |
|
|
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
|
23590 |
|
|
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6; }
|
23591 |
|
|
if test $ac_cv_lib_readline_add_history = yes; then
|
23592 |
|
|
cat >>confdefs.h <<_ACEOF
|
23593 |
|
|
@%:@define HAVE_LIBREADLINE 1
|
23594 |
|
|
_ACEOF
|
23595 |
|
|
|
23596 |
|
|
LIBS="-lreadline $LIBS"
|
23597 |
|
|
|
23598 |
|
|
fi
|
23599 |
|
|
|
23600 |
|
|
|
23601 |
|
|
# yuck
|
23602 |
|
|
case "$host_os" in
|
23603 |
|
|
aix*) prefer_curses=yes ;;
|
23604 |
|
|
esac
|
23605 |
|
|
|
23606 |
|
|
case "$host_cpu" in
|
23607 |
|
|
*cray*) LOCAL_CFLAGS=-DCRAY ;;
|
23608 |
|
|
esac
|
23609 |
|
|
|
23610 |
|
|
case "$host_os" in
|
23611 |
|
|
isc*) LOCAL_CFLAGS=-Disc386 ;;
|
23612 |
|
|
esac
|
23613 |
|
|
|
23614 |
|
|
case "$host_os" in
|
23615 |
|
|
solaris*) LIBS="-lsocket -lnsl" ;;
|
23616 |
|
|
esac
|
23617 |
|
|
|
23618 |
|
|
# define options
|
23619 |
|
|
|
23620 |
|
|
{ echo "$as_me:$LINENO: checking whether to enable profiling" >&5
|
23621 |
|
|
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6; }
|
23622 |
|
|
# Check whether --enable-profiling was given.
|
23623 |
|
|
if test "${enable_profiling+set}" = set; then
|
23624 |
|
|
enableval=$enable_profiling;
|
23625 |
|
|
case "$enableval" in
|
23626 |
|
|
yes) profile="-pg -a" ;;
|
23627 |
|
|
esac
|
23628 |
|
|
|
23629 |
|
|
fi
|
23630 |
|
|
|
23631 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
|
23632 |
|
|
echo "${ECHO_T}${enable_profiling-no}" >&6; }
|
23633 |
|
|
|
23634 |
|
|
execution="1"
|
23635 |
|
|
|
23636 |
|
|
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
|
23637 |
|
|
{ echo "$as_me:$LINENO: checking which execution style to use" >&5
|
23638 |
|
|
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6; }
|
23639 |
|
|
# Check whether --enable-execution was given.
|
23640 |
|
|
if test "${enable_execution+set}" = set; then
|
23641 |
|
|
enableval=$enable_execution;
|
23642 |
|
|
case "$enableval" in
|
23643 |
|
|
simple)
|
23644 |
|
|
INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
|
23645 |
|
|
execution="0"
|
23646 |
|
|
{ echo "$as_me:$LINENO: result: simple" >&5
|
23647 |
|
|
echo "${ECHO_T}simple" >&6; }
|
23648 |
|
|
;;
|
23649 |
|
|
complex)
|
23650 |
|
|
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
|
23651 |
|
|
execution="1"
|
23652 |
|
|
{ echo "$as_me:$LINENO: result: complex" >&5
|
23653 |
|
|
echo "${ECHO_T}complex" >&6; }
|
23654 |
|
|
;;
|
23655 |
|
|
dynamic)
|
23656 |
|
|
INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
|
23657 |
|
|
execution="2"
|
23658 |
|
|
{ echo "$as_me:$LINENO: result: dynamic" >&5
|
23659 |
|
|
echo "${ECHO_T}dynamic" >&6; }
|
23660 |
|
|
;;
|
23661 |
|
|
*)
|
23662 |
|
|
{ { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
|
23663 |
|
|
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
|
23664 |
|
|
{ (exit 1); exit 1; }; }
|
23665 |
|
|
;;
|
23666 |
|
|
esac
|
23667 |
|
|
|
23668 |
|
|
else
|
23669 |
|
|
|
23670 |
|
|
{ echo "$as_me:$LINENO: result: complex" >&5
|
23671 |
|
|
echo "${ECHO_T}complex" >&6; }
|
23672 |
|
|
|
23673 |
|
|
fi
|
23674 |
|
|
|
23675 |
|
|
|
23676 |
|
|
eth_phy="0"
|
23677 |
|
|
{ echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
|
23678 |
|
|
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6; }
|
23679 |
|
|
# Check whether --enable-ethphy was given.
|
23680 |
|
|
if test "${enable_ethphy+set}" = set; then
|
23681 |
|
|
enableval=$enable_ethphy;
|
23682 |
|
|
case "$enableval" in
|
23683 |
|
|
no) eth_phy="0" ;;
|
23684 |
|
|
yes) eth_phy="1" ;;
|
23685 |
|
|
esac
|
23686 |
|
|
|
23687 |
|
|
fi
|
23688 |
|
|
|
23689 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
|
23690 |
|
|
echo "${ECHO_T}${enable_eth_phy-no}" >&6; }
|
23691 |
|
|
|
23692 |
|
|
|
23693 |
|
|
raw_range_stats="0"
|
23694 |
|
|
{ echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
|
23695 |
|
|
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6; }
|
23696 |
|
|
# Check whether --enable-range_stats was given.
|
23697 |
|
|
if test "${enable_range_stats+set}" = set; then
|
23698 |
|
|
enableval=$enable_range_stats;
|
23699 |
|
|
case "$enableval" in
|
23700 |
|
|
no) raw_range_stats="0" ;;
|
23701 |
|
|
yes) raw_range_stats="1" simple_execution="1" ;;
|
23702 |
|
|
esac
|
23703 |
|
|
|
23704 |
|
|
fi
|
23705 |
|
|
|
23706 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
|
23707 |
|
|
echo "${ECHO_T}${enable_range_stats-no}" >&6; }
|
23708 |
|
|
|
23709 |
|
|
set_ov_flag="0"
|
23710 |
|
|
{ echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
|
23711 |
|
|
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6; }
|
23712 |
|
|
# Check whether --enable-ov_flag was given.
|
23713 |
|
|
if test "${enable_ov_flag+set}" = set; then
|
23714 |
|
|
enableval=$enable_ov_flag;
|
23715 |
|
|
case "$enableval" in
|
23716 |
|
|
no) set_ov_flag="0" ;;
|
23717 |
|
|
yes) set_ov_flag="1" ;;
|
23718 |
|
|
esac
|
23719 |
|
|
|
23720 |
|
|
fi
|
23721 |
|
|
|
23722 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
|
23723 |
|
|
echo "${ECHO_T}${enable_ov_flag-no}" >&6; }
|
23724 |
|
|
|
23725 |
|
|
set_arith_flag="0"
|
23726 |
|
|
{ echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
|
23727 |
|
|
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6; }
|
23728 |
|
|
# Check whether --enable-arith_flag was given.
|
23729 |
|
|
if test "${enable_arith_flag+set}" = set; then
|
23730 |
|
|
enableval=$enable_arith_flag;
|
23731 |
|
|
case "$enableval" in
|
23732 |
|
|
no) set_arith_flag="0" ;;
|
23733 |
|
|
yes) set_arith_flag="1" ;;
|
23734 |
|
|
esac
|
23735 |
|
|
|
23736 |
|
|
fi
|
23737 |
|
|
|
23738 |
|
|
{ echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
|
23739 |
|
|
echo "${ECHO_T}${enable_arith_flag-no}" >&6; }
|
23740 |
|
|
|
23741 |
|
|
|
23742 |
|
|
cat >>confdefs.h <<_ACEOF
|
23743 |
|
|
@%:@define RAW_RANGE_STATS $raw_range_stats
|
23744 |
|
|
_ACEOF
|
23745 |
|
|
|
23746 |
|
|
|
23747 |
|
|
cat >>confdefs.h <<_ACEOF
|
23748 |
|
|
@%:@define SET_OV_FLAG $set_ov_flag
|
23749 |
|
|
_ACEOF
|
23750 |
|
|
|
23751 |
|
|
|
23752 |
|
|
cat >>confdefs.h <<_ACEOF
|
23753 |
|
|
@%:@define ARITH_SET_FLAG $set_arith_flag
|
23754 |
|
|
_ACEOF
|
23755 |
|
|
|
23756 |
|
|
|
23757 |
|
|
cat >>confdefs.h <<_ACEOF
|
23758 |
|
|
@%:@define HAVE_ETH_PHY $eth_phy
|
23759 |
|
|
_ACEOF
|
23760 |
|
|
|
23761 |
|
|
|
23762 |
|
|
cat >>confdefs.h <<_ACEOF
|
23763 |
|
|
@%:@define SIMPLE_EXECUTION $execution == 0
|
23764 |
|
|
_ACEOF
|
23765 |
|
|
|
23766 |
|
|
|
23767 |
|
|
cat >>confdefs.h <<_ACEOF
|
23768 |
|
|
@%:@define COMPLEX_EXECUTION $execution == 1
|
23769 |
|
|
_ACEOF
|
23770 |
|
|
|
23771 |
|
|
|
23772 |
|
|
cat >>confdefs.h <<_ACEOF
|
23773 |
|
|
@%:@define DYNAMIC_EXECUTION $execution == 2
|
23774 |
|
|
_ACEOF
|
23775 |
|
|
|
23776 |
|
|
if test x$execution = x1; then
|
23777 |
|
|
GENERATE_NEEDED_TRUE=
|
23778 |
|
|
GENERATE_NEEDED_FALSE='#'
|
23779 |
|
|
else
|
23780 |
|
|
GENERATE_NEEDED_TRUE='#'
|
23781 |
|
|
GENERATE_NEEDED_FALSE=
|
23782 |
|
|
fi
|
23783 |
|
|
|
23784 |
|
|
if test x$execution = x2; then
|
23785 |
|
|
DYNAMIC_EXECUTION_TRUE=
|
23786 |
|
|
DYNAMIC_EXECUTION_FALSE='#'
|
23787 |
|
|
else
|
23788 |
|
|
DYNAMIC_EXECUTION_TRUE='#'
|
23789 |
|
|
DYNAMIC_EXECUTION_FALSE=
|
23790 |
|
|
fi
|
23791 |
|
|
|
23792 |
|
|
|
23793 |
|
|
|
23794 |
|
|
test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
|
23795 |
|
|
# CFLAGS="$CFLAGS -O4"
|
23796 |
|
|
|
23797 |
|
|
BUILD_DIR=`pwd`
|
23798 |
|
|
|
23799 |
|
|
|
23800 |
|
|
|
23801 |
|
|
|
23802 |
|
|
|
23803 |
|
|
|
23804 |
|
|
|
23805 |
|
|
|
23806 |
|
|
|
23807 |
|
|
|
23808 |
|
|
|
23809 |
|
|
|
23810 |
|
|
|
23811 |
|
|
|
23812 |
|
|
|
23813 |
|
|
|
23814 |
|
|
|
23815 |
|
|
|
23816 |
|
|
cat >>confdefs.h <<\_ACEOF
|
23817 |
|
|
@%:@define HAS_EXECUTION 1
|
23818 |
|
|
_ACEOF
|
23819 |
|
|
|
23820 |
|
|
|
23821 |
|
|
cat >>confdefs.h <<\_ACEOF
|
23822 |
|
|
@%:@define HAS_DEBUG 1
|
23823 |
|
|
_ACEOF
|
23824 |
|
|
|
23825 |
|
|
|
23826 |
|
|
# yuck
|
23827 |
|
|
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
|
23828 |
|
|
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
|
23829 |
|
|
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
|
23830 |
|
|
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
|
23831 |
|
|
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
|
23832 |
|
|
-I\${top_srcdir}/cuc -I\${top_srcdir}/port"
|
23833 |
|
|
|
23834 |
|
|
|
23835 |
|
|
ac_config_files="$ac_config_files Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or32/Makefile cuc/Makefile cpu/or1k/Makefile cpu/dlx/Makefile debug/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
|
23836 |
|
|
|
23837 |
|
|
ac_config_commands="$ac_config_commands default"
|
23838 |
|
|
|
23839 |
|
|
cat >confcache <<\_ACEOF
|
23840 |
|
|
# This file is a shell script that caches the results of configure
|
23841 |
|
|
# tests run on this system so they can be shared between configure
|
23842 |
|
|
# scripts and configure runs, see configure's option --config-cache.
|
23843 |
|
|
# It is not useful on other systems. If it contains results you don't
|
23844 |
|
|
# want to keep, you may remove or edit it.
|
23845 |
|
|
#
|
23846 |
|
|
# config.status only pays attention to the cache file if you give it
|
23847 |
|
|
# the --recheck option to rerun configure.
|
23848 |
|
|
#
|
23849 |
|
|
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
23850 |
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
23851 |
|
|
# following values.
|
23852 |
|
|
|
23853 |
|
|
_ACEOF
|
23854 |
|
|
|
23855 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
23856 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
23857 |
|
|
# So, we kill variables containing newlines.
|
23858 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
23859 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
23860 |
|
|
(
|
23861 |
|
|
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
23862 |
|
|
eval ac_val=\$$ac_var
|
23863 |
|
|
case $ac_val in #(
|
23864 |
|
|
*${as_nl}*)
|
23865 |
|
|
case $ac_var in #(
|
23866 |
|
|
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
23867 |
|
|
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
23868 |
|
|
esac
|
23869 |
|
|
case $ac_var in #(
|
23870 |
|
|
_ | IFS | as_nl) ;; #(
|
23871 |
|
|
*) $as_unset $ac_var ;;
|
23872 |
|
|
esac ;;
|
23873 |
|
|
esac
|
23874 |
|
|
done
|
23875 |
|
|
|
23876 |
|
|
(set) 2>&1 |
|
23877 |
|
|
case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
23878 |
|
|
*${as_nl}ac_space=\ *)
|
23879 |
|
|
# `set' does not quote correctly, so add quotes (double-quote
|
23880 |
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \).
|
23881 |
|
|
sed -n \
|
23882 |
|
|
"s/'/'\\\\''/g;
|
23883 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
23884 |
|
|
;; #(
|
23885 |
|
|
*)
|
23886 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
23887 |
|
|
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
23888 |
|
|
;;
|
23889 |
|
|
esac |
|
23890 |
|
|
sort
|
23891 |
|
|
) |
|
23892 |
|
|
sed '
|
23893 |
|
|
/^ac_cv_env_/b end
|
23894 |
|
|
t clear
|
23895 |
|
|
:clear
|
23896 |
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
23897 |
|
|
t end
|
23898 |
|
|
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
23899 |
|
|
:end' >>confcache
|
23900 |
|
|
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
23901 |
|
|
if test -w "$cache_file"; then
|
23902 |
|
|
test "x$cache_file" != "x/dev/null" &&
|
23903 |
|
|
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
23904 |
|
|
echo "$as_me: updating cache $cache_file" >&6;}
|
23905 |
|
|
cat confcache >$cache_file
|
23906 |
|
|
else
|
23907 |
|
|
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
23908 |
|
|
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
23909 |
|
|
fi
|
23910 |
|
|
fi
|
23911 |
|
|
rm -f confcache
|
23912 |
|
|
|
23913 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
23914 |
|
|
# Let make expand exec_prefix.
|
23915 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
23916 |
|
|
|
23917 |
|
|
DEFS=-DHAVE_CONFIG_H
|
23918 |
|
|
|
23919 |
|
|
ac_libobjs=
|
23920 |
|
|
ac_ltlibobjs=
|
23921 |
|
|
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
|
23922 |
|
|
# 1. Remove the extension, and $U if already installed.
|
23923 |
|
|
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
23924 |
|
|
ac_i=`echo "$ac_i" | sed "$ac_script"`
|
23925 |
|
|
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
23926 |
|
|
# will be set to the directory where LIBOBJS objects are built.
|
23927 |
|
|
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
23928 |
|
|
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
23929 |
|
|
done
|
23930 |
|
|
LIB@&t@OBJS=$ac_libobjs
|
23931 |
|
|
|
23932 |
|
|
LTLIBOBJS=$ac_ltlibobjs
|
23933 |
|
|
|
23934 |
|
|
|
23935 |
|
|
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
23936 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
23937 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
23938 |
|
|
echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
23939 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
23940 |
|
|
{ (exit 1); exit 1; }; }
|
23941 |
|
|
fi
|
23942 |
|
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
23943 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
23944 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
23945 |
|
|
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
23946 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
23947 |
|
|
{ (exit 1); exit 1; }; }
|
23948 |
|
|
fi
|
23949 |
|
|
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
23950 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
|
23951 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
23952 |
|
|
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
|
23953 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
23954 |
|
|
{ (exit 1); exit 1; }; }
|
23955 |
|
|
fi
|
23956 |
|
|
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
|
23957 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
|
23958 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
23959 |
|
|
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
|
23960 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
23961 |
|
|
{ (exit 1); exit 1; }; }
|
23962 |
|
|
fi
|
23963 |
|
|
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
|
23964 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
|
23965 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
23966 |
|
|
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
|
23967 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
23968 |
|
|
{ (exit 1); exit 1; }; }
|
23969 |
|
|
fi
|
23970 |
|
|
|
23971 |
|
|
: ${CONFIG_STATUS=./config.status}
|
23972 |
|
|
ac_clean_files_save=$ac_clean_files
|
23973 |
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
23974 |
|
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
23975 |
|
|
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
23976 |
|
|
cat >$CONFIG_STATUS <<_ACEOF
|
23977 |
|
|
#! $SHELL
|
23978 |
|
|
# Generated by $as_me.
|
23979 |
|
|
# Run this file to recreate the current configuration.
|
23980 |
|
|
# Compiler output produced by configure, useful for debugging
|
23981 |
|
|
# configure, is in config.log if it exists.
|
23982 |
|
|
|
23983 |
|
|
debug=false
|
23984 |
|
|
ac_cs_recheck=false
|
23985 |
|
|
ac_cs_silent=false
|
23986 |
|
|
SHELL=\${CONFIG_SHELL-$SHELL}
|
23987 |
|
|
_ACEOF
|
23988 |
|
|
|
23989 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
23990 |
|
|
## --------------------- ##
|
23991 |
|
|
## M4sh Initialization. ##
|
23992 |
|
|
## --------------------- ##
|
23993 |
|
|
|
23994 |
|
|
# Be more Bourne compatible
|
23995 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
23996 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
23997 |
|
|
emulate sh
|
23998 |
|
|
NULLCMD=:
|
23999 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
24000 |
|
|
# is contrary to our usage. Disable this feature.
|
24001 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
24002 |
|
|
setopt NO_GLOB_SUBST
|
24003 |
|
|
else
|
24004 |
|
|
case `(set -o) 2>/dev/null` in
|
24005 |
|
|
*posix*) set -o posix ;;
|
24006 |
|
|
esac
|
24007 |
|
|
|
24008 |
|
|
fi
|
24009 |
|
|
|
24010 |
|
|
|
24011 |
|
|
|
24012 |
|
|
|
24013 |
|
|
# PATH needs CR
|
24014 |
|
|
# Avoid depending upon Character Ranges.
|
24015 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
24016 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
24017 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
24018 |
|
|
as_cr_digits='0123456789'
|
24019 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
24020 |
|
|
|
24021 |
|
|
# The user is always right.
|
24022 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
24023 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
24024 |
|
|
echo "exit 0" >>conf$$.sh
|
24025 |
|
|
chmod +x conf$$.sh
|
24026 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
24027 |
|
|
PATH_SEPARATOR=';'
|
24028 |
|
|
else
|
24029 |
|
|
PATH_SEPARATOR=:
|
24030 |
|
|
fi
|
24031 |
|
|
rm -f conf$$.sh
|
24032 |
|
|
fi
|
24033 |
|
|
|
24034 |
|
|
# Support unset when possible.
|
24035 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
24036 |
|
|
as_unset=unset
|
24037 |
|
|
else
|
24038 |
|
|
as_unset=false
|
24039 |
|
|
fi
|
24040 |
|
|
|
24041 |
|
|
|
24042 |
|
|
# IFS
|
24043 |
|
|
# We need space, tab and new line, in precisely that order. Quoting is
|
24044 |
|
|
# there to prevent editors from complaining about space-tab.
|
24045 |
|
|
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
24046 |
|
|
# splitting by setting IFS to empty value.)
|
24047 |
|
|
as_nl='
|
24048 |
|
|
'
|
24049 |
|
|
IFS=" "" $as_nl"
|
24050 |
|
|
|
24051 |
|
|
# Find who we are. Look in the path if we contain no directory separator.
|
24052 |
|
|
case $0 in
|
24053 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
24054 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
24055 |
|
|
for as_dir in $PATH
|
24056 |
|
|
do
|
24057 |
|
|
IFS=$as_save_IFS
|
24058 |
|
|
test -z "$as_dir" && as_dir=.
|
24059 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
24060 |
|
|
done
|
24061 |
|
|
IFS=$as_save_IFS
|
24062 |
|
|
|
24063 |
|
|
;;
|
24064 |
|
|
esac
|
24065 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
24066 |
|
|
# in which case we are not to be found in the path.
|
24067 |
|
|
if test "x$as_myself" = x; then
|
24068 |
|
|
as_myself=$0
|
24069 |
|
|
fi
|
24070 |
|
|
if test ! -f "$as_myself"; then
|
24071 |
|
|
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
24072 |
|
|
{ (exit 1); exit 1; }
|
24073 |
|
|
fi
|
24074 |
|
|
|
24075 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
24076 |
|
|
for as_var in ENV MAIL MAILPATH
|
24077 |
|
|
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
24078 |
|
|
done
|
24079 |
|
|
PS1='$ '
|
24080 |
|
|
PS2='> '
|
24081 |
|
|
PS4='+ '
|
24082 |
|
|
|
24083 |
|
|
# NLS nuisances.
|
24084 |
|
|
for as_var in \
|
24085 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
24086 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
24087 |
|
|
LC_TELEPHONE LC_TIME
|
24088 |
|
|
do
|
24089 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
24090 |
|
|
eval $as_var=C; export $as_var
|
24091 |
|
|
else
|
24092 |
|
|
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
24093 |
|
|
fi
|
24094 |
|
|
done
|
24095 |
|
|
|
24096 |
|
|
# Required to use basename.
|
24097 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
24098 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
24099 |
|
|
as_expr=expr
|
24100 |
|
|
else
|
24101 |
|
|
as_expr=false
|
24102 |
|
|
fi
|
24103 |
|
|
|
24104 |
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
24105 |
|
|
as_basename=basename
|
24106 |
|
|
else
|
24107 |
|
|
as_basename=false
|
24108 |
|
|
fi
|
24109 |
|
|
|
24110 |
|
|
|
24111 |
|
|
# Name of the executable.
|
24112 |
|
|
as_me=`$as_basename -- "$0" ||
|
24113 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
24114 |
|
|
X"$0" : 'X\(//\)$' \| \
|
24115 |
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
24116 |
|
|
echo X/"$0" |
|
24117 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
24118 |
|
|
s//\1/
|
24119 |
|
|
q
|
24120 |
|
|
}
|
24121 |
|
|
/^X\/\(\/\/\)$/{
|
24122 |
|
|
s//\1/
|
24123 |
|
|
q
|
24124 |
|
|
}
|
24125 |
|
|
/^X\/\(\/\).*/{
|
24126 |
|
|
s//\1/
|
24127 |
|
|
q
|
24128 |
|
|
}
|
24129 |
|
|
s/.*/./; q'`
|
24130 |
|
|
|
24131 |
|
|
# CDPATH.
|
24132 |
|
|
$as_unset CDPATH
|
24133 |
|
|
|
24134 |
|
|
|
24135 |
|
|
|
24136 |
|
|
as_lineno_1=$LINENO
|
24137 |
|
|
as_lineno_2=$LINENO
|
24138 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
24139 |
|
|
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
24140 |
|
|
|
24141 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
24142 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
24143 |
|
|
# line-number line after each line using $LINENO; the second 'sed'
|
24144 |
|
|
# does the real work. The second script uses 'N' to pair each
|
24145 |
|
|
# line-number line with the line containing $LINENO, and appends
|
24146 |
|
|
# trailing '-' during substitution so that $LINENO is not a special
|
24147 |
|
|
# case at line end.
|
24148 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
24149 |
|
|
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
24150 |
|
|
# E. McMahon (1931-1989) for sed's syntax. :-)
|
24151 |
|
|
sed -n '
|
24152 |
|
|
p
|
24153 |
|
|
/[$]LINENO/=
|
24154 |
|
|
' <$as_myself |
|
24155 |
|
|
sed '
|
24156 |
|
|
s/[$]LINENO.*/&-/
|
24157 |
|
|
t lineno
|
24158 |
|
|
b
|
24159 |
|
|
:lineno
|
24160 |
|
|
N
|
24161 |
|
|
:loop
|
24162 |
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
24163 |
|
|
t loop
|
24164 |
|
|
s/-\n.*//
|
24165 |
|
|
' >$as_me.lineno &&
|
24166 |
|
|
chmod +x "$as_me.lineno" ||
|
24167 |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
24168 |
|
|
{ (exit 1); exit 1; }; }
|
24169 |
|
|
|
24170 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
24171 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
24172 |
|
|
# original and so on. Autoconf is especially sensitive to this).
|
24173 |
|
|
. "./$as_me.lineno"
|
24174 |
|
|
# Exit status is that of the last command.
|
24175 |
|
|
exit
|
24176 |
|
|
}
|
24177 |
|
|
|
24178 |
|
|
|
24179 |
|
|
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
24180 |
|
|
as_dirname=dirname
|
24181 |
|
|
else
|
24182 |
|
|
as_dirname=false
|
24183 |
|
|
fi
|
24184 |
|
|
|
24185 |
|
|
ECHO_C= ECHO_N= ECHO_T=
|
24186 |
|
|
case `echo -n x` in
|
24187 |
|
|
-n*)
|
24188 |
|
|
case `echo 'x\c'` in
|
24189 |
|
|
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
24190 |
|
|
*) ECHO_C='\c';;
|
24191 |
|
|
esac;;
|
24192 |
|
|
*)
|
24193 |
|
|
ECHO_N='-n';;
|
24194 |
|
|
esac
|
24195 |
|
|
|
24196 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
24197 |
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
24198 |
|
|
as_expr=expr
|
24199 |
|
|
else
|
24200 |
|
|
as_expr=false
|
24201 |
|
|
fi
|
24202 |
|
|
|
24203 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
24204 |
|
|
if test -d conf$$.dir; then
|
24205 |
|
|
rm -f conf$$.dir/conf$$.file
|
24206 |
|
|
else
|
24207 |
|
|
rm -f conf$$.dir
|
24208 |
|
|
mkdir conf$$.dir
|
24209 |
|
|
fi
|
24210 |
|
|
echo >conf$$.file
|
24211 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
24212 |
|
|
as_ln_s='ln -s'
|
24213 |
|
|
# ... but there are two gotchas:
|
24214 |
|
|
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
24215 |
|
|
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
24216 |
|
|
# In both cases, we have to default to `cp -p'.
|
24217 |
|
|
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
24218 |
|
|
as_ln_s='cp -p'
|
24219 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
24220 |
|
|
as_ln_s=ln
|
24221 |
|
|
else
|
24222 |
|
|
as_ln_s='cp -p'
|
24223 |
|
|
fi
|
24224 |
|
|
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
24225 |
|
|
rmdir conf$$.dir 2>/dev/null
|
24226 |
|
|
|
24227 |
|
|
if mkdir -p . 2>/dev/null; then
|
24228 |
|
|
as_mkdir_p=:
|
24229 |
|
|
else
|
24230 |
|
|
test -d ./-p && rmdir ./-p
|
24231 |
|
|
as_mkdir_p=false
|
24232 |
|
|
fi
|
24233 |
|
|
|
24234 |
|
|
if test -x / >/dev/null 2>&1; then
|
24235 |
|
|
as_test_x='test -x'
|
24236 |
|
|
else
|
24237 |
|
|
if ls -dL / >/dev/null 2>&1; then
|
24238 |
|
|
as_ls_L_option=L
|
24239 |
|
|
else
|
24240 |
|
|
as_ls_L_option=
|
24241 |
|
|
fi
|
24242 |
|
|
as_test_x='
|
24243 |
|
|
eval sh -c '\''
|
24244 |
|
|
if test -d "$1"; then
|
24245 |
|
|
test -d "$1/.";
|
24246 |
|
|
else
|
24247 |
|
|
case $1 in
|
24248 |
|
|
-*)set "./$1";;
|
24249 |
|
|
esac;
|
24250 |
|
|
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
24251 |
|
|
???[sx]*):;;*)false;;esac;fi
|
24252 |
|
|
'\'' sh
|
24253 |
|
|
'
|
24254 |
|
|
fi
|
24255 |
|
|
as_executable_p=$as_test_x
|
24256 |
|
|
|
24257 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
24258 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
24259 |
|
|
|
24260 |
|
|
# Sed expression to map a string onto a valid variable name.
|
24261 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
24262 |
|
|
|
24263 |
|
|
|
24264 |
|
|
exec 6>&1
|
24265 |
|
|
|
24266 |
|
|
# Save the log message, to keep $[0] and so on meaningful, and to
|
24267 |
|
|
# report actual input values of CONFIG_FILES etc. instead of their
|
24268 |
|
|
# values after options handling.
|
24269 |
|
|
ac_log="
|
24270 |
|
|
This file was extended by or1ksim $as_me 0.3.0, which was
|
24271 |
|
|
generated by GNU Autoconf 2.61. Invocation command line was
|
24272 |
|
|
|
24273 |
|
|
CONFIG_FILES = $CONFIG_FILES
|
24274 |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS
|
24275 |
|
|
CONFIG_LINKS = $CONFIG_LINKS
|
24276 |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
24277 |
|
|
$ $0 $@
|
24278 |
|
|
|
24279 |
|
|
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
24280 |
|
|
"
|
24281 |
|
|
|
24282 |
|
|
_ACEOF
|
24283 |
|
|
|
24284 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24285 |
|
|
# Files that config.status was made for.
|
24286 |
|
|
config_files="$ac_config_files"
|
24287 |
|
|
config_headers="$ac_config_headers"
|
24288 |
|
|
config_commands="$ac_config_commands"
|
24289 |
|
|
|
24290 |
|
|
_ACEOF
|
24291 |
|
|
|
24292 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
24293 |
|
|
ac_cs_usage="\
|
24294 |
|
|
\`$as_me' instantiates files from templates according to the
|
24295 |
|
|
current configuration.
|
24296 |
|
|
|
24297 |
|
|
Usage: $0 [OPTIONS] [FILE]...
|
24298 |
|
|
|
24299 |
|
|
-h, --help print this help, then exit
|
24300 |
|
|
-V, --version print version number and configuration settings, then exit
|
24301 |
|
|
-q, --quiet do not print progress messages
|
24302 |
|
|
-d, --debug don't remove temporary files
|
24303 |
|
|
--recheck update $as_me by reconfiguring in the same conditions
|
24304 |
|
|
--file=FILE[:TEMPLATE]
|
24305 |
|
|
instantiate the configuration file FILE
|
24306 |
|
|
--header=FILE[:TEMPLATE]
|
24307 |
|
|
instantiate the configuration header FILE
|
24308 |
|
|
|
24309 |
|
|
Configuration files:
|
24310 |
|
|
$config_files
|
24311 |
|
|
|
24312 |
|
|
Configuration headers:
|
24313 |
|
|
$config_headers
|
24314 |
|
|
|
24315 |
|
|
Configuration commands:
|
24316 |
|
|
$config_commands
|
24317 |
|
|
|
24318 |
|
|
Report bugs to ."
|
24319 |
|
|
|
24320 |
|
|
_ACEOF
|
24321 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24322 |
|
|
ac_cs_version="\\
|
24323 |
|
|
or1ksim config.status 0.3.0
|
24324 |
|
|
configured by $0, generated by GNU Autoconf 2.61,
|
24325 |
|
|
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
24326 |
|
|
|
24327 |
|
|
Copyright (C) 2006 Free Software Foundation, Inc.
|
24328 |
|
|
This config.status script is free software; the Free Software Foundation
|
24329 |
|
|
gives unlimited permission to copy, distribute and modify it."
|
24330 |
|
|
|
24331 |
|
|
ac_pwd='$ac_pwd'
|
24332 |
|
|
srcdir='$srcdir'
|
24333 |
|
|
INSTALL='$INSTALL'
|
24334 |
|
|
MKDIR_P='$MKDIR_P'
|
24335 |
|
|
_ACEOF
|
24336 |
|
|
|
24337 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
24338 |
|
|
# If no file are specified by the user, then we need to provide default
|
24339 |
|
|
# value. By we need to know if files were specified by the user.
|
24340 |
|
|
ac_need_defaults=:
|
24341 |
|
|
while test $# != 0
|
24342 |
|
|
do
|
24343 |
|
|
case $1 in
|
24344 |
|
|
--*=*)
|
24345 |
|
|
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
24346 |
|
|
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
24347 |
|
|
ac_shift=:
|
24348 |
|
|
;;
|
24349 |
|
|
*)
|
24350 |
|
|
ac_option=$1
|
24351 |
|
|
ac_optarg=$2
|
24352 |
|
|
ac_shift=shift
|
24353 |
|
|
;;
|
24354 |
|
|
esac
|
24355 |
|
|
|
24356 |
|
|
case $ac_option in
|
24357 |
|
|
# Handling of the options.
|
24358 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
24359 |
|
|
ac_cs_recheck=: ;;
|
24360 |
|
|
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
24361 |
|
|
echo "$ac_cs_version"; exit ;;
|
24362 |
|
|
--debug | --debu | --deb | --de | --d | -d )
|
24363 |
|
|
debug=: ;;
|
24364 |
|
|
--file | --fil | --fi | --f )
|
24365 |
|
|
$ac_shift
|
24366 |
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
24367 |
|
|
ac_need_defaults=false;;
|
24368 |
|
|
--header | --heade | --head | --hea )
|
24369 |
|
|
$ac_shift
|
24370 |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
24371 |
|
|
ac_need_defaults=false;;
|
24372 |
|
|
--he | --h)
|
24373 |
|
|
# Conflict between --help and --header
|
24374 |
|
|
{ echo "$as_me: error: ambiguous option: $1
|
24375 |
|
|
Try \`$0 --help' for more information." >&2
|
24376 |
|
|
{ (exit 1); exit 1; }; };;
|
24377 |
|
|
--help | --hel | -h )
|
24378 |
|
|
echo "$ac_cs_usage"; exit ;;
|
24379 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
24380 |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
24381 |
|
|
ac_cs_silent=: ;;
|
24382 |
|
|
|
24383 |
|
|
# This is an error.
|
24384 |
|
|
-*) { echo "$as_me: error: unrecognized option: $1
|
24385 |
|
|
Try \`$0 --help' for more information." >&2
|
24386 |
|
|
{ (exit 1); exit 1; }; } ;;
|
24387 |
|
|
|
24388 |
|
|
*) ac_config_targets="$ac_config_targets $1"
|
24389 |
|
|
ac_need_defaults=false ;;
|
24390 |
|
|
|
24391 |
|
|
esac
|
24392 |
|
|
shift
|
24393 |
|
|
done
|
24394 |
|
|
|
24395 |
|
|
ac_configure_extra_args=
|
24396 |
|
|
|
24397 |
|
|
if $ac_cs_silent; then
|
24398 |
|
|
exec 6>/dev/null
|
24399 |
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
24400 |
|
|
fi
|
24401 |
|
|
|
24402 |
|
|
_ACEOF
|
24403 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24404 |
|
|
if \$ac_cs_recheck; then
|
24405 |
|
|
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
24406 |
|
|
CONFIG_SHELL=$SHELL
|
24407 |
|
|
export CONFIG_SHELL
|
24408 |
|
|
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
24409 |
|
|
fi
|
24410 |
|
|
|
24411 |
|
|
_ACEOF
|
24412 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
24413 |
|
|
exec 5>>config.log
|
24414 |
|
|
{
|
24415 |
|
|
echo
|
24416 |
|
|
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
|
24417 |
|
|
@%:@@%:@ Running $as_me. @%:@@%:@
|
24418 |
|
|
_ASBOX
|
24419 |
|
|
echo "$ac_log"
|
24420 |
|
|
} >&5
|
24421 |
|
|
|
24422 |
|
|
_ACEOF
|
24423 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24424 |
|
|
#
|
24425 |
|
|
# INIT-COMMANDS
|
24426 |
|
|
#
|
24427 |
|
|
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
24428 |
|
|
|
24429 |
|
|
|
24430 |
|
|
_ACEOF
|
24431 |
|
|
|
24432 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
24433 |
|
|
|
24434 |
|
|
# Handling of arguments.
|
24435 |
|
|
for ac_config_target in $ac_config_targets
|
24436 |
|
|
do
|
24437 |
|
|
case $ac_config_target in
|
24438 |
|
|
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
24439 |
|
|
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
24440 |
|
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
24441 |
|
|
"bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
|
24442 |
|
|
"cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
|
24443 |
|
|
"cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
|
24444 |
|
|
"cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
|
24445 |
|
|
"cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
|
24446 |
|
|
"cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
|
24447 |
|
|
"cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
|
24448 |
|
|
"cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
|
24449 |
|
|
"debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
|
24450 |
|
|
"support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
|
24451 |
|
|
"mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
|
24452 |
|
|
"peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
|
24453 |
|
|
"tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
|
24454 |
|
|
"peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
|
24455 |
|
|
"pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
|
24456 |
|
|
"pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
|
24457 |
|
|
"vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
|
24458 |
|
|
"port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
|
24459 |
|
|
"default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
24460 |
|
|
|
24461 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
24462 |
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
24463 |
|
|
{ (exit 1); exit 1; }; };;
|
24464 |
|
|
esac
|
24465 |
|
|
done
|
24466 |
|
|
|
24467 |
|
|
|
24468 |
|
|
# If the user did not use the arguments to specify the items to instantiate,
|
24469 |
|
|
# then the envvar interface is used. Set only those that are not.
|
24470 |
|
|
# We use the long form for the default assignment because of an extremely
|
24471 |
|
|
# bizarre bug on SunOS 4.1.3.
|
24472 |
|
|
if $ac_need_defaults; then
|
24473 |
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
24474 |
|
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
24475 |
|
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
24476 |
|
|
fi
|
24477 |
|
|
|
24478 |
|
|
# Have a temporary directory for convenience. Make it in the build tree
|
24479 |
|
|
# simply because there is no reason against having it here, and in addition,
|
24480 |
|
|
# creating and moving files from /tmp can sometimes cause problems.
|
24481 |
|
|
# Hook for its removal unless debugging.
|
24482 |
|
|
# Note that there is a small window in which the directory will not be cleaned:
|
24483 |
|
|
# after its creation but before its name has been assigned to `$tmp'.
|
24484 |
|
|
$debug ||
|
24485 |
|
|
{
|
24486 |
|
|
tmp=
|
24487 |
|
|
trap 'exit_status=$?
|
24488 |
|
|
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
24489 |
|
|
' 0
|
24490 |
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
24491 |
|
|
}
|
24492 |
|
|
# Create a (secure) tmp directory for tmp files.
|
24493 |
|
|
|
24494 |
|
|
{
|
24495 |
|
|
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
24496 |
|
|
test -n "$tmp" && test -d "$tmp"
|
24497 |
|
|
} ||
|
24498 |
|
|
{
|
24499 |
|
|
tmp=./conf$$-$RANDOM
|
24500 |
|
|
(umask 077 && mkdir "$tmp")
|
24501 |
|
|
} ||
|
24502 |
|
|
{
|
24503 |
|
|
echo "$me: cannot create a temporary directory in ." >&2
|
24504 |
|
|
{ (exit 1); exit 1; }
|
24505 |
|
|
}
|
24506 |
|
|
|
24507 |
|
|
#
|
24508 |
|
|
# Set up the sed scripts for CONFIG_FILES section.
|
24509 |
|
|
#
|
24510 |
|
|
|
24511 |
|
|
# No need to generate the scripts if there are no CONFIG_FILES.
|
24512 |
|
|
# This happens for instance when ./config.status config.h
|
24513 |
|
|
if test -n "$CONFIG_FILES"; then
|
24514 |
|
|
|
24515 |
|
|
_ACEOF
|
24516 |
|
|
|
24517 |
|
|
|
24518 |
|
|
|
24519 |
|
|
ac_delim='%!_!# '
|
24520 |
|
|
for ac_last_try in false false false false false :; do
|
24521 |
|
|
cat >conf$$subs.sed <<_ACEOF
|
24522 |
|
|
SHELL!$SHELL$ac_delim
|
24523 |
|
|
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
24524 |
|
|
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
24525 |
|
|
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
24526 |
|
|
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
24527 |
|
|
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
24528 |
|
|
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
24529 |
|
|
exec_prefix!$exec_prefix$ac_delim
|
24530 |
|
|
prefix!$prefix$ac_delim
|
24531 |
|
|
program_transform_name!$program_transform_name$ac_delim
|
24532 |
|
|
bindir!$bindir$ac_delim
|
24533 |
|
|
sbindir!$sbindir$ac_delim
|
24534 |
|
|
libexecdir!$libexecdir$ac_delim
|
24535 |
|
|
datarootdir!$datarootdir$ac_delim
|
24536 |
|
|
datadir!$datadir$ac_delim
|
24537 |
|
|
sysconfdir!$sysconfdir$ac_delim
|
24538 |
|
|
sharedstatedir!$sharedstatedir$ac_delim
|
24539 |
|
|
localstatedir!$localstatedir$ac_delim
|
24540 |
|
|
includedir!$includedir$ac_delim
|
24541 |
|
|
oldincludedir!$oldincludedir$ac_delim
|
24542 |
|
|
docdir!$docdir$ac_delim
|
24543 |
|
|
infodir!$infodir$ac_delim
|
24544 |
|
|
htmldir!$htmldir$ac_delim
|
24545 |
|
|
dvidir!$dvidir$ac_delim
|
24546 |
|
|
pdfdir!$pdfdir$ac_delim
|
24547 |
|
|
psdir!$psdir$ac_delim
|
24548 |
|
|
libdir!$libdir$ac_delim
|
24549 |
|
|
localedir!$localedir$ac_delim
|
24550 |
|
|
mandir!$mandir$ac_delim
|
24551 |
|
|
DEFS!$DEFS$ac_delim
|
24552 |
|
|
ECHO_C!$ECHO_C$ac_delim
|
24553 |
|
|
ECHO_N!$ECHO_N$ac_delim
|
24554 |
|
|
ECHO_T!$ECHO_T$ac_delim
|
24555 |
|
|
LIBS!$LIBS$ac_delim
|
24556 |
|
|
build_alias!$build_alias$ac_delim
|
24557 |
|
|
host_alias!$host_alias$ac_delim
|
24558 |
|
|
target_alias!$target_alias$ac_delim
|
24559 |
|
|
build!$build$ac_delim
|
24560 |
|
|
build_cpu!$build_cpu$ac_delim
|
24561 |
|
|
build_vendor!$build_vendor$ac_delim
|
24562 |
|
|
build_os!$build_os$ac_delim
|
24563 |
|
|
host!$host$ac_delim
|
24564 |
|
|
host_cpu!$host_cpu$ac_delim
|
24565 |
|
|
host_vendor!$host_vendor$ac_delim
|
24566 |
|
|
host_os!$host_os$ac_delim
|
24567 |
|
|
target!$target$ac_delim
|
24568 |
|
|
target_cpu!$target_cpu$ac_delim
|
24569 |
|
|
target_vendor!$target_vendor$ac_delim
|
24570 |
|
|
target_os!$target_os$ac_delim
|
24571 |
|
|
CC!$CC$ac_delim
|
24572 |
|
|
CFLAGS!$CFLAGS$ac_delim
|
24573 |
|
|
LDFLAGS!$LDFLAGS$ac_delim
|
24574 |
|
|
CPPFLAGS!$CPPFLAGS$ac_delim
|
24575 |
|
|
ac_ct_CC!$ac_ct_CC$ac_delim
|
24576 |
|
|
EXEEXT!$EXEEXT$ac_delim
|
24577 |
|
|
OBJEXT!$OBJEXT$ac_delim
|
24578 |
|
|
SED!$SED$ac_delim
|
24579 |
|
|
GREP!$GREP$ac_delim
|
24580 |
|
|
EGREP!$EGREP$ac_delim
|
24581 |
|
|
LN_S!$LN_S$ac_delim
|
24582 |
|
|
ECHO!$ECHO$ac_delim
|
24583 |
|
|
AR!$AR$ac_delim
|
24584 |
|
|
RANLIB!$RANLIB$ac_delim
|
24585 |
|
|
STRIP!$STRIP$ac_delim
|
24586 |
|
|
CPP!$CPP$ac_delim
|
24587 |
|
|
CXX!$CXX$ac_delim
|
24588 |
|
|
CXXFLAGS!$CXXFLAGS$ac_delim
|
24589 |
|
|
ac_ct_CXX!$ac_ct_CXX$ac_delim
|
24590 |
|
|
CXXCPP!$CXXCPP$ac_delim
|
24591 |
|
|
F77!$F77$ac_delim
|
24592 |
|
|
FFLAGS!$FFLAGS$ac_delim
|
24593 |
|
|
ac_ct_F77!$ac_ct_F77$ac_delim
|
24594 |
|
|
LIBTOOL!$LIBTOOL$ac_delim
|
24595 |
|
|
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
24596 |
|
|
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
24597 |
|
|
INSTALL_DATA!$INSTALL_DATA$ac_delim
|
24598 |
|
|
am__isrc!$am__isrc$ac_delim
|
24599 |
|
|
CYGPATH_W!$CYGPATH_W$ac_delim
|
24600 |
|
|
PACKAGE!$PACKAGE$ac_delim
|
24601 |
|
|
VERSION!$VERSION$ac_delim
|
24602 |
|
|
ACLOCAL!$ACLOCAL$ac_delim
|
24603 |
|
|
AUTOCONF!$AUTOCONF$ac_delim
|
24604 |
|
|
AUTOMAKE!$AUTOMAKE$ac_delim
|
24605 |
|
|
AUTOHEADER!$AUTOHEADER$ac_delim
|
24606 |
|
|
MAKEINFO!$MAKEINFO$ac_delim
|
24607 |
|
|
install_sh!$install_sh$ac_delim
|
24608 |
|
|
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
|
24609 |
|
|
mkdir_p!$mkdir_p$ac_delim
|
24610 |
|
|
AWK!$AWK$ac_delim
|
24611 |
|
|
SET_MAKE!$SET_MAKE$ac_delim
|
24612 |
|
|
am__leading_dot!$am__leading_dot$ac_delim
|
24613 |
|
|
AMTAR!$AMTAR$ac_delim
|
24614 |
|
|
am__tar!$am__tar$ac_delim
|
24615 |
|
|
am__untar!$am__untar$ac_delim
|
24616 |
|
|
DEPDIR!$DEPDIR$ac_delim
|
24617 |
|
|
am__include!$am__include$ac_delim
|
24618 |
|
|
am__quote!$am__quote$ac_delim
|
24619 |
|
|
_ACEOF
|
24620 |
|
|
|
24621 |
|
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
24622 |
|
|
break
|
24623 |
|
|
elif $ac_last_try; then
|
24624 |
|
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
24625 |
|
|
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
24626 |
|
|
{ (exit 1); exit 1; }; }
|
24627 |
|
|
else
|
24628 |
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
24629 |
|
|
fi
|
24630 |
|
|
done
|
24631 |
|
|
|
24632 |
|
|
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
24633 |
|
|
if test -n "$ac_eof"; then
|
24634 |
|
|
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
24635 |
|
|
ac_eof=`expr $ac_eof + 1`
|
24636 |
|
|
fi
|
24637 |
|
|
|
24638 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24639 |
|
|
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
24640 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
24641 |
|
|
_ACEOF
|
24642 |
|
|
sed '
|
24643 |
|
|
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
24644 |
|
|
s/^/s,@/; s/!/@,|#_!!_#|/
|
24645 |
|
|
:n
|
24646 |
|
|
t n
|
24647 |
|
|
s/'"$ac_delim"'$/,g/; t
|
24648 |
|
|
s/$/\\/; p
|
24649 |
|
|
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
24650 |
|
|
' >>$CONFIG_STATUS
|
24651 |
|
|
rm -f conf$$subs.sed
|
24652 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24653 |
|
|
CEOF$ac_eof
|
24654 |
|
|
_ACEOF
|
24655 |
|
|
|
24656 |
|
|
|
24657 |
|
|
ac_delim='%!_!# '
|
24658 |
|
|
for ac_last_try in false false false false false :; do
|
24659 |
|
|
cat >conf$$subs.sed <<_ACEOF
|
24660 |
|
|
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
|
24661 |
|
|
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
|
24662 |
|
|
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
|
24663 |
|
|
CCDEPMODE!$CCDEPMODE$ac_delim
|
24664 |
|
|
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
|
24665 |
|
|
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
|
24666 |
|
|
CXXDEPMODE!$CXXDEPMODE$ac_delim
|
24667 |
|
|
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
|
24668 |
|
|
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
|
24669 |
|
|
CPU_ARCH!$CPU_ARCH$ac_delim
|
24670 |
|
|
MAKE_SHELL!$MAKE_SHELL$ac_delim
|
24671 |
|
|
GENERATE_NEEDED_TRUE!$GENERATE_NEEDED_TRUE$ac_delim
|
24672 |
|
|
GENERATE_NEEDED_FALSE!$GENERATE_NEEDED_FALSE$ac_delim
|
24673 |
|
|
DYNAMIC_EXECUTION_TRUE!$DYNAMIC_EXECUTION_TRUE$ac_delim
|
24674 |
|
|
DYNAMIC_EXECUTION_FALSE!$DYNAMIC_EXECUTION_FALSE$ac_delim
|
24675 |
|
|
BUILD_DIR!$BUILD_DIR$ac_delim
|
24676 |
|
|
LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
|
24677 |
|
|
LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
|
24678 |
|
|
LOCAL_DEFS!$LOCAL_DEFS$ac_delim
|
24679 |
|
|
ARFLAGS!$ARFLAGS$ac_delim
|
24680 |
|
|
SUMVERSION!$SUMVERSION$ac_delim
|
24681 |
|
|
TERMCAP_LIB!$TERMCAP_LIB$ac_delim
|
24682 |
|
|
INCLUDES!$INCLUDES$ac_delim
|
24683 |
|
|
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
|
24684 |
|
|
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
24685 |
|
|
_ACEOF
|
24686 |
|
|
|
24687 |
|
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
|
24688 |
|
|
break
|
24689 |
|
|
elif $ac_last_try; then
|
24690 |
|
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
24691 |
|
|
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
24692 |
|
|
{ (exit 1); exit 1; }; }
|
24693 |
|
|
else
|
24694 |
|
|
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
24695 |
|
|
fi
|
24696 |
|
|
done
|
24697 |
|
|
|
24698 |
|
|
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
24699 |
|
|
if test -n "$ac_eof"; then
|
24700 |
|
|
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
24701 |
|
|
ac_eof=`expr $ac_eof + 1`
|
24702 |
|
|
fi
|
24703 |
|
|
|
24704 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24705 |
|
|
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
|
24706 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
24707 |
|
|
_ACEOF
|
24708 |
|
|
sed '
|
24709 |
|
|
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
24710 |
|
|
s/^/s,@/; s/!/@,|#_!!_#|/
|
24711 |
|
|
:n
|
24712 |
|
|
t n
|
24713 |
|
|
s/'"$ac_delim"'$/,g/; t
|
24714 |
|
|
s/$/\\/; p
|
24715 |
|
|
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
24716 |
|
|
' >>$CONFIG_STATUS
|
24717 |
|
|
rm -f conf$$subs.sed
|
24718 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24719 |
|
|
:end
|
24720 |
|
|
s/|#_!!_#|//g
|
24721 |
|
|
CEOF$ac_eof
|
24722 |
|
|
_ACEOF
|
24723 |
|
|
|
24724 |
|
|
|
24725 |
|
|
# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
24726 |
|
|
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
24727 |
|
|
# trailing colons and then remove the whole line if VPATH becomes empty
|
24728 |
|
|
# (actually we leave an empty line to preserve line numbers).
|
24729 |
|
|
if test "x$srcdir" = x.; then
|
24730 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
24731 |
|
|
s/:*\$(srcdir):*/:/
|
24732 |
|
|
s/:*\${srcdir}:*/:/
|
24733 |
|
|
s/:*@srcdir@:*/:/
|
24734 |
|
|
s/^\([^=]*=[ ]*\):*/\1/
|
24735 |
|
|
s/:*$//
|
24736 |
|
|
s/^[^=]*=[ ]*$//
|
24737 |
|
|
}'
|
24738 |
|
|
fi
|
24739 |
|
|
|
24740 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
24741 |
|
|
fi # test -n "$CONFIG_FILES"
|
24742 |
|
|
|
24743 |
|
|
|
24744 |
|
|
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
|
24745 |
|
|
do
|
24746 |
|
|
case $ac_tag in
|
24747 |
|
|
:[FHLC]) ac_mode=$ac_tag; continue;;
|
24748 |
|
|
esac
|
24749 |
|
|
case $ac_mode$ac_tag in
|
24750 |
|
|
:[FHL]*:*);;
|
24751 |
|
|
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
24752 |
|
|
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
24753 |
|
|
{ (exit 1); exit 1; }; };;
|
24754 |
|
|
:[FH]-) ac_tag=-:-;;
|
24755 |
|
|
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
24756 |
|
|
esac
|
24757 |
|
|
ac_save_IFS=$IFS
|
24758 |
|
|
IFS=:
|
24759 |
|
|
set x $ac_tag
|
24760 |
|
|
IFS=$ac_save_IFS
|
24761 |
|
|
shift
|
24762 |
|
|
ac_file=$1
|
24763 |
|
|
shift
|
24764 |
|
|
|
24765 |
|
|
case $ac_mode in
|
24766 |
|
|
:L) ac_source=$1;;
|
24767 |
|
|
:[FH])
|
24768 |
|
|
ac_file_inputs=
|
24769 |
|
|
for ac_f
|
24770 |
|
|
do
|
24771 |
|
|
case $ac_f in
|
24772 |
|
|
-) ac_f="$tmp/stdin";;
|
24773 |
|
|
*) # Look for the file first in the build tree, then in the source tree
|
24774 |
|
|
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
24775 |
|
|
# because $ac_f cannot contain `:'.
|
24776 |
|
|
test -f "$ac_f" ||
|
24777 |
|
|
case $ac_f in
|
24778 |
|
|
[\\/$]*) false;;
|
24779 |
|
|
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
24780 |
|
|
esac ||
|
24781 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
24782 |
|
|
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
24783 |
|
|
{ (exit 1); exit 1; }; };;
|
24784 |
|
|
esac
|
24785 |
|
|
ac_file_inputs="$ac_file_inputs $ac_f"
|
24786 |
|
|
done
|
24787 |
|
|
|
24788 |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
24789 |
|
|
# use $as_me), people would be surprised to read:
|
24790 |
|
|
# /* config.h. Generated by config.status. */
|
24791 |
|
|
configure_input="Generated from "`IFS=:
|
24792 |
|
|
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
24793 |
|
|
if test x"$ac_file" != x-; then
|
24794 |
|
|
configure_input="$ac_file. $configure_input"
|
24795 |
|
|
{ echo "$as_me:$LINENO: creating $ac_file" >&5
|
24796 |
|
|
echo "$as_me: creating $ac_file" >&6;}
|
24797 |
|
|
fi
|
24798 |
|
|
|
24799 |
|
|
case $ac_tag in
|
24800 |
|
|
*:-:* | *:-) cat >"$tmp/stdin";;
|
24801 |
|
|
esac
|
24802 |
|
|
;;
|
24803 |
|
|
esac
|
24804 |
|
|
|
24805 |
|
|
ac_dir=`$as_dirname -- "$ac_file" ||
|
24806 |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
24807 |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \
|
24808 |
|
|
X"$ac_file" : 'X\(//\)$' \| \
|
24809 |
|
|
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
24810 |
|
|
echo X"$ac_file" |
|
24811 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
24812 |
|
|
s//\1/
|
24813 |
|
|
q
|
24814 |
|
|
}
|
24815 |
|
|
/^X\(\/\/\)[^/].*/{
|
24816 |
|
|
s//\1/
|
24817 |
|
|
q
|
24818 |
|
|
}
|
24819 |
|
|
/^X\(\/\/\)$/{
|
24820 |
|
|
s//\1/
|
24821 |
|
|
q
|
24822 |
|
|
}
|
24823 |
|
|
/^X\(\/\).*/{
|
24824 |
|
|
s//\1/
|
24825 |
|
|
q
|
24826 |
|
|
}
|
24827 |
|
|
s/.*/./; q'`
|
24828 |
|
|
{ as_dir="$ac_dir"
|
24829 |
|
|
case $as_dir in #(
|
24830 |
|
|
-*) as_dir=./$as_dir;;
|
24831 |
|
|
esac
|
24832 |
|
|
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
24833 |
|
|
as_dirs=
|
24834 |
|
|
while :; do
|
24835 |
|
|
case $as_dir in #(
|
24836 |
|
|
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
24837 |
|
|
*) as_qdir=$as_dir;;
|
24838 |
|
|
esac
|
24839 |
|
|
as_dirs="'$as_qdir' $as_dirs"
|
24840 |
|
|
as_dir=`$as_dirname -- "$as_dir" ||
|
24841 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
24842 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
24843 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
24844 |
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
24845 |
|
|
echo X"$as_dir" |
|
24846 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
24847 |
|
|
s//\1/
|
24848 |
|
|
q
|
24849 |
|
|
}
|
24850 |
|
|
/^X\(\/\/\)[^/].*/{
|
24851 |
|
|
s//\1/
|
24852 |
|
|
q
|
24853 |
|
|
}
|
24854 |
|
|
/^X\(\/\/\)$/{
|
24855 |
|
|
s//\1/
|
24856 |
|
|
q
|
24857 |
|
|
}
|
24858 |
|
|
/^X\(\/\).*/{
|
24859 |
|
|
s//\1/
|
24860 |
|
|
q
|
24861 |
|
|
}
|
24862 |
|
|
s/.*/./; q'`
|
24863 |
|
|
test -d "$as_dir" && break
|
24864 |
|
|
done
|
24865 |
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
24866 |
|
|
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
24867 |
|
|
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
24868 |
|
|
{ (exit 1); exit 1; }; }; }
|
24869 |
|
|
ac_builddir=.
|
24870 |
|
|
|
24871 |
|
|
case "$ac_dir" in
|
24872 |
|
|
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
24873 |
|
|
*)
|
24874 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
24875 |
|
|
# A ".." for each directory in $ac_dir_suffix.
|
24876 |
|
|
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
24877 |
|
|
case $ac_top_builddir_sub in
|
24878 |
|
|
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
24879 |
|
|
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
24880 |
|
|
esac ;;
|
24881 |
|
|
esac
|
24882 |
|
|
ac_abs_top_builddir=$ac_pwd
|
24883 |
|
|
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
24884 |
|
|
# for backward compatibility:
|
24885 |
|
|
ac_top_builddir=$ac_top_build_prefix
|
24886 |
|
|
|
24887 |
|
|
case $srcdir in
|
24888 |
|
|
.) # We are building in place.
|
24889 |
|
|
ac_srcdir=.
|
24890 |
|
|
ac_top_srcdir=$ac_top_builddir_sub
|
24891 |
|
|
ac_abs_top_srcdir=$ac_pwd ;;
|
24892 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute name.
|
24893 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
24894 |
|
|
ac_top_srcdir=$srcdir
|
24895 |
|
|
ac_abs_top_srcdir=$srcdir ;;
|
24896 |
|
|
*) # Relative name.
|
24897 |
|
|
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
24898 |
|
|
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
24899 |
|
|
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
24900 |
|
|
esac
|
24901 |
|
|
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
24902 |
|
|
|
24903 |
|
|
|
24904 |
|
|
case $ac_mode in
|
24905 |
|
|
:F)
|
24906 |
|
|
#
|
24907 |
|
|
# CONFIG_FILE
|
24908 |
|
|
#
|
24909 |
|
|
|
24910 |
|
|
case $INSTALL in
|
24911 |
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
24912 |
|
|
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
24913 |
|
|
esac
|
24914 |
|
|
ac_MKDIR_P=$MKDIR_P
|
24915 |
|
|
case $MKDIR_P in
|
24916 |
|
|
[\\/$]* | ?:[\\/]* ) ;;
|
24917 |
|
|
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
24918 |
|
|
esac
|
24919 |
|
|
_ACEOF
|
24920 |
|
|
|
24921 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
24922 |
|
|
# If the template does not know about datarootdir, expand it.
|
24923 |
|
|
# FIXME: This hack should be removed a few years after 2.60.
|
24924 |
|
|
ac_datarootdir_hack=; ac_datarootdir_seen=
|
24925 |
|
|
|
24926 |
|
|
case `sed -n '/datarootdir/ {
|
24927 |
|
|
p
|
24928 |
|
|
q
|
24929 |
|
|
}
|
24930 |
|
|
/@datadir@/p
|
24931 |
|
|
/@docdir@/p
|
24932 |
|
|
/@infodir@/p
|
24933 |
|
|
/@localedir@/p
|
24934 |
|
|
/@mandir@/p
|
24935 |
|
|
' $ac_file_inputs` in
|
24936 |
|
|
*datarootdir*) ac_datarootdir_seen=yes;;
|
24937 |
|
|
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
24938 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
24939 |
|
|
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
24940 |
|
|
_ACEOF
|
24941 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24942 |
|
|
ac_datarootdir_hack='
|
24943 |
|
|
s&@datadir@&$datadir&g
|
24944 |
|
|
s&@docdir@&$docdir&g
|
24945 |
|
|
s&@infodir@&$infodir&g
|
24946 |
|
|
s&@localedir@&$localedir&g
|
24947 |
|
|
s&@mandir@&$mandir&g
|
24948 |
|
|
s&\\\${datarootdir}&$datarootdir&g' ;;
|
24949 |
|
|
esac
|
24950 |
|
|
_ACEOF
|
24951 |
|
|
|
24952 |
|
|
# Neutralize VPATH when `$srcdir' = `.'.
|
24953 |
|
|
# Shell code in configure.ac might set extrasub.
|
24954 |
|
|
# FIXME: do we really want to maintain this feature?
|
24955 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
24956 |
|
|
sed "$ac_vpsub
|
24957 |
|
|
$extrasub
|
24958 |
|
|
_ACEOF
|
24959 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
24960 |
|
|
:t
|
24961 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
24962 |
|
|
s&@configure_input@&$configure_input&;t t
|
24963 |
|
|
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
24964 |
|
|
s&@srcdir@&$ac_srcdir&;t t
|
24965 |
|
|
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
24966 |
|
|
s&@top_srcdir@&$ac_top_srcdir&;t t
|
24967 |
|
|
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
24968 |
|
|
s&@builddir@&$ac_builddir&;t t
|
24969 |
|
|
s&@abs_builddir@&$ac_abs_builddir&;t t
|
24970 |
|
|
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
24971 |
|
|
s&@INSTALL@&$ac_INSTALL&;t t
|
24972 |
|
|
s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
24973 |
|
|
$ac_datarootdir_hack
|
24974 |
|
|
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
|
24975 |
|
|
|
24976 |
|
|
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
24977 |
|
|
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
24978 |
|
|
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
24979 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
24980 |
|
|
which seems to be undefined. Please make sure it is defined." >&5
|
24981 |
|
|
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
24982 |
|
|
which seems to be undefined. Please make sure it is defined." >&2;}
|
24983 |
|
|
|
24984 |
|
|
rm -f "$tmp/stdin"
|
24985 |
|
|
case $ac_file in
|
24986 |
|
|
-) cat "$tmp/out"; rm -f "$tmp/out";;
|
24987 |
|
|
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
24988 |
|
|
esac
|
24989 |
|
|
;;
|
24990 |
|
|
:H)
|
24991 |
|
|
#
|
24992 |
|
|
# CONFIG_HEADER
|
24993 |
|
|
#
|
24994 |
|
|
_ACEOF
|
24995 |
|
|
|
24996 |
|
|
# Transform confdefs.h into a sed script `conftest.defines', that
|
24997 |
|
|
# substitutes the proper values into config.h.in to produce config.h.
|
24998 |
|
|
rm -f conftest.defines conftest.tail
|
24999 |
|
|
# First, append a space to every undef/define line, to ease matching.
|
25000 |
|
|
echo 's/$/ /' >conftest.defines
|
25001 |
|
|
# Then, protect against being on the right side of a sed subst, or in
|
25002 |
|
|
# an unquoted here document, in config.status. If some macros were
|
25003 |
|
|
# called several times there might be several #defines for the same
|
25004 |
|
|
# symbol, which is useless. But do not sort them, since the last
|
25005 |
|
|
# AC_DEFINE must be honored.
|
25006 |
|
|
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
25007 |
|
|
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
25008 |
|
|
# NAME is the cpp macro being defined, VALUE is the value it is being given.
|
25009 |
|
|
# PARAMS is the parameter list in the macro definition--in most cases, it's
|
25010 |
|
|
# just an empty string.
|
25011 |
|
|
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
25012 |
|
|
ac_dB='\\)[ (].*,\\1define\\2'
|
25013 |
|
|
ac_dC=' '
|
25014 |
|
|
ac_dD=' ,'
|
25015 |
|
|
|
25016 |
|
|
uniq confdefs.h |
|
25017 |
|
|
sed -n '
|
25018 |
|
|
t rset
|
25019 |
|
|
:rset
|
25020 |
|
|
s/^[ ]*#[ ]*define[ ][ ]*//
|
25021 |
|
|
t ok
|
25022 |
|
|
d
|
25023 |
|
|
:ok
|
25024 |
|
|
s/[\\&,]/\\&/g
|
25025 |
|
|
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
25026 |
|
|
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
25027 |
|
|
' >>conftest.defines
|
25028 |
|
|
|
25029 |
|
|
# Remove the space that was appended to ease matching.
|
25030 |
|
|
# Then replace #undef with comments. This is necessary, for
|
25031 |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
25032 |
|
|
# on some systems where configure will not decide to define it.
|
25033 |
|
|
# (The regexp can be short, since the line contains either #define or #undef.)
|
25034 |
|
|
echo 's/ $//
|
25035 |
|
|
s,^[ #]*u.*,/* & */,' >>conftest.defines
|
25036 |
|
|
|
25037 |
|
|
# Break up conftest.defines:
|
25038 |
|
|
ac_max_sed_lines=50
|
25039 |
|
|
|
25040 |
|
|
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
25041 |
|
|
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
25042 |
|
|
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
25043 |
|
|
# et cetera.
|
25044 |
|
|
ac_in='$ac_file_inputs'
|
25045 |
|
|
ac_out='"$tmp/out1"'
|
25046 |
|
|
ac_nxt='"$tmp/out2"'
|
25047 |
|
|
|
25048 |
|
|
while :
|
25049 |
|
|
do
|
25050 |
|
|
# Write a here document:
|
25051 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
25052 |
|
|
# First, check the format of the line:
|
25053 |
|
|
cat >"\$tmp/defines.sed" <<\\CEOF
|
25054 |
|
|
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
25055 |
|
|
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
25056 |
|
|
b
|
25057 |
|
|
:def
|
25058 |
|
|
_ACEOF
|
25059 |
|
|
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
25060 |
|
|
echo 'CEOF
|
25061 |
|
|
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
25062 |
|
|
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
25063 |
|
|
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
25064 |
|
|
grep . conftest.tail >/dev/null || break
|
25065 |
|
|
rm -f conftest.defines
|
25066 |
|
|
mv conftest.tail conftest.defines
|
25067 |
|
|
done
|
25068 |
|
|
rm -f conftest.defines conftest.tail
|
25069 |
|
|
|
25070 |
|
|
echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
25071 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
25072 |
|
|
if test x"$ac_file" != x-; then
|
25073 |
|
|
echo "/* $configure_input */" >"$tmp/config.h"
|
25074 |
|
|
cat "$ac_result" >>"$tmp/config.h"
|
25075 |
|
|
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
25076 |
|
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
25077 |
|
|
echo "$as_me: $ac_file is unchanged" >&6;}
|
25078 |
|
|
else
|
25079 |
|
|
rm -f $ac_file
|
25080 |
|
|
mv "$tmp/config.h" $ac_file
|
25081 |
|
|
fi
|
25082 |
|
|
else
|
25083 |
|
|
echo "/* $configure_input */"
|
25084 |
|
|
cat "$ac_result"
|
25085 |
|
|
fi
|
25086 |
|
|
rm -f "$tmp/out12"
|
25087 |
|
|
# Compute $ac_file's index in $config_headers.
|
25088 |
|
|
_am_arg=$ac_file
|
25089 |
|
|
_am_stamp_count=1
|
25090 |
|
|
for _am_header in $config_headers :; do
|
25091 |
|
|
case $_am_header in
|
25092 |
|
|
$_am_arg | $_am_arg:* )
|
25093 |
|
|
break ;;
|
25094 |
|
|
* )
|
25095 |
|
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
25096 |
|
|
esac
|
25097 |
|
|
done
|
25098 |
|
|
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
25099 |
|
|
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
25100 |
|
|
X"$_am_arg" : 'X\(//\)[^/]' \| \
|
25101 |
|
|
X"$_am_arg" : 'X\(//\)$' \| \
|
25102 |
|
|
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
25103 |
|
|
echo X"$_am_arg" |
|
25104 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
25105 |
|
|
s//\1/
|
25106 |
|
|
q
|
25107 |
|
|
}
|
25108 |
|
|
/^X\(\/\/\)[^/].*/{
|
25109 |
|
|
s//\1/
|
25110 |
|
|
q
|
25111 |
|
|
}
|
25112 |
|
|
/^X\(\/\/\)$/{
|
25113 |
|
|
s//\1/
|
25114 |
|
|
q
|
25115 |
|
|
}
|
25116 |
|
|
/^X\(\/\).*/{
|
25117 |
|
|
s//\1/
|
25118 |
|
|
q
|
25119 |
|
|
}
|
25120 |
|
|
s/.*/./; q'`/stamp-h$_am_stamp_count
|
25121 |
|
|
;;
|
25122 |
|
|
|
25123 |
|
|
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
|
25124 |
|
|
echo "$as_me: executing $ac_file commands" >&6;}
|
25125 |
|
|
;;
|
25126 |
|
|
esac
|
25127 |
|
|
|
25128 |
|
|
|
25129 |
|
|
case $ac_file$ac_mode in
|
25130 |
|
|
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
25131 |
|
|
# Strip MF so we end up with the name of the file.
|
25132 |
|
|
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
25133 |
|
|
# Check whether this is an Automake generated Makefile or not.
|
25134 |
|
|
# We used to match only the files named `Makefile.in', but
|
25135 |
|
|
# some people rename them; so instead we look at the file content.
|
25136 |
|
|
# Grep'ing the first line is not enough: some people post-process
|
25137 |
|
|
# each Makefile.in and add a new line on top of each file to say so.
|
25138 |
|
|
# Grep'ing the whole file is not good either: AIX grep has a line
|
25139 |
|
|
# limit of 2048, but all sed's we know have understand at least 4000.
|
25140 |
|
|
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
25141 |
|
|
dirpart=`$as_dirname -- "$mf" ||
|
25142 |
|
|
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
25143 |
|
|
X"$mf" : 'X\(//\)[^/]' \| \
|
25144 |
|
|
X"$mf" : 'X\(//\)$' \| \
|
25145 |
|
|
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
25146 |
|
|
echo X"$mf" |
|
25147 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
25148 |
|
|
s//\1/
|
25149 |
|
|
q
|
25150 |
|
|
}
|
25151 |
|
|
/^X\(\/\/\)[^/].*/{
|
25152 |
|
|
s//\1/
|
25153 |
|
|
q
|
25154 |
|
|
}
|
25155 |
|
|
/^X\(\/\/\)$/{
|
25156 |
|
|
s//\1/
|
25157 |
|
|
q
|
25158 |
|
|
}
|
25159 |
|
|
/^X\(\/\).*/{
|
25160 |
|
|
s//\1/
|
25161 |
|
|
q
|
25162 |
|
|
}
|
25163 |
|
|
s/.*/./; q'`
|
25164 |
|
|
else
|
25165 |
|
|
continue
|
25166 |
|
|
fi
|
25167 |
|
|
# Extract the definition of DEPDIR, am__include, and am__quote
|
25168 |
|
|
# from the Makefile without running `make'.
|
25169 |
|
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
25170 |
|
|
test -z "$DEPDIR" && continue
|
25171 |
|
|
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
25172 |
|
|
test -z "am__include" && continue
|
25173 |
|
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
25174 |
|
|
# When using ansi2knr, U may be empty or an underscore; expand it
|
25175 |
|
|
U=`sed -n 's/^U = //p' < "$mf"`
|
25176 |
|
|
# Find all dependency output files, they are included files with
|
25177 |
|
|
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
25178 |
|
|
# simplest approach to changing $(DEPDIR) to its actual value in the
|
25179 |
|
|
# expansion.
|
25180 |
|
|
for file in `sed -n "
|
25181 |
|
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
25182 |
|
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
25183 |
|
|
# Make sure the directory exists.
|
25184 |
|
|
test -f "$dirpart/$file" && continue
|
25185 |
|
|
fdir=`$as_dirname -- "$file" ||
|
25186 |
|
|
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
25187 |
|
|
X"$file" : 'X\(//\)[^/]' \| \
|
25188 |
|
|
X"$file" : 'X\(//\)$' \| \
|
25189 |
|
|
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
25190 |
|
|
echo X"$file" |
|
25191 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
25192 |
|
|
s//\1/
|
25193 |
|
|
q
|
25194 |
|
|
}
|
25195 |
|
|
/^X\(\/\/\)[^/].*/{
|
25196 |
|
|
s//\1/
|
25197 |
|
|
q
|
25198 |
|
|
}
|
25199 |
|
|
/^X\(\/\/\)$/{
|
25200 |
|
|
s//\1/
|
25201 |
|
|
q
|
25202 |
|
|
}
|
25203 |
|
|
/^X\(\/\).*/{
|
25204 |
|
|
s//\1/
|
25205 |
|
|
q
|
25206 |
|
|
}
|
25207 |
|
|
s/.*/./; q'`
|
25208 |
|
|
{ as_dir=$dirpart/$fdir
|
25209 |
|
|
case $as_dir in #(
|
25210 |
|
|
-*) as_dir=./$as_dir;;
|
25211 |
|
|
esac
|
25212 |
|
|
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
25213 |
|
|
as_dirs=
|
25214 |
|
|
while :; do
|
25215 |
|
|
case $as_dir in #(
|
25216 |
|
|
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
25217 |
|
|
*) as_qdir=$as_dir;;
|
25218 |
|
|
esac
|
25219 |
|
|
as_dirs="'$as_qdir' $as_dirs"
|
25220 |
|
|
as_dir=`$as_dirname -- "$as_dir" ||
|
25221 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
25222 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
25223 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
25224 |
|
|
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
25225 |
|
|
echo X"$as_dir" |
|
25226 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
25227 |
|
|
s//\1/
|
25228 |
|
|
q
|
25229 |
|
|
}
|
25230 |
|
|
/^X\(\/\/\)[^/].*/{
|
25231 |
|
|
s//\1/
|
25232 |
|
|
q
|
25233 |
|
|
}
|
25234 |
|
|
/^X\(\/\/\)$/{
|
25235 |
|
|
s//\1/
|
25236 |
|
|
q
|
25237 |
|
|
}
|
25238 |
|
|
/^X\(\/\).*/{
|
25239 |
|
|
s//\1/
|
25240 |
|
|
q
|
25241 |
|
|
}
|
25242 |
|
|
s/.*/./; q'`
|
25243 |
|
|
test -d "$as_dir" && break
|
25244 |
|
|
done
|
25245 |
|
|
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
25246 |
|
|
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
25247 |
|
|
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
25248 |
|
|
{ (exit 1); exit 1; }; }; }
|
25249 |
|
|
# echo "creating $dirpart/$file"
|
25250 |
|
|
echo '# dummy' > "$dirpart/$file"
|
25251 |
|
|
done
|
25252 |
|
|
done
|
25253 |
|
|
;;
|
25254 |
|
|
"default":C)
|
25255 |
|
|
# Makefile uses this timestamp file to record whether config.h is up to date.
|
25256 |
|
|
echo > stamp-h
|
25257 |
|
|
;;
|
25258 |
|
|
|
25259 |
|
|
esac
|
25260 |
|
|
done # for ac_tag
|
25261 |
|
|
|
25262 |
|
|
|
25263 |
|
|
{ (exit 0); exit 0; }
|
25264 |
|
|
_ACEOF
|
25265 |
|
|
chmod +x $CONFIG_STATUS
|
25266 |
|
|
ac_clean_files=$ac_clean_files_save
|
25267 |
|
|
|
25268 |
|
|
|
25269 |
|
|
# configure is writing to config.log, and then calls config.status.
|
25270 |
|
|
# config.status does its own redirection, appending to config.log.
|
25271 |
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open
|
25272 |
|
|
# by configure, so config.status won't be able to write to it; its
|
25273 |
|
|
# output is simply discarded. So we exec the FD to /dev/null,
|
25274 |
|
|
# effectively closing config.log, so it can be properly (re)opened and
|
25275 |
|
|
# appended to by config.status. When coming back to configure, we
|
25276 |
|
|
# need to make the FD available again.
|
25277 |
|
|
if test "$no_create" != yes; then
|
25278 |
|
|
ac_cs_success=:
|
25279 |
|
|
ac_config_status_args=
|
25280 |
|
|
test "$silent" = yes &&
|
25281 |
|
|
ac_config_status_args="$ac_config_status_args --quiet"
|
25282 |
|
|
exec 5>/dev/null
|
25283 |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
25284 |
|
|
exec 5>>config.log
|
25285 |
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
25286 |
|
|
# would make configure fail if this is the last instruction.
|
25287 |
|
|
$ac_cs_success || { (exit 1); exit 1; }
|
25288 |
|
|
fi
|
25289 |
|
|
|