1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.69 for hopm 1.0.0beta1. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
7 |
# |
8 |
# |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
11 |
## -------------------- ## |
12 |
## M4sh Initialization. ## |
13 |
## -------------------- ## |
14 |
|
15 |
# Be more Bourne compatible |
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
18 |
emulate sh |
19 |
NULLCMD=: |
20 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
21 |
# is contrary to our usage. Disable this feature. |
22 |
alias -g '${1+"$@"}'='"$@"' |
23 |
setopt NO_GLOB_SUBST |
24 |
else |
25 |
case `(set -o) 2>/dev/null` in #( |
26 |
*posix*) : |
27 |
set -o posix ;; #( |
28 |
*) : |
29 |
;; |
30 |
esac |
31 |
fi |
32 |
|
33 |
|
34 |
as_nl=' |
35 |
' |
36 |
export as_nl |
37 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
38 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
39 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
40 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
41 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
42 |
# but without wasting forks for bash or zsh. |
43 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
44 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
45 |
as_echo='print -r --' |
46 |
as_echo_n='print -rn --' |
47 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
48 |
as_echo='printf %s\n' |
49 |
as_echo_n='printf %s' |
50 |
else |
51 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
53 |
as_echo_n='/usr/ucb/echo -n' |
54 |
else |
55 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 |
as_echo_n_body='eval |
57 |
arg=$1; |
58 |
case $arg in #( |
59 |
*"$as_nl"*) |
60 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
61 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
62 |
esac; |
63 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
64 |
' |
65 |
export as_echo_n_body |
66 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
67 |
fi |
68 |
export as_echo_body |
69 |
as_echo='sh -c $as_echo_body as_echo' |
70 |
fi |
71 |
|
72 |
# The user is always right. |
73 |
if test "${PATH_SEPARATOR+set}" != set; then |
74 |
PATH_SEPARATOR=: |
75 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
76 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 |
PATH_SEPARATOR=';' |
78 |
} |
79 |
fi |
80 |
|
81 |
|
82 |
# IFS |
83 |
# We need space, tab and new line, in precisely that order. Quoting is |
84 |
# there to prevent editors from complaining about space-tab. |
85 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
86 |
# splitting by setting IFS to empty value.) |
87 |
IFS=" "" $as_nl" |
88 |
|
89 |
# Find who we are. Look in the path if we contain no directory separator. |
90 |
as_myself= |
91 |
case $0 in #(( |
92 |
*[\\/]* ) as_myself=$0 ;; |
93 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
94 |
for as_dir in $PATH |
95 |
do |
96 |
IFS=$as_save_IFS |
97 |
test -z "$as_dir" && as_dir=. |
98 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 |
done |
100 |
IFS=$as_save_IFS |
101 |
|
102 |
;; |
103 |
esac |
104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
105 |
# in which case we are not to be found in the path. |
106 |
if test "x$as_myself" = x; then |
107 |
as_myself=$0 |
108 |
fi |
109 |
if test ! -f "$as_myself"; then |
110 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
exit 1 |
112 |
fi |
113 |
|
114 |
# Unset variables that we do not need and which cause bugs (e.g. in |
115 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
116 |
# suppresses any "Segmentation fault" message there. '((' could |
117 |
# trigger a bug in pdksh 5.2.14. |
118 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
119 |
do eval test x\${$as_var+set} = xset \ |
120 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
121 |
done |
122 |
PS1='$ ' |
123 |
PS2='> ' |
124 |
PS4='+ ' |
125 |
|
126 |
# NLS nuisances. |
127 |
LC_ALL=C |
128 |
export LC_ALL |
129 |
LANGUAGE=C |
130 |
export LANGUAGE |
131 |
|
132 |
# CDPATH. |
133 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
134 |
|
135 |
# Use a proper internal environment variable to ensure we don't fall |
136 |
# into an infinite loop, continuously re-executing ourselves. |
137 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
138 |
_as_can_reexec=no; export _as_can_reexec; |
139 |
# We cannot yet assume a decent shell, so we have to provide a |
140 |
# neutralization value for shells without unset; and this also |
141 |
# works around shells that cannot unset nonexistent variables. |
142 |
# Preserve -v and -x to the replacement shell. |
143 |
BASH_ENV=/dev/null |
144 |
ENV=/dev/null |
145 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
146 |
case $- in # (((( |
147 |
*v*x* | *x*v* ) as_opts=-vx ;; |
148 |
*v* ) as_opts=-v ;; |
149 |
*x* ) as_opts=-x ;; |
150 |
* ) as_opts= ;; |
151 |
esac |
152 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
153 |
# Admittedly, this is quite paranoid, since all the known shells bail |
154 |
# out after a failed `exec'. |
155 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
156 |
as_fn_exit 255 |
157 |
fi |
158 |
# We don't want this to propagate to other subprocesses. |
159 |
{ _as_can_reexec=; unset _as_can_reexec;} |
160 |
if test "x$CONFIG_SHELL" = x; then |
161 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
162 |
emulate sh |
163 |
NULLCMD=: |
164 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
165 |
# is contrary to our usage. Disable this feature. |
166 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
167 |
setopt NO_GLOB_SUBST |
168 |
else |
169 |
case \`(set -o) 2>/dev/null\` in #( |
170 |
*posix*) : |
171 |
set -o posix ;; #( |
172 |
*) : |
173 |
;; |
174 |
esac |
175 |
fi |
176 |
" |
177 |
as_required="as_fn_return () { (exit \$1); } |
178 |
as_fn_success () { as_fn_return 0; } |
179 |
as_fn_failure () { as_fn_return 1; } |
180 |
as_fn_ret_success () { return 0; } |
181 |
as_fn_ret_failure () { return 1; } |
182 |
|
183 |
exitcode=0 |
184 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
185 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
186 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
187 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
188 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
189 |
|
190 |
else |
191 |
exitcode=1; echo positional parameters were not saved. |
192 |
fi |
193 |
test x\$exitcode = x0 || exit 1 |
194 |
test -x / || exit 1" |
195 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
197 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
198 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 |
|
200 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
201 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
202 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
203 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
204 |
PATH=/empty FPATH=/empty; export PATH FPATH |
205 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
206 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
207 |
test \$(( 1 + 1 )) = 2 || exit 1" |
208 |
if (eval "$as_required") 2>/dev/null; then : |
209 |
as_have_required=yes |
210 |
else |
211 |
as_have_required=no |
212 |
fi |
213 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
214 |
|
215 |
else |
216 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
217 |
as_found=false |
218 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
219 |
do |
220 |
IFS=$as_save_IFS |
221 |
test -z "$as_dir" && as_dir=. |
222 |
as_found=: |
223 |
case $as_dir in #( |
224 |
/*) |
225 |
for as_base in sh bash ksh sh5; do |
226 |
# Try only shells that exist, to save several forks. |
227 |
as_shell=$as_dir/$as_base |
228 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
229 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
230 |
CONFIG_SHELL=$as_shell as_have_required=yes |
231 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
232 |
break 2 |
233 |
fi |
234 |
fi |
235 |
done;; |
236 |
esac |
237 |
as_found=false |
238 |
done |
239 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
240 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
241 |
CONFIG_SHELL=$SHELL as_have_required=yes |
242 |
fi; } |
243 |
IFS=$as_save_IFS |
244 |
|
245 |
|
246 |
if test "x$CONFIG_SHELL" != x; then : |
247 |
export CONFIG_SHELL |
248 |
# We cannot yet assume a decent shell, so we have to provide a |
249 |
# neutralization value for shells without unset; and this also |
250 |
# works around shells that cannot unset nonexistent variables. |
251 |
# Preserve -v and -x to the replacement shell. |
252 |
BASH_ENV=/dev/null |
253 |
ENV=/dev/null |
254 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
255 |
case $- in # (((( |
256 |
*v*x* | *x*v* ) as_opts=-vx ;; |
257 |
*v* ) as_opts=-v ;; |
258 |
*x* ) as_opts=-x ;; |
259 |
* ) as_opts= ;; |
260 |
esac |
261 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
262 |
# Admittedly, this is quite paranoid, since all the known shells bail |
263 |
# out after a failed `exec'. |
264 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
265 |
exit 255 |
266 |
fi |
267 |
|
268 |
if test x$as_have_required = xno; then : |
269 |
$as_echo "$0: This script requires a shell more modern than all" |
270 |
$as_echo "$0: the shells that I found on your system." |
271 |
if test x${ZSH_VERSION+set} = xset ; then |
272 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
273 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
274 |
else |
275 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 |
$0: including any error possibly output before this |
277 |
$0: message. Then install a modern shell, or manually run |
278 |
$0: the script under such a shell if you do have one." |
279 |
fi |
280 |
exit 1 |
281 |
fi |
282 |
fi |
283 |
fi |
284 |
SHELL=${CONFIG_SHELL-/bin/sh} |
285 |
export SHELL |
286 |
# Unset more variables known to interfere with behavior of common tools. |
287 |
CLICOLOR_FORCE= GREP_OPTIONS= |
288 |
unset CLICOLOR_FORCE GREP_OPTIONS |
289 |
|
290 |
## --------------------- ## |
291 |
## M4sh Shell Functions. ## |
292 |
## --------------------- ## |
293 |
# as_fn_unset VAR |
294 |
# --------------- |
295 |
# Portably unset VAR. |
296 |
as_fn_unset () |
297 |
{ |
298 |
{ eval $1=; unset $1;} |
299 |
} |
300 |
as_unset=as_fn_unset |
301 |
|
302 |
# as_fn_set_status STATUS |
303 |
# ----------------------- |
304 |
# Set $? to STATUS, without forking. |
305 |
as_fn_set_status () |
306 |
{ |
307 |
return $1 |
308 |
} # as_fn_set_status |
309 |
|
310 |
# as_fn_exit STATUS |
311 |
# ----------------- |
312 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
313 |
as_fn_exit () |
314 |
{ |
315 |
set +e |
316 |
as_fn_set_status $1 |
317 |
exit $1 |
318 |
} # as_fn_exit |
319 |
|
320 |
# as_fn_mkdir_p |
321 |
# ------------- |
322 |
# Create "$as_dir" as a directory, including parents if necessary. |
323 |
as_fn_mkdir_p () |
324 |
{ |
325 |
|
326 |
case $as_dir in #( |
327 |
-*) as_dir=./$as_dir;; |
328 |
esac |
329 |
test -d "$as_dir" || eval $as_mkdir_p || { |
330 |
as_dirs= |
331 |
while :; do |
332 |
case $as_dir in #( |
333 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
334 |
*) as_qdir=$as_dir;; |
335 |
esac |
336 |
as_dirs="'$as_qdir' $as_dirs" |
337 |
as_dir=`$as_dirname -- "$as_dir" || |
338 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
339 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
340 |
X"$as_dir" : 'X\(//\)$' \| \ |
341 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
342 |
$as_echo X"$as_dir" | |
343 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
344 |
s//\1/ |
345 |
q |
346 |
} |
347 |
/^X\(\/\/\)[^/].*/{ |
348 |
s//\1/ |
349 |
q |
350 |
} |
351 |
/^X\(\/\/\)$/{ |
352 |
s//\1/ |
353 |
q |
354 |
} |
355 |
/^X\(\/\).*/{ |
356 |
s//\1/ |
357 |
q |
358 |
} |
359 |
s/.*/./; q'` |
360 |
test -d "$as_dir" && break |
361 |
done |
362 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
363 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
364 |
|
365 |
|
366 |
} # as_fn_mkdir_p |
367 |
|
368 |
# as_fn_executable_p FILE |
369 |
# ----------------------- |
370 |
# Test if FILE is an executable regular file. |
371 |
as_fn_executable_p () |
372 |
{ |
373 |
test -f "$1" && test -x "$1" |
374 |
} # as_fn_executable_p |
375 |
# as_fn_append VAR VALUE |
376 |
# ---------------------- |
377 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
378 |
# advantage of any shell optimizations that allow amortized linear growth over |
379 |
# repeated appends, instead of the typical quadratic growth present in naive |
380 |
# implementations. |
381 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
382 |
eval 'as_fn_append () |
383 |
{ |
384 |
eval $1+=\$2 |
385 |
}' |
386 |
else |
387 |
as_fn_append () |
388 |
{ |
389 |
eval $1=\$$1\$2 |
390 |
} |
391 |
fi # as_fn_append |
392 |
|
393 |
# as_fn_arith ARG... |
394 |
# ------------------ |
395 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
396 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
397 |
# must be portable across $(()) and expr. |
398 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
399 |
eval 'as_fn_arith () |
400 |
{ |
401 |
as_val=$(( $* )) |
402 |
}' |
403 |
else |
404 |
as_fn_arith () |
405 |
{ |
406 |
as_val=`expr "$@" || test $? -eq 1` |
407 |
} |
408 |
fi # as_fn_arith |
409 |
|
410 |
|
411 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 |
# ---------------------------------------- |
413 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
415 |
# script with STATUS, using 1 if that was 0. |
416 |
as_fn_error () |
417 |
{ |
418 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
419 |
if test "$4"; then |
420 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
421 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
422 |
fi |
423 |
$as_echo "$as_me: error: $2" >&2 |
424 |
as_fn_exit $as_status |
425 |
} # as_fn_error |
426 |
|
427 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
428 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
429 |
as_expr=expr |
430 |
else |
431 |
as_expr=false |
432 |
fi |
433 |
|
434 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
435 |
as_basename=basename |
436 |
else |
437 |
as_basename=false |
438 |
fi |
439 |
|
440 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 |
as_dirname=dirname |
442 |
else |
443 |
as_dirname=false |
444 |
fi |
445 |
|
446 |
as_me=`$as_basename -- "$0" || |
447 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 |
X"$0" : 'X\(//\)$' \| \ |
449 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 |
$as_echo X/"$0" | |
451 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
452 |
s//\1/ |
453 |
q |
454 |
} |
455 |
/^X\/\(\/\/\)$/{ |
456 |
s//\1/ |
457 |
q |
458 |
} |
459 |
/^X\/\(\/\).*/{ |
460 |
s//\1/ |
461 |
q |
462 |
} |
463 |
s/.*/./; q'` |
464 |
|
465 |
# Avoid depending upon Character Ranges. |
466 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
467 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
468 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
469 |
as_cr_digits='0123456789' |
470 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
471 |
|
472 |
|
473 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
475 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
476 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
477 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
478 |
sed -n ' |
479 |
p |
480 |
/[$]LINENO/= |
481 |
' <$as_myself | |
482 |
sed ' |
483 |
s/[$]LINENO.*/&-/ |
484 |
t lineno |
485 |
b |
486 |
:lineno |
487 |
N |
488 |
:loop |
489 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
490 |
t loop |
491 |
s/-\n.*// |
492 |
' >$as_me.lineno && |
493 |
chmod +x "$as_me.lineno" || |
494 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
495 |
|
496 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 |
# already done that, so ensure we don't try to do so again and fall |
498 |
# in an infinite loop. This has already happened in practice. |
499 |
_as_can_reexec=no; export _as_can_reexec |
500 |
# Don't try to exec as it changes $[0], causing all sort of problems |
501 |
# (the dirname of $[0] is not the place where we might find the |
502 |
# original and so on. Autoconf is especially sensitive to this). |
503 |
. "./$as_me.lineno" |
504 |
# Exit status is that of the last command. |
505 |
exit |
506 |
} |
507 |
|
508 |
ECHO_C= ECHO_N= ECHO_T= |
509 |
case `echo -n x` in #((((( |
510 |
-n*) |
511 |
case `echo 'xy\c'` in |
512 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
513 |
xy) ECHO_C='\c';; |
514 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
515 |
ECHO_T=' ';; |
516 |
esac;; |
517 |
*) |
518 |
ECHO_N='-n';; |
519 |
esac |
520 |
|
521 |
rm -f conf$$ conf$$.exe conf$$.file |
522 |
if test -d conf$$.dir; then |
523 |
rm -f conf$$.dir/conf$$.file |
524 |
else |
525 |
rm -f conf$$.dir |
526 |
mkdir conf$$.dir 2>/dev/null |
527 |
fi |
528 |
if (echo >conf$$.file) 2>/dev/null; then |
529 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
530 |
as_ln_s='ln -s' |
531 |
# ... but there are two gotchas: |
532 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
533 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
534 |
# In both cases, we have to default to `cp -pR'. |
535 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
536 |
as_ln_s='cp -pR' |
537 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
538 |
as_ln_s=ln |
539 |
else |
540 |
as_ln_s='cp -pR' |
541 |
fi |
542 |
else |
543 |
as_ln_s='cp -pR' |
544 |
fi |
545 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 |
rmdir conf$$.dir 2>/dev/null |
547 |
|
548 |
if mkdir -p . 2>/dev/null; then |
549 |
as_mkdir_p='mkdir -p "$as_dir"' |
550 |
else |
551 |
test -d ./-p && rmdir ./-p |
552 |
as_mkdir_p=false |
553 |
fi |
554 |
|
555 |
as_test_x='test -x' |
556 |
as_executable_p=as_fn_executable_p |
557 |
|
558 |
# Sed expression to map a string onto a valid CPP name. |
559 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
560 |
|
561 |
# Sed expression to map a string onto a valid variable name. |
562 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
563 |
|
564 |
SHELL=${CONFIG_SHELL-/bin/sh} |
565 |
|
566 |
|
567 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
568 |
exec 6>&1 |
569 |
|
570 |
# Name of the host. |
571 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
572 |
# so uname gets run too. |
573 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
574 |
|
575 |
# |
576 |
# Initializations. |
577 |
# |
578 |
ac_default_prefix=/usr/local |
579 |
ac_clean_files= |
580 |
ac_config_libobj_dir=. |
581 |
LIBOBJS= |
582 |
cross_compiling=no |
583 |
subdirs= |
584 |
MFLAGS= |
585 |
MAKEFLAGS= |
586 |
|
587 |
# Identity of this package. |
588 |
PACKAGE_NAME='hopm' |
589 |
PACKAGE_TARNAME='hopm' |
590 |
PACKAGE_VERSION='1.0.0beta1' |
591 |
PACKAGE_STRING='hopm 1.0.0beta1' |
592 |
PACKAGE_BUGREPORT='' |
593 |
PACKAGE_URL='' |
594 |
|
595 |
ac_unique_file="src/opercmd.h" |
596 |
ac_default_prefix=\${HOME}/hopm |
597 |
# Factoring default headers for most tests. |
598 |
ac_includes_default="\ |
599 |
#include <stdio.h> |
600 |
#ifdef HAVE_SYS_TYPES_H |
601 |
# include <sys/types.h> |
602 |
#endif |
603 |
#ifdef HAVE_SYS_STAT_H |
604 |
# include <sys/stat.h> |
605 |
#endif |
606 |
#ifdef STDC_HEADERS |
607 |
# include <stdlib.h> |
608 |
# include <stddef.h> |
609 |
#else |
610 |
# ifdef HAVE_STDLIB_H |
611 |
# include <stdlib.h> |
612 |
# endif |
613 |
#endif |
614 |
#ifdef HAVE_STRING_H |
615 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
616 |
# include <memory.h> |
617 |
# endif |
618 |
# include <string.h> |
619 |
#endif |
620 |
#ifdef HAVE_STRINGS_H |
621 |
# include <strings.h> |
622 |
#endif |
623 |
#ifdef HAVE_INTTYPES_H |
624 |
# include <inttypes.h> |
625 |
#endif |
626 |
#ifdef HAVE_STDINT_H |
627 |
# include <stdint.h> |
628 |
#endif |
629 |
#ifdef HAVE_UNISTD_H |
630 |
# include <unistd.h> |
631 |
#endif" |
632 |
|
633 |
enable_option_checking=no |
634 |
ac_subst_vars='am__EXEEXT_FALSE |
635 |
am__EXEEXT_TRUE |
636 |
LTLIBOBJS |
637 |
LIBOBJS |
638 |
subdirs |
639 |
LEXLIB |
640 |
LEX_OUTPUT_ROOT |
641 |
LEX |
642 |
YFLAGS |
643 |
YACC |
644 |
CPP |
645 |
OTOOL64 |
646 |
OTOOL |
647 |
LIPO |
648 |
NMEDIT |
649 |
DSYMUTIL |
650 |
MANIFEST_TOOL |
651 |
RANLIB |
652 |
ac_ct_AR |
653 |
AR |
654 |
DLLTOOL |
655 |
OBJDUMP |
656 |
LN_S |
657 |
NM |
658 |
ac_ct_DUMPBIN |
659 |
DUMPBIN |
660 |
LD |
661 |
FGREP |
662 |
EGREP |
663 |
GREP |
664 |
SED |
665 |
host_os |
666 |
host_vendor |
667 |
host_cpu |
668 |
host |
669 |
build_os |
670 |
build_vendor |
671 |
build_cpu |
672 |
build |
673 |
LIBTOOL |
674 |
am__fastdepCC_FALSE |
675 |
am__fastdepCC_TRUE |
676 |
CCDEPMODE |
677 |
am__nodep |
678 |
AMDEPBACKSLASH |
679 |
AMDEP_FALSE |
680 |
AMDEP_TRUE |
681 |
am__quote |
682 |
am__include |
683 |
DEPDIR |
684 |
OBJEXT |
685 |
EXEEXT |
686 |
ac_ct_CC |
687 |
CPPFLAGS |
688 |
LDFLAGS |
689 |
CFLAGS |
690 |
CC |
691 |
MAINT |
692 |
MAINTAINER_MODE_FALSE |
693 |
MAINTAINER_MODE_TRUE |
694 |
AM_BACKSLASH |
695 |
AM_DEFAULT_VERBOSITY |
696 |
AM_DEFAULT_V |
697 |
AM_V |
698 |
am__untar |
699 |
am__tar |
700 |
AMTAR |
701 |
am__leading_dot |
702 |
SET_MAKE |
703 |
AWK |
704 |
mkdir_p |
705 |
MKDIR_P |
706 |
INSTALL_STRIP_PROGRAM |
707 |
STRIP |
708 |
install_sh |
709 |
MAKEINFO |
710 |
AUTOHEADER |
711 |
AUTOMAKE |
712 |
AUTOCONF |
713 |
ACLOCAL |
714 |
VERSION |
715 |
PACKAGE |
716 |
CYGPATH_W |
717 |
am__isrc |
718 |
INSTALL_DATA |
719 |
INSTALL_SCRIPT |
720 |
INSTALL_PROGRAM |
721 |
target_alias |
722 |
host_alias |
723 |
build_alias |
724 |
LIBS |
725 |
ECHO_T |
726 |
ECHO_N |
727 |
ECHO_C |
728 |
DEFS |
729 |
mandir |
730 |
localedir |
731 |
libdir |
732 |
psdir |
733 |
pdfdir |
734 |
dvidir |
735 |
htmldir |
736 |
infodir |
737 |
docdir |
738 |
oldincludedir |
739 |
includedir |
740 |
localstatedir |
741 |
sharedstatedir |
742 |
sysconfdir |
743 |
datadir |
744 |
datarootdir |
745 |
libexecdir |
746 |
sbindir |
747 |
bindir |
748 |
program_transform_name |
749 |
prefix |
750 |
exec_prefix |
751 |
PACKAGE_URL |
752 |
PACKAGE_BUGREPORT |
753 |
PACKAGE_STRING |
754 |
PACKAGE_VERSION |
755 |
PACKAGE_TARNAME |
756 |
PACKAGE_NAME |
757 |
PATH_SEPARATOR |
758 |
SHELL' |
759 |
ac_subst_files='' |
760 |
ac_user_opts=' |
761 |
enable_option_checking |
762 |
enable_silent_rules |
763 |
enable_maintainer_mode |
764 |
enable_dependency_tracking |
765 |
enable_shared |
766 |
enable_static |
767 |
with_pic |
768 |
enable_fast_install |
769 |
with_aix_soname |
770 |
with_gnu_ld |
771 |
with_sysroot |
772 |
enable_libtool_lock |
773 |
' |
774 |
ac_precious_vars='build_alias |
775 |
host_alias |
776 |
target_alias |
777 |
CC |
778 |
CFLAGS |
779 |
LDFLAGS |
780 |
LIBS |
781 |
CPPFLAGS |
782 |
CPP |
783 |
YACC |
784 |
YFLAGS' |
785 |
ac_subdirs_all='src/libopm' |
786 |
|
787 |
# Initialize some variables set by options. |
788 |
ac_init_help= |
789 |
ac_init_version=false |
790 |
ac_unrecognized_opts= |
791 |
ac_unrecognized_sep= |
792 |
# The variables have the same names as the options, with |
793 |
# dashes changed to underlines. |
794 |
cache_file=/dev/null |
795 |
exec_prefix=NONE |
796 |
no_create= |
797 |
no_recursion= |
798 |
prefix=NONE |
799 |
program_prefix=NONE |
800 |
program_suffix=NONE |
801 |
program_transform_name=s,x,x, |
802 |
silent= |
803 |
site= |
804 |
srcdir= |
805 |
verbose= |
806 |
x_includes=NONE |
807 |
x_libraries=NONE |
808 |
|
809 |
# Installation directory options. |
810 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
811 |
# and all the variables that are supposed to be based on exec_prefix |
812 |
# by default will actually change. |
813 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
814 |
# (The list follows the same order as the GNU Coding Standards.) |
815 |
bindir='${exec_prefix}/bin' |
816 |
sbindir='${exec_prefix}/sbin' |
817 |
libexecdir='${exec_prefix}/libexec' |
818 |
datarootdir='${prefix}/share' |
819 |
datadir='${datarootdir}' |
820 |
sysconfdir='${prefix}/etc' |
821 |
sharedstatedir='${prefix}/com' |
822 |
localstatedir='${prefix}/var' |
823 |
includedir='${prefix}/include' |
824 |
oldincludedir='/usr/include' |
825 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
826 |
infodir='${datarootdir}/info' |
827 |
htmldir='${docdir}' |
828 |
dvidir='${docdir}' |
829 |
pdfdir='${docdir}' |
830 |
psdir='${docdir}' |
831 |
libdir='${exec_prefix}/lib' |
832 |
localedir='${datarootdir}/locale' |
833 |
mandir='${datarootdir}/man' |
834 |
|
835 |
ac_prev= |
836 |
ac_dashdash= |
837 |
for ac_option |
838 |
do |
839 |
# If the previous option needs an argument, assign it. |
840 |
if test -n "$ac_prev"; then |
841 |
eval $ac_prev=\$ac_option |
842 |
ac_prev= |
843 |
continue |
844 |
fi |
845 |
|
846 |
case $ac_option in |
847 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
848 |
*=) ac_optarg= ;; |
849 |
*) ac_optarg=yes ;; |
850 |
esac |
851 |
|
852 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
853 |
|
854 |
case $ac_dashdash$ac_option in |
855 |
--) |
856 |
ac_dashdash=yes ;; |
857 |
|
858 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
859 |
ac_prev=bindir ;; |
860 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
861 |
bindir=$ac_optarg ;; |
862 |
|
863 |
-build | --build | --buil | --bui | --bu) |
864 |
ac_prev=build_alias ;; |
865 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
866 |
build_alias=$ac_optarg ;; |
867 |
|
868 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
869 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
870 |
ac_prev=cache_file ;; |
871 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
872 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
873 |
cache_file=$ac_optarg ;; |
874 |
|
875 |
--config-cache | -C) |
876 |
cache_file=config.cache ;; |
877 |
|
878 |
-datadir | --datadir | --datadi | --datad) |
879 |
ac_prev=datadir ;; |
880 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
881 |
datadir=$ac_optarg ;; |
882 |
|
883 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
884 |
| --dataroo | --dataro | --datar) |
885 |
ac_prev=datarootdir ;; |
886 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
887 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
888 |
datarootdir=$ac_optarg ;; |
889 |
|
890 |
-disable-* | --disable-*) |
891 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
892 |
# Reject names that are not valid shell variable names. |
893 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
894 |
as_fn_error $? "invalid feature name: $ac_useropt" |
895 |
ac_useropt_orig=$ac_useropt |
896 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
897 |
case $ac_user_opts in |
898 |
*" |
899 |
"enable_$ac_useropt" |
900 |
"*) ;; |
901 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
902 |
ac_unrecognized_sep=', ';; |
903 |
esac |
904 |
eval enable_$ac_useropt=no ;; |
905 |
|
906 |
-docdir | --docdir | --docdi | --doc | --do) |
907 |
ac_prev=docdir ;; |
908 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
909 |
docdir=$ac_optarg ;; |
910 |
|
911 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
912 |
ac_prev=dvidir ;; |
913 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
914 |
dvidir=$ac_optarg ;; |
915 |
|
916 |
-enable-* | --enable-*) |
917 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
918 |
# Reject names that are not valid shell variable names. |
919 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
920 |
as_fn_error $? "invalid feature name: $ac_useropt" |
921 |
ac_useropt_orig=$ac_useropt |
922 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
923 |
case $ac_user_opts in |
924 |
*" |
925 |
"enable_$ac_useropt" |
926 |
"*) ;; |
927 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
928 |
ac_unrecognized_sep=', ';; |
929 |
esac |
930 |
eval enable_$ac_useropt=\$ac_optarg ;; |
931 |
|
932 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
933 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
934 |
| --exec | --exe | --ex) |
935 |
ac_prev=exec_prefix ;; |
936 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
937 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
938 |
| --exec=* | --exe=* | --ex=*) |
939 |
exec_prefix=$ac_optarg ;; |
940 |
|
941 |
-gas | --gas | --ga | --g) |
942 |
# Obsolete; use --with-gas. |
943 |
with_gas=yes ;; |
944 |
|
945 |
-help | --help | --hel | --he | -h) |
946 |
ac_init_help=long ;; |
947 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
948 |
ac_init_help=recursive ;; |
949 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
950 |
ac_init_help=short ;; |
951 |
|
952 |
-host | --host | --hos | --ho) |
953 |
ac_prev=host_alias ;; |
954 |
-host=* | --host=* | --hos=* | --ho=*) |
955 |
host_alias=$ac_optarg ;; |
956 |
|
957 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
958 |
ac_prev=htmldir ;; |
959 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
960 |
| --ht=*) |
961 |
htmldir=$ac_optarg ;; |
962 |
|
963 |
-includedir | --includedir | --includedi | --included | --include \ |
964 |
| --includ | --inclu | --incl | --inc) |
965 |
ac_prev=includedir ;; |
966 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
967 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
968 |
includedir=$ac_optarg ;; |
969 |
|
970 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
971 |
ac_prev=infodir ;; |
972 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
973 |
infodir=$ac_optarg ;; |
974 |
|
975 |
-libdir | --libdir | --libdi | --libd) |
976 |
ac_prev=libdir ;; |
977 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
978 |
libdir=$ac_optarg ;; |
979 |
|
980 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
981 |
| --libexe | --libex | --libe) |
982 |
ac_prev=libexecdir ;; |
983 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
984 |
| --libexe=* | --libex=* | --libe=*) |
985 |
libexecdir=$ac_optarg ;; |
986 |
|
987 |
-localedir | --localedir | --localedi | --localed | --locale) |
988 |
ac_prev=localedir ;; |
989 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
990 |
localedir=$ac_optarg ;; |
991 |
|
992 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
993 |
| --localstate | --localstat | --localsta | --localst | --locals) |
994 |
ac_prev=localstatedir ;; |
995 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
996 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
997 |
localstatedir=$ac_optarg ;; |
998 |
|
999 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1000 |
ac_prev=mandir ;; |
1001 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1002 |
mandir=$ac_optarg ;; |
1003 |
|
1004 |
-nfp | --nfp | --nf) |
1005 |
# Obsolete; use --without-fp. |
1006 |
with_fp=no ;; |
1007 |
|
1008 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1009 |
| --no-cr | --no-c | -n) |
1010 |
no_create=yes ;; |
1011 |
|
1012 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1013 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1014 |
no_recursion=yes ;; |
1015 |
|
1016 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1017 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1018 |
| --oldin | --oldi | --old | --ol | --o) |
1019 |
ac_prev=oldincludedir ;; |
1020 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1021 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1022 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1023 |
oldincludedir=$ac_optarg ;; |
1024 |
|
1025 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1026 |
ac_prev=prefix ;; |
1027 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1028 |
prefix=$ac_optarg ;; |
1029 |
|
1030 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1031 |
| --program-pre | --program-pr | --program-p) |
1032 |
ac_prev=program_prefix ;; |
1033 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1034 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1035 |
program_prefix=$ac_optarg ;; |
1036 |
|
1037 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1038 |
| --program-suf | --program-su | --program-s) |
1039 |
ac_prev=program_suffix ;; |
1040 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1041 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1042 |
program_suffix=$ac_optarg ;; |
1043 |
|
1044 |
-program-transform-name | --program-transform-name \ |
1045 |
| --program-transform-nam | --program-transform-na \ |
1046 |
| --program-transform-n | --program-transform- \ |
1047 |
| --program-transform | --program-transfor \ |
1048 |
| --program-transfo | --program-transf \ |
1049 |
| --program-trans | --program-tran \ |
1050 |
| --progr-tra | --program-tr | --program-t) |
1051 |
ac_prev=program_transform_name ;; |
1052 |
-program-transform-name=* | --program-transform-name=* \ |
1053 |
| --program-transform-nam=* | --program-transform-na=* \ |
1054 |
| --program-transform-n=* | --program-transform-=* \ |
1055 |
| --program-transform=* | --program-transfor=* \ |
1056 |
| --program-transfo=* | --program-transf=* \ |
1057 |
| --program-trans=* | --program-tran=* \ |
1058 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1059 |
program_transform_name=$ac_optarg ;; |
1060 |
|
1061 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1062 |
ac_prev=pdfdir ;; |
1063 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1064 |
pdfdir=$ac_optarg ;; |
1065 |
|
1066 |
-psdir | --psdir | --psdi | --psd | --ps) |
1067 |
ac_prev=psdir ;; |
1068 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1069 |
psdir=$ac_optarg ;; |
1070 |
|
1071 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1072 |
| -silent | --silent | --silen | --sile | --sil) |
1073 |
silent=yes ;; |
1074 |
|
1075 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1076 |
ac_prev=sbindir ;; |
1077 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1078 |
| --sbi=* | --sb=*) |
1079 |
sbindir=$ac_optarg ;; |
1080 |
|
1081 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1082 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1083 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1084 |
| --sha | --sh) |
1085 |
ac_prev=sharedstatedir ;; |
1086 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1087 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1088 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1089 |
| --sha=* | --sh=*) |
1090 |
sharedstatedir=$ac_optarg ;; |
1091 |
|
1092 |
-site | --site | --sit) |
1093 |
ac_prev=site ;; |
1094 |
-site=* | --site=* | --sit=*) |
1095 |
site=$ac_optarg ;; |
1096 |
|
1097 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1098 |
ac_prev=srcdir ;; |
1099 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1100 |
srcdir=$ac_optarg ;; |
1101 |
|
1102 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1103 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1104 |
ac_prev=sysconfdir ;; |
1105 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1106 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1107 |
sysconfdir=$ac_optarg ;; |
1108 |
|
1109 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1110 |
ac_prev=target_alias ;; |
1111 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1112 |
target_alias=$ac_optarg ;; |
1113 |
|
1114 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1115 |
verbose=yes ;; |
1116 |
|
1117 |
-version | --version | --versio | --versi | --vers | -V) |
1118 |
ac_init_version=: ;; |
1119 |
|
1120 |
-with-* | --with-*) |
1121 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1122 |
# Reject names that are not valid shell variable names. |
1123 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1124 |
as_fn_error $? "invalid package name: $ac_useropt" |
1125 |
ac_useropt_orig=$ac_useropt |
1126 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1127 |
case $ac_user_opts in |
1128 |
*" |
1129 |
"with_$ac_useropt" |
1130 |
"*) ;; |
1131 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1132 |
ac_unrecognized_sep=', ';; |
1133 |
esac |
1134 |
eval with_$ac_useropt=\$ac_optarg ;; |
1135 |
|
1136 |
-without-* | --without-*) |
1137 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1138 |
# Reject names that are not valid shell variable names. |
1139 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1140 |
as_fn_error $? "invalid package name: $ac_useropt" |
1141 |
ac_useropt_orig=$ac_useropt |
1142 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1143 |
case $ac_user_opts in |
1144 |
*" |
1145 |
"with_$ac_useropt" |
1146 |
"*) ;; |
1147 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1148 |
ac_unrecognized_sep=', ';; |
1149 |
esac |
1150 |
eval with_$ac_useropt=no ;; |
1151 |
|
1152 |
--x) |
1153 |
# Obsolete; use --with-x. |
1154 |
with_x=yes ;; |
1155 |
|
1156 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1157 |
| --x-incl | --x-inc | --x-in | --x-i) |
1158 |
ac_prev=x_includes ;; |
1159 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1160 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1161 |
x_includes=$ac_optarg ;; |
1162 |
|
1163 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1164 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1165 |
ac_prev=x_libraries ;; |
1166 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1167 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1168 |
x_libraries=$ac_optarg ;; |
1169 |
|
1170 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1171 |
Try \`$0 --help' for more information" |
1172 |
;; |
1173 |
|
1174 |
*=*) |
1175 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1176 |
# Reject names that are not valid shell variable names. |
1177 |
case $ac_envvar in #( |
1178 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1179 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1180 |
esac |
1181 |
eval $ac_envvar=\$ac_optarg |
1182 |
export $ac_envvar ;; |
1183 |
|
1184 |
*) |
1185 |
# FIXME: should be removed in autoconf 3.0. |
1186 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1187 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1188 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1189 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1190 |
;; |
1191 |
|
1192 |
esac |
1193 |
done |
1194 |
|
1195 |
if test -n "$ac_prev"; then |
1196 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1197 |
as_fn_error $? "missing argument to $ac_option" |
1198 |
fi |
1199 |
|
1200 |
if test -n "$ac_unrecognized_opts"; then |
1201 |
case $enable_option_checking in |
1202 |
no) ;; |
1203 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1204 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1205 |
esac |
1206 |
fi |
1207 |
|
1208 |
# Check all directory arguments for consistency. |
1209 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1210 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1211 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1212 |
libdir localedir mandir |
1213 |
do |
1214 |
eval ac_val=\$$ac_var |
1215 |
# Remove trailing slashes. |
1216 |
case $ac_val in |
1217 |
*/ ) |
1218 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1219 |
eval $ac_var=\$ac_val;; |
1220 |
esac |
1221 |
# Be sure to have absolute directory names. |
1222 |
case $ac_val in |
1223 |
[\\/$]* | ?:[\\/]* ) continue;; |
1224 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1225 |
esac |
1226 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1227 |
done |
1228 |
|
1229 |
# There might be people who depend on the old broken behavior: `$host' |
1230 |
# used to hold the argument of --host etc. |
1231 |
# FIXME: To remove some day. |
1232 |
build=$build_alias |
1233 |
host=$host_alias |
1234 |
target=$target_alias |
1235 |
|
1236 |
# FIXME: To remove some day. |
1237 |
if test "x$host_alias" != x; then |
1238 |
if test "x$build_alias" = x; then |
1239 |
cross_compiling=maybe |
1240 |
elif test "x$build_alias" != "x$host_alias"; then |
1241 |
cross_compiling=yes |
1242 |
fi |
1243 |
fi |
1244 |
|
1245 |
ac_tool_prefix= |
1246 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1247 |
|
1248 |
test "$silent" = yes && exec 6>/dev/null |
1249 |
|
1250 |
|
1251 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1252 |
ac_ls_di=`ls -di .` && |
1253 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1254 |
as_fn_error $? "working directory cannot be determined" |
1255 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1256 |
as_fn_error $? "pwd does not report name of working directory" |
1257 |
|
1258 |
|
1259 |
# Find the source files, if location was not specified. |
1260 |
if test -z "$srcdir"; then |
1261 |
ac_srcdir_defaulted=yes |
1262 |
# Try the directory containing this script, then the parent directory. |
1263 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1264 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1265 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1266 |
X"$as_myself" : 'X\(//\)$' \| \ |
1267 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1268 |
$as_echo X"$as_myself" | |
1269 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1270 |
s//\1/ |
1271 |
q |
1272 |
} |
1273 |
/^X\(\/\/\)[^/].*/{ |
1274 |
s//\1/ |
1275 |
q |
1276 |
} |
1277 |
/^X\(\/\/\)$/{ |
1278 |
s//\1/ |
1279 |
q |
1280 |
} |
1281 |
/^X\(\/\).*/{ |
1282 |
s//\1/ |
1283 |
q |
1284 |
} |
1285 |
s/.*/./; q'` |
1286 |
srcdir=$ac_confdir |
1287 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1288 |
srcdir=.. |
1289 |
fi |
1290 |
else |
1291 |
ac_srcdir_defaulted=no |
1292 |
fi |
1293 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1294 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1295 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1296 |
fi |
1297 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1298 |
ac_abs_confdir=`( |
1299 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1300 |
pwd)` |
1301 |
# When building in place, set srcdir=. |
1302 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1303 |
srcdir=. |
1304 |
fi |
1305 |
# Remove unnecessary trailing slashes from srcdir. |
1306 |
# Double slashes in file names in object file debugging info |
1307 |
# mess up M-x gdb in Emacs. |
1308 |
case $srcdir in |
1309 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1310 |
esac |
1311 |
for ac_var in $ac_precious_vars; do |
1312 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1313 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1314 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1315 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1316 |
done |
1317 |
|
1318 |
# |
1319 |
# Report the --help message. |
1320 |
# |
1321 |
if test "$ac_init_help" = "long"; then |
1322 |
# Omit some internal or obsolete options to make the list less imposing. |
1323 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1324 |
cat <<_ACEOF |
1325 |
\`configure' configures hopm 1.0.0beta1 to adapt to many kinds of systems. |
1326 |
|
1327 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1328 |
|
1329 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1330 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1331 |
|
1332 |
Defaults for the options are specified in brackets. |
1333 |
|
1334 |
Configuration: |
1335 |
-h, --help display this help and exit |
1336 |
--help=short display options specific to this package |
1337 |
--help=recursive display the short help of all the included packages |
1338 |
-V, --version display version information and exit |
1339 |
-q, --quiet, --silent do not print \`checking ...' messages |
1340 |
--cache-file=FILE cache test results in FILE [disabled] |
1341 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1342 |
-n, --no-create do not create output files |
1343 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1344 |
|
1345 |
Installation directories: |
1346 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1347 |
[$ac_default_prefix] |
1348 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1349 |
[PREFIX] |
1350 |
|
1351 |
By default, \`make install' will install all the files in |
1352 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1353 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1354 |
for instance \`--prefix=\$HOME'. |
1355 |
|
1356 |
For better control, use the options below. |
1357 |
|
1358 |
Fine tuning of the installation directories: |
1359 |
--bindir=DIR user executables [EPREFIX/bin] |
1360 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1361 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1362 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1363 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1364 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1365 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1366 |
--includedir=DIR C header files [PREFIX/include] |
1367 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1368 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1369 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1370 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1371 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1372 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1373 |
--docdir=DIR documentation root [DATAROOTDIR/doc/hopm] |
1374 |
--htmldir=DIR html documentation [DOCDIR] |
1375 |
--dvidir=DIR dvi documentation [DOCDIR] |
1376 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1377 |
--psdir=DIR ps documentation [DOCDIR] |
1378 |
_ACEOF |
1379 |
|
1380 |
cat <<\_ACEOF |
1381 |
|
1382 |
Program names: |
1383 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1384 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1385 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1386 |
|
1387 |
System types: |
1388 |
--build=BUILD configure for building on BUILD [guessed] |
1389 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1390 |
_ACEOF |
1391 |
fi |
1392 |
|
1393 |
if test -n "$ac_init_help"; then |
1394 |
case $ac_init_help in |
1395 |
short | recursive ) echo "Configuration of hopm 1.0.0beta1:";; |
1396 |
esac |
1397 |
cat <<\_ACEOF |
1398 |
|
1399 |
Optional Features: |
1400 |
--disable-option-checking ignore unrecognized --enable/--with options |
1401 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1402 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1403 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
1404 |
--disable-silent-rules verbose build output (undo: "make V=0") |
1405 |
--enable-maintainer-mode |
1406 |
enable make rules and dependencies not useful (and |
1407 |
sometimes confusing) to the casual installer |
1408 |
--enable-dependency-tracking |
1409 |
do not reject slow dependency extractors |
1410 |
--disable-dependency-tracking |
1411 |
speeds up one-time build |
1412 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
1413 |
--enable-static[=PKGS] build static libraries [default=yes] |
1414 |
--enable-fast-install[=PKGS] |
1415 |
optimize for fast installation [default=yes] |
1416 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1417 |
|
1418 |
Optional Packages: |
1419 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1420 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1421 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1422 |
both] |
1423 |
--with-aix-soname=aix|svr4|both |
1424 |
shared library versioning (aka "SONAME") variant to |
1425 |
provide on AIX, [default=aix]. |
1426 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1427 |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1428 |
compiler's sysroot if not specified). |
1429 |
|
1430 |
Some influential environment variables: |
1431 |
CC C compiler command |
1432 |
CFLAGS C compiler flags |
1433 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1434 |
nonstandard directory <lib dir> |
1435 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1436 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1437 |
you have headers in a nonstandard directory <include dir> |
1438 |
CPP C preprocessor |
1439 |
YACC The `Yet Another Compiler Compiler' implementation to use. |
1440 |
Defaults to the first program found out of: `bison -y', `byacc', |
1441 |
`yacc'. |
1442 |
YFLAGS The list of arguments that will be passed by default to $YACC. |
1443 |
This script will default YFLAGS to the empty string to avoid a |
1444 |
default value of `-d' given by some make applications. |
1445 |
|
1446 |
Use these variables to override the choices made by `configure' or to help |
1447 |
it to find libraries and programs with nonstandard names/locations. |
1448 |
|
1449 |
Report bugs to the package provider. |
1450 |
_ACEOF |
1451 |
ac_status=$? |
1452 |
fi |
1453 |
|
1454 |
if test "$ac_init_help" = "recursive"; then |
1455 |
# If there are subdirs, report their specific --help. |
1456 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1457 |
test -d "$ac_dir" || |
1458 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1459 |
continue |
1460 |
ac_builddir=. |
1461 |
|
1462 |
case "$ac_dir" in |
1463 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1464 |
*) |
1465 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1466 |
# A ".." for each directory in $ac_dir_suffix. |
1467 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1468 |
case $ac_top_builddir_sub in |
1469 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1470 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1471 |
esac ;; |
1472 |
esac |
1473 |
ac_abs_top_builddir=$ac_pwd |
1474 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1475 |
# for backward compatibility: |
1476 |
ac_top_builddir=$ac_top_build_prefix |
1477 |
|
1478 |
case $srcdir in |
1479 |
.) # We are building in place. |
1480 |
ac_srcdir=. |
1481 |
ac_top_srcdir=$ac_top_builddir_sub |
1482 |
ac_abs_top_srcdir=$ac_pwd ;; |
1483 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1484 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1485 |
ac_top_srcdir=$srcdir |
1486 |
ac_abs_top_srcdir=$srcdir ;; |
1487 |
*) # Relative name. |
1488 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1489 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1490 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1491 |
esac |
1492 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1493 |
|
1494 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1495 |
# Check for guested configure. |
1496 |
if test -f "$ac_srcdir/configure.gnu"; then |
1497 |
echo && |
1498 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1499 |
elif test -f "$ac_srcdir/configure"; then |
1500 |
echo && |
1501 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1502 |
else |
1503 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1504 |
fi || ac_status=$? |
1505 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1506 |
done |
1507 |
fi |
1508 |
|
1509 |
test -n "$ac_init_help" && exit $ac_status |
1510 |
if $ac_init_version; then |
1511 |
cat <<\_ACEOF |
1512 |
hopm configure 1.0.0beta1 |
1513 |
generated by GNU Autoconf 2.69 |
1514 |
|
1515 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1516 |
This configure script is free software; the Free Software Foundation |
1517 |
gives unlimited permission to copy, distribute and modify it. |
1518 |
_ACEOF |
1519 |
exit |
1520 |
fi |
1521 |
|
1522 |
## ------------------------ ## |
1523 |
## Autoconf initialization. ## |
1524 |
## ------------------------ ## |
1525 |
|
1526 |
# ac_fn_c_try_compile LINENO |
1527 |
# -------------------------- |
1528 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1529 |
ac_fn_c_try_compile () |
1530 |
{ |
1531 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1532 |
rm -f conftest.$ac_objext |
1533 |
if { { ac_try="$ac_compile" |
1534 |
case "(($ac_try" in |
1535 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1536 |
*) ac_try_echo=$ac_try;; |
1537 |
esac |
1538 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1539 |
$as_echo "$ac_try_echo"; } >&5 |
1540 |
(eval "$ac_compile") 2>conftest.err |
1541 |
ac_status=$? |
1542 |
if test -s conftest.err; then |
1543 |
grep -v '^ *+' conftest.err >conftest.er1 |
1544 |
cat conftest.er1 >&5 |
1545 |
mv -f conftest.er1 conftest.err |
1546 |
fi |
1547 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1548 |
test $ac_status = 0; } && { |
1549 |
test -z "$ac_c_werror_flag" || |
1550 |
test ! -s conftest.err |
1551 |
} && test -s conftest.$ac_objext; then : |
1552 |
ac_retval=0 |
1553 |
else |
1554 |
$as_echo "$as_me: failed program was:" >&5 |
1555 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1556 |
|
1557 |
ac_retval=1 |
1558 |
fi |
1559 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1560 |
as_fn_set_status $ac_retval |
1561 |
|
1562 |
} # ac_fn_c_try_compile |
1563 |
|
1564 |
# ac_fn_c_try_link LINENO |
1565 |
# ----------------------- |
1566 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1567 |
ac_fn_c_try_link () |
1568 |
{ |
1569 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1570 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1571 |
if { { ac_try="$ac_link" |
1572 |
case "(($ac_try" in |
1573 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1574 |
*) ac_try_echo=$ac_try;; |
1575 |
esac |
1576 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1577 |
$as_echo "$ac_try_echo"; } >&5 |
1578 |
(eval "$ac_link") 2>conftest.err |
1579 |
ac_status=$? |
1580 |
if test -s conftest.err; then |
1581 |
grep -v '^ *+' conftest.err >conftest.er1 |
1582 |
cat conftest.er1 >&5 |
1583 |
mv -f conftest.er1 conftest.err |
1584 |
fi |
1585 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1586 |
test $ac_status = 0; } && { |
1587 |
test -z "$ac_c_werror_flag" || |
1588 |
test ! -s conftest.err |
1589 |
} && test -s conftest$ac_exeext && { |
1590 |
test "$cross_compiling" = yes || |
1591 |
test -x conftest$ac_exeext |
1592 |
}; then : |
1593 |
ac_retval=0 |
1594 |
else |
1595 |
$as_echo "$as_me: failed program was:" >&5 |
1596 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1597 |
|
1598 |
ac_retval=1 |
1599 |
fi |
1600 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1601 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1602 |
# interfere with the next link command; also delete a directory that is |
1603 |
# left behind by Apple's compiler. We do this before executing the actions. |
1604 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1605 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1606 |
as_fn_set_status $ac_retval |
1607 |
|
1608 |
} # ac_fn_c_try_link |
1609 |
|
1610 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1611 |
# ------------------------------------------------------- |
1612 |
# Tests whether HEADER exists and can be compiled using the include files in |
1613 |
# INCLUDES, setting the cache variable VAR accordingly. |
1614 |
ac_fn_c_check_header_compile () |
1615 |
{ |
1616 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1617 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1618 |
$as_echo_n "checking for $2... " >&6; } |
1619 |
if eval \${$3+:} false; then : |
1620 |
$as_echo_n "(cached) " >&6 |
1621 |
else |
1622 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1623 |
/* end confdefs.h. */ |
1624 |
$4 |
1625 |
#include <$2> |
1626 |
_ACEOF |
1627 |
if ac_fn_c_try_compile "$LINENO"; then : |
1628 |
eval "$3=yes" |
1629 |
else |
1630 |
eval "$3=no" |
1631 |
fi |
1632 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1633 |
fi |
1634 |
eval ac_res=\$$3 |
1635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1636 |
$as_echo "$ac_res" >&6; } |
1637 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1638 |
|
1639 |
} # ac_fn_c_check_header_compile |
1640 |
|
1641 |
# ac_fn_c_try_cpp LINENO |
1642 |
# ---------------------- |
1643 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1644 |
ac_fn_c_try_cpp () |
1645 |
{ |
1646 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1647 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1648 |
case "(($ac_try" in |
1649 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1650 |
*) ac_try_echo=$ac_try;; |
1651 |
esac |
1652 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1653 |
$as_echo "$ac_try_echo"; } >&5 |
1654 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1655 |
ac_status=$? |
1656 |
if test -s conftest.err; then |
1657 |
grep -v '^ *+' conftest.err >conftest.er1 |
1658 |
cat conftest.er1 >&5 |
1659 |
mv -f conftest.er1 conftest.err |
1660 |
fi |
1661 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1662 |
test $ac_status = 0; } > conftest.i && { |
1663 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1664 |
test ! -s conftest.err |
1665 |
}; then : |
1666 |
ac_retval=0 |
1667 |
else |
1668 |
$as_echo "$as_me: failed program was:" >&5 |
1669 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1670 |
|
1671 |
ac_retval=1 |
1672 |
fi |
1673 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1674 |
as_fn_set_status $ac_retval |
1675 |
|
1676 |
} # ac_fn_c_try_cpp |
1677 |
|
1678 |
# ac_fn_c_try_run LINENO |
1679 |
# ---------------------- |
1680 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1681 |
# that executables *can* be run. |
1682 |
ac_fn_c_try_run () |
1683 |
{ |
1684 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1685 |
if { { ac_try="$ac_link" |
1686 |
case "(($ac_try" in |
1687 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1688 |
*) ac_try_echo=$ac_try;; |
1689 |
esac |
1690 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1691 |
$as_echo "$ac_try_echo"; } >&5 |
1692 |
(eval "$ac_link") 2>&5 |
1693 |
ac_status=$? |
1694 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1695 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1696 |
{ { case "(($ac_try" in |
1697 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1698 |
*) ac_try_echo=$ac_try;; |
1699 |
esac |
1700 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1701 |
$as_echo "$ac_try_echo"; } >&5 |
1702 |
(eval "$ac_try") 2>&5 |
1703 |
ac_status=$? |
1704 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1705 |
test $ac_status = 0; }; }; then : |
1706 |
ac_retval=0 |
1707 |
else |
1708 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1709 |
$as_echo "$as_me: failed program was:" >&5 |
1710 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1711 |
|
1712 |
ac_retval=$ac_status |
1713 |
fi |
1714 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1715 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1716 |
as_fn_set_status $ac_retval |
1717 |
|
1718 |
} # ac_fn_c_try_run |
1719 |
|
1720 |
# ac_fn_c_check_func LINENO FUNC VAR |
1721 |
# ---------------------------------- |
1722 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1723 |
ac_fn_c_check_func () |
1724 |
{ |
1725 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1727 |
$as_echo_n "checking for $2... " >&6; } |
1728 |
if eval \${$3+:} false; then : |
1729 |
$as_echo_n "(cached) " >&6 |
1730 |
else |
1731 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1732 |
/* end confdefs.h. */ |
1733 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1734 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1735 |
#define $2 innocuous_$2 |
1736 |
|
1737 |
/* System header to define __stub macros and hopefully few prototypes, |
1738 |
which can conflict with char $2 (); below. |
1739 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1740 |
<limits.h> exists even on freestanding compilers. */ |
1741 |
|
1742 |
#ifdef __STDC__ |
1743 |
# include <limits.h> |
1744 |
#else |
1745 |
# include <assert.h> |
1746 |
#endif |
1747 |
|
1748 |
#undef $2 |
1749 |
|
1750 |
/* Override any GCC internal prototype to avoid an error. |
1751 |
Use char because int might match the return type of a GCC |
1752 |
builtin and then its argument prototype would still apply. */ |
1753 |
#ifdef __cplusplus |
1754 |
extern "C" |
1755 |
#endif |
1756 |
char $2 (); |
1757 |
/* The GNU C library defines this for functions which it implements |
1758 |
to always fail with ENOSYS. Some functions are actually named |
1759 |
something starting with __ and the normal name is an alias. */ |
1760 |
#if defined __stub_$2 || defined __stub___$2 |
1761 |
choke me |
1762 |
#endif |
1763 |
|
1764 |
int |
1765 |
main () |
1766 |
{ |
1767 |
return $2 (); |
1768 |
; |
1769 |
return 0; |
1770 |
} |
1771 |
_ACEOF |
1772 |
if ac_fn_c_try_link "$LINENO"; then : |
1773 |
eval "$3=yes" |
1774 |
else |
1775 |
eval "$3=no" |
1776 |
fi |
1777 |
rm -f core conftest.err conftest.$ac_objext \ |
1778 |
conftest$ac_exeext conftest.$ac_ext |
1779 |
fi |
1780 |
eval ac_res=\$$3 |
1781 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1782 |
$as_echo "$ac_res" >&6; } |
1783 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1784 |
|
1785 |
} # ac_fn_c_check_func |
1786 |
|
1787 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1788 |
# ------------------------------------------------------- |
1789 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1790 |
# the include files in INCLUDES and setting the cache variable VAR |
1791 |
# accordingly. |
1792 |
ac_fn_c_check_header_mongrel () |
1793 |
{ |
1794 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1795 |
if eval \${$3+:} false; then : |
1796 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1797 |
$as_echo_n "checking for $2... " >&6; } |
1798 |
if eval \${$3+:} false; then : |
1799 |
$as_echo_n "(cached) " >&6 |
1800 |
fi |
1801 |
eval ac_res=\$$3 |
1802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1803 |
$as_echo "$ac_res" >&6; } |
1804 |
else |
1805 |
# Is the header compilable? |
1806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1807 |
$as_echo_n "checking $2 usability... " >&6; } |
1808 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1809 |
/* end confdefs.h. */ |
1810 |
$4 |
1811 |
#include <$2> |
1812 |
_ACEOF |
1813 |
if ac_fn_c_try_compile "$LINENO"; then : |
1814 |
ac_header_compiler=yes |
1815 |
else |
1816 |
ac_header_compiler=no |
1817 |
fi |
1818 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1819 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1820 |
$as_echo "$ac_header_compiler" >&6; } |
1821 |
|
1822 |
# Is the header present? |
1823 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1824 |
$as_echo_n "checking $2 presence... " >&6; } |
1825 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1826 |
/* end confdefs.h. */ |
1827 |
#include <$2> |
1828 |
_ACEOF |
1829 |
if ac_fn_c_try_cpp "$LINENO"; then : |
1830 |
ac_header_preproc=yes |
1831 |
else |
1832 |
ac_header_preproc=no |
1833 |
fi |
1834 |
rm -f conftest.err conftest.i conftest.$ac_ext |
1835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1836 |
$as_echo "$ac_header_preproc" >&6; } |
1837 |
|
1838 |
# So? What about this header? |
1839 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
1840 |
yes:no: ) |
1841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1842 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1844 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1845 |
;; |
1846 |
no:yes:* ) |
1847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1848 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1850 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1852 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1854 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1855 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1856 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1857 |
;; |
1858 |
esac |
1859 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1860 |
$as_echo_n "checking for $2... " >&6; } |
1861 |
if eval \${$3+:} false; then : |
1862 |
$as_echo_n "(cached) " >&6 |
1863 |
else |
1864 |
eval "$3=\$ac_header_compiler" |
1865 |
fi |
1866 |
eval ac_res=\$$3 |
1867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1868 |
$as_echo "$ac_res" >&6; } |
1869 |
fi |
1870 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1871 |
|
1872 |
} # ac_fn_c_check_header_mongrel |
1873 |
cat >config.log <<_ACEOF |
1874 |
This file contains any messages produced by compilers while |
1875 |
running configure, to aid debugging if configure makes a mistake. |
1876 |
|
1877 |
It was created by hopm $as_me 1.0.0beta1, which was |
1878 |
generated by GNU Autoconf 2.69. Invocation command line was |
1879 |
|
1880 |
$ $0 $@ |
1881 |
|
1882 |
_ACEOF |
1883 |
exec 5>>config.log |
1884 |
{ |
1885 |
cat <<_ASUNAME |
1886 |
## --------- ## |
1887 |
## Platform. ## |
1888 |
## --------- ## |
1889 |
|
1890 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1891 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1892 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1893 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1894 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1895 |
|
1896 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1897 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1898 |
|
1899 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1900 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1901 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1902 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1903 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1904 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1905 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1906 |
|
1907 |
_ASUNAME |
1908 |
|
1909 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1910 |
for as_dir in $PATH |
1911 |
do |
1912 |
IFS=$as_save_IFS |
1913 |
test -z "$as_dir" && as_dir=. |
1914 |
$as_echo "PATH: $as_dir" |
1915 |
done |
1916 |
IFS=$as_save_IFS |
1917 |
|
1918 |
} >&5 |
1919 |
|
1920 |
cat >&5 <<_ACEOF |
1921 |
|
1922 |
|
1923 |
## ----------- ## |
1924 |
## Core tests. ## |
1925 |
## ----------- ## |
1926 |
|
1927 |
_ACEOF |
1928 |
|
1929 |
|
1930 |
# Keep a trace of the command line. |
1931 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1932 |
# Strip out --silent because we don't want to record it for future runs. |
1933 |
# Also quote any args containing shell meta-characters. |
1934 |
# Make two passes to allow for proper duplicate-argument suppression. |
1935 |
ac_configure_args= |
1936 |
ac_configure_args0= |
1937 |
ac_configure_args1= |
1938 |
ac_must_keep_next=false |
1939 |
for ac_pass in 1 2 |
1940 |
do |
1941 |
for ac_arg |
1942 |
do |
1943 |
case $ac_arg in |
1944 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1945 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1946 |
| -silent | --silent | --silen | --sile | --sil) |
1947 |
continue ;; |
1948 |
*\'*) |
1949 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1950 |
esac |
1951 |
case $ac_pass in |
1952 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1953 |
2) |
1954 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
1955 |
if test $ac_must_keep_next = true; then |
1956 |
ac_must_keep_next=false # Got value, back to normal. |
1957 |
else |
1958 |
case $ac_arg in |
1959 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1960 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1961 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1962 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1963 |
case "$ac_configure_args0 " in |
1964 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1965 |
esac |
1966 |
;; |
1967 |
-* ) ac_must_keep_next=true ;; |
1968 |
esac |
1969 |
fi |
1970 |
as_fn_append ac_configure_args " '$ac_arg'" |
1971 |
;; |
1972 |
esac |
1973 |
done |
1974 |
done |
1975 |
{ ac_configure_args0=; unset ac_configure_args0;} |
1976 |
{ ac_configure_args1=; unset ac_configure_args1;} |
1977 |
|
1978 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1979 |
# config.log. We remove comments because anyway the quotes in there |
1980 |
# would cause problems or look ugly. |
1981 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1982 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1983 |
trap 'exit_status=$? |
1984 |
# Save into config.log some information that might help in debugging. |
1985 |
{ |
1986 |
echo |
1987 |
|
1988 |
$as_echo "## ---------------- ## |
1989 |
## Cache variables. ## |
1990 |
## ---------------- ##" |
1991 |
echo |
1992 |
# The following way of writing the cache mishandles newlines in values, |
1993 |
( |
1994 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1995 |
eval ac_val=\$$ac_var |
1996 |
case $ac_val in #( |
1997 |
*${as_nl}*) |
1998 |
case $ac_var in #( |
1999 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2000 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2001 |
esac |
2002 |
case $ac_var in #( |
2003 |
_ | IFS | as_nl) ;; #( |
2004 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2005 |
*) { eval $ac_var=; unset $ac_var;} ;; |
2006 |
esac ;; |
2007 |
esac |
2008 |
done |
2009 |
(set) 2>&1 | |
2010 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2011 |
*${as_nl}ac_space=\ *) |
2012 |
sed -n \ |
2013 |
"s/'\''/'\''\\\\'\'''\''/g; |
2014 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2015 |
;; #( |
2016 |
*) |
2017 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2018 |
;; |
2019 |
esac | |
2020 |
sort |
2021 |
) |
2022 |
echo |
2023 |
|
2024 |
$as_echo "## ----------------- ## |
2025 |
## Output variables. ## |
2026 |
## ----------------- ##" |
2027 |
echo |
2028 |
for ac_var in $ac_subst_vars |
2029 |
do |
2030 |
eval ac_val=\$$ac_var |
2031 |
case $ac_val in |
2032 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2033 |
esac |
2034 |
$as_echo "$ac_var='\''$ac_val'\''" |
2035 |
done | sort |
2036 |
echo |
2037 |
|
2038 |
if test -n "$ac_subst_files"; then |
2039 |
$as_echo "## ------------------- ## |
2040 |
## File substitutions. ## |
2041 |
## ------------------- ##" |
2042 |
echo |
2043 |
for ac_var in $ac_subst_files |
2044 |
do |
2045 |
eval ac_val=\$$ac_var |
2046 |
case $ac_val in |
2047 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2048 |
esac |
2049 |
$as_echo "$ac_var='\''$ac_val'\''" |
2050 |
done | sort |
2051 |
echo |
2052 |
fi |
2053 |
|
2054 |
if test -s confdefs.h; then |
2055 |
$as_echo "## ----------- ## |
2056 |
## confdefs.h. ## |
2057 |
## ----------- ##" |
2058 |
echo |
2059 |
cat confdefs.h |
2060 |
echo |
2061 |
fi |
2062 |
test "$ac_signal" != 0 && |
2063 |
$as_echo "$as_me: caught signal $ac_signal" |
2064 |
$as_echo "$as_me: exit $exit_status" |
2065 |
} >&5 |
2066 |
rm -f core *.core core.conftest.* && |
2067 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2068 |
exit $exit_status |
2069 |
' 0 |
2070 |
for ac_signal in 1 2 13 15; do |
2071 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2072 |
done |
2073 |
ac_signal=0 |
2074 |
|
2075 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2076 |
rm -f -r conftest* confdefs.h |
2077 |
|
2078 |
$as_echo "/* confdefs.h */" > confdefs.h |
2079 |
|
2080 |
# Predefined preprocessor variables. |
2081 |
|
2082 |
cat >>confdefs.h <<_ACEOF |
2083 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
2084 |
_ACEOF |
2085 |
|
2086 |
cat >>confdefs.h <<_ACEOF |
2087 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2088 |
_ACEOF |
2089 |
|
2090 |
cat >>confdefs.h <<_ACEOF |
2091 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2092 |
_ACEOF |
2093 |
|
2094 |
cat >>confdefs.h <<_ACEOF |
2095 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2096 |
_ACEOF |
2097 |
|
2098 |
cat >>confdefs.h <<_ACEOF |
2099 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2100 |
_ACEOF |
2101 |
|
2102 |
cat >>confdefs.h <<_ACEOF |
2103 |
#define PACKAGE_URL "$PACKAGE_URL" |
2104 |
_ACEOF |
2105 |
|
2106 |
|
2107 |
# Let the site file select an alternate cache file if it wants to. |
2108 |
# Prefer an explicitly selected file to automatically selected ones. |
2109 |
ac_site_file1=NONE |
2110 |
ac_site_file2=NONE |
2111 |
if test -n "$CONFIG_SITE"; then |
2112 |
# We do not want a PATH search for config.site. |
2113 |
case $CONFIG_SITE in #(( |
2114 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2115 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2116 |
*) ac_site_file1=./$CONFIG_SITE;; |
2117 |
esac |
2118 |
elif test "x$prefix" != xNONE; then |
2119 |
ac_site_file1=$prefix/share/config.site |
2120 |
ac_site_file2=$prefix/etc/config.site |
2121 |
else |
2122 |
ac_site_file1=$ac_default_prefix/share/config.site |
2123 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2124 |
fi |
2125 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2126 |
do |
2127 |
test "x$ac_site_file" = xNONE && continue |
2128 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2129 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2130 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2131 |
sed 's/^/| /' "$ac_site_file" >&5 |
2132 |
. "$ac_site_file" \ |
2133 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2134 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2135 |
as_fn_error $? "failed to load site script $ac_site_file |
2136 |
See \`config.log' for more details" "$LINENO" 5; } |
2137 |
fi |
2138 |
done |
2139 |
|
2140 |
if test -r "$cache_file"; then |
2141 |
# Some versions of bash will fail to source /dev/null (special files |
2142 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2143 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2144 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2145 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2146 |
case $cache_file in |
2147 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2148 |
*) . "./$cache_file";; |
2149 |
esac |
2150 |
fi |
2151 |
else |
2152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2153 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2154 |
>$cache_file |
2155 |
fi |
2156 |
|
2157 |
# Check that the precious variables saved in the cache have kept the same |
2158 |
# value. |
2159 |
ac_cache_corrupted=false |
2160 |
for ac_var in $ac_precious_vars; do |
2161 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2162 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2163 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2164 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2165 |
case $ac_old_set,$ac_new_set in |
2166 |
set,) |
2167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2168 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2169 |
ac_cache_corrupted=: ;; |
2170 |
,set) |
2171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2172 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2173 |
ac_cache_corrupted=: ;; |
2174 |
,);; |
2175 |
*) |
2176 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2177 |
# differences in whitespace do not lead to failure. |
2178 |
ac_old_val_w=`echo x $ac_old_val` |
2179 |
ac_new_val_w=`echo x $ac_new_val` |
2180 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2182 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2183 |
ac_cache_corrupted=: |
2184 |
else |
2185 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2186 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2187 |
eval $ac_var=\$ac_old_val |
2188 |
fi |
2189 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2190 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2191 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2192 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2193 |
fi;; |
2194 |
esac |
2195 |
# Pass precious variables to config.status. |
2196 |
if test "$ac_new_set" = set; then |
2197 |
case $ac_new_val in |
2198 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2199 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2200 |
esac |
2201 |
case " $ac_configure_args " in |
2202 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2203 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2204 |
esac |
2205 |
fi |
2206 |
done |
2207 |
if $ac_cache_corrupted; then |
2208 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2209 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2211 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2212 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2213 |
fi |
2214 |
## -------------------- ## |
2215 |
## Main body of script. ## |
2216 |
## -------------------- ## |
2217 |
|
2218 |
ac_ext=c |
2219 |
ac_cpp='$CPP $CPPFLAGS' |
2220 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2221 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2222 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2223 |
|
2224 |
|
2225 |
|
2226 |
ac_config_headers="$ac_config_headers src/setup.h" |
2227 |
|
2228 |
am__api_version='1.14' |
2229 |
|
2230 |
ac_aux_dir= |
2231 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2232 |
if test -f "$ac_dir/install-sh"; then |
2233 |
ac_aux_dir=$ac_dir |
2234 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2235 |
break |
2236 |
elif test -f "$ac_dir/install.sh"; then |
2237 |
ac_aux_dir=$ac_dir |
2238 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2239 |
break |
2240 |
elif test -f "$ac_dir/shtool"; then |
2241 |
ac_aux_dir=$ac_dir |
2242 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2243 |
break |
2244 |
fi |
2245 |
done |
2246 |
if test -z "$ac_aux_dir"; then |
2247 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2248 |
fi |
2249 |
|
2250 |
# These three variables are undocumented and unsupported, |
2251 |
# and are intended to be withdrawn in a future Autoconf release. |
2252 |
# They can cause serious problems if a builder's source tree is in a directory |
2253 |
# whose full name contains unusual characters. |
2254 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2255 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2256 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2257 |
|
2258 |
|
2259 |
# Find a good install program. We prefer a C program (faster), |
2260 |
# so one script is as good as another. But avoid the broken or |
2261 |
# incompatible versions: |
2262 |
# SysV /etc/install, /usr/sbin/install |
2263 |
# SunOS /usr/etc/install |
2264 |
# IRIX /sbin/install |
2265 |
# AIX /bin/install |
2266 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2267 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2268 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2269 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2270 |
# OS/2's system install, which has a completely different semantic |
2271 |
# ./install, which can be erroneously created by make from ./install.sh. |
2272 |
# Reject install programs that cannot install multiple files. |
2273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2274 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2275 |
if test -z "$INSTALL"; then |
2276 |
if ${ac_cv_path_install+:} false; then : |
2277 |
$as_echo_n "(cached) " >&6 |
2278 |
else |
2279 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2280 |
for as_dir in $PATH |
2281 |
do |
2282 |
IFS=$as_save_IFS |
2283 |
test -z "$as_dir" && as_dir=. |
2284 |
# Account for people who put trailing slashes in PATH elements. |
2285 |
case $as_dir/ in #(( |
2286 |
./ | .// | /[cC]/* | \ |
2287 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2288 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2289 |
/usr/ucb/* ) ;; |
2290 |
*) |
2291 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2292 |
# Don't use installbsd from OSF since it installs stuff as root |
2293 |
# by default. |
2294 |
for ac_prog in ginstall scoinst install; do |
2295 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2296 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2297 |
if test $ac_prog = install && |
2298 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2299 |
# AIX install. It has an incompatible calling convention. |
2300 |
: |
2301 |
elif test $ac_prog = install && |
2302 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2303 |
# program-specific install script used by HP pwplus--don't use. |
2304 |
: |
2305 |
else |
2306 |
rm -rf conftest.one conftest.two conftest.dir |
2307 |
echo one > conftest.one |
2308 |
echo two > conftest.two |
2309 |
mkdir conftest.dir |
2310 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2311 |
test -s conftest.one && test -s conftest.two && |
2312 |
test -s conftest.dir/conftest.one && |
2313 |
test -s conftest.dir/conftest.two |
2314 |
then |
2315 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2316 |
break 3 |
2317 |
fi |
2318 |
fi |
2319 |
fi |
2320 |
done |
2321 |
done |
2322 |
;; |
2323 |
esac |
2324 |
|
2325 |
done |
2326 |
IFS=$as_save_IFS |
2327 |
|
2328 |
rm -rf conftest.one conftest.two conftest.dir |
2329 |
|
2330 |
fi |
2331 |
if test "${ac_cv_path_install+set}" = set; then |
2332 |
INSTALL=$ac_cv_path_install |
2333 |
else |
2334 |
# As a last resort, use the slow shell script. Don't cache a |
2335 |
# value for INSTALL within a source directory, because that will |
2336 |
# break other packages using the cache if that directory is |
2337 |
# removed, or if the value is a relative name. |
2338 |
INSTALL=$ac_install_sh |
2339 |
fi |
2340 |
fi |
2341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2342 |
$as_echo "$INSTALL" >&6; } |
2343 |
|
2344 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2345 |
# It thinks the first close brace ends the variable substitution. |
2346 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2347 |
|
2348 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2349 |
|
2350 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2351 |
|
2352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2353 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
2354 |
# Reject unsafe characters in $srcdir or the absolute working directory |
2355 |
# name. Accept space and tab only in the latter. |
2356 |
am_lf=' |
2357 |
' |
2358 |
case `pwd` in |
2359 |
*[\\\"\#\$\&\'\`$am_lf]*) |
2360 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
2361 |
esac |
2362 |
case $srcdir in |
2363 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2364 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
2365 |
esac |
2366 |
|
2367 |
# Do 'set' in a subshell so we don't clobber the current shell's |
2368 |
# arguments. Must try -L first in case configure is actually a |
2369 |
# symlink; some systems play weird games with the mod time of symlinks |
2370 |
# (eg FreeBSD returns the mod time of the symlink's containing |
2371 |
# directory). |
2372 |
if ( |
2373 |
am_has_slept=no |
2374 |
for am_try in 1 2; do |
2375 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
2376 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2377 |
if test "$*" = "X"; then |
2378 |
# -L didn't work. |
2379 |
set X `ls -t "$srcdir/configure" conftest.file` |
2380 |
fi |
2381 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2382 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2383 |
|
2384 |
# If neither matched, then we have a broken ls. This can happen |
2385 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2386 |
# broken ls alias from the environment. This has actually |
2387 |
# happened. Such a system could not be considered "sane". |
2388 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2389 |
alias in your environment" "$LINENO" 5 |
2390 |
fi |
2391 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
2392 |
break |
2393 |
fi |
2394 |
# Just in case. |
2395 |
sleep 1 |
2396 |
am_has_slept=yes |
2397 |
done |
2398 |
test "$2" = conftest.file |
2399 |
) |
2400 |
then |
2401 |
# Ok. |
2402 |
: |
2403 |
else |
2404 |
as_fn_error $? "newly created file is older than distributed files! |
2405 |
Check your system clock" "$LINENO" 5 |
2406 |
fi |
2407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2408 |
$as_echo "yes" >&6; } |
2409 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
2410 |
# generated files are strictly newer. |
2411 |
am_sleep_pid= |
2412 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
2413 |
( sleep 1 ) & |
2414 |
am_sleep_pid=$! |
2415 |
fi |
2416 |
|
2417 |
rm -f conftest.file |
2418 |
|
2419 |
test "$program_prefix" != NONE && |
2420 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2421 |
# Use a double $ so make ignores it. |
2422 |
test "$program_suffix" != NONE && |
2423 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2424 |
# Double any \ or $. |
2425 |
# By default was `s,x,x', remove it if useless. |
2426 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2427 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2428 |
|
2429 |
# expand $ac_aux_dir to an absolute path |
2430 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
2431 |
|
2432 |
if test x"${MISSING+set}" != xset; then |
2433 |
case $am_aux_dir in |
2434 |
*\ * | *\ *) |
2435 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2436 |
*) |
2437 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2438 |
esac |
2439 |
fi |
2440 |
# Use eval to expand $SHELL |
2441 |
if eval "$MISSING --is-lightweight"; then |
2442 |
am_missing_run="$MISSING " |
2443 |
else |
2444 |
am_missing_run= |
2445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2446 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
2447 |
fi |
2448 |
|
2449 |
if test x"${install_sh}" != xset; then |
2450 |
case $am_aux_dir in |
2451 |
*\ * | *\ *) |
2452 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2453 |
*) |
2454 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
2455 |
esac |
2456 |
fi |
2457 |
|
2458 |
# Installed binaries are usually stripped using 'strip' when the user |
2459 |
# run "make install-strip". However 'strip' might not be the right |
2460 |
# tool to use in cross-compilation environments, therefore Automake |
2461 |
# will honor the 'STRIP' environment variable to overrule this program. |
2462 |
if test "$cross_compiling" != no; then |
2463 |
if test -n "$ac_tool_prefix"; then |
2464 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2465 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2466 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2467 |
$as_echo_n "checking for $ac_word... " >&6; } |
2468 |
if ${ac_cv_prog_STRIP+:} false; then : |
2469 |
$as_echo_n "(cached) " >&6 |
2470 |
else |
2471 |
if test -n "$STRIP"; then |
2472 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2473 |
else |
2474 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2475 |
for as_dir in $PATH |
2476 |
do |
2477 |
IFS=$as_save_IFS |
2478 |
test -z "$as_dir" && as_dir=. |
2479 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2480 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2481 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2482 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2483 |
break 2 |
2484 |
fi |
2485 |
done |
2486 |
done |
2487 |
IFS=$as_save_IFS |
2488 |
|
2489 |
fi |
2490 |
fi |
2491 |
STRIP=$ac_cv_prog_STRIP |
2492 |
if test -n "$STRIP"; then |
2493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2494 |
$as_echo "$STRIP" >&6; } |
2495 |
else |
2496 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2497 |
$as_echo "no" >&6; } |
2498 |
fi |
2499 |
|
2500 |
|
2501 |
fi |
2502 |
if test -z "$ac_cv_prog_STRIP"; then |
2503 |
ac_ct_STRIP=$STRIP |
2504 |
# Extract the first word of "strip", so it can be a program name with args. |
2505 |
set dummy strip; ac_word=$2 |
2506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2507 |
$as_echo_n "checking for $ac_word... " >&6; } |
2508 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
2509 |
$as_echo_n "(cached) " >&6 |
2510 |
else |
2511 |
if test -n "$ac_ct_STRIP"; then |
2512 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2513 |
else |
2514 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2515 |
for as_dir in $PATH |
2516 |
do |
2517 |
IFS=$as_save_IFS |
2518 |
test -z "$as_dir" && as_dir=. |
2519 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2520 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2521 |
ac_cv_prog_ac_ct_STRIP="strip" |
2522 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2523 |
break 2 |
2524 |
fi |
2525 |
done |
2526 |
done |
2527 |
IFS=$as_save_IFS |
2528 |
|
2529 |
fi |
2530 |
fi |
2531 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2532 |
if test -n "$ac_ct_STRIP"; then |
2533 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2534 |
$as_echo "$ac_ct_STRIP" >&6; } |
2535 |
else |
2536 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2537 |
$as_echo "no" >&6; } |
2538 |
fi |
2539 |
|
2540 |
if test "x$ac_ct_STRIP" = x; then |
2541 |
STRIP=":" |
2542 |
else |
2543 |
case $cross_compiling:$ac_tool_warned in |
2544 |
yes:) |
2545 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2546 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2547 |
ac_tool_warned=yes ;; |
2548 |
esac |
2549 |
STRIP=$ac_ct_STRIP |
2550 |
fi |
2551 |
else |
2552 |
STRIP="$ac_cv_prog_STRIP" |
2553 |
fi |
2554 |
|
2555 |
fi |
2556 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2557 |
|
2558 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2559 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2560 |
if test -z "$MKDIR_P"; then |
2561 |
if ${ac_cv_path_mkdir+:} false; then : |
2562 |
$as_echo_n "(cached) " >&6 |
2563 |
else |
2564 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2565 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2566 |
do |
2567 |
IFS=$as_save_IFS |
2568 |
test -z "$as_dir" && as_dir=. |
2569 |
for ac_prog in mkdir gmkdir; do |
2570 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2571 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
2572 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2573 |
'mkdir (GNU coreutils) '* | \ |
2574 |
'mkdir (coreutils) '* | \ |
2575 |
'mkdir (fileutils) '4.1*) |
2576 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2577 |
break 3;; |
2578 |
esac |
2579 |
done |
2580 |
done |
2581 |
done |
2582 |
IFS=$as_save_IFS |
2583 |
|
2584 |
fi |
2585 |
|
2586 |
test -d ./--version && rmdir ./--version |
2587 |
if test "${ac_cv_path_mkdir+set}" = set; then |
2588 |
MKDIR_P="$ac_cv_path_mkdir -p" |
2589 |
else |
2590 |
# As a last resort, use the slow shell script. Don't cache a |
2591 |
# value for MKDIR_P within a source directory, because that will |
2592 |
# break other packages using the cache if that directory is |
2593 |
# removed, or if the value is a relative name. |
2594 |
MKDIR_P="$ac_install_sh -d" |
2595 |
fi |
2596 |
fi |
2597 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2598 |
$as_echo "$MKDIR_P" >&6; } |
2599 |
|
2600 |
for ac_prog in gawk mawk nawk awk |
2601 |
do |
2602 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2603 |
set dummy $ac_prog; ac_word=$2 |
2604 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2605 |
$as_echo_n "checking for $ac_word... " >&6; } |
2606 |
if ${ac_cv_prog_AWK+:} false; then : |
2607 |
$as_echo_n "(cached) " >&6 |
2608 |
else |
2609 |
if test -n "$AWK"; then |
2610 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2611 |
else |
2612 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2613 |
for as_dir in $PATH |
2614 |
do |
2615 |
IFS=$as_save_IFS |
2616 |
test -z "$as_dir" && as_dir=. |
2617 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2618 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2619 |
ac_cv_prog_AWK="$ac_prog" |
2620 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2621 |
break 2 |
2622 |
fi |
2623 |
done |
2624 |
done |
2625 |
IFS=$as_save_IFS |
2626 |
|
2627 |
fi |
2628 |
fi |
2629 |
AWK=$ac_cv_prog_AWK |
2630 |
if test -n "$AWK"; then |
2631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2632 |
$as_echo "$AWK" >&6; } |
2633 |
else |
2634 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2635 |
$as_echo "no" >&6; } |
2636 |
fi |
2637 |
|
2638 |
|
2639 |
test -n "$AWK" && break |
2640 |
done |
2641 |
|
2642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2643 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2644 |
set x ${MAKE-make} |
2645 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2646 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2647 |
$as_echo_n "(cached) " >&6 |
2648 |
else |
2649 |
cat >conftest.make <<\_ACEOF |
2650 |
SHELL = /bin/sh |
2651 |
all: |
2652 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
2653 |
_ACEOF |
2654 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2655 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2656 |
*@@@%%%=?*=@@@%%%*) |
2657 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
2658 |
*) |
2659 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
2660 |
esac |
2661 |
rm -f conftest.make |
2662 |
fi |
2663 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2665 |
$as_echo "yes" >&6; } |
2666 |
SET_MAKE= |
2667 |
else |
2668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2669 |
$as_echo "no" >&6; } |
2670 |
SET_MAKE="MAKE=${MAKE-make}" |
2671 |
fi |
2672 |
|
2673 |
rm -rf .tst 2>/dev/null |
2674 |
mkdir .tst 2>/dev/null |
2675 |
if test -d .tst; then |
2676 |
am__leading_dot=. |
2677 |
else |
2678 |
am__leading_dot=_ |
2679 |
fi |
2680 |
rmdir .tst 2>/dev/null |
2681 |
|
2682 |
# Check whether --enable-silent-rules was given. |
2683 |
if test "${enable_silent_rules+set}" = set; then : |
2684 |
enableval=$enable_silent_rules; |
2685 |
fi |
2686 |
|
2687 |
case $enable_silent_rules in # ((( |
2688 |
yes) AM_DEFAULT_VERBOSITY=0;; |
2689 |
no) AM_DEFAULT_VERBOSITY=1;; |
2690 |
*) AM_DEFAULT_VERBOSITY=1;; |
2691 |
esac |
2692 |
am_make=${MAKE-make} |
2693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
2694 |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
2695 |
if ${am_cv_make_support_nested_variables+:} false; then : |
2696 |
$as_echo_n "(cached) " >&6 |
2697 |
else |
2698 |
if $as_echo 'TRUE=$(BAR$(V)) |
2699 |
BAR0=false |
2700 |
BAR1=true |
2701 |
V=1 |
2702 |
am__doit: |
2703 |
@$(TRUE) |
2704 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
2705 |
am_cv_make_support_nested_variables=yes |
2706 |
else |
2707 |
am_cv_make_support_nested_variables=no |
2708 |
fi |
2709 |
fi |
2710 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
2711 |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
2712 |
if test $am_cv_make_support_nested_variables = yes; then |
2713 |
AM_V='$(V)' |
2714 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2715 |
else |
2716 |
AM_V=$AM_DEFAULT_VERBOSITY |
2717 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
2718 |
fi |
2719 |
AM_BACKSLASH='\' |
2720 |
|
2721 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2722 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2723 |
# is not polluted with repeated "-I." |
2724 |
am__isrc=' -I$(srcdir)' |
2725 |
# test to see if srcdir already configured |
2726 |
if test -f $srcdir/config.status; then |
2727 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2728 |
fi |
2729 |
fi |
2730 |
|
2731 |
# test whether we have cygpath |
2732 |
if test -z "$CYGPATH_W"; then |
2733 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
2734 |
CYGPATH_W='cygpath -w' |
2735 |
else |
2736 |
CYGPATH_W=echo |
2737 |
fi |
2738 |
fi |
2739 |
|
2740 |
|
2741 |
# Define the identity of the package. |
2742 |
PACKAGE='hopm' |
2743 |
VERSION='1.0.0beta1' |
2744 |
|
2745 |
|
2746 |
cat >>confdefs.h <<_ACEOF |
2747 |
#define PACKAGE "$PACKAGE" |
2748 |
_ACEOF |
2749 |
|
2750 |
|
2751 |
cat >>confdefs.h <<_ACEOF |
2752 |
#define VERSION "$VERSION" |
2753 |
_ACEOF |
2754 |
|
2755 |
# Some tools Automake needs. |
2756 |
|
2757 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2758 |
|
2759 |
|
2760 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2761 |
|
2762 |
|
2763 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2764 |
|
2765 |
|
2766 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2767 |
|
2768 |
|
2769 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2770 |
|
2771 |
# For better backward compatibility. To be removed once Automake 1.9.x |
2772 |
# dies out for good. For more background, see: |
2773 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
2774 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
2775 |
mkdir_p='$(MKDIR_P)' |
2776 |
|
2777 |
# We need awk for the "check" target. The system "awk" is bad on |
2778 |
# some platforms. |
2779 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
2780 |
# in the wild :-( We should find a proper way to deprecate it ... |
2781 |
AMTAR='$${TAR-tar}' |
2782 |
|
2783 |
|
2784 |
# We'll loop over all known methods to create a tar archive until one works. |
2785 |
_am_tools='gnutar pax cpio none' |
2786 |
|
2787 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2788 |
|
2789 |
|
2790 |
|
2791 |
|
2792 |
|
2793 |
|
2794 |
# POSIX will say in a future version that running "rm -f" with no argument |
2795 |
# is OK; and we want to be able to make that assumption in our Makefile |
2796 |
# recipes. So use an aggressive probe to check that the usage we want is |
2797 |
# actually supported "in the wild" to an acceptable degree. |
2798 |
# See automake bug#10828. |
2799 |
# To make any issue more visible, cause the running configure to be aborted |
2800 |
# by default if the 'rm' program in use doesn't match our expectations; the |
2801 |
# user can still override this though. |
2802 |
if rm -f && rm -fr && rm -rf; then : OK; else |
2803 |
cat >&2 <<'END' |
2804 |
Oops! |
2805 |
|
2806 |
Your 'rm' program seems unable to run without file operands specified |
2807 |
on the command line, even when the '-f' option is present. This is contrary |
2808 |
to the behaviour of most rm programs out there, and not conforming with |
2809 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
2810 |
|
2811 |
Please tell bug-automake@gnu.org about your system, including the value |
2812 |
of your $PATH and any error possibly output before this message. This |
2813 |
can help us improve future automake versions. |
2814 |
|
2815 |
END |
2816 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
2817 |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
2818 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
2819 |
echo >&2 |
2820 |
else |
2821 |
cat >&2 <<'END' |
2822 |
Aborting the configuration process, to ensure you take notice of the issue. |
2823 |
|
2824 |
You can download and install GNU coreutils to get an 'rm' implementation |
2825 |
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
2826 |
|
2827 |
If you want to complete the configuration process using your problematic |
2828 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
2829 |
to "yes", and re-run configure. |
2830 |
|
2831 |
END |
2832 |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
2833 |
fi |
2834 |
fi |
2835 |
|
2836 |
|
2837 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2838 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
2839 |
# Check whether --enable-maintainer-mode was given. |
2840 |
if test "${enable_maintainer_mode+set}" = set; then : |
2841 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2842 |
else |
2843 |
USE_MAINTAINER_MODE=no |
2844 |
fi |
2845 |
|
2846 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2847 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
2848 |
if test $USE_MAINTAINER_MODE = yes; then |
2849 |
MAINTAINER_MODE_TRUE= |
2850 |
MAINTAINER_MODE_FALSE='#' |
2851 |
else |
2852 |
MAINTAINER_MODE_TRUE='#' |
2853 |
MAINTAINER_MODE_FALSE= |
2854 |
fi |
2855 |
|
2856 |
MAINT=$MAINTAINER_MODE_TRUE |
2857 |
|
2858 |
|
2859 |
|
2860 |
DEPDIR="${am__leading_dot}deps" |
2861 |
|
2862 |
ac_config_commands="$ac_config_commands depfiles" |
2863 |
|
2864 |
|
2865 |
am_make=${MAKE-make} |
2866 |
cat > confinc << 'END' |
2867 |
am__doit: |
2868 |
@echo this is the am__doit target |
2869 |
.PHONY: am__doit |
2870 |
END |
2871 |
# If we don't find an include directive, just comment out the code. |
2872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
2873 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
2874 |
am__include="#" |
2875 |
am__quote= |
2876 |
_am_result=none |
2877 |
# First try GNU make style include. |
2878 |
echo "include confinc" > confmf |
2879 |
# Ignore all kinds of additional output from 'make'. |
2880 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
2881 |
*the\ am__doit\ target*) |
2882 |
am__include=include |
2883 |
am__quote= |
2884 |
_am_result=GNU |
2885 |
;; |
2886 |
esac |
2887 |
# Now try BSD make style include. |
2888 |
if test "$am__include" = "#"; then |
2889 |
echo '.include "confinc"' > confmf |
2890 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
2891 |
*the\ am__doit\ target*) |
2892 |
am__include=.include |
2893 |
am__quote="\"" |
2894 |
_am_result=BSD |
2895 |
;; |
2896 |
esac |
2897 |
fi |
2898 |
|
2899 |
|
2900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
2901 |
$as_echo "$_am_result" >&6; } |
2902 |
rm -f confinc confmf |
2903 |
|
2904 |
# Check whether --enable-dependency-tracking was given. |
2905 |
if test "${enable_dependency_tracking+set}" = set; then : |
2906 |
enableval=$enable_dependency_tracking; |
2907 |
fi |
2908 |
|
2909 |
if test "x$enable_dependency_tracking" != xno; then |
2910 |
am_depcomp="$ac_aux_dir/depcomp" |
2911 |
AMDEPBACKSLASH='\' |
2912 |
am__nodep='_no' |
2913 |
fi |
2914 |
if test "x$enable_dependency_tracking" != xno; then |
2915 |
AMDEP_TRUE= |
2916 |
AMDEP_FALSE='#' |
2917 |
else |
2918 |
AMDEP_TRUE='#' |
2919 |
AMDEP_FALSE= |
2920 |
fi |
2921 |
|
2922 |
|
2923 |
ac_ext=c |
2924 |
ac_cpp='$CPP $CPPFLAGS' |
2925 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2926 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2927 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2928 |
if test -n "$ac_tool_prefix"; then |
2929 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2930 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2932 |
$as_echo_n "checking for $ac_word... " >&6; } |
2933 |
if ${ac_cv_prog_CC+:} false; then : |
2934 |
$as_echo_n "(cached) " >&6 |
2935 |
else |
2936 |
if test -n "$CC"; then |
2937 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2938 |
else |
2939 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2940 |
for as_dir in $PATH |
2941 |
do |
2942 |
IFS=$as_save_IFS |
2943 |
test -z "$as_dir" && as_dir=. |
2944 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2945 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2946 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2947 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2948 |
break 2 |
2949 |
fi |
2950 |
done |
2951 |
done |
2952 |
IFS=$as_save_IFS |
2953 |
|
2954 |
fi |
2955 |
fi |
2956 |
CC=$ac_cv_prog_CC |
2957 |
if test -n "$CC"; then |
2958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2959 |
$as_echo "$CC" >&6; } |
2960 |
else |
2961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2962 |
$as_echo "no" >&6; } |
2963 |
fi |
2964 |
|
2965 |
|
2966 |
fi |
2967 |
if test -z "$ac_cv_prog_CC"; then |
2968 |
ac_ct_CC=$CC |
2969 |
# Extract the first word of "gcc", so it can be a program name with args. |
2970 |
set dummy gcc; ac_word=$2 |
2971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2972 |
$as_echo_n "checking for $ac_word... " >&6; } |
2973 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2974 |
$as_echo_n "(cached) " >&6 |
2975 |
else |
2976 |
if test -n "$ac_ct_CC"; then |
2977 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2978 |
else |
2979 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2980 |
for as_dir in $PATH |
2981 |
do |
2982 |
IFS=$as_save_IFS |
2983 |
test -z "$as_dir" && as_dir=. |
2984 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2985 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2986 |
ac_cv_prog_ac_ct_CC="gcc" |
2987 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2988 |
break 2 |
2989 |
fi |
2990 |
done |
2991 |
done |
2992 |
IFS=$as_save_IFS |
2993 |
|
2994 |
fi |
2995 |
fi |
2996 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2997 |
if test -n "$ac_ct_CC"; then |
2998 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2999 |
$as_echo "$ac_ct_CC" >&6; } |
3000 |
else |
3001 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3002 |
$as_echo "no" >&6; } |
3003 |
fi |
3004 |
|
3005 |
if test "x$ac_ct_CC" = x; then |
3006 |
CC="" |
3007 |
else |
3008 |
case $cross_compiling:$ac_tool_warned in |
3009 |
yes:) |
3010 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3011 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3012 |
ac_tool_warned=yes ;; |
3013 |
esac |
3014 |
CC=$ac_ct_CC |
3015 |
fi |
3016 |
else |
3017 |
CC="$ac_cv_prog_CC" |
3018 |
fi |
3019 |
|
3020 |
if test -z "$CC"; then |
3021 |
if test -n "$ac_tool_prefix"; then |
3022 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3023 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3024 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3025 |
$as_echo_n "checking for $ac_word... " >&6; } |
3026 |
if ${ac_cv_prog_CC+:} false; then : |
3027 |
$as_echo_n "(cached) " >&6 |
3028 |
else |
3029 |
if test -n "$CC"; then |
3030 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3031 |
else |
3032 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3033 |
for as_dir in $PATH |
3034 |
do |
3035 |
IFS=$as_save_IFS |
3036 |
test -z "$as_dir" && as_dir=. |
3037 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3038 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3039 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3040 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3041 |
break 2 |
3042 |
fi |
3043 |
done |
3044 |
done |
3045 |
IFS=$as_save_IFS |
3046 |
|
3047 |
fi |
3048 |
fi |
3049 |
CC=$ac_cv_prog_CC |
3050 |
if test -n "$CC"; then |
3051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3052 |
$as_echo "$CC" >&6; } |
3053 |
else |
3054 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3055 |
$as_echo "no" >&6; } |
3056 |
fi |
3057 |
|
3058 |
|
3059 |
fi |
3060 |
fi |
3061 |
if test -z "$CC"; then |
3062 |
# Extract the first word of "cc", so it can be a program name with args. |
3063 |
set dummy cc; ac_word=$2 |
3064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3065 |
$as_echo_n "checking for $ac_word... " >&6; } |
3066 |
if ${ac_cv_prog_CC+:} false; then : |
3067 |
$as_echo_n "(cached) " >&6 |
3068 |
else |
3069 |
if test -n "$CC"; then |
3070 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3071 |
else |
3072 |
ac_prog_rejected=no |
3073 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3074 |
for as_dir in $PATH |
3075 |
do |
3076 |
IFS=$as_save_IFS |
3077 |
test -z "$as_dir" && as_dir=. |
3078 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3079 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3080 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3081 |
ac_prog_rejected=yes |
3082 |
continue |
3083 |
fi |
3084 |
ac_cv_prog_CC="cc" |
3085 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3086 |
break 2 |
3087 |
fi |
3088 |
done |
3089 |
done |
3090 |
IFS=$as_save_IFS |
3091 |
|
3092 |
if test $ac_prog_rejected = yes; then |
3093 |
# We found a bogon in the path, so make sure we never use it. |
3094 |
set dummy $ac_cv_prog_CC |
3095 |
shift |
3096 |
if test $# != 0; then |
3097 |
# We chose a different compiler from the bogus one. |
3098 |
# However, it has the same basename, so the bogon will be chosen |
3099 |
# first if we set CC to just the basename; use the full file name. |
3100 |
shift |
3101 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3102 |
fi |
3103 |
fi |
3104 |
fi |
3105 |
fi |
3106 |
CC=$ac_cv_prog_CC |
3107 |
if test -n "$CC"; then |
3108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3109 |
$as_echo "$CC" >&6; } |
3110 |
else |
3111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3112 |
$as_echo "no" >&6; } |
3113 |
fi |
3114 |
|
3115 |
|
3116 |
fi |
3117 |
if test -z "$CC"; then |
3118 |
if test -n "$ac_tool_prefix"; then |
3119 |
for ac_prog in cl.exe |
3120 |
do |
3121 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3122 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3123 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3124 |
$as_echo_n "checking for $ac_word... " >&6; } |
3125 |
if ${ac_cv_prog_CC+:} false; then : |
3126 |
$as_echo_n "(cached) " >&6 |
3127 |
else |
3128 |
if test -n "$CC"; then |
3129 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3130 |
else |
3131 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3132 |
for as_dir in $PATH |
3133 |
do |
3134 |
IFS=$as_save_IFS |
3135 |
test -z "$as_dir" && as_dir=. |
3136 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3137 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3138 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3139 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3140 |
break 2 |
3141 |
fi |
3142 |
done |
3143 |
done |
3144 |
IFS=$as_save_IFS |
3145 |
|
3146 |
fi |
3147 |
fi |
3148 |
CC=$ac_cv_prog_CC |
3149 |
if test -n "$CC"; then |
3150 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3151 |
$as_echo "$CC" >&6; } |
3152 |
else |
3153 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3154 |
$as_echo "no" >&6; } |
3155 |
fi |
3156 |
|
3157 |
|
3158 |
test -n "$CC" && break |
3159 |
done |
3160 |
fi |
3161 |
if test -z "$CC"; then |
3162 |
ac_ct_CC=$CC |
3163 |
for ac_prog in cl.exe |
3164 |
do |
3165 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3166 |
set dummy $ac_prog; ac_word=$2 |
3167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3168 |
$as_echo_n "checking for $ac_word... " >&6; } |
3169 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3170 |
$as_echo_n "(cached) " >&6 |
3171 |
else |
3172 |
if test -n "$ac_ct_CC"; then |
3173 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3174 |
else |
3175 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3176 |
for as_dir in $PATH |
3177 |
do |
3178 |
IFS=$as_save_IFS |
3179 |
test -z "$as_dir" && as_dir=. |
3180 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3181 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3182 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3183 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3184 |
break 2 |
3185 |
fi |
3186 |
done |
3187 |
done |
3188 |
IFS=$as_save_IFS |
3189 |
|
3190 |
fi |
3191 |
fi |
3192 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3193 |
if test -n "$ac_ct_CC"; then |
3194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3195 |
$as_echo "$ac_ct_CC" >&6; } |
3196 |
else |
3197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3198 |
$as_echo "no" >&6; } |
3199 |
fi |
3200 |
|
3201 |
|
3202 |
test -n "$ac_ct_CC" && break |
3203 |
done |
3204 |
|
3205 |
if test "x$ac_ct_CC" = x; then |
3206 |
CC="" |
3207 |
else |
3208 |
case $cross_compiling:$ac_tool_warned in |
3209 |
yes:) |
3210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3211 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3212 |
ac_tool_warned=yes ;; |
3213 |
esac |
3214 |
CC=$ac_ct_CC |
3215 |
fi |
3216 |
fi |
3217 |
|
3218 |
fi |
3219 |
|
3220 |
|
3221 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3222 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3223 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3224 |
See \`config.log' for more details" "$LINENO" 5; } |
3225 |
|
3226 |
# Provide some information about the compiler. |
3227 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3228 |
set X $ac_compile |
3229 |
ac_compiler=$2 |
3230 |
for ac_option in --version -v -V -qversion; do |
3231 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3232 |
case "(($ac_try" in |
3233 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3234 |
*) ac_try_echo=$ac_try;; |
3235 |
esac |
3236 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3237 |
$as_echo "$ac_try_echo"; } >&5 |
3238 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3239 |
ac_status=$? |
3240 |
if test -s conftest.err; then |
3241 |
sed '10a\ |
3242 |
... rest of stderr output deleted ... |
3243 |
10q' conftest.err >conftest.er1 |
3244 |
cat conftest.er1 >&5 |
3245 |
fi |
3246 |
rm -f conftest.er1 conftest.err |
3247 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3248 |
test $ac_status = 0; } |
3249 |
done |
3250 |
|
3251 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3252 |
/* end confdefs.h. */ |
3253 |
|
3254 |
int |
3255 |
main () |
3256 |
{ |
3257 |
|
3258 |
; |
3259 |
return 0; |
3260 |
} |
3261 |
_ACEOF |
3262 |
ac_clean_files_save=$ac_clean_files |
3263 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3264 |
# Try to create an executable without -o first, disregard a.out. |
3265 |
# It will help us diagnose broken compilers, and finding out an intuition |
3266 |
# of exeext. |
3267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3268 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
3269 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3270 |
|
3271 |
# The possible output files: |
3272 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3273 |
|
3274 |
ac_rmfiles= |
3275 |
for ac_file in $ac_files |
3276 |
do |
3277 |
case $ac_file in |
3278 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3279 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3280 |
esac |
3281 |
done |
3282 |
rm -f $ac_rmfiles |
3283 |
|
3284 |
if { { ac_try="$ac_link_default" |
3285 |
case "(($ac_try" in |
3286 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3287 |
*) ac_try_echo=$ac_try;; |
3288 |
esac |
3289 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3290 |
$as_echo "$ac_try_echo"; } >&5 |
3291 |
(eval "$ac_link_default") 2>&5 |
3292 |
ac_status=$? |
3293 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3294 |
test $ac_status = 0; }; then : |
3295 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3296 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3297 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3298 |
# so that the user can short-circuit this test for compilers unknown to |
3299 |
# Autoconf. |
3300 |
for ac_file in $ac_files '' |
3301 |
do |
3302 |
test -f "$ac_file" || continue |
3303 |
case $ac_file in |
3304 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3305 |
;; |
3306 |
[ab].out ) |
3307 |
# We found the default executable, but exeext='' is most |
3308 |
# certainly right. |
3309 |
break;; |
3310 |
*.* ) |
3311 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3312 |
then :; else |
3313 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3314 |
fi |
3315 |
# We set ac_cv_exeext here because the later test for it is not |
3316 |
# safe: cross compilers may not add the suffix if given an `-o' |
3317 |
# argument, so we may need to know it at that point already. |
3318 |
# Even if this section looks crufty: it has the advantage of |
3319 |
# actually working. |
3320 |
break;; |
3321 |
* ) |
3322 |
break;; |
3323 |
esac |
3324 |
done |
3325 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3326 |
|
3327 |
else |
3328 |
ac_file='' |
3329 |
fi |
3330 |
if test -z "$ac_file"; then : |
3331 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3332 |
$as_echo "no" >&6; } |
3333 |
$as_echo "$as_me: failed program was:" >&5 |
3334 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3335 |
|
3336 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3337 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3338 |
as_fn_error 77 "C compiler cannot create executables |
3339 |
See \`config.log' for more details" "$LINENO" 5; } |
3340 |
else |
3341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3342 |
$as_echo "yes" >&6; } |
3343 |
fi |
3344 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3345 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
3346 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3347 |
$as_echo "$ac_file" >&6; } |
3348 |
ac_exeext=$ac_cv_exeext |
3349 |
|
3350 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3351 |
ac_clean_files=$ac_clean_files_save |
3352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3353 |
$as_echo_n "checking for suffix of executables... " >&6; } |
3354 |
if { { ac_try="$ac_link" |
3355 |
case "(($ac_try" in |
3356 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3357 |
*) ac_try_echo=$ac_try;; |
3358 |
esac |
3359 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3360 |
$as_echo "$ac_try_echo"; } >&5 |
3361 |
(eval "$ac_link") 2>&5 |
3362 |
ac_status=$? |
3363 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3364 |
test $ac_status = 0; }; then : |
3365 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3366 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3367 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3368 |
# `rm'. |
3369 |
for ac_file in conftest.exe conftest conftest.*; do |
3370 |
test -f "$ac_file" || continue |
3371 |
case $ac_file in |
3372 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3373 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3374 |
break;; |
3375 |
* ) break;; |
3376 |
esac |
3377 |
done |
3378 |
else |
3379 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3380 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3381 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3382 |
See \`config.log' for more details" "$LINENO" 5; } |
3383 |
fi |
3384 |
rm -f conftest conftest$ac_cv_exeext |
3385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3386 |
$as_echo "$ac_cv_exeext" >&6; } |
3387 |
|
3388 |
rm -f conftest.$ac_ext |
3389 |
EXEEXT=$ac_cv_exeext |
3390 |
ac_exeext=$EXEEXT |
3391 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3392 |
/* end confdefs.h. */ |
3393 |
#include <stdio.h> |
3394 |
int |
3395 |
main () |
3396 |
{ |
3397 |
FILE *f = fopen ("conftest.out", "w"); |
3398 |
return ferror (f) || fclose (f) != 0; |
3399 |
|
3400 |
; |
3401 |
return 0; |
3402 |
} |
3403 |
_ACEOF |
3404 |
ac_clean_files="$ac_clean_files conftest.out" |
3405 |
# Check that the compiler produces executables we can run. If not, either |
3406 |
# the compiler is broken, or we cross compile. |
3407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3408 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3409 |
if test "$cross_compiling" != yes; then |
3410 |
{ { ac_try="$ac_link" |
3411 |
case "(($ac_try" in |
3412 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3413 |
*) ac_try_echo=$ac_try;; |
3414 |
esac |
3415 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3416 |
$as_echo "$ac_try_echo"; } >&5 |
3417 |
(eval "$ac_link") 2>&5 |
3418 |
ac_status=$? |
3419 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3420 |
test $ac_status = 0; } |
3421 |
if { ac_try='./conftest$ac_cv_exeext' |
3422 |
{ { case "(($ac_try" in |
3423 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3424 |
*) ac_try_echo=$ac_try;; |
3425 |
esac |
3426 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3427 |
$as_echo "$ac_try_echo"; } >&5 |
3428 |
(eval "$ac_try") 2>&5 |
3429 |
ac_status=$? |
3430 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3431 |
test $ac_status = 0; }; }; then |
3432 |
cross_compiling=no |
3433 |
else |
3434 |
if test "$cross_compiling" = maybe; then |
3435 |
cross_compiling=yes |
3436 |
else |
3437 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3438 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3439 |
as_fn_error $? "cannot run C compiled programs. |
3440 |
If you meant to cross compile, use \`--host'. |
3441 |
See \`config.log' for more details" "$LINENO" 5; } |
3442 |
fi |
3443 |
fi |
3444 |
fi |
3445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3446 |
$as_echo "$cross_compiling" >&6; } |
3447 |
|
3448 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3449 |
ac_clean_files=$ac_clean_files_save |
3450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3451 |
$as_echo_n "checking for suffix of object files... " >&6; } |
3452 |
if ${ac_cv_objext+:} false; then : |
3453 |
$as_echo_n "(cached) " >&6 |
3454 |
else |
3455 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3456 |
/* end confdefs.h. */ |
3457 |
|
3458 |
int |
3459 |
main () |
3460 |
{ |
3461 |
|
3462 |
; |
3463 |
return 0; |
3464 |
} |
3465 |
_ACEOF |
3466 |
rm -f conftest.o conftest.obj |
3467 |
if { { ac_try="$ac_compile" |
3468 |
case "(($ac_try" in |
3469 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3470 |
*) ac_try_echo=$ac_try;; |
3471 |
esac |
3472 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3473 |
$as_echo "$ac_try_echo"; } >&5 |
3474 |
(eval "$ac_compile") 2>&5 |
3475 |
ac_status=$? |
3476 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3477 |
test $ac_status = 0; }; then : |
3478 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3479 |
test -f "$ac_file" || continue; |
3480 |
case $ac_file in |
3481 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3482 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3483 |
break;; |
3484 |
esac |
3485 |
done |
3486 |
else |
3487 |
$as_echo "$as_me: failed program was:" >&5 |
3488 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3489 |
|
3490 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3491 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3492 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3493 |
See \`config.log' for more details" "$LINENO" 5; } |
3494 |
fi |
3495 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3496 |
fi |
3497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3498 |
$as_echo "$ac_cv_objext" >&6; } |
3499 |
OBJEXT=$ac_cv_objext |
3500 |
ac_objext=$OBJEXT |
3501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3502 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3503 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3504 |
$as_echo_n "(cached) " >&6 |
3505 |
else |
3506 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3507 |
/* end confdefs.h. */ |
3508 |
|
3509 |
int |
3510 |
main () |
3511 |
{ |
3512 |
#ifndef __GNUC__ |
3513 |
choke me |
3514 |
#endif |
3515 |
|
3516 |
; |
3517 |
return 0; |
3518 |
} |
3519 |
_ACEOF |
3520 |
if ac_fn_c_try_compile "$LINENO"; then : |
3521 |
ac_compiler_gnu=yes |
3522 |
else |
3523 |
ac_compiler_gnu=no |
3524 |
fi |
3525 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3526 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3527 |
|
3528 |
fi |
3529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3530 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3531 |
if test $ac_compiler_gnu = yes; then |
3532 |
GCC=yes |
3533 |
else |
3534 |
GCC= |
3535 |
fi |
3536 |
ac_test_CFLAGS=${CFLAGS+set} |
3537 |
ac_save_CFLAGS=$CFLAGS |
3538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3539 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3540 |
if ${ac_cv_prog_cc_g+:} false; then : |
3541 |
$as_echo_n "(cached) " >&6 |
3542 |
else |
3543 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3544 |
ac_c_werror_flag=yes |
3545 |
ac_cv_prog_cc_g=no |
3546 |
CFLAGS="-g" |
3547 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3548 |
/* end confdefs.h. */ |
3549 |
|
3550 |
int |
3551 |
main () |
3552 |
{ |
3553 |
|
3554 |
; |
3555 |
return 0; |
3556 |
} |
3557 |
_ACEOF |
3558 |
if ac_fn_c_try_compile "$LINENO"; then : |
3559 |
ac_cv_prog_cc_g=yes |
3560 |
else |
3561 |
CFLAGS="" |
3562 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3563 |
/* end confdefs.h. */ |
3564 |
|
3565 |
int |
3566 |
main () |
3567 |
{ |
3568 |
|
3569 |
; |
3570 |
return 0; |
3571 |
} |
3572 |
_ACEOF |
3573 |
if ac_fn_c_try_compile "$LINENO"; then : |
3574 |
|
3575 |
else |
3576 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3577 |
CFLAGS="-g" |
3578 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3579 |
/* end confdefs.h. */ |
3580 |
|
3581 |
int |
3582 |
main () |
3583 |
{ |
3584 |
|
3585 |
; |
3586 |
return 0; |
3587 |
} |
3588 |
_ACEOF |
3589 |
if ac_fn_c_try_compile "$LINENO"; then : |
3590 |
ac_cv_prog_cc_g=yes |
3591 |
fi |
3592 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3593 |
fi |
3594 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3595 |
fi |
3596 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3597 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3598 |
fi |
3599 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3600 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3601 |
if test "$ac_test_CFLAGS" = set; then |
3602 |
CFLAGS=$ac_save_CFLAGS |
3603 |
elif test $ac_cv_prog_cc_g = yes; then |
3604 |
if test "$GCC" = yes; then |
3605 |
CFLAGS="-g -O2" |
3606 |
else |
3607 |
CFLAGS="-g" |
3608 |
fi |
3609 |
else |
3610 |
if test "$GCC" = yes; then |
3611 |
CFLAGS="-O2" |
3612 |
else |
3613 |
CFLAGS= |
3614 |
fi |
3615 |
fi |
3616 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3617 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3618 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3619 |
$as_echo_n "(cached) " >&6 |
3620 |
else |
3621 |
ac_cv_prog_cc_c89=no |
3622 |
ac_save_CC=$CC |
3623 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3624 |
/* end confdefs.h. */ |
3625 |
#include <stdarg.h> |
3626 |
#include <stdio.h> |
3627 |
struct stat; |
3628 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3629 |
struct buf { int x; }; |
3630 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3631 |
static char *e (p, i) |
3632 |
char **p; |
3633 |
int i; |
3634 |
{ |
3635 |
return p[i]; |
3636 |
} |
3637 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3638 |
{ |
3639 |
char *s; |
3640 |
va_list v; |
3641 |
va_start (v,p); |
3642 |
s = g (p, va_arg (v,int)); |
3643 |
va_end (v); |
3644 |
return s; |
3645 |
} |
3646 |
|
3647 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3648 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3649 |
These don't provoke an error unfortunately, instead are silently treated |
3650 |
as 'x'. The following induces an error, until -std is added to get |
3651 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3652 |
array size at least. It's necessary to write '\x00'==0 to get something |
3653 |
that's true only with -std. */ |
3654 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3655 |
|
3656 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3657 |
inside strings and character constants. */ |
3658 |
#define FOO(x) 'x' |
3659 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3660 |
|
3661 |
int test (int i, double x); |
3662 |
struct s1 {int (*f) (int a);}; |
3663 |
struct s2 {int (*f) (double a);}; |
3664 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3665 |
int argc; |
3666 |
char **argv; |
3667 |
int |
3668 |
main () |
3669 |
{ |
3670 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3671 |
; |
3672 |
return 0; |
3673 |
} |
3674 |
_ACEOF |
3675 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3676 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3677 |
do |
3678 |
CC="$ac_save_CC $ac_arg" |
3679 |
if ac_fn_c_try_compile "$LINENO"; then : |
3680 |
ac_cv_prog_cc_c89=$ac_arg |
3681 |
fi |
3682 |
rm -f core conftest.err conftest.$ac_objext |
3683 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3684 |
done |
3685 |
rm -f conftest.$ac_ext |
3686 |
CC=$ac_save_CC |
3687 |
|
3688 |
fi |
3689 |
# AC_CACHE_VAL |
3690 |
case "x$ac_cv_prog_cc_c89" in |
3691 |
x) |
3692 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3693 |
$as_echo "none needed" >&6; } ;; |
3694 |
xno) |
3695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3696 |
$as_echo "unsupported" >&6; } ;; |
3697 |
*) |
3698 |
CC="$CC $ac_cv_prog_cc_c89" |
3699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3700 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3701 |
esac |
3702 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3703 |
|
3704 |
fi |
3705 |
|
3706 |
ac_ext=c |
3707 |
ac_cpp='$CPP $CPPFLAGS' |
3708 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3709 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3710 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3711 |
|
3712 |
ac_ext=c |
3713 |
ac_cpp='$CPP $CPPFLAGS' |
3714 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3715 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3716 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3717 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
3718 |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
3719 |
if ${am_cv_prog_cc_c_o+:} false; then : |
3720 |
$as_echo_n "(cached) " >&6 |
3721 |
else |
3722 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3723 |
/* end confdefs.h. */ |
3724 |
|
3725 |
int |
3726 |
main () |
3727 |
{ |
3728 |
|
3729 |
; |
3730 |
return 0; |
3731 |
} |
3732 |
_ACEOF |
3733 |
# Make sure it works both with $CC and with simple cc. |
3734 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
3735 |
# compilers refuse to overwrite an existing .o file with -o, |
3736 |
# though they will create one. |
3737 |
am_cv_prog_cc_c_o=yes |
3738 |
for am_i in 1 2; do |
3739 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
3740 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
3741 |
ac_status=$? |
3742 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3743 |
(exit $ac_status); } \ |
3744 |
&& test -f conftest2.$ac_objext; then |
3745 |
: OK |
3746 |
else |
3747 |
am_cv_prog_cc_c_o=no |
3748 |
break |
3749 |
fi |
3750 |
done |
3751 |
rm -f core conftest* |
3752 |
unset am_i |
3753 |
fi |
3754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3755 |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
3756 |
if test "$am_cv_prog_cc_c_o" != yes; then |
3757 |
# Losing compiler, so override with the script. |
3758 |
# FIXME: It is wrong to rewrite CC. |
3759 |
# But if we don't then we get into trouble of one sort or another. |
3760 |
# A longer-term fix would be to have automake use am__CC in this case, |
3761 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
3762 |
CC="$am_aux_dir/compile $CC" |
3763 |
fi |
3764 |
ac_ext=c |
3765 |
ac_cpp='$CPP $CPPFLAGS' |
3766 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3767 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3768 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3769 |
|
3770 |
|
3771 |
depcc="$CC" am_compiler_list= |
3772 |
|
3773 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3774 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
3775 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
3776 |
$as_echo_n "(cached) " >&6 |
3777 |
else |
3778 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3779 |
# We make a subdir and do the tests there. Otherwise we can end up |
3780 |
# making bogus files that we don't know about and never remove. For |
3781 |
# instance it was reported that on HP-UX the gcc test will end up |
3782 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
3783 |
# in D". |
3784 |
rm -rf conftest.dir |
3785 |
mkdir conftest.dir |
3786 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
3787 |
# using a relative directory. |
3788 |
cp "$am_depcomp" conftest.dir |
3789 |
cd conftest.dir |
3790 |
# We will build objects and dependencies in a subdirectory because |
3791 |
# it helps to detect inapplicable dependency modes. For instance |
3792 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
3793 |
# side effect of compilation, but ICC will put the dependencies in |
3794 |
# the current directory while Tru64 will put them in the object |
3795 |
# directory. |
3796 |
mkdir sub |
3797 |
|
3798 |
am_cv_CC_dependencies_compiler_type=none |
3799 |
if test "$am_compiler_list" = ""; then |
3800 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3801 |
fi |
3802 |
am__universal=false |
3803 |
case " $depcc " in #( |
3804 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
3805 |
esac |
3806 |
|
3807 |
for depmode in $am_compiler_list; do |
3808 |
# Setup a source with many dependencies, because some compilers |
3809 |
# like to wrap large dependency lists on column 80 (with \), and |
3810 |
# we should not choose a depcomp mode which is confused by this. |
3811 |
# |
3812 |
# We need to recreate these files for each test, as the compiler may |
3813 |
# overwrite some of them when testing with obscure command lines. |
3814 |
# This happens at least with the AIX C compiler. |
3815 |
: > sub/conftest.c |
3816 |
for i in 1 2 3 4 5 6; do |
3817 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3818 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3819 |
# Solaris 10 /bin/sh. |
3820 |
echo '/* dummy */' > sub/conftst$i.h |
3821 |
done |
3822 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3823 |
|
3824 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
3825 |
# mode. It turns out that the SunPro C++ compiler does not properly |
3826 |
# handle '-M -o', and we need to detect this. Also, some Intel |
3827 |
# versions had trouble with output in subdirs. |
3828 |
am__obj=sub/conftest.${OBJEXT-o} |
3829 |
am__minus_obj="-o $am__obj" |
3830 |
case $depmode in |
3831 |
gcc) |
3832 |
# This depmode causes a compiler race in universal mode. |
3833 |
test "$am__universal" = false || continue |
3834 |
;; |
3835 |
nosideeffect) |
3836 |
# After this tag, mechanisms are not by side-effect, so they'll |
3837 |
# only be used when explicitly requested. |
3838 |
if test "x$enable_dependency_tracking" = xyes; then |
3839 |
continue |
3840 |
else |
3841 |
break |
3842 |
fi |
3843 |
;; |
3844 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3845 |
# This compiler won't grok '-c -o', but also, the minuso test has |
3846 |
# not run yet. These depmodes are late enough in the game, and |
3847 |
# so weak that their functioning should not be impacted. |
3848 |
am__obj=conftest.${OBJEXT-o} |
3849 |
am__minus_obj= |
3850 |
;; |
3851 |
none) break ;; |
3852 |
esac |
3853 |
if depmode=$depmode \ |
3854 |
source=sub/conftest.c object=$am__obj \ |
3855 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3856 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
3857 |
>/dev/null 2>conftest.err && |
3858 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
3859 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3860 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
3861 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3862 |
# icc doesn't choke on unknown options, it will just issue warnings |
3863 |
# or remarks (even with -Werror). So we grep stderr for any message |
3864 |
# that says an option was ignored or not supported. |
3865 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
3866 |
# icc: Command line warning: ignoring option '-M'; no argument required |
3867 |
# The diagnosis changed in icc 8.0: |
3868 |
# icc: Command line remark: option '-MP' not supported |
3869 |
if (grep 'ignoring option' conftest.err || |
3870 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3871 |
am_cv_CC_dependencies_compiler_type=$depmode |
3872 |
break |
3873 |
fi |
3874 |
fi |
3875 |
done |
3876 |
|
3877 |
cd .. |
3878 |
rm -rf conftest.dir |
3879 |
else |
3880 |
am_cv_CC_dependencies_compiler_type=none |
3881 |
fi |
3882 |
|
3883 |
fi |
3884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3885 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
3886 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3887 |
|
3888 |
if |
3889 |
test "x$enable_dependency_tracking" != xno \ |
3890 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3891 |
am__fastdepCC_TRUE= |
3892 |
am__fastdepCC_FALSE='#' |
3893 |
else |
3894 |
am__fastdepCC_TRUE='#' |
3895 |
am__fastdepCC_FALSE= |
3896 |
fi |
3897 |
|
3898 |
|
3899 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3900 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
3901 |
if ${ac_cv_prog_cc_c99+:} false; then : |
3902 |
$as_echo_n "(cached) " >&6 |
3903 |
else |
3904 |
ac_cv_prog_cc_c99=no |
3905 |
ac_save_CC=$CC |
3906 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3907 |
/* end confdefs.h. */ |
3908 |
#include <stdarg.h> |
3909 |
#include <stdbool.h> |
3910 |
#include <stdlib.h> |
3911 |
#include <wchar.h> |
3912 |
#include <stdio.h> |
3913 |
|
3914 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
3915 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
3916 |
#define showlist(...) puts (#__VA_ARGS__) |
3917 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
3918 |
static void |
3919 |
test_varargs_macros (void) |
3920 |
{ |
3921 |
int x = 1234; |
3922 |
int y = 5678; |
3923 |
debug ("Flag"); |
3924 |
debug ("X = %d\n", x); |
3925 |
showlist (The first, second, and third items.); |
3926 |
report (x>y, "x is %d but y is %d", x, y); |
3927 |
} |
3928 |
|
3929 |
// Check long long types. |
3930 |
#define BIG64 18446744073709551615ull |
3931 |
#define BIG32 4294967295ul |
3932 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
3933 |
#if !BIG_OK |
3934 |
your preprocessor is broken; |
3935 |
#endif |
3936 |
#if BIG_OK |
3937 |
#else |
3938 |
your preprocessor is broken; |
3939 |
#endif |
3940 |
static long long int bignum = -9223372036854775807LL; |
3941 |
static unsigned long long int ubignum = BIG64; |
3942 |
|
3943 |
struct incomplete_array |
3944 |
{ |
3945 |
int datasize; |
3946 |
double data[]; |
3947 |
}; |
3948 |
|
3949 |
struct named_init { |
3950 |
int number; |
3951 |
const wchar_t *name; |
3952 |
double average; |
3953 |
}; |
3954 |
|
3955 |
typedef const char *ccp; |
3956 |
|
3957 |
static inline int |
3958 |
test_restrict (ccp restrict text) |
3959 |
{ |
3960 |
// See if C++-style comments work. |
3961 |
// Iterate through items via the restricted pointer. |
3962 |
// Also check for declarations in for loops. |
3963 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
3964 |
continue; |
3965 |
return 0; |
3966 |
} |
3967 |
|
3968 |
// Check varargs and va_copy. |
3969 |
static void |
3970 |
test_varargs (const char *format, ...) |
3971 |
{ |
3972 |
va_list args; |
3973 |
va_start (args, format); |
3974 |
va_list args_copy; |
3975 |
va_copy (args_copy, args); |
3976 |
|
3977 |
const char *str; |
3978 |
int number; |
3979 |
float fnumber; |
3980 |
|
3981 |
while (*format) |
3982 |
{ |
3983 |
switch (*format++) |
3984 |
{ |
3985 |
case 's': // string |
3986 |
str = va_arg (args_copy, const char *); |
3987 |
break; |
3988 |
case 'd': // int |
3989 |
number = va_arg (args_copy, int); |
3990 |
break; |
3991 |
case 'f': // float |
3992 |
fnumber = va_arg (args_copy, double); |
3993 |
break; |
3994 |
default: |
3995 |
break; |
3996 |
} |
3997 |
} |
3998 |
va_end (args_copy); |
3999 |
va_end (args); |
4000 |
} |
4001 |
|
4002 |
int |
4003 |
main () |
4004 |
{ |
4005 |
|
4006 |
// Check bool. |
4007 |
_Bool success = false; |
4008 |
|
4009 |
// Check restrict. |
4010 |
if (test_restrict ("String literal") == 0) |
4011 |
success = true; |
4012 |
char *restrict newvar = "Another string"; |
4013 |
|
4014 |
// Check varargs. |
4015 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
4016 |
test_varargs_macros (); |
4017 |
|
4018 |
// Check flexible array members. |
4019 |
struct incomplete_array *ia = |
4020 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
4021 |
ia->datasize = 10; |
4022 |
for (int i = 0; i < ia->datasize; ++i) |
4023 |
ia->data[i] = i * 1.234; |
4024 |
|
4025 |
// Check named initializers. |
4026 |
struct named_init ni = { |
4027 |
.number = 34, |
4028 |
.name = L"Test wide string", |
4029 |
.average = 543.34343, |
4030 |
}; |
4031 |
|
4032 |
ni.number = 58; |
4033 |
|
4034 |
int dynamic_array[ni.number]; |
4035 |
dynamic_array[ni.number - 1] = 543; |
4036 |
|
4037 |
// work around unused variable warnings |
4038 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
4039 |
|| dynamic_array[ni.number - 1] != 543); |
4040 |
|
4041 |
; |
4042 |
return 0; |
4043 |
} |
4044 |
_ACEOF |
4045 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
4046 |
do |
4047 |
CC="$ac_save_CC $ac_arg" |
4048 |
if ac_fn_c_try_compile "$LINENO"; then : |
4049 |
ac_cv_prog_cc_c99=$ac_arg |
4050 |
fi |
4051 |
rm -f core conftest.err conftest.$ac_objext |
4052 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
4053 |
done |
4054 |
rm -f conftest.$ac_ext |
4055 |
CC=$ac_save_CC |
4056 |
|
4057 |
fi |
4058 |
# AC_CACHE_VAL |
4059 |
case "x$ac_cv_prog_cc_c99" in |
4060 |
x) |
4061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4062 |
$as_echo "none needed" >&6; } ;; |
4063 |
xno) |
4064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4065 |
$as_echo "unsupported" >&6; } ;; |
4066 |
*) |
4067 |
CC="$CC $ac_cv_prog_cc_c99" |
4068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
4069 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
4070 |
esac |
4071 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
4072 |
|
4073 |
fi |
4074 |
|
4075 |
|
4076 |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
4077 |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
4078 |
fi |
4079 |
case `pwd` in |
4080 |
*\ * | *\ *) |
4081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4082 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
4083 |
esac |
4084 |
|
4085 |
|
4086 |
|
4087 |
macro_version='2.4.4' |
4088 |
macro_revision='2.4.4' |
4089 |
|
4090 |
|
4091 |
|
4092 |
|
4093 |
|
4094 |
|
4095 |
|
4096 |
|
4097 |
|
4098 |
|
4099 |
|
4100 |
|
4101 |
|
4102 |
ltmain=$ac_aux_dir/ltmain.sh |
4103 |
|
4104 |
# Make sure we can run config.sub. |
4105 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4106 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
4107 |
|
4108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4109 |
$as_echo_n "checking build system type... " >&6; } |
4110 |
if ${ac_cv_build+:} false; then : |
4111 |
$as_echo_n "(cached) " >&6 |
4112 |
else |
4113 |
ac_build_alias=$build_alias |
4114 |
test "x$ac_build_alias" = x && |
4115 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4116 |
test "x$ac_build_alias" = x && |
4117 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
4118 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4119 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
4120 |
|
4121 |
fi |
4122 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
4123 |
$as_echo "$ac_cv_build" >&6; } |
4124 |
case $ac_cv_build in |
4125 |
*-*-*) ;; |
4126 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
4127 |
esac |
4128 |
build=$ac_cv_build |
4129 |
ac_save_IFS=$IFS; IFS='-' |
4130 |
set x $ac_cv_build |
4131 |
shift |
4132 |
build_cpu=$1 |
4133 |
build_vendor=$2 |
4134 |
shift; shift |
4135 |
# Remember, the first character of IFS is used to create $*, |
4136 |
# except with old shells: |
4137 |
build_os=$* |
4138 |
IFS=$ac_save_IFS |
4139 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4140 |
|
4141 |
|
4142 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4143 |
$as_echo_n "checking host system type... " >&6; } |
4144 |
if ${ac_cv_host+:} false; then : |
4145 |
$as_echo_n "(cached) " >&6 |
4146 |
else |
4147 |
if test "x$host_alias" = x; then |
4148 |
ac_cv_host=$ac_cv_build |
4149 |
else |
4150 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4151 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
4152 |
fi |
4153 |
|
4154 |
fi |
4155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4156 |
$as_echo "$ac_cv_host" >&6; } |
4157 |
case $ac_cv_host in |
4158 |
*-*-*) ;; |
4159 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4160 |
esac |
4161 |
host=$ac_cv_host |
4162 |
ac_save_IFS=$IFS; IFS='-' |
4163 |
set x $ac_cv_host |
4164 |
shift |
4165 |
host_cpu=$1 |
4166 |
host_vendor=$2 |
4167 |
shift; shift |
4168 |
# Remember, the first character of IFS is used to create $*, |
4169 |
# except with old shells: |
4170 |
host_os=$* |
4171 |
IFS=$ac_save_IFS |
4172 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4173 |
|
4174 |
|
4175 |
# Backslashify metacharacters that are still active within |
4176 |
# double-quoted strings. |
4177 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
4178 |
|
4179 |
# Same as above, but do not quote variable references. |
4180 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
4181 |
|
4182 |
# Sed substitution to delay expansion of an escaped shell variable in a |
4183 |
# double_quote_subst'ed string. |
4184 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
4185 |
|
4186 |
# Sed substitution to delay expansion of an escaped single quote. |
4187 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
4188 |
|
4189 |
# Sed substitution to avoid accidental globbing in evaled expressions |
4190 |
no_glob_subst='s/\*/\\\*/g' |
4191 |
|
4192 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4193 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
4194 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
4195 |
|
4196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
4197 |
$as_echo_n "checking how to print strings... " >&6; } |
4198 |
# Test print first, because it will be a builtin if present. |
4199 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
4200 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4201 |
ECHO='print -r --' |
4202 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
4203 |
ECHO='printf %s\n' |
4204 |
else |
4205 |
# Use this function as a fallback that always works. |
4206 |
func_fallback_echo () |
4207 |
{ |
4208 |
eval 'cat <<_LTECHO_EOF |
4209 |
$1 |
4210 |
_LTECHO_EOF' |
4211 |
} |
4212 |
ECHO='func_fallback_echo' |
4213 |
fi |
4214 |
|
4215 |
# func_echo_all arg... |
4216 |
# Invoke $ECHO with all args, space-separated. |
4217 |
func_echo_all () |
4218 |
{ |
4219 |
$ECHO "" |
4220 |
} |
4221 |
|
4222 |
case $ECHO in |
4223 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4224 |
$as_echo "printf" >&6; } ;; |
4225 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
4226 |
$as_echo "print -r" >&6; } ;; |
4227 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
4228 |
$as_echo "cat" >&6; } ;; |
4229 |
esac |
4230 |
|
4231 |
|
4232 |
|
4233 |
|
4234 |
|
4235 |
|
4236 |
|
4237 |
|
4238 |
|
4239 |
|
4240 |
|
4241 |
|
4242 |
|
4243 |
|
4244 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4245 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4246 |
if ${ac_cv_path_SED+:} false; then : |
4247 |
$as_echo_n "(cached) " >&6 |
4248 |
else |
4249 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4250 |
for ac_i in 1 2 3 4 5 6 7; do |
4251 |
ac_script="$ac_script$as_nl$ac_script" |
4252 |
done |
4253 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
4254 |
{ ac_script=; unset ac_script;} |
4255 |
if test -z "$SED"; then |
4256 |
ac_path_SED_found=false |
4257 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4258 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4259 |
for as_dir in $PATH |
4260 |
do |
4261 |
IFS=$as_save_IFS |
4262 |
test -z "$as_dir" && as_dir=. |
4263 |
for ac_prog in sed gsed; do |
4264 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4265 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4266 |
as_fn_executable_p "$ac_path_SED" || continue |
4267 |
# Check for GNU ac_path_SED and select it if it is found. |
4268 |
# Check for GNU $ac_path_SED |
4269 |
case `"$ac_path_SED" --version 2>&1` in |
4270 |
*GNU*) |
4271 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
4272 |
*) |
4273 |
ac_count=0 |
4274 |
$as_echo_n 0123456789 >"conftest.in" |
4275 |
while : |
4276 |
do |
4277 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4278 |
mv "conftest.tmp" "conftest.in" |
4279 |
cp "conftest.in" "conftest.nl" |
4280 |
$as_echo '' >> "conftest.nl" |
4281 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4282 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4283 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4284 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
4285 |
# Best one so far, save it but keep looking for a better one |
4286 |
ac_cv_path_SED="$ac_path_SED" |
4287 |
ac_path_SED_max=$ac_count |
4288 |
fi |
4289 |
# 10*(2^10) chars as input seems more than enough |
4290 |
test $ac_count -gt 10 && break |
4291 |
done |
4292 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4293 |
esac |
4294 |
|
4295 |
$ac_path_SED_found && break 3 |
4296 |
done |
4297 |
done |
4298 |
done |
4299 |
IFS=$as_save_IFS |
4300 |
if test -z "$ac_cv_path_SED"; then |
4301 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
4302 |
fi |
4303 |
else |
4304 |
ac_cv_path_SED=$SED |
4305 |
fi |
4306 |
|
4307 |
fi |
4308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4309 |
$as_echo "$ac_cv_path_SED" >&6; } |
4310 |
SED="$ac_cv_path_SED" |
4311 |
rm -f conftest.sed |
4312 |
|
4313 |
test -z "$SED" && SED=sed |
4314 |
Xsed="$SED -e 1s/^X//" |
4315 |
|
4316 |
|
4317 |
|
4318 |
|
4319 |
|
4320 |
|
4321 |
|
4322 |
|
4323 |
|
4324 |
|
4325 |
|
4326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4327 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4328 |
if ${ac_cv_path_GREP+:} false; then : |
4329 |
$as_echo_n "(cached) " >&6 |
4330 |
else |
4331 |
if test -z "$GREP"; then |
4332 |
ac_path_GREP_found=false |
4333 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4334 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4335 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4336 |
do |
4337 |
IFS=$as_save_IFS |
4338 |
test -z "$as_dir" && as_dir=. |
4339 |
for ac_prog in grep ggrep; do |
4340 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4341 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4342 |
as_fn_executable_p "$ac_path_GREP" || continue |
4343 |
# Check for GNU ac_path_GREP and select it if it is found. |
4344 |
# Check for GNU $ac_path_GREP |
4345 |
case `"$ac_path_GREP" --version 2>&1` in |
4346 |
*GNU*) |
4347 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4348 |
*) |
4349 |
ac_count=0 |
4350 |
$as_echo_n 0123456789 >"conftest.in" |
4351 |
while : |
4352 |
do |
4353 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4354 |
mv "conftest.tmp" "conftest.in" |
4355 |
cp "conftest.in" "conftest.nl" |
4356 |
$as_echo 'GREP' >> "conftest.nl" |
4357 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4358 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4359 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4360 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4361 |
# Best one so far, save it but keep looking for a better one |
4362 |
ac_cv_path_GREP="$ac_path_GREP" |
4363 |
ac_path_GREP_max=$ac_count |
4364 |
fi |
4365 |
# 10*(2^10) chars as input seems more than enough |
4366 |
test $ac_count -gt 10 && break |
4367 |
done |
4368 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4369 |
esac |
4370 |
|
4371 |
$ac_path_GREP_found && break 3 |
4372 |
done |
4373 |
done |
4374 |
done |
4375 |
IFS=$as_save_IFS |
4376 |
if test -z "$ac_cv_path_GREP"; then |
4377 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4378 |
fi |
4379 |
else |
4380 |
ac_cv_path_GREP=$GREP |
4381 |
fi |
4382 |
|
4383 |
fi |
4384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4385 |
$as_echo "$ac_cv_path_GREP" >&6; } |
4386 |
GREP="$ac_cv_path_GREP" |
4387 |
|
4388 |
|
4389 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4390 |
$as_echo_n "checking for egrep... " >&6; } |
4391 |
if ${ac_cv_path_EGREP+:} false; then : |
4392 |
$as_echo_n "(cached) " >&6 |
4393 |
else |
4394 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4395 |
then ac_cv_path_EGREP="$GREP -E" |
4396 |
else |
4397 |
if test -z "$EGREP"; then |
4398 |
ac_path_EGREP_found=false |
4399 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4400 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4401 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4402 |
do |
4403 |
IFS=$as_save_IFS |
4404 |
test -z "$as_dir" && as_dir=. |
4405 |
for ac_prog in egrep; do |
4406 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4407 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4408 |
as_fn_executable_p "$ac_path_EGREP" || continue |
4409 |
# Check for GNU ac_path_EGREP and select it if it is found. |
4410 |
# Check for GNU $ac_path_EGREP |
4411 |
case `"$ac_path_EGREP" --version 2>&1` in |
4412 |
*GNU*) |
4413 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4414 |
*) |
4415 |
ac_count=0 |
4416 |
$as_echo_n 0123456789 >"conftest.in" |
4417 |
while : |
4418 |
do |
4419 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4420 |
mv "conftest.tmp" "conftest.in" |
4421 |
cp "conftest.in" "conftest.nl" |
4422 |
$as_echo 'EGREP' >> "conftest.nl" |
4423 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4424 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4425 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4426 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4427 |
# Best one so far, save it but keep looking for a better one |
4428 |
ac_cv_path_EGREP="$ac_path_EGREP" |
4429 |
ac_path_EGREP_max=$ac_count |
4430 |
fi |
4431 |
# 10*(2^10) chars as input seems more than enough |
4432 |
test $ac_count -gt 10 && break |
4433 |
done |
4434 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4435 |
esac |
4436 |
|
4437 |
$ac_path_EGREP_found && break 3 |
4438 |
done |
4439 |
done |
4440 |
done |
4441 |
IFS=$as_save_IFS |
4442 |
if test -z "$ac_cv_path_EGREP"; then |
4443 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4444 |
fi |
4445 |
else |
4446 |
ac_cv_path_EGREP=$EGREP |
4447 |
fi |
4448 |
|
4449 |
fi |
4450 |
fi |
4451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4452 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
4453 |
EGREP="$ac_cv_path_EGREP" |
4454 |
|
4455 |
|
4456 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4457 |
$as_echo_n "checking for fgrep... " >&6; } |
4458 |
if ${ac_cv_path_FGREP+:} false; then : |
4459 |
$as_echo_n "(cached) " >&6 |
4460 |
else |
4461 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4462 |
then ac_cv_path_FGREP="$GREP -F" |
4463 |
else |
4464 |
if test -z "$FGREP"; then |
4465 |
ac_path_FGREP_found=false |
4466 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4467 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4468 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4469 |
do |
4470 |
IFS=$as_save_IFS |
4471 |
test -z "$as_dir" && as_dir=. |
4472 |
for ac_prog in fgrep; do |
4473 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4474 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4475 |
as_fn_executable_p "$ac_path_FGREP" || continue |
4476 |
# Check for GNU ac_path_FGREP and select it if it is found. |
4477 |
# Check for GNU $ac_path_FGREP |
4478 |
case `"$ac_path_FGREP" --version 2>&1` in |
4479 |
*GNU*) |
4480 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
4481 |
*) |
4482 |
ac_count=0 |
4483 |
$as_echo_n 0123456789 >"conftest.in" |
4484 |
while : |
4485 |
do |
4486 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4487 |
mv "conftest.tmp" "conftest.in" |
4488 |
cp "conftest.in" "conftest.nl" |
4489 |
$as_echo 'FGREP' >> "conftest.nl" |
4490 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4491 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4492 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4493 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4494 |
# Best one so far, save it but keep looking for a better one |
4495 |
ac_cv_path_FGREP="$ac_path_FGREP" |
4496 |
ac_path_FGREP_max=$ac_count |
4497 |
fi |
4498 |
# 10*(2^10) chars as input seems more than enough |
4499 |
test $ac_count -gt 10 && break |
4500 |
done |
4501 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4502 |
esac |
4503 |
|
4504 |
$ac_path_FGREP_found && break 3 |
4505 |
done |
4506 |
done |
4507 |
done |
4508 |
IFS=$as_save_IFS |
4509 |
if test -z "$ac_cv_path_FGREP"; then |
4510 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4511 |
fi |
4512 |
else |
4513 |
ac_cv_path_FGREP=$FGREP |
4514 |
fi |
4515 |
|
4516 |
fi |
4517 |
fi |
4518 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4519 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
4520 |
FGREP="$ac_cv_path_FGREP" |
4521 |
|
4522 |
|
4523 |
test -z "$GREP" && GREP=grep |
4524 |
|
4525 |
|
4526 |
|
4527 |
|
4528 |
|
4529 |
|
4530 |
|
4531 |
|
4532 |
|
4533 |
|
4534 |
|
4535 |
|
4536 |
|
4537 |
|
4538 |
|
4539 |
|
4540 |
|
4541 |
|
4542 |
|
4543 |
# Check whether --with-gnu-ld was given. |
4544 |
if test "${with_gnu_ld+set}" = set; then : |
4545 |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
4546 |
else |
4547 |
with_gnu_ld=no |
4548 |
fi |
4549 |
|
4550 |
ac_prog=ld |
4551 |
if test yes = "$GCC"; then |
4552 |
# Check if gcc -print-prog-name=ld gives a path. |
4553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4554 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
4555 |
case $host in |
4556 |
*-*-mingw*) |
4557 |
# gcc leaves a trailing carriage return, which upsets mingw |
4558 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4559 |
*) |
4560 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4561 |
esac |
4562 |
case $ac_prog in |
4563 |
# Accept absolute paths. |
4564 |
[\\/]* | ?:[\\/]*) |
4565 |
re_direlt='/[^/][^/]*/\.\./' |
4566 |
# Canonicalize the pathname of ld |
4567 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4568 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4569 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4570 |
done |
4571 |
test -z "$LD" && LD=$ac_prog |
4572 |
;; |
4573 |
"") |
4574 |
# If it fails, then pretend we aren't using GCC. |
4575 |
ac_prog=ld |
4576 |
;; |
4577 |
*) |
4578 |
# If it is relative, then search for the first ld in PATH. |
4579 |
with_gnu_ld=unknown |
4580 |
;; |
4581 |
esac |
4582 |
elif test yes = "$with_gnu_ld"; then |
4583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4584 |
$as_echo_n "checking for GNU ld... " >&6; } |
4585 |
else |
4586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4587 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
4588 |
fi |
4589 |
if ${lt_cv_path_LD+:} false; then : |
4590 |
$as_echo_n "(cached) " >&6 |
4591 |
else |
4592 |
if test -z "$LD"; then |
4593 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4594 |
for ac_dir in $PATH; do |
4595 |
IFS=$lt_save_ifs |
4596 |
test -z "$ac_dir" && ac_dir=. |
4597 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4598 |
lt_cv_path_LD=$ac_dir/$ac_prog |
4599 |
# Check to see if the program is GNU ld. I'd rather use --version, |
4600 |
# but apparently some variants of GNU ld only accept -v. |
4601 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4602 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4603 |
*GNU* | *'with BFD'*) |
4604 |
test no != "$with_gnu_ld" && break |
4605 |
;; |
4606 |
*) |
4607 |
test yes != "$with_gnu_ld" && break |
4608 |
;; |
4609 |
esac |
4610 |
fi |
4611 |
done |
4612 |
IFS=$lt_save_ifs |
4613 |
else |
4614 |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
4615 |
fi |
4616 |
fi |
4617 |
|
4618 |
LD=$lt_cv_path_LD |
4619 |
if test -n "$LD"; then |
4620 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4621 |
$as_echo "$LD" >&6; } |
4622 |
else |
4623 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4624 |
$as_echo "no" >&6; } |
4625 |
fi |
4626 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4627 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4628 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4629 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
4630 |
$as_echo_n "(cached) " >&6 |
4631 |
else |
4632 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4633 |
case `$LD -v 2>&1 </dev/null` in |
4634 |
*GNU* | *'with BFD'*) |
4635 |
lt_cv_prog_gnu_ld=yes |
4636 |
;; |
4637 |
*) |
4638 |
lt_cv_prog_gnu_ld=no |
4639 |
;; |
4640 |
esac |
4641 |
fi |
4642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4643 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
4644 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
4645 |
|
4646 |
|
4647 |
|
4648 |
|
4649 |
|
4650 |
|
4651 |
|
4652 |
|
4653 |
|
4654 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4655 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
4656 |
if ${lt_cv_path_NM+:} false; then : |
4657 |
$as_echo_n "(cached) " >&6 |
4658 |
else |
4659 |
if test -n "$NM"; then |
4660 |
# Let the user override the test. |
4661 |
lt_cv_path_NM=$NM |
4662 |
else |
4663 |
lt_nm_to_check=${ac_tool_prefix}nm |
4664 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4665 |
lt_nm_to_check="$lt_nm_to_check nm" |
4666 |
fi |
4667 |
for lt_tmp_nm in $lt_nm_to_check; do |
4668 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4669 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4670 |
IFS=$lt_save_ifs |
4671 |
test -z "$ac_dir" && ac_dir=. |
4672 |
tmp_nm=$ac_dir/$lt_tmp_nm |
4673 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
4674 |
# Check to see if the nm accepts a BSD-compat flag. |
4675 |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
4676 |
# nm: unknown option "B" ignored |
4677 |
# Tru64's nm complains that /dev/null is an invalid object file |
4678 |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4679 |
case $build_os in |
4680 |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
4681 |
*) lt_bad_file=/dev/null ;; |
4682 |
esac |
4683 |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
4684 |
*$lt_bad_file* | *'Invalid file or object type'*) |
4685 |
lt_cv_path_NM="$tmp_nm -B" |
4686 |
break 2 |
4687 |
;; |
4688 |
*) |
4689 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4690 |
*/dev/null*) |
4691 |
lt_cv_path_NM="$tmp_nm -p" |
4692 |
break 2 |
4693 |
;; |
4694 |
*) |
4695 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4696 |
continue # so that we can try to find one that supports BSD flags |
4697 |
;; |
4698 |
esac |
4699 |
;; |
4700 |
esac |
4701 |
fi |
4702 |
done |
4703 |
IFS=$lt_save_ifs |
4704 |
done |
4705 |
: ${lt_cv_path_NM=no} |
4706 |
fi |
4707 |
fi |
4708 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4709 |
$as_echo "$lt_cv_path_NM" >&6; } |
4710 |
if test no != "$lt_cv_path_NM"; then |
4711 |
NM=$lt_cv_path_NM |
4712 |
else |
4713 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
4714 |
if test -n "$DUMPBIN"; then : |
4715 |
# Let the user override the test. |
4716 |
else |
4717 |
if test -n "$ac_tool_prefix"; then |
4718 |
for ac_prog in dumpbin "link -dump" |
4719 |
do |
4720 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4721 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4722 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4723 |
$as_echo_n "checking for $ac_word... " >&6; } |
4724 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
4725 |
$as_echo_n "(cached) " >&6 |
4726 |
else |
4727 |
if test -n "$DUMPBIN"; then |
4728 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
4729 |
else |
4730 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4731 |
for as_dir in $PATH |
4732 |
do |
4733 |
IFS=$as_save_IFS |
4734 |
test -z "$as_dir" && as_dir=. |
4735 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4736 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4737 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
4738 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4739 |
break 2 |
4740 |
fi |
4741 |
done |
4742 |
done |
4743 |
IFS=$as_save_IFS |
4744 |
|
4745 |
fi |
4746 |
fi |
4747 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
4748 |
if test -n "$DUMPBIN"; then |
4749 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
4750 |
$as_echo "$DUMPBIN" >&6; } |
4751 |
else |
4752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4753 |
$as_echo "no" >&6; } |
4754 |
fi |
4755 |
|
4756 |
|
4757 |
test -n "$DUMPBIN" && break |
4758 |
done |
4759 |
fi |
4760 |
if test -z "$DUMPBIN"; then |
4761 |
ac_ct_DUMPBIN=$DUMPBIN |
4762 |
for ac_prog in dumpbin "link -dump" |
4763 |
do |
4764 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4765 |
set dummy $ac_prog; ac_word=$2 |
4766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4767 |
$as_echo_n "checking for $ac_word... " >&6; } |
4768 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
4769 |
$as_echo_n "(cached) " >&6 |
4770 |
else |
4771 |
if test -n "$ac_ct_DUMPBIN"; then |
4772 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
4773 |
else |
4774 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4775 |
for as_dir in $PATH |
4776 |
do |
4777 |
IFS=$as_save_IFS |
4778 |
test -z "$as_dir" && as_dir=. |
4779 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4780 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4781 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
4782 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4783 |
break 2 |
4784 |
fi |
4785 |
done |
4786 |
done |
4787 |
IFS=$as_save_IFS |
4788 |
|
4789 |
fi |
4790 |
fi |
4791 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4792 |
if test -n "$ac_ct_DUMPBIN"; then |
4793 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
4794 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
4795 |
else |
4796 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4797 |
$as_echo "no" >&6; } |
4798 |
fi |
4799 |
|
4800 |
|
4801 |
test -n "$ac_ct_DUMPBIN" && break |
4802 |
done |
4803 |
|
4804 |
if test "x$ac_ct_DUMPBIN" = x; then |
4805 |
DUMPBIN=":" |
4806 |
else |
4807 |
case $cross_compiling:$ac_tool_warned in |
4808 |
yes:) |
4809 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4810 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4811 |
ac_tool_warned=yes ;; |
4812 |
esac |
4813 |
DUMPBIN=$ac_ct_DUMPBIN |
4814 |
fi |
4815 |
fi |
4816 |
|
4817 |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
4818 |
*COFF*) |
4819 |
DUMPBIN="$DUMPBIN -symbols -headers" |
4820 |
;; |
4821 |
*) |
4822 |
DUMPBIN=: |
4823 |
;; |
4824 |
esac |
4825 |
fi |
4826 |
|
4827 |
if test : != "$DUMPBIN"; then |
4828 |
NM=$DUMPBIN |
4829 |
fi |
4830 |
fi |
4831 |
test -z "$NM" && NM=nm |
4832 |
|
4833 |
|
4834 |
|
4835 |
|
4836 |
|
4837 |
|
4838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
4839 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
4840 |
if ${lt_cv_nm_interface+:} false; then : |
4841 |
$as_echo_n "(cached) " >&6 |
4842 |
else |
4843 |
lt_cv_nm_interface="BSD nm" |
4844 |
echo "int some_variable = 0;" > conftest.$ac_ext |
4845 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
4846 |
(eval "$ac_compile" 2>conftest.err) |
4847 |
cat conftest.err >&5 |
4848 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
4849 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4850 |
cat conftest.err >&5 |
4851 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
4852 |
cat conftest.out >&5 |
4853 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4854 |
lt_cv_nm_interface="MS dumpbin" |
4855 |
fi |
4856 |
rm -f conftest* |
4857 |
fi |
4858 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4859 |
$as_echo "$lt_cv_nm_interface" >&6; } |
4860 |
|
4861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4862 |
$as_echo_n "checking whether ln -s works... " >&6; } |
4863 |
LN_S=$as_ln_s |
4864 |
if test "$LN_S" = "ln -s"; then |
4865 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4866 |
$as_echo "yes" >&6; } |
4867 |
else |
4868 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4869 |
$as_echo "no, using $LN_S" >&6; } |
4870 |
fi |
4871 |
|
4872 |
# find the maximum length of command line arguments |
4873 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
4874 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
4875 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
4876 |
$as_echo_n "(cached) " >&6 |
4877 |
else |
4878 |
i=0 |
4879 |
teststring=ABCD |
4880 |
|
4881 |
case $build_os in |
4882 |
msdosdjgpp*) |
4883 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
4884 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
4885 |
# during glob expansion). Even if it were fixed, the result of this |
4886 |
# check would be larger than it should be. |
4887 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
4888 |
;; |
4889 |
|
4890 |
gnu*) |
4891 |
# Under GNU Hurd, this test is not required because there is |
4892 |
# no limit to the length of command line arguments. |
4893 |
# Libtool will interpret -1 as no limit whatsoever |
4894 |
lt_cv_sys_max_cmd_len=-1; |
4895 |
;; |
4896 |
|
4897 |
cygwin* | mingw* | cegcc*) |
4898 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
4899 |
# about 5 minutes as the teststring grows exponentially. |
4900 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
4901 |
# you end up with a "frozen" computer, even though with patience |
4902 |
# the test eventually succeeds (with a max line length of 256k). |
4903 |
# Instead, let's just punt: use the minimum linelength reported by |
4904 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
4905 |
lt_cv_sys_max_cmd_len=8192; |
4906 |
;; |
4907 |
|
4908 |
mint*) |
4909 |
# On MiNT this can take a long time and run out of memory. |
4910 |
lt_cv_sys_max_cmd_len=8192; |
4911 |
;; |
4912 |
|
4913 |
amigaos*) |
4914 |
# On AmigaOS with pdksh, this test takes hours, literally. |
4915 |
# So we just punt and use a minimum line length of 8192. |
4916 |
lt_cv_sys_max_cmd_len=8192; |
4917 |
;; |
4918 |
|
4919 |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
4920 |
# This has been around since 386BSD, at least. Likely further. |
4921 |
if test -x /sbin/sysctl; then |
4922 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
4923 |
elif test -x /usr/sbin/sysctl; then |
4924 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
4925 |
else |
4926 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
4927 |
fi |
4928 |
# And add a safety zone |
4929 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4930 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
4931 |
;; |
4932 |
|
4933 |
interix*) |
4934 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
4935 |
lt_cv_sys_max_cmd_len=196608 |
4936 |
;; |
4937 |
|
4938 |
os2*) |
4939 |
# The test takes a long time on OS/2. |
4940 |
lt_cv_sys_max_cmd_len=8192 |
4941 |
;; |
4942 |
|
4943 |
osf*) |
4944 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
4945 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
4946 |
# nice to cause kernel panics so lets avoid the loop below. |
4947 |
# First set a reasonable default. |
4948 |
lt_cv_sys_max_cmd_len=16384 |
4949 |
# |
4950 |
if test -x /sbin/sysconfig; then |
4951 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
4952 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
4953 |
esac |
4954 |
fi |
4955 |
;; |
4956 |
sco3.2v5*) |
4957 |
lt_cv_sys_max_cmd_len=102400 |
4958 |
;; |
4959 |
sysv5* | sco5v6* | sysv4.2uw2*) |
4960 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
4961 |
if test -n "$kargmax"; then |
4962 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
4963 |
else |
4964 |
lt_cv_sys_max_cmd_len=32768 |
4965 |
fi |
4966 |
;; |
4967 |
*) |
4968 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
4969 |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
4970 |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
4971 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4972 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
4973 |
else |
4974 |
# Make teststring a little bigger before we do anything with it. |
4975 |
# a 1K string should be a reasonable start. |
4976 |
for i in 1 2 3 4 5 6 7 8; do |
4977 |
teststring=$teststring$teststring |
4978 |
done |
4979 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
4980 |
# If test is not a shell built-in, we'll probably end up computing a |
4981 |
# maximum length that is only half of the actual maximum length, but |
4982 |
# we can't tell. |
4983 |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
4984 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
4985 |
test 17 != "$i" # 1/2 MB should be enough |
4986 |
do |
4987 |
i=`expr $i + 1` |
4988 |
teststring=$teststring$teststring |
4989 |
done |
4990 |
# Only check the string length outside the loop. |
4991 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
4992 |
teststring= |
4993 |
# Add a significant safety factor because C++ compilers can tack on |
4994 |
# massive amounts of additional arguments before passing them to the |
4995 |
# linker. It appears as though 1/2 is a usable value. |
4996 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
4997 |
fi |
4998 |
;; |
4999 |
esac |
5000 |
|
5001 |
fi |
5002 |
|
5003 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
5004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5005 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5006 |
else |
5007 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5008 |
$as_echo "none" >&6; } |
5009 |
fi |
5010 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
5011 |
|
5012 |
|
5013 |
|
5014 |
|
5015 |
|
5016 |
|
5017 |
: ${CP="cp -f"} |
5018 |
: ${MV="mv -f"} |
5019 |
: ${RM="rm -f"} |
5020 |
|
5021 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5022 |
lt_unset=unset |
5023 |
else |
5024 |
lt_unset=false |
5025 |
fi |
5026 |
|
5027 |
|
5028 |
|
5029 |
|
5030 |
|
5031 |
# test EBCDIC or ASCII |
5032 |
case `echo X|tr X '\101'` in |
5033 |
A) # ASCII based system |
5034 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
5035 |
lt_SP2NL='tr \040 \012' |
5036 |
lt_NL2SP='tr \015\012 \040\040' |
5037 |
;; |
5038 |
*) # EBCDIC based system |
5039 |
lt_SP2NL='tr \100 \n' |
5040 |
lt_NL2SP='tr \r\n \100\100' |
5041 |
;; |
5042 |
esac |
5043 |
|
5044 |
|
5045 |
|
5046 |
|
5047 |
|
5048 |
|
5049 |
|
5050 |
|
5051 |
|
5052 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5053 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
5054 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
5055 |
$as_echo_n "(cached) " >&6 |
5056 |
else |
5057 |
case $host in |
5058 |
*-*-mingw* ) |
5059 |
case $build in |
5060 |
*-*-mingw* ) # actually msys |
5061 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
5062 |
;; |
5063 |
*-*-cygwin* ) |
5064 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
5065 |
;; |
5066 |
* ) # otherwise, assume *nix |
5067 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
5068 |
;; |
5069 |
esac |
5070 |
;; |
5071 |
*-*-cygwin* ) |
5072 |
case $build in |
5073 |
*-*-mingw* ) # actually msys |
5074 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
5075 |
;; |
5076 |
*-*-cygwin* ) |
5077 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5078 |
;; |
5079 |
* ) # otherwise, assume *nix |
5080 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
5081 |
;; |
5082 |
esac |
5083 |
;; |
5084 |
* ) # unhandled hosts (and "normal" native builds) |
5085 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5086 |
;; |
5087 |
esac |
5088 |
|
5089 |
fi |
5090 |
|
5091 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
5092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
5093 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
5094 |
|
5095 |
|
5096 |
|
5097 |
|
5098 |
|
5099 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
5100 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
5101 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
5102 |
$as_echo_n "(cached) " >&6 |
5103 |
else |
5104 |
#assume ordinary cross tools, or native build. |
5105 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
5106 |
case $host in |
5107 |
*-*-mingw* ) |
5108 |
case $build in |
5109 |
*-*-mingw* ) # actually msys |
5110 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
5111 |
;; |
5112 |
esac |
5113 |
;; |
5114 |
esac |
5115 |
|
5116 |
fi |
5117 |
|
5118 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
5119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
5120 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
5121 |
|
5122 |
|
5123 |
|
5124 |
|
5125 |
|
5126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5127 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
5128 |
if ${lt_cv_ld_reload_flag+:} false; then : |
5129 |
$as_echo_n "(cached) " >&6 |
5130 |
else |
5131 |
lt_cv_ld_reload_flag='-r' |
5132 |
fi |
5133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5134 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
5135 |
reload_flag=$lt_cv_ld_reload_flag |
5136 |
case $reload_flag in |
5137 |
"" | " "*) ;; |
5138 |
*) reload_flag=" $reload_flag" ;; |
5139 |
esac |
5140 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5141 |
case $host_os in |
5142 |
cygwin* | mingw* | pw32* | cegcc*) |
5143 |
if test yes != "$GCC"; then |
5144 |
reload_cmds=false |
5145 |
fi |
5146 |
;; |
5147 |
darwin*) |
5148 |
if test yes = "$GCC"; then |
5149 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
5150 |
else |
5151 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5152 |
fi |
5153 |
;; |
5154 |
esac |
5155 |
|
5156 |
|
5157 |
|
5158 |
|
5159 |
|
5160 |
|
5161 |
|
5162 |
|
5163 |
|
5164 |
if test -n "$ac_tool_prefix"; then |
5165 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
5166 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
5167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5168 |
$as_echo_n "checking for $ac_word... " >&6; } |
5169 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
5170 |
$as_echo_n "(cached) " >&6 |
5171 |
else |
5172 |
if test -n "$OBJDUMP"; then |
5173 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
5174 |
else |
5175 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5176 |
for as_dir in $PATH |
5177 |
do |
5178 |
IFS=$as_save_IFS |
5179 |
test -z "$as_dir" && as_dir=. |
5180 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5181 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5182 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5183 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5184 |
break 2 |
5185 |
fi |
5186 |
done |
5187 |
done |
5188 |
IFS=$as_save_IFS |
5189 |
|
5190 |
fi |
5191 |
fi |
5192 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
5193 |
if test -n "$OBJDUMP"; then |
5194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5195 |
$as_echo "$OBJDUMP" >&6; } |
5196 |
else |
5197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5198 |
$as_echo "no" >&6; } |
5199 |
fi |
5200 |
|
5201 |
|
5202 |
fi |
5203 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
5204 |
ac_ct_OBJDUMP=$OBJDUMP |
5205 |
# Extract the first word of "objdump", so it can be a program name with args. |
5206 |
set dummy objdump; ac_word=$2 |
5207 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5208 |
$as_echo_n "checking for $ac_word... " >&6; } |
5209 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5210 |
$as_echo_n "(cached) " >&6 |
5211 |
else |
5212 |
if test -n "$ac_ct_OBJDUMP"; then |
5213 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
5214 |
else |
5215 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5216 |
for as_dir in $PATH |
5217 |
do |
5218 |
IFS=$as_save_IFS |
5219 |
test -z "$as_dir" && as_dir=. |
5220 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5221 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5222 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5223 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5224 |
break 2 |
5225 |
fi |
5226 |
done |
5227 |
done |
5228 |
IFS=$as_save_IFS |
5229 |
|
5230 |
fi |
5231 |
fi |
5232 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5233 |
if test -n "$ac_ct_OBJDUMP"; then |
5234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5235 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
5236 |
else |
5237 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5238 |
$as_echo "no" >&6; } |
5239 |
fi |
5240 |
|
5241 |
if test "x$ac_ct_OBJDUMP" = x; then |
5242 |
OBJDUMP="false" |
5243 |
else |
5244 |
case $cross_compiling:$ac_tool_warned in |
5245 |
yes:) |
5246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5247 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5248 |
ac_tool_warned=yes ;; |
5249 |
esac |
5250 |
OBJDUMP=$ac_ct_OBJDUMP |
5251 |
fi |
5252 |
else |
5253 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
5254 |
fi |
5255 |
|
5256 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
5257 |
|
5258 |
|
5259 |
|
5260 |
|
5261 |
|
5262 |
|
5263 |
|
5264 |
|
5265 |
|
5266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5267 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
5268 |
if ${lt_cv_deplibs_check_method+:} false; then : |
5269 |
$as_echo_n "(cached) " >&6 |
5270 |
else |
5271 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
5272 |
lt_cv_file_magic_test_file= |
5273 |
lt_cv_deplibs_check_method='unknown' |
5274 |
# Need to set the preceding variable on all platforms that support |
5275 |
# interlibrary dependencies. |
5276 |
# 'none' -- dependencies not supported. |
5277 |
# 'unknown' -- same as none, but documents that we really don't know. |
5278 |
# 'pass_all' -- all dependencies passed with no checks. |
5279 |
# 'test_compile' -- check by making test program. |
5280 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
5281 |
# that responds to the $file_magic_cmd with a given extended regex. |
5282 |
# If you have 'file' or equivalent on your system and you're not sure |
5283 |
# whether 'pass_all' will *always* work, you probably want this one. |
5284 |
|
5285 |
case $host_os in |
5286 |
aix[4-9]*) |
5287 |
lt_cv_deplibs_check_method=pass_all |
5288 |
;; |
5289 |
|
5290 |
beos*) |
5291 |
lt_cv_deplibs_check_method=pass_all |
5292 |
;; |
5293 |
|
5294 |
bsdi[45]*) |
5295 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5296 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
5297 |
lt_cv_file_magic_test_file=/shlib/libc.so |
5298 |
;; |
5299 |
|
5300 |
cygwin*) |
5301 |
# func_win32_libid is a shell function defined in ltmain.sh |
5302 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5303 |
lt_cv_file_magic_cmd='func_win32_libid' |
5304 |
;; |
5305 |
|
5306 |
mingw* | pw32*) |
5307 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
5308 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
5309 |
# unless we find 'file', for example because we are cross-compiling. |
5310 |
if ( file / ) >/dev/null 2>&1; then |
5311 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5312 |
lt_cv_file_magic_cmd='func_win32_libid' |
5313 |
else |
5314 |
# Keep this pattern in sync with the one in func_win32_libid. |
5315 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
5316 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5317 |
fi |
5318 |
;; |
5319 |
|
5320 |
cegcc*) |
5321 |
# use the weaker test based on 'objdump'. See mingw*. |
5322 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
5323 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5324 |
;; |
5325 |
|
5326 |
darwin* | rhapsody*) |
5327 |
lt_cv_deplibs_check_method=pass_all |
5328 |
;; |
5329 |
|
5330 |
freebsd* | dragonfly*) |
5331 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5332 |
case $host_cpu in |
5333 |
i*86 ) |
5334 |
# Not sure whether the presence of OpenBSD here was a mistake. |
5335 |
# Let's accept both of them until this is cleared up. |
5336 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5337 |
lt_cv_file_magic_cmd=/usr/bin/file |
5338 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5339 |
;; |
5340 |
esac |
5341 |
else |
5342 |
lt_cv_deplibs_check_method=pass_all |
5343 |
fi |
5344 |
;; |
5345 |
|
5346 |
haiku*) |
5347 |
lt_cv_deplibs_check_method=pass_all |
5348 |
;; |
5349 |
|
5350 |
hpux10.20* | hpux11*) |
5351 |
lt_cv_file_magic_cmd=/usr/bin/file |
5352 |
case $host_cpu in |
5353 |
ia64*) |
5354 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5355 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5356 |
;; |
5357 |
hppa*64*) |
5358 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
5359 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5360 |
;; |
5361 |
*) |
5362 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
5363 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5364 |
;; |
5365 |
esac |
5366 |
;; |
5367 |
|
5368 |
interix[3-9]*) |
5369 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
5370 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
5371 |
;; |
5372 |
|
5373 |
irix5* | irix6* | nonstopux*) |
5374 |
case $LD in |
5375 |
*-32|*"-32 ") libmagic=32-bit;; |
5376 |
*-n32|*"-n32 ") libmagic=N32;; |
5377 |
*-64|*"-64 ") libmagic=64-bit;; |
5378 |
*) libmagic=never-match;; |
5379 |
esac |
5380 |
lt_cv_deplibs_check_method=pass_all |
5381 |
;; |
5382 |
|
5383 |
# This must be glibc/ELF. |
5384 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5385 |
lt_cv_deplibs_check_method=pass_all |
5386 |
;; |
5387 |
|
5388 |
netbsd*) |
5389 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5390 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5391 |
else |
5392 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5393 |
fi |
5394 |
;; |
5395 |
|
5396 |
newos6*) |
5397 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5398 |
lt_cv_file_magic_cmd=/usr/bin/file |
5399 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5400 |
;; |
5401 |
|
5402 |
*nto* | *qnx*) |
5403 |
lt_cv_deplibs_check_method=pass_all |
5404 |
;; |
5405 |
|
5406 |
openbsd* | bitrig*) |
5407 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
5408 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5409 |
else |
5410 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5411 |
fi |
5412 |
;; |
5413 |
|
5414 |
osf3* | osf4* | osf5*) |
5415 |
lt_cv_deplibs_check_method=pass_all |
5416 |
;; |
5417 |
|
5418 |
rdos*) |
5419 |
lt_cv_deplibs_check_method=pass_all |
5420 |
;; |
5421 |
|
5422 |
solaris*) |
5423 |
lt_cv_deplibs_check_method=pass_all |
5424 |
;; |
5425 |
|
5426 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5427 |
lt_cv_deplibs_check_method=pass_all |
5428 |
;; |
5429 |
|
5430 |
sysv4 | sysv4.3*) |
5431 |
case $host_vendor in |
5432 |
motorola) |
5433 |
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]' |
5434 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5435 |
;; |
5436 |
ncr) |
5437 |
lt_cv_deplibs_check_method=pass_all |
5438 |
;; |
5439 |
sequent) |
5440 |
lt_cv_file_magic_cmd='/bin/file' |
5441 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5442 |
;; |
5443 |
sni) |
5444 |
lt_cv_file_magic_cmd='/bin/file' |
5445 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5446 |
lt_cv_file_magic_test_file=/lib/libc.so |
5447 |
;; |
5448 |
siemens) |
5449 |
lt_cv_deplibs_check_method=pass_all |
5450 |
;; |
5451 |
pc) |
5452 |
lt_cv_deplibs_check_method=pass_all |
5453 |
;; |
5454 |
esac |
5455 |
;; |
5456 |
|
5457 |
tpf*) |
5458 |
lt_cv_deplibs_check_method=pass_all |
5459 |
;; |
5460 |
os2*) |
5461 |
lt_cv_deplibs_check_method=pass_all |
5462 |
;; |
5463 |
esac |
5464 |
|
5465 |
fi |
5466 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5467 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
5468 |
|
5469 |
file_magic_glob= |
5470 |
want_nocaseglob=no |
5471 |
if test "$build" = "$host"; then |
5472 |
case $host_os in |
5473 |
mingw* | pw32*) |
5474 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
5475 |
want_nocaseglob=yes |
5476 |
else |
5477 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
5478 |
fi |
5479 |
;; |
5480 |
esac |
5481 |
fi |
5482 |
|
5483 |
file_magic_cmd=$lt_cv_file_magic_cmd |
5484 |
deplibs_check_method=$lt_cv_deplibs_check_method |
5485 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5486 |
|
5487 |
|
5488 |
|
5489 |
|
5490 |
|
5491 |
|
5492 |
|
5493 |
|
5494 |
|
5495 |
|
5496 |
|
5497 |
|
5498 |
|
5499 |
|
5500 |
|
5501 |
|
5502 |
|
5503 |
|
5504 |
|
5505 |
|
5506 |
|
5507 |
|
5508 |
if test -n "$ac_tool_prefix"; then |
5509 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5510 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
5511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5512 |
$as_echo_n "checking for $ac_word... " >&6; } |
5513 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
5514 |
$as_echo_n "(cached) " >&6 |
5515 |
else |
5516 |
if test -n "$DLLTOOL"; then |
5517 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
5518 |
else |
5519 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5520 |
for as_dir in $PATH |
5521 |
do |
5522 |
IFS=$as_save_IFS |
5523 |
test -z "$as_dir" && as_dir=. |
5524 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5525 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5526 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
5527 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5528 |
break 2 |
5529 |
fi |
5530 |
done |
5531 |
done |
5532 |
IFS=$as_save_IFS |
5533 |
|
5534 |
fi |
5535 |
fi |
5536 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
5537 |
if test -n "$DLLTOOL"; then |
5538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
5539 |
$as_echo "$DLLTOOL" >&6; } |
5540 |
else |
5541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5542 |
$as_echo "no" >&6; } |
5543 |
fi |
5544 |
|
5545 |
|
5546 |
fi |
5547 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
5548 |
ac_ct_DLLTOOL=$DLLTOOL |
5549 |
# Extract the first word of "dlltool", so it can be a program name with args. |
5550 |
set dummy dlltool; ac_word=$2 |
5551 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5552 |
$as_echo_n "checking for $ac_word... " >&6; } |
5553 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
5554 |
$as_echo_n "(cached) " >&6 |
5555 |
else |
5556 |
if test -n "$ac_ct_DLLTOOL"; then |
5557 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
5558 |
else |
5559 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5560 |
for as_dir in $PATH |
5561 |
do |
5562 |
IFS=$as_save_IFS |
5563 |
test -z "$as_dir" && as_dir=. |
5564 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5565 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5566 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
5567 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5568 |
break 2 |
5569 |
fi |
5570 |
done |
5571 |
done |
5572 |
IFS=$as_save_IFS |
5573 |
|
5574 |
fi |
5575 |
fi |
5576 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5577 |
if test -n "$ac_ct_DLLTOOL"; then |
5578 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
5579 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
5580 |
else |
5581 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5582 |
$as_echo "no" >&6; } |
5583 |
fi |
5584 |
|
5585 |
if test "x$ac_ct_DLLTOOL" = x; then |
5586 |
DLLTOOL="false" |
5587 |
else |
5588 |
case $cross_compiling:$ac_tool_warned in |
5589 |
yes:) |
5590 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5591 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5592 |
ac_tool_warned=yes ;; |
5593 |
esac |
5594 |
DLLTOOL=$ac_ct_DLLTOOL |
5595 |
fi |
5596 |
else |
5597 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
5598 |
fi |
5599 |
|
5600 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
5601 |
|
5602 |
|
5603 |
|
5604 |
|
5605 |
|
5606 |
|
5607 |
|
5608 |
|
5609 |
|
5610 |
|
5611 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5612 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
5613 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
5614 |
$as_echo_n "(cached) " >&6 |
5615 |
else |
5616 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
5617 |
|
5618 |
case $host_os in |
5619 |
cygwin* | mingw* | pw32* | cegcc*) |
5620 |
# two different shell functions defined in ltmain.sh; |
5621 |
# decide which one to use based on capabilities of $DLLTOOL |
5622 |
case `$DLLTOOL --help 2>&1` in |
5623 |
*--identify-strict*) |
5624 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
5625 |
;; |
5626 |
*) |
5627 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
5628 |
;; |
5629 |
esac |
5630 |
;; |
5631 |
*) |
5632 |
# fallback: assume linklib IS sharedlib |
5633 |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
5634 |
;; |
5635 |
esac |
5636 |
|
5637 |
fi |
5638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5639 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
5640 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
5641 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
5642 |
|
5643 |
|
5644 |
|
5645 |
|
5646 |
|
5647 |
|
5648 |
|
5649 |
|
5650 |
if test -n "$ac_tool_prefix"; then |
5651 |
for ac_prog in ar |
5652 |
do |
5653 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5654 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5655 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5656 |
$as_echo_n "checking for $ac_word... " >&6; } |
5657 |
if ${ac_cv_prog_AR+:} false; then : |
5658 |
$as_echo_n "(cached) " >&6 |
5659 |
else |
5660 |
if test -n "$AR"; then |
5661 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
5662 |
else |
5663 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5664 |
for as_dir in $PATH |
5665 |
do |
5666 |
IFS=$as_save_IFS |
5667 |
test -z "$as_dir" && as_dir=. |
5668 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5669 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5670 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
5671 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5672 |
break 2 |
5673 |
fi |
5674 |
done |
5675 |
done |
5676 |
IFS=$as_save_IFS |
5677 |
|
5678 |
fi |
5679 |
fi |
5680 |
AR=$ac_cv_prog_AR |
5681 |
if test -n "$AR"; then |
5682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5683 |
$as_echo "$AR" >&6; } |
5684 |
else |
5685 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5686 |
$as_echo "no" >&6; } |
5687 |
fi |
5688 |
|
5689 |
|
5690 |
test -n "$AR" && break |
5691 |
done |
5692 |
fi |
5693 |
if test -z "$AR"; then |
5694 |
ac_ct_AR=$AR |
5695 |
for ac_prog in ar |
5696 |
do |
5697 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5698 |
set dummy $ac_prog; ac_word=$2 |
5699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5700 |
$as_echo_n "checking for $ac_word... " >&6; } |
5701 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5702 |
$as_echo_n "(cached) " >&6 |
5703 |
else |
5704 |
if test -n "$ac_ct_AR"; then |
5705 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5706 |
else |
5707 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5708 |
for as_dir in $PATH |
5709 |
do |
5710 |
IFS=$as_save_IFS |
5711 |
test -z "$as_dir" && as_dir=. |
5712 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5713 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5714 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
5715 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5716 |
break 2 |
5717 |
fi |
5718 |
done |
5719 |
done |
5720 |
IFS=$as_save_IFS |
5721 |
|
5722 |
fi |
5723 |
fi |
5724 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5725 |
if test -n "$ac_ct_AR"; then |
5726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5727 |
$as_echo "$ac_ct_AR" >&6; } |
5728 |
else |
5729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5730 |
$as_echo "no" >&6; } |
5731 |
fi |
5732 |
|
5733 |
|
5734 |
test -n "$ac_ct_AR" && break |
5735 |
done |
5736 |
|
5737 |
if test "x$ac_ct_AR" = x; then |
5738 |
AR="false" |
5739 |
else |
5740 |
case $cross_compiling:$ac_tool_warned in |
5741 |
yes:) |
5742 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5743 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5744 |
ac_tool_warned=yes ;; |
5745 |
esac |
5746 |
AR=$ac_ct_AR |
5747 |
fi |
5748 |
fi |
5749 |
|
5750 |
: ${AR=ar} |
5751 |
: ${AR_FLAGS=cru} |
5752 |
|
5753 |
|
5754 |
|
5755 |
|
5756 |
|
5757 |
|
5758 |
|
5759 |
|
5760 |
|
5761 |
|
5762 |
|
5763 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5764 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
5765 |
if ${lt_cv_ar_at_file+:} false; then : |
5766 |
$as_echo_n "(cached) " >&6 |
5767 |
else |
5768 |
lt_cv_ar_at_file=no |
5769 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5770 |
/* end confdefs.h. */ |
5771 |
|
5772 |
int |
5773 |
main () |
5774 |
{ |
5775 |
|
5776 |
; |
5777 |
return 0; |
5778 |
} |
5779 |
_ACEOF |
5780 |
if ac_fn_c_try_compile "$LINENO"; then : |
5781 |
echo conftest.$ac_objext > conftest.lst |
5782 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
5783 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
5784 |
(eval $lt_ar_try) 2>&5 |
5785 |
ac_status=$? |
5786 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5787 |
test $ac_status = 0; } |
5788 |
if test 0 -eq "$ac_status"; then |
5789 |
# Ensure the archiver fails upon bogus file names. |
5790 |
rm -f conftest.$ac_objext libconftest.a |
5791 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
5792 |
(eval $lt_ar_try) 2>&5 |
5793 |
ac_status=$? |
5794 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5795 |
test $ac_status = 0; } |
5796 |
if test 0 -ne "$ac_status"; then |
5797 |
lt_cv_ar_at_file=@ |
5798 |
fi |
5799 |
fi |
5800 |
rm -f conftest.* libconftest.a |
5801 |
|
5802 |
fi |
5803 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5804 |
|
5805 |
fi |
5806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
5807 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
5808 |
|
5809 |
if test no = "$lt_cv_ar_at_file"; then |
5810 |
archiver_list_spec= |
5811 |
else |
5812 |
archiver_list_spec=$lt_cv_ar_at_file |
5813 |
fi |
5814 |
|
5815 |
|
5816 |
|
5817 |
|
5818 |
|
5819 |
|
5820 |
|
5821 |
if test -n "$ac_tool_prefix"; then |
5822 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
5823 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5824 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5825 |
$as_echo_n "checking for $ac_word... " >&6; } |
5826 |
if ${ac_cv_prog_STRIP+:} false; then : |
5827 |
$as_echo_n "(cached) " >&6 |
5828 |
else |
5829 |
if test -n "$STRIP"; then |
5830 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
5831 |
else |
5832 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5833 |
for as_dir in $PATH |
5834 |
do |
5835 |
IFS=$as_save_IFS |
5836 |
test -z "$as_dir" && as_dir=. |
5837 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5838 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5839 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5840 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5841 |
break 2 |
5842 |
fi |
5843 |
done |
5844 |
done |
5845 |
IFS=$as_save_IFS |
5846 |
|
5847 |
fi |
5848 |
fi |
5849 |
STRIP=$ac_cv_prog_STRIP |
5850 |
if test -n "$STRIP"; then |
5851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
5852 |
$as_echo "$STRIP" >&6; } |
5853 |
else |
5854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5855 |
$as_echo "no" >&6; } |
5856 |
fi |
5857 |
|
5858 |
|
5859 |
fi |
5860 |
if test -z "$ac_cv_prog_STRIP"; then |
5861 |
ac_ct_STRIP=$STRIP |
5862 |
# Extract the first word of "strip", so it can be a program name with args. |
5863 |
set dummy strip; ac_word=$2 |
5864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5865 |
$as_echo_n "checking for $ac_word... " >&6; } |
5866 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5867 |
$as_echo_n "(cached) " >&6 |
5868 |
else |
5869 |
if test -n "$ac_ct_STRIP"; then |
5870 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
5871 |
else |
5872 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5873 |
for as_dir in $PATH |
5874 |
do |
5875 |
IFS=$as_save_IFS |
5876 |
test -z "$as_dir" && as_dir=. |
5877 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5878 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5879 |
ac_cv_prog_ac_ct_STRIP="strip" |
5880 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5881 |
break 2 |
5882 |
fi |
5883 |
done |
5884 |
done |
5885 |
IFS=$as_save_IFS |
5886 |
|
5887 |
fi |
5888 |
fi |
5889 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5890 |
if test -n "$ac_ct_STRIP"; then |
5891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5892 |
$as_echo "$ac_ct_STRIP" >&6; } |
5893 |
else |
5894 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5895 |
$as_echo "no" >&6; } |
5896 |
fi |
5897 |
|
5898 |
if test "x$ac_ct_STRIP" = x; then |
5899 |
STRIP=":" |
5900 |
else |
5901 |
case $cross_compiling:$ac_tool_warned in |
5902 |
yes:) |
5903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5904 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5905 |
ac_tool_warned=yes ;; |
5906 |
esac |
5907 |
STRIP=$ac_ct_STRIP |
5908 |
fi |
5909 |
else |
5910 |
STRIP="$ac_cv_prog_STRIP" |
5911 |
fi |
5912 |
|
5913 |
test -z "$STRIP" && STRIP=: |
5914 |
|
5915 |
|
5916 |
|
5917 |
|
5918 |
|
5919 |
|
5920 |
if test -n "$ac_tool_prefix"; then |
5921 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5922 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5924 |
$as_echo_n "checking for $ac_word... " >&6; } |
5925 |
if ${ac_cv_prog_RANLIB+:} false; then : |
5926 |
$as_echo_n "(cached) " >&6 |
5927 |
else |
5928 |
if test -n "$RANLIB"; then |
5929 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5930 |
else |
5931 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5932 |
for as_dir in $PATH |
5933 |
do |
5934 |
IFS=$as_save_IFS |
5935 |
test -z "$as_dir" && as_dir=. |
5936 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5937 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5938 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5939 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5940 |
break 2 |
5941 |
fi |
5942 |
done |
5943 |
done |
5944 |
IFS=$as_save_IFS |
5945 |
|
5946 |
fi |
5947 |
fi |
5948 |
RANLIB=$ac_cv_prog_RANLIB |
5949 |
if test -n "$RANLIB"; then |
5950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5951 |
$as_echo "$RANLIB" >&6; } |
5952 |
else |
5953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5954 |
$as_echo "no" >&6; } |
5955 |
fi |
5956 |
|
5957 |
|
5958 |
fi |
5959 |
if test -z "$ac_cv_prog_RANLIB"; then |
5960 |
ac_ct_RANLIB=$RANLIB |
5961 |
# Extract the first word of "ranlib", so it can be a program name with args. |
5962 |
set dummy ranlib; ac_word=$2 |
5963 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5964 |
$as_echo_n "checking for $ac_word... " >&6; } |
5965 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5966 |
$as_echo_n "(cached) " >&6 |
5967 |
else |
5968 |
if test -n "$ac_ct_RANLIB"; then |
5969 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5970 |
else |
5971 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5972 |
for as_dir in $PATH |
5973 |
do |
5974 |
IFS=$as_save_IFS |
5975 |
test -z "$as_dir" && as_dir=. |
5976 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5977 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5978 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
5979 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5980 |
break 2 |
5981 |
fi |
5982 |
done |
5983 |
done |
5984 |
IFS=$as_save_IFS |
5985 |
|
5986 |
fi |
5987 |
fi |
5988 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5989 |
if test -n "$ac_ct_RANLIB"; then |
5990 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5991 |
$as_echo "$ac_ct_RANLIB" >&6; } |
5992 |
else |
5993 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5994 |
$as_echo "no" >&6; } |
5995 |
fi |
5996 |
|
5997 |
if test "x$ac_ct_RANLIB" = x; then |
5998 |
RANLIB=":" |
5999 |
else |
6000 |
case $cross_compiling:$ac_tool_warned in |
6001 |
yes:) |
6002 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6003 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6004 |
ac_tool_warned=yes ;; |
6005 |
esac |
6006 |
RANLIB=$ac_ct_RANLIB |
6007 |
fi |
6008 |
else |
6009 |
RANLIB="$ac_cv_prog_RANLIB" |
6010 |
fi |
6011 |
|
6012 |
test -z "$RANLIB" && RANLIB=: |
6013 |
|
6014 |
|
6015 |
|
6016 |
|
6017 |
|
6018 |
|
6019 |
# Determine commands to create old-style static archives. |
6020 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
6021 |
old_postinstall_cmds='chmod 644 $oldlib' |
6022 |
old_postuninstall_cmds= |
6023 |
|
6024 |
if test -n "$RANLIB"; then |
6025 |
case $host_os in |
6026 |
bitrig* | openbsd*) |
6027 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
6028 |
;; |
6029 |
*) |
6030 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
6031 |
;; |
6032 |
esac |
6033 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
6034 |
fi |
6035 |
|
6036 |
case $host_os in |
6037 |
darwin*) |
6038 |
lock_old_archive_extraction=yes ;; |
6039 |
*) |
6040 |
lock_old_archive_extraction=no ;; |
6041 |
esac |
6042 |
|
6043 |
|
6044 |
|
6045 |
|
6046 |
|
6047 |
|
6048 |
|
6049 |
|
6050 |
|
6051 |
|
6052 |
|
6053 |
|
6054 |
|
6055 |
|
6056 |
|
6057 |
|
6058 |
|
6059 |
|
6060 |
|
6061 |
|
6062 |
|
6063 |
|
6064 |
|
6065 |
|
6066 |
|
6067 |
|
6068 |
|
6069 |
|
6070 |
|
6071 |
|
6072 |
|
6073 |
|
6074 |
|
6075 |
|
6076 |
|
6077 |
|
6078 |
|
6079 |
|
6080 |
|
6081 |
# If no C compiler was specified, use CC. |
6082 |
LTCC=${LTCC-"$CC"} |
6083 |
|
6084 |
# If no C compiler flags were specified, use CFLAGS. |
6085 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6086 |
|
6087 |
# Allow CC to be a program name with arguments. |
6088 |
compiler=$CC |
6089 |
|
6090 |
|
6091 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
6092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6093 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
6094 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6095 |
$as_echo_n "(cached) " >&6 |
6096 |
else |
6097 |
|
6098 |
# These are sane defaults that work on at least a few old systems. |
6099 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6100 |
|
6101 |
# Character class describing NM global symbol codes. |
6102 |
symcode='[BCDEGRST]' |
6103 |
|
6104 |
# Regexp to match symbols that can be accessed directly from C. |
6105 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6106 |
|
6107 |
# Define system-specific variables. |
6108 |
case $host_os in |
6109 |
aix*) |
6110 |
symcode='[BCDT]' |
6111 |
;; |
6112 |
cygwin* | mingw* | pw32* | cegcc*) |
6113 |
symcode='[ABCDGISTW]' |
6114 |
;; |
6115 |
hpux*) |
6116 |
if test ia64 = "$host_cpu"; then |
6117 |
symcode='[ABCDEGRST]' |
6118 |
fi |
6119 |
;; |
6120 |
irix* | nonstopux*) |
6121 |
symcode='[BCDEGRST]' |
6122 |
;; |
6123 |
osf*) |
6124 |
symcode='[BCDEGQRST]' |
6125 |
;; |
6126 |
solaris*) |
6127 |
symcode='[BDRT]' |
6128 |
;; |
6129 |
sco3.2v5*) |
6130 |
symcode='[DT]' |
6131 |
;; |
6132 |
sysv4.2uw2*) |
6133 |
symcode='[DT]' |
6134 |
;; |
6135 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6136 |
symcode='[ABDT]' |
6137 |
;; |
6138 |
sysv4) |
6139 |
symcode='[DFNSTU]' |
6140 |
;; |
6141 |
esac |
6142 |
|
6143 |
# If we're using GNU nm, then use its standard symbol codes. |
6144 |
case `$NM -V 2>&1` in |
6145 |
*GNU* | *'with BFD'*) |
6146 |
symcode='[ABCDGIRSTW]' ;; |
6147 |
esac |
6148 |
|
6149 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6150 |
# Gets list of data symbols to import. |
6151 |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
6152 |
# Adjust the below global symbol transforms to fixup imported variables. |
6153 |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
6154 |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
6155 |
lt_c_name_lib_hook="\ |
6156 |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
6157 |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
6158 |
else |
6159 |
# Disable hooks by default. |
6160 |
lt_cv_sys_global_symbol_to_import= |
6161 |
lt_cdecl_hook= |
6162 |
lt_c_name_hook= |
6163 |
lt_c_name_lib_hook= |
6164 |
fi |
6165 |
|
6166 |
# Transform an extracted symbol line into a proper C declaration. |
6167 |
# Some systems (esp. on ia64) link data and code symbols differently, |
6168 |
# so use this general approach. |
6169 |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6170 |
$lt_cdecl_hook\ |
6171 |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
6172 |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
6173 |
|
6174 |
# Transform an extracted symbol line into symbol name and symbol address |
6175 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6176 |
$lt_c_name_hook\ |
6177 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6178 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
6179 |
|
6180 |
# Transform an extracted symbol line into symbol name with lib prefix and |
6181 |
# symbol address. |
6182 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
6183 |
$lt_c_name_lib_hook\ |
6184 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6185 |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
6186 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
6187 |
|
6188 |
# Handle CRLF in mingw tool chain |
6189 |
opt_cr= |
6190 |
case $build_os in |
6191 |
mingw*) |
6192 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6193 |
;; |
6194 |
esac |
6195 |
|
6196 |
# Try without a prefix underscore, then with it. |
6197 |
for ac_symprfx in "" "_"; do |
6198 |
|
6199 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6200 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
6201 |
|
6202 |
# Write the raw and C identifiers. |
6203 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6204 |
# Fake it for dumpbin and say T for any non-static function, |
6205 |
# D for any global variable and I for any imported variable. |
6206 |
# Also find C++ and __fastcall symbols from MSVC++, |
6207 |
# which start with @ or ?. |
6208 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6209 |
" {last_section=section; section=\$ 3};"\ |
6210 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
6211 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6212 |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6213 |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
6214 |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
6215 |
" \$ 0!~/External *\|/{next};"\ |
6216 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6217 |
" {if(hide[section]) next};"\ |
6218 |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6219 |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
6220 |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
6221 |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
6222 |
" ' prfx=^$ac_symprfx" |
6223 |
else |
6224 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6225 |
fi |
6226 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
6227 |
|
6228 |
# Check to see that the pipe works correctly. |
6229 |
pipe_works=no |
6230 |
|
6231 |
rm -f conftest* |
6232 |
cat > conftest.$ac_ext <<_LT_EOF |
6233 |
#ifdef __cplusplus |
6234 |
extern "C" { |
6235 |
#endif |
6236 |
char nm_test_var; |
6237 |
void nm_test_func(void); |
6238 |
void nm_test_func(void){} |
6239 |
#ifdef __cplusplus |
6240 |
} |
6241 |
#endif |
6242 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
6243 |
_LT_EOF |
6244 |
|
6245 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6246 |
(eval $ac_compile) 2>&5 |
6247 |
ac_status=$? |
6248 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6249 |
test $ac_status = 0; }; then |
6250 |
# Now try to grab the symbols. |
6251 |
nlist=conftest.nm |
6252 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6253 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
6254 |
ac_status=$? |
6255 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6256 |
test $ac_status = 0; } && test -s "$nlist"; then |
6257 |
# Try sorting and uniquifying the output. |
6258 |
if sort "$nlist" | uniq > "$nlist"T; then |
6259 |
mv -f "$nlist"T "$nlist" |
6260 |
else |
6261 |
rm -f "$nlist"T |
6262 |
fi |
6263 |
|
6264 |
# Make sure that we snagged all the symbols we need. |
6265 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6266 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6267 |
cat <<_LT_EOF > conftest.$ac_ext |
6268 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6269 |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6270 |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
6271 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6272 |
# define LT_DLSYM_CONST |
6273 |
#elif defined __osf__ |
6274 |
/* This system does not cope well with relocations in const data. */ |
6275 |
# define LT_DLSYM_CONST |
6276 |
#else |
6277 |
# define LT_DLSYM_CONST const |
6278 |
#endif |
6279 |
|
6280 |
#ifdef __cplusplus |
6281 |
extern "C" { |
6282 |
#endif |
6283 |
|
6284 |
_LT_EOF |
6285 |
# Now generate the symbol file. |
6286 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6287 |
|
6288 |
cat <<_LT_EOF >> conftest.$ac_ext |
6289 |
|
6290 |
/* The mapping between symbol names and symbols. */ |
6291 |
LT_DLSYM_CONST struct { |
6292 |
const char *name; |
6293 |
void *address; |
6294 |
} |
6295 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
6296 |
{ |
6297 |
{ "@PROGRAM@", (void *) 0 }, |
6298 |
_LT_EOF |
6299 |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6300 |
cat <<\_LT_EOF >> conftest.$ac_ext |
6301 |
{0, (void *) 0} |
6302 |
}; |
6303 |
|
6304 |
/* This works around a problem in FreeBSD linker */ |
6305 |
#ifdef FREEBSD_WORKAROUND |
6306 |
static const void *lt_preloaded_setup() { |
6307 |
return lt__PROGRAM__LTX_preloaded_symbols; |
6308 |
} |
6309 |
#endif |
6310 |
|
6311 |
#ifdef __cplusplus |
6312 |
} |
6313 |
#endif |
6314 |
_LT_EOF |
6315 |
# Now try linking the two files. |
6316 |
mv conftest.$ac_objext conftstm.$ac_objext |
6317 |
lt_globsym_save_LIBS=$LIBS |
6318 |
lt_globsym_save_CFLAGS=$CFLAGS |
6319 |
LIBS=conftstm.$ac_objext |
6320 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6321 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6322 |
(eval $ac_link) 2>&5 |
6323 |
ac_status=$? |
6324 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6325 |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
6326 |
pipe_works=yes |
6327 |
fi |
6328 |
LIBS=$lt_globsym_save_LIBS |
6329 |
CFLAGS=$lt_globsym_save_CFLAGS |
6330 |
else |
6331 |
echo "cannot find nm_test_func in $nlist" >&5 |
6332 |
fi |
6333 |
else |
6334 |
echo "cannot find nm_test_var in $nlist" >&5 |
6335 |
fi |
6336 |
else |
6337 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6338 |
fi |
6339 |
else |
6340 |
echo "$progname: failed program was:" >&5 |
6341 |
cat conftest.$ac_ext >&5 |
6342 |
fi |
6343 |
rm -rf conftest* conftst* |
6344 |
|
6345 |
# Do not use the global_symbol_pipe unless it works. |
6346 |
if test yes = "$pipe_works"; then |
6347 |
break |
6348 |
else |
6349 |
lt_cv_sys_global_symbol_pipe= |
6350 |
fi |
6351 |
done |
6352 |
|
6353 |
fi |
6354 |
|
6355 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6356 |
lt_cv_sys_global_symbol_to_cdecl= |
6357 |
fi |
6358 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6360 |
$as_echo "failed" >&6; } |
6361 |
else |
6362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6363 |
$as_echo "ok" >&6; } |
6364 |
fi |
6365 |
|
6366 |
# Response file support. |
6367 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6368 |
nm_file_list_spec='@' |
6369 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
6370 |
nm_file_list_spec='@' |
6371 |
fi |
6372 |
|
6373 |
|
6374 |
|
6375 |
|
6376 |
|
6377 |
|
6378 |
|
6379 |
|
6380 |
|
6381 |
|
6382 |
|
6383 |
|
6384 |
|
6385 |
|
6386 |
|
6387 |
|
6388 |
|
6389 |
|
6390 |
|
6391 |
|
6392 |
|
6393 |
|
6394 |
|
6395 |
|
6396 |
|
6397 |
|
6398 |
|
6399 |
|
6400 |
|
6401 |
|
6402 |
|
6403 |
|
6404 |
|
6405 |
|
6406 |
|
6407 |
|
6408 |
|
6409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6410 |
$as_echo_n "checking for sysroot... " >&6; } |
6411 |
|
6412 |
# Check whether --with-sysroot was given. |
6413 |
if test "${with_sysroot+set}" = set; then : |
6414 |
withval=$with_sysroot; |
6415 |
else |
6416 |
with_sysroot=no |
6417 |
fi |
6418 |
|
6419 |
|
6420 |
lt_sysroot= |
6421 |
case $with_sysroot in #( |
6422 |
yes) |
6423 |
if test yes = "$GCC"; then |
6424 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6425 |
fi |
6426 |
;; #( |
6427 |
/*) |
6428 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
6429 |
;; #( |
6430 |
no|'') |
6431 |
;; #( |
6432 |
*) |
6433 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6434 |
$as_echo "$with_sysroot" >&6; } |
6435 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6436 |
;; |
6437 |
esac |
6438 |
|
6439 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6440 |
$as_echo "${lt_sysroot:-no}" >&6; } |
6441 |
|
6442 |
|
6443 |
|
6444 |
|
6445 |
|
6446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6447 |
$as_echo_n "checking for a working dd... " >&6; } |
6448 |
if ${ac_cv_path_lt_DD+:} false; then : |
6449 |
$as_echo_n "(cached) " >&6 |
6450 |
else |
6451 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6452 |
cat conftest.i conftest.i >conftest2.i |
6453 |
: ${lt_DD:=$DD} |
6454 |
if test -z "$lt_DD"; then |
6455 |
ac_path_lt_DD_found=false |
6456 |
# Loop through the user's path and test for each of PROGNAME-LIST |
6457 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6458 |
for as_dir in $PATH |
6459 |
do |
6460 |
IFS=$as_save_IFS |
6461 |
test -z "$as_dir" && as_dir=. |
6462 |
for ac_prog in dd; do |
6463 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6464 |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
6465 |
as_fn_executable_p "$ac_path_lt_DD" || continue |
6466 |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6467 |
cmp -s conftest.i conftest.out \ |
6468 |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
6469 |
fi |
6470 |
$ac_path_lt_DD_found && break 3 |
6471 |
done |
6472 |
done |
6473 |
done |
6474 |
IFS=$as_save_IFS |
6475 |
if test -z "$ac_cv_path_lt_DD"; then |
6476 |
: |
6477 |
fi |
6478 |
else |
6479 |
ac_cv_path_lt_DD=$lt_DD |
6480 |
fi |
6481 |
|
6482 |
rm -f conftest.i conftest2.i conftest.out |
6483 |
fi |
6484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
6485 |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
6486 |
|
6487 |
|
6488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
6489 |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
6490 |
if ${lt_cv_truncate_bin+:} false; then : |
6491 |
$as_echo_n "(cached) " >&6 |
6492 |
else |
6493 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6494 |
cat conftest.i conftest.i >conftest2.i |
6495 |
lt_cv_truncate_bin= |
6496 |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6497 |
cmp -s conftest.i conftest.out \ |
6498 |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
6499 |
fi |
6500 |
rm -f conftest.i conftest2.i conftest.out |
6501 |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
6502 |
fi |
6503 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
6504 |
$as_echo "$lt_cv_truncate_bin" >&6; } |
6505 |
|
6506 |
|
6507 |
|
6508 |
|
6509 |
|
6510 |
|
6511 |
# Check whether --enable-libtool-lock was given. |
6512 |
if test "${enable_libtool_lock+set}" = set; then : |
6513 |
enableval=$enable_libtool_lock; |
6514 |
fi |
6515 |
|
6516 |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
6517 |
|
6518 |
# Some flags need to be propagated to the compiler or linker for good |
6519 |
# libtool support. |
6520 |
case $host in |
6521 |
ia64-*-hpux*) |
6522 |
# Find out what ABI is being produced by ac_compile, and set mode |
6523 |
# options accordingly. |
6524 |
echo 'int i;' > conftest.$ac_ext |
6525 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6526 |
(eval $ac_compile) 2>&5 |
6527 |
ac_status=$? |
6528 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6529 |
test $ac_status = 0; }; then |
6530 |
case `/usr/bin/file conftest.$ac_objext` in |
6531 |
*ELF-32*) |
6532 |
HPUX_IA64_MODE=32 |
6533 |
;; |
6534 |
*ELF-64*) |
6535 |
HPUX_IA64_MODE=64 |
6536 |
;; |
6537 |
esac |
6538 |
fi |
6539 |
rm -rf conftest* |
6540 |
;; |
6541 |
*-*-irix6*) |
6542 |
# Find out what ABI is being produced by ac_compile, and set linker |
6543 |
# options accordingly. |
6544 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6545 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6546 |
(eval $ac_compile) 2>&5 |
6547 |
ac_status=$? |
6548 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6549 |
test $ac_status = 0; }; then |
6550 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
6551 |
case `/usr/bin/file conftest.$ac_objext` in |
6552 |
*32-bit*) |
6553 |
LD="${LD-ld} -melf32bsmip" |
6554 |
;; |
6555 |
*N32*) |
6556 |
LD="${LD-ld} -melf32bmipn32" |
6557 |
;; |
6558 |
*64-bit*) |
6559 |
LD="${LD-ld} -melf64bmip" |
6560 |
;; |
6561 |
esac |
6562 |
else |
6563 |
case `/usr/bin/file conftest.$ac_objext` in |
6564 |
*32-bit*) |
6565 |
LD="${LD-ld} -32" |
6566 |
;; |
6567 |
*N32*) |
6568 |
LD="${LD-ld} -n32" |
6569 |
;; |
6570 |
*64-bit*) |
6571 |
LD="${LD-ld} -64" |
6572 |
;; |
6573 |
esac |
6574 |
fi |
6575 |
fi |
6576 |
rm -rf conftest* |
6577 |
;; |
6578 |
|
6579 |
mips64*-*linux*) |
6580 |
# Find out what ABI is being produced by ac_compile, and set linker |
6581 |
# options accordingly. |
6582 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6583 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6584 |
(eval $ac_compile) 2>&5 |
6585 |
ac_status=$? |
6586 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6587 |
test $ac_status = 0; }; then |
6588 |
emul=elf |
6589 |
case `/usr/bin/file conftest.$ac_objext` in |
6590 |
*32-bit*) |
6591 |
emul="${emul}32" |
6592 |
;; |
6593 |
*64-bit*) |
6594 |
emul="${emul}64" |
6595 |
;; |
6596 |
esac |
6597 |
case `/usr/bin/file conftest.$ac_objext` in |
6598 |
*MSB*) |
6599 |
emul="${emul}btsmip" |
6600 |
;; |
6601 |
*LSB*) |
6602 |
emul="${emul}ltsmip" |
6603 |
;; |
6604 |
esac |
6605 |
case `/usr/bin/file conftest.$ac_objext` in |
6606 |
*N32*) |
6607 |
emul="${emul}n32" |
6608 |
;; |
6609 |
esac |
6610 |
LD="${LD-ld} -m $emul" |
6611 |
fi |
6612 |
rm -rf conftest* |
6613 |
;; |
6614 |
|
6615 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
6616 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6617 |
# Find out what ABI is being produced by ac_compile, and set linker |
6618 |
# options accordingly. Note that the listed cases only cover the |
6619 |
# situations where additional linker options are needed (such as when |
6620 |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
6621 |
# vice versa); the common cases where no linker options are needed do |
6622 |
# not appear in the list. |
6623 |
echo 'int i;' > conftest.$ac_ext |
6624 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6625 |
(eval $ac_compile) 2>&5 |
6626 |
ac_status=$? |
6627 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6628 |
test $ac_status = 0; }; then |
6629 |
case `/usr/bin/file conftest.o` in |
6630 |
*32-bit*) |
6631 |
case $host in |
6632 |
x86_64-*kfreebsd*-gnu) |
6633 |
LD="${LD-ld} -m elf_i386_fbsd" |
6634 |
;; |
6635 |
x86_64-*linux*) |
6636 |
case `/usr/bin/file conftest.o` in |
6637 |
*x86-64*) |
6638 |
LD="${LD-ld} -m elf32_x86_64" |
6639 |
;; |
6640 |
*) |
6641 |
LD="${LD-ld} -m elf_i386" |
6642 |
;; |
6643 |
esac |
6644 |
;; |
6645 |
powerpc64le-*linux*) |
6646 |
LD="${LD-ld} -m elf32lppclinux" |
6647 |
;; |
6648 |
powerpc64-*linux*) |
6649 |
LD="${LD-ld} -m elf32ppclinux" |
6650 |
;; |
6651 |
s390x-*linux*) |
6652 |
LD="${LD-ld} -m elf_s390" |
6653 |
;; |
6654 |
sparc64-*linux*) |
6655 |
LD="${LD-ld} -m elf32_sparc" |
6656 |
;; |
6657 |
esac |
6658 |
;; |
6659 |
*64-bit*) |
6660 |
case $host in |
6661 |
x86_64-*kfreebsd*-gnu) |
6662 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
6663 |
;; |
6664 |
x86_64-*linux*) |
6665 |
LD="${LD-ld} -m elf_x86_64" |
6666 |
;; |
6667 |
powerpcle-*linux*) |
6668 |
LD="${LD-ld} -m elf64lppc" |
6669 |
;; |
6670 |
powerpc-*linux*) |
6671 |
LD="${LD-ld} -m elf64ppc" |
6672 |
;; |
6673 |
s390*-*linux*|s390*-*tpf*) |
6674 |
LD="${LD-ld} -m elf64_s390" |
6675 |
;; |
6676 |
sparc*-*linux*) |
6677 |
LD="${LD-ld} -m elf64_sparc" |
6678 |
;; |
6679 |
esac |
6680 |
;; |
6681 |
esac |
6682 |
fi |
6683 |
rm -rf conftest* |
6684 |
;; |
6685 |
|
6686 |
*-*-sco3.2v5*) |
6687 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
6688 |
SAVE_CFLAGS=$CFLAGS |
6689 |
CFLAGS="$CFLAGS -belf" |
6690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6691 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
6692 |
if ${lt_cv_cc_needs_belf+:} false; then : |
6693 |
$as_echo_n "(cached) " >&6 |
6694 |
else |
6695 |
ac_ext=c |
6696 |
ac_cpp='$CPP $CPPFLAGS' |
6697 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6698 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6699 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6700 |
|
6701 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6702 |
/* end confdefs.h. */ |
6703 |
|
6704 |
int |
6705 |
main () |
6706 |
{ |
6707 |
|
6708 |
; |
6709 |
return 0; |
6710 |
} |
6711 |
_ACEOF |
6712 |
if ac_fn_c_try_link "$LINENO"; then : |
6713 |
lt_cv_cc_needs_belf=yes |
6714 |
else |
6715 |
lt_cv_cc_needs_belf=no |
6716 |
fi |
6717 |
rm -f core conftest.err conftest.$ac_objext \ |
6718 |
conftest$ac_exeext conftest.$ac_ext |
6719 |
ac_ext=c |
6720 |
ac_cpp='$CPP $CPPFLAGS' |
6721 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6722 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6723 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6724 |
|
6725 |
fi |
6726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6727 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
6728 |
if test yes != "$lt_cv_cc_needs_belf"; then |
6729 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6730 |
CFLAGS=$SAVE_CFLAGS |
6731 |
fi |
6732 |
;; |
6733 |
*-*solaris*) |
6734 |
# Find out what ABI is being produced by ac_compile, and set linker |
6735 |
# options accordingly. |
6736 |
echo 'int i;' > conftest.$ac_ext |
6737 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6738 |
(eval $ac_compile) 2>&5 |
6739 |
ac_status=$? |
6740 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6741 |
test $ac_status = 0; }; then |
6742 |
case `/usr/bin/file conftest.o` in |
6743 |
*64-bit*) |
6744 |
case $lt_cv_prog_gnu_ld in |
6745 |
yes*) |
6746 |
case $host in |
6747 |
i?86-*-solaris*|x86_64-*-solaris*) |
6748 |
LD="${LD-ld} -m elf_x86_64" |
6749 |
;; |
6750 |
sparc*-*-solaris*) |
6751 |
LD="${LD-ld} -m elf64_sparc" |
6752 |
;; |
6753 |
esac |
6754 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
6755 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
6756 |
LD=${LD-ld}_sol2 |
6757 |
fi |
6758 |
;; |
6759 |
*) |
6760 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
6761 |
LD="${LD-ld} -64" |
6762 |
fi |
6763 |
;; |
6764 |
esac |
6765 |
;; |
6766 |
esac |
6767 |
fi |
6768 |
rm -rf conftest* |
6769 |
;; |
6770 |
esac |
6771 |
|
6772 |
need_locks=$enable_libtool_lock |
6773 |
|
6774 |
if test -n "$ac_tool_prefix"; then |
6775 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
6776 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
6777 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6778 |
$as_echo_n "checking for $ac_word... " >&6; } |
6779 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
6780 |
$as_echo_n "(cached) " >&6 |
6781 |
else |
6782 |
if test -n "$MANIFEST_TOOL"; then |
6783 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
6784 |
else |
6785 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6786 |
for as_dir in $PATH |
6787 |
do |
6788 |
IFS=$as_save_IFS |
6789 |
test -z "$as_dir" && as_dir=. |
6790 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6791 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6792 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
6793 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6794 |
break 2 |
6795 |
fi |
6796 |
done |
6797 |
done |
6798 |
IFS=$as_save_IFS |
6799 |
|
6800 |
fi |
6801 |
fi |
6802 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
6803 |
if test -n "$MANIFEST_TOOL"; then |
6804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
6805 |
$as_echo "$MANIFEST_TOOL" >&6; } |
6806 |
else |
6807 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6808 |
$as_echo "no" >&6; } |
6809 |
fi |
6810 |
|
6811 |
|
6812 |
fi |
6813 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
6814 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
6815 |
# Extract the first word of "mt", so it can be a program name with args. |
6816 |
set dummy mt; ac_word=$2 |
6817 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6818 |
$as_echo_n "checking for $ac_word... " >&6; } |
6819 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
6820 |
$as_echo_n "(cached) " >&6 |
6821 |
else |
6822 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6823 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
6824 |
else |
6825 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6826 |
for as_dir in $PATH |
6827 |
do |
6828 |
IFS=$as_save_IFS |
6829 |
test -z "$as_dir" && as_dir=. |
6830 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6831 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6832 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
6833 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6834 |
break 2 |
6835 |
fi |
6836 |
done |
6837 |
done |
6838 |
IFS=$as_save_IFS |
6839 |
|
6840 |
fi |
6841 |
fi |
6842 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
6843 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
6845 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
6846 |
else |
6847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6848 |
$as_echo "no" >&6; } |
6849 |
fi |
6850 |
|
6851 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
6852 |
MANIFEST_TOOL=":" |
6853 |
else |
6854 |
case $cross_compiling:$ac_tool_warned in |
6855 |
yes:) |
6856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6857 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6858 |
ac_tool_warned=yes ;; |
6859 |
esac |
6860 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
6861 |
fi |
6862 |
else |
6863 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
6864 |
fi |
6865 |
|
6866 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
6867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
6868 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
6869 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
6870 |
$as_echo_n "(cached) " >&6 |
6871 |
else |
6872 |
lt_cv_path_mainfest_tool=no |
6873 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
6874 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
6875 |
cat conftest.err >&5 |
6876 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
6877 |
lt_cv_path_mainfest_tool=yes |
6878 |
fi |
6879 |
rm -f conftest* |
6880 |
fi |
6881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
6882 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
6883 |
if test yes != "$lt_cv_path_mainfest_tool"; then |
6884 |
MANIFEST_TOOL=: |
6885 |
fi |
6886 |
|
6887 |
|
6888 |
|
6889 |
|
6890 |
|
6891 |
|
6892 |
case $host_os in |
6893 |
rhapsody* | darwin*) |
6894 |
if test -n "$ac_tool_prefix"; then |
6895 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
6896 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
6897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6898 |
$as_echo_n "checking for $ac_word... " >&6; } |
6899 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
6900 |
$as_echo_n "(cached) " >&6 |
6901 |
else |
6902 |
if test -n "$DSYMUTIL"; then |
6903 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
6904 |
else |
6905 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6906 |
for as_dir in $PATH |
6907 |
do |
6908 |
IFS=$as_save_IFS |
6909 |
test -z "$as_dir" && as_dir=. |
6910 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6911 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6912 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
6913 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6914 |
break 2 |
6915 |
fi |
6916 |
done |
6917 |
done |
6918 |
IFS=$as_save_IFS |
6919 |
|
6920 |
fi |
6921 |
fi |
6922 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6923 |
if test -n "$DSYMUTIL"; then |
6924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6925 |
$as_echo "$DSYMUTIL" >&6; } |
6926 |
else |
6927 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6928 |
$as_echo "no" >&6; } |
6929 |
fi |
6930 |
|
6931 |
|
6932 |
fi |
6933 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
6934 |
ac_ct_DSYMUTIL=$DSYMUTIL |
6935 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
6936 |
set dummy dsymutil; ac_word=$2 |
6937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6938 |
$as_echo_n "checking for $ac_word... " >&6; } |
6939 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
6940 |
$as_echo_n "(cached) " >&6 |
6941 |
else |
6942 |
if test -n "$ac_ct_DSYMUTIL"; then |
6943 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
6944 |
else |
6945 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6946 |
for as_dir in $PATH |
6947 |
do |
6948 |
IFS=$as_save_IFS |
6949 |
test -z "$as_dir" && as_dir=. |
6950 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6951 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6952 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
6953 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6954 |
break 2 |
6955 |
fi |
6956 |
done |
6957 |
done |
6958 |
IFS=$as_save_IFS |
6959 |
|
6960 |
fi |
6961 |
fi |
6962 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6963 |
if test -n "$ac_ct_DSYMUTIL"; then |
6964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6965 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
6966 |
else |
6967 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6968 |
$as_echo "no" >&6; } |
6969 |
fi |
6970 |
|
6971 |
if test "x$ac_ct_DSYMUTIL" = x; then |
6972 |
DSYMUTIL=":" |
6973 |
else |
6974 |
case $cross_compiling:$ac_tool_warned in |
6975 |
yes:) |
6976 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6977 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6978 |
ac_tool_warned=yes ;; |
6979 |
esac |
6980 |
DSYMUTIL=$ac_ct_DSYMUTIL |
6981 |
fi |
6982 |
else |
6983 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
6984 |
fi |
6985 |
|
6986 |
if test -n "$ac_tool_prefix"; then |
6987 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
6988 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
6989 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6990 |
$as_echo_n "checking for $ac_word... " >&6; } |
6991 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
6992 |
$as_echo_n "(cached) " >&6 |
6993 |
else |
6994 |
if test -n "$NMEDIT"; then |
6995 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
6996 |
else |
6997 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6998 |
for as_dir in $PATH |
6999 |
do |
7000 |
IFS=$as_save_IFS |
7001 |
test -z "$as_dir" && as_dir=. |
7002 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7003 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7004 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7005 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7006 |
break 2 |
7007 |
fi |
7008 |
done |
7009 |
done |
7010 |
IFS=$as_save_IFS |
7011 |
|
7012 |
fi |
7013 |
fi |
7014 |
NMEDIT=$ac_cv_prog_NMEDIT |
7015 |
if test -n "$NMEDIT"; then |
7016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7017 |
$as_echo "$NMEDIT" >&6; } |
7018 |
else |
7019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7020 |
$as_echo "no" >&6; } |
7021 |
fi |
7022 |
|
7023 |
|
7024 |
fi |
7025 |
if test -z "$ac_cv_prog_NMEDIT"; then |
7026 |
ac_ct_NMEDIT=$NMEDIT |
7027 |
# Extract the first word of "nmedit", so it can be a program name with args. |
7028 |
set dummy nmedit; ac_word=$2 |
7029 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7030 |
$as_echo_n "checking for $ac_word... " >&6; } |
7031 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
7032 |
$as_echo_n "(cached) " >&6 |
7033 |
else |
7034 |
if test -n "$ac_ct_NMEDIT"; then |
7035 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
7036 |
else |
7037 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7038 |
for as_dir in $PATH |
7039 |
do |
7040 |
IFS=$as_save_IFS |
7041 |
test -z "$as_dir" && as_dir=. |
7042 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7043 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7044 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7045 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7046 |
break 2 |
7047 |
fi |
7048 |
done |
7049 |
done |
7050 |
IFS=$as_save_IFS |
7051 |
|
7052 |
fi |
7053 |
fi |
7054 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7055 |
if test -n "$ac_ct_NMEDIT"; then |
7056 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7057 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
7058 |
else |
7059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7060 |
$as_echo "no" >&6; } |
7061 |
fi |
7062 |
|
7063 |
if test "x$ac_ct_NMEDIT" = x; then |
7064 |
NMEDIT=":" |
7065 |
else |
7066 |
case $cross_compiling:$ac_tool_warned in |
7067 |
yes:) |
7068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7069 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7070 |
ac_tool_warned=yes ;; |
7071 |
esac |
7072 |
NMEDIT=$ac_ct_NMEDIT |
7073 |
fi |
7074 |
else |
7075 |
NMEDIT="$ac_cv_prog_NMEDIT" |
7076 |
fi |
7077 |
|
7078 |
if test -n "$ac_tool_prefix"; then |
7079 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7080 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
7081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7082 |
$as_echo_n "checking for $ac_word... " >&6; } |
7083 |
if ${ac_cv_prog_LIPO+:} false; then : |
7084 |
$as_echo_n "(cached) " >&6 |
7085 |
else |
7086 |
if test -n "$LIPO"; then |
7087 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
7088 |
else |
7089 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7090 |
for as_dir in $PATH |
7091 |
do |
7092 |
IFS=$as_save_IFS |
7093 |
test -z "$as_dir" && as_dir=. |
7094 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7095 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7096 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7097 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7098 |
break 2 |
7099 |
fi |
7100 |
done |
7101 |
done |
7102 |
IFS=$as_save_IFS |
7103 |
|
7104 |
fi |
7105 |
fi |
7106 |
LIPO=$ac_cv_prog_LIPO |
7107 |
if test -n "$LIPO"; then |
7108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7109 |
$as_echo "$LIPO" >&6; } |
7110 |
else |
7111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7112 |
$as_echo "no" >&6; } |
7113 |
fi |
7114 |
|
7115 |
|
7116 |
fi |
7117 |
if test -z "$ac_cv_prog_LIPO"; then |
7118 |
ac_ct_LIPO=$LIPO |
7119 |
# Extract the first word of "lipo", so it can be a program name with args. |
7120 |
set dummy lipo; ac_word=$2 |
7121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7122 |
$as_echo_n "checking for $ac_word... " >&6; } |
7123 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
7124 |
$as_echo_n "(cached) " >&6 |
7125 |
else |
7126 |
if test -n "$ac_ct_LIPO"; then |
7127 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
7128 |
else |
7129 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7130 |
for as_dir in $PATH |
7131 |
do |
7132 |
IFS=$as_save_IFS |
7133 |
test -z "$as_dir" && as_dir=. |
7134 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7135 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7136 |
ac_cv_prog_ac_ct_LIPO="lipo" |
7137 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7138 |
break 2 |
7139 |
fi |
7140 |
done |
7141 |
done |
7142 |
IFS=$as_save_IFS |
7143 |
|
7144 |
fi |
7145 |
fi |
7146 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7147 |
if test -n "$ac_ct_LIPO"; then |
7148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7149 |
$as_echo "$ac_ct_LIPO" >&6; } |
7150 |
else |
7151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7152 |
$as_echo "no" >&6; } |
7153 |
fi |
7154 |
|
7155 |
if test "x$ac_ct_LIPO" = x; then |
7156 |
LIPO=":" |
7157 |
else |
7158 |
case $cross_compiling:$ac_tool_warned in |
7159 |
yes:) |
7160 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7161 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7162 |
ac_tool_warned=yes ;; |
7163 |
esac |
7164 |
LIPO=$ac_ct_LIPO |
7165 |
fi |
7166 |
else |
7167 |
LIPO="$ac_cv_prog_LIPO" |
7168 |
fi |
7169 |
|
7170 |
if test -n "$ac_tool_prefix"; then |
7171 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7172 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
7173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7174 |
$as_echo_n "checking for $ac_word... " >&6; } |
7175 |
if ${ac_cv_prog_OTOOL+:} false; then : |
7176 |
$as_echo_n "(cached) " >&6 |
7177 |
else |
7178 |
if test -n "$OTOOL"; then |
7179 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
7180 |
else |
7181 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7182 |
for as_dir in $PATH |
7183 |
do |
7184 |
IFS=$as_save_IFS |
7185 |
test -z "$as_dir" && as_dir=. |
7186 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7187 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7188 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7189 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7190 |
break 2 |
7191 |
fi |
7192 |
done |
7193 |
done |
7194 |
IFS=$as_save_IFS |
7195 |
|
7196 |
fi |
7197 |
fi |
7198 |
OTOOL=$ac_cv_prog_OTOOL |
7199 |
if test -n "$OTOOL"; then |
7200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7201 |
$as_echo "$OTOOL" >&6; } |
7202 |
else |
7203 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7204 |
$as_echo "no" >&6; } |
7205 |
fi |
7206 |
|
7207 |
|
7208 |
fi |
7209 |
if test -z "$ac_cv_prog_OTOOL"; then |
7210 |
ac_ct_OTOOL=$OTOOL |
7211 |
# Extract the first word of "otool", so it can be a program name with args. |
7212 |
set dummy otool; ac_word=$2 |
7213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7214 |
$as_echo_n "checking for $ac_word... " >&6; } |
7215 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
7216 |
$as_echo_n "(cached) " >&6 |
7217 |
else |
7218 |
if test -n "$ac_ct_OTOOL"; then |
7219 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
7220 |
else |
7221 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7222 |
for as_dir in $PATH |
7223 |
do |
7224 |
IFS=$as_save_IFS |
7225 |
test -z "$as_dir" && as_dir=. |
7226 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7227 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7228 |
ac_cv_prog_ac_ct_OTOOL="otool" |
7229 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7230 |
break 2 |
7231 |
fi |
7232 |
done |
7233 |
done |
7234 |
IFS=$as_save_IFS |
7235 |
|
7236 |
fi |
7237 |
fi |
7238 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7239 |
if test -n "$ac_ct_OTOOL"; then |
7240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7241 |
$as_echo "$ac_ct_OTOOL" >&6; } |
7242 |
else |
7243 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7244 |
$as_echo "no" >&6; } |
7245 |
fi |
7246 |
|
7247 |
if test "x$ac_ct_OTOOL" = x; then |
7248 |
OTOOL=":" |
7249 |
else |
7250 |
case $cross_compiling:$ac_tool_warned in |
7251 |
yes:) |
7252 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7253 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7254 |
ac_tool_warned=yes ;; |
7255 |
esac |
7256 |
OTOOL=$ac_ct_OTOOL |
7257 |
fi |
7258 |
else |
7259 |
OTOOL="$ac_cv_prog_OTOOL" |
7260 |
fi |
7261 |
|
7262 |
if test -n "$ac_tool_prefix"; then |
7263 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7264 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
7265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7266 |
$as_echo_n "checking for $ac_word... " >&6; } |
7267 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
7268 |
$as_echo_n "(cached) " >&6 |
7269 |
else |
7270 |
if test -n "$OTOOL64"; then |
7271 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
7272 |
else |
7273 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7274 |
for as_dir in $PATH |
7275 |
do |
7276 |
IFS=$as_save_IFS |
7277 |
test -z "$as_dir" && as_dir=. |
7278 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7279 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7280 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7281 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7282 |
break 2 |
7283 |
fi |
7284 |
done |
7285 |
done |
7286 |
IFS=$as_save_IFS |
7287 |
|
7288 |
fi |
7289 |
fi |
7290 |
OTOOL64=$ac_cv_prog_OTOOL64 |
7291 |
if test -n "$OTOOL64"; then |
7292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7293 |
$as_echo "$OTOOL64" >&6; } |
7294 |
else |
7295 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7296 |
$as_echo "no" >&6; } |
7297 |
fi |
7298 |
|
7299 |
|
7300 |
fi |
7301 |
if test -z "$ac_cv_prog_OTOOL64"; then |
7302 |
ac_ct_OTOOL64=$OTOOL64 |
7303 |
# Extract the first word of "otool64", so it can be a program name with args. |
7304 |
set dummy otool64; ac_word=$2 |
7305 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7306 |
$as_echo_n "checking for $ac_word... " >&6; } |
7307 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
7308 |
$as_echo_n "(cached) " >&6 |
7309 |
else |
7310 |
if test -n "$ac_ct_OTOOL64"; then |
7311 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
7312 |
else |
7313 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7314 |
for as_dir in $PATH |
7315 |
do |
7316 |
IFS=$as_save_IFS |
7317 |
test -z "$as_dir" && as_dir=. |
7318 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7319 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7320 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
7321 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7322 |
break 2 |
7323 |
fi |
7324 |
done |
7325 |
done |
7326 |
IFS=$as_save_IFS |
7327 |
|
7328 |
fi |
7329 |
fi |
7330 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7331 |
if test -n "$ac_ct_OTOOL64"; then |
7332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7333 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
7334 |
else |
7335 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7336 |
$as_echo "no" >&6; } |
7337 |
fi |
7338 |
|
7339 |
if test "x$ac_ct_OTOOL64" = x; then |
7340 |
OTOOL64=":" |
7341 |
else |
7342 |
case $cross_compiling:$ac_tool_warned in |
7343 |
yes:) |
7344 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7345 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7346 |
ac_tool_warned=yes ;; |
7347 |
esac |
7348 |
OTOOL64=$ac_ct_OTOOL64 |
7349 |
fi |
7350 |
else |
7351 |
OTOOL64="$ac_cv_prog_OTOOL64" |
7352 |
fi |
7353 |
|
7354 |
|
7355 |
|
7356 |
|
7357 |
|
7358 |
|
7359 |
|
7360 |
|
7361 |
|
7362 |
|
7363 |
|
7364 |
|
7365 |
|
7366 |
|
7367 |
|
7368 |
|
7369 |
|
7370 |
|
7371 |
|
7372 |
|
7373 |
|
7374 |
|
7375 |
|
7376 |
|
7377 |
|
7378 |
|
7379 |
|
7380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7381 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
7382 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
7383 |
$as_echo_n "(cached) " >&6 |
7384 |
else |
7385 |
lt_cv_apple_cc_single_mod=no |
7386 |
if test -z "$LT_MULTI_MODULE"; then |
7387 |
# By default we will add the -single_module flag. You can override |
7388 |
# by either setting the environment variable LT_MULTI_MODULE |
7389 |
# non-empty at configure time, or by adding -multi_module to the |
7390 |
# link flags. |
7391 |
rm -rf libconftest.dylib* |
7392 |
echo "int foo(void){return 1;}" > conftest.c |
7393 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7394 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
7395 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7396 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7397 |
_lt_result=$? |
7398 |
# If there is a non-empty error log, and "single_module" |
7399 |
# appears in it, assume the flag caused a linker warning |
7400 |
if test -s conftest.err && $GREP single_module conftest.err; then |
7401 |
cat conftest.err >&5 |
7402 |
# Otherwise, if the output was created with a 0 exit code from |
7403 |
# the compiler, it worked. |
7404 |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
7405 |
lt_cv_apple_cc_single_mod=yes |
7406 |
else |
7407 |
cat conftest.err >&5 |
7408 |
fi |
7409 |
rm -rf libconftest.dylib* |
7410 |
rm -f conftest.* |
7411 |
fi |
7412 |
fi |
7413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7414 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7415 |
|
7416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7417 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7418 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7419 |
$as_echo_n "(cached) " >&6 |
7420 |
else |
7421 |
lt_cv_ld_exported_symbols_list=no |
7422 |
save_LDFLAGS=$LDFLAGS |
7423 |
echo "_main" > conftest.sym |
7424 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7425 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7426 |
/* end confdefs.h. */ |
7427 |
|
7428 |
int |
7429 |
main () |
7430 |
{ |
7431 |
|
7432 |
; |
7433 |
return 0; |
7434 |
} |
7435 |
_ACEOF |
7436 |
if ac_fn_c_try_link "$LINENO"; then : |
7437 |
lt_cv_ld_exported_symbols_list=yes |
7438 |
else |
7439 |
lt_cv_ld_exported_symbols_list=no |
7440 |
fi |
7441 |
rm -f core conftest.err conftest.$ac_objext \ |
7442 |
conftest$ac_exeext conftest.$ac_ext |
7443 |
LDFLAGS=$save_LDFLAGS |
7444 |
|
7445 |
fi |
7446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7447 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7448 |
|
7449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7450 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
7451 |
if ${lt_cv_ld_force_load+:} false; then : |
7452 |
$as_echo_n "(cached) " >&6 |
7453 |
else |
7454 |
lt_cv_ld_force_load=no |
7455 |
cat > conftest.c << _LT_EOF |
7456 |
int forced_loaded() { return 2;} |
7457 |
_LT_EOF |
7458 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
7459 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
7460 |
echo "$AR cru libconftest.a conftest.o" >&5 |
7461 |
$AR cru libconftest.a conftest.o 2>&5 |
7462 |
echo "$RANLIB libconftest.a" >&5 |
7463 |
$RANLIB libconftest.a 2>&5 |
7464 |
cat > conftest.c << _LT_EOF |
7465 |
int main() { return 0;} |
7466 |
_LT_EOF |
7467 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
7468 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
7469 |
_lt_result=$? |
7470 |
if test -s conftest.err && $GREP force_load conftest.err; then |
7471 |
cat conftest.err >&5 |
7472 |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
7473 |
lt_cv_ld_force_load=yes |
7474 |
else |
7475 |
cat conftest.err >&5 |
7476 |
fi |
7477 |
rm -f conftest.err libconftest.a conftest conftest.c |
7478 |
rm -rf conftest.dSYM |
7479 |
|
7480 |
fi |
7481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7482 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
7483 |
case $host_os in |
7484 |
rhapsody* | darwin1.[012]) |
7485 |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
7486 |
darwin1.*) |
7487 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7488 |
darwin*) # darwin 5.x on |
7489 |
# if running on 10.5 or later, the deployment target defaults |
7490 |
# to the OS version, if on x86, and 10.4, the deployment |
7491 |
# target defaults to 10.4. Don't you love it? |
7492 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7493 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7494 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7495 |
10.[012][,.]*) |
7496 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7497 |
10.*) |
7498 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7499 |
esac |
7500 |
;; |
7501 |
esac |
7502 |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
7503 |
_lt_dar_single_mod='$single_module' |
7504 |
fi |
7505 |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7506 |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
7507 |
else |
7508 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
7509 |
fi |
7510 |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
7511 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
7512 |
else |
7513 |
_lt_dsymutil= |
7514 |
fi |
7515 |
;; |
7516 |
esac |
7517 |
|
7518 |
ac_ext=c |
7519 |
ac_cpp='$CPP $CPPFLAGS' |
7520 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7521 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7522 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7524 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
7525 |
# On Suns, sometimes $CPP names a directory. |
7526 |
if test -n "$CPP" && test -d "$CPP"; then |
7527 |
CPP= |
7528 |
fi |
7529 |
if test -z "$CPP"; then |
7530 |
if ${ac_cv_prog_CPP+:} false; then : |
7531 |
$as_echo_n "(cached) " >&6 |
7532 |
else |
7533 |
# Double quotes because CPP needs to be expanded |
7534 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
7535 |
do |
7536 |
ac_preproc_ok=false |
7537 |
for ac_c_preproc_warn_flag in '' yes |
7538 |
do |
7539 |
# Use a header file that comes with gcc, so configuring glibc |
7540 |
# with a fresh cross-compiler works. |
7541 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7542 |
# <limits.h> exists even on freestanding compilers. |
7543 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7544 |
# not just through cpp. "Syntax error" is here to catch this case. |
7545 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7546 |
/* end confdefs.h. */ |
7547 |
#ifdef __STDC__ |
7548 |
# include <limits.h> |
7549 |
#else |
7550 |
# include <assert.h> |
7551 |
#endif |
7552 |
Syntax error |
7553 |
_ACEOF |
7554 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7555 |
|
7556 |
else |
7557 |
# Broken: fails on valid input. |
7558 |
continue |
7559 |
fi |
7560 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7561 |
|
7562 |
# OK, works on sane cases. Now check whether nonexistent headers |
7563 |
# can be detected and how. |
7564 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7565 |
/* end confdefs.h. */ |
7566 |
#include <ac_nonexistent.h> |
7567 |
_ACEOF |
7568 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7569 |
# Broken: success on invalid input. |
7570 |
continue |
7571 |
else |
7572 |
# Passes both tests. |
7573 |
ac_preproc_ok=: |
7574 |
break |
7575 |
fi |
7576 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7577 |
|
7578 |
done |
7579 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7580 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7581 |
if $ac_preproc_ok; then : |
7582 |
break |
7583 |
fi |
7584 |
|
7585 |
done |
7586 |
ac_cv_prog_CPP=$CPP |
7587 |
|
7588 |
fi |
7589 |
CPP=$ac_cv_prog_CPP |
7590 |
else |
7591 |
ac_cv_prog_CPP=$CPP |
7592 |
fi |
7593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7594 |
$as_echo "$CPP" >&6; } |
7595 |
ac_preproc_ok=false |
7596 |
for ac_c_preproc_warn_flag in '' yes |
7597 |
do |
7598 |
# Use a header file that comes with gcc, so configuring glibc |
7599 |
# with a fresh cross-compiler works. |
7600 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7601 |
# <limits.h> exists even on freestanding compilers. |
7602 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7603 |
# not just through cpp. "Syntax error" is here to catch this case. |
7604 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7605 |
/* end confdefs.h. */ |
7606 |
#ifdef __STDC__ |
7607 |
# include <limits.h> |
7608 |
#else |
7609 |
# include <assert.h> |
7610 |
#endif |
7611 |
Syntax error |
7612 |
_ACEOF |
7613 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7614 |
|
7615 |
else |
7616 |
# Broken: fails on valid input. |
7617 |
continue |
7618 |
fi |
7619 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7620 |
|
7621 |
# OK, works on sane cases. Now check whether nonexistent headers |
7622 |
# can be detected and how. |
7623 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7624 |
/* end confdefs.h. */ |
7625 |
#include <ac_nonexistent.h> |
7626 |
_ACEOF |
7627 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7628 |
# Broken: success on invalid input. |
7629 |
continue |
7630 |
else |
7631 |
# Passes both tests. |
7632 |
ac_preproc_ok=: |
7633 |
break |
7634 |
fi |
7635 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7636 |
|
7637 |
done |
7638 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7639 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7640 |
if $ac_preproc_ok; then : |
7641 |
|
7642 |
else |
7643 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7644 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7645 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7646 |
See \`config.log' for more details" "$LINENO" 5; } |
7647 |
fi |
7648 |
|
7649 |
ac_ext=c |
7650 |
ac_cpp='$CPP $CPPFLAGS' |
7651 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7652 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7653 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7654 |
|
7655 |
|
7656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7657 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7658 |
if ${ac_cv_header_stdc+:} false; then : |
7659 |
$as_echo_n "(cached) " >&6 |
7660 |
else |
7661 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7662 |
/* end confdefs.h. */ |
7663 |
#include <stdlib.h> |
7664 |
#include <stdarg.h> |
7665 |
#include <string.h> |
7666 |
#include <float.h> |
7667 |
|
7668 |
int |
7669 |
main () |
7670 |
{ |
7671 |
|
7672 |
; |
7673 |
return 0; |
7674 |
} |
7675 |
_ACEOF |
7676 |
if ac_fn_c_try_compile "$LINENO"; then : |
7677 |
ac_cv_header_stdc=yes |
7678 |
else |
7679 |
ac_cv_header_stdc=no |
7680 |
fi |
7681 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7682 |
|
7683 |
if test $ac_cv_header_stdc = yes; then |
7684 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7685 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7686 |
/* end confdefs.h. */ |
7687 |
#include <string.h> |
7688 |
|
7689 |
_ACEOF |
7690 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7691 |
$EGREP "memchr" >/dev/null 2>&1; then : |
7692 |
|
7693 |
else |
7694 |
ac_cv_header_stdc=no |
7695 |
fi |
7696 |
rm -f conftest* |
7697 |
|
7698 |
fi |
7699 |
|
7700 |
if test $ac_cv_header_stdc = yes; then |
7701 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7702 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7703 |
/* end confdefs.h. */ |
7704 |
#include <stdlib.h> |
7705 |
|
7706 |
_ACEOF |
7707 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7708 |
$EGREP "free" >/dev/null 2>&1; then : |
7709 |
|
7710 |
else |
7711 |
ac_cv_header_stdc=no |
7712 |
fi |
7713 |
rm -f conftest* |
7714 |
|
7715 |
fi |
7716 |
|
7717 |
if test $ac_cv_header_stdc = yes; then |
7718 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7719 |
if test "$cross_compiling" = yes; then : |
7720 |
: |
7721 |
else |
7722 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7723 |
/* end confdefs.h. */ |
7724 |
#include <ctype.h> |
7725 |
#include <stdlib.h> |
7726 |
#if ((' ' & 0x0FF) == 0x020) |
7727 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7728 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7729 |
#else |
7730 |
# define ISLOWER(c) \ |
7731 |
(('a' <= (c) && (c) <= 'i') \ |
7732 |
|| ('j' <= (c) && (c) <= 'r') \ |
7733 |
|| ('s' <= (c) && (c) <= 'z')) |
7734 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7735 |
#endif |
7736 |
|
7737 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7738 |
int |
7739 |
main () |
7740 |
{ |
7741 |
int i; |
7742 |
for (i = 0; i < 256; i++) |
7743 |
if (XOR (islower (i), ISLOWER (i)) |
7744 |
|| toupper (i) != TOUPPER (i)) |
7745 |
return 2; |
7746 |
return 0; |
7747 |
} |
7748 |
_ACEOF |
7749 |
if ac_fn_c_try_run "$LINENO"; then : |
7750 |
|
7751 |
else |
7752 |
ac_cv_header_stdc=no |
7753 |
fi |
7754 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7755 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7756 |
fi |
7757 |
|
7758 |
fi |
7759 |
fi |
7760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7761 |
$as_echo "$ac_cv_header_stdc" >&6; } |
7762 |
if test $ac_cv_header_stdc = yes; then |
7763 |
|
7764 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7765 |
|
7766 |
fi |
7767 |
|
7768 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7769 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7770 |
inttypes.h stdint.h unistd.h |
7771 |
do : |
7772 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7773 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
7774 |
" |
7775 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7776 |
cat >>confdefs.h <<_ACEOF |
7777 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7778 |
_ACEOF |
7779 |
|
7780 |
fi |
7781 |
|
7782 |
done |
7783 |
|
7784 |
|
7785 |
for ac_header in dlfcn.h |
7786 |
do : |
7787 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
7788 |
" |
7789 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7790 |
cat >>confdefs.h <<_ACEOF |
7791 |
#define HAVE_DLFCN_H 1 |
7792 |
_ACEOF |
7793 |
|
7794 |
fi |
7795 |
|
7796 |
done |
7797 |
|
7798 |
|
7799 |
|
7800 |
|
7801 |
|
7802 |
# Set options |
7803 |
|
7804 |
|
7805 |
|
7806 |
enable_dlopen=no |
7807 |
|
7808 |
|
7809 |
enable_win32_dll=no |
7810 |
|
7811 |
|
7812 |
# Check whether --enable-shared was given. |
7813 |
if test "${enable_shared+set}" = set; then : |
7814 |
enableval=$enable_shared; p=${PACKAGE-default} |
7815 |
case $enableval in |
7816 |
yes) enable_shared=yes ;; |
7817 |
no) enable_shared=no ;; |
7818 |
*) |
7819 |
enable_shared=no |
7820 |
# Look at the argument we got. We use all the common list separators. |
7821 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7822 |
for pkg in $enableval; do |
7823 |
IFS=$lt_save_ifs |
7824 |
if test "X$pkg" = "X$p"; then |
7825 |
enable_shared=yes |
7826 |
fi |
7827 |
done |
7828 |
IFS=$lt_save_ifs |
7829 |
;; |
7830 |
esac |
7831 |
else |
7832 |
enable_shared=yes |
7833 |
fi |
7834 |
|
7835 |
|
7836 |
|
7837 |
|
7838 |
|
7839 |
|
7840 |
|
7841 |
|
7842 |
|
7843 |
# Check whether --enable-static was given. |
7844 |
if test "${enable_static+set}" = set; then : |
7845 |
enableval=$enable_static; p=${PACKAGE-default} |
7846 |
case $enableval in |
7847 |
yes) enable_static=yes ;; |
7848 |
no) enable_static=no ;; |
7849 |
*) |
7850 |
enable_static=no |
7851 |
# Look at the argument we got. We use all the common list separators. |
7852 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7853 |
for pkg in $enableval; do |
7854 |
IFS=$lt_save_ifs |
7855 |
if test "X$pkg" = "X$p"; then |
7856 |
enable_static=yes |
7857 |
fi |
7858 |
done |
7859 |
IFS=$lt_save_ifs |
7860 |
;; |
7861 |
esac |
7862 |
else |
7863 |
enable_static=yes |
7864 |
fi |
7865 |
|
7866 |
|
7867 |
|
7868 |
|
7869 |
|
7870 |
|
7871 |
|
7872 |
|
7873 |
|
7874 |
|
7875 |
# Check whether --with-pic was given. |
7876 |
if test "${with_pic+set}" = set; then : |
7877 |
withval=$with_pic; lt_p=${PACKAGE-default} |
7878 |
case $withval in |
7879 |
yes|no) pic_mode=$withval ;; |
7880 |
*) |
7881 |
pic_mode=default |
7882 |
# Look at the argument we got. We use all the common list separators. |
7883 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7884 |
for lt_pkg in $withval; do |
7885 |
IFS=$lt_save_ifs |
7886 |
if test "X$lt_pkg" = "X$lt_p"; then |
7887 |
pic_mode=yes |
7888 |
fi |
7889 |
done |
7890 |
IFS=$lt_save_ifs |
7891 |
;; |
7892 |
esac |
7893 |
else |
7894 |
pic_mode=default |
7895 |
fi |
7896 |
|
7897 |
|
7898 |
|
7899 |
|
7900 |
|
7901 |
|
7902 |
|
7903 |
|
7904 |
# Check whether --enable-fast-install was given. |
7905 |
if test "${enable_fast_install+set}" = set; then : |
7906 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
7907 |
case $enableval in |
7908 |
yes) enable_fast_install=yes ;; |
7909 |
no) enable_fast_install=no ;; |
7910 |
*) |
7911 |
enable_fast_install=no |
7912 |
# Look at the argument we got. We use all the common list separators. |
7913 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7914 |
for pkg in $enableval; do |
7915 |
IFS=$lt_save_ifs |
7916 |
if test "X$pkg" = "X$p"; then |
7917 |
enable_fast_install=yes |
7918 |
fi |
7919 |
done |
7920 |
IFS=$lt_save_ifs |
7921 |
;; |
7922 |
esac |
7923 |
else |
7924 |
enable_fast_install=yes |
7925 |
fi |
7926 |
|
7927 |
|
7928 |
|
7929 |
|
7930 |
|
7931 |
|
7932 |
|
7933 |
|
7934 |
shared_archive_member_spec= |
7935 |
case $host,$enable_shared in |
7936 |
power*-*-aix[5-9]*,yes) |
7937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
7938 |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
7939 |
|
7940 |
# Check whether --with-aix-soname was given. |
7941 |
if test "${with_aix_soname+set}" = set; then : |
7942 |
withval=$with_aix_soname; case $withval in |
7943 |
aix|svr4|both) |
7944 |
;; |
7945 |
*) |
7946 |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
7947 |
;; |
7948 |
esac |
7949 |
lt_cv_with_aix_soname=$with_aix_soname |
7950 |
else |
7951 |
if ${lt_cv_with_aix_soname+:} false; then : |
7952 |
$as_echo_n "(cached) " >&6 |
7953 |
else |
7954 |
lt_cv_with_aix_soname=aix |
7955 |
fi |
7956 |
|
7957 |
with_aix_soname=$lt_cv_with_aix_soname |
7958 |
fi |
7959 |
|
7960 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
7961 |
$as_echo "$with_aix_soname" >&6; } |
7962 |
if test aix != "$with_aix_soname"; then |
7963 |
# For the AIX way of multilib, we name the shared archive member |
7964 |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
7965 |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
7966 |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
7967 |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
7968 |
if test 64 = "${OBJECT_MODE-32}"; then |
7969 |
shared_archive_member_spec=shr_64 |
7970 |
else |
7971 |
shared_archive_member_spec=shr |
7972 |
fi |
7973 |
fi |
7974 |
;; |
7975 |
*) |
7976 |
with_aix_soname=aix |
7977 |
;; |
7978 |
esac |
7979 |
|
7980 |
|
7981 |
|
7982 |
|
7983 |
|
7984 |
|
7985 |
|
7986 |
|
7987 |
|
7988 |
|
7989 |
# This can be used to rebuild libtool when needed |
7990 |
LIBTOOL_DEPS=$ltmain |
7991 |
|
7992 |
# Always use our own libtool. |
7993 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
7994 |
|
7995 |
|
7996 |
|
7997 |
|
7998 |
|
7999 |
|
8000 |
|
8001 |
|
8002 |
|
8003 |
|
8004 |
|
8005 |
|
8006 |
|
8007 |
|
8008 |
|
8009 |
|
8010 |
|
8011 |
|
8012 |
|
8013 |
|
8014 |
|
8015 |
|
8016 |
|
8017 |
|
8018 |
|
8019 |
|
8020 |
|
8021 |
|
8022 |
|
8023 |
|
8024 |
test -z "$LN_S" && LN_S="ln -s" |
8025 |
|
8026 |
|
8027 |
|
8028 |
|
8029 |
|
8030 |
|
8031 |
|
8032 |
|
8033 |
|
8034 |
|
8035 |
|
8036 |
|
8037 |
|
8038 |
|
8039 |
if test -n "${ZSH_VERSION+set}"; then |
8040 |
setopt NO_GLOB_SUBST |
8041 |
fi |
8042 |
|
8043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8044 |
$as_echo_n "checking for objdir... " >&6; } |
8045 |
if ${lt_cv_objdir+:} false; then : |
8046 |
$as_echo_n "(cached) " >&6 |
8047 |
else |
8048 |
rm -f .libs 2>/dev/null |
8049 |
mkdir .libs 2>/dev/null |
8050 |
if test -d .libs; then |
8051 |
lt_cv_objdir=.libs |
8052 |
else |
8053 |
# MS-DOS does not allow filenames that begin with a dot. |
8054 |
lt_cv_objdir=_libs |
8055 |
fi |
8056 |
rmdir .libs 2>/dev/null |
8057 |
fi |
8058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8059 |
$as_echo "$lt_cv_objdir" >&6; } |
8060 |
objdir=$lt_cv_objdir |
8061 |
|
8062 |
|
8063 |
|
8064 |
|
8065 |
|
8066 |
cat >>confdefs.h <<_ACEOF |
8067 |
#define LT_OBJDIR "$lt_cv_objdir/" |
8068 |
_ACEOF |
8069 |
|
8070 |
|
8071 |
|
8072 |
|
8073 |
case $host_os in |
8074 |
aix3*) |
8075 |
# AIX sometimes has problems with the GCC collect2 program. For some |
8076 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
8077 |
# vanish in a puff of smoke. |
8078 |
if test set != "${COLLECT_NAMES+set}"; then |
8079 |
COLLECT_NAMES= |
8080 |
export COLLECT_NAMES |
8081 |
fi |
8082 |
;; |
8083 |
esac |
8084 |
|
8085 |
# Global variables: |
8086 |
ofile=libtool |
8087 |
can_build_shared=yes |
8088 |
|
8089 |
# All known linkers require a '.a' archive for static linking (except MSVC, |
8090 |
# which needs '.lib'). |
8091 |
libext=a |
8092 |
|
8093 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
8094 |
|
8095 |
old_CC=$CC |
8096 |
old_CFLAGS=$CFLAGS |
8097 |
|
8098 |
# Set sane defaults for various variables |
8099 |
test -z "$CC" && CC=cc |
8100 |
test -z "$LTCC" && LTCC=$CC |
8101 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
8102 |
test -z "$LD" && LD=ld |
8103 |
test -z "$ac_objext" && ac_objext=o |
8104 |
|
8105 |
for cc_temp in $compiler""; do |
8106 |
case $cc_temp in |
8107 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8108 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8109 |
\-*) ;; |
8110 |
*) break;; |
8111 |
esac |
8112 |
done |
8113 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8114 |
|
8115 |
|
8116 |
# Only perform the check for file, if the check method requires it |
8117 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
8118 |
case $deplibs_check_method in |
8119 |
file_magic*) |
8120 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
8121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8122 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
8123 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8124 |
$as_echo_n "(cached) " >&6 |
8125 |
else |
8126 |
case $MAGIC_CMD in |
8127 |
[\\/*] | ?:[\\/]*) |
8128 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8129 |
;; |
8130 |
*) |
8131 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8132 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8133 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8134 |
for ac_dir in $ac_dummy; do |
8135 |
IFS=$lt_save_ifs |
8136 |
test -z "$ac_dir" && ac_dir=. |
8137 |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8138 |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
8139 |
if test -n "$file_magic_test_file"; then |
8140 |
case $deplibs_check_method in |
8141 |
"file_magic "*) |
8142 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8143 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8144 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8145 |
$EGREP "$file_magic_regex" > /dev/null; then |
8146 |
: |
8147 |
else |
8148 |
cat <<_LT_EOF 1>&2 |
8149 |
|
8150 |
*** Warning: the command libtool uses to detect shared libraries, |
8151 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8152 |
*** The result is that libtool may fail to recognize shared libraries |
8153 |
*** as such. This will affect the creation of libtool libraries that |
8154 |
*** depend on shared libraries, but programs linked with such libtool |
8155 |
*** libraries will work regardless of this problem. Nevertheless, you |
8156 |
*** may want to report the problem to your system manager and/or to |
8157 |
*** bug-libtool@gnu.org |
8158 |
|
8159 |
_LT_EOF |
8160 |
fi ;; |
8161 |
esac |
8162 |
fi |
8163 |
break |
8164 |
fi |
8165 |
done |
8166 |
IFS=$lt_save_ifs |
8167 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8168 |
;; |
8169 |
esac |
8170 |
fi |
8171 |
|
8172 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8173 |
if test -n "$MAGIC_CMD"; then |
8174 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8175 |
$as_echo "$MAGIC_CMD" >&6; } |
8176 |
else |
8177 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8178 |
$as_echo "no" >&6; } |
8179 |
fi |
8180 |
|
8181 |
|
8182 |
|
8183 |
|
8184 |
|
8185 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
8186 |
if test -n "$ac_tool_prefix"; then |
8187 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8188 |
$as_echo_n "checking for file... " >&6; } |
8189 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8190 |
$as_echo_n "(cached) " >&6 |
8191 |
else |
8192 |
case $MAGIC_CMD in |
8193 |
[\\/*] | ?:[\\/]*) |
8194 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8195 |
;; |
8196 |
*) |
8197 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8198 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8199 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8200 |
for ac_dir in $ac_dummy; do |
8201 |
IFS=$lt_save_ifs |
8202 |
test -z "$ac_dir" && ac_dir=. |
8203 |
if test -f "$ac_dir/file"; then |
8204 |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
8205 |
if test -n "$file_magic_test_file"; then |
8206 |
case $deplibs_check_method in |
8207 |
"file_magic "*) |
8208 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8209 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8210 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8211 |
$EGREP "$file_magic_regex" > /dev/null; then |
8212 |
: |
8213 |
else |
8214 |
cat <<_LT_EOF 1>&2 |
8215 |
|
8216 |
*** Warning: the command libtool uses to detect shared libraries, |
8217 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8218 |
*** The result is that libtool may fail to recognize shared libraries |
8219 |
*** as such. This will affect the creation of libtool libraries that |
8220 |
*** depend on shared libraries, but programs linked with such libtool |
8221 |
*** libraries will work regardless of this problem. Nevertheless, you |
8222 |
*** may want to report the problem to your system manager and/or to |
8223 |
*** bug-libtool@gnu.org |
8224 |
|
8225 |
_LT_EOF |
8226 |
fi ;; |
8227 |
esac |
8228 |
fi |
8229 |
break |
8230 |
fi |
8231 |
done |
8232 |
IFS=$lt_save_ifs |
8233 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8234 |
;; |
8235 |
esac |
8236 |
fi |
8237 |
|
8238 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8239 |
if test -n "$MAGIC_CMD"; then |
8240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8241 |
$as_echo "$MAGIC_CMD" >&6; } |
8242 |
else |
8243 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8244 |
$as_echo "no" >&6; } |
8245 |
fi |
8246 |
|
8247 |
|
8248 |
else |
8249 |
MAGIC_CMD=: |
8250 |
fi |
8251 |
fi |
8252 |
|
8253 |
fi |
8254 |
;; |
8255 |
esac |
8256 |
|
8257 |
# Use C for the default configuration in the libtool script |
8258 |
|
8259 |
lt_save_CC=$CC |
8260 |
ac_ext=c |
8261 |
ac_cpp='$CPP $CPPFLAGS' |
8262 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8263 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8264 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8265 |
|
8266 |
|
8267 |
# Source file extension for C test sources. |
8268 |
ac_ext=c |
8269 |
|
8270 |
# Object file extension for compiled C test sources. |
8271 |
objext=o |
8272 |
objext=$objext |
8273 |
|
8274 |
# Code to be used in simple compile tests |
8275 |
lt_simple_compile_test_code="int some_variable = 0;" |
8276 |
|
8277 |
# Code to be used in simple link tests |
8278 |
lt_simple_link_test_code='int main(){return(0);}' |
8279 |
|
8280 |
|
8281 |
|
8282 |
|
8283 |
|
8284 |
|
8285 |
|
8286 |
# If no C compiler was specified, use CC. |
8287 |
LTCC=${LTCC-"$CC"} |
8288 |
|
8289 |
# If no C compiler flags were specified, use CFLAGS. |
8290 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
8291 |
|
8292 |
# Allow CC to be a program name with arguments. |
8293 |
compiler=$CC |
8294 |
|
8295 |
# Save the default compiler, since it gets overwritten when the other |
8296 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
8297 |
compiler_DEFAULT=$CC |
8298 |
|
8299 |
# save warnings/boilerplate of simple test code |
8300 |
ac_outfile=conftest.$ac_objext |
8301 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
8302 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8303 |
_lt_compiler_boilerplate=`cat conftest.err` |
8304 |
$RM conftest* |
8305 |
|
8306 |
ac_outfile=conftest.$ac_objext |
8307 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8308 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8309 |
_lt_linker_boilerplate=`cat conftest.err` |
8310 |
$RM -r conftest* |
8311 |
|
8312 |
|
8313 |
if test -n "$compiler"; then |
8314 |
|
8315 |
lt_prog_compiler_no_builtin_flag= |
8316 |
|
8317 |
if test yes = "$GCC"; then |
8318 |
case $cc_basename in |
8319 |
nvcc*) |
8320 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
8321 |
*) |
8322 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
8323 |
esac |
8324 |
|
8325 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8326 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8327 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8328 |
$as_echo_n "(cached) " >&6 |
8329 |
else |
8330 |
lt_cv_prog_compiler_rtti_exceptions=no |
8331 |
ac_outfile=conftest.$ac_objext |
8332 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8333 |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8334 |
# Insert the option either (1) after the last *FLAGS variable, or |
8335 |
# (2) before a word containing "conftest.", or (3) at the end. |
8336 |
# Note that $ac_compile itself does not contain backslashes and begins |
8337 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8338 |
# The option is referenced via a variable to avoid confusing sed. |
8339 |
lt_compile=`echo "$ac_compile" | $SED \ |
8340 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8341 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8342 |
-e 's:$: $lt_compiler_flag:'` |
8343 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8344 |
(eval "$lt_compile" 2>conftest.err) |
8345 |
ac_status=$? |
8346 |
cat conftest.err >&5 |
8347 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8348 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8349 |
# The compiler can only warn and ignore the option if not recognized |
8350 |
# So say no if there are warnings other than the usual output. |
8351 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8352 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8353 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8354 |
lt_cv_prog_compiler_rtti_exceptions=yes |
8355 |
fi |
8356 |
fi |
8357 |
$RM conftest* |
8358 |
|
8359 |
fi |
8360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8361 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8362 |
|
8363 |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8364 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8365 |
else |
8366 |
: |
8367 |
fi |
8368 |
|
8369 |
fi |
8370 |
|
8371 |
|
8372 |
|
8373 |
|
8374 |
|
8375 |
|
8376 |
lt_prog_compiler_wl= |
8377 |
lt_prog_compiler_pic= |
8378 |
lt_prog_compiler_static= |
8379 |
|
8380 |
|
8381 |
if test yes = "$GCC"; then |
8382 |
lt_prog_compiler_wl='-Wl,' |
8383 |
lt_prog_compiler_static='-static' |
8384 |
|
8385 |
case $host_os in |
8386 |
aix*) |
8387 |
# All AIX code is PIC. |
8388 |
if test ia64 = "$host_cpu"; then |
8389 |
# AIX 5 now supports IA64 processor |
8390 |
lt_prog_compiler_static='-Bstatic' |
8391 |
fi |
8392 |
lt_prog_compiler_pic='-fPIC' |
8393 |
;; |
8394 |
|
8395 |
amigaos*) |
8396 |
case $host_cpu in |
8397 |
powerpc) |
8398 |
# see comment about AmigaOS4 .so support |
8399 |
lt_prog_compiler_pic='-fPIC' |
8400 |
;; |
8401 |
m68k) |
8402 |
# FIXME: we need at least 68020 code to build shared libraries, but |
8403 |
# adding the '-m68020' flag to GCC prevents building anything better, |
8404 |
# like '-m68040'. |
8405 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8406 |
;; |
8407 |
esac |
8408 |
;; |
8409 |
|
8410 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8411 |
# PIC is the default for these OSes. |
8412 |
;; |
8413 |
|
8414 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8415 |
# This hack is so that the source file can tell whether it is being |
8416 |
# built for inclusion in a dll (and should export symbols for example). |
8417 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
8418 |
# (--disable-auto-import) libraries |
8419 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8420 |
case $host_os in |
8421 |
os2*) |
8422 |
lt_prog_compiler_static='$wl-static' |
8423 |
;; |
8424 |
esac |
8425 |
;; |
8426 |
|
8427 |
darwin* | rhapsody*) |
8428 |
# PIC is the default on this platform |
8429 |
# Common symbols not allowed in MH_DYLIB files |
8430 |
lt_prog_compiler_pic='-fno-common' |
8431 |
;; |
8432 |
|
8433 |
haiku*) |
8434 |
# PIC is the default for Haiku. |
8435 |
# The "-static" flag exists, but is broken. |
8436 |
lt_prog_compiler_static= |
8437 |
;; |
8438 |
|
8439 |
hpux*) |
8440 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8441 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8442 |
# sets the default TLS model and affects inlining. |
8443 |
case $host_cpu in |
8444 |
hppa*64*) |
8445 |
# +Z the default |
8446 |
;; |
8447 |
*) |
8448 |
lt_prog_compiler_pic='-fPIC' |
8449 |
;; |
8450 |
esac |
8451 |
;; |
8452 |
|
8453 |
interix[3-9]*) |
8454 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8455 |
# Instead, we relocate shared libraries at runtime. |
8456 |
;; |
8457 |
|
8458 |
msdosdjgpp*) |
8459 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
8460 |
# on systems that don't support them. |
8461 |
lt_prog_compiler_can_build_shared=no |
8462 |
enable_shared=no |
8463 |
;; |
8464 |
|
8465 |
*nto* | *qnx*) |
8466 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8467 |
# it will coredump. |
8468 |
lt_prog_compiler_pic='-fPIC -shared' |
8469 |
;; |
8470 |
|
8471 |
sysv4*MP*) |
8472 |
if test -d /usr/nec; then |
8473 |
lt_prog_compiler_pic=-Kconform_pic |
8474 |
fi |
8475 |
;; |
8476 |
|
8477 |
*) |
8478 |
lt_prog_compiler_pic='-fPIC' |
8479 |
;; |
8480 |
esac |
8481 |
|
8482 |
case $cc_basename in |
8483 |
nvcc*) # Cuda Compiler Driver 2.2 |
8484 |
lt_prog_compiler_wl='-Xlinker ' |
8485 |
if test -n "$lt_prog_compiler_pic"; then |
8486 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
8487 |
fi |
8488 |
;; |
8489 |
esac |
8490 |
else |
8491 |
# PORTME Check for flag to pass linker flags through the system compiler. |
8492 |
case $host_os in |
8493 |
aix*) |
8494 |
lt_prog_compiler_wl='-Wl,' |
8495 |
if test ia64 = "$host_cpu"; then |
8496 |
# AIX 5 now supports IA64 processor |
8497 |
lt_prog_compiler_static='-Bstatic' |
8498 |
else |
8499 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
8500 |
fi |
8501 |
;; |
8502 |
|
8503 |
darwin* | rhapsody*) |
8504 |
# PIC is the default on this platform |
8505 |
# Common symbols not allowed in MH_DYLIB files |
8506 |
lt_prog_compiler_pic='-fno-common' |
8507 |
case $cc_basename in |
8508 |
nagfor*) |
8509 |
# NAG Fortran compiler |
8510 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8511 |
lt_prog_compiler_pic='-PIC' |
8512 |
lt_prog_compiler_static='-Bstatic' |
8513 |
;; |
8514 |
esac |
8515 |
;; |
8516 |
|
8517 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8518 |
# This hack is so that the source file can tell whether it is being |
8519 |
# built for inclusion in a dll (and should export symbols for example). |
8520 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8521 |
case $host_os in |
8522 |
os2*) |
8523 |
lt_prog_compiler_static='$wl-static' |
8524 |
;; |
8525 |
esac |
8526 |
;; |
8527 |
|
8528 |
hpux9* | hpux10* | hpux11*) |
8529 |
lt_prog_compiler_wl='-Wl,' |
8530 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8531 |
# not for PA HP-UX. |
8532 |
case $host_cpu in |
8533 |
hppa*64*|ia64*) |
8534 |
# +Z the default |
8535 |
;; |
8536 |
*) |
8537 |
lt_prog_compiler_pic='+Z' |
8538 |
;; |
8539 |
esac |
8540 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
8541 |
lt_prog_compiler_static='$wl-a ${wl}archive' |
8542 |
;; |
8543 |
|
8544 |
irix5* | irix6* | nonstopux*) |
8545 |
lt_prog_compiler_wl='-Wl,' |
8546 |
# PIC (with -KPIC) is the default. |
8547 |
lt_prog_compiler_static='-non_shared' |
8548 |
;; |
8549 |
|
8550 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8551 |
case $cc_basename in |
8552 |
# old Intel for x86_64, which still supported -KPIC. |
8553 |
ecc*) |
8554 |
lt_prog_compiler_wl='-Wl,' |
8555 |
lt_prog_compiler_pic='-KPIC' |
8556 |
lt_prog_compiler_static='-static' |
8557 |
;; |
8558 |
# icc used to be incompatible with GCC. |
8559 |
# ICC 10 doesn't accept -KPIC any more. |
8560 |
icc* | ifort*) |
8561 |
lt_prog_compiler_wl='-Wl,' |
8562 |
lt_prog_compiler_pic='-fPIC' |
8563 |
lt_prog_compiler_static='-static' |
8564 |
;; |
8565 |
# Lahey Fortran 8.1. |
8566 |
lf95*) |
8567 |
lt_prog_compiler_wl='-Wl,' |
8568 |
lt_prog_compiler_pic='--shared' |
8569 |
lt_prog_compiler_static='--static' |
8570 |
;; |
8571 |
nagfor*) |
8572 |
# NAG Fortran compiler |
8573 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8574 |
lt_prog_compiler_pic='-PIC' |
8575 |
lt_prog_compiler_static='-Bstatic' |
8576 |
;; |
8577 |
tcc*) |
8578 |
# Fabrice Bellard et al's Tiny C Compiler |
8579 |
lt_prog_compiler_wl='-Wl,' |
8580 |
lt_prog_compiler_pic='-fPIC' |
8581 |
lt_prog_compiler_static='-static' |
8582 |
;; |
8583 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8584 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
8585 |
# which looks to be a dead project) |
8586 |
lt_prog_compiler_wl='-Wl,' |
8587 |
lt_prog_compiler_pic='-fpic' |
8588 |
lt_prog_compiler_static='-Bstatic' |
8589 |
;; |
8590 |
ccc*) |
8591 |
lt_prog_compiler_wl='-Wl,' |
8592 |
# All Alpha code is PIC. |
8593 |
lt_prog_compiler_static='-non_shared' |
8594 |
;; |
8595 |
xl* | bgxl* | bgf* | mpixl*) |
8596 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
8597 |
lt_prog_compiler_wl='-Wl,' |
8598 |
lt_prog_compiler_pic='-qpic' |
8599 |
lt_prog_compiler_static='-qstaticlink' |
8600 |
;; |
8601 |
*) |
8602 |
case `$CC -V 2>&1 | sed 5q` in |
8603 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8604 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
8605 |
lt_prog_compiler_pic='-KPIC' |
8606 |
lt_prog_compiler_static='-Bstatic' |
8607 |
lt_prog_compiler_wl='' |
8608 |
;; |
8609 |
*Sun\ F* | *Sun*Fortran*) |
8610 |
lt_prog_compiler_pic='-KPIC' |
8611 |
lt_prog_compiler_static='-Bstatic' |
8612 |
lt_prog_compiler_wl='-Qoption ld ' |
8613 |
;; |
8614 |
*Sun\ C*) |
8615 |
# Sun C 5.9 |
8616 |
lt_prog_compiler_pic='-KPIC' |
8617 |
lt_prog_compiler_static='-Bstatic' |
8618 |
lt_prog_compiler_wl='-Wl,' |
8619 |
;; |
8620 |
*Intel*\ [CF]*Compiler*) |
8621 |
lt_prog_compiler_wl='-Wl,' |
8622 |
lt_prog_compiler_pic='-fPIC' |
8623 |
lt_prog_compiler_static='-static' |
8624 |
;; |
8625 |
*Portland\ Group*) |
8626 |
lt_prog_compiler_wl='-Wl,' |
8627 |
lt_prog_compiler_pic='-fpic' |
8628 |
lt_prog_compiler_static='-Bstatic' |
8629 |
;; |
8630 |
esac |
8631 |
;; |
8632 |
esac |
8633 |
;; |
8634 |
|
8635 |
newsos6) |
8636 |
lt_prog_compiler_pic='-KPIC' |
8637 |
lt_prog_compiler_static='-Bstatic' |
8638 |
;; |
8639 |
|
8640 |
*nto* | *qnx*) |
8641 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8642 |
# it will coredump. |
8643 |
lt_prog_compiler_pic='-fPIC -shared' |
8644 |
;; |
8645 |
|
8646 |
osf3* | osf4* | osf5*) |
8647 |
lt_prog_compiler_wl='-Wl,' |
8648 |
# All OSF/1 code is PIC. |
8649 |
lt_prog_compiler_static='-non_shared' |
8650 |
;; |
8651 |
|
8652 |
rdos*) |
8653 |
lt_prog_compiler_static='-non_shared' |
8654 |
;; |
8655 |
|
8656 |
solaris*) |
8657 |
lt_prog_compiler_pic='-KPIC' |
8658 |
lt_prog_compiler_static='-Bstatic' |
8659 |
case $cc_basename in |
8660 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8661 |
lt_prog_compiler_wl='-Qoption ld ';; |
8662 |
*) |
8663 |
lt_prog_compiler_wl='-Wl,';; |
8664 |
esac |
8665 |
;; |
8666 |
|
8667 |
sunos4*) |
8668 |
lt_prog_compiler_wl='-Qoption ld ' |
8669 |
lt_prog_compiler_pic='-PIC' |
8670 |
lt_prog_compiler_static='-Bstatic' |
8671 |
;; |
8672 |
|
8673 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
8674 |
lt_prog_compiler_wl='-Wl,' |
8675 |
lt_prog_compiler_pic='-KPIC' |
8676 |
lt_prog_compiler_static='-Bstatic' |
8677 |
;; |
8678 |
|
8679 |
sysv4*MP*) |
8680 |
if test -d /usr/nec; then |
8681 |
lt_prog_compiler_pic='-Kconform_pic' |
8682 |
lt_prog_compiler_static='-Bstatic' |
8683 |
fi |
8684 |
;; |
8685 |
|
8686 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8687 |
lt_prog_compiler_wl='-Wl,' |
8688 |
lt_prog_compiler_pic='-KPIC' |
8689 |
lt_prog_compiler_static='-Bstatic' |
8690 |
;; |
8691 |
|
8692 |
unicos*) |
8693 |
lt_prog_compiler_wl='-Wl,' |
8694 |
lt_prog_compiler_can_build_shared=no |
8695 |
;; |
8696 |
|
8697 |
uts4*) |
8698 |
lt_prog_compiler_pic='-pic' |
8699 |
lt_prog_compiler_static='-Bstatic' |
8700 |
;; |
8701 |
|
8702 |
*) |
8703 |
lt_prog_compiler_can_build_shared=no |
8704 |
;; |
8705 |
esac |
8706 |
fi |
8707 |
|
8708 |
case $host_os in |
8709 |
# For platforms that do not support PIC, -DPIC is meaningless: |
8710 |
*djgpp*) |
8711 |
lt_prog_compiler_pic= |
8712 |
;; |
8713 |
*) |
8714 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
8715 |
;; |
8716 |
esac |
8717 |
|
8718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8719 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
8720 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
8721 |
$as_echo_n "(cached) " >&6 |
8722 |
else |
8723 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
8724 |
fi |
8725 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
8726 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
8727 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
8728 |
|
8729 |
# |
8730 |
# Check to make sure the PIC flag actually works. |
8731 |
# |
8732 |
if test -n "$lt_prog_compiler_pic"; then |
8733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8734 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
8735 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8736 |
$as_echo_n "(cached) " >&6 |
8737 |
else |
8738 |
lt_cv_prog_compiler_pic_works=no |
8739 |
ac_outfile=conftest.$ac_objext |
8740 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8741 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8742 |
# Insert the option either (1) after the last *FLAGS variable, or |
8743 |
# (2) before a word containing "conftest.", or (3) at the end. |
8744 |
# Note that $ac_compile itself does not contain backslashes and begins |
8745 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8746 |
# The option is referenced via a variable to avoid confusing sed. |
8747 |
lt_compile=`echo "$ac_compile" | $SED \ |
8748 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8749 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8750 |
-e 's:$: $lt_compiler_flag:'` |
8751 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8752 |
(eval "$lt_compile" 2>conftest.err) |
8753 |
ac_status=$? |
8754 |
cat conftest.err >&5 |
8755 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8756 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8757 |
# The compiler can only warn and ignore the option if not recognized |
8758 |
# So say no if there are warnings other than the usual output. |
8759 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8760 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8761 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8762 |
lt_cv_prog_compiler_pic_works=yes |
8763 |
fi |
8764 |
fi |
8765 |
$RM conftest* |
8766 |
|
8767 |
fi |
8768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8769 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
8770 |
|
8771 |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8772 |
case $lt_prog_compiler_pic in |
8773 |
"" | " "*) ;; |
8774 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
8775 |
esac |
8776 |
else |
8777 |
lt_prog_compiler_pic= |
8778 |
lt_prog_compiler_can_build_shared=no |
8779 |
fi |
8780 |
|
8781 |
fi |
8782 |
|
8783 |
|
8784 |
|
8785 |
|
8786 |
|
8787 |
|
8788 |
|
8789 |
|
8790 |
|
8791 |
|
8792 |
|
8793 |
# |
8794 |
# Check to make sure the static flag actually works. |
8795 |
# |
8796 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8797 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8798 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
8799 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
8800 |
$as_echo_n "(cached) " >&6 |
8801 |
else |
8802 |
lt_cv_prog_compiler_static_works=no |
8803 |
save_LDFLAGS=$LDFLAGS |
8804 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8805 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
8806 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8807 |
# The linker can only warn and ignore the option if not recognized |
8808 |
# So say no if there are warnings |
8809 |
if test -s conftest.err; then |
8810 |
# Append any errors to the config.log. |
8811 |
cat conftest.err 1>&5 |
8812 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8813 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8814 |
if diff conftest.exp conftest.er2 >/dev/null; then |
8815 |
lt_cv_prog_compiler_static_works=yes |
8816 |
fi |
8817 |
else |
8818 |
lt_cv_prog_compiler_static_works=yes |
8819 |
fi |
8820 |
fi |
8821 |
$RM -r conftest* |
8822 |
LDFLAGS=$save_LDFLAGS |
8823 |
|
8824 |
fi |
8825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8826 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
8827 |
|
8828 |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
8829 |
: |
8830 |
else |
8831 |
lt_prog_compiler_static= |
8832 |
fi |
8833 |
|
8834 |
|
8835 |
|
8836 |
|
8837 |
|
8838 |
|
8839 |
|
8840 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8841 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8842 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8843 |
$as_echo_n "(cached) " >&6 |
8844 |
else |
8845 |
lt_cv_prog_compiler_c_o=no |
8846 |
$RM -r conftest 2>/dev/null |
8847 |
mkdir conftest |
8848 |
cd conftest |
8849 |
mkdir out |
8850 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8851 |
|
8852 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8853 |
# Insert the option either (1) after the last *FLAGS variable, or |
8854 |
# (2) before a word containing "conftest.", or (3) at the end. |
8855 |
# Note that $ac_compile itself does not contain backslashes and begins |
8856 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8857 |
lt_compile=`echo "$ac_compile" | $SED \ |
8858 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8859 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8860 |
-e 's:$: $lt_compiler_flag:'` |
8861 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8862 |
(eval "$lt_compile" 2>out/conftest.err) |
8863 |
ac_status=$? |
8864 |
cat out/conftest.err >&5 |
8865 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8866 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8867 |
then |
8868 |
# The compiler can only warn and ignore the option if not recognized |
8869 |
# So say no if there are warnings |
8870 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8871 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8872 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8873 |
lt_cv_prog_compiler_c_o=yes |
8874 |
fi |
8875 |
fi |
8876 |
chmod u+w . 2>&5 |
8877 |
$RM conftest* |
8878 |
# SGI C++ compiler will create directory out/ii_files/ for |
8879 |
# template instantiation |
8880 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8881 |
$RM out/* && rmdir out |
8882 |
cd .. |
8883 |
$RM -r conftest |
8884 |
$RM conftest* |
8885 |
|
8886 |
fi |
8887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8888 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8889 |
|
8890 |
|
8891 |
|
8892 |
|
8893 |
|
8894 |
|
8895 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8896 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8897 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8898 |
$as_echo_n "(cached) " >&6 |
8899 |
else |
8900 |
lt_cv_prog_compiler_c_o=no |
8901 |
$RM -r conftest 2>/dev/null |
8902 |
mkdir conftest |
8903 |
cd conftest |
8904 |
mkdir out |
8905 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8906 |
|
8907 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8908 |
# Insert the option either (1) after the last *FLAGS variable, or |
8909 |
# (2) before a word containing "conftest.", or (3) at the end. |
8910 |
# Note that $ac_compile itself does not contain backslashes and begins |
8911 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8912 |
lt_compile=`echo "$ac_compile" | $SED \ |
8913 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8914 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8915 |
-e 's:$: $lt_compiler_flag:'` |
8916 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8917 |
(eval "$lt_compile" 2>out/conftest.err) |
8918 |
ac_status=$? |
8919 |
cat out/conftest.err >&5 |
8920 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8921 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8922 |
then |
8923 |
# The compiler can only warn and ignore the option if not recognized |
8924 |
# So say no if there are warnings |
8925 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8926 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8927 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8928 |
lt_cv_prog_compiler_c_o=yes |
8929 |
fi |
8930 |
fi |
8931 |
chmod u+w . 2>&5 |
8932 |
$RM conftest* |
8933 |
# SGI C++ compiler will create directory out/ii_files/ for |
8934 |
# template instantiation |
8935 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8936 |
$RM out/* && rmdir out |
8937 |
cd .. |
8938 |
$RM -r conftest |
8939 |
$RM conftest* |
8940 |
|
8941 |
fi |
8942 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8943 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8944 |
|
8945 |
|
8946 |
|
8947 |
|
8948 |
hard_links=nottested |
8949 |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
8950 |
# do not overwrite the value of need_locks provided by the user |
8951 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8952 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
8953 |
hard_links=yes |
8954 |
$RM conftest* |
8955 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8956 |
touch conftest.a |
8957 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
8958 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8960 |
$as_echo "$hard_links" >&6; } |
8961 |
if test no = "$hard_links"; then |
8962 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
8963 |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
8964 |
need_locks=warn |
8965 |
fi |
8966 |
else |
8967 |
need_locks=no |
8968 |
fi |
8969 |
|
8970 |
|
8971 |
|
8972 |
|
8973 |
|
8974 |
|
8975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8976 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
8977 |
|
8978 |
runpath_var= |
8979 |
allow_undefined_flag= |
8980 |
always_export_symbols=no |
8981 |
archive_cmds= |
8982 |
archive_expsym_cmds= |
8983 |
compiler_needs_object=no |
8984 |
enable_shared_with_static_runtimes=no |
8985 |
export_dynamic_flag_spec= |
8986 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
8987 |
hardcode_automatic=no |
8988 |
hardcode_direct=no |
8989 |
hardcode_direct_absolute=no |
8990 |
hardcode_libdir_flag_spec= |
8991 |
hardcode_libdir_separator= |
8992 |
hardcode_minus_L=no |
8993 |
hardcode_shlibpath_var=unsupported |
8994 |
inherit_rpath=no |
8995 |
link_all_deplibs=unknown |
8996 |
module_cmds= |
8997 |
module_expsym_cmds= |
8998 |
old_archive_from_new_cmds= |
8999 |
old_archive_from_expsyms_cmds= |
9000 |
thread_safe_flag_spec= |
9001 |
whole_archive_flag_spec= |
9002 |
# include_expsyms should be a list of space-separated symbols to be *always* |
9003 |
# included in the symbol list |
9004 |
include_expsyms= |
9005 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
9006 |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
9007 |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
9008 |
# as well as any symbol that contains 'd'. |
9009 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9010 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9011 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
9012 |
# the symbol is explicitly referenced. Since portable code cannot |
9013 |
# rely on this symbol name, it's probably fine to never include it in |
9014 |
# preloaded symbol tables. |
9015 |
# Exclude shared library initialization/finalization symbols. |
9016 |
extract_expsyms_cmds= |
9017 |
|
9018 |
case $host_os in |
9019 |
cygwin* | mingw* | pw32* | cegcc*) |
9020 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
9021 |
# When not using gcc, we currently assume that we are using |
9022 |
# Microsoft Visual C++. |
9023 |
if test yes != "$GCC"; then |
9024 |
with_gnu_ld=no |
9025 |
fi |
9026 |
;; |
9027 |
interix*) |
9028 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
9029 |
with_gnu_ld=yes |
9030 |
;; |
9031 |
openbsd* | bitrig*) |
9032 |
with_gnu_ld=no |
9033 |
;; |
9034 |
esac |
9035 |
|
9036 |
ld_shlibs=yes |
9037 |
|
9038 |
# On some targets, GNU ld is compatible enough with the native linker |
9039 |
# that we're better off using the native interface for both. |
9040 |
lt_use_gnu_ld_interface=no |
9041 |
if test yes = "$with_gnu_ld"; then |
9042 |
case $host_os in |
9043 |
aix*) |
9044 |
# The AIX port of GNU ld has always aspired to compatibility |
9045 |
# with the native linker. However, as the warning in the GNU ld |
9046 |
# block says, versions before 2.19.5* couldn't really create working |
9047 |
# shared libraries, regardless of the interface used. |
9048 |
case `$LD -v 2>&1` in |
9049 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
9050 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
9051 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
9052 |
*) |
9053 |
lt_use_gnu_ld_interface=yes |
9054 |
;; |
9055 |
esac |
9056 |
;; |
9057 |
*) |
9058 |
lt_use_gnu_ld_interface=yes |
9059 |
;; |
9060 |
esac |
9061 |
fi |
9062 |
|
9063 |
if test yes = "$lt_use_gnu_ld_interface"; then |
9064 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
9065 |
wlarc='$wl' |
9066 |
|
9067 |
# Set some defaults for GNU ld with shared library support. These |
9068 |
# are reset later if shared libraries are not supported. Putting them |
9069 |
# here allows them to be overridden if necessary. |
9070 |
runpath_var=LD_RUN_PATH |
9071 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9072 |
export_dynamic_flag_spec='$wl--export-dynamic' |
9073 |
# ancient GNU ld didn't support --whole-archive et. al. |
9074 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
9075 |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
9076 |
else |
9077 |
whole_archive_flag_spec= |
9078 |
fi |
9079 |
supports_anon_versioning=no |
9080 |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
9081 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
9082 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9083 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
9084 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
9085 |
*\ 2.11.*) ;; # other 2.11 versions |
9086 |
*) supports_anon_versioning=yes ;; |
9087 |
esac |
9088 |
|
9089 |
# See if GNU ld supports shared libraries. |
9090 |
case $host_os in |
9091 |
aix[3-9]*) |
9092 |
# On AIX/PPC, the GNU linker is very broken |
9093 |
if test ia64 != "$host_cpu"; then |
9094 |
ld_shlibs=no |
9095 |
cat <<_LT_EOF 1>&2 |
9096 |
|
9097 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
9098 |
*** to be unable to reliably create shared libraries on AIX. |
9099 |
*** Therefore, libtool is disabling shared libraries support. If you |
9100 |
*** really care for shared libraries, you may want to install binutils |
9101 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
9102 |
*** You will then need to restart the configuration process. |
9103 |
|
9104 |
_LT_EOF |
9105 |
fi |
9106 |
;; |
9107 |
|
9108 |
amigaos*) |
9109 |
case $host_cpu in |
9110 |
powerpc) |
9111 |
# see comment about AmigaOS4 .so support |
9112 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9113 |
archive_expsym_cmds='' |
9114 |
;; |
9115 |
m68k) |
9116 |
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)' |
9117 |
hardcode_libdir_flag_spec='-L$libdir' |
9118 |
hardcode_minus_L=yes |
9119 |
;; |
9120 |
esac |
9121 |
;; |
9122 |
|
9123 |
beos*) |
9124 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9125 |
allow_undefined_flag=unsupported |
9126 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9127 |
# support --undefined. This deserves some investigation. FIXME |
9128 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9129 |
else |
9130 |
ld_shlibs=no |
9131 |
fi |
9132 |
;; |
9133 |
|
9134 |
cygwin* | mingw* | pw32* | cegcc*) |
9135 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9136 |
# as there is no search path for DLLs. |
9137 |
hardcode_libdir_flag_spec='-L$libdir' |
9138 |
export_dynamic_flag_spec='$wl--export-all-symbols' |
9139 |
allow_undefined_flag=unsupported |
9140 |
always_export_symbols=no |
9141 |
enable_shared_with_static_runtimes=yes |
9142 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
9143 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
9144 |
|
9145 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9146 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9147 |
# If the export-symbols file already is a .def file, use it as |
9148 |
# is; otherwise, prepend EXPORTS... |
9149 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9150 |
cp $export_symbols $output_objdir/$soname.def; |
9151 |
else |
9152 |
echo EXPORTS > $output_objdir/$soname.def; |
9153 |
cat $export_symbols >> $output_objdir/$soname.def; |
9154 |
fi~ |
9155 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9156 |
else |
9157 |
ld_shlibs=no |
9158 |
fi |
9159 |
;; |
9160 |
|
9161 |
haiku*) |
9162 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9163 |
link_all_deplibs=yes |
9164 |
;; |
9165 |
|
9166 |
os2*) |
9167 |
hardcode_libdir_flag_spec='-L$libdir' |
9168 |
hardcode_minus_L=yes |
9169 |
allow_undefined_flag=unsupported |
9170 |
shrext_cmds=.dll |
9171 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9172 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9173 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9174 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9175 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
9176 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9177 |
emximp -o $lib $output_objdir/$libname.def' |
9178 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9179 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9180 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9181 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9182 |
prefix_cmds="$SED"~ |
9183 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
9184 |
prefix_cmds="$prefix_cmds -e 1d"; |
9185 |
fi~ |
9186 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
9187 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
9188 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9189 |
emximp -o $lib $output_objdir/$libname.def' |
9190 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
9191 |
enable_shared_with_static_runtimes=yes |
9192 |
;; |
9193 |
|
9194 |
interix[3-9]*) |
9195 |
hardcode_direct=no |
9196 |
hardcode_shlibpath_var=no |
9197 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9198 |
export_dynamic_flag_spec='$wl-E' |
9199 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9200 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
9201 |
# default) and relocated if they conflict, which is a slow very memory |
9202 |
# consuming and fragmenting process. To avoid this, we pick a random, |
9203 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9204 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9205 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9206 |
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' |
9207 |
;; |
9208 |
|
9209 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9210 |
tmp_diet=no |
9211 |
if test linux-dietlibc = "$host_os"; then |
9212 |
case $cc_basename in |
9213 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9214 |
esac |
9215 |
fi |
9216 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9217 |
&& test no = "$tmp_diet" |
9218 |
then |
9219 |
tmp_addflag=' $pic_flag' |
9220 |
tmp_sharedflag='-shared' |
9221 |
case $cc_basename,$host_cpu in |
9222 |
pgcc*) # Portland Group C compiler |
9223 |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
9224 |
tmp_addflag=' $pic_flag' |
9225 |
;; |
9226 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
9227 |
# Portland Group f77 and f90 compilers |
9228 |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
9229 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
9230 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9231 |
tmp_addflag=' -i_dynamic' ;; |
9232 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
9233 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
9234 |
ifc* | ifort*) # Intel Fortran compiler |
9235 |
tmp_addflag=' -nofor_main' ;; |
9236 |
lf95*) # Lahey Fortran 8.1 |
9237 |
whole_archive_flag_spec= |
9238 |
tmp_sharedflag='--shared' ;; |
9239 |
nagfor*) # NAGFOR 5.3 |
9240 |
tmp_sharedflag='-Wl,-shared' ;; |
9241 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9242 |
tmp_sharedflag='-qmkshrobj' |
9243 |
tmp_addflag= ;; |
9244 |
nvcc*) # Cuda Compiler Driver 2.2 |
9245 |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
9246 |
compiler_needs_object=yes |
9247 |
;; |
9248 |
esac |
9249 |
case `$CC -V 2>&1 | sed 5q` in |
9250 |
*Sun\ C*) # Sun C 5.9 |
9251 |
whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
9252 |
compiler_needs_object=yes |
9253 |
tmp_sharedflag='-G' ;; |
9254 |
*Sun\ F*) # Sun Fortran 8.3 |
9255 |
tmp_sharedflag='-G' ;; |
9256 |
esac |
9257 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9258 |
|
9259 |
if test yes = "$supports_anon_versioning"; then |
9260 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9261 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9262 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9263 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
9264 |
fi |
9265 |
|
9266 |
case $cc_basename in |
9267 |
tcc*) |
9268 |
export_dynamic_flag_spec='-rdynamic' |
9269 |
;; |
9270 |
xlf* | bgf* | bgxlf* | mpixlf*) |
9271 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9272 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9273 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9274 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9275 |
if test yes = "$supports_anon_versioning"; then |
9276 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9277 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9278 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9279 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9280 |
fi |
9281 |
;; |
9282 |
esac |
9283 |
else |
9284 |
ld_shlibs=no |
9285 |
fi |
9286 |
;; |
9287 |
|
9288 |
netbsd*) |
9289 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9290 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9291 |
wlarc= |
9292 |
else |
9293 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9294 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9295 |
fi |
9296 |
;; |
9297 |
|
9298 |
solaris*) |
9299 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9300 |
ld_shlibs=no |
9301 |
cat <<_LT_EOF 1>&2 |
9302 |
|
9303 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9304 |
*** create shared libraries on Solaris systems. Therefore, libtool |
9305 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9306 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
9307 |
*** your PATH or compiler configuration so that the native linker is |
9308 |
*** used, and then restart. |
9309 |
|
9310 |
_LT_EOF |
9311 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9312 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9313 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9314 |
else |
9315 |
ld_shlibs=no |
9316 |
fi |
9317 |
;; |
9318 |
|
9319 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9320 |
case `$LD -v 2>&1` in |
9321 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
9322 |
ld_shlibs=no |
9323 |
cat <<_LT_EOF 1>&2 |
9324 |
|
9325 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
9326 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
9327 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9328 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9329 |
*** your PATH or compiler configuration so that the native linker is |
9330 |
*** used, and then restart. |
9331 |
|
9332 |
_LT_EOF |
9333 |
;; |
9334 |
*) |
9335 |
# For security reasons, it is highly recommended that you always |
9336 |
# use absolute paths for naming shared libraries, and exclude the |
9337 |
# DT_RUNPATH tag from executables and libraries. But doing so |
9338 |
# requires that you compile everything twice, which is a pain. |
9339 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9340 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9341 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9342 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9343 |
else |
9344 |
ld_shlibs=no |
9345 |
fi |
9346 |
;; |
9347 |
esac |
9348 |
;; |
9349 |
|
9350 |
sunos4*) |
9351 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9352 |
wlarc= |
9353 |
hardcode_direct=yes |
9354 |
hardcode_shlibpath_var=no |
9355 |
;; |
9356 |
|
9357 |
*) |
9358 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9359 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9360 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9361 |
else |
9362 |
ld_shlibs=no |
9363 |
fi |
9364 |
;; |
9365 |
esac |
9366 |
|
9367 |
if test no = "$ld_shlibs"; then |
9368 |
runpath_var= |
9369 |
hardcode_libdir_flag_spec= |
9370 |
export_dynamic_flag_spec= |
9371 |
whole_archive_flag_spec= |
9372 |
fi |
9373 |
else |
9374 |
# PORTME fill in a description of your system's linker (not GNU ld) |
9375 |
case $host_os in |
9376 |
aix3*) |
9377 |
allow_undefined_flag=unsupported |
9378 |
always_export_symbols=yes |
9379 |
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' |
9380 |
# Note: this linker hardcodes the directories in LIBPATH if there |
9381 |
# are no directories specified by -L. |
9382 |
hardcode_minus_L=yes |
9383 |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
9384 |
# Neither direct hardcoding nor static linking is supported with a |
9385 |
# broken collect2. |
9386 |
hardcode_direct=unsupported |
9387 |
fi |
9388 |
;; |
9389 |
|
9390 |
aix[4-9]*) |
9391 |
if test ia64 = "$host_cpu"; then |
9392 |
# On IA64, the linker does run time linking by default, so we don't |
9393 |
# have to do anything special. |
9394 |
aix_use_runtimelinking=no |
9395 |
exp_sym_flag='-Bexport' |
9396 |
no_entry_flag= |
9397 |
else |
9398 |
# If we're using GNU nm, then we don't want the "-C" option. |
9399 |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9400 |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
9401 |
# weak defined symbols like other global defined symbols, whereas |
9402 |
# GNU nm marks them as "W". |
9403 |
# While the 'weak' keyword is ignored in the Export File, we need |
9404 |
# it in the Import File for the 'aix-soname' feature, so we have |
9405 |
# to replace the "-B" option with "-P" for AIX nm. |
9406 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9407 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
9408 |
else |
9409 |
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
9410 |
fi |
9411 |
aix_use_runtimelinking=no |
9412 |
|
9413 |
# Test if we are trying to use run time linking or normal |
9414 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9415 |
# have runtime linking enabled, and use it for executables. |
9416 |
# For shared libraries, we enable/disable runtime linking |
9417 |
# depending on the kind of the shared library created - |
9418 |
# when "with_aix_soname,aix_use_runtimelinking" is: |
9419 |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
9420 |
# "aix,yes" lib.so shared, rtl:yes, for executables |
9421 |
# lib.a static archive |
9422 |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
9423 |
# lib.a(lib.so.V) shared, rtl:no, for executables |
9424 |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
9425 |
# lib.a(lib.so.V) shared, rtl:no |
9426 |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
9427 |
# lib.a static archive |
9428 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9429 |
for ld_flag in $LDFLAGS; do |
9430 |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
9431 |
aix_use_runtimelinking=yes |
9432 |
break |
9433 |
fi |
9434 |
done |
9435 |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9436 |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
9437 |
# so we don't have lib.a shared libs to link our executables. |
9438 |
# We have to force runtime linking in this case. |
9439 |
aix_use_runtimelinking=yes |
9440 |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
9441 |
fi |
9442 |
;; |
9443 |
esac |
9444 |
|
9445 |
exp_sym_flag='-bexport' |
9446 |
no_entry_flag='-bnoentry' |
9447 |
fi |
9448 |
|
9449 |
# When large executables or shared objects are built, AIX ld can |
9450 |
# have problems creating the table of contents. If linking a library |
9451 |
# or program results in "error TOC overflow" add -mminimal-toc to |
9452 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
9453 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
9454 |
|
9455 |
archive_cmds='' |
9456 |
hardcode_direct=yes |
9457 |
hardcode_direct_absolute=yes |
9458 |
hardcode_libdir_separator=':' |
9459 |
link_all_deplibs=yes |
9460 |
file_list_spec='$wl-f,' |
9461 |
case $with_aix_soname,$aix_use_runtimelinking in |
9462 |
aix,*) ;; # traditional, no import file |
9463 |
svr4,* | *,yes) # use import file |
9464 |
# The Import File defines what to hardcode. |
9465 |
hardcode_direct=no |
9466 |
hardcode_direct_absolute=no |
9467 |
;; |
9468 |
esac |
9469 |
|
9470 |
if test yes = "$GCC"; then |
9471 |
case $host_os in aix4.[012]|aix4.[012].*) |
9472 |
# We only want to do this on AIX 4.2 and lower, the check |
9473 |
# below for broken collect2 doesn't work under 4.3+ |
9474 |
collect2name=`$CC -print-prog-name=collect2` |
9475 |
if test -f "$collect2name" && |
9476 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9477 |
then |
9478 |
# We have reworked collect2 |
9479 |
: |
9480 |
else |
9481 |
# We have old collect2 |
9482 |
hardcode_direct=unsupported |
9483 |
# It fails to find uninstalled libraries when the uninstalled |
9484 |
# path is not listed in the libpath. Setting hardcode_minus_L |
9485 |
# to unsupported forces relinking |
9486 |
hardcode_minus_L=yes |
9487 |
hardcode_libdir_flag_spec='-L$libdir' |
9488 |
hardcode_libdir_separator= |
9489 |
fi |
9490 |
;; |
9491 |
esac |
9492 |
shared_flag='-shared' |
9493 |
if test yes = "$aix_use_runtimelinking"; then |
9494 |
shared_flag="$shared_flag "'$wl-G' |
9495 |
fi |
9496 |
# Need to ensure runtime linking is disabled for the traditional |
9497 |
# shared library, or the linker may eventually find shared libraries |
9498 |
# /with/ Import File - we do not want to mix them. |
9499 |
shared_flag_aix='-shared' |
9500 |
shared_flag_svr4='-shared $wl-G' |
9501 |
else |
9502 |
# not using gcc |
9503 |
if test ia64 = "$host_cpu"; then |
9504 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9505 |
# chokes on -Wl,-G. The following line is correct: |
9506 |
shared_flag='-G' |
9507 |
else |
9508 |
if test yes = "$aix_use_runtimelinking"; then |
9509 |
shared_flag='$wl-G' |
9510 |
else |
9511 |
shared_flag='$wl-bM:SRE' |
9512 |
fi |
9513 |
shared_flag_aix='$wl-bM:SRE' |
9514 |
shared_flag_svr4='$wl-G' |
9515 |
fi |
9516 |
fi |
9517 |
|
9518 |
export_dynamic_flag_spec='$wl-bexpall' |
9519 |
# It seems that -bexpall does not export symbols beginning with |
9520 |
# underscore (_), so it is better to generate a list of symbols to export. |
9521 |
always_export_symbols=yes |
9522 |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
9523 |
# Warning - without using the other runtime loading flags (-brtl), |
9524 |
# -berok will link without error, but may produce a broken library. |
9525 |
allow_undefined_flag='-berok' |
9526 |
# Determine the default libpath from the value encoded in an |
9527 |
# empty executable. |
9528 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9529 |
aix_libpath=$lt_cv_aix_libpath |
9530 |
else |
9531 |
if ${lt_cv_aix_libpath_+:} false; then : |
9532 |
$as_echo_n "(cached) " >&6 |
9533 |
else |
9534 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9535 |
/* end confdefs.h. */ |
9536 |
|
9537 |
int |
9538 |
main () |
9539 |
{ |
9540 |
|
9541 |
; |
9542 |
return 0; |
9543 |
} |
9544 |
_ACEOF |
9545 |
if ac_fn_c_try_link "$LINENO"; then : |
9546 |
|
9547 |
lt_aix_libpath_sed=' |
9548 |
/Import File Strings/,/^$/ { |
9549 |
/^0/ { |
9550 |
s/^0 *\([^ ]*\) *$/\1/ |
9551 |
p |
9552 |
} |
9553 |
}' |
9554 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9555 |
# Check for a 64-bit object if we didn't find anything. |
9556 |
if test -z "$lt_cv_aix_libpath_"; then |
9557 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9558 |
fi |
9559 |
fi |
9560 |
rm -f core conftest.err conftest.$ac_objext \ |
9561 |
conftest$ac_exeext conftest.$ac_ext |
9562 |
if test -z "$lt_cv_aix_libpath_"; then |
9563 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9564 |
fi |
9565 |
|
9566 |
fi |
9567 |
|
9568 |
aix_libpath=$lt_cv_aix_libpath_ |
9569 |
fi |
9570 |
|
9571 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9572 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
9573 |
else |
9574 |
if test ia64 = "$host_cpu"; then |
9575 |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
9576 |
allow_undefined_flag="-z nodefs" |
9577 |
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" |
9578 |
else |
9579 |
# Determine the default libpath from the value encoded in an |
9580 |
# empty executable. |
9581 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9582 |
aix_libpath=$lt_cv_aix_libpath |
9583 |
else |
9584 |
if ${lt_cv_aix_libpath_+:} false; then : |
9585 |
$as_echo_n "(cached) " >&6 |
9586 |
else |
9587 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9588 |
/* end confdefs.h. */ |
9589 |
|
9590 |
int |
9591 |
main () |
9592 |
{ |
9593 |
|
9594 |
; |
9595 |
return 0; |
9596 |
} |
9597 |
_ACEOF |
9598 |
if ac_fn_c_try_link "$LINENO"; then : |
9599 |
|
9600 |
lt_aix_libpath_sed=' |
9601 |
/Import File Strings/,/^$/ { |
9602 |
/^0/ { |
9603 |
s/^0 *\([^ ]*\) *$/\1/ |
9604 |
p |
9605 |
} |
9606 |
}' |
9607 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9608 |
# Check for a 64-bit object if we didn't find anything. |
9609 |
if test -z "$lt_cv_aix_libpath_"; then |
9610 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9611 |
fi |
9612 |
fi |
9613 |
rm -f core conftest.err conftest.$ac_objext \ |
9614 |
conftest$ac_exeext conftest.$ac_ext |
9615 |
if test -z "$lt_cv_aix_libpath_"; then |
9616 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9617 |
fi |
9618 |
|
9619 |
fi |
9620 |
|
9621 |
aix_libpath=$lt_cv_aix_libpath_ |
9622 |
fi |
9623 |
|
9624 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9625 |
# Warning - without using the other run time loading flags, |
9626 |
# -berok will link without error, but may produce a broken library. |
9627 |
no_undefined_flag=' $wl-bernotok' |
9628 |
allow_undefined_flag=' $wl-berok' |
9629 |
if test yes = "$with_gnu_ld"; then |
9630 |
# We only use this code for GNU lds that support --whole-archive. |
9631 |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
9632 |
else |
9633 |
# Exported symbols can be pulled into shared objects from archives |
9634 |
whole_archive_flag_spec='$convenience' |
9635 |
fi |
9636 |
archive_cmds_need_lc=yes |
9637 |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9638 |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
9639 |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
9640 |
if test svr4 != "$with_aix_soname"; then |
9641 |
# This is similar to how AIX traditionally builds its shared libraries. |
9642 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
9643 |
fi |
9644 |
if test aix != "$with_aix_soname"; then |
9645 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
9646 |
else |
9647 |
# used by -dlpreopen to get the symbols |
9648 |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
9649 |
fi |
9650 |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
9651 |
fi |
9652 |
fi |
9653 |
;; |
9654 |
|
9655 |
amigaos*) |
9656 |
case $host_cpu in |
9657 |
powerpc) |
9658 |
# see comment about AmigaOS4 .so support |
9659 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9660 |
archive_expsym_cmds='' |
9661 |
;; |
9662 |
m68k) |
9663 |
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)' |
9664 |
hardcode_libdir_flag_spec='-L$libdir' |
9665 |
hardcode_minus_L=yes |
9666 |
;; |
9667 |
esac |
9668 |
;; |
9669 |
|
9670 |
bsdi[45]*) |
9671 |
export_dynamic_flag_spec=-rdynamic |
9672 |
;; |
9673 |
|
9674 |
cygwin* | mingw* | pw32* | cegcc*) |
9675 |
# When not using gcc, we currently assume that we are using |
9676 |
# Microsoft Visual C++. |
9677 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
9678 |
# no search path for DLLs. |
9679 |
case $cc_basename in |
9680 |
cl*) |
9681 |
# Native MSVC |
9682 |
hardcode_libdir_flag_spec=' ' |
9683 |
allow_undefined_flag=unsupported |
9684 |
always_export_symbols=yes |
9685 |
file_list_spec='@' |
9686 |
# Tell ltmain to make .lib files, not .a files. |
9687 |
libext=lib |
9688 |
# Tell ltmain to make .dll files, not .so files. |
9689 |
shrext_cmds=.dll |
9690 |
# FIXME: Setting linknames here is a bad hack. |
9691 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9692 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9693 |
cp "$export_symbols" "$output_objdir/$soname.def"; |
9694 |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
9695 |
else |
9696 |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
9697 |
fi~ |
9698 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
9699 |
linknames=' |
9700 |
# The linker will not automatically build a static lib if we build a DLL. |
9701 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
9702 |
enable_shared_with_static_runtimes=yes |
9703 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
9704 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
9705 |
# Don't use ranlib |
9706 |
old_postinstall_cmds='chmod 644 $oldlib' |
9707 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
9708 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9709 |
case $lt_outputfile in |
9710 |
*.exe|*.EXE) ;; |
9711 |
*) |
9712 |
lt_outputfile=$lt_outputfile.exe |
9713 |
lt_tool_outputfile=$lt_tool_outputfile.exe |
9714 |
;; |
9715 |
esac~ |
9716 |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
9717 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
9718 |
$RM "$lt_outputfile.manifest"; |
9719 |
fi' |
9720 |
;; |
9721 |
*) |
9722 |
# Assume MSVC wrapper |
9723 |
hardcode_libdir_flag_spec=' ' |
9724 |
allow_undefined_flag=unsupported |
9725 |
# Tell ltmain to make .lib files, not .a files. |
9726 |
libext=lib |
9727 |
# Tell ltmain to make .dll files, not .so files. |
9728 |
shrext_cmds=.dll |
9729 |
# FIXME: Setting linknames here is a bad hack. |
9730 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
9731 |
# The linker will automatically build a .lib file if we build a DLL. |
9732 |
old_archive_from_new_cmds='true' |
9733 |
# FIXME: Should let the user specify the lib program. |
9734 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9735 |
enable_shared_with_static_runtimes=yes |
9736 |
;; |
9737 |
esac |
9738 |
;; |
9739 |
|
9740 |
darwin* | rhapsody*) |
9741 |
|
9742 |
|
9743 |
archive_cmds_need_lc=no |
9744 |
hardcode_direct=no |
9745 |
hardcode_automatic=yes |
9746 |
hardcode_shlibpath_var=unsupported |
9747 |
if test yes = "$lt_cv_ld_force_load"; then |
9748 |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
9749 |
|
9750 |
else |
9751 |
whole_archive_flag_spec='' |
9752 |
fi |
9753 |
link_all_deplibs=yes |
9754 |
allow_undefined_flag=$_lt_dar_allow_undefined |
9755 |
case $cc_basename in |
9756 |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
9757 |
*) _lt_dar_can_shared=$GCC ;; |
9758 |
esac |
9759 |
if test yes = "$_lt_dar_can_shared"; then |
9760 |
output_verbose_link_cmd=func_echo_all |
9761 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9762 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
9763 |
archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
9764 |
module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
9765 |
|
9766 |
else |
9767 |
ld_shlibs=no |
9768 |
fi |
9769 |
|
9770 |
;; |
9771 |
|
9772 |
dgux*) |
9773 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9774 |
hardcode_libdir_flag_spec='-L$libdir' |
9775 |
hardcode_shlibpath_var=no |
9776 |
;; |
9777 |
|
9778 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9779 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
9780 |
# does not break anything, and helps significantly (at the cost of a little |
9781 |
# extra space). |
9782 |
freebsd2.2*) |
9783 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9784 |
hardcode_libdir_flag_spec='-R$libdir' |
9785 |
hardcode_direct=yes |
9786 |
hardcode_shlibpath_var=no |
9787 |
;; |
9788 |
|
9789 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9790 |
freebsd2.*) |
9791 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9792 |
hardcode_direct=yes |
9793 |
hardcode_minus_L=yes |
9794 |
hardcode_shlibpath_var=no |
9795 |
;; |
9796 |
|
9797 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9798 |
freebsd* | dragonfly*) |
9799 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9800 |
hardcode_libdir_flag_spec='-R$libdir' |
9801 |
hardcode_direct=yes |
9802 |
hardcode_shlibpath_var=no |
9803 |
;; |
9804 |
|
9805 |
hpux9*) |
9806 |
if test yes = "$GCC"; then |
9807 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
9808 |
else |
9809 |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
9810 |
fi |
9811 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9812 |
hardcode_libdir_separator=: |
9813 |
hardcode_direct=yes |
9814 |
|
9815 |
# hardcode_minus_L: Not really in the search PATH, |
9816 |
# but as the default location of the library. |
9817 |
hardcode_minus_L=yes |
9818 |
export_dynamic_flag_spec='$wl-E' |
9819 |
;; |
9820 |
|
9821 |
hpux10*) |
9822 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
9823 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9824 |
else |
9825 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9826 |
fi |
9827 |
if test no = "$with_gnu_ld"; then |
9828 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9829 |
hardcode_libdir_separator=: |
9830 |
hardcode_direct=yes |
9831 |
hardcode_direct_absolute=yes |
9832 |
export_dynamic_flag_spec='$wl-E' |
9833 |
# hardcode_minus_L: Not really in the search PATH, |
9834 |
# but as the default location of the library. |
9835 |
hardcode_minus_L=yes |
9836 |
fi |
9837 |
;; |
9838 |
|
9839 |
hpux11*) |
9840 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
9841 |
case $host_cpu in |
9842 |
hppa*64*) |
9843 |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
9844 |
;; |
9845 |
ia64*) |
9846 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9847 |
;; |
9848 |
*) |
9849 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9850 |
;; |
9851 |
esac |
9852 |
else |
9853 |
case $host_cpu in |
9854 |
hppa*64*) |
9855 |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
9856 |
;; |
9857 |
ia64*) |
9858 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9859 |
;; |
9860 |
*) |
9861 |
|
9862 |
# Older versions of the 11.00 compiler do not understand -b yet |
9863 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
9864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
9865 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
9866 |
if ${lt_cv_prog_compiler__b+:} false; then : |
9867 |
$as_echo_n "(cached) " >&6 |
9868 |
else |
9869 |
lt_cv_prog_compiler__b=no |
9870 |
save_LDFLAGS=$LDFLAGS |
9871 |
LDFLAGS="$LDFLAGS -b" |
9872 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
9873 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
9874 |
# The linker can only warn and ignore the option if not recognized |
9875 |
# So say no if there are warnings |
9876 |
if test -s conftest.err; then |
9877 |
# Append any errors to the config.log. |
9878 |
cat conftest.err 1>&5 |
9879 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
9880 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9881 |
if diff conftest.exp conftest.er2 >/dev/null; then |
9882 |
lt_cv_prog_compiler__b=yes |
9883 |
fi |
9884 |
else |
9885 |
lt_cv_prog_compiler__b=yes |
9886 |
fi |
9887 |
fi |
9888 |
$RM -r conftest* |
9889 |
LDFLAGS=$save_LDFLAGS |
9890 |
|
9891 |
fi |
9892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
9893 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
9894 |
|
9895 |
if test yes = "$lt_cv_prog_compiler__b"; then |
9896 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9897 |
else |
9898 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9899 |
fi |
9900 |
|
9901 |
;; |
9902 |
esac |
9903 |
fi |
9904 |
if test no = "$with_gnu_ld"; then |
9905 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9906 |
hardcode_libdir_separator=: |
9907 |
|
9908 |
case $host_cpu in |
9909 |
hppa*64*|ia64*) |
9910 |
hardcode_direct=no |
9911 |
hardcode_shlibpath_var=no |
9912 |
;; |
9913 |
*) |
9914 |
hardcode_direct=yes |
9915 |
hardcode_direct_absolute=yes |
9916 |
export_dynamic_flag_spec='$wl-E' |
9917 |
|
9918 |
# hardcode_minus_L: Not really in the search PATH, |
9919 |
# but as the default location of the library. |
9920 |
hardcode_minus_L=yes |
9921 |
;; |
9922 |
esac |
9923 |
fi |
9924 |
;; |
9925 |
|
9926 |
irix5* | irix6* | nonstopux*) |
9927 |
if test yes = "$GCC"; then |
9928 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
9929 |
# Try to use the -exported_symbol ld option, if it does not |
9930 |
# work, assume that -exports_file does not work either and |
9931 |
# implicitly export all symbols. |
9932 |
# This should be the same for all languages, so no per-tag cache variable. |
9933 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
9934 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
9935 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
9936 |
$as_echo_n "(cached) " >&6 |
9937 |
else |
9938 |
save_LDFLAGS=$LDFLAGS |
9939 |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
9940 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9941 |
/* end confdefs.h. */ |
9942 |
int foo (void) { return 0; } |
9943 |
_ACEOF |
9944 |
if ac_fn_c_try_link "$LINENO"; then : |
9945 |
lt_cv_irix_exported_symbol=yes |
9946 |
else |
9947 |
lt_cv_irix_exported_symbol=no |
9948 |
fi |
9949 |
rm -f core conftest.err conftest.$ac_objext \ |
9950 |
conftest$ac_exeext conftest.$ac_ext |
9951 |
LDFLAGS=$save_LDFLAGS |
9952 |
fi |
9953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
9954 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
9955 |
if test yes = "$lt_cv_irix_exported_symbol"; then |
9956 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
9957 |
fi |
9958 |
else |
9959 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
9960 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
9961 |
fi |
9962 |
archive_cmds_need_lc='no' |
9963 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9964 |
hardcode_libdir_separator=: |
9965 |
inherit_rpath=yes |
9966 |
link_all_deplibs=yes |
9967 |
;; |
9968 |
|
9969 |
linux*) |
9970 |
case $cc_basename in |
9971 |
tcc*) |
9972 |
# Fabrice Bellard et al's Tiny C Compiler |
9973 |
ld_shlibs=yes |
9974 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9975 |
;; |
9976 |
esac |
9977 |
;; |
9978 |
|
9979 |
netbsd*) |
9980 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9981 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
9982 |
else |
9983 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
9984 |
fi |
9985 |
hardcode_libdir_flag_spec='-R$libdir' |
9986 |
hardcode_direct=yes |
9987 |
hardcode_shlibpath_var=no |
9988 |
;; |
9989 |
|
9990 |
newsos6) |
9991 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9992 |
hardcode_direct=yes |
9993 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9994 |
hardcode_libdir_separator=: |
9995 |
hardcode_shlibpath_var=no |
9996 |
;; |
9997 |
|
9998 |
*nto* | *qnx*) |
9999 |
;; |
10000 |
|
10001 |
openbsd* | bitrig*) |
10002 |
if test -f /usr/libexec/ld.so; then |
10003 |
hardcode_direct=yes |
10004 |
hardcode_shlibpath_var=no |
10005 |
hardcode_direct_absolute=yes |
10006 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
10007 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10008 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10009 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10010 |
export_dynamic_flag_spec='$wl-E' |
10011 |
else |
10012 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10013 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10014 |
fi |
10015 |
else |
10016 |
ld_shlibs=no |
10017 |
fi |
10018 |
;; |
10019 |
|
10020 |
os2*) |
10021 |
hardcode_libdir_flag_spec='-L$libdir' |
10022 |
hardcode_minus_L=yes |
10023 |
allow_undefined_flag=unsupported |
10024 |
shrext_cmds=.dll |
10025 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10026 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10027 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10028 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10029 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
10030 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10031 |
emximp -o $lib $output_objdir/$libname.def' |
10032 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10033 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10034 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10035 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10036 |
prefix_cmds="$SED"~ |
10037 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
10038 |
prefix_cmds="$prefix_cmds -e 1d"; |
10039 |
fi~ |
10040 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
10041 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
10042 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10043 |
emximp -o $lib $output_objdir/$libname.def' |
10044 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
10045 |
enable_shared_with_static_runtimes=yes |
10046 |
;; |
10047 |
|
10048 |
osf3*) |
10049 |
if test yes = "$GCC"; then |
10050 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10051 |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
10052 |
else |
10053 |
allow_undefined_flag=' -expect_unresolved \*' |
10054 |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
10055 |
fi |
10056 |
archive_cmds_need_lc='no' |
10057 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10058 |
hardcode_libdir_separator=: |
10059 |
;; |
10060 |
|
10061 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
10062 |
if test yes = "$GCC"; then |
10063 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10064 |
archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
10065 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10066 |
else |
10067 |
allow_undefined_flag=' -expect_unresolved \*' |
10068 |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
10069 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
10070 |
$CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' |
10071 |
|
10072 |
# Both c and cxx compiler support -rpath directly |
10073 |
hardcode_libdir_flag_spec='-rpath $libdir' |
10074 |
fi |
10075 |
archive_cmds_need_lc='no' |
10076 |
hardcode_libdir_separator=: |
10077 |
;; |
10078 |
|
10079 |
solaris*) |
10080 |
no_undefined_flag=' -z defs' |
10081 |
if test yes = "$GCC"; then |
10082 |
wlarc='$wl' |
10083 |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10084 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10085 |
$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10086 |
else |
10087 |
case `$CC -V 2>&1` in |
10088 |
*"Compilers 5.0"*) |
10089 |
wlarc='' |
10090 |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10091 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10092 |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10093 |
;; |
10094 |
*) |
10095 |
wlarc='$wl' |
10096 |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10097 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10098 |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10099 |
;; |
10100 |
esac |
10101 |
fi |
10102 |
hardcode_libdir_flag_spec='-R$libdir' |
10103 |
hardcode_shlibpath_var=no |
10104 |
case $host_os in |
10105 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
10106 |
*) |
10107 |
# The compiler driver will combine and reorder linker options, |
10108 |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
10109 |
# but is careful enough not to reorder. |
10110 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10111 |
if test yes = "$GCC"; then |
10112 |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
10113 |
else |
10114 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
10115 |
fi |
10116 |
;; |
10117 |
esac |
10118 |
link_all_deplibs=yes |
10119 |
;; |
10120 |
|
10121 |
sunos4*) |
10122 |
if test sequent = "$host_vendor"; then |
10123 |
# Use $CC to link under sequent, because it throws in some extra .o |
10124 |
# files that make .init and .fini sections work. |
10125 |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10126 |
else |
10127 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
10128 |
fi |
10129 |
hardcode_libdir_flag_spec='-L$libdir' |
10130 |
hardcode_direct=yes |
10131 |
hardcode_minus_L=yes |
10132 |
hardcode_shlibpath_var=no |
10133 |
;; |
10134 |
|
10135 |
sysv4) |
10136 |
case $host_vendor in |
10137 |
sni) |
10138 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10139 |
hardcode_direct=yes # is this really true??? |
10140 |
;; |
10141 |
siemens) |
10142 |
## LD is ld it makes a PLAMLIB |
10143 |
## CC just makes a GrossModule. |
10144 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10145 |
reload_cmds='$CC -r -o $output$reload_objs' |
10146 |
hardcode_direct=no |
10147 |
;; |
10148 |
motorola) |
10149 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10150 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
10151 |
;; |
10152 |
esac |
10153 |
runpath_var='LD_RUN_PATH' |
10154 |
hardcode_shlibpath_var=no |
10155 |
;; |
10156 |
|
10157 |
sysv4.3*) |
10158 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10159 |
hardcode_shlibpath_var=no |
10160 |
export_dynamic_flag_spec='-Bexport' |
10161 |
;; |
10162 |
|
10163 |
sysv4*MP*) |
10164 |
if test -d /usr/nec; then |
10165 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10166 |
hardcode_shlibpath_var=no |
10167 |
runpath_var=LD_RUN_PATH |
10168 |
hardcode_runpath_var=yes |
10169 |
ld_shlibs=yes |
10170 |
fi |
10171 |
;; |
10172 |
|
10173 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10174 |
no_undefined_flag='$wl-z,text' |
10175 |
archive_cmds_need_lc=no |
10176 |
hardcode_shlibpath_var=no |
10177 |
runpath_var='LD_RUN_PATH' |
10178 |
|
10179 |
if test yes = "$GCC"; then |
10180 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10181 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10182 |
else |
10183 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10184 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10185 |
fi |
10186 |
;; |
10187 |
|
10188 |
sysv5* | sco3.2v5* | sco5v6*) |
10189 |
# Note: We CANNOT use -z defs as we might desire, because we do not |
10190 |
# link with -lc, and that would cause any symbols used from libc to |
10191 |
# always be unresolved, which means just about no library would |
10192 |
# ever link correctly. If we're not using GNU ld we use -z text |
10193 |
# though, which does catch some bad symbols but isn't as heavy-handed |
10194 |
# as -z defs. |
10195 |
no_undefined_flag='$wl-z,text' |
10196 |
allow_undefined_flag='$wl-z,nodefs' |
10197 |
archive_cmds_need_lc=no |
10198 |
hardcode_shlibpath_var=no |
10199 |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
10200 |
hardcode_libdir_separator=':' |
10201 |
link_all_deplibs=yes |
10202 |
export_dynamic_flag_spec='$wl-Bexport' |
10203 |
runpath_var='LD_RUN_PATH' |
10204 |
|
10205 |
if test yes = "$GCC"; then |
10206 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10207 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10208 |
else |
10209 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10210 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10211 |
fi |
10212 |
;; |
10213 |
|
10214 |
uts4*) |
10215 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10216 |
hardcode_libdir_flag_spec='-L$libdir' |
10217 |
hardcode_shlibpath_var=no |
10218 |
;; |
10219 |
|
10220 |
*) |
10221 |
ld_shlibs=no |
10222 |
;; |
10223 |
esac |
10224 |
|
10225 |
if test sni = "$host_vendor"; then |
10226 |
case $host in |
10227 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
10228 |
export_dynamic_flag_spec='$wl-Blargedynsym' |
10229 |
;; |
10230 |
esac |
10231 |
fi |
10232 |
fi |
10233 |
|
10234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10235 |
$as_echo "$ld_shlibs" >&6; } |
10236 |
test no = "$ld_shlibs" && can_build_shared=no |
10237 |
|
10238 |
with_gnu_ld=$with_gnu_ld |
10239 |
|
10240 |
|
10241 |
|
10242 |
|
10243 |
|
10244 |
|
10245 |
|
10246 |
|
10247 |
|
10248 |
|
10249 |
|
10250 |
|
10251 |
|
10252 |
|
10253 |
|
10254 |
# |
10255 |
# Do we need to explicitly link libc? |
10256 |
# |
10257 |
case "x$archive_cmds_need_lc" in |
10258 |
x|xyes) |
10259 |
# Assume -lc should be added |
10260 |
archive_cmds_need_lc=yes |
10261 |
|
10262 |
if test yes,yes = "$GCC,$enable_shared"; then |
10263 |
case $archive_cmds in |
10264 |
*'~'*) |
10265 |
# FIXME: we may have to deal with multi-command sequences. |
10266 |
;; |
10267 |
'$CC '*) |
10268 |
# Test whether the compiler implicitly links with -lc since on some |
10269 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
10270 |
# to ld, don't add -lc before -lgcc. |
10271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10272 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
10273 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10274 |
$as_echo_n "(cached) " >&6 |
10275 |
else |
10276 |
$RM conftest* |
10277 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
10278 |
|
10279 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10280 |
(eval $ac_compile) 2>&5 |
10281 |
ac_status=$? |
10282 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10283 |
test $ac_status = 0; } 2>conftest.err; then |
10284 |
soname=conftest |
10285 |
lib=conftest |
10286 |
libobjs=conftest.$ac_objext |
10287 |
deplibs= |
10288 |
wl=$lt_prog_compiler_wl |
10289 |
pic_flag=$lt_prog_compiler_pic |
10290 |
compiler_flags=-v |
10291 |
linker_flags=-v |
10292 |
verstring= |
10293 |
output_objdir=. |
10294 |
libname=conftest |
10295 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
10296 |
allow_undefined_flag= |
10297 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
10298 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10299 |
ac_status=$? |
10300 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10301 |
test $ac_status = 0; } |
10302 |
then |
10303 |
lt_cv_archive_cmds_need_lc=no |
10304 |
else |
10305 |
lt_cv_archive_cmds_need_lc=yes |
10306 |
fi |
10307 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
10308 |
else |
10309 |
cat conftest.err 1>&5 |
10310 |
fi |
10311 |
$RM conftest* |
10312 |
|
10313 |
fi |
10314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10315 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
10316 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
10317 |
;; |
10318 |
esac |
10319 |
fi |
10320 |
;; |
10321 |
esac |
10322 |
|
10323 |
|
10324 |
|
10325 |
|
10326 |
|
10327 |
|
10328 |
|
10329 |
|
10330 |
|
10331 |
|
10332 |
|
10333 |
|
10334 |
|
10335 |
|
10336 |
|
10337 |
|
10338 |
|
10339 |
|
10340 |
|
10341 |
|
10342 |
|
10343 |
|
10344 |
|
10345 |
|
10346 |
|
10347 |
|
10348 |
|
10349 |
|
10350 |
|
10351 |
|
10352 |
|
10353 |
|
10354 |
|
10355 |
|
10356 |
|
10357 |
|
10358 |
|
10359 |
|
10360 |
|
10361 |
|
10362 |
|
10363 |
|
10364 |
|
10365 |
|
10366 |
|
10367 |
|
10368 |
|
10369 |
|
10370 |
|
10371 |
|
10372 |
|
10373 |
|
10374 |
|
10375 |
|
10376 |
|
10377 |
|
10378 |
|
10379 |
|
10380 |
|
10381 |
|
10382 |
|
10383 |
|
10384 |
|
10385 |
|
10386 |
|
10387 |
|
10388 |
|
10389 |
|
10390 |
|
10391 |
|
10392 |
|
10393 |
|
10394 |
|
10395 |
|
10396 |
|
10397 |
|
10398 |
|
10399 |
|
10400 |
|
10401 |
|
10402 |
|
10403 |
|
10404 |
|
10405 |
|
10406 |
|
10407 |
|
10408 |
|
10409 |
|
10410 |
|
10411 |
|
10412 |
|
10413 |
|
10414 |
|
10415 |
|
10416 |
|
10417 |
|
10418 |
|
10419 |
|
10420 |
|
10421 |
|
10422 |
|
10423 |
|
10424 |
|
10425 |
|
10426 |
|
10427 |
|
10428 |
|
10429 |
|
10430 |
|
10431 |
|
10432 |
|
10433 |
|
10434 |
|
10435 |
|
10436 |
|
10437 |
|
10438 |
|
10439 |
|
10440 |
|
10441 |
|
10442 |
|
10443 |
|
10444 |
|
10445 |
|
10446 |
|
10447 |
|
10448 |
|
10449 |
|
10450 |
|
10451 |
|
10452 |
|
10453 |
|
10454 |
|
10455 |
|
10456 |
|
10457 |
|
10458 |
|
10459 |
|
10460 |
|
10461 |
|
10462 |
|
10463 |
|
10464 |
|
10465 |
|
10466 |
|
10467 |
|
10468 |
|
10469 |
|
10470 |
|
10471 |
|
10472 |
|
10473 |
|
10474 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10475 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
10476 |
|
10477 |
if test yes = "$GCC"; then |
10478 |
case $host_os in |
10479 |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10480 |
*) lt_awk_arg='/^libraries:/' ;; |
10481 |
esac |
10482 |
case $host_os in |
10483 |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10484 |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
10485 |
esac |
10486 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
10487 |
case $lt_search_path_spec in |
10488 |
*\;*) |
10489 |
# if the path contains ";" then we assume it to be the separator |
10490 |
# otherwise default to the standard path separator (i.e. ":") - it is |
10491 |
# assumed that no part of a normal pathname contains ";" but that should |
10492 |
# okay in the real world where ";" in dirpaths is itself problematic. |
10493 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10494 |
;; |
10495 |
*) |
10496 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
10497 |
;; |
10498 |
esac |
10499 |
# Ok, now we have the path, separated by spaces, we can step through it |
10500 |
# and add multilib dir if necessary... |
10501 |
lt_tmp_lt_search_path_spec= |
10502 |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10503 |
# ...but if some path component already ends with the multilib dir we assume |
10504 |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
10505 |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
10506 |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
10507 |
lt_multi_os_dir= |
10508 |
;; |
10509 |
esac |
10510 |
for lt_sys_path in $lt_search_path_spec; do |
10511 |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10512 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
10513 |
elif test -n "$lt_multi_os_dir"; then |
10514 |
test -d "$lt_sys_path" && \ |
10515 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10516 |
fi |
10517 |
done |
10518 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10519 |
BEGIN {RS = " "; FS = "/|\n";} { |
10520 |
lt_foo = ""; |
10521 |
lt_count = 0; |
10522 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
10523 |
if ($lt_i != "" && $lt_i != ".") { |
10524 |
if ($lt_i == "..") { |
10525 |
lt_count++; |
10526 |
} else { |
10527 |
if (lt_count == 0) { |
10528 |
lt_foo = "/" $lt_i lt_foo; |
10529 |
} else { |
10530 |
lt_count--; |
10531 |
} |
10532 |
} |
10533 |
} |
10534 |
} |
10535 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
10536 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10537 |
}'` |
10538 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
10539 |
# for these hosts. |
10540 |
case $host_os in |
10541 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
10542 |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
10543 |
esac |
10544 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
10545 |
else |
10546 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10547 |
fi |
10548 |
library_names_spec= |
10549 |
libname_spec='lib$name' |
10550 |
soname_spec= |
10551 |
shrext_cmds=.so |
10552 |
postinstall_cmds= |
10553 |
postuninstall_cmds= |
10554 |
finish_cmds= |
10555 |
finish_eval= |
10556 |
shlibpath_var= |
10557 |
shlibpath_overrides_runpath=unknown |
10558 |
version_type=none |
10559 |
dynamic_linker="$host_os ld.so" |
10560 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
10561 |
need_lib_prefix=unknown |
10562 |
hardcode_into_libs=no |
10563 |
|
10564 |
# when you set need_version to no, make sure it does not cause -set_version |
10565 |
# flags to be left without arguments |
10566 |
need_version=unknown |
10567 |
|
10568 |
case $host_os in |
10569 |
aix3*) |
10570 |
version_type=linux # correct to gnu/linux during the next big refactor |
10571 |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
10572 |
shlibpath_var=LIBPATH |
10573 |
|
10574 |
# AIX 3 has no versioning support, so we append a major version to the name. |
10575 |
soname_spec='$libname$release$shared_ext$major' |
10576 |
;; |
10577 |
|
10578 |
aix[4-9]*) |
10579 |
version_type=linux # correct to gnu/linux during the next big refactor |
10580 |
need_lib_prefix=no |
10581 |
need_version=no |
10582 |
hardcode_into_libs=yes |
10583 |
if test ia64 = "$host_cpu"; then |
10584 |
# AIX 5 supports IA64 |
10585 |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
10586 |
shlibpath_var=LD_LIBRARY_PATH |
10587 |
else |
10588 |
# With GCC up to 2.95.x, collect2 would create an import file |
10589 |
# for dependence libraries. The import file would start with |
10590 |
# the line '#! .'. This would cause the generated library to |
10591 |
# depend on '.', always an invalid library. This was fixed in |
10592 |
# development snapshots of GCC prior to 3.0. |
10593 |
case $host_os in |
10594 |
aix4 | aix4.[01] | aix4.[01].*) |
10595 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
10596 |
echo ' yes ' |
10597 |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
10598 |
: |
10599 |
else |
10600 |
can_build_shared=no |
10601 |
fi |
10602 |
;; |
10603 |
esac |
10604 |
# Using Import Files as archive members, it is possible to support |
10605 |
# filename-based versioning of shared library archives on AIX. While |
10606 |
# this would work for both with and without runtime linking, it will |
10607 |
# prevent static linking of such archives. So we do filename-based |
10608 |
# shared library versioning with .so extension only, which is used |
10609 |
# when both runtime linking and shared linking is enabled. |
10610 |
# Unfortunately, runtime linking may impact performance, so we do |
10611 |
# not want this to be the default eventually. Also, we use the |
10612 |
# versioned .so libs for executables only if there is the -brtl |
10613 |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
10614 |
# To allow for filename-based versioning support, we need to create |
10615 |
# libNAME.so.V as an archive file, containing: |
10616 |
# *) an Import File, referring to the versioned filename of the |
10617 |
# archive as well as the shared archive member, telling the |
10618 |
# bitwidth (32 or 64) of that shared object, and providing the |
10619 |
# list of exported symbols of that shared object, eventually |
10620 |
# decorated with the 'weak' keyword |
10621 |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
10622 |
# it being seen by the linker. |
10623 |
# At run time we better use the real file rather than another symlink, |
10624 |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
10625 |
|
10626 |
case $with_aix_soname,$aix_use_runtimelinking in |
10627 |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
10628 |
# soname into executable. Probably we can add versioning support to |
10629 |
# collect2, so additional links can be useful in future. |
10630 |
aix,yes) # traditional libtool |
10631 |
dynamic_linker='AIX unversionable lib.so' |
10632 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10633 |
# instead of lib<name>.a to let people know that these are not |
10634 |
# typical AIX shared libraries. |
10635 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10636 |
;; |
10637 |
aix,no) # traditional AIX only |
10638 |
dynamic_linker='AIX lib.a(lib.so.V)' |
10639 |
# We preserve .a as extension for shared libraries through AIX4.2 |
10640 |
# and later when we are not doing run time linking. |
10641 |
library_names_spec='$libname$release.a $libname.a' |
10642 |
soname_spec='$libname$release$shared_ext$major' |
10643 |
;; |
10644 |
svr4,*) # full svr4 only |
10645 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
10646 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10647 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10648 |
shlibpath_overrides_runpath=yes |
10649 |
;; |
10650 |
*,yes) # both, prefer svr4 |
10651 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
10652 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10653 |
# unpreferred sharedlib libNAME.a needs extra handling |
10654 |
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
10655 |
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
10656 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10657 |
shlibpath_overrides_runpath=yes |
10658 |
;; |
10659 |
*,no) # both, prefer aix |
10660 |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
10661 |
library_names_spec='$libname$release.a $libname.a' |
10662 |
soname_spec='$libname$release$shared_ext$major' |
10663 |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
10664 |
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
10665 |
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
10666 |
;; |
10667 |
esac |
10668 |
shlibpath_var=LIBPATH |
10669 |
fi |
10670 |
;; |
10671 |
|
10672 |
amigaos*) |
10673 |
case $host_cpu in |
10674 |
powerpc) |
10675 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
10676 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
10677 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10678 |
;; |
10679 |
m68k) |
10680 |
library_names_spec='$libname.ixlibrary $libname.a' |
10681 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
10682 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' |
10683 |
;; |
10684 |
esac |
10685 |
;; |
10686 |
|
10687 |
beos*) |
10688 |
library_names_spec='$libname$shared_ext' |
10689 |
dynamic_linker="$host_os ld.so" |
10690 |
shlibpath_var=LIBRARY_PATH |
10691 |
;; |
10692 |
|
10693 |
bsdi[45]*) |
10694 |
version_type=linux # correct to gnu/linux during the next big refactor |
10695 |
need_version=no |
10696 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10697 |
soname_spec='$libname$release$shared_ext$major' |
10698 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10699 |
shlibpath_var=LD_LIBRARY_PATH |
10700 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
10701 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
10702 |
# the default ld.so.conf also contains /usr/contrib/lib and |
10703 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
10704 |
# libtool to hard-code these into programs |
10705 |
;; |
10706 |
|
10707 |
cygwin* | mingw* | pw32* | cegcc*) |
10708 |
version_type=windows |
10709 |
shrext_cmds=.dll |
10710 |
need_version=no |
10711 |
need_lib_prefix=no |
10712 |
|
10713 |
case $GCC,$cc_basename in |
10714 |
yes,*) |
10715 |
# gcc |
10716 |
library_names_spec='$libname.dll.a' |
10717 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10718 |
postinstall_cmds='base_file=`basename \$file`~ |
10719 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
10720 |
dldir=$destdir/`dirname \$dlpath`~ |
10721 |
test -d \$dldir || mkdir -p \$dldir~ |
10722 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
10723 |
chmod a+x \$dldir/$dlname~ |
10724 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
10725 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
10726 |
fi' |
10727 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10728 |
dlpath=$dir/\$dldll~ |
10729 |
$RM \$dlpath' |
10730 |
shlibpath_overrides_runpath=yes |
10731 |
|
10732 |
case $host_os in |
10733 |
cygwin*) |
10734 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10735 |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10736 |
|
10737 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
10738 |
;; |
10739 |
mingw* | cegcc*) |
10740 |
# MinGW DLLs use traditional 'lib' prefix |
10741 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10742 |
;; |
10743 |
pw32*) |
10744 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
10745 |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10746 |
;; |
10747 |
esac |
10748 |
dynamic_linker='Win32 ld.exe' |
10749 |
;; |
10750 |
|
10751 |
*,cl*) |
10752 |
# Native MSVC |
10753 |
libname_spec='$name' |
10754 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10755 |
library_names_spec='$libname.dll.lib' |
10756 |
|
10757 |
case $build_os in |
10758 |
mingw*) |
10759 |
sys_lib_search_path_spec= |
10760 |
lt_save_ifs=$IFS |
10761 |
IFS=';' |
10762 |
for lt_path in $LIB |
10763 |
do |
10764 |
IFS=$lt_save_ifs |
10765 |
# Let DOS variable expansion print the short 8.3 style file name. |
10766 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
10767 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
10768 |
done |
10769 |
IFS=$lt_save_ifs |
10770 |
# Convert to MSYS style. |
10771 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
10772 |
;; |
10773 |
cygwin*) |
10774 |
# Convert to unix form, then to dos form, then back to unix form |
10775 |
# but this time dos style (no spaces!) so that the unix form looks |
10776 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
10777 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
10778 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
10779 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10780 |
;; |
10781 |
*) |
10782 |
sys_lib_search_path_spec=$LIB |
10783 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10784 |
# It is most probably a Windows format PATH. |
10785 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
10786 |
else |
10787 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10788 |
fi |
10789 |
# FIXME: find the short name or the path components, as spaces are |
10790 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
10791 |
;; |
10792 |
esac |
10793 |
|
10794 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10795 |
postinstall_cmds='base_file=`basename \$file`~ |
10796 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
10797 |
dldir=$destdir/`dirname \$dlpath`~ |
10798 |
test -d \$dldir || mkdir -p \$dldir~ |
10799 |
$install_prog $dir/$dlname \$dldir/$dlname' |
10800 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10801 |
dlpath=$dir/\$dldll~ |
10802 |
$RM \$dlpath' |
10803 |
shlibpath_overrides_runpath=yes |
10804 |
dynamic_linker='Win32 link.exe' |
10805 |
;; |
10806 |
|
10807 |
*) |
10808 |
# Assume MSVC wrapper |
10809 |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
10810 |
dynamic_linker='Win32 ld.exe' |
10811 |
;; |
10812 |
esac |
10813 |
# FIXME: first we should search . and the directory the executable is in |
10814 |
shlibpath_var=PATH |
10815 |
;; |
10816 |
|
10817 |
darwin* | rhapsody*) |
10818 |
dynamic_linker="$host_os dyld" |
10819 |
version_type=darwin |
10820 |
need_lib_prefix=no |
10821 |
need_version=no |
10822 |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10823 |
soname_spec='$libname$release$major$shared_ext' |
10824 |
shlibpath_overrides_runpath=yes |
10825 |
shlibpath_var=DYLD_LIBRARY_PATH |
10826 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
10827 |
|
10828 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10829 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10830 |
;; |
10831 |
|
10832 |
dgux*) |
10833 |
version_type=linux # correct to gnu/linux during the next big refactor |
10834 |
need_lib_prefix=no |
10835 |
need_version=no |
10836 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10837 |
soname_spec='$libname$release$shared_ext$major' |
10838 |
shlibpath_var=LD_LIBRARY_PATH |
10839 |
;; |
10840 |
|
10841 |
freebsd* | dragonfly*) |
10842 |
# DragonFly does not have aout. When/if they implement a new |
10843 |
# versioning mechanism, adjust this. |
10844 |
if test -x /usr/bin/objformat; then |
10845 |
objformat=`/usr/bin/objformat` |
10846 |
else |
10847 |
case $host_os in |
10848 |
freebsd[23].*) objformat=aout ;; |
10849 |
*) objformat=elf ;; |
10850 |
esac |
10851 |
fi |
10852 |
version_type=freebsd-$objformat |
10853 |
case $version_type in |
10854 |
freebsd-elf*) |
10855 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10856 |
need_version=no |
10857 |
need_lib_prefix=no |
10858 |
;; |
10859 |
freebsd-*) |
10860 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
10861 |
need_version=yes |
10862 |
;; |
10863 |
esac |
10864 |
shlibpath_var=LD_LIBRARY_PATH |
10865 |
case $host_os in |
10866 |
freebsd2.*) |
10867 |
shlibpath_overrides_runpath=yes |
10868 |
;; |
10869 |
freebsd3.[01]* | freebsdelf3.[01]*) |
10870 |
shlibpath_overrides_runpath=yes |
10871 |
hardcode_into_libs=yes |
10872 |
;; |
10873 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
10874 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
10875 |
shlibpath_overrides_runpath=no |
10876 |
hardcode_into_libs=yes |
10877 |
;; |
10878 |
*) # from 4.6 on, and DragonFly |
10879 |
shlibpath_overrides_runpath=yes |
10880 |
hardcode_into_libs=yes |
10881 |
;; |
10882 |
esac |
10883 |
;; |
10884 |
|
10885 |
haiku*) |
10886 |
version_type=linux # correct to gnu/linux during the next big refactor |
10887 |
need_lib_prefix=no |
10888 |
need_version=no |
10889 |
dynamic_linker="$host_os runtime_loader" |
10890 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10891 |
soname_spec='$libname$release$shared_ext$major' |
10892 |
shlibpath_var=LIBRARY_PATH |
10893 |
shlibpath_overrides_runpath=no |
10894 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
10895 |
hardcode_into_libs=yes |
10896 |
;; |
10897 |
|
10898 |
hpux9* | hpux10* | hpux11*) |
10899 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
10900 |
# link against other versions. |
10901 |
version_type=sunos |
10902 |
need_lib_prefix=no |
10903 |
need_version=no |
10904 |
case $host_cpu in |
10905 |
ia64*) |
10906 |
shrext_cmds='.so' |
10907 |
hardcode_into_libs=yes |
10908 |
dynamic_linker="$host_os dld.so" |
10909 |
shlibpath_var=LD_LIBRARY_PATH |
10910 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10911 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10912 |
soname_spec='$libname$release$shared_ext$major' |
10913 |
if test 32 = "$HPUX_IA64_MODE"; then |
10914 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
10915 |
else |
10916 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
10917 |
fi |
10918 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10919 |
;; |
10920 |
hppa*64*) |
10921 |
shrext_cmds='.sl' |
10922 |
hardcode_into_libs=yes |
10923 |
dynamic_linker="$host_os dld.sl" |
10924 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
10925 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10926 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10927 |
soname_spec='$libname$release$shared_ext$major' |
10928 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10929 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10930 |
;; |
10931 |
*) |
10932 |
shrext_cmds='.sl' |
10933 |
dynamic_linker="$host_os dld.sl" |
10934 |
shlibpath_var=SHLIB_PATH |
10935 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
10936 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10937 |
soname_spec='$libname$release$shared_ext$major' |
10938 |
;; |
10939 |
esac |
10940 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
10941 |
postinstall_cmds='chmod 555 $lib' |
10942 |
# or fails outright, so override atomically: |
10943 |
install_override_mode=555 |
10944 |
;; |
10945 |
|
10946 |
interix[3-9]*) |
10947 |
version_type=linux # correct to gnu/linux during the next big refactor |
10948 |
need_lib_prefix=no |
10949 |
need_version=no |
10950 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10951 |
soname_spec='$libname$release$shared_ext$major' |
10952 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10953 |
shlibpath_var=LD_LIBRARY_PATH |
10954 |
shlibpath_overrides_runpath=no |
10955 |
hardcode_into_libs=yes |
10956 |
;; |
10957 |
|
10958 |
irix5* | irix6* | nonstopux*) |
10959 |
case $host_os in |
10960 |
nonstopux*) version_type=nonstopux ;; |
10961 |
*) |
10962 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
10963 |
version_type=linux # correct to gnu/linux during the next big refactor |
10964 |
else |
10965 |
version_type=irix |
10966 |
fi ;; |
10967 |
esac |
10968 |
need_lib_prefix=no |
10969 |
need_version=no |
10970 |
soname_spec='$libname$release$shared_ext$major' |
10971 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
10972 |
case $host_os in |
10973 |
irix5* | nonstopux*) |
10974 |
libsuff= shlibsuff= |
10975 |
;; |
10976 |
*) |
10977 |
case $LD in # libtool.m4 will add one of these switches to LD |
10978 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
10979 |
libsuff= shlibsuff= libmagic=32-bit;; |
10980 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
10981 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
10982 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
10983 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
10984 |
*) libsuff= shlibsuff= libmagic=never-match;; |
10985 |
esac |
10986 |
;; |
10987 |
esac |
10988 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
10989 |
shlibpath_overrides_runpath=no |
10990 |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10991 |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
10992 |
hardcode_into_libs=yes |
10993 |
;; |
10994 |
|
10995 |
# No shared lib support for Linux oldld, aout, or coff. |
10996 |
linux*oldld* | linux*aout* | linux*coff*) |
10997 |
dynamic_linker=no |
10998 |
;; |
10999 |
|
11000 |
linux*android*) |
11001 |
version_type=none # Android doesn't support versioned libraries. |
11002 |
need_lib_prefix=no |
11003 |
need_version=no |
11004 |
library_names_spec='$libname$release$shared_ext' |
11005 |
soname_spec='$libname$release$shared_ext' |
11006 |
finish_cmds= |
11007 |
shlibpath_var=LD_LIBRARY_PATH |
11008 |
shlibpath_overrides_runpath=yes |
11009 |
|
11010 |
# This implies no fast_install, which is unacceptable. |
11011 |
# Some rework will be needed to allow for fast_install |
11012 |
# before this can be enabled. |
11013 |
hardcode_into_libs=yes |
11014 |
|
11015 |
dynamic_linker='Android linker' |
11016 |
# Don't embed -rpath directories since the linker doesn't support them. |
11017 |
hardcode_libdir_flag_spec='-L$libdir' |
11018 |
;; |
11019 |
|
11020 |
# This must be glibc/ELF. |
11021 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
11022 |
version_type=linux # correct to gnu/linux during the next big refactor |
11023 |
need_lib_prefix=no |
11024 |
need_version=no |
11025 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11026 |
soname_spec='$libname$release$shared_ext$major' |
11027 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11028 |
shlibpath_var=LD_LIBRARY_PATH |
11029 |
shlibpath_overrides_runpath=no |
11030 |
|
11031 |
# Some binutils ld are patched to set DT_RUNPATH |
11032 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11033 |
$as_echo_n "(cached) " >&6 |
11034 |
else |
11035 |
lt_cv_shlibpath_overrides_runpath=no |
11036 |
save_LDFLAGS=$LDFLAGS |
11037 |
save_libdir=$libdir |
11038 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
11039 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
11040 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11041 |
/* end confdefs.h. */ |
11042 |
|
11043 |
int |
11044 |
main () |
11045 |
{ |
11046 |
|
11047 |
; |
11048 |
return 0; |
11049 |
} |
11050 |
_ACEOF |
11051 |
if ac_fn_c_try_link "$LINENO"; then : |
11052 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11053 |
lt_cv_shlibpath_overrides_runpath=yes |
11054 |
fi |
11055 |
fi |
11056 |
rm -f core conftest.err conftest.$ac_objext \ |
11057 |
conftest$ac_exeext conftest.$ac_ext |
11058 |
LDFLAGS=$save_LDFLAGS |
11059 |
libdir=$save_libdir |
11060 |
|
11061 |
fi |
11062 |
|
11063 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
11064 |
|
11065 |
# This implies no fast_install, which is unacceptable. |
11066 |
# Some rework will be needed to allow for fast_install |
11067 |
# before this can be enabled. |
11068 |
hardcode_into_libs=yes |
11069 |
|
11070 |
# Append ld.so.conf contents to the search path |
11071 |
if test -f /etc/ld.so.conf; then |
11072 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
11073 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11074 |
fi |
11075 |
|
11076 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
11077 |
# powerpc, because MkLinux only supported shared libraries with the |
11078 |
# GNU dynamic linker. Since this was broken with cross compilers, |
11079 |
# most powerpc-linux boxes support dynamic linking these days and |
11080 |
# people can always --disable-shared, the test was removed, and we |
11081 |
# assume the GNU/Linux dynamic linker is in use. |
11082 |
dynamic_linker='GNU/Linux ld.so' |
11083 |
;; |
11084 |
|
11085 |
netbsd*) |
11086 |
version_type=sunos |
11087 |
need_lib_prefix=no |
11088 |
need_version=no |
11089 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
11090 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11091 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11092 |
dynamic_linker='NetBSD (a.out) ld.so' |
11093 |
else |
11094 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11095 |
soname_spec='$libname$release$shared_ext$major' |
11096 |
dynamic_linker='NetBSD ld.elf_so' |
11097 |
fi |
11098 |
shlibpath_var=LD_LIBRARY_PATH |
11099 |
shlibpath_overrides_runpath=yes |
11100 |
hardcode_into_libs=yes |
11101 |
;; |
11102 |
|
11103 |
newsos6) |
11104 |
version_type=linux # correct to gnu/linux during the next big refactor |
11105 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11106 |
shlibpath_var=LD_LIBRARY_PATH |
11107 |
shlibpath_overrides_runpath=yes |
11108 |
;; |
11109 |
|
11110 |
*nto* | *qnx*) |
11111 |
version_type=qnx |
11112 |
need_lib_prefix=no |
11113 |
need_version=no |
11114 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11115 |
soname_spec='$libname$release$shared_ext$major' |
11116 |
shlibpath_var=LD_LIBRARY_PATH |
11117 |
shlibpath_overrides_runpath=no |
11118 |
hardcode_into_libs=yes |
11119 |
dynamic_linker='ldqnx.so' |
11120 |
;; |
11121 |
|
11122 |
openbsd* | bitrig*) |
11123 |
version_type=sunos |
11124 |
sys_lib_dlsearch_path_spec=/usr/lib |
11125 |
need_lib_prefix=no |
11126 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11127 |
need_version=no |
11128 |
else |
11129 |
need_version=yes |
11130 |
fi |
11131 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11132 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11133 |
shlibpath_var=LD_LIBRARY_PATH |
11134 |
shlibpath_overrides_runpath=yes |
11135 |
;; |
11136 |
|
11137 |
os2*) |
11138 |
libname_spec='$name' |
11139 |
version_type=windows |
11140 |
shrext_cmds=.dll |
11141 |
need_version=no |
11142 |
need_lib_prefix=no |
11143 |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
11144 |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
11145 |
v=$($ECHO $release$versuffix | tr -d .-); |
11146 |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
11147 |
$ECHO $n$v`$shared_ext' |
11148 |
library_names_spec='${libname}_dll.$libext' |
11149 |
dynamic_linker='OS/2 ld.exe' |
11150 |
shlibpath_var=BEGINLIBPATH |
11151 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11152 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11153 |
postinstall_cmds='base_file=`basename \$file`~ |
11154 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
11155 |
dldir=$destdir/`dirname \$dlpath`~ |
11156 |
test -d \$dldir || mkdir -p \$dldir~ |
11157 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
11158 |
chmod a+x \$dldir/$dlname~ |
11159 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
11160 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
11161 |
fi' |
11162 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
11163 |
dlpath=$dir/\$dldll~ |
11164 |
$RM \$dlpath' |
11165 |
;; |
11166 |
|
11167 |
osf3* | osf4* | osf5*) |
11168 |
version_type=osf |
11169 |
need_lib_prefix=no |
11170 |
need_version=no |
11171 |
soname_spec='$libname$release$shared_ext$major' |
11172 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11173 |
shlibpath_var=LD_LIBRARY_PATH |
11174 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11175 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11176 |
;; |
11177 |
|
11178 |
rdos*) |
11179 |
dynamic_linker=no |
11180 |
;; |
11181 |
|
11182 |
solaris*) |
11183 |
version_type=linux # correct to gnu/linux during the next big refactor |
11184 |
need_lib_prefix=no |
11185 |
need_version=no |
11186 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11187 |
soname_spec='$libname$release$shared_ext$major' |
11188 |
shlibpath_var=LD_LIBRARY_PATH |
11189 |
shlibpath_overrides_runpath=yes |
11190 |
hardcode_into_libs=yes |
11191 |
# ldd complains unless libraries are executable |
11192 |
postinstall_cmds='chmod +x $lib' |
11193 |
;; |
11194 |
|
11195 |
sunos4*) |
11196 |
version_type=sunos |
11197 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11198 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11199 |
shlibpath_var=LD_LIBRARY_PATH |
11200 |
shlibpath_overrides_runpath=yes |
11201 |
if test yes = "$with_gnu_ld"; then |
11202 |
need_lib_prefix=no |
11203 |
fi |
11204 |
need_version=yes |
11205 |
;; |
11206 |
|
11207 |
sysv4 | sysv4.3*) |
11208 |
version_type=linux # correct to gnu/linux during the next big refactor |
11209 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11210 |
soname_spec='$libname$release$shared_ext$major' |
11211 |
shlibpath_var=LD_LIBRARY_PATH |
11212 |
case $host_vendor in |
11213 |
sni) |
11214 |
shlibpath_overrides_runpath=no |
11215 |
need_lib_prefix=no |
11216 |
runpath_var=LD_RUN_PATH |
11217 |
;; |
11218 |
siemens) |
11219 |
need_lib_prefix=no |
11220 |
;; |
11221 |
motorola) |
11222 |
need_lib_prefix=no |
11223 |
need_version=no |
11224 |
shlibpath_overrides_runpath=no |
11225 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
11226 |
;; |
11227 |
esac |
11228 |
;; |
11229 |
|
11230 |
sysv4*MP*) |
11231 |
if test -d /usr/nec; then |
11232 |
version_type=linux # correct to gnu/linux during the next big refactor |
11233 |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11234 |
soname_spec='$libname$shared_ext.$major' |
11235 |
shlibpath_var=LD_LIBRARY_PATH |
11236 |
fi |
11237 |
;; |
11238 |
|
11239 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11240 |
version_type=sco |
11241 |
need_lib_prefix=no |
11242 |
need_version=no |
11243 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11244 |
soname_spec='$libname$release$shared_ext$major' |
11245 |
shlibpath_var=LD_LIBRARY_PATH |
11246 |
shlibpath_overrides_runpath=yes |
11247 |
hardcode_into_libs=yes |
11248 |
if test yes = "$with_gnu_ld"; then |
11249 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11250 |
else |
11251 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11252 |
case $host_os in |
11253 |
sco3.2v5*) |
11254 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
11255 |
;; |
11256 |
esac |
11257 |
fi |
11258 |
sys_lib_dlsearch_path_spec='/usr/lib' |
11259 |
;; |
11260 |
|
11261 |
tpf*) |
11262 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
11263 |
version_type=linux # correct to gnu/linux during the next big refactor |
11264 |
need_lib_prefix=no |
11265 |
need_version=no |
11266 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11267 |
shlibpath_var=LD_LIBRARY_PATH |
11268 |
shlibpath_overrides_runpath=no |
11269 |
hardcode_into_libs=yes |
11270 |
;; |
11271 |
|
11272 |
uts4*) |
11273 |
version_type=linux # correct to gnu/linux during the next big refactor |
11274 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11275 |
soname_spec='$libname$release$shared_ext$major' |
11276 |
shlibpath_var=LD_LIBRARY_PATH |
11277 |
;; |
11278 |
|
11279 |
*) |
11280 |
dynamic_linker=no |
11281 |
;; |
11282 |
esac |
11283 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11284 |
$as_echo "$dynamic_linker" >&6; } |
11285 |
test no = "$dynamic_linker" && can_build_shared=no |
11286 |
|
11287 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11288 |
if test yes = "$GCC"; then |
11289 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11290 |
fi |
11291 |
|
11292 |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11293 |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
11294 |
fi |
11295 |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
11296 |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
11297 |
fi |
11298 |
|
11299 |
|
11300 |
|
11301 |
|
11302 |
|
11303 |
|
11304 |
|
11305 |
|
11306 |
|
11307 |
|
11308 |
|
11309 |
|
11310 |
|
11311 |
|
11312 |
|
11313 |
|
11314 |
|
11315 |
|
11316 |
|
11317 |
|
11318 |
|
11319 |
|
11320 |
|
11321 |
|
11322 |
|
11323 |
|
11324 |
|
11325 |
|
11326 |
|
11327 |
|
11328 |
|
11329 |
|
11330 |
|
11331 |
|
11332 |
|
11333 |
|
11334 |
|
11335 |
|
11336 |
|
11337 |
|
11338 |
|
11339 |
|
11340 |
|
11341 |
|
11342 |
|
11343 |
|
11344 |
|
11345 |
|
11346 |
|
11347 |
|
11348 |
|
11349 |
|
11350 |
|
11351 |
|
11352 |
|
11353 |
|
11354 |
|
11355 |
|
11356 |
|
11357 |
|
11358 |
|
11359 |
|
11360 |
|
11361 |
|
11362 |
|
11363 |
|
11364 |
|
11365 |
|
11366 |
|
11367 |
|
11368 |
|
11369 |
|
11370 |
|
11371 |
|
11372 |
|
11373 |
|
11374 |
|
11375 |
|
11376 |
|
11377 |
|
11378 |
|
11379 |
|
11380 |
|
11381 |
|
11382 |
|
11383 |
|
11384 |
|
11385 |
|
11386 |
|
11387 |
|
11388 |
|
11389 |
|
11390 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11391 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11392 |
hardcode_action= |
11393 |
if test -n "$hardcode_libdir_flag_spec" || |
11394 |
test -n "$runpath_var" || |
11395 |
test yes = "$hardcode_automatic"; then |
11396 |
|
11397 |
# We can hardcode non-existent directories. |
11398 |
if test no != "$hardcode_direct" && |
11399 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
11400 |
# have to relink, otherwise we might link with an installed library |
11401 |
# when we should be linking with a yet-to-be-installed one |
11402 |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11403 |
test no != "$hardcode_minus_L"; then |
11404 |
# Linking always hardcodes the temporary library directory. |
11405 |
hardcode_action=relink |
11406 |
else |
11407 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
11408 |
hardcode_action=immediate |
11409 |
fi |
11410 |
else |
11411 |
# We cannot hardcode anything, or else we can only hardcode existing |
11412 |
# directories. |
11413 |
hardcode_action=unsupported |
11414 |
fi |
11415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11416 |
$as_echo "$hardcode_action" >&6; } |
11417 |
|
11418 |
if test relink = "$hardcode_action" || |
11419 |
test yes = "$inherit_rpath"; then |
11420 |
# Fast installation is not supported |
11421 |
enable_fast_install=no |
11422 |
elif test yes = "$shlibpath_overrides_runpath" || |
11423 |
test no = "$enable_shared"; then |
11424 |
# Fast installation is not necessary |
11425 |
enable_fast_install=needless |
11426 |
fi |
11427 |
|
11428 |
|
11429 |
|
11430 |
|
11431 |
|
11432 |
|
11433 |
if test yes != "$enable_dlopen"; then |
11434 |
enable_dlopen=unknown |
11435 |
enable_dlopen_self=unknown |
11436 |
enable_dlopen_self_static=unknown |
11437 |
else |
11438 |
lt_cv_dlopen=no |
11439 |
lt_cv_dlopen_libs= |
11440 |
|
11441 |
case $host_os in |
11442 |
beos*) |
11443 |
lt_cv_dlopen=load_add_on |
11444 |
lt_cv_dlopen_libs= |
11445 |
lt_cv_dlopen_self=yes |
11446 |
;; |
11447 |
|
11448 |
mingw* | pw32* | cegcc*) |
11449 |
lt_cv_dlopen=LoadLibrary |
11450 |
lt_cv_dlopen_libs= |
11451 |
;; |
11452 |
|
11453 |
cygwin*) |
11454 |
lt_cv_dlopen=dlopen |
11455 |
lt_cv_dlopen_libs= |
11456 |
;; |
11457 |
|
11458 |
darwin*) |
11459 |
# if libdl is installed we need to link against it |
11460 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11461 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11462 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11463 |
$as_echo_n "(cached) " >&6 |
11464 |
else |
11465 |
ac_check_lib_save_LIBS=$LIBS |
11466 |
LIBS="-ldl $LIBS" |
11467 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11468 |
/* end confdefs.h. */ |
11469 |
|
11470 |
/* Override any GCC internal prototype to avoid an error. |
11471 |
Use char because int might match the return type of a GCC |
11472 |
builtin and then its argument prototype would still apply. */ |
11473 |
#ifdef __cplusplus |
11474 |
extern "C" |
11475 |
#endif |
11476 |
char dlopen (); |
11477 |
int |
11478 |
main () |
11479 |
{ |
11480 |
return dlopen (); |
11481 |
; |
11482 |
return 0; |
11483 |
} |
11484 |
_ACEOF |
11485 |
if ac_fn_c_try_link "$LINENO"; then : |
11486 |
ac_cv_lib_dl_dlopen=yes |
11487 |
else |
11488 |
ac_cv_lib_dl_dlopen=no |
11489 |
fi |
11490 |
rm -f core conftest.err conftest.$ac_objext \ |
11491 |
conftest$ac_exeext conftest.$ac_ext |
11492 |
LIBS=$ac_check_lib_save_LIBS |
11493 |
fi |
11494 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11495 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11496 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11497 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11498 |
else |
11499 |
|
11500 |
lt_cv_dlopen=dyld |
11501 |
lt_cv_dlopen_libs= |
11502 |
lt_cv_dlopen_self=yes |
11503 |
|
11504 |
fi |
11505 |
|
11506 |
;; |
11507 |
|
11508 |
tpf*) |
11509 |
# Don't try to run any link tests for TPF. We know it's impossible |
11510 |
# because TPF is a cross-compiler, and we know how we open DSOs. |
11511 |
lt_cv_dlopen=dlopen |
11512 |
lt_cv_dlopen_libs= |
11513 |
lt_cv_dlopen_self=no |
11514 |
;; |
11515 |
|
11516 |
*) |
11517 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11518 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
11519 |
lt_cv_dlopen=shl_load |
11520 |
else |
11521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11522 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
11523 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
11524 |
$as_echo_n "(cached) " >&6 |
11525 |
else |
11526 |
ac_check_lib_save_LIBS=$LIBS |
11527 |
LIBS="-ldld $LIBS" |
11528 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11529 |
/* end confdefs.h. */ |
11530 |
|
11531 |
/* Override any GCC internal prototype to avoid an error. |
11532 |
Use char because int might match the return type of a GCC |
11533 |
builtin and then its argument prototype would still apply. */ |
11534 |
#ifdef __cplusplus |
11535 |
extern "C" |
11536 |
#endif |
11537 |
char shl_load (); |
11538 |
int |
11539 |
main () |
11540 |
{ |
11541 |
return shl_load (); |
11542 |
; |
11543 |
return 0; |
11544 |
} |
11545 |
_ACEOF |
11546 |
if ac_fn_c_try_link "$LINENO"; then : |
11547 |
ac_cv_lib_dld_shl_load=yes |
11548 |
else |
11549 |
ac_cv_lib_dld_shl_load=no |
11550 |
fi |
11551 |
rm -f core conftest.err conftest.$ac_objext \ |
11552 |
conftest$ac_exeext conftest.$ac_ext |
11553 |
LIBS=$ac_check_lib_save_LIBS |
11554 |
fi |
11555 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11556 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
11557 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
11558 |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
11559 |
else |
11560 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11561 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
11562 |
lt_cv_dlopen=dlopen |
11563 |
else |
11564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11565 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11566 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11567 |
$as_echo_n "(cached) " >&6 |
11568 |
else |
11569 |
ac_check_lib_save_LIBS=$LIBS |
11570 |
LIBS="-ldl $LIBS" |
11571 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11572 |
/* end confdefs.h. */ |
11573 |
|
11574 |
/* Override any GCC internal prototype to avoid an error. |
11575 |
Use char because int might match the return type of a GCC |
11576 |
builtin and then its argument prototype would still apply. */ |
11577 |
#ifdef __cplusplus |
11578 |
extern "C" |
11579 |
#endif |
11580 |
char dlopen (); |
11581 |
int |
11582 |
main () |
11583 |
{ |
11584 |
return dlopen (); |
11585 |
; |
11586 |
return 0; |
11587 |
} |
11588 |
_ACEOF |
11589 |
if ac_fn_c_try_link "$LINENO"; then : |
11590 |
ac_cv_lib_dl_dlopen=yes |
11591 |
else |
11592 |
ac_cv_lib_dl_dlopen=no |
11593 |
fi |
11594 |
rm -f core conftest.err conftest.$ac_objext \ |
11595 |
conftest$ac_exeext conftest.$ac_ext |
11596 |
LIBS=$ac_check_lib_save_LIBS |
11597 |
fi |
11598 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11599 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11600 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11601 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11602 |
else |
11603 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11604 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
11605 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
11606 |
$as_echo_n "(cached) " >&6 |
11607 |
else |
11608 |
ac_check_lib_save_LIBS=$LIBS |
11609 |
LIBS="-lsvld $LIBS" |
11610 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11611 |
/* end confdefs.h. */ |
11612 |
|
11613 |
/* Override any GCC internal prototype to avoid an error. |
11614 |
Use char because int might match the return type of a GCC |
11615 |
builtin and then its argument prototype would still apply. */ |
11616 |
#ifdef __cplusplus |
11617 |
extern "C" |
11618 |
#endif |
11619 |
char dlopen (); |
11620 |
int |
11621 |
main () |
11622 |
{ |
11623 |
return dlopen (); |
11624 |
; |
11625 |
return 0; |
11626 |
} |
11627 |
_ACEOF |
11628 |
if ac_fn_c_try_link "$LINENO"; then : |
11629 |
ac_cv_lib_svld_dlopen=yes |
11630 |
else |
11631 |
ac_cv_lib_svld_dlopen=no |
11632 |
fi |
11633 |
rm -f core conftest.err conftest.$ac_objext \ |
11634 |
conftest$ac_exeext conftest.$ac_ext |
11635 |
LIBS=$ac_check_lib_save_LIBS |
11636 |
fi |
11637 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11638 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
11639 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
11640 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
11641 |
else |
11642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11643 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
11644 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
11645 |
$as_echo_n "(cached) " >&6 |
11646 |
else |
11647 |
ac_check_lib_save_LIBS=$LIBS |
11648 |
LIBS="-ldld $LIBS" |
11649 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11650 |
/* end confdefs.h. */ |
11651 |
|
11652 |
/* Override any GCC internal prototype to avoid an error. |
11653 |
Use char because int might match the return type of a GCC |
11654 |
builtin and then its argument prototype would still apply. */ |
11655 |
#ifdef __cplusplus |
11656 |
extern "C" |
11657 |
#endif |
11658 |
char dld_link (); |
11659 |
int |
11660 |
main () |
11661 |
{ |
11662 |
return dld_link (); |
11663 |
; |
11664 |
return 0; |
11665 |
} |
11666 |
_ACEOF |
11667 |
if ac_fn_c_try_link "$LINENO"; then : |
11668 |
ac_cv_lib_dld_dld_link=yes |
11669 |
else |
11670 |
ac_cv_lib_dld_dld_link=no |
11671 |
fi |
11672 |
rm -f core conftest.err conftest.$ac_objext \ |
11673 |
conftest$ac_exeext conftest.$ac_ext |
11674 |
LIBS=$ac_check_lib_save_LIBS |
11675 |
fi |
11676 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11677 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
11678 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
11679 |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
11680 |
fi |
11681 |
|
11682 |
|
11683 |
fi |
11684 |
|
11685 |
|
11686 |
fi |
11687 |
|
11688 |
|
11689 |
fi |
11690 |
|
11691 |
|
11692 |
fi |
11693 |
|
11694 |
|
11695 |
fi |
11696 |
|
11697 |
;; |
11698 |
esac |
11699 |
|
11700 |
if test no = "$lt_cv_dlopen"; then |
11701 |
enable_dlopen=no |
11702 |
else |
11703 |
enable_dlopen=yes |
11704 |
fi |
11705 |
|
11706 |
case $lt_cv_dlopen in |
11707 |
dlopen) |
11708 |
save_CPPFLAGS=$CPPFLAGS |
11709 |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
11710 |
|
11711 |
save_LDFLAGS=$LDFLAGS |
11712 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11713 |
|
11714 |
save_LIBS=$LIBS |
11715 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
11716 |
|
11717 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11718 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
11719 |
if ${lt_cv_dlopen_self+:} false; then : |
11720 |
$as_echo_n "(cached) " >&6 |
11721 |
else |
11722 |
if test yes = "$cross_compiling"; then : |
11723 |
lt_cv_dlopen_self=cross |
11724 |
else |
11725 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11726 |
lt_status=$lt_dlunknown |
11727 |
cat > conftest.$ac_ext <<_LT_EOF |
11728 |
#line $LINENO "configure" |
11729 |
#include "confdefs.h" |
11730 |
|
11731 |
#if HAVE_DLFCN_H |
11732 |
#include <dlfcn.h> |
11733 |
#endif |
11734 |
|
11735 |
#include <stdio.h> |
11736 |
|
11737 |
#ifdef RTLD_GLOBAL |
11738 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11739 |
#else |
11740 |
# ifdef DL_GLOBAL |
11741 |
# define LT_DLGLOBAL DL_GLOBAL |
11742 |
# else |
11743 |
# define LT_DLGLOBAL 0 |
11744 |
# endif |
11745 |
#endif |
11746 |
|
11747 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11748 |
find out it does not work in some platform. */ |
11749 |
#ifndef LT_DLLAZY_OR_NOW |
11750 |
# ifdef RTLD_LAZY |
11751 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11752 |
# else |
11753 |
# ifdef DL_LAZY |
11754 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11755 |
# else |
11756 |
# ifdef RTLD_NOW |
11757 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11758 |
# else |
11759 |
# ifdef DL_NOW |
11760 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11761 |
# else |
11762 |
# define LT_DLLAZY_OR_NOW 0 |
11763 |
# endif |
11764 |
# endif |
11765 |
# endif |
11766 |
# endif |
11767 |
#endif |
11768 |
|
11769 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
11770 |
correspondingly for the symbols needed. */ |
11771 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11772 |
int fnord () __attribute__((visibility("default"))); |
11773 |
#endif |
11774 |
|
11775 |
int fnord () { return 42; } |
11776 |
int main () |
11777 |
{ |
11778 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11779 |
int status = $lt_dlunknown; |
11780 |
|
11781 |
if (self) |
11782 |
{ |
11783 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11784 |
else |
11785 |
{ |
11786 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11787 |
else puts (dlerror ()); |
11788 |
} |
11789 |
/* dlclose (self); */ |
11790 |
} |
11791 |
else |
11792 |
puts (dlerror ()); |
11793 |
|
11794 |
return status; |
11795 |
} |
11796 |
_LT_EOF |
11797 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11798 |
(eval $ac_link) 2>&5 |
11799 |
ac_status=$? |
11800 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11801 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
11802 |
(./conftest; exit; ) >&5 2>/dev/null |
11803 |
lt_status=$? |
11804 |
case x$lt_status in |
11805 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
11806 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
11807 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
11808 |
esac |
11809 |
else : |
11810 |
# compilation failed |
11811 |
lt_cv_dlopen_self=no |
11812 |
fi |
11813 |
fi |
11814 |
rm -fr conftest* |
11815 |
|
11816 |
|
11817 |
fi |
11818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11819 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
11820 |
|
11821 |
if test yes = "$lt_cv_dlopen_self"; then |
11822 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
11823 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11824 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
11825 |
if ${lt_cv_dlopen_self_static+:} false; then : |
11826 |
$as_echo_n "(cached) " >&6 |
11827 |
else |
11828 |
if test yes = "$cross_compiling"; then : |
11829 |
lt_cv_dlopen_self_static=cross |
11830 |
else |
11831 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11832 |
lt_status=$lt_dlunknown |
11833 |
cat > conftest.$ac_ext <<_LT_EOF |
11834 |
#line $LINENO "configure" |
11835 |
#include "confdefs.h" |
11836 |
|
11837 |
#if HAVE_DLFCN_H |
11838 |
#include <dlfcn.h> |
11839 |
#endif |
11840 |
|
11841 |
#include <stdio.h> |
11842 |
|
11843 |
#ifdef RTLD_GLOBAL |
11844 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11845 |
#else |
11846 |
# ifdef DL_GLOBAL |
11847 |
# define LT_DLGLOBAL DL_GLOBAL |
11848 |
# else |
11849 |
# define LT_DLGLOBAL 0 |
11850 |
# endif |
11851 |
#endif |
11852 |
|
11853 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11854 |
find out it does not work in some platform. */ |
11855 |
#ifndef LT_DLLAZY_OR_NOW |
11856 |
# ifdef RTLD_LAZY |
11857 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11858 |
# else |
11859 |
# ifdef DL_LAZY |
11860 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11861 |
# else |
11862 |
# ifdef RTLD_NOW |
11863 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11864 |
# else |
11865 |
# ifdef DL_NOW |
11866 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11867 |
# else |
11868 |
# define LT_DLLAZY_OR_NOW 0 |
11869 |
# endif |
11870 |
# endif |
11871 |
# endif |
11872 |
# endif |
11873 |
#endif |
11874 |
|
11875 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
11876 |
correspondingly for the symbols needed. */ |
11877 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11878 |
int fnord () __attribute__((visibility("default"))); |
11879 |
#endif |
11880 |
|
11881 |
int fnord () { return 42; } |
11882 |
int main () |
11883 |
{ |
11884 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11885 |
int status = $lt_dlunknown; |
11886 |
|
11887 |
if (self) |
11888 |
{ |
11889 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11890 |
else |
11891 |
{ |
11892 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11893 |
else puts (dlerror ()); |
11894 |
} |
11895 |
/* dlclose (self); */ |
11896 |
} |
11897 |
else |
11898 |
puts (dlerror ()); |
11899 |
|
11900 |
return status; |
11901 |
} |
11902 |
_LT_EOF |
11903 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11904 |
(eval $ac_link) 2>&5 |
11905 |
ac_status=$? |
11906 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11907 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
11908 |
(./conftest; exit; ) >&5 2>/dev/null |
11909 |
lt_status=$? |
11910 |
case x$lt_status in |
11911 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
11912 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
11913 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
11914 |
esac |
11915 |
else : |
11916 |
# compilation failed |
11917 |
lt_cv_dlopen_self_static=no |
11918 |
fi |
11919 |
fi |
11920 |
rm -fr conftest* |
11921 |
|
11922 |
|
11923 |
fi |
11924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11925 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
11926 |
fi |
11927 |
|
11928 |
CPPFLAGS=$save_CPPFLAGS |
11929 |
LDFLAGS=$save_LDFLAGS |
11930 |
LIBS=$save_LIBS |
11931 |
;; |
11932 |
esac |
11933 |
|
11934 |
case $lt_cv_dlopen_self in |
11935 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
11936 |
*) enable_dlopen_self=unknown ;; |
11937 |
esac |
11938 |
|
11939 |
case $lt_cv_dlopen_self_static in |
11940 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
11941 |
*) enable_dlopen_self_static=unknown ;; |
11942 |
esac |
11943 |
fi |
11944 |
|
11945 |
|
11946 |
|
11947 |
|
11948 |
|
11949 |
|
11950 |
|
11951 |
|
11952 |
|
11953 |
|
11954 |
|
11955 |
|
11956 |
|
11957 |
|
11958 |
|
11959 |
|
11960 |
|
11961 |
striplib= |
11962 |
old_striplib= |
11963 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11964 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11965 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11966 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
11967 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
11968 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11969 |
$as_echo "yes" >&6; } |
11970 |
else |
11971 |
# FIXME - insert some real tests, host_os isn't really good enough |
11972 |
case $host_os in |
11973 |
darwin*) |
11974 |
if test -n "$STRIP"; then |
11975 |
striplib="$STRIP -x" |
11976 |
old_striplib="$STRIP -S" |
11977 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11978 |
$as_echo "yes" >&6; } |
11979 |
else |
11980 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11981 |
$as_echo "no" >&6; } |
11982 |
fi |
11983 |
;; |
11984 |
*) |
11985 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11986 |
$as_echo "no" >&6; } |
11987 |
;; |
11988 |
esac |
11989 |
fi |
11990 |
|
11991 |
|
11992 |
|
11993 |
|
11994 |
|
11995 |
|
11996 |
|
11997 |
|
11998 |
|
11999 |
|
12000 |
|
12001 |
|
12002 |
# Report what library types will actually be built |
12003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12004 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
12005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
12006 |
$as_echo "$can_build_shared" >&6; } |
12007 |
|
12008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12009 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
12010 |
test no = "$can_build_shared" && enable_shared=no |
12011 |
|
12012 |
# On AIX, shared libraries and static libraries use the same namespace, and |
12013 |
# are all built from PIC. |
12014 |
case $host_os in |
12015 |
aix3*) |
12016 |
test yes = "$enable_shared" && enable_static=no |
12017 |
if test -n "$RANLIB"; then |
12018 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
12019 |
postinstall_cmds='$RANLIB $lib' |
12020 |
fi |
12021 |
;; |
12022 |
|
12023 |
aix[4-9]*) |
12024 |
if test ia64 != "$host_cpu"; then |
12025 |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
12026 |
yes,aix,yes) ;; # shared object as lib.so file only |
12027 |
yes,svr4,*) ;; # shared object as lib.so archive member only |
12028 |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
12029 |
esac |
12030 |
fi |
12031 |
;; |
12032 |
esac |
12033 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12034 |
$as_echo "$enable_shared" >&6; } |
12035 |
|
12036 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12037 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
12038 |
# Make sure either enable_shared or enable_static is yes. |
12039 |
test yes = "$enable_shared" || enable_static=yes |
12040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12041 |
$as_echo "$enable_static" >&6; } |
12042 |
|
12043 |
|
12044 |
|
12045 |
|
12046 |
fi |
12047 |
ac_ext=c |
12048 |
ac_cpp='$CPP $CPPFLAGS' |
12049 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12050 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12051 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12052 |
|
12053 |
CC=$lt_save_CC |
12054 |
|
12055 |
|
12056 |
|
12057 |
|
12058 |
|
12059 |
|
12060 |
|
12061 |
|
12062 |
|
12063 |
|
12064 |
|
12065 |
|
12066 |
|
12067 |
|
12068 |
|
12069 |
ac_config_commands="$ac_config_commands libtool" |
12070 |
|
12071 |
|
12072 |
|
12073 |
|
12074 |
# Only expand once: |
12075 |
|
12076 |
|
12077 |
|
12078 |
|
12079 |
for ac_header in sys/poll.h |
12080 |
do : |
12081 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |
12082 |
if test "x$ac_cv_header_sys_poll_h" = xyes; then : |
12083 |
cat >>confdefs.h <<_ACEOF |
12084 |
#define HAVE_SYS_POLL_H 1 |
12085 |
_ACEOF |
12086 |
have_poll_sys_h=yes |
12087 |
else |
12088 |
have_sys_poll_h=no |
12089 |
fi |
12090 |
|
12091 |
done |
12092 |
|
12093 |
|
12094 |
for ac_header in fcntl.h sys/time.h unistd.h |
12095 |
do : |
12096 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12097 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
12098 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
12099 |
cat >>confdefs.h <<_ACEOF |
12100 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12101 |
_ACEOF |
12102 |
|
12103 |
fi |
12104 |
|
12105 |
done |
12106 |
|
12107 |
|
12108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
12109 |
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
12110 |
if ${ac_cv_header_time+:} false; then : |
12111 |
$as_echo_n "(cached) " >&6 |
12112 |
else |
12113 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12114 |
/* end confdefs.h. */ |
12115 |
#include <sys/types.h> |
12116 |
#include <sys/time.h> |
12117 |
#include <time.h> |
12118 |
|
12119 |
int |
12120 |
main () |
12121 |
{ |
12122 |
if ((struct tm *) 0) |
12123 |
return 0; |
12124 |
; |
12125 |
return 0; |
12126 |
} |
12127 |
_ACEOF |
12128 |
if ac_fn_c_try_compile "$LINENO"; then : |
12129 |
ac_cv_header_time=yes |
12130 |
else |
12131 |
ac_cv_header_time=no |
12132 |
fi |
12133 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12134 |
fi |
12135 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
12136 |
$as_echo "$ac_cv_header_time" >&6; } |
12137 |
if test $ac_cv_header_time = yes; then |
12138 |
|
12139 |
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
12140 |
|
12141 |
fi |
12142 |
|
12143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
12144 |
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
12145 |
if ${ac_cv_struct_tm+:} false; then : |
12146 |
$as_echo_n "(cached) " >&6 |
12147 |
else |
12148 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12149 |
/* end confdefs.h. */ |
12150 |
#include <sys/types.h> |
12151 |
#include <time.h> |
12152 |
|
12153 |
int |
12154 |
main () |
12155 |
{ |
12156 |
struct tm tm; |
12157 |
int *p = &tm.tm_sec; |
12158 |
return !p; |
12159 |
; |
12160 |
return 0; |
12161 |
} |
12162 |
_ACEOF |
12163 |
if ac_fn_c_try_compile "$LINENO"; then : |
12164 |
ac_cv_struct_tm=time.h |
12165 |
else |
12166 |
ac_cv_struct_tm=sys/time.h |
12167 |
fi |
12168 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12169 |
fi |
12170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
12171 |
$as_echo "$ac_cv_struct_tm" >&6; } |
12172 |
if test $ac_cv_struct_tm = sys/time.h; then |
12173 |
|
12174 |
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
12175 |
|
12176 |
fi |
12177 |
|
12178 |
|
12179 |
|
12180 |
for ac_prog in 'bison -y' byacc |
12181 |
do |
12182 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
12183 |
set dummy $ac_prog; ac_word=$2 |
12184 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12185 |
$as_echo_n "checking for $ac_word... " >&6; } |
12186 |
if ${ac_cv_prog_YACC+:} false; then : |
12187 |
$as_echo_n "(cached) " >&6 |
12188 |
else |
12189 |
if test -n "$YACC"; then |
12190 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
12191 |
else |
12192 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12193 |
for as_dir in $PATH |
12194 |
do |
12195 |
IFS=$as_save_IFS |
12196 |
test -z "$as_dir" && as_dir=. |
12197 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12198 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12199 |
ac_cv_prog_YACC="$ac_prog" |
12200 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12201 |
break 2 |
12202 |
fi |
12203 |
done |
12204 |
done |
12205 |
IFS=$as_save_IFS |
12206 |
|
12207 |
fi |
12208 |
fi |
12209 |
YACC=$ac_cv_prog_YACC |
12210 |
if test -n "$YACC"; then |
12211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12212 |
$as_echo "$YACC" >&6; } |
12213 |
else |
12214 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12215 |
$as_echo "no" >&6; } |
12216 |
fi |
12217 |
|
12218 |
|
12219 |
test -n "$YACC" && break |
12220 |
done |
12221 |
test -n "$YACC" || YACC="yacc" |
12222 |
|
12223 |
|
12224 |
for ac_prog in flex lex |
12225 |
do |
12226 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
12227 |
set dummy $ac_prog; ac_word=$2 |
12228 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12229 |
$as_echo_n "checking for $ac_word... " >&6; } |
12230 |
if ${ac_cv_prog_LEX+:} false; then : |
12231 |
$as_echo_n "(cached) " >&6 |
12232 |
else |
12233 |
if test -n "$LEX"; then |
12234 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
12235 |
else |
12236 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12237 |
for as_dir in $PATH |
12238 |
do |
12239 |
IFS=$as_save_IFS |
12240 |
test -z "$as_dir" && as_dir=. |
12241 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12242 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12243 |
ac_cv_prog_LEX="$ac_prog" |
12244 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12245 |
break 2 |
12246 |
fi |
12247 |
done |
12248 |
done |
12249 |
IFS=$as_save_IFS |
12250 |
|
12251 |
fi |
12252 |
fi |
12253 |
LEX=$ac_cv_prog_LEX |
12254 |
if test -n "$LEX"; then |
12255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12256 |
$as_echo "$LEX" >&6; } |
12257 |
else |
12258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12259 |
$as_echo "no" >&6; } |
12260 |
fi |
12261 |
|
12262 |
|
12263 |
test -n "$LEX" && break |
12264 |
done |
12265 |
test -n "$LEX" || LEX=":" |
12266 |
|
12267 |
if test "x$LEX" != "x:"; then |
12268 |
cat >conftest.l <<_ACEOF |
12269 |
%% |
12270 |
a { ECHO; } |
12271 |
b { REJECT; } |
12272 |
c { yymore (); } |
12273 |
d { yyless (1); } |
12274 |
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
12275 |
yyless ((input () != 0)); } |
12276 |
f { unput (yytext[0]); } |
12277 |
. { BEGIN INITIAL; } |
12278 |
%% |
12279 |
#ifdef YYTEXT_POINTER |
12280 |
extern char *yytext; |
12281 |
#endif |
12282 |
int |
12283 |
main (void) |
12284 |
{ |
12285 |
return ! yylex () + ! yywrap (); |
12286 |
} |
12287 |
_ACEOF |
12288 |
{ { ac_try="$LEX conftest.l" |
12289 |
case "(($ac_try" in |
12290 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12291 |
*) ac_try_echo=$ac_try;; |
12292 |
esac |
12293 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
12294 |
$as_echo "$ac_try_echo"; } >&5 |
12295 |
(eval "$LEX conftest.l") 2>&5 |
12296 |
ac_status=$? |
12297 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12298 |
test $ac_status = 0; } |
12299 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
12300 |
$as_echo_n "checking lex output file root... " >&6; } |
12301 |
if ${ac_cv_prog_lex_root+:} false; then : |
12302 |
$as_echo_n "(cached) " >&6 |
12303 |
else |
12304 |
|
12305 |
if test -f lex.yy.c; then |
12306 |
ac_cv_prog_lex_root=lex.yy |
12307 |
elif test -f lexyy.c; then |
12308 |
ac_cv_prog_lex_root=lexyy |
12309 |
else |
12310 |
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
12311 |
fi |
12312 |
fi |
12313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12314 |
$as_echo "$ac_cv_prog_lex_root" >&6; } |
12315 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
12316 |
|
12317 |
if test -z "${LEXLIB+set}"; then |
12318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
12319 |
$as_echo_n "checking lex library... " >&6; } |
12320 |
if ${ac_cv_lib_lex+:} false; then : |
12321 |
$as_echo_n "(cached) " >&6 |
12322 |
else |
12323 |
|
12324 |
ac_save_LIBS=$LIBS |
12325 |
ac_cv_lib_lex='none needed' |
12326 |
for ac_lib in '' -lfl -ll; do |
12327 |
LIBS="$ac_lib $ac_save_LIBS" |
12328 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12329 |
/* end confdefs.h. */ |
12330 |
`cat $LEX_OUTPUT_ROOT.c` |
12331 |
_ACEOF |
12332 |
if ac_fn_c_try_link "$LINENO"; then : |
12333 |
ac_cv_lib_lex=$ac_lib |
12334 |
fi |
12335 |
rm -f core conftest.err conftest.$ac_objext \ |
12336 |
conftest$ac_exeext conftest.$ac_ext |
12337 |
test "$ac_cv_lib_lex" != 'none needed' && break |
12338 |
done |
12339 |
LIBS=$ac_save_LIBS |
12340 |
|
12341 |
fi |
12342 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12343 |
$as_echo "$ac_cv_lib_lex" >&6; } |
12344 |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
12345 |
fi |
12346 |
|
12347 |
|
12348 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12349 |
$as_echo_n "checking whether yytext is a pointer... " >&6; } |
12350 |
if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
12351 |
$as_echo_n "(cached) " >&6 |
12352 |
else |
12353 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
12354 |
# default is implementation-dependent. Figure out which it is, since |
12355 |
# not all implementations provide the %pointer and %array declarations. |
12356 |
ac_cv_prog_lex_yytext_pointer=no |
12357 |
ac_save_LIBS=$LIBS |
12358 |
LIBS="$LEXLIB $ac_save_LIBS" |
12359 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12360 |
/* end confdefs.h. */ |
12361 |
|
12362 |
#define YYTEXT_POINTER 1 |
12363 |
`cat $LEX_OUTPUT_ROOT.c` |
12364 |
_ACEOF |
12365 |
if ac_fn_c_try_link "$LINENO"; then : |
12366 |
ac_cv_prog_lex_yytext_pointer=yes |
12367 |
fi |
12368 |
rm -f core conftest.err conftest.$ac_objext \ |
12369 |
conftest$ac_exeext conftest.$ac_ext |
12370 |
LIBS=$ac_save_LIBS |
12371 |
|
12372 |
fi |
12373 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12374 |
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
12375 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
12376 |
|
12377 |
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
12378 |
|
12379 |
fi |
12380 |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
12381 |
|
12382 |
fi |
12383 |
if test "$LEX" = :; then |
12384 |
LEX=${am_missing_run}flex |
12385 |
fi |
12386 |
|
12387 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
12388 |
$as_echo_n "checking for library containing socket... " >&6; } |
12389 |
if ${ac_cv_search_socket+:} false; then : |
12390 |
$as_echo_n "(cached) " >&6 |
12391 |
else |
12392 |
ac_func_search_save_LIBS=$LIBS |
12393 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12394 |
/* end confdefs.h. */ |
12395 |
|
12396 |
/* Override any GCC internal prototype to avoid an error. |
12397 |
Use char because int might match the return type of a GCC |
12398 |
builtin and then its argument prototype would still apply. */ |
12399 |
#ifdef __cplusplus |
12400 |
extern "C" |
12401 |
#endif |
12402 |
char socket (); |
12403 |
int |
12404 |
main () |
12405 |
{ |
12406 |
return socket (); |
12407 |
; |
12408 |
return 0; |
12409 |
} |
12410 |
_ACEOF |
12411 |
for ac_lib in '' socket; do |
12412 |
if test -z "$ac_lib"; then |
12413 |
ac_res="none required" |
12414 |
else |
12415 |
ac_res=-l$ac_lib |
12416 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12417 |
fi |
12418 |
if ac_fn_c_try_link "$LINENO"; then : |
12419 |
ac_cv_search_socket=$ac_res |
12420 |
fi |
12421 |
rm -f core conftest.err conftest.$ac_objext \ |
12422 |
conftest$ac_exeext |
12423 |
if ${ac_cv_search_socket+:} false; then : |
12424 |
break |
12425 |
fi |
12426 |
done |
12427 |
if ${ac_cv_search_socket+:} false; then : |
12428 |
|
12429 |
else |
12430 |
ac_cv_search_socket=no |
12431 |
fi |
12432 |
rm conftest.$ac_ext |
12433 |
LIBS=$ac_func_search_save_LIBS |
12434 |
fi |
12435 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
12436 |
$as_echo "$ac_cv_search_socket" >&6; } |
12437 |
ac_res=$ac_cv_search_socket |
12438 |
if test "$ac_res" != no; then : |
12439 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12440 |
|
12441 |
else |
12442 |
as_fn_error $? "socket library not found" "$LINENO" 5 |
12443 |
fi |
12444 |
|
12445 |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
12446 |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
12447 |
|
12448 |
else |
12449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
12450 |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
12451 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12452 |
$as_echo_n "(cached) " >&6 |
12453 |
else |
12454 |
ac_func_search_save_LIBS=$LIBS |
12455 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12456 |
/* end confdefs.h. */ |
12457 |
|
12458 |
/* Override any GCC internal prototype to avoid an error. |
12459 |
Use char because int might match the return type of a GCC |
12460 |
builtin and then its argument prototype would still apply. */ |
12461 |
#ifdef __cplusplus |
12462 |
extern "C" |
12463 |
#endif |
12464 |
char getaddrinfo (); |
12465 |
int |
12466 |
main () |
12467 |
{ |
12468 |
return getaddrinfo (); |
12469 |
; |
12470 |
return 0; |
12471 |
} |
12472 |
_ACEOF |
12473 |
for ac_lib in '' nsl; do |
12474 |
if test -z "$ac_lib"; then |
12475 |
ac_res="none required" |
12476 |
else |
12477 |
ac_res=-l$ac_lib |
12478 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12479 |
fi |
12480 |
if ac_fn_c_try_link "$LINENO"; then : |
12481 |
ac_cv_search_getaddrinfo=$ac_res |
12482 |
fi |
12483 |
rm -f core conftest.err conftest.$ac_objext \ |
12484 |
conftest$ac_exeext |
12485 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12486 |
break |
12487 |
fi |
12488 |
done |
12489 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12490 |
|
12491 |
else |
12492 |
ac_cv_search_getaddrinfo=no |
12493 |
fi |
12494 |
rm conftest.$ac_ext |
12495 |
LIBS=$ac_func_search_save_LIBS |
12496 |
fi |
12497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
12498 |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
12499 |
ac_res=$ac_cv_search_getaddrinfo |
12500 |
if test "$ac_res" != no; then : |
12501 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12502 |
|
12503 |
fi |
12504 |
|
12505 |
fi |
12506 |
|
12507 |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
12508 |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
12509 |
|
12510 |
else |
12511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
12512 |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
12513 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12514 |
$as_echo_n "(cached) " >&6 |
12515 |
else |
12516 |
ac_func_search_save_LIBS=$LIBS |
12517 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12518 |
/* end confdefs.h. */ |
12519 |
|
12520 |
/* Override any GCC internal prototype to avoid an error. |
12521 |
Use char because int might match the return type of a GCC |
12522 |
builtin and then its argument prototype would still apply. */ |
12523 |
#ifdef __cplusplus |
12524 |
extern "C" |
12525 |
#endif |
12526 |
char getnameinfo (); |
12527 |
int |
12528 |
main () |
12529 |
{ |
12530 |
return getnameinfo (); |
12531 |
; |
12532 |
return 0; |
12533 |
} |
12534 |
_ACEOF |
12535 |
for ac_lib in '' nsl; do |
12536 |
if test -z "$ac_lib"; then |
12537 |
ac_res="none required" |
12538 |
else |
12539 |
ac_res=-l$ac_lib |
12540 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12541 |
fi |
12542 |
if ac_fn_c_try_link "$LINENO"; then : |
12543 |
ac_cv_search_getnameinfo=$ac_res |
12544 |
fi |
12545 |
rm -f core conftest.err conftest.$ac_objext \ |
12546 |
conftest$ac_exeext |
12547 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12548 |
break |
12549 |
fi |
12550 |
done |
12551 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12552 |
|
12553 |
else |
12554 |
ac_cv_search_getnameinfo=no |
12555 |
fi |
12556 |
rm conftest.$ac_ext |
12557 |
LIBS=$ac_func_search_save_LIBS |
12558 |
fi |
12559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
12560 |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
12561 |
ac_res=$ac_cv_search_getnameinfo |
12562 |
if test "$ac_res" != no; then : |
12563 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12564 |
|
12565 |
fi |
12566 |
|
12567 |
fi |
12568 |
|
12569 |
|
12570 |
for ac_func in strlcpy strlcat socket |
12571 |
do : |
12572 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12573 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12574 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12575 |
cat >>confdefs.h <<_ACEOF |
12576 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12577 |
_ACEOF |
12578 |
|
12579 |
fi |
12580 |
done |
12581 |
|
12582 |
|
12583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
12584 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
12585 |
if ${ac_cv_c_bigendian+:} false; then : |
12586 |
$as_echo_n "(cached) " >&6 |
12587 |
else |
12588 |
ac_cv_c_bigendian=unknown |
12589 |
# See if we're dealing with a universal compiler. |
12590 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12591 |
/* end confdefs.h. */ |
12592 |
#ifndef __APPLE_CC__ |
12593 |
not a universal capable compiler |
12594 |
#endif |
12595 |
typedef int dummy; |
12596 |
|
12597 |
_ACEOF |
12598 |
if ac_fn_c_try_compile "$LINENO"; then : |
12599 |
|
12600 |
# Check for potential -arch flags. It is not universal unless |
12601 |
# there are at least two -arch flags with different values. |
12602 |
ac_arch= |
12603 |
ac_prev= |
12604 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
12605 |
if test -n "$ac_prev"; then |
12606 |
case $ac_word in |
12607 |
i?86 | x86_64 | ppc | ppc64) |
12608 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
12609 |
ac_arch=$ac_word |
12610 |
else |
12611 |
ac_cv_c_bigendian=universal |
12612 |
break |
12613 |
fi |
12614 |
;; |
12615 |
esac |
12616 |
ac_prev= |
12617 |
elif test "x$ac_word" = "x-arch"; then |
12618 |
ac_prev=arch |
12619 |
fi |
12620 |
done |
12621 |
fi |
12622 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12623 |
if test $ac_cv_c_bigendian = unknown; then |
12624 |
# See if sys/param.h defines the BYTE_ORDER macro. |
12625 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12626 |
/* end confdefs.h. */ |
12627 |
#include <sys/types.h> |
12628 |
#include <sys/param.h> |
12629 |
|
12630 |
int |
12631 |
main () |
12632 |
{ |
12633 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
12634 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
12635 |
&& LITTLE_ENDIAN) |
12636 |
bogus endian macros |
12637 |
#endif |
12638 |
|
12639 |
; |
12640 |
return 0; |
12641 |
} |
12642 |
_ACEOF |
12643 |
if ac_fn_c_try_compile "$LINENO"; then : |
12644 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
12645 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12646 |
/* end confdefs.h. */ |
12647 |
#include <sys/types.h> |
12648 |
#include <sys/param.h> |
12649 |
|
12650 |
int |
12651 |
main () |
12652 |
{ |
12653 |
#if BYTE_ORDER != BIG_ENDIAN |
12654 |
not big endian |
12655 |
#endif |
12656 |
|
12657 |
; |
12658 |
return 0; |
12659 |
} |
12660 |
_ACEOF |
12661 |
if ac_fn_c_try_compile "$LINENO"; then : |
12662 |
ac_cv_c_bigendian=yes |
12663 |
else |
12664 |
ac_cv_c_bigendian=no |
12665 |
fi |
12666 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12667 |
fi |
12668 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12669 |
fi |
12670 |
if test $ac_cv_c_bigendian = unknown; then |
12671 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
12672 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12673 |
/* end confdefs.h. */ |
12674 |
#include <limits.h> |
12675 |
|
12676 |
int |
12677 |
main () |
12678 |
{ |
12679 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12680 |
bogus endian macros |
12681 |
#endif |
12682 |
|
12683 |
; |
12684 |
return 0; |
12685 |
} |
12686 |
_ACEOF |
12687 |
if ac_fn_c_try_compile "$LINENO"; then : |
12688 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
12689 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12690 |
/* end confdefs.h. */ |
12691 |
#include <limits.h> |
12692 |
|
12693 |
int |
12694 |
main () |
12695 |
{ |
12696 |
#ifndef _BIG_ENDIAN |
12697 |
not big endian |
12698 |
#endif |
12699 |
|
12700 |
; |
12701 |
return 0; |
12702 |
} |
12703 |
_ACEOF |
12704 |
if ac_fn_c_try_compile "$LINENO"; then : |
12705 |
ac_cv_c_bigendian=yes |
12706 |
else |
12707 |
ac_cv_c_bigendian=no |
12708 |
fi |
12709 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12710 |
fi |
12711 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12712 |
fi |
12713 |
if test $ac_cv_c_bigendian = unknown; then |
12714 |
# Compile a test program. |
12715 |
if test "$cross_compiling" = yes; then : |
12716 |
# Try to guess by grepping values from an object file. |
12717 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12718 |
/* end confdefs.h. */ |
12719 |
short int ascii_mm[] = |
12720 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
12721 |
short int ascii_ii[] = |
12722 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
12723 |
int use_ascii (int i) { |
12724 |
return ascii_mm[i] + ascii_ii[i]; |
12725 |
} |
12726 |
short int ebcdic_ii[] = |
12727 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
12728 |
short int ebcdic_mm[] = |
12729 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
12730 |
int use_ebcdic (int i) { |
12731 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
12732 |
} |
12733 |
extern int foo; |
12734 |
|
12735 |
int |
12736 |
main () |
12737 |
{ |
12738 |
return use_ascii (foo) == use_ebcdic (foo); |
12739 |
; |
12740 |
return 0; |
12741 |
} |
12742 |
_ACEOF |
12743 |
if ac_fn_c_try_compile "$LINENO"; then : |
12744 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
12745 |
ac_cv_c_bigendian=yes |
12746 |
fi |
12747 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
12748 |
if test "$ac_cv_c_bigendian" = unknown; then |
12749 |
ac_cv_c_bigendian=no |
12750 |
else |
12751 |
# finding both strings is unlikely to happen, but who knows? |
12752 |
ac_cv_c_bigendian=unknown |
12753 |
fi |
12754 |
fi |
12755 |
fi |
12756 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12757 |
else |
12758 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12759 |
/* end confdefs.h. */ |
12760 |
$ac_includes_default |
12761 |
int |
12762 |
main () |
12763 |
{ |
12764 |
|
12765 |
/* Are we little or big endian? From Harbison&Steele. */ |
12766 |
union |
12767 |
{ |
12768 |
long int l; |
12769 |
char c[sizeof (long int)]; |
12770 |
} u; |
12771 |
u.l = 1; |
12772 |
return u.c[sizeof (long int) - 1] == 1; |
12773 |
|
12774 |
; |
12775 |
return 0; |
12776 |
} |
12777 |
_ACEOF |
12778 |
if ac_fn_c_try_run "$LINENO"; then : |
12779 |
ac_cv_c_bigendian=no |
12780 |
else |
12781 |
ac_cv_c_bigendian=yes |
12782 |
fi |
12783 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12784 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
12785 |
fi |
12786 |
|
12787 |
fi |
12788 |
fi |
12789 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
12790 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
12791 |
case $ac_cv_c_bigendian in #( |
12792 |
yes) |
12793 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
12794 |
;; #( |
12795 |
no) |
12796 |
;; #( |
12797 |
universal) |
12798 |
|
12799 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
12800 |
|
12801 |
;; #( |
12802 |
*) |
12803 |
as_fn_error $? "unknown endianness |
12804 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
12805 |
esac |
12806 |
|
12807 |
|
12808 |
|
12809 |
|
12810 |
|
12811 |
subdirs="$subdirs src/libopm" |
12812 |
|
12813 |
|
12814 |
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
12815 |
|
12816 |
cat >confcache <<\_ACEOF |
12817 |
# This file is a shell script that caches the results of configure |
12818 |
# tests run on this system so they can be shared between configure |
12819 |
# scripts and configure runs, see configure's option --config-cache. |
12820 |
# It is not useful on other systems. If it contains results you don't |
12821 |
# want to keep, you may remove or edit it. |
12822 |
# |
12823 |
# config.status only pays attention to the cache file if you give it |
12824 |
# the --recheck option to rerun configure. |
12825 |
# |
12826 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
12827 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
12828 |
# following values. |
12829 |
|
12830 |
_ACEOF |
12831 |
|
12832 |
# The following way of writing the cache mishandles newlines in values, |
12833 |
# but we know of no workaround that is simple, portable, and efficient. |
12834 |
# So, we kill variables containing newlines. |
12835 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
12836 |
# and sets the high bit in the cache file unless we assign to the vars. |
12837 |
( |
12838 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
12839 |
eval ac_val=\$$ac_var |
12840 |
case $ac_val in #( |
12841 |
*${as_nl}*) |
12842 |
case $ac_var in #( |
12843 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
12844 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12845 |
esac |
12846 |
case $ac_var in #( |
12847 |
_ | IFS | as_nl) ;; #( |
12848 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
12849 |
*) { eval $ac_var=; unset $ac_var;} ;; |
12850 |
esac ;; |
12851 |
esac |
12852 |
done |
12853 |
|
12854 |
(set) 2>&1 | |
12855 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12856 |
*${as_nl}ac_space=\ *) |
12857 |
# `set' does not quote correctly, so add quotes: double-quote |
12858 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
12859 |
sed -n \ |
12860 |
"s/'/'\\\\''/g; |
12861 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
12862 |
;; #( |
12863 |
*) |
12864 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
12865 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
12866 |
;; |
12867 |
esac | |
12868 |
sort |
12869 |
) | |
12870 |
sed ' |
12871 |
/^ac_cv_env_/b end |
12872 |
t clear |
12873 |
:clear |
12874 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12875 |
t end |
12876 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12877 |
:end' >>confcache |
12878 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
12879 |
if test -w "$cache_file"; then |
12880 |
if test "x$cache_file" != "x/dev/null"; then |
12881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
12882 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
12883 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
12884 |
cat confcache >"$cache_file" |
12885 |
else |
12886 |
case $cache_file in #( |
12887 |
*/* | ?:*) |
12888 |
mv -f confcache "$cache_file"$$ && |
12889 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
12890 |
*) |
12891 |
mv -f confcache "$cache_file" ;; |
12892 |
esac |
12893 |
fi |
12894 |
fi |
12895 |
else |
12896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
12897 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12898 |
fi |
12899 |
fi |
12900 |
rm -f confcache |
12901 |
|
12902 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12903 |
# Let make expand exec_prefix. |
12904 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
12905 |
|
12906 |
DEFS=-DHAVE_CONFIG_H |
12907 |
|
12908 |
ac_libobjs= |
12909 |
ac_ltlibobjs= |
12910 |
U= |
12911 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12912 |
# 1. Remove the extension, and $U if already installed. |
12913 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12914 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
12915 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12916 |
# will be set to the directory where LIBOBJS objects are built. |
12917 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12918 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
12919 |
done |
12920 |
LIBOBJS=$ac_libobjs |
12921 |
|
12922 |
LTLIBOBJS=$ac_ltlibobjs |
12923 |
|
12924 |
|
12925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12926 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
12927 |
if test -n "$am_sleep_pid"; then |
12928 |
# Hide warnings about reused PIDs. |
12929 |
wait $am_sleep_pid 2>/dev/null |
12930 |
fi |
12931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
12932 |
$as_echo "done" >&6; } |
12933 |
if test -n "$EXEEXT"; then |
12934 |
am__EXEEXT_TRUE= |
12935 |
am__EXEEXT_FALSE='#' |
12936 |
else |
12937 |
am__EXEEXT_TRUE='#' |
12938 |
am__EXEEXT_FALSE= |
12939 |
fi |
12940 |
|
12941 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
12942 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
12943 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12944 |
fi |
12945 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
12946 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
12947 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12948 |
fi |
12949 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
12950 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12951 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12952 |
fi |
12953 |
|
12954 |
|
12955 |
: "${CONFIG_STATUS=./config.status}" |
12956 |
ac_write_fail=0 |
12957 |
ac_clean_files_save=$ac_clean_files |
12958 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
12959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
12960 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
12961 |
as_write_fail=0 |
12962 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
12963 |
#! $SHELL |
12964 |
# Generated by $as_me. |
12965 |
# Run this file to recreate the current configuration. |
12966 |
# Compiler output produced by configure, useful for debugging |
12967 |
# configure, is in config.log if it exists. |
12968 |
|
12969 |
debug=false |
12970 |
ac_cs_recheck=false |
12971 |
ac_cs_silent=false |
12972 |
|
12973 |
SHELL=\${CONFIG_SHELL-$SHELL} |
12974 |
export SHELL |
12975 |
_ASEOF |
12976 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
12977 |
## -------------------- ## |
12978 |
## M4sh Initialization. ## |
12979 |
## -------------------- ## |
12980 |
|
12981 |
# Be more Bourne compatible |
12982 |
DUALCASE=1; export DUALCASE # for MKS sh |
12983 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
12984 |
emulate sh |
12985 |
NULLCMD=: |
12986 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
12987 |
# is contrary to our usage. Disable this feature. |
12988 |
alias -g '${1+"$@"}'='"$@"' |
12989 |
setopt NO_GLOB_SUBST |
12990 |
else |
12991 |
case `(set -o) 2>/dev/null` in #( |
12992 |
*posix*) : |
12993 |
set -o posix ;; #( |
12994 |
*) : |
12995 |
;; |
12996 |
esac |
12997 |
fi |
12998 |
|
12999 |
|
13000 |
as_nl=' |
13001 |
' |
13002 |
export as_nl |
13003 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
13004 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
13005 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
13006 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
13007 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
13008 |
# but without wasting forks for bash or zsh. |
13009 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
13010 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
13011 |
as_echo='print -r --' |
13012 |
as_echo_n='print -rn --' |
13013 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
13014 |
as_echo='printf %s\n' |
13015 |
as_echo_n='printf %s' |
13016 |
else |
13017 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
13018 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
13019 |
as_echo_n='/usr/ucb/echo -n' |
13020 |
else |
13021 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
13022 |
as_echo_n_body='eval |
13023 |
arg=$1; |
13024 |
case $arg in #( |
13025 |
*"$as_nl"*) |
13026 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
13027 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
13028 |
esac; |
13029 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
13030 |
' |
13031 |
export as_echo_n_body |
13032 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
13033 |
fi |
13034 |
export as_echo_body |
13035 |
as_echo='sh -c $as_echo_body as_echo' |
13036 |
fi |
13037 |
|
13038 |
# The user is always right. |
13039 |
if test "${PATH_SEPARATOR+set}" != set; then |
13040 |
PATH_SEPARATOR=: |
13041 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
13042 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
13043 |
PATH_SEPARATOR=';' |
13044 |
} |
13045 |
fi |
13046 |
|
13047 |
|
13048 |
# IFS |
13049 |
# We need space, tab and new line, in precisely that order. Quoting is |
13050 |
# there to prevent editors from complaining about space-tab. |
13051 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
13052 |
# splitting by setting IFS to empty value.) |
13053 |
IFS=" "" $as_nl" |
13054 |
|
13055 |
# Find who we are. Look in the path if we contain no directory separator. |
13056 |
as_myself= |
13057 |
case $0 in #(( |
13058 |
*[\\/]* ) as_myself=$0 ;; |
13059 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13060 |
for as_dir in $PATH |
13061 |
do |
13062 |
IFS=$as_save_IFS |
13063 |
test -z "$as_dir" && as_dir=. |
13064 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13065 |
done |
13066 |
IFS=$as_save_IFS |
13067 |
|
13068 |
;; |
13069 |
esac |
13070 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
13071 |
# in which case we are not to be found in the path. |
13072 |
if test "x$as_myself" = x; then |
13073 |
as_myself=$0 |
13074 |
fi |
13075 |
if test ! -f "$as_myself"; then |
13076 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
13077 |
exit 1 |
13078 |
fi |
13079 |
|
13080 |
# Unset variables that we do not need and which cause bugs (e.g. in |
13081 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
13082 |
# suppresses any "Segmentation fault" message there. '((' could |
13083 |
# trigger a bug in pdksh 5.2.14. |
13084 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
13085 |
do eval test x\${$as_var+set} = xset \ |
13086 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
13087 |
done |
13088 |
PS1='$ ' |
13089 |
PS2='> ' |
13090 |
PS4='+ ' |
13091 |
|
13092 |
# NLS nuisances. |
13093 |
LC_ALL=C |
13094 |
export LC_ALL |
13095 |
LANGUAGE=C |
13096 |
export LANGUAGE |
13097 |
|
13098 |
# CDPATH. |
13099 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
13100 |
|
13101 |
|
13102 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
13103 |
# ---------------------------------------- |
13104 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
13105 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
13106 |
# script with STATUS, using 1 if that was 0. |
13107 |
as_fn_error () |
13108 |
{ |
13109 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
13110 |
if test "$4"; then |
13111 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
13112 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
13113 |
fi |
13114 |
$as_echo "$as_me: error: $2" >&2 |
13115 |
as_fn_exit $as_status |
13116 |
} # as_fn_error |
13117 |
|
13118 |
|
13119 |
# as_fn_set_status STATUS |
13120 |
# ----------------------- |
13121 |
# Set $? to STATUS, without forking. |
13122 |
as_fn_set_status () |
13123 |
{ |
13124 |
return $1 |
13125 |
} # as_fn_set_status |
13126 |
|
13127 |
# as_fn_exit STATUS |
13128 |
# ----------------- |
13129 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
13130 |
as_fn_exit () |
13131 |
{ |
13132 |
set +e |
13133 |
as_fn_set_status $1 |
13134 |
exit $1 |
13135 |
} # as_fn_exit |
13136 |
|
13137 |
# as_fn_unset VAR |
13138 |
# --------------- |
13139 |
# Portably unset VAR. |
13140 |
as_fn_unset () |
13141 |
{ |
13142 |
{ eval $1=; unset $1;} |
13143 |
} |
13144 |
as_unset=as_fn_unset |
13145 |
# as_fn_append VAR VALUE |
13146 |
# ---------------------- |
13147 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
13148 |
# advantage of any shell optimizations that allow amortized linear growth over |
13149 |
# repeated appends, instead of the typical quadratic growth present in naive |
13150 |
# implementations. |
13151 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
13152 |
eval 'as_fn_append () |
13153 |
{ |
13154 |
eval $1+=\$2 |
13155 |
}' |
13156 |
else |
13157 |
as_fn_append () |
13158 |
{ |
13159 |
eval $1=\$$1\$2 |
13160 |
} |
13161 |
fi # as_fn_append |
13162 |
|
13163 |
# as_fn_arith ARG... |
13164 |
# ------------------ |
13165 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
13166 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
13167 |
# must be portable across $(()) and expr. |
13168 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
13169 |
eval 'as_fn_arith () |
13170 |
{ |
13171 |
as_val=$(( $* )) |
13172 |
}' |
13173 |
else |
13174 |
as_fn_arith () |
13175 |
{ |
13176 |
as_val=`expr "$@" || test $? -eq 1` |
13177 |
} |
13178 |
fi # as_fn_arith |
13179 |
|
13180 |
|
13181 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
13182 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
13183 |
as_expr=expr |
13184 |
else |
13185 |
as_expr=false |
13186 |
fi |
13187 |
|
13188 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13189 |
as_basename=basename |
13190 |
else |
13191 |
as_basename=false |
13192 |
fi |
13193 |
|
13194 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13195 |
as_dirname=dirname |
13196 |
else |
13197 |
as_dirname=false |
13198 |
fi |
13199 |
|
13200 |
as_me=`$as_basename -- "$0" || |
13201 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13202 |
X"$0" : 'X\(//\)$' \| \ |
13203 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
13204 |
$as_echo X/"$0" | |
13205 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13206 |
s//\1/ |
13207 |
q |
13208 |
} |
13209 |
/^X\/\(\/\/\)$/{ |
13210 |
s//\1/ |
13211 |
q |
13212 |
} |
13213 |
/^X\/\(\/\).*/{ |
13214 |
s//\1/ |
13215 |
q |
13216 |
} |
13217 |
s/.*/./; q'` |
13218 |
|
13219 |
# Avoid depending upon Character Ranges. |
13220 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
13221 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
13222 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
13223 |
as_cr_digits='0123456789' |
13224 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
13225 |
|
13226 |
ECHO_C= ECHO_N= ECHO_T= |
13227 |
case `echo -n x` in #((((( |
13228 |
-n*) |
13229 |
case `echo 'xy\c'` in |
13230 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
13231 |
xy) ECHO_C='\c';; |
13232 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
13233 |
ECHO_T=' ';; |
13234 |
esac;; |
13235 |
*) |
13236 |
ECHO_N='-n';; |
13237 |
esac |
13238 |
|
13239 |
rm -f conf$$ conf$$.exe conf$$.file |
13240 |
if test -d conf$$.dir; then |
13241 |
rm -f conf$$.dir/conf$$.file |
13242 |
else |
13243 |
rm -f conf$$.dir |
13244 |
mkdir conf$$.dir 2>/dev/null |
13245 |
fi |
13246 |
if (echo >conf$$.file) 2>/dev/null; then |
13247 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
13248 |
as_ln_s='ln -s' |
13249 |
# ... but there are two gotchas: |
13250 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
13251 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
13252 |
# In both cases, we have to default to `cp -pR'. |
13253 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
13254 |
as_ln_s='cp -pR' |
13255 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
13256 |
as_ln_s=ln |
13257 |
else |
13258 |
as_ln_s='cp -pR' |
13259 |
fi |
13260 |
else |
13261 |
as_ln_s='cp -pR' |
13262 |
fi |
13263 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13264 |
rmdir conf$$.dir 2>/dev/null |
13265 |
|
13266 |
|
13267 |
# as_fn_mkdir_p |
13268 |
# ------------- |
13269 |
# Create "$as_dir" as a directory, including parents if necessary. |
13270 |
as_fn_mkdir_p () |
13271 |
{ |
13272 |
|
13273 |
case $as_dir in #( |
13274 |
-*) as_dir=./$as_dir;; |
13275 |
esac |
13276 |
test -d "$as_dir" || eval $as_mkdir_p || { |
13277 |
as_dirs= |
13278 |
while :; do |
13279 |
case $as_dir in #( |
13280 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
13281 |
*) as_qdir=$as_dir;; |
13282 |
esac |
13283 |
as_dirs="'$as_qdir' $as_dirs" |
13284 |
as_dir=`$as_dirname -- "$as_dir" || |
13285 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13286 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
13287 |
X"$as_dir" : 'X\(//\)$' \| \ |
13288 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
13289 |
$as_echo X"$as_dir" | |
13290 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13291 |
s//\1/ |
13292 |
q |
13293 |
} |
13294 |
/^X\(\/\/\)[^/].*/{ |
13295 |
s//\1/ |
13296 |
q |
13297 |
} |
13298 |
/^X\(\/\/\)$/{ |
13299 |
s//\1/ |
13300 |
q |
13301 |
} |
13302 |
/^X\(\/\).*/{ |
13303 |
s//\1/ |
13304 |
q |
13305 |
} |
13306 |
s/.*/./; q'` |
13307 |
test -d "$as_dir" && break |
13308 |
done |
13309 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
13310 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
13311 |
|
13312 |
|
13313 |
} # as_fn_mkdir_p |
13314 |
if mkdir -p . 2>/dev/null; then |
13315 |
as_mkdir_p='mkdir -p "$as_dir"' |
13316 |
else |
13317 |
test -d ./-p && rmdir ./-p |
13318 |
as_mkdir_p=false |
13319 |
fi |
13320 |
|
13321 |
|
13322 |
# as_fn_executable_p FILE |
13323 |
# ----------------------- |
13324 |
# Test if FILE is an executable regular file. |
13325 |
as_fn_executable_p () |
13326 |
{ |
13327 |
test -f "$1" && test -x "$1" |
13328 |
} # as_fn_executable_p |
13329 |
as_test_x='test -x' |
13330 |
as_executable_p=as_fn_executable_p |
13331 |
|
13332 |
# Sed expression to map a string onto a valid CPP name. |
13333 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13334 |
|
13335 |
# Sed expression to map a string onto a valid variable name. |
13336 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13337 |
|
13338 |
|
13339 |
exec 6>&1 |
13340 |
## ----------------------------------- ## |
13341 |
## Main body of $CONFIG_STATUS script. ## |
13342 |
## ----------------------------------- ## |
13343 |
_ASEOF |
13344 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
13345 |
|
13346 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13347 |
# Save the log message, to keep $0 and so on meaningful, and to |
13348 |
# report actual input values of CONFIG_FILES etc. instead of their |
13349 |
# values after options handling. |
13350 |
ac_log=" |
13351 |
This file was extended by hopm $as_me 1.0.0beta1, which was |
13352 |
generated by GNU Autoconf 2.69. Invocation command line was |
13353 |
|
13354 |
CONFIG_FILES = $CONFIG_FILES |
13355 |
CONFIG_HEADERS = $CONFIG_HEADERS |
13356 |
CONFIG_LINKS = $CONFIG_LINKS |
13357 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
13358 |
$ $0 $@ |
13359 |
|
13360 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13361 |
" |
13362 |
|
13363 |
_ACEOF |
13364 |
|
13365 |
case $ac_config_files in *" |
13366 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
13367 |
esac |
13368 |
|
13369 |
case $ac_config_headers in *" |
13370 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
13371 |
esac |
13372 |
|
13373 |
|
13374 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13375 |
# Files that config.status was made for. |
13376 |
config_files="$ac_config_files" |
13377 |
config_headers="$ac_config_headers" |
13378 |
config_commands="$ac_config_commands" |
13379 |
|
13380 |
_ACEOF |
13381 |
|
13382 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13383 |
ac_cs_usage="\ |
13384 |
\`$as_me' instantiates files and other configuration actions |
13385 |
from templates according to the current configuration. Unless the files |
13386 |
and actions are specified as TAGs, all are instantiated by default. |
13387 |
|
13388 |
Usage: $0 [OPTION]... [TAG]... |
13389 |
|
13390 |
-h, --help print this help, then exit |
13391 |
-V, --version print version number and configuration settings, then exit |
13392 |
--config print configuration, then exit |
13393 |
-q, --quiet, --silent |
13394 |
do not print progress messages |
13395 |
-d, --debug don't remove temporary files |
13396 |
--recheck update $as_me by reconfiguring in the same conditions |
13397 |
--file=FILE[:TEMPLATE] |
13398 |
instantiate the configuration file FILE |
13399 |
--header=FILE[:TEMPLATE] |
13400 |
instantiate the configuration header FILE |
13401 |
|
13402 |
Configuration files: |
13403 |
$config_files |
13404 |
|
13405 |
Configuration headers: |
13406 |
$config_headers |
13407 |
|
13408 |
Configuration commands: |
13409 |
$config_commands |
13410 |
|
13411 |
Report bugs to the package provider." |
13412 |
|
13413 |
_ACEOF |
13414 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13415 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
13416 |
ac_cs_version="\\ |
13417 |
hopm config.status 1.0.0beta1 |
13418 |
configured by $0, generated by GNU Autoconf 2.69, |
13419 |
with options \\"\$ac_cs_config\\" |
13420 |
|
13421 |
Copyright (C) 2012 Free Software Foundation, Inc. |
13422 |
This config.status script is free software; the Free Software Foundation |
13423 |
gives unlimited permission to copy, distribute and modify it." |
13424 |
|
13425 |
ac_pwd='$ac_pwd' |
13426 |
srcdir='$srcdir' |
13427 |
INSTALL='$INSTALL' |
13428 |
MKDIR_P='$MKDIR_P' |
13429 |
AWK='$AWK' |
13430 |
test -n "\$AWK" || AWK=awk |
13431 |
_ACEOF |
13432 |
|
13433 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13434 |
# The default lists apply if the user does not specify any file. |
13435 |
ac_need_defaults=: |
13436 |
while test $# != 0 |
13437 |
do |
13438 |
case $1 in |
13439 |
--*=?*) |
13440 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13441 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
13442 |
ac_shift=: |
13443 |
;; |
13444 |
--*=) |
13445 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13446 |
ac_optarg= |
13447 |
ac_shift=: |
13448 |
;; |
13449 |
*) |
13450 |
ac_option=$1 |
13451 |
ac_optarg=$2 |
13452 |
ac_shift=shift |
13453 |
;; |
13454 |
esac |
13455 |
|
13456 |
case $ac_option in |
13457 |
# Handling of the options. |
13458 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13459 |
ac_cs_recheck=: ;; |
13460 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13461 |
$as_echo "$ac_cs_version"; exit ;; |
13462 |
--config | --confi | --conf | --con | --co | --c ) |
13463 |
$as_echo "$ac_cs_config"; exit ;; |
13464 |
--debug | --debu | --deb | --de | --d | -d ) |
13465 |
debug=: ;; |
13466 |
--file | --fil | --fi | --f ) |
13467 |
$ac_shift |
13468 |
case $ac_optarg in |
13469 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13470 |
'') as_fn_error $? "missing file argument" ;; |
13471 |
esac |
13472 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
13473 |
ac_need_defaults=false;; |
13474 |
--header | --heade | --head | --hea ) |
13475 |
$ac_shift |
13476 |
case $ac_optarg in |
13477 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13478 |
esac |
13479 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
13480 |
ac_need_defaults=false;; |
13481 |
--he | --h) |
13482 |
# Conflict between --help and --header |
13483 |
as_fn_error $? "ambiguous option: \`$1' |
13484 |
Try \`$0 --help' for more information.";; |
13485 |
--help | --hel | -h ) |
13486 |
$as_echo "$ac_cs_usage"; exit ;; |
13487 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13488 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
13489 |
ac_cs_silent=: ;; |
13490 |
|
13491 |
# This is an error. |
13492 |
-*) as_fn_error $? "unrecognized option: \`$1' |
13493 |
Try \`$0 --help' for more information." ;; |
13494 |
|
13495 |
*) as_fn_append ac_config_targets " $1" |
13496 |
ac_need_defaults=false ;; |
13497 |
|
13498 |
esac |
13499 |
shift |
13500 |
done |
13501 |
|
13502 |
ac_configure_extra_args= |
13503 |
|
13504 |
if $ac_cs_silent; then |
13505 |
exec 6>/dev/null |
13506 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
13507 |
fi |
13508 |
|
13509 |
_ACEOF |
13510 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13511 |
if \$ac_cs_recheck; then |
13512 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13513 |
shift |
13514 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
13515 |
CONFIG_SHELL='$SHELL' |
13516 |
export CONFIG_SHELL |
13517 |
exec "\$@" |
13518 |
fi |
13519 |
|
13520 |
_ACEOF |
13521 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13522 |
exec 5>>config.log |
13523 |
{ |
13524 |
echo |
13525 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
13526 |
## Running $as_me. ## |
13527 |
_ASBOX |
13528 |
$as_echo "$ac_log" |
13529 |
} >&5 |
13530 |
|
13531 |
_ACEOF |
13532 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13533 |
# |
13534 |
# INIT-COMMANDS |
13535 |
# |
13536 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
13537 |
|
13538 |
|
13539 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
13540 |
# if CDPATH is set. |
13541 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
13542 |
|
13543 |
sed_quote_subst='$sed_quote_subst' |
13544 |
double_quote_subst='$double_quote_subst' |
13545 |
delay_variable_subst='$delay_variable_subst' |
13546 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13547 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
13548 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
13549 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
13550 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
13551 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
13552 |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
13553 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13554 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
13555 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
13556 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
13557 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
13558 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
13559 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
13560 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
13561 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
13562 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
13563 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
13564 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
13565 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
13566 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
13567 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
13568 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
13569 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
13570 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
13571 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
13572 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
13573 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
13574 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
13575 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
13576 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
13577 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
13578 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
13579 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
13580 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
13581 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
13582 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
13583 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
13584 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
13585 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
13586 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
13587 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
13588 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
13589 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
13590 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
13591 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
13592 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
13593 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
13594 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
13595 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
13596 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
13597 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
13598 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
13599 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
13600 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
13601 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
13602 |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
13603 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13604 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
13605 |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
13606 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13607 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
13608 |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
13609 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13610 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
13611 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
13612 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
13613 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
13614 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
13615 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
13616 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
13617 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
13618 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
13619 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
13620 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
13621 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
13622 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
13623 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
13624 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
13625 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
13626 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
13627 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
13628 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
13629 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
13630 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
13631 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
13632 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
13633 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
13634 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
13635 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
13636 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
13637 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
13638 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
13639 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
13640 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
13641 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
13642 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
13643 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
13644 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
13645 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
13646 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
13647 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
13648 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
13649 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
13650 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
13651 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
13652 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
13653 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
13654 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
13655 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
13656 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
13657 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
13658 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
13659 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
13660 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
13661 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
13662 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
13663 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
13664 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
13665 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
13666 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
13667 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
13668 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
13669 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
13670 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
13671 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
13672 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
13673 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
13674 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13675 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
13676 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
13677 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
13678 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
13679 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
13680 |
|
13681 |
LTCC='$LTCC' |
13682 |
LTCFLAGS='$LTCFLAGS' |
13683 |
compiler='$compiler_DEFAULT' |
13684 |
|
13685 |
# A function that is used when there is no print builtin or printf. |
13686 |
func_fallback_echo () |
13687 |
{ |
13688 |
eval 'cat <<_LTECHO_EOF |
13689 |
\$1 |
13690 |
_LTECHO_EOF' |
13691 |
} |
13692 |
|
13693 |
# Quote evaled strings. |
13694 |
for var in SHELL \ |
13695 |
ECHO \ |
13696 |
PATH_SEPARATOR \ |
13697 |
SED \ |
13698 |
GREP \ |
13699 |
EGREP \ |
13700 |
FGREP \ |
13701 |
LD \ |
13702 |
NM \ |
13703 |
LN_S \ |
13704 |
lt_SP2NL \ |
13705 |
lt_NL2SP \ |
13706 |
reload_flag \ |
13707 |
OBJDUMP \ |
13708 |
deplibs_check_method \ |
13709 |
file_magic_cmd \ |
13710 |
file_magic_glob \ |
13711 |
want_nocaseglob \ |
13712 |
DLLTOOL \ |
13713 |
sharedlib_from_linklib_cmd \ |
13714 |
AR \ |
13715 |
AR_FLAGS \ |
13716 |
archiver_list_spec \ |
13717 |
STRIP \ |
13718 |
RANLIB \ |
13719 |
CC \ |
13720 |
CFLAGS \ |
13721 |
compiler \ |
13722 |
lt_cv_sys_global_symbol_pipe \ |
13723 |
lt_cv_sys_global_symbol_to_cdecl \ |
13724 |
lt_cv_sys_global_symbol_to_import \ |
13725 |
lt_cv_sys_global_symbol_to_c_name_address \ |
13726 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
13727 |
lt_cv_nm_interface \ |
13728 |
nm_file_list_spec \ |
13729 |
lt_cv_truncate_bin \ |
13730 |
lt_prog_compiler_no_builtin_flag \ |
13731 |
lt_prog_compiler_pic \ |
13732 |
lt_prog_compiler_wl \ |
13733 |
lt_prog_compiler_static \ |
13734 |
lt_cv_prog_compiler_c_o \ |
13735 |
need_locks \ |
13736 |
MANIFEST_TOOL \ |
13737 |
DSYMUTIL \ |
13738 |
NMEDIT \ |
13739 |
LIPO \ |
13740 |
OTOOL \ |
13741 |
OTOOL64 \ |
13742 |
shrext_cmds \ |
13743 |
export_dynamic_flag_spec \ |
13744 |
whole_archive_flag_spec \ |
13745 |
compiler_needs_object \ |
13746 |
with_gnu_ld \ |
13747 |
allow_undefined_flag \ |
13748 |
no_undefined_flag \ |
13749 |
hardcode_libdir_flag_spec \ |
13750 |
hardcode_libdir_separator \ |
13751 |
exclude_expsyms \ |
13752 |
include_expsyms \ |
13753 |
file_list_spec \ |
13754 |
variables_saved_for_relink \ |
13755 |
libname_spec \ |
13756 |
library_names_spec \ |
13757 |
soname_spec \ |
13758 |
install_override_mode \ |
13759 |
finish_eval \ |
13760 |
old_striplib \ |
13761 |
striplib; do |
13762 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
13763 |
*[\\\\\\\`\\"\\\$]*) |
13764 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
13765 |
;; |
13766 |
*) |
13767 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
13768 |
;; |
13769 |
esac |
13770 |
done |
13771 |
|
13772 |
# Double-quote double-evaled strings. |
13773 |
for var in reload_cmds \ |
13774 |
old_postinstall_cmds \ |
13775 |
old_postuninstall_cmds \ |
13776 |
old_archive_cmds \ |
13777 |
extract_expsyms_cmds \ |
13778 |
old_archive_from_new_cmds \ |
13779 |
old_archive_from_expsyms_cmds \ |
13780 |
archive_cmds \ |
13781 |
archive_expsym_cmds \ |
13782 |
module_cmds \ |
13783 |
module_expsym_cmds \ |
13784 |
export_symbols_cmds \ |
13785 |
prelink_cmds \ |
13786 |
postlink_cmds \ |
13787 |
postinstall_cmds \ |
13788 |
postuninstall_cmds \ |
13789 |
finish_cmds \ |
13790 |
sys_lib_search_path_spec \ |
13791 |
sys_lib_dlsearch_path_spec; do |
13792 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
13793 |
*[\\\\\\\`\\"\\\$]*) |
13794 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
13795 |
;; |
13796 |
*) |
13797 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
13798 |
;; |
13799 |
esac |
13800 |
done |
13801 |
|
13802 |
ac_aux_dir='$ac_aux_dir' |
13803 |
|
13804 |
# See if we are running on zsh, and set the options that allow our |
13805 |
# commands through without removal of \ escapes INIT. |
13806 |
if test -n "\${ZSH_VERSION+set}"; then |
13807 |
setopt NO_GLOB_SUBST |
13808 |
fi |
13809 |
|
13810 |
|
13811 |
PACKAGE='$PACKAGE' |
13812 |
VERSION='$VERSION' |
13813 |
RM='$RM' |
13814 |
ofile='$ofile' |
13815 |
|
13816 |
|
13817 |
|
13818 |
|
13819 |
_ACEOF |
13820 |
|
13821 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13822 |
|
13823 |
# Handling of arguments. |
13824 |
for ac_config_target in $ac_config_targets |
13825 |
do |
13826 |
case $ac_config_target in |
13827 |
"src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;; |
13828 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
13829 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
13830 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13831 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13832 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13833 |
|
13834 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
13835 |
esac |
13836 |
done |
13837 |
|
13838 |
|
13839 |
# If the user did not use the arguments to specify the items to instantiate, |
13840 |
# then the envvar interface is used. Set only those that are not. |
13841 |
# We use the long form for the default assignment because of an extremely |
13842 |
# bizarre bug on SunOS 4.1.3. |
13843 |
if $ac_need_defaults; then |
13844 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
13845 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
13846 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
13847 |
fi |
13848 |
|
13849 |
# Have a temporary directory for convenience. Make it in the build tree |
13850 |
# simply because there is no reason against having it here, and in addition, |
13851 |
# creating and moving files from /tmp can sometimes cause problems. |
13852 |
# Hook for its removal unless debugging. |
13853 |
# Note that there is a small window in which the directory will not be cleaned: |
13854 |
# after its creation but before its name has been assigned to `$tmp'. |
13855 |
$debug || |
13856 |
{ |
13857 |
tmp= ac_tmp= |
13858 |
trap 'exit_status=$? |
13859 |
: "${ac_tmp:=$tmp}" |
13860 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
13861 |
' 0 |
13862 |
trap 'as_fn_exit 1' 1 2 13 15 |
13863 |
} |
13864 |
# Create a (secure) tmp directory for tmp files. |
13865 |
|
13866 |
{ |
13867 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
13868 |
test -d "$tmp" |
13869 |
} || |
13870 |
{ |
13871 |
tmp=./conf$$-$RANDOM |
13872 |
(umask 077 && mkdir "$tmp") |
13873 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13874 |
ac_tmp=$tmp |
13875 |
|
13876 |
# Set up the scripts for CONFIG_FILES section. |
13877 |
# No need to generate them if there are no CONFIG_FILES. |
13878 |
# This happens for instance with `./config.status config.h'. |
13879 |
if test -n "$CONFIG_FILES"; then |
13880 |
|
13881 |
|
13882 |
ac_cr=`echo X | tr X '\015'` |
13883 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
13884 |
# But we know of no other shell where ac_cr would be empty at this |
13885 |
# point, so we can use a bashism as a fallback. |
13886 |
if test "x$ac_cr" = x; then |
13887 |
eval ac_cr=\$\'\\r\' |
13888 |
fi |
13889 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13890 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
13891 |
ac_cs_awk_cr='\\r' |
13892 |
else |
13893 |
ac_cs_awk_cr=$ac_cr |
13894 |
fi |
13895 |
|
13896 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
13897 |
_ACEOF |
13898 |
|
13899 |
|
13900 |
{ |
13901 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
13902 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
13903 |
echo "_ACEOF" |
13904 |
} >conf$$subs.sh || |
13905 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13906 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
13907 |
ac_delim='%!_!# ' |
13908 |
for ac_last_try in false false false false false :; do |
13909 |
. ./conf$$subs.sh || |
13910 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13911 |
|
13912 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13913 |
if test $ac_delim_n = $ac_delim_num; then |
13914 |
break |
13915 |
elif $ac_last_try; then |
13916 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13917 |
else |
13918 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
13919 |
fi |
13920 |
done |
13921 |
rm -f conf$$subs.sh |
13922 |
|
13923 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13924 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
13925 |
_ACEOF |
13926 |
sed -n ' |
13927 |
h |
13928 |
s/^/S["/; s/!.*/"]=/ |
13929 |
p |
13930 |
g |
13931 |
s/^[^!]*!// |
13932 |
:repl |
13933 |
t repl |
13934 |
s/'"$ac_delim"'$// |
13935 |
t delim |
13936 |
:nl |
13937 |
h |
13938 |
s/\(.\{148\}\)..*/\1/ |
13939 |
t more1 |
13940 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
13941 |
p |
13942 |
n |
13943 |
b repl |
13944 |
:more1 |
13945 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
13946 |
p |
13947 |
g |
13948 |
s/.\{148\}// |
13949 |
t nl |
13950 |
:delim |
13951 |
h |
13952 |
s/\(.\{148\}\)..*/\1/ |
13953 |
t more2 |
13954 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
13955 |
p |
13956 |
b |
13957 |
:more2 |
13958 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
13959 |
p |
13960 |
g |
13961 |
s/.\{148\}// |
13962 |
t delim |
13963 |
' <conf$$subs.awk | sed ' |
13964 |
/^[^""]/{ |
13965 |
N |
13966 |
s/\n// |
13967 |
} |
13968 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
13969 |
rm -f conf$$subs.awk |
13970 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13971 |
_ACAWK |
13972 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
13973 |
for (key in S) S_is_set[key] = 1 |
13974 |
FS = "" |
13975 |
|
13976 |
} |
13977 |
{ |
13978 |
line = $ 0 |
13979 |
nfields = split(line, field, "@") |
13980 |
substed = 0 |
13981 |
len = length(field[1]) |
13982 |
for (i = 2; i < nfields; i++) { |
13983 |
key = field[i] |
13984 |
keylen = length(key) |
13985 |
if (S_is_set[key]) { |
13986 |
value = S[key] |
13987 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
13988 |
len += length(value) + length(field[++i]) |
13989 |
substed = 1 |
13990 |
} else |
13991 |
len += 1 + keylen |
13992 |
} |
13993 |
|
13994 |
print line |
13995 |
} |
13996 |
|
13997 |
_ACAWK |
13998 |
_ACEOF |
13999 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14000 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
14001 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
14002 |
else |
14003 |
cat |
14004 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14005 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
14006 |
_ACEOF |
14007 |
|
14008 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14009 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
14010 |
# trailing colons and then remove the whole line if VPATH becomes empty |
14011 |
# (actually we leave an empty line to preserve line numbers). |
14012 |
if test "x$srcdir" = x.; then |
14013 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14014 |
h |
14015 |
s/// |
14016 |
s/^/:/ |
14017 |
s/[ ]*$/:/ |
14018 |
s/:\$(srcdir):/:/g |
14019 |
s/:\${srcdir}:/:/g |
14020 |
s/:@srcdir@:/:/g |
14021 |
s/^:*// |
14022 |
s/:*$// |
14023 |
x |
14024 |
s/\(=[ ]*\).*/\1/ |
14025 |
G |
14026 |
s/\n// |
14027 |
s/^[^=]*=[ ]*$// |
14028 |
}' |
14029 |
fi |
14030 |
|
14031 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14032 |
fi # test -n "$CONFIG_FILES" |
14033 |
|
14034 |
# Set up the scripts for CONFIG_HEADERS section. |
14035 |
# No need to generate them if there are no CONFIG_HEADERS. |
14036 |
# This happens for instance with `./config.status Makefile'. |
14037 |
if test -n "$CONFIG_HEADERS"; then |
14038 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
14039 |
BEGIN { |
14040 |
_ACEOF |
14041 |
|
14042 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
14043 |
# here-document in config.status, that substitutes the proper values into |
14044 |
# config.h.in to produce config.h. |
14045 |
|
14046 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
14047 |
# handling of long lines. |
14048 |
ac_delim='%!_!# ' |
14049 |
for ac_last_try in false false :; do |
14050 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14051 |
if test -z "$ac_tt"; then |
14052 |
break |
14053 |
elif $ac_last_try; then |
14054 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
14055 |
else |
14056 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
14057 |
fi |
14058 |
done |
14059 |
|
14060 |
# For the awk script, D is an array of macro values keyed by name, |
14061 |
# likewise P contains macro parameters if any. Preserve backslash |
14062 |
# newline sequences. |
14063 |
|
14064 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
14065 |
sed -n ' |
14066 |
s/.\{148\}/&'"$ac_delim"'/g |
14067 |
t rset |
14068 |
:rset |
14069 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
14070 |
t def |
14071 |
d |
14072 |
:def |
14073 |
s/\\$// |
14074 |
t bsnl |
14075 |
s/["\\]/\\&/g |
14076 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
14077 |
D["\1"]=" \3"/p |
14078 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
14079 |
d |
14080 |
:bsnl |
14081 |
s/["\\]/\\&/g |
14082 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
14083 |
D["\1"]=" \3\\\\\\n"\\/p |
14084 |
t cont |
14085 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
14086 |
t cont |
14087 |
d |
14088 |
:cont |
14089 |
n |
14090 |
s/.\{148\}/&'"$ac_delim"'/g |
14091 |
t clear |
14092 |
:clear |
14093 |
s/\\$// |
14094 |
t bsnlc |
14095 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
14096 |
d |
14097 |
:bsnlc |
14098 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
14099 |
b cont |
14100 |
' <confdefs.h | sed ' |
14101 |
s/'"$ac_delim"'/"\\\ |
14102 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
14103 |
|
14104 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14105 |
for (key in D) D_is_set[key] = 1 |
14106 |
FS = "" |
14107 |
} |
14108 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
14109 |
line = \$ 0 |
14110 |
split(line, arg, " ") |
14111 |
if (arg[1] == "#") { |
14112 |
defundef = arg[2] |
14113 |
mac1 = arg[3] |
14114 |
} else { |
14115 |
defundef = substr(arg[1], 2) |
14116 |
mac1 = arg[2] |
14117 |
} |
14118 |
split(mac1, mac2, "(") #) |
14119 |
macro = mac2[1] |
14120 |
prefix = substr(line, 1, index(line, defundef) - 1) |
14121 |
if (D_is_set[macro]) { |
14122 |
# Preserve the white space surrounding the "#". |
14123 |
print prefix "define", macro P[macro] D[macro] |
14124 |
next |
14125 |
} else { |
14126 |
# Replace #undef with comments. This is necessary, for example, |
14127 |
# in the case of _POSIX_SOURCE, which is predefined and required |
14128 |
# on some systems where configure will not decide to define it. |
14129 |
if (defundef == "undef") { |
14130 |
print "/*", prefix defundef, macro, "*/" |
14131 |
next |
14132 |
} |
14133 |
} |
14134 |
} |
14135 |
{ print } |
14136 |
_ACAWK |
14137 |
_ACEOF |
14138 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14139 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
14140 |
fi # test -n "$CONFIG_HEADERS" |
14141 |
|
14142 |
|
14143 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14144 |
shift |
14145 |
for ac_tag |
14146 |
do |
14147 |
case $ac_tag in |
14148 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
14149 |
esac |
14150 |
case $ac_mode$ac_tag in |
14151 |
:[FHL]*:*);; |
14152 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
14153 |
:[FH]-) ac_tag=-:-;; |
14154 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
14155 |
esac |
14156 |
ac_save_IFS=$IFS |
14157 |
IFS=: |
14158 |
set x $ac_tag |
14159 |
IFS=$ac_save_IFS |
14160 |
shift |
14161 |
ac_file=$1 |
14162 |
shift |
14163 |
|
14164 |
case $ac_mode in |
14165 |
:L) ac_source=$1;; |
14166 |
:[FH]) |
14167 |
ac_file_inputs= |
14168 |
for ac_f |
14169 |
do |
14170 |
case $ac_f in |
14171 |
-) ac_f="$ac_tmp/stdin";; |
14172 |
*) # Look for the file first in the build tree, then in the source tree |
14173 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
14174 |
# because $ac_f cannot contain `:'. |
14175 |
test -f "$ac_f" || |
14176 |
case $ac_f in |
14177 |
[\\/$]*) false;; |
14178 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
14179 |
esac || |
14180 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
14181 |
esac |
14182 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
14183 |
as_fn_append ac_file_inputs " '$ac_f'" |
14184 |
done |
14185 |
|
14186 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
14187 |
# use $as_me), people would be surprised to read: |
14188 |
# /* config.h. Generated by config.status. */ |
14189 |
configure_input='Generated from '` |
14190 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
14191 |
`' by configure.' |
14192 |
if test x"$ac_file" != x-; then |
14193 |
configure_input="$ac_file. $configure_input" |
14194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
14195 |
$as_echo "$as_me: creating $ac_file" >&6;} |
14196 |
fi |
14197 |
# Neutralize special characters interpreted by sed in replacement strings. |
14198 |
case $configure_input in #( |
14199 |
*\&* | *\|* | *\\* ) |
14200 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
14201 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
14202 |
*) ac_sed_conf_input=$configure_input;; |
14203 |
esac |
14204 |
|
14205 |
case $ac_tag in |
14206 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14207 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
14208 |
esac |
14209 |
;; |
14210 |
esac |
14211 |
|
14212 |
ac_dir=`$as_dirname -- "$ac_file" || |
14213 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14214 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
14215 |
X"$ac_file" : 'X\(//\)$' \| \ |
14216 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
14217 |
$as_echo X"$ac_file" | |
14218 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14219 |
s//\1/ |
14220 |
q |
14221 |
} |
14222 |
/^X\(\/\/\)[^/].*/{ |
14223 |
s//\1/ |
14224 |
q |
14225 |
} |
14226 |
/^X\(\/\/\)$/{ |
14227 |
s//\1/ |
14228 |
q |
14229 |
} |
14230 |
/^X\(\/\).*/{ |
14231 |
s//\1/ |
14232 |
q |
14233 |
} |
14234 |
s/.*/./; q'` |
14235 |
as_dir="$ac_dir"; as_fn_mkdir_p |
14236 |
ac_builddir=. |
14237 |
|
14238 |
case "$ac_dir" in |
14239 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14240 |
*) |
14241 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
14242 |
# A ".." for each directory in $ac_dir_suffix. |
14243 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
14244 |
case $ac_top_builddir_sub in |
14245 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14246 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
14247 |
esac ;; |
14248 |
esac |
14249 |
ac_abs_top_builddir=$ac_pwd |
14250 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
14251 |
# for backward compatibility: |
14252 |
ac_top_builddir=$ac_top_build_prefix |
14253 |
|
14254 |
case $srcdir in |
14255 |
.) # We are building in place. |
14256 |
ac_srcdir=. |
14257 |
ac_top_srcdir=$ac_top_builddir_sub |
14258 |
ac_abs_top_srcdir=$ac_pwd ;; |
14259 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
14260 |
ac_srcdir=$srcdir$ac_dir_suffix; |
14261 |
ac_top_srcdir=$srcdir |
14262 |
ac_abs_top_srcdir=$srcdir ;; |
14263 |
*) # Relative name. |
14264 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
14265 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
14266 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
14267 |
esac |
14268 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
14269 |
|
14270 |
|
14271 |
case $ac_mode in |
14272 |
:F) |
14273 |
# |
14274 |
# CONFIG_FILE |
14275 |
# |
14276 |
|
14277 |
case $INSTALL in |
14278 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14279 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14280 |
esac |
14281 |
ac_MKDIR_P=$MKDIR_P |
14282 |
case $MKDIR_P in |
14283 |
[\\/$]* | ?:[\\/]* ) ;; |
14284 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
14285 |
esac |
14286 |
_ACEOF |
14287 |
|
14288 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14289 |
# If the template does not know about datarootdir, expand it. |
14290 |
# FIXME: This hack should be removed a few years after 2.60. |
14291 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
14292 |
ac_sed_dataroot=' |
14293 |
/datarootdir/ { |
14294 |
p |
14295 |
q |
14296 |
} |
14297 |
/@datadir@/p |
14298 |
/@docdir@/p |
14299 |
/@infodir@/p |
14300 |
/@localedir@/p |
14301 |
/@mandir@/p' |
14302 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14303 |
*datarootdir*) ac_datarootdir_seen=yes;; |
14304 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
14305 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14306 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14307 |
_ACEOF |
14308 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14309 |
ac_datarootdir_hack=' |
14310 |
s&@datadir@&$datadir&g |
14311 |
s&@docdir@&$docdir&g |
14312 |
s&@infodir@&$infodir&g |
14313 |
s&@localedir@&$localedir&g |
14314 |
s&@mandir@&$mandir&g |
14315 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
14316 |
esac |
14317 |
_ACEOF |
14318 |
|
14319 |
# Neutralize VPATH when `$srcdir' = `.'. |
14320 |
# Shell code in configure.ac might set extrasub. |
14321 |
# FIXME: do we really want to maintain this feature? |
14322 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14323 |
ac_sed_extra="$ac_vpsub |
14324 |
$extrasub |
14325 |
_ACEOF |
14326 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14327 |
:t |
14328 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
14329 |
s|@configure_input@|$ac_sed_conf_input|;t t |
14330 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
14331 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
14332 |
s&@srcdir@&$ac_srcdir&;t t |
14333 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
14334 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
14335 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
14336 |
s&@builddir@&$ac_builddir&;t t |
14337 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
14338 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14339 |
s&@INSTALL@&$ac_INSTALL&;t t |
14340 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
14341 |
$ac_datarootdir_hack |
14342 |
" |
14343 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14344 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14345 |
|
14346 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14347 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14348 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
14349 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
14350 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14351 |
which seems to be undefined. Please make sure it is defined" >&5 |
14352 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14353 |
which seems to be undefined. Please make sure it is defined" >&2;} |
14354 |
|
14355 |
rm -f "$ac_tmp/stdin" |
14356 |
case $ac_file in |
14357 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14358 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
14359 |
esac \ |
14360 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14361 |
;; |
14362 |
:H) |
14363 |
# |
14364 |
# CONFIG_HEADER |
14365 |
# |
14366 |
if test x"$ac_file" != x-; then |
14367 |
{ |
14368 |
$as_echo "/* $configure_input */" \ |
14369 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14370 |
} >"$ac_tmp/config.h" \ |
14371 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14372 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
14373 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
14374 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
14375 |
else |
14376 |
rm -f "$ac_file" |
14377 |
mv "$ac_tmp/config.h" "$ac_file" \ |
14378 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14379 |
fi |
14380 |
else |
14381 |
$as_echo "/* $configure_input */" \ |
14382 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
14383 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
14384 |
fi |
14385 |
# Compute "$ac_file"'s index in $config_headers. |
14386 |
_am_arg="$ac_file" |
14387 |
_am_stamp_count=1 |
14388 |
for _am_header in $config_headers :; do |
14389 |
case $_am_header in |
14390 |
$_am_arg | $_am_arg:* ) |
14391 |
break ;; |
14392 |
* ) |
14393 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
14394 |
esac |
14395 |
done |
14396 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
14397 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14398 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
14399 |
X"$_am_arg" : 'X\(//\)$' \| \ |
14400 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
14401 |
$as_echo X"$_am_arg" | |
14402 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14403 |
s//\1/ |
14404 |
q |
14405 |
} |
14406 |
/^X\(\/\/\)[^/].*/{ |
14407 |
s//\1/ |
14408 |
q |
14409 |
} |
14410 |
/^X\(\/\/\)$/{ |
14411 |
s//\1/ |
14412 |
q |
14413 |
} |
14414 |
/^X\(\/\).*/{ |
14415 |
s//\1/ |
14416 |
q |
14417 |
} |
14418 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
14419 |
;; |
14420 |
|
14421 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
14422 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
14423 |
;; |
14424 |
esac |
14425 |
|
14426 |
|
14427 |
case $ac_file$ac_mode in |
14428 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
14429 |
# Older Autoconf quotes --file arguments for eval, but not when files |
14430 |
# are listed without --file. Let's play safe and only enable the eval |
14431 |
# if we detect the quoting. |
14432 |
case $CONFIG_FILES in |
14433 |
*\'*) eval set x "$CONFIG_FILES" ;; |
14434 |
*) set x $CONFIG_FILES ;; |
14435 |
esac |
14436 |
shift |
14437 |
for mf |
14438 |
do |
14439 |
# Strip MF so we end up with the name of the file. |
14440 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
14441 |
# Check whether this is an Automake generated Makefile or not. |
14442 |
# We used to match only the files named 'Makefile.in', but |
14443 |
# some people rename them; so instead we look at the file content. |
14444 |
# Grep'ing the first line is not enough: some people post-process |
14445 |
# each Makefile.in and add a new line on top of each file to say so. |
14446 |
# Grep'ing the whole file is not good either: AIX grep has a line |
14447 |
# limit of 2048, but all sed's we know have understand at least 4000. |
14448 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
14449 |
dirpart=`$as_dirname -- "$mf" || |
14450 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14451 |
X"$mf" : 'X\(//\)[^/]' \| \ |
14452 |
X"$mf" : 'X\(//\)$' \| \ |
14453 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
14454 |
$as_echo X"$mf" | |
14455 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14456 |
s//\1/ |
14457 |
q |
14458 |
} |
14459 |
/^X\(\/\/\)[^/].*/{ |
14460 |
s//\1/ |
14461 |
q |
14462 |
} |
14463 |
/^X\(\/\/\)$/{ |
14464 |
s//\1/ |
14465 |
q |
14466 |
} |
14467 |
/^X\(\/\).*/{ |
14468 |
s//\1/ |
14469 |
q |
14470 |
} |
14471 |
s/.*/./; q'` |
14472 |
else |
14473 |
continue |
14474 |
fi |
14475 |
# Extract the definition of DEPDIR, am__include, and am__quote |
14476 |
# from the Makefile without running 'make'. |
14477 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14478 |
test -z "$DEPDIR" && continue |
14479 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
14480 |
test -z "$am__include" && continue |
14481 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
14482 |
# Find all dependency output files, they are included files with |
14483 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
14484 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
14485 |
# expansion. |
14486 |
for file in `sed -n " |
14487 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
14488 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
14489 |
# Make sure the directory exists. |
14490 |
test -f "$dirpart/$file" && continue |
14491 |
fdir=`$as_dirname -- "$file" || |
14492 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14493 |
X"$file" : 'X\(//\)[^/]' \| \ |
14494 |
X"$file" : 'X\(//\)$' \| \ |
14495 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14496 |
$as_echo X"$file" | |
14497 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14498 |
s//\1/ |
14499 |
q |
14500 |
} |
14501 |
/^X\(\/\/\)[^/].*/{ |
14502 |
s//\1/ |
14503 |
q |
14504 |
} |
14505 |
/^X\(\/\/\)$/{ |
14506 |
s//\1/ |
14507 |
q |
14508 |
} |
14509 |
/^X\(\/\).*/{ |
14510 |
s//\1/ |
14511 |
q |
14512 |
} |
14513 |
s/.*/./; q'` |
14514 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
14515 |
# echo "creating $dirpart/$file" |
14516 |
echo '# dummy' > "$dirpart/$file" |
14517 |
done |
14518 |
done |
14519 |
} |
14520 |
;; |
14521 |
"libtool":C) |
14522 |
|
14523 |
# See if we are running on zsh, and set the options that allow our |
14524 |
# commands through without removal of \ escapes. |
14525 |
if test -n "${ZSH_VERSION+set}"; then |
14526 |
setopt NO_GLOB_SUBST |
14527 |
fi |
14528 |
|
14529 |
cfgfile=${ofile}T |
14530 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14531 |
$RM "$cfgfile" |
14532 |
|
14533 |
cat <<_LT_EOF >> "$cfgfile" |
14534 |
#! $SHELL |
14535 |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
14536 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14537 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
14538 |
|
14539 |
# Provide generalized library-building support services. |
14540 |
# Written by Gordon Matzigkeit, 1996 |
14541 |
|
14542 |
# Copyright (C) 2014 Free Software Foundation, Inc. |
14543 |
# This is free software; see the source for copying conditions. There is NO |
14544 |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14545 |
|
14546 |
# GNU Libtool is free software; you can redistribute it and/or modify |
14547 |
# it under the terms of the GNU General Public License as published by |
14548 |
# the Free Software Foundation; either version 2 of of the License, or |
14549 |
# (at your option) any later version. |
14550 |
# |
14551 |
# As a special exception to the GNU General Public License, if you |
14552 |
# distribute this file as part of a program or library that is built |
14553 |
# using GNU Libtool, you may include this file under the same |
14554 |
# distribution terms that you use for the rest of that program. |
14555 |
# |
14556 |
# GNU Libtool is distributed in the hope that it will be useful, but |
14557 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
14558 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14559 |
# GNU General Public License for more details. |
14560 |
# |
14561 |
# You should have received a copy of the GNU General Public License |
14562 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
14563 |
|
14564 |
|
14565 |
# The names of the tagged configurations supported by this script. |
14566 |
available_tags='' |
14567 |
|
14568 |
# ### BEGIN LIBTOOL CONFIG |
14569 |
|
14570 |
# Which release of libtool.m4 was used? |
14571 |
macro_version=$macro_version |
14572 |
macro_revision=$macro_revision |
14573 |
|
14574 |
# Whether or not to build shared libraries. |
14575 |
build_libtool_libs=$enable_shared |
14576 |
|
14577 |
# Whether or not to build static libraries. |
14578 |
build_old_libs=$enable_static |
14579 |
|
14580 |
# What type of objects to build. |
14581 |
pic_mode=$pic_mode |
14582 |
|
14583 |
# Whether or not to optimize for fast installation. |
14584 |
fast_install=$enable_fast_install |
14585 |
|
14586 |
# Shared archive member basename,for filename based shared library versioning on AIX. |
14587 |
shared_archive_member_spec=$shared_archive_member_spec |
14588 |
|
14589 |
# Shell to use when invoking shell scripts. |
14590 |
SHELL=$lt_SHELL |
14591 |
|
14592 |
# An echo program that protects backslashes. |
14593 |
ECHO=$lt_ECHO |
14594 |
|
14595 |
# The PATH separator for the build system. |
14596 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
14597 |
|
14598 |
# The host system. |
14599 |
host_alias=$host_alias |
14600 |
host=$host |
14601 |
host_os=$host_os |
14602 |
|
14603 |
# The build system. |
14604 |
build_alias=$build_alias |
14605 |
build=$build |
14606 |
build_os=$build_os |
14607 |
|
14608 |
# A sed program that does not truncate output. |
14609 |
SED=$lt_SED |
14610 |
|
14611 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14612 |
Xsed="\$SED -e 1s/^X//" |
14613 |
|
14614 |
# A grep program that handles long lines. |
14615 |
GREP=$lt_GREP |
14616 |
|
14617 |
# An ERE matcher. |
14618 |
EGREP=$lt_EGREP |
14619 |
|
14620 |
# A literal string matcher. |
14621 |
FGREP=$lt_FGREP |
14622 |
|
14623 |
# A BSD- or MS-compatible name lister. |
14624 |
NM=$lt_NM |
14625 |
|
14626 |
# Whether we need soft or hard links. |
14627 |
LN_S=$lt_LN_S |
14628 |
|
14629 |
# What is the maximum length of a command? |
14630 |
max_cmd_len=$max_cmd_len |
14631 |
|
14632 |
# Object file suffix (normally "o"). |
14633 |
objext=$ac_objext |
14634 |
|
14635 |
# Executable file suffix (normally ""). |
14636 |
exeext=$exeext |
14637 |
|
14638 |
# whether the shell understands "unset". |
14639 |
lt_unset=$lt_unset |
14640 |
|
14641 |
# turn spaces into newlines. |
14642 |
SP2NL=$lt_lt_SP2NL |
14643 |
|
14644 |
# turn newlines into spaces. |
14645 |
NL2SP=$lt_lt_NL2SP |
14646 |
|
14647 |
# convert \$build file names to \$host format. |
14648 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
14649 |
|
14650 |
# convert \$build files to toolchain format. |
14651 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
14652 |
|
14653 |
# An object symbol dumper. |
14654 |
OBJDUMP=$lt_OBJDUMP |
14655 |
|
14656 |
# Method to check whether dependent libraries are shared objects. |
14657 |
deplibs_check_method=$lt_deplibs_check_method |
14658 |
|
14659 |
# Command to use when deplibs_check_method = "file_magic". |
14660 |
file_magic_cmd=$lt_file_magic_cmd |
14661 |
|
14662 |
# How to find potential files when deplibs_check_method = "file_magic". |
14663 |
file_magic_glob=$lt_file_magic_glob |
14664 |
|
14665 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
14666 |
want_nocaseglob=$lt_want_nocaseglob |
14667 |
|
14668 |
# DLL creation program. |
14669 |
DLLTOOL=$lt_DLLTOOL |
14670 |
|
14671 |
# Command to associate shared and link libraries. |
14672 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
14673 |
|
14674 |
# The archiver. |
14675 |
AR=$lt_AR |
14676 |
|
14677 |
# Flags to create an archive. |
14678 |
AR_FLAGS=$lt_AR_FLAGS |
14679 |
|
14680 |
# How to feed a file listing to the archiver. |
14681 |
archiver_list_spec=$lt_archiver_list_spec |
14682 |
|
14683 |
# A symbol stripping program. |
14684 |
STRIP=$lt_STRIP |
14685 |
|
14686 |
# Commands used to install an old-style archive. |
14687 |
RANLIB=$lt_RANLIB |
14688 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
14689 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
14690 |
|
14691 |
# Whether to use a lock for old archive extraction. |
14692 |
lock_old_archive_extraction=$lock_old_archive_extraction |
14693 |
|
14694 |
# A C compiler. |
14695 |
LTCC=$lt_CC |
14696 |
|
14697 |
# LTCC compiler flags. |
14698 |
LTCFLAGS=$lt_CFLAGS |
14699 |
|
14700 |
# Take the output of nm and produce a listing of raw symbols and C names. |
14701 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
14702 |
|
14703 |
# Transform the output of nm in a proper C declaration. |
14704 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
14705 |
|
14706 |
# Transform the output of nm into a list of symbols to manually relocate. |
14707 |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
14708 |
|
14709 |
# Transform the output of nm in a C name address pair. |
14710 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
14711 |
|
14712 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
14713 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
14714 |
|
14715 |
# The name lister interface. |
14716 |
nm_interface=$lt_lt_cv_nm_interface |
14717 |
|
14718 |
# Specify filename containing input files for \$NM. |
14719 |
nm_file_list_spec=$lt_nm_file_list_spec |
14720 |
|
14721 |
# The root where to search for dependent libraries,and where our libraries should be installed. |
14722 |
lt_sysroot=$lt_sysroot |
14723 |
|
14724 |
# Command to truncate a binary pipe. |
14725 |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
14726 |
|
14727 |
# The name of the directory that contains temporary libtool files. |
14728 |
objdir=$objdir |
14729 |
|
14730 |
# Used to examine libraries when file_magic_cmd begins with "file". |
14731 |
MAGIC_CMD=$MAGIC_CMD |
14732 |
|
14733 |
# Must we lock files when doing compilation? |
14734 |
need_locks=$lt_need_locks |
14735 |
|
14736 |
# Manifest tool. |
14737 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
14738 |
|
14739 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14740 |
DSYMUTIL=$lt_DSYMUTIL |
14741 |
|
14742 |
# Tool to change global to local symbols on Mac OS X. |
14743 |
NMEDIT=$lt_NMEDIT |
14744 |
|
14745 |
# Tool to manipulate fat objects and archives on Mac OS X. |
14746 |
LIPO=$lt_LIPO |
14747 |
|
14748 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14749 |
OTOOL=$lt_OTOOL |
14750 |
|
14751 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14752 |
OTOOL64=$lt_OTOOL64 |
14753 |
|
14754 |
# Old archive suffix (normally "a"). |
14755 |
libext=$libext |
14756 |
|
14757 |
# Shared library suffix (normally ".so"). |
14758 |
shrext_cmds=$lt_shrext_cmds |
14759 |
|
14760 |
# The commands to extract the exported symbol list from a shared archive. |
14761 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
14762 |
|
14763 |
# Variables whose values should be saved in libtool wrapper scripts and |
14764 |
# restored at link time. |
14765 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
14766 |
|
14767 |
# Do we need the "lib" prefix for modules? |
14768 |
need_lib_prefix=$need_lib_prefix |
14769 |
|
14770 |
# Do we need a version for libraries? |
14771 |
need_version=$need_version |
14772 |
|
14773 |
# Library versioning type. |
14774 |
version_type=$version_type |
14775 |
|
14776 |
# Shared library runtime path variable. |
14777 |
runpath_var=$runpath_var |
14778 |
|
14779 |
# Shared library path variable. |
14780 |
shlibpath_var=$shlibpath_var |
14781 |
|
14782 |
# Is shlibpath searched before the hard-coded library search path? |
14783 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
14784 |
|
14785 |
# Format of library name prefix. |
14786 |
libname_spec=$lt_libname_spec |
14787 |
|
14788 |
# List of archive names. First name is the real one, the rest are links. |
14789 |
# The last name is the one that the linker finds with -lNAME |
14790 |
library_names_spec=$lt_library_names_spec |
14791 |
|
14792 |
# The coded name of the library, if different from the real name. |
14793 |
soname_spec=$lt_soname_spec |
14794 |
|
14795 |
# Permission mode override for installation of shared libraries. |
14796 |
install_override_mode=$lt_install_override_mode |
14797 |
|
14798 |
# Command to use after installation of a shared archive. |
14799 |
postinstall_cmds=$lt_postinstall_cmds |
14800 |
|
14801 |
# Command to use after uninstallation of a shared archive. |
14802 |
postuninstall_cmds=$lt_postuninstall_cmds |
14803 |
|
14804 |
# Commands used to finish a libtool library installation in a directory. |
14805 |
finish_cmds=$lt_finish_cmds |
14806 |
|
14807 |
# As "finish_cmds", except a single script fragment to be evaled but |
14808 |
# not shown. |
14809 |
finish_eval=$lt_finish_eval |
14810 |
|
14811 |
# Whether we should hardcode library paths into libraries. |
14812 |
hardcode_into_libs=$hardcode_into_libs |
14813 |
|
14814 |
# Compile-time system search path for libraries. |
14815 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
14816 |
|
14817 |
# Run-time system search path for libraries. |
14818 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
14819 |
|
14820 |
# Whether dlopen is supported. |
14821 |
dlopen_support=$enable_dlopen |
14822 |
|
14823 |
# Whether dlopen of programs is supported. |
14824 |
dlopen_self=$enable_dlopen_self |
14825 |
|
14826 |
# Whether dlopen of statically linked programs is supported. |
14827 |
dlopen_self_static=$enable_dlopen_self_static |
14828 |
|
14829 |
# Commands to strip libraries. |
14830 |
old_striplib=$lt_old_striplib |
14831 |
striplib=$lt_striplib |
14832 |
|
14833 |
|
14834 |
# The linker used to build libraries. |
14835 |
LD=$lt_LD |
14836 |
|
14837 |
# How to create reloadable object files. |
14838 |
reload_flag=$lt_reload_flag |
14839 |
reload_cmds=$lt_reload_cmds |
14840 |
|
14841 |
# Commands used to build an old-style archive. |
14842 |
old_archive_cmds=$lt_old_archive_cmds |
14843 |
|
14844 |
# A language specific compiler. |
14845 |
CC=$lt_compiler |
14846 |
|
14847 |
# Is the compiler the GNU compiler? |
14848 |
with_gcc=$GCC |
14849 |
|
14850 |
# Compiler flag to turn off builtin functions. |
14851 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
14852 |
|
14853 |
# Additional compiler flags for building library objects. |
14854 |
pic_flag=$lt_lt_prog_compiler_pic |
14855 |
|
14856 |
# How to pass a linker flag through the compiler. |
14857 |
wl=$lt_lt_prog_compiler_wl |
14858 |
|
14859 |
# Compiler flag to prevent dynamic linking. |
14860 |
link_static_flag=$lt_lt_prog_compiler_static |
14861 |
|
14862 |
# Does compiler simultaneously support -c and -o options? |
14863 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
14864 |
|
14865 |
# Whether or not to add -lc for building shared libraries. |
14866 |
build_libtool_need_lc=$archive_cmds_need_lc |
14867 |
|
14868 |
# Whether or not to disallow shared libs when runtime libs are static. |
14869 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
14870 |
|
14871 |
# Compiler flag to allow reflexive dlopens. |
14872 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
14873 |
|
14874 |
# Compiler flag to generate shared objects directly from archives. |
14875 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
14876 |
|
14877 |
# Whether the compiler copes with passing no objects directly. |
14878 |
compiler_needs_object=$lt_compiler_needs_object |
14879 |
|
14880 |
# Create an old-style archive from a shared archive. |
14881 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
14882 |
|
14883 |
# Create a temporary old-style archive to link instead of a shared archive. |
14884 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
14885 |
|
14886 |
# Commands used to build a shared archive. |
14887 |
archive_cmds=$lt_archive_cmds |
14888 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
14889 |
|
14890 |
# Commands used to build a loadable module if different from building |
14891 |
# a shared archive. |
14892 |
module_cmds=$lt_module_cmds |
14893 |
module_expsym_cmds=$lt_module_expsym_cmds |
14894 |
|
14895 |
# Whether we are building with GNU ld or not. |
14896 |
with_gnu_ld=$lt_with_gnu_ld |
14897 |
|
14898 |
# Flag that allows shared libraries with undefined symbols to be built. |
14899 |
allow_undefined_flag=$lt_allow_undefined_flag |
14900 |
|
14901 |
# Flag that enforces no undefined symbols. |
14902 |
no_undefined_flag=$lt_no_undefined_flag |
14903 |
|
14904 |
# Flag to hardcode \$libdir into a binary during linking. |
14905 |
# This must work even if \$libdir does not exist |
14906 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
14907 |
|
14908 |
# Whether we need a single "-rpath" flag with a separated argument. |
14909 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
14910 |
|
14911 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
14912 |
# DIR into the resulting binary. |
14913 |
hardcode_direct=$hardcode_direct |
14914 |
|
14915 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
14916 |
# DIR into the resulting binary and the resulting library dependency is |
14917 |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
14918 |
# library is relocated. |
14919 |
hardcode_direct_absolute=$hardcode_direct_absolute |
14920 |
|
14921 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14922 |
# into the resulting binary. |
14923 |
hardcode_minus_L=$hardcode_minus_L |
14924 |
|
14925 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14926 |
# into the resulting binary. |
14927 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
14928 |
|
14929 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
14930 |
# into the library and all subsequent libraries and executables linked |
14931 |
# against it. |
14932 |
hardcode_automatic=$hardcode_automatic |
14933 |
|
14934 |
# Set to yes if linker adds runtime paths of dependent libraries |
14935 |
# to runtime path list. |
14936 |
inherit_rpath=$inherit_rpath |
14937 |
|
14938 |
# Whether libtool must link a program against all its dependency libraries. |
14939 |
link_all_deplibs=$link_all_deplibs |
14940 |
|
14941 |
# Set to "yes" if exported symbols are required. |
14942 |
always_export_symbols=$always_export_symbols |
14943 |
|
14944 |
# The commands to list exported symbols. |
14945 |
export_symbols_cmds=$lt_export_symbols_cmds |
14946 |
|
14947 |
# Symbols that should not be listed in the preloaded symbols. |
14948 |
exclude_expsyms=$lt_exclude_expsyms |
14949 |
|
14950 |
# Symbols that must always be exported. |
14951 |
include_expsyms=$lt_include_expsyms |
14952 |
|
14953 |
# Commands necessary for linking programs (against libraries) with templates. |
14954 |
prelink_cmds=$lt_prelink_cmds |
14955 |
|
14956 |
# Commands necessary for finishing linking programs. |
14957 |
postlink_cmds=$lt_postlink_cmds |
14958 |
|
14959 |
# Specify filename containing input files. |
14960 |
file_list_spec=$lt_file_list_spec |
14961 |
|
14962 |
# How to hardcode a shared library path into an executable. |
14963 |
hardcode_action=$hardcode_action |
14964 |
|
14965 |
# ### END LIBTOOL CONFIG |
14966 |
|
14967 |
_LT_EOF |
14968 |
|
14969 |
case $host_os in |
14970 |
aix3*) |
14971 |
cat <<\_LT_EOF >> "$cfgfile" |
14972 |
# AIX sometimes has problems with the GCC collect2 program. For some |
14973 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
14974 |
# vanish in a puff of smoke. |
14975 |
if test set != "${COLLECT_NAMES+set}"; then |
14976 |
COLLECT_NAMES= |
14977 |
export COLLECT_NAMES |
14978 |
fi |
14979 |
_LT_EOF |
14980 |
;; |
14981 |
esac |
14982 |
|
14983 |
|
14984 |
ltmain=$ac_aux_dir/ltmain.sh |
14985 |
|
14986 |
|
14987 |
# We use sed instead of cat because bash on DJGPP gets confused if |
14988 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
14989 |
# text mode, it properly converts lines to CR/LF. This bash problem |
14990 |
# is reportedly fixed, but why not run on old versions too? |
14991 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
14992 |
|| (rm -f "$cfgfile"; exit 1) |
14993 |
|
14994 |
mv -f "$cfgfile" "$ofile" || |
14995 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14996 |
chmod +x "$ofile" |
14997 |
|
14998 |
;; |
14999 |
|
15000 |
esac |
15001 |
done # for ac_tag |
15002 |
|
15003 |
|
15004 |
as_fn_exit 0 |
15005 |
_ACEOF |
15006 |
ac_clean_files=$ac_clean_files_save |
15007 |
|
15008 |
test $ac_write_fail = 0 || |
15009 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
15010 |
|
15011 |
|
15012 |
# configure is writing to config.log, and then calls config.status. |
15013 |
# config.status does its own redirection, appending to config.log. |
15014 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
15015 |
# by configure, so config.status won't be able to write to it; its |
15016 |
# output is simply discarded. So we exec the FD to /dev/null, |
15017 |
# effectively closing config.log, so it can be properly (re)opened and |
15018 |
# appended to by config.status. When coming back to configure, we |
15019 |
# need to make the FD available again. |
15020 |
if test "$no_create" != yes; then |
15021 |
ac_cs_success=: |
15022 |
ac_config_status_args= |
15023 |
test "$silent" = yes && |
15024 |
ac_config_status_args="$ac_config_status_args --quiet" |
15025 |
exec 5>/dev/null |
15026 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
15027 |
exec 5>>config.log |
15028 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
15029 |
# would make configure fail if this is the last instruction. |
15030 |
$ac_cs_success || as_fn_exit 1 |
15031 |
fi |
15032 |
|
15033 |
# |
15034 |
# CONFIG_SUBDIRS section. |
15035 |
# |
15036 |
if test "$no_recursion" != yes; then |
15037 |
|
15038 |
# Remove --cache-file, --srcdir, and --disable-option-checking arguments |
15039 |
# so they do not pile up. |
15040 |
ac_sub_configure_args= |
15041 |
ac_prev= |
15042 |
eval "set x $ac_configure_args" |
15043 |
shift |
15044 |
for ac_arg |
15045 |
do |
15046 |
if test -n "$ac_prev"; then |
15047 |
ac_prev= |
15048 |
continue |
15049 |
fi |
15050 |
case $ac_arg in |
15051 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
15052 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
15053 |
ac_prev=cache_file ;; |
15054 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
15055 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
15056 |
| --c=*) |
15057 |
;; |
15058 |
--config-cache | -C) |
15059 |
;; |
15060 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
15061 |
ac_prev=srcdir ;; |
15062 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
15063 |
;; |
15064 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
15065 |
ac_prev=prefix ;; |
15066 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
15067 |
;; |
15068 |
--disable-option-checking) |
15069 |
;; |
15070 |
*) |
15071 |
case $ac_arg in |
15072 |
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15073 |
esac |
15074 |
as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
15075 |
esac |
15076 |
done |
15077 |
|
15078 |
# Always prepend --prefix to ensure using the same prefix |
15079 |
# in subdir configurations. |
15080 |
ac_arg="--prefix=$prefix" |
15081 |
case $ac_arg in |
15082 |
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15083 |
esac |
15084 |
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
15085 |
|
15086 |
# Pass --silent |
15087 |
if test "$silent" = yes; then |
15088 |
ac_sub_configure_args="--silent $ac_sub_configure_args" |
15089 |
fi |
15090 |
|
15091 |
# Always prepend --disable-option-checking to silence warnings, since |
15092 |
# different subdirs can have different --enable and --with options. |
15093 |
ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
15094 |
|
15095 |
ac_popdir=`pwd` |
15096 |
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
15097 |
|
15098 |
# Do not complain, so a configure script can configure whichever |
15099 |
# parts of a large source tree are present. |
15100 |
test -d "$srcdir/$ac_dir" || continue |
15101 |
|
15102 |
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
15103 |
$as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
15104 |
$as_echo "$ac_msg" >&6 |
15105 |
as_dir="$ac_dir"; as_fn_mkdir_p |
15106 |
ac_builddir=. |
15107 |
|
15108 |
case "$ac_dir" in |
15109 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15110 |
*) |
15111 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
15112 |
# A ".." for each directory in $ac_dir_suffix. |
15113 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
15114 |
case $ac_top_builddir_sub in |
15115 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15116 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
15117 |
esac ;; |
15118 |
esac |
15119 |
ac_abs_top_builddir=$ac_pwd |
15120 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
15121 |
# for backward compatibility: |
15122 |
ac_top_builddir=$ac_top_build_prefix |
15123 |
|
15124 |
case $srcdir in |
15125 |
.) # We are building in place. |
15126 |
ac_srcdir=. |
15127 |
ac_top_srcdir=$ac_top_builddir_sub |
15128 |
ac_abs_top_srcdir=$ac_pwd ;; |
15129 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
15130 |
ac_srcdir=$srcdir$ac_dir_suffix; |
15131 |
ac_top_srcdir=$srcdir |
15132 |
ac_abs_top_srcdir=$srcdir ;; |
15133 |
*) # Relative name. |
15134 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
15135 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
15136 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
15137 |
esac |
15138 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
15139 |
|
15140 |
|
15141 |
cd "$ac_dir" |
15142 |
|
15143 |
# Check for guested configure; otherwise get Cygnus style configure. |
15144 |
if test -f "$ac_srcdir/configure.gnu"; then |
15145 |
ac_sub_configure=$ac_srcdir/configure.gnu |
15146 |
elif test -f "$ac_srcdir/configure"; then |
15147 |
ac_sub_configure=$ac_srcdir/configure |
15148 |
elif test -f "$ac_srcdir/configure.in"; then |
15149 |
# This should be Cygnus configure. |
15150 |
ac_sub_configure=$ac_aux_dir/configure |
15151 |
else |
15152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
15153 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
15154 |
ac_sub_configure= |
15155 |
fi |
15156 |
|
15157 |
# The recursion is here. |
15158 |
if test -n "$ac_sub_configure"; then |
15159 |
# Make the cache file name correct relative to the subdirectory. |
15160 |
case $cache_file in |
15161 |
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
15162 |
*) # Relative name. |
15163 |
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
15164 |
esac |
15165 |
|
15166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
15167 |
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
15168 |
# The eval makes quoting arguments work. |
15169 |
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
15170 |
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
15171 |
as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
15172 |
fi |
15173 |
|
15174 |
cd "$ac_popdir" |
15175 |
done |
15176 |
fi |
15177 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
15178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
15179 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15180 |
fi |
15181 |
|
15182 |
|
15183 |
|
15184 |
echo "###############################################################################" |
15185 |
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile." |
15186 |
echo |
15187 |
echo "HOPM will be installed in ${prefix}. To change this, run:" |
15188 |
echo " ./configure --prefix=DIRECTORY" |
15189 |
echo "###############################################################################" |