1 |
#! /bin/sh |
2 |
# From configure.ac Id: configure.ac 8103 2017-04-02 10:14:44Z michael . |
3 |
# Guess values for system-dependent variables and create Makefiles. |
4 |
# Generated by GNU Autoconf 2.69 for hopm TRUNK. |
5 |
# |
6 |
# Report bugs to <bugs@ircd-hybrid.org>. |
7 |
# |
8 |
# |
9 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
10 |
# |
11 |
# |
12 |
# This configure script is free software; the Free Software Foundation |
13 |
# gives unlimited permission to copy, distribute and modify it. |
14 |
## -------------------- ## |
15 |
## M4sh Initialization. ## |
16 |
## -------------------- ## |
17 |
|
18 |
# Be more Bourne compatible |
19 |
DUALCASE=1; export DUALCASE # for MKS sh |
20 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
21 |
emulate sh |
22 |
NULLCMD=: |
23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
24 |
# is contrary to our usage. Disable this feature. |
25 |
alias -g '${1+"$@"}'='"$@"' |
26 |
setopt NO_GLOB_SUBST |
27 |
else |
28 |
case `(set -o) 2>/dev/null` in #( |
29 |
*posix*) : |
30 |
set -o posix ;; #( |
31 |
*) : |
32 |
;; |
33 |
esac |
34 |
fi |
35 |
|
36 |
|
37 |
as_nl=' |
38 |
' |
39 |
export as_nl |
40 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
41 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
43 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
44 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
45 |
# but without wasting forks for bash or zsh. |
46 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
47 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
48 |
as_echo='print -r --' |
49 |
as_echo_n='print -rn --' |
50 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
51 |
as_echo='printf %s\n' |
52 |
as_echo_n='printf %s' |
53 |
else |
54 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
55 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
56 |
as_echo_n='/usr/ucb/echo -n' |
57 |
else |
58 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
59 |
as_echo_n_body='eval |
60 |
arg=$1; |
61 |
case $arg in #( |
62 |
*"$as_nl"*) |
63 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
64 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
65 |
esac; |
66 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
67 |
' |
68 |
export as_echo_n_body |
69 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
70 |
fi |
71 |
export as_echo_body |
72 |
as_echo='sh -c $as_echo_body as_echo' |
73 |
fi |
74 |
|
75 |
# The user is always right. |
76 |
if test "${PATH_SEPARATOR+set}" != set; then |
77 |
PATH_SEPARATOR=: |
78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
80 |
PATH_SEPARATOR=';' |
81 |
} |
82 |
fi |
83 |
|
84 |
|
85 |
# IFS |
86 |
# We need space, tab and new line, in precisely that order. Quoting is |
87 |
# there to prevent editors from complaining about space-tab. |
88 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
89 |
# splitting by setting IFS to empty value.) |
90 |
IFS=" "" $as_nl" |
91 |
|
92 |
# Find who we are. Look in the path if we contain no directory separator. |
93 |
as_myself= |
94 |
case $0 in #(( |
95 |
*[\\/]* ) as_myself=$0 ;; |
96 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
97 |
for as_dir in $PATH |
98 |
do |
99 |
IFS=$as_save_IFS |
100 |
test -z "$as_dir" && as_dir=. |
101 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
102 |
done |
103 |
IFS=$as_save_IFS |
104 |
|
105 |
;; |
106 |
esac |
107 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
108 |
# in which case we are not to be found in the path. |
109 |
if test "x$as_myself" = x; then |
110 |
as_myself=$0 |
111 |
fi |
112 |
if test ! -f "$as_myself"; then |
113 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
114 |
exit 1 |
115 |
fi |
116 |
|
117 |
# Unset variables that we do not need and which cause bugs (e.g. in |
118 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
119 |
# suppresses any "Segmentation fault" message there. '((' could |
120 |
# trigger a bug in pdksh 5.2.14. |
121 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
122 |
do eval test x\${$as_var+set} = xset \ |
123 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
124 |
done |
125 |
PS1='$ ' |
126 |
PS2='> ' |
127 |
PS4='+ ' |
128 |
|
129 |
# NLS nuisances. |
130 |
LC_ALL=C |
131 |
export LC_ALL |
132 |
LANGUAGE=C |
133 |
export LANGUAGE |
134 |
|
135 |
# CDPATH. |
136 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
137 |
|
138 |
# Use a proper internal environment variable to ensure we don't fall |
139 |
# into an infinite loop, continuously re-executing ourselves. |
140 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
141 |
_as_can_reexec=no; export _as_can_reexec; |
142 |
# We cannot yet assume a decent shell, so we have to provide a |
143 |
# neutralization value for shells without unset; and this also |
144 |
# works around shells that cannot unset nonexistent variables. |
145 |
# Preserve -v and -x to the replacement shell. |
146 |
BASH_ENV=/dev/null |
147 |
ENV=/dev/null |
148 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
149 |
case $- in # (((( |
150 |
*v*x* | *x*v* ) as_opts=-vx ;; |
151 |
*v* ) as_opts=-v ;; |
152 |
*x* ) as_opts=-x ;; |
153 |
* ) as_opts= ;; |
154 |
esac |
155 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
156 |
# Admittedly, this is quite paranoid, since all the known shells bail |
157 |
# out after a failed `exec'. |
158 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
159 |
as_fn_exit 255 |
160 |
fi |
161 |
# We don't want this to propagate to other subprocesses. |
162 |
{ _as_can_reexec=; unset _as_can_reexec;} |
163 |
if test "x$CONFIG_SHELL" = x; then |
164 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
165 |
emulate sh |
166 |
NULLCMD=: |
167 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
168 |
# is contrary to our usage. Disable this feature. |
169 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
170 |
setopt NO_GLOB_SUBST |
171 |
else |
172 |
case \`(set -o) 2>/dev/null\` in #( |
173 |
*posix*) : |
174 |
set -o posix ;; #( |
175 |
*) : |
176 |
;; |
177 |
esac |
178 |
fi |
179 |
" |
180 |
as_required="as_fn_return () { (exit \$1); } |
181 |
as_fn_success () { as_fn_return 0; } |
182 |
as_fn_failure () { as_fn_return 1; } |
183 |
as_fn_ret_success () { return 0; } |
184 |
as_fn_ret_failure () { return 1; } |
185 |
|
186 |
exitcode=0 |
187 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
188 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
189 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
190 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
191 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
192 |
|
193 |
else |
194 |
exitcode=1; echo positional parameters were not saved. |
195 |
fi |
196 |
test x\$exitcode = x0 || exit 1 |
197 |
test -x / || exit 1" |
198 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
199 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
200 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
201 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
202 |
|
203 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
204 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
205 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
206 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
207 |
PATH=/empty FPATH=/empty; export PATH FPATH |
208 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
209 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
210 |
test \$(( 1 + 1 )) = 2 || exit 1" |
211 |
if (eval "$as_required") 2>/dev/null; then : |
212 |
as_have_required=yes |
213 |
else |
214 |
as_have_required=no |
215 |
fi |
216 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
217 |
|
218 |
else |
219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
220 |
as_found=false |
221 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
222 |
do |
223 |
IFS=$as_save_IFS |
224 |
test -z "$as_dir" && as_dir=. |
225 |
as_found=: |
226 |
case $as_dir in #( |
227 |
/*) |
228 |
for as_base in sh bash ksh sh5; do |
229 |
# Try only shells that exist, to save several forks. |
230 |
as_shell=$as_dir/$as_base |
231 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
232 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
233 |
CONFIG_SHELL=$as_shell as_have_required=yes |
234 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
235 |
break 2 |
236 |
fi |
237 |
fi |
238 |
done;; |
239 |
esac |
240 |
as_found=false |
241 |
done |
242 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
243 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
244 |
CONFIG_SHELL=$SHELL as_have_required=yes |
245 |
fi; } |
246 |
IFS=$as_save_IFS |
247 |
|
248 |
|
249 |
if test "x$CONFIG_SHELL" != x; then : |
250 |
export CONFIG_SHELL |
251 |
# We cannot yet assume a decent shell, so we have to provide a |
252 |
# neutralization value for shells without unset; and this also |
253 |
# works around shells that cannot unset nonexistent variables. |
254 |
# Preserve -v and -x to the replacement shell. |
255 |
BASH_ENV=/dev/null |
256 |
ENV=/dev/null |
257 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
258 |
case $- in # (((( |
259 |
*v*x* | *x*v* ) as_opts=-vx ;; |
260 |
*v* ) as_opts=-v ;; |
261 |
*x* ) as_opts=-x ;; |
262 |
* ) as_opts= ;; |
263 |
esac |
264 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
265 |
# Admittedly, this is quite paranoid, since all the known shells bail |
266 |
# out after a failed `exec'. |
267 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
268 |
exit 255 |
269 |
fi |
270 |
|
271 |
if test x$as_have_required = xno; then : |
272 |
$as_echo "$0: This script requires a shell more modern than all" |
273 |
$as_echo "$0: the shells that I found on your system." |
274 |
if test x${ZSH_VERSION+set} = xset ; then |
275 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
276 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
277 |
else |
278 |
$as_echo "$0: Please tell bug-autoconf@gnu.org and |
279 |
$0: bugs@ircd-hybrid.org about your system, including any |
280 |
$0: error possibly output before this message. Then install |
281 |
$0: a modern shell, or manually run the script under such a |
282 |
$0: shell if you do have one." |
283 |
fi |
284 |
exit 1 |
285 |
fi |
286 |
fi |
287 |
fi |
288 |
SHELL=${CONFIG_SHELL-/bin/sh} |
289 |
export SHELL |
290 |
# Unset more variables known to interfere with behavior of common tools. |
291 |
CLICOLOR_FORCE= GREP_OPTIONS= |
292 |
unset CLICOLOR_FORCE GREP_OPTIONS |
293 |
|
294 |
## --------------------- ## |
295 |
## M4sh Shell Functions. ## |
296 |
## --------------------- ## |
297 |
# as_fn_unset VAR |
298 |
# --------------- |
299 |
# Portably unset VAR. |
300 |
as_fn_unset () |
301 |
{ |
302 |
{ eval $1=; unset $1;} |
303 |
} |
304 |
as_unset=as_fn_unset |
305 |
|
306 |
# as_fn_set_status STATUS |
307 |
# ----------------------- |
308 |
# Set $? to STATUS, without forking. |
309 |
as_fn_set_status () |
310 |
{ |
311 |
return $1 |
312 |
} # as_fn_set_status |
313 |
|
314 |
# as_fn_exit STATUS |
315 |
# ----------------- |
316 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
317 |
as_fn_exit () |
318 |
{ |
319 |
set +e |
320 |
as_fn_set_status $1 |
321 |
exit $1 |
322 |
} # as_fn_exit |
323 |
|
324 |
# as_fn_mkdir_p |
325 |
# ------------- |
326 |
# Create "$as_dir" as a directory, including parents if necessary. |
327 |
as_fn_mkdir_p () |
328 |
{ |
329 |
|
330 |
case $as_dir in #( |
331 |
-*) as_dir=./$as_dir;; |
332 |
esac |
333 |
test -d "$as_dir" || eval $as_mkdir_p || { |
334 |
as_dirs= |
335 |
while :; do |
336 |
case $as_dir in #( |
337 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
338 |
*) as_qdir=$as_dir;; |
339 |
esac |
340 |
as_dirs="'$as_qdir' $as_dirs" |
341 |
as_dir=`$as_dirname -- "$as_dir" || |
342 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
343 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
344 |
X"$as_dir" : 'X\(//\)$' \| \ |
345 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
346 |
$as_echo X"$as_dir" | |
347 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
348 |
s//\1/ |
349 |
q |
350 |
} |
351 |
/^X\(\/\/\)[^/].*/{ |
352 |
s//\1/ |
353 |
q |
354 |
} |
355 |
/^X\(\/\/\)$/{ |
356 |
s//\1/ |
357 |
q |
358 |
} |
359 |
/^X\(\/\).*/{ |
360 |
s//\1/ |
361 |
q |
362 |
} |
363 |
s/.*/./; q'` |
364 |
test -d "$as_dir" && break |
365 |
done |
366 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
367 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
368 |
|
369 |
|
370 |
} # as_fn_mkdir_p |
371 |
|
372 |
# as_fn_executable_p FILE |
373 |
# ----------------------- |
374 |
# Test if FILE is an executable regular file. |
375 |
as_fn_executable_p () |
376 |
{ |
377 |
test -f "$1" && test -x "$1" |
378 |
} # as_fn_executable_p |
379 |
# as_fn_append VAR VALUE |
380 |
# ---------------------- |
381 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
382 |
# advantage of any shell optimizations that allow amortized linear growth over |
383 |
# repeated appends, instead of the typical quadratic growth present in naive |
384 |
# implementations. |
385 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
386 |
eval 'as_fn_append () |
387 |
{ |
388 |
eval $1+=\$2 |
389 |
}' |
390 |
else |
391 |
as_fn_append () |
392 |
{ |
393 |
eval $1=\$$1\$2 |
394 |
} |
395 |
fi # as_fn_append |
396 |
|
397 |
# as_fn_arith ARG... |
398 |
# ------------------ |
399 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
400 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
401 |
# must be portable across $(()) and expr. |
402 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
403 |
eval 'as_fn_arith () |
404 |
{ |
405 |
as_val=$(( $* )) |
406 |
}' |
407 |
else |
408 |
as_fn_arith () |
409 |
{ |
410 |
as_val=`expr "$@" || test $? -eq 1` |
411 |
} |
412 |
fi # as_fn_arith |
413 |
|
414 |
|
415 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
416 |
# ---------------------------------------- |
417 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
418 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
419 |
# script with STATUS, using 1 if that was 0. |
420 |
as_fn_error () |
421 |
{ |
422 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
423 |
if test "$4"; then |
424 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
425 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
426 |
fi |
427 |
$as_echo "$as_me: error: $2" >&2 |
428 |
as_fn_exit $as_status |
429 |
} # as_fn_error |
430 |
|
431 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
432 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
433 |
as_expr=expr |
434 |
else |
435 |
as_expr=false |
436 |
fi |
437 |
|
438 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
439 |
as_basename=basename |
440 |
else |
441 |
as_basename=false |
442 |
fi |
443 |
|
444 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
445 |
as_dirname=dirname |
446 |
else |
447 |
as_dirname=false |
448 |
fi |
449 |
|
450 |
as_me=`$as_basename -- "$0" || |
451 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
452 |
X"$0" : 'X\(//\)$' \| \ |
453 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
454 |
$as_echo X/"$0" | |
455 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
456 |
s//\1/ |
457 |
q |
458 |
} |
459 |
/^X\/\(\/\/\)$/{ |
460 |
s//\1/ |
461 |
q |
462 |
} |
463 |
/^X\/\(\/\).*/{ |
464 |
s//\1/ |
465 |
q |
466 |
} |
467 |
s/.*/./; q'` |
468 |
|
469 |
# Avoid depending upon Character Ranges. |
470 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
471 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
472 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
473 |
as_cr_digits='0123456789' |
474 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
475 |
|
476 |
|
477 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
478 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
479 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
480 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
481 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
482 |
sed -n ' |
483 |
p |
484 |
/[$]LINENO/= |
485 |
' <$as_myself | |
486 |
sed ' |
487 |
s/[$]LINENO.*/&-/ |
488 |
t lineno |
489 |
b |
490 |
:lineno |
491 |
N |
492 |
:loop |
493 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
494 |
t loop |
495 |
s/-\n.*// |
496 |
' >$as_me.lineno && |
497 |
chmod +x "$as_me.lineno" || |
498 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
499 |
|
500 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
501 |
# already done that, so ensure we don't try to do so again and fall |
502 |
# in an infinite loop. This has already happened in practice. |
503 |
_as_can_reexec=no; export _as_can_reexec |
504 |
# Don't try to exec as it changes $[0], causing all sort of problems |
505 |
# (the dirname of $[0] is not the place where we might find the |
506 |
# original and so on. Autoconf is especially sensitive to this). |
507 |
. "./$as_me.lineno" |
508 |
# Exit status is that of the last command. |
509 |
exit |
510 |
} |
511 |
|
512 |
ECHO_C= ECHO_N= ECHO_T= |
513 |
case `echo -n x` in #((((( |
514 |
-n*) |
515 |
case `echo 'xy\c'` in |
516 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
517 |
xy) ECHO_C='\c';; |
518 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
519 |
ECHO_T=' ';; |
520 |
esac;; |
521 |
*) |
522 |
ECHO_N='-n';; |
523 |
esac |
524 |
|
525 |
rm -f conf$$ conf$$.exe conf$$.file |
526 |
if test -d conf$$.dir; then |
527 |
rm -f conf$$.dir/conf$$.file |
528 |
else |
529 |
rm -f conf$$.dir |
530 |
mkdir conf$$.dir 2>/dev/null |
531 |
fi |
532 |
if (echo >conf$$.file) 2>/dev/null; then |
533 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
534 |
as_ln_s='ln -s' |
535 |
# ... but there are two gotchas: |
536 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
537 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
538 |
# In both cases, we have to default to `cp -pR'. |
539 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
540 |
as_ln_s='cp -pR' |
541 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
542 |
as_ln_s=ln |
543 |
else |
544 |
as_ln_s='cp -pR' |
545 |
fi |
546 |
else |
547 |
as_ln_s='cp -pR' |
548 |
fi |
549 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
550 |
rmdir conf$$.dir 2>/dev/null |
551 |
|
552 |
if mkdir -p . 2>/dev/null; then |
553 |
as_mkdir_p='mkdir -p "$as_dir"' |
554 |
else |
555 |
test -d ./-p && rmdir ./-p |
556 |
as_mkdir_p=false |
557 |
fi |
558 |
|
559 |
as_test_x='test -x' |
560 |
as_executable_p=as_fn_executable_p |
561 |
|
562 |
# Sed expression to map a string onto a valid CPP name. |
563 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
564 |
|
565 |
# Sed expression to map a string onto a valid variable name. |
566 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
567 |
|
568 |
SHELL=${CONFIG_SHELL-/bin/sh} |
569 |
|
570 |
|
571 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
572 |
exec 6>&1 |
573 |
|
574 |
# Name of the host. |
575 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
576 |
# so uname gets run too. |
577 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
578 |
|
579 |
# |
580 |
# Initializations. |
581 |
# |
582 |
ac_default_prefix=/usr/local |
583 |
ac_clean_files= |
584 |
ac_config_libobj_dir=. |
585 |
LIBOBJS= |
586 |
cross_compiling=no |
587 |
subdirs= |
588 |
MFLAGS= |
589 |
MAKEFLAGS= |
590 |
|
591 |
# Identity of this package. |
592 |
PACKAGE_NAME='hopm' |
593 |
PACKAGE_TARNAME='hopm' |
594 |
PACKAGE_VERSION='TRUNK' |
595 |
PACKAGE_STRING='hopm TRUNK' |
596 |
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
597 |
PACKAGE_URL='' |
598 |
|
599 |
ac_unique_file="src/opercmd.h" |
600 |
ac_default_prefix=\${HOME}/hopm |
601 |
# Factoring default headers for most tests. |
602 |
ac_includes_default="\ |
603 |
#include <stdio.h> |
604 |
#ifdef HAVE_SYS_TYPES_H |
605 |
# include <sys/types.h> |
606 |
#endif |
607 |
#ifdef HAVE_SYS_STAT_H |
608 |
# include <sys/stat.h> |
609 |
#endif |
610 |
#ifdef STDC_HEADERS |
611 |
# include <stdlib.h> |
612 |
# include <stddef.h> |
613 |
#else |
614 |
# ifdef HAVE_STDLIB_H |
615 |
# include <stdlib.h> |
616 |
# endif |
617 |
#endif |
618 |
#ifdef HAVE_STRING_H |
619 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
620 |
# include <memory.h> |
621 |
# endif |
622 |
# include <string.h> |
623 |
#endif |
624 |
#ifdef HAVE_STRINGS_H |
625 |
# include <strings.h> |
626 |
#endif |
627 |
#ifdef HAVE_INTTYPES_H |
628 |
# include <inttypes.h> |
629 |
#endif |
630 |
#ifdef HAVE_STDINT_H |
631 |
# include <stdint.h> |
632 |
#endif |
633 |
#ifdef HAVE_UNISTD_H |
634 |
# include <unistd.h> |
635 |
#endif" |
636 |
|
637 |
ac_subst_vars='am__EXEEXT_FALSE |
638 |
am__EXEEXT_TRUE |
639 |
LTLIBOBJS |
640 |
LIBOBJS |
641 |
ENABLE_SSL_FALSE |
642 |
ENABLE_SSL_TRUE |
643 |
LEXLIB |
644 |
LEX_OUTPUT_ROOT |
645 |
LEX |
646 |
YFLAGS |
647 |
YACC |
648 |
CPP |
649 |
LT_SYS_LIBRARY_PATH |
650 |
OTOOL64 |
651 |
OTOOL |
652 |
LIPO |
653 |
NMEDIT |
654 |
DSYMUTIL |
655 |
MANIFEST_TOOL |
656 |
RANLIB |
657 |
ac_ct_AR |
658 |
AR |
659 |
DLLTOOL |
660 |
OBJDUMP |
661 |
LN_S |
662 |
NM |
663 |
ac_ct_DUMPBIN |
664 |
DUMPBIN |
665 |
LD |
666 |
FGREP |
667 |
EGREP |
668 |
GREP |
669 |
SED |
670 |
host_os |
671 |
host_vendor |
672 |
host_cpu |
673 |
host |
674 |
build_os |
675 |
build_vendor |
676 |
build_cpu |
677 |
build |
678 |
LIBTOOL |
679 |
am__fastdepCC_FALSE |
680 |
am__fastdepCC_TRUE |
681 |
CCDEPMODE |
682 |
am__nodep |
683 |
AMDEPBACKSLASH |
684 |
AMDEP_FALSE |
685 |
AMDEP_TRUE |
686 |
am__quote |
687 |
am__include |
688 |
DEPDIR |
689 |
OBJEXT |
690 |
EXEEXT |
691 |
ac_ct_CC |
692 |
CPPFLAGS |
693 |
LDFLAGS |
694 |
CFLAGS |
695 |
CC |
696 |
MAINT |
697 |
MAINTAINER_MODE_FALSE |
698 |
MAINTAINER_MODE_TRUE |
699 |
AM_BACKSLASH |
700 |
AM_DEFAULT_VERBOSITY |
701 |
AM_DEFAULT_V |
702 |
AM_V |
703 |
am__untar |
704 |
am__tar |
705 |
AMTAR |
706 |
am__leading_dot |
707 |
SET_MAKE |
708 |
AWK |
709 |
mkdir_p |
710 |
MKDIR_P |
711 |
INSTALL_STRIP_PROGRAM |
712 |
STRIP |
713 |
install_sh |
714 |
MAKEINFO |
715 |
AUTOHEADER |
716 |
AUTOMAKE |
717 |
AUTOCONF |
718 |
ACLOCAL |
719 |
VERSION |
720 |
PACKAGE |
721 |
CYGPATH_W |
722 |
am__isrc |
723 |
INSTALL_DATA |
724 |
INSTALL_SCRIPT |
725 |
INSTALL_PROGRAM |
726 |
target_alias |
727 |
host_alias |
728 |
build_alias |
729 |
LIBS |
730 |
ECHO_T |
731 |
ECHO_N |
732 |
ECHO_C |
733 |
DEFS |
734 |
mandir |
735 |
localedir |
736 |
libdir |
737 |
psdir |
738 |
pdfdir |
739 |
dvidir |
740 |
htmldir |
741 |
infodir |
742 |
docdir |
743 |
oldincludedir |
744 |
includedir |
745 |
localstatedir |
746 |
sharedstatedir |
747 |
sysconfdir |
748 |
datadir |
749 |
datarootdir |
750 |
libexecdir |
751 |
sbindir |
752 |
bindir |
753 |
program_transform_name |
754 |
prefix |
755 |
exec_prefix |
756 |
PACKAGE_URL |
757 |
PACKAGE_BUGREPORT |
758 |
PACKAGE_STRING |
759 |
PACKAGE_VERSION |
760 |
PACKAGE_TARNAME |
761 |
PACKAGE_NAME |
762 |
PATH_SEPARATOR |
763 |
SHELL' |
764 |
ac_subst_files='' |
765 |
ac_user_opts=' |
766 |
enable_option_checking |
767 |
enable_silent_rules |
768 |
enable_maintainer_mode |
769 |
enable_dependency_tracking |
770 |
enable_shared |
771 |
enable_static |
772 |
with_pic |
773 |
enable_fast_install |
774 |
with_aix_soname |
775 |
with_gnu_ld |
776 |
with_sysroot |
777 |
enable_libtool_lock |
778 |
enable_openssl |
779 |
enable_assert |
780 |
enable_warnings |
781 |
' |
782 |
ac_precious_vars='build_alias |
783 |
host_alias |
784 |
target_alias |
785 |
CC |
786 |
CFLAGS |
787 |
LDFLAGS |
788 |
LIBS |
789 |
CPPFLAGS |
790 |
LT_SYS_LIBRARY_PATH |
791 |
CPP |
792 |
YACC |
793 |
YFLAGS' |
794 |
|
795 |
|
796 |
# Initialize some variables set by options. |
797 |
ac_init_help= |
798 |
ac_init_version=false |
799 |
ac_unrecognized_opts= |
800 |
ac_unrecognized_sep= |
801 |
# The variables have the same names as the options, with |
802 |
# dashes changed to underlines. |
803 |
cache_file=/dev/null |
804 |
exec_prefix=NONE |
805 |
no_create= |
806 |
no_recursion= |
807 |
prefix=NONE |
808 |
program_prefix=NONE |
809 |
program_suffix=NONE |
810 |
program_transform_name=s,x,x, |
811 |
silent= |
812 |
site= |
813 |
srcdir= |
814 |
verbose= |
815 |
x_includes=NONE |
816 |
x_libraries=NONE |
817 |
|
818 |
# Installation directory options. |
819 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
820 |
# and all the variables that are supposed to be based on exec_prefix |
821 |
# by default will actually change. |
822 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
823 |
# (The list follows the same order as the GNU Coding Standards.) |
824 |
bindir='${exec_prefix}/bin' |
825 |
sbindir='${exec_prefix}/sbin' |
826 |
libexecdir='${exec_prefix}/libexec' |
827 |
datarootdir='${prefix}/share' |
828 |
datadir='${datarootdir}' |
829 |
sysconfdir='${prefix}/etc' |
830 |
sharedstatedir='${prefix}/com' |
831 |
localstatedir='${prefix}/var' |
832 |
includedir='${prefix}/include' |
833 |
oldincludedir='/usr/include' |
834 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
835 |
infodir='${datarootdir}/info' |
836 |
htmldir='${docdir}' |
837 |
dvidir='${docdir}' |
838 |
pdfdir='${docdir}' |
839 |
psdir='${docdir}' |
840 |
libdir='${exec_prefix}/lib' |
841 |
localedir='${datarootdir}/locale' |
842 |
mandir='${datarootdir}/man' |
843 |
|
844 |
ac_prev= |
845 |
ac_dashdash= |
846 |
for ac_option |
847 |
do |
848 |
# If the previous option needs an argument, assign it. |
849 |
if test -n "$ac_prev"; then |
850 |
eval $ac_prev=\$ac_option |
851 |
ac_prev= |
852 |
continue |
853 |
fi |
854 |
|
855 |
case $ac_option in |
856 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
857 |
*=) ac_optarg= ;; |
858 |
*) ac_optarg=yes ;; |
859 |
esac |
860 |
|
861 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
862 |
|
863 |
case $ac_dashdash$ac_option in |
864 |
--) |
865 |
ac_dashdash=yes ;; |
866 |
|
867 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
868 |
ac_prev=bindir ;; |
869 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
870 |
bindir=$ac_optarg ;; |
871 |
|
872 |
-build | --build | --buil | --bui | --bu) |
873 |
ac_prev=build_alias ;; |
874 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
875 |
build_alias=$ac_optarg ;; |
876 |
|
877 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
878 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
879 |
ac_prev=cache_file ;; |
880 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
881 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
882 |
cache_file=$ac_optarg ;; |
883 |
|
884 |
--config-cache | -C) |
885 |
cache_file=config.cache ;; |
886 |
|
887 |
-datadir | --datadir | --datadi | --datad) |
888 |
ac_prev=datadir ;; |
889 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
890 |
datadir=$ac_optarg ;; |
891 |
|
892 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
893 |
| --dataroo | --dataro | --datar) |
894 |
ac_prev=datarootdir ;; |
895 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
896 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
897 |
datarootdir=$ac_optarg ;; |
898 |
|
899 |
-disable-* | --disable-*) |
900 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
901 |
# Reject names that are not valid shell variable names. |
902 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
903 |
as_fn_error $? "invalid feature name: $ac_useropt" |
904 |
ac_useropt_orig=$ac_useropt |
905 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
906 |
case $ac_user_opts in |
907 |
*" |
908 |
"enable_$ac_useropt" |
909 |
"*) ;; |
910 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
911 |
ac_unrecognized_sep=', ';; |
912 |
esac |
913 |
eval enable_$ac_useropt=no ;; |
914 |
|
915 |
-docdir | --docdir | --docdi | --doc | --do) |
916 |
ac_prev=docdir ;; |
917 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
918 |
docdir=$ac_optarg ;; |
919 |
|
920 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
921 |
ac_prev=dvidir ;; |
922 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
923 |
dvidir=$ac_optarg ;; |
924 |
|
925 |
-enable-* | --enable-*) |
926 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
927 |
# Reject names that are not valid shell variable names. |
928 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
929 |
as_fn_error $? "invalid feature name: $ac_useropt" |
930 |
ac_useropt_orig=$ac_useropt |
931 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
932 |
case $ac_user_opts in |
933 |
*" |
934 |
"enable_$ac_useropt" |
935 |
"*) ;; |
936 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
937 |
ac_unrecognized_sep=', ';; |
938 |
esac |
939 |
eval enable_$ac_useropt=\$ac_optarg ;; |
940 |
|
941 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
942 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
943 |
| --exec | --exe | --ex) |
944 |
ac_prev=exec_prefix ;; |
945 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
946 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
947 |
| --exec=* | --exe=* | --ex=*) |
948 |
exec_prefix=$ac_optarg ;; |
949 |
|
950 |
-gas | --gas | --ga | --g) |
951 |
# Obsolete; use --with-gas. |
952 |
with_gas=yes ;; |
953 |
|
954 |
-help | --help | --hel | --he | -h) |
955 |
ac_init_help=long ;; |
956 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
957 |
ac_init_help=recursive ;; |
958 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
959 |
ac_init_help=short ;; |
960 |
|
961 |
-host | --host | --hos | --ho) |
962 |
ac_prev=host_alias ;; |
963 |
-host=* | --host=* | --hos=* | --ho=*) |
964 |
host_alias=$ac_optarg ;; |
965 |
|
966 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
967 |
ac_prev=htmldir ;; |
968 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
969 |
| --ht=*) |
970 |
htmldir=$ac_optarg ;; |
971 |
|
972 |
-includedir | --includedir | --includedi | --included | --include \ |
973 |
| --includ | --inclu | --incl | --inc) |
974 |
ac_prev=includedir ;; |
975 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
976 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
977 |
includedir=$ac_optarg ;; |
978 |
|
979 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
980 |
ac_prev=infodir ;; |
981 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
982 |
infodir=$ac_optarg ;; |
983 |
|
984 |
-libdir | --libdir | --libdi | --libd) |
985 |
ac_prev=libdir ;; |
986 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
987 |
libdir=$ac_optarg ;; |
988 |
|
989 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
990 |
| --libexe | --libex | --libe) |
991 |
ac_prev=libexecdir ;; |
992 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
993 |
| --libexe=* | --libex=* | --libe=*) |
994 |
libexecdir=$ac_optarg ;; |
995 |
|
996 |
-localedir | --localedir | --localedi | --localed | --locale) |
997 |
ac_prev=localedir ;; |
998 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
999 |
localedir=$ac_optarg ;; |
1000 |
|
1001 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1002 |
| --localstate | --localstat | --localsta | --localst | --locals) |
1003 |
ac_prev=localstatedir ;; |
1004 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1005 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1006 |
localstatedir=$ac_optarg ;; |
1007 |
|
1008 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1009 |
ac_prev=mandir ;; |
1010 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1011 |
mandir=$ac_optarg ;; |
1012 |
|
1013 |
-nfp | --nfp | --nf) |
1014 |
# Obsolete; use --without-fp. |
1015 |
with_fp=no ;; |
1016 |
|
1017 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1018 |
| --no-cr | --no-c | -n) |
1019 |
no_create=yes ;; |
1020 |
|
1021 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1022 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1023 |
no_recursion=yes ;; |
1024 |
|
1025 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1026 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1027 |
| --oldin | --oldi | --old | --ol | --o) |
1028 |
ac_prev=oldincludedir ;; |
1029 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1030 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1031 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1032 |
oldincludedir=$ac_optarg ;; |
1033 |
|
1034 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1035 |
ac_prev=prefix ;; |
1036 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1037 |
prefix=$ac_optarg ;; |
1038 |
|
1039 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1040 |
| --program-pre | --program-pr | --program-p) |
1041 |
ac_prev=program_prefix ;; |
1042 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1043 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1044 |
program_prefix=$ac_optarg ;; |
1045 |
|
1046 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1047 |
| --program-suf | --program-su | --program-s) |
1048 |
ac_prev=program_suffix ;; |
1049 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1050 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1051 |
program_suffix=$ac_optarg ;; |
1052 |
|
1053 |
-program-transform-name | --program-transform-name \ |
1054 |
| --program-transform-nam | --program-transform-na \ |
1055 |
| --program-transform-n | --program-transform- \ |
1056 |
| --program-transform | --program-transfor \ |
1057 |
| --program-transfo | --program-transf \ |
1058 |
| --program-trans | --program-tran \ |
1059 |
| --progr-tra | --program-tr | --program-t) |
1060 |
ac_prev=program_transform_name ;; |
1061 |
-program-transform-name=* | --program-transform-name=* \ |
1062 |
| --program-transform-nam=* | --program-transform-na=* \ |
1063 |
| --program-transform-n=* | --program-transform-=* \ |
1064 |
| --program-transform=* | --program-transfor=* \ |
1065 |
| --program-transfo=* | --program-transf=* \ |
1066 |
| --program-trans=* | --program-tran=* \ |
1067 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1068 |
program_transform_name=$ac_optarg ;; |
1069 |
|
1070 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1071 |
ac_prev=pdfdir ;; |
1072 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1073 |
pdfdir=$ac_optarg ;; |
1074 |
|
1075 |
-psdir | --psdir | --psdi | --psd | --ps) |
1076 |
ac_prev=psdir ;; |
1077 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1078 |
psdir=$ac_optarg ;; |
1079 |
|
1080 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1081 |
| -silent | --silent | --silen | --sile | --sil) |
1082 |
silent=yes ;; |
1083 |
|
1084 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1085 |
ac_prev=sbindir ;; |
1086 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1087 |
| --sbi=* | --sb=*) |
1088 |
sbindir=$ac_optarg ;; |
1089 |
|
1090 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1091 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1092 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1093 |
| --sha | --sh) |
1094 |
ac_prev=sharedstatedir ;; |
1095 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1096 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1097 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1098 |
| --sha=* | --sh=*) |
1099 |
sharedstatedir=$ac_optarg ;; |
1100 |
|
1101 |
-site | --site | --sit) |
1102 |
ac_prev=site ;; |
1103 |
-site=* | --site=* | --sit=*) |
1104 |
site=$ac_optarg ;; |
1105 |
|
1106 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1107 |
ac_prev=srcdir ;; |
1108 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1109 |
srcdir=$ac_optarg ;; |
1110 |
|
1111 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1112 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1113 |
ac_prev=sysconfdir ;; |
1114 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1115 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1116 |
sysconfdir=$ac_optarg ;; |
1117 |
|
1118 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1119 |
ac_prev=target_alias ;; |
1120 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1121 |
target_alias=$ac_optarg ;; |
1122 |
|
1123 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1124 |
verbose=yes ;; |
1125 |
|
1126 |
-version | --version | --versio | --versi | --vers | -V) |
1127 |
ac_init_version=: ;; |
1128 |
|
1129 |
-with-* | --with-*) |
1130 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1131 |
# Reject names that are not valid shell variable names. |
1132 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1133 |
as_fn_error $? "invalid package name: $ac_useropt" |
1134 |
ac_useropt_orig=$ac_useropt |
1135 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1136 |
case $ac_user_opts in |
1137 |
*" |
1138 |
"with_$ac_useropt" |
1139 |
"*) ;; |
1140 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1141 |
ac_unrecognized_sep=', ';; |
1142 |
esac |
1143 |
eval with_$ac_useropt=\$ac_optarg ;; |
1144 |
|
1145 |
-without-* | --without-*) |
1146 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1147 |
# Reject names that are not valid shell variable names. |
1148 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1149 |
as_fn_error $? "invalid package name: $ac_useropt" |
1150 |
ac_useropt_orig=$ac_useropt |
1151 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1152 |
case $ac_user_opts in |
1153 |
*" |
1154 |
"with_$ac_useropt" |
1155 |
"*) ;; |
1156 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1157 |
ac_unrecognized_sep=', ';; |
1158 |
esac |
1159 |
eval with_$ac_useropt=no ;; |
1160 |
|
1161 |
--x) |
1162 |
# Obsolete; use --with-x. |
1163 |
with_x=yes ;; |
1164 |
|
1165 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1166 |
| --x-incl | --x-inc | --x-in | --x-i) |
1167 |
ac_prev=x_includes ;; |
1168 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1169 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1170 |
x_includes=$ac_optarg ;; |
1171 |
|
1172 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1173 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1174 |
ac_prev=x_libraries ;; |
1175 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1176 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1177 |
x_libraries=$ac_optarg ;; |
1178 |
|
1179 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1180 |
Try \`$0 --help' for more information" |
1181 |
;; |
1182 |
|
1183 |
*=*) |
1184 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1185 |
# Reject names that are not valid shell variable names. |
1186 |
case $ac_envvar in #( |
1187 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1188 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1189 |
esac |
1190 |
eval $ac_envvar=\$ac_optarg |
1191 |
export $ac_envvar ;; |
1192 |
|
1193 |
*) |
1194 |
# FIXME: should be removed in autoconf 3.0. |
1195 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1196 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1197 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1198 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1199 |
;; |
1200 |
|
1201 |
esac |
1202 |
done |
1203 |
|
1204 |
if test -n "$ac_prev"; then |
1205 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1206 |
as_fn_error $? "missing argument to $ac_option" |
1207 |
fi |
1208 |
|
1209 |
if test -n "$ac_unrecognized_opts"; then |
1210 |
case $enable_option_checking in |
1211 |
no) ;; |
1212 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1213 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1214 |
esac |
1215 |
fi |
1216 |
|
1217 |
# Check all directory arguments for consistency. |
1218 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1219 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1220 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1221 |
libdir localedir mandir |
1222 |
do |
1223 |
eval ac_val=\$$ac_var |
1224 |
# Remove trailing slashes. |
1225 |
case $ac_val in |
1226 |
*/ ) |
1227 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1228 |
eval $ac_var=\$ac_val;; |
1229 |
esac |
1230 |
# Be sure to have absolute directory names. |
1231 |
case $ac_val in |
1232 |
[\\/$]* | ?:[\\/]* ) continue;; |
1233 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1234 |
esac |
1235 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1236 |
done |
1237 |
|
1238 |
# There might be people who depend on the old broken behavior: `$host' |
1239 |
# used to hold the argument of --host etc. |
1240 |
# FIXME: To remove some day. |
1241 |
build=$build_alias |
1242 |
host=$host_alias |
1243 |
target=$target_alias |
1244 |
|
1245 |
# FIXME: To remove some day. |
1246 |
if test "x$host_alias" != x; then |
1247 |
if test "x$build_alias" = x; then |
1248 |
cross_compiling=maybe |
1249 |
elif test "x$build_alias" != "x$host_alias"; then |
1250 |
cross_compiling=yes |
1251 |
fi |
1252 |
fi |
1253 |
|
1254 |
ac_tool_prefix= |
1255 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1256 |
|
1257 |
test "$silent" = yes && exec 6>/dev/null |
1258 |
|
1259 |
|
1260 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1261 |
ac_ls_di=`ls -di .` && |
1262 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1263 |
as_fn_error $? "working directory cannot be determined" |
1264 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1265 |
as_fn_error $? "pwd does not report name of working directory" |
1266 |
|
1267 |
|
1268 |
# Find the source files, if location was not specified. |
1269 |
if test -z "$srcdir"; then |
1270 |
ac_srcdir_defaulted=yes |
1271 |
# Try the directory containing this script, then the parent directory. |
1272 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1273 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1274 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1275 |
X"$as_myself" : 'X\(//\)$' \| \ |
1276 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1277 |
$as_echo X"$as_myself" | |
1278 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1279 |
s//\1/ |
1280 |
q |
1281 |
} |
1282 |
/^X\(\/\/\)[^/].*/{ |
1283 |
s//\1/ |
1284 |
q |
1285 |
} |
1286 |
/^X\(\/\/\)$/{ |
1287 |
s//\1/ |
1288 |
q |
1289 |
} |
1290 |
/^X\(\/\).*/{ |
1291 |
s//\1/ |
1292 |
q |
1293 |
} |
1294 |
s/.*/./; q'` |
1295 |
srcdir=$ac_confdir |
1296 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1297 |
srcdir=.. |
1298 |
fi |
1299 |
else |
1300 |
ac_srcdir_defaulted=no |
1301 |
fi |
1302 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1303 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1304 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1305 |
fi |
1306 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1307 |
ac_abs_confdir=`( |
1308 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1309 |
pwd)` |
1310 |
# When building in place, set srcdir=. |
1311 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1312 |
srcdir=. |
1313 |
fi |
1314 |
# Remove unnecessary trailing slashes from srcdir. |
1315 |
# Double slashes in file names in object file debugging info |
1316 |
# mess up M-x gdb in Emacs. |
1317 |
case $srcdir in |
1318 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1319 |
esac |
1320 |
for ac_var in $ac_precious_vars; do |
1321 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1322 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1323 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1324 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1325 |
done |
1326 |
|
1327 |
# |
1328 |
# Report the --help message. |
1329 |
# |
1330 |
if test "$ac_init_help" = "long"; then |
1331 |
# Omit some internal or obsolete options to make the list less imposing. |
1332 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1333 |
cat <<_ACEOF |
1334 |
\`configure' configures hopm TRUNK to adapt to many kinds of systems. |
1335 |
|
1336 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1337 |
|
1338 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1339 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1340 |
|
1341 |
Defaults for the options are specified in brackets. |
1342 |
|
1343 |
Configuration: |
1344 |
-h, --help display this help and exit |
1345 |
--help=short display options specific to this package |
1346 |
--help=recursive display the short help of all the included packages |
1347 |
-V, --version display version information and exit |
1348 |
-q, --quiet, --silent do not print \`checking ...' messages |
1349 |
--cache-file=FILE cache test results in FILE [disabled] |
1350 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1351 |
-n, --no-create do not create output files |
1352 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1353 |
|
1354 |
Installation directories: |
1355 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1356 |
[$ac_default_prefix] |
1357 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1358 |
[PREFIX] |
1359 |
|
1360 |
By default, \`make install' will install all the files in |
1361 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1362 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1363 |
for instance \`--prefix=\$HOME'. |
1364 |
|
1365 |
For better control, use the options below. |
1366 |
|
1367 |
Fine tuning of the installation directories: |
1368 |
--bindir=DIR user executables [EPREFIX/bin] |
1369 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1370 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1371 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1372 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1373 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1374 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1375 |
--includedir=DIR C header files [PREFIX/include] |
1376 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1377 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1378 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1379 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1380 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1381 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1382 |
--docdir=DIR documentation root [DATAROOTDIR/doc/hopm] |
1383 |
--htmldir=DIR html documentation [DOCDIR] |
1384 |
--dvidir=DIR dvi documentation [DOCDIR] |
1385 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1386 |
--psdir=DIR ps documentation [DOCDIR] |
1387 |
_ACEOF |
1388 |
|
1389 |
cat <<\_ACEOF |
1390 |
|
1391 |
Program names: |
1392 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1393 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1394 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1395 |
|
1396 |
System types: |
1397 |
--build=BUILD configure for building on BUILD [guessed] |
1398 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1399 |
_ACEOF |
1400 |
fi |
1401 |
|
1402 |
if test -n "$ac_init_help"; then |
1403 |
case $ac_init_help in |
1404 |
short | recursive ) echo "Configuration of hopm TRUNK:";; |
1405 |
esac |
1406 |
cat <<\_ACEOF |
1407 |
|
1408 |
Optional Features: |
1409 |
--disable-option-checking ignore unrecognized --enable/--with options |
1410 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1411 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1412 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
1413 |
--disable-silent-rules verbose build output (undo: "make V=0") |
1414 |
--enable-maintainer-mode |
1415 |
enable make rules and dependencies not useful (and |
1416 |
sometimes confusing) to the casual installer |
1417 |
--enable-dependency-tracking |
1418 |
do not reject slow dependency extractors |
1419 |
--disable-dependency-tracking |
1420 |
speeds up one-time build |
1421 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
1422 |
--enable-static[=PKGS] build static libraries [default=yes] |
1423 |
--enable-fast-install[=PKGS] |
1424 |
optimize for fast installation [default=yes] |
1425 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1426 |
--enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional). |
1427 |
--disable-openssl Disable LibreSSL/OpenSSL support. |
1428 |
--enable-assert Enable assert() statements |
1429 |
--enable-warnings Enable compiler warnings. |
1430 |
|
1431 |
Optional Packages: |
1432 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1433 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1434 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1435 |
both] |
1436 |
--with-aix-soname=aix|svr4|both |
1437 |
shared library versioning (aka "SONAME") variant to |
1438 |
provide on AIX, [default=aix]. |
1439 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1440 |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1441 |
compiler's sysroot if not specified). |
1442 |
|
1443 |
Some influential environment variables: |
1444 |
CC C compiler command |
1445 |
CFLAGS C compiler flags |
1446 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1447 |
nonstandard directory <lib dir> |
1448 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1449 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1450 |
you have headers in a nonstandard directory <include dir> |
1451 |
LT_SYS_LIBRARY_PATH |
1452 |
User-defined run-time library search path. |
1453 |
CPP C preprocessor |
1454 |
YACC The `Yet Another Compiler Compiler' implementation to use. |
1455 |
Defaults to the first program found out of: `bison -y', `byacc', |
1456 |
`yacc'. |
1457 |
YFLAGS The list of arguments that will be passed by default to $YACC. |
1458 |
This script will default YFLAGS to the empty string to avoid a |
1459 |
default value of `-d' given by some make applications. |
1460 |
|
1461 |
Use these variables to override the choices made by `configure' or to help |
1462 |
it to find libraries and programs with nonstandard names/locations. |
1463 |
|
1464 |
Report bugs to <bugs@ircd-hybrid.org>. |
1465 |
_ACEOF |
1466 |
ac_status=$? |
1467 |
fi |
1468 |
|
1469 |
if test "$ac_init_help" = "recursive"; then |
1470 |
# If there are subdirs, report their specific --help. |
1471 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1472 |
test -d "$ac_dir" || |
1473 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1474 |
continue |
1475 |
ac_builddir=. |
1476 |
|
1477 |
case "$ac_dir" in |
1478 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1479 |
*) |
1480 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1481 |
# A ".." for each directory in $ac_dir_suffix. |
1482 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1483 |
case $ac_top_builddir_sub in |
1484 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1485 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1486 |
esac ;; |
1487 |
esac |
1488 |
ac_abs_top_builddir=$ac_pwd |
1489 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1490 |
# for backward compatibility: |
1491 |
ac_top_builddir=$ac_top_build_prefix |
1492 |
|
1493 |
case $srcdir in |
1494 |
.) # We are building in place. |
1495 |
ac_srcdir=. |
1496 |
ac_top_srcdir=$ac_top_builddir_sub |
1497 |
ac_abs_top_srcdir=$ac_pwd ;; |
1498 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1499 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1500 |
ac_top_srcdir=$srcdir |
1501 |
ac_abs_top_srcdir=$srcdir ;; |
1502 |
*) # Relative name. |
1503 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1504 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1505 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1506 |
esac |
1507 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1508 |
|
1509 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1510 |
# Check for guested configure. |
1511 |
if test -f "$ac_srcdir/configure.gnu"; then |
1512 |
echo && |
1513 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1514 |
elif test -f "$ac_srcdir/configure"; then |
1515 |
echo && |
1516 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1517 |
else |
1518 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1519 |
fi || ac_status=$? |
1520 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1521 |
done |
1522 |
fi |
1523 |
|
1524 |
test -n "$ac_init_help" && exit $ac_status |
1525 |
if $ac_init_version; then |
1526 |
cat <<\_ACEOF |
1527 |
hopm configure TRUNK |
1528 |
generated by GNU Autoconf 2.69 |
1529 |
|
1530 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1531 |
This configure script is free software; the Free Software Foundation |
1532 |
gives unlimited permission to copy, distribute and modify it. |
1533 |
_ACEOF |
1534 |
exit |
1535 |
fi |
1536 |
|
1537 |
## ------------------------ ## |
1538 |
## Autoconf initialization. ## |
1539 |
## ------------------------ ## |
1540 |
|
1541 |
# ac_fn_c_try_compile LINENO |
1542 |
# -------------------------- |
1543 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1544 |
ac_fn_c_try_compile () |
1545 |
{ |
1546 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1547 |
rm -f conftest.$ac_objext |
1548 |
if { { ac_try="$ac_compile" |
1549 |
case "(($ac_try" in |
1550 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1551 |
*) ac_try_echo=$ac_try;; |
1552 |
esac |
1553 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1554 |
$as_echo "$ac_try_echo"; } >&5 |
1555 |
(eval "$ac_compile") 2>conftest.err |
1556 |
ac_status=$? |
1557 |
if test -s conftest.err; then |
1558 |
grep -v '^ *+' conftest.err >conftest.er1 |
1559 |
cat conftest.er1 >&5 |
1560 |
mv -f conftest.er1 conftest.err |
1561 |
fi |
1562 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1563 |
test $ac_status = 0; } && { |
1564 |
test -z "$ac_c_werror_flag" || |
1565 |
test ! -s conftest.err |
1566 |
} && test -s conftest.$ac_objext; then : |
1567 |
ac_retval=0 |
1568 |
else |
1569 |
$as_echo "$as_me: failed program was:" >&5 |
1570 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1571 |
|
1572 |
ac_retval=1 |
1573 |
fi |
1574 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1575 |
as_fn_set_status $ac_retval |
1576 |
|
1577 |
} # ac_fn_c_try_compile |
1578 |
|
1579 |
# ac_fn_c_try_link LINENO |
1580 |
# ----------------------- |
1581 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1582 |
ac_fn_c_try_link () |
1583 |
{ |
1584 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1585 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1586 |
if { { ac_try="$ac_link" |
1587 |
case "(($ac_try" in |
1588 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1589 |
*) ac_try_echo=$ac_try;; |
1590 |
esac |
1591 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1592 |
$as_echo "$ac_try_echo"; } >&5 |
1593 |
(eval "$ac_link") 2>conftest.err |
1594 |
ac_status=$? |
1595 |
if test -s conftest.err; then |
1596 |
grep -v '^ *+' conftest.err >conftest.er1 |
1597 |
cat conftest.er1 >&5 |
1598 |
mv -f conftest.er1 conftest.err |
1599 |
fi |
1600 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1601 |
test $ac_status = 0; } && { |
1602 |
test -z "$ac_c_werror_flag" || |
1603 |
test ! -s conftest.err |
1604 |
} && test -s conftest$ac_exeext && { |
1605 |
test "$cross_compiling" = yes || |
1606 |
test -x conftest$ac_exeext |
1607 |
}; then : |
1608 |
ac_retval=0 |
1609 |
else |
1610 |
$as_echo "$as_me: failed program was:" >&5 |
1611 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1612 |
|
1613 |
ac_retval=1 |
1614 |
fi |
1615 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1616 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1617 |
# interfere with the next link command; also delete a directory that is |
1618 |
# left behind by Apple's compiler. We do this before executing the actions. |
1619 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1620 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1621 |
as_fn_set_status $ac_retval |
1622 |
|
1623 |
} # ac_fn_c_try_link |
1624 |
|
1625 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1626 |
# ------------------------------------------------------- |
1627 |
# Tests whether HEADER exists and can be compiled using the include files in |
1628 |
# INCLUDES, setting the cache variable VAR accordingly. |
1629 |
ac_fn_c_check_header_compile () |
1630 |
{ |
1631 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1632 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1633 |
$as_echo_n "checking for $2... " >&6; } |
1634 |
if eval \${$3+:} false; then : |
1635 |
$as_echo_n "(cached) " >&6 |
1636 |
else |
1637 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1638 |
/* end confdefs.h. */ |
1639 |
$4 |
1640 |
#include <$2> |
1641 |
_ACEOF |
1642 |
if ac_fn_c_try_compile "$LINENO"; then : |
1643 |
eval "$3=yes" |
1644 |
else |
1645 |
eval "$3=no" |
1646 |
fi |
1647 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1648 |
fi |
1649 |
eval ac_res=\$$3 |
1650 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1651 |
$as_echo "$ac_res" >&6; } |
1652 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1653 |
|
1654 |
} # ac_fn_c_check_header_compile |
1655 |
|
1656 |
# ac_fn_c_try_cpp LINENO |
1657 |
# ---------------------- |
1658 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1659 |
ac_fn_c_try_cpp () |
1660 |
{ |
1661 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1662 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1663 |
case "(($ac_try" in |
1664 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1665 |
*) ac_try_echo=$ac_try;; |
1666 |
esac |
1667 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1668 |
$as_echo "$ac_try_echo"; } >&5 |
1669 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1670 |
ac_status=$? |
1671 |
if test -s conftest.err; then |
1672 |
grep -v '^ *+' conftest.err >conftest.er1 |
1673 |
cat conftest.er1 >&5 |
1674 |
mv -f conftest.er1 conftest.err |
1675 |
fi |
1676 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1677 |
test $ac_status = 0; } > conftest.i && { |
1678 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1679 |
test ! -s conftest.err |
1680 |
}; then : |
1681 |
ac_retval=0 |
1682 |
else |
1683 |
$as_echo "$as_me: failed program was:" >&5 |
1684 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1685 |
|
1686 |
ac_retval=1 |
1687 |
fi |
1688 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1689 |
as_fn_set_status $ac_retval |
1690 |
|
1691 |
} # ac_fn_c_try_cpp |
1692 |
|
1693 |
# ac_fn_c_try_run LINENO |
1694 |
# ---------------------- |
1695 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1696 |
# that executables *can* be run. |
1697 |
ac_fn_c_try_run () |
1698 |
{ |
1699 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1700 |
if { { ac_try="$ac_link" |
1701 |
case "(($ac_try" in |
1702 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1703 |
*) ac_try_echo=$ac_try;; |
1704 |
esac |
1705 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1706 |
$as_echo "$ac_try_echo"; } >&5 |
1707 |
(eval "$ac_link") 2>&5 |
1708 |
ac_status=$? |
1709 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1710 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1711 |
{ { case "(($ac_try" in |
1712 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1713 |
*) ac_try_echo=$ac_try;; |
1714 |
esac |
1715 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1716 |
$as_echo "$ac_try_echo"; } >&5 |
1717 |
(eval "$ac_try") 2>&5 |
1718 |
ac_status=$? |
1719 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1720 |
test $ac_status = 0; }; }; then : |
1721 |
ac_retval=0 |
1722 |
else |
1723 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1724 |
$as_echo "$as_me: failed program was:" >&5 |
1725 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1726 |
|
1727 |
ac_retval=$ac_status |
1728 |
fi |
1729 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1730 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1731 |
as_fn_set_status $ac_retval |
1732 |
|
1733 |
} # ac_fn_c_try_run |
1734 |
|
1735 |
# ac_fn_c_check_func LINENO FUNC VAR |
1736 |
# ---------------------------------- |
1737 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1738 |
ac_fn_c_check_func () |
1739 |
{ |
1740 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1742 |
$as_echo_n "checking for $2... " >&6; } |
1743 |
if eval \${$3+:} false; then : |
1744 |
$as_echo_n "(cached) " >&6 |
1745 |
else |
1746 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1747 |
/* end confdefs.h. */ |
1748 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1749 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1750 |
#define $2 innocuous_$2 |
1751 |
|
1752 |
/* System header to define __stub macros and hopefully few prototypes, |
1753 |
which can conflict with char $2 (); below. |
1754 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1755 |
<limits.h> exists even on freestanding compilers. */ |
1756 |
|
1757 |
#ifdef __STDC__ |
1758 |
# include <limits.h> |
1759 |
#else |
1760 |
# include <assert.h> |
1761 |
#endif |
1762 |
|
1763 |
#undef $2 |
1764 |
|
1765 |
/* Override any GCC internal prototype to avoid an error. |
1766 |
Use char because int might match the return type of a GCC |
1767 |
builtin and then its argument prototype would still apply. */ |
1768 |
#ifdef __cplusplus |
1769 |
extern "C" |
1770 |
#endif |
1771 |
char $2 (); |
1772 |
/* The GNU C library defines this for functions which it implements |
1773 |
to always fail with ENOSYS. Some functions are actually named |
1774 |
something starting with __ and the normal name is an alias. */ |
1775 |
#if defined __stub_$2 || defined __stub___$2 |
1776 |
choke me |
1777 |
#endif |
1778 |
|
1779 |
int |
1780 |
main () |
1781 |
{ |
1782 |
return $2 (); |
1783 |
; |
1784 |
return 0; |
1785 |
} |
1786 |
_ACEOF |
1787 |
if ac_fn_c_try_link "$LINENO"; then : |
1788 |
eval "$3=yes" |
1789 |
else |
1790 |
eval "$3=no" |
1791 |
fi |
1792 |
rm -f core conftest.err conftest.$ac_objext \ |
1793 |
conftest$ac_exeext conftest.$ac_ext |
1794 |
fi |
1795 |
eval ac_res=\$$3 |
1796 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1797 |
$as_echo "$ac_res" >&6; } |
1798 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1799 |
|
1800 |
} # ac_fn_c_check_func |
1801 |
cat >config.log <<_ACEOF |
1802 |
This file contains any messages produced by compilers while |
1803 |
running configure, to aid debugging if configure makes a mistake. |
1804 |
|
1805 |
It was created by hopm $as_me TRUNK, which was |
1806 |
generated by GNU Autoconf 2.69. Invocation command line was |
1807 |
|
1808 |
$ $0 $@ |
1809 |
|
1810 |
_ACEOF |
1811 |
exec 5>>config.log |
1812 |
{ |
1813 |
cat <<_ASUNAME |
1814 |
## --------- ## |
1815 |
## Platform. ## |
1816 |
## --------- ## |
1817 |
|
1818 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1819 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1820 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1821 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1822 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1823 |
|
1824 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1825 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1826 |
|
1827 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1828 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1829 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1830 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1831 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1832 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1833 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1834 |
|
1835 |
_ASUNAME |
1836 |
|
1837 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1838 |
for as_dir in $PATH |
1839 |
do |
1840 |
IFS=$as_save_IFS |
1841 |
test -z "$as_dir" && as_dir=. |
1842 |
$as_echo "PATH: $as_dir" |
1843 |
done |
1844 |
IFS=$as_save_IFS |
1845 |
|
1846 |
} >&5 |
1847 |
|
1848 |
cat >&5 <<_ACEOF |
1849 |
|
1850 |
|
1851 |
## ----------- ## |
1852 |
## Core tests. ## |
1853 |
## ----------- ## |
1854 |
|
1855 |
_ACEOF |
1856 |
|
1857 |
|
1858 |
# Keep a trace of the command line. |
1859 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1860 |
# Strip out --silent because we don't want to record it for future runs. |
1861 |
# Also quote any args containing shell meta-characters. |
1862 |
# Make two passes to allow for proper duplicate-argument suppression. |
1863 |
ac_configure_args= |
1864 |
ac_configure_args0= |
1865 |
ac_configure_args1= |
1866 |
ac_must_keep_next=false |
1867 |
for ac_pass in 1 2 |
1868 |
do |
1869 |
for ac_arg |
1870 |
do |
1871 |
case $ac_arg in |
1872 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1873 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1874 |
| -silent | --silent | --silen | --sile | --sil) |
1875 |
continue ;; |
1876 |
*\'*) |
1877 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1878 |
esac |
1879 |
case $ac_pass in |
1880 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1881 |
2) |
1882 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
1883 |
if test $ac_must_keep_next = true; then |
1884 |
ac_must_keep_next=false # Got value, back to normal. |
1885 |
else |
1886 |
case $ac_arg in |
1887 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1888 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1889 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1890 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1891 |
case "$ac_configure_args0 " in |
1892 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1893 |
esac |
1894 |
;; |
1895 |
-* ) ac_must_keep_next=true ;; |
1896 |
esac |
1897 |
fi |
1898 |
as_fn_append ac_configure_args " '$ac_arg'" |
1899 |
;; |
1900 |
esac |
1901 |
done |
1902 |
done |
1903 |
{ ac_configure_args0=; unset ac_configure_args0;} |
1904 |
{ ac_configure_args1=; unset ac_configure_args1;} |
1905 |
|
1906 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1907 |
# config.log. We remove comments because anyway the quotes in there |
1908 |
# would cause problems or look ugly. |
1909 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1910 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1911 |
trap 'exit_status=$? |
1912 |
# Save into config.log some information that might help in debugging. |
1913 |
{ |
1914 |
echo |
1915 |
|
1916 |
$as_echo "## ---------------- ## |
1917 |
## Cache variables. ## |
1918 |
## ---------------- ##" |
1919 |
echo |
1920 |
# The following way of writing the cache mishandles newlines in values, |
1921 |
( |
1922 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1923 |
eval ac_val=\$$ac_var |
1924 |
case $ac_val in #( |
1925 |
*${as_nl}*) |
1926 |
case $ac_var in #( |
1927 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1928 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1929 |
esac |
1930 |
case $ac_var in #( |
1931 |
_ | IFS | as_nl) ;; #( |
1932 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1933 |
*) { eval $ac_var=; unset $ac_var;} ;; |
1934 |
esac ;; |
1935 |
esac |
1936 |
done |
1937 |
(set) 2>&1 | |
1938 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1939 |
*${as_nl}ac_space=\ *) |
1940 |
sed -n \ |
1941 |
"s/'\''/'\''\\\\'\'''\''/g; |
1942 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1943 |
;; #( |
1944 |
*) |
1945 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1946 |
;; |
1947 |
esac | |
1948 |
sort |
1949 |
) |
1950 |
echo |
1951 |
|
1952 |
$as_echo "## ----------------- ## |
1953 |
## Output variables. ## |
1954 |
## ----------------- ##" |
1955 |
echo |
1956 |
for ac_var in $ac_subst_vars |
1957 |
do |
1958 |
eval ac_val=\$$ac_var |
1959 |
case $ac_val in |
1960 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1961 |
esac |
1962 |
$as_echo "$ac_var='\''$ac_val'\''" |
1963 |
done | sort |
1964 |
echo |
1965 |
|
1966 |
if test -n "$ac_subst_files"; then |
1967 |
$as_echo "## ------------------- ## |
1968 |
## File substitutions. ## |
1969 |
## ------------------- ##" |
1970 |
echo |
1971 |
for ac_var in $ac_subst_files |
1972 |
do |
1973 |
eval ac_val=\$$ac_var |
1974 |
case $ac_val in |
1975 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1976 |
esac |
1977 |
$as_echo "$ac_var='\''$ac_val'\''" |
1978 |
done | sort |
1979 |
echo |
1980 |
fi |
1981 |
|
1982 |
if test -s confdefs.h; then |
1983 |
$as_echo "## ----------- ## |
1984 |
## confdefs.h. ## |
1985 |
## ----------- ##" |
1986 |
echo |
1987 |
cat confdefs.h |
1988 |
echo |
1989 |
fi |
1990 |
test "$ac_signal" != 0 && |
1991 |
$as_echo "$as_me: caught signal $ac_signal" |
1992 |
$as_echo "$as_me: exit $exit_status" |
1993 |
} >&5 |
1994 |
rm -f core *.core core.conftest.* && |
1995 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1996 |
exit $exit_status |
1997 |
' 0 |
1998 |
for ac_signal in 1 2 13 15; do |
1999 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2000 |
done |
2001 |
ac_signal=0 |
2002 |
|
2003 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2004 |
rm -f -r conftest* confdefs.h |
2005 |
|
2006 |
$as_echo "/* confdefs.h */" > confdefs.h |
2007 |
|
2008 |
# Predefined preprocessor variables. |
2009 |
|
2010 |
cat >>confdefs.h <<_ACEOF |
2011 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
2012 |
_ACEOF |
2013 |
|
2014 |
cat >>confdefs.h <<_ACEOF |
2015 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2016 |
_ACEOF |
2017 |
|
2018 |
cat >>confdefs.h <<_ACEOF |
2019 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2020 |
_ACEOF |
2021 |
|
2022 |
cat >>confdefs.h <<_ACEOF |
2023 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2024 |
_ACEOF |
2025 |
|
2026 |
cat >>confdefs.h <<_ACEOF |
2027 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2028 |
_ACEOF |
2029 |
|
2030 |
cat >>confdefs.h <<_ACEOF |
2031 |
#define PACKAGE_URL "$PACKAGE_URL" |
2032 |
_ACEOF |
2033 |
|
2034 |
|
2035 |
# Let the site file select an alternate cache file if it wants to. |
2036 |
# Prefer an explicitly selected file to automatically selected ones. |
2037 |
ac_site_file1=NONE |
2038 |
ac_site_file2=NONE |
2039 |
if test -n "$CONFIG_SITE"; then |
2040 |
# We do not want a PATH search for config.site. |
2041 |
case $CONFIG_SITE in #(( |
2042 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2043 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2044 |
*) ac_site_file1=./$CONFIG_SITE;; |
2045 |
esac |
2046 |
elif test "x$prefix" != xNONE; then |
2047 |
ac_site_file1=$prefix/share/config.site |
2048 |
ac_site_file2=$prefix/etc/config.site |
2049 |
else |
2050 |
ac_site_file1=$ac_default_prefix/share/config.site |
2051 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2052 |
fi |
2053 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2054 |
do |
2055 |
test "x$ac_site_file" = xNONE && continue |
2056 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2058 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2059 |
sed 's/^/| /' "$ac_site_file" >&5 |
2060 |
. "$ac_site_file" \ |
2061 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2062 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2063 |
as_fn_error $? "failed to load site script $ac_site_file |
2064 |
See \`config.log' for more details" "$LINENO" 5; } |
2065 |
fi |
2066 |
done |
2067 |
|
2068 |
if test -r "$cache_file"; then |
2069 |
# Some versions of bash will fail to source /dev/null (special files |
2070 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2071 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2072 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2073 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2074 |
case $cache_file in |
2075 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2076 |
*) . "./$cache_file";; |
2077 |
esac |
2078 |
fi |
2079 |
else |
2080 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2081 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2082 |
>$cache_file |
2083 |
fi |
2084 |
|
2085 |
# Check that the precious variables saved in the cache have kept the same |
2086 |
# value. |
2087 |
ac_cache_corrupted=false |
2088 |
for ac_var in $ac_precious_vars; do |
2089 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2090 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2091 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2092 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2093 |
case $ac_old_set,$ac_new_set in |
2094 |
set,) |
2095 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2096 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2097 |
ac_cache_corrupted=: ;; |
2098 |
,set) |
2099 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2100 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2101 |
ac_cache_corrupted=: ;; |
2102 |
,);; |
2103 |
*) |
2104 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2105 |
# differences in whitespace do not lead to failure. |
2106 |
ac_old_val_w=`echo x $ac_old_val` |
2107 |
ac_new_val_w=`echo x $ac_new_val` |
2108 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2109 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2110 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2111 |
ac_cache_corrupted=: |
2112 |
else |
2113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2114 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2115 |
eval $ac_var=\$ac_old_val |
2116 |
fi |
2117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2118 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2120 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2121 |
fi;; |
2122 |
esac |
2123 |
# Pass precious variables to config.status. |
2124 |
if test "$ac_new_set" = set; then |
2125 |
case $ac_new_val in |
2126 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2127 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2128 |
esac |
2129 |
case " $ac_configure_args " in |
2130 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2131 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2132 |
esac |
2133 |
fi |
2134 |
done |
2135 |
if $ac_cache_corrupted; then |
2136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2137 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2138 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2139 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2140 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2141 |
fi |
2142 |
## -------------------- ## |
2143 |
## Main body of script. ## |
2144 |
## -------------------- ## |
2145 |
|
2146 |
ac_ext=c |
2147 |
ac_cpp='$CPP $CPPFLAGS' |
2148 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2149 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2150 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2151 |
|
2152 |
|
2153 |
am__api_version='1.15' |
2154 |
|
2155 |
ac_aux_dir= |
2156 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2157 |
if test -f "$ac_dir/install-sh"; then |
2158 |
ac_aux_dir=$ac_dir |
2159 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2160 |
break |
2161 |
elif test -f "$ac_dir/install.sh"; then |
2162 |
ac_aux_dir=$ac_dir |
2163 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2164 |
break |
2165 |
elif test -f "$ac_dir/shtool"; then |
2166 |
ac_aux_dir=$ac_dir |
2167 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2168 |
break |
2169 |
fi |
2170 |
done |
2171 |
if test -z "$ac_aux_dir"; then |
2172 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2173 |
fi |
2174 |
|
2175 |
# These three variables are undocumented and unsupported, |
2176 |
# and are intended to be withdrawn in a future Autoconf release. |
2177 |
# They can cause serious problems if a builder's source tree is in a directory |
2178 |
# whose full name contains unusual characters. |
2179 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2180 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2181 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2182 |
|
2183 |
|
2184 |
# Find a good install program. We prefer a C program (faster), |
2185 |
# so one script is as good as another. But avoid the broken or |
2186 |
# incompatible versions: |
2187 |
# SysV /etc/install, /usr/sbin/install |
2188 |
# SunOS /usr/etc/install |
2189 |
# IRIX /sbin/install |
2190 |
# AIX /bin/install |
2191 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2192 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2193 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2194 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2195 |
# OS/2's system install, which has a completely different semantic |
2196 |
# ./install, which can be erroneously created by make from ./install.sh. |
2197 |
# Reject install programs that cannot install multiple files. |
2198 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2199 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2200 |
if test -z "$INSTALL"; then |
2201 |
if ${ac_cv_path_install+:} false; then : |
2202 |
$as_echo_n "(cached) " >&6 |
2203 |
else |
2204 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2205 |
for as_dir in $PATH |
2206 |
do |
2207 |
IFS=$as_save_IFS |
2208 |
test -z "$as_dir" && as_dir=. |
2209 |
# Account for people who put trailing slashes in PATH elements. |
2210 |
case $as_dir/ in #(( |
2211 |
./ | .// | /[cC]/* | \ |
2212 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2213 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2214 |
/usr/ucb/* ) ;; |
2215 |
*) |
2216 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2217 |
# Don't use installbsd from OSF since it installs stuff as root |
2218 |
# by default. |
2219 |
for ac_prog in ginstall scoinst install; do |
2220 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2221 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2222 |
if test $ac_prog = install && |
2223 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2224 |
# AIX install. It has an incompatible calling convention. |
2225 |
: |
2226 |
elif test $ac_prog = install && |
2227 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2228 |
# program-specific install script used by HP pwplus--don't use. |
2229 |
: |
2230 |
else |
2231 |
rm -rf conftest.one conftest.two conftest.dir |
2232 |
echo one > conftest.one |
2233 |
echo two > conftest.two |
2234 |
mkdir conftest.dir |
2235 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2236 |
test -s conftest.one && test -s conftest.two && |
2237 |
test -s conftest.dir/conftest.one && |
2238 |
test -s conftest.dir/conftest.two |
2239 |
then |
2240 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2241 |
break 3 |
2242 |
fi |
2243 |
fi |
2244 |
fi |
2245 |
done |
2246 |
done |
2247 |
;; |
2248 |
esac |
2249 |
|
2250 |
done |
2251 |
IFS=$as_save_IFS |
2252 |
|
2253 |
rm -rf conftest.one conftest.two conftest.dir |
2254 |
|
2255 |
fi |
2256 |
if test "${ac_cv_path_install+set}" = set; then |
2257 |
INSTALL=$ac_cv_path_install |
2258 |
else |
2259 |
# As a last resort, use the slow shell script. Don't cache a |
2260 |
# value for INSTALL within a source directory, because that will |
2261 |
# break other packages using the cache if that directory is |
2262 |
# removed, or if the value is a relative name. |
2263 |
INSTALL=$ac_install_sh |
2264 |
fi |
2265 |
fi |
2266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2267 |
$as_echo "$INSTALL" >&6; } |
2268 |
|
2269 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2270 |
# It thinks the first close brace ends the variable substitution. |
2271 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2272 |
|
2273 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2274 |
|
2275 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2276 |
|
2277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2278 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
2279 |
# Reject unsafe characters in $srcdir or the absolute working directory |
2280 |
# name. Accept space and tab only in the latter. |
2281 |
am_lf=' |
2282 |
' |
2283 |
case `pwd` in |
2284 |
*[\\\"\#\$\&\'\`$am_lf]*) |
2285 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
2286 |
esac |
2287 |
case $srcdir in |
2288 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2289 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
2290 |
esac |
2291 |
|
2292 |
# Do 'set' in a subshell so we don't clobber the current shell's |
2293 |
# arguments. Must try -L first in case configure is actually a |
2294 |
# symlink; some systems play weird games with the mod time of symlinks |
2295 |
# (eg FreeBSD returns the mod time of the symlink's containing |
2296 |
# directory). |
2297 |
if ( |
2298 |
am_has_slept=no |
2299 |
for am_try in 1 2; do |
2300 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
2301 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2302 |
if test "$*" = "X"; then |
2303 |
# -L didn't work. |
2304 |
set X `ls -t "$srcdir/configure" conftest.file` |
2305 |
fi |
2306 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2307 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2308 |
|
2309 |
# If neither matched, then we have a broken ls. This can happen |
2310 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2311 |
# broken ls alias from the environment. This has actually |
2312 |
# happened. Such a system could not be considered "sane". |
2313 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2314 |
alias in your environment" "$LINENO" 5 |
2315 |
fi |
2316 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
2317 |
break |
2318 |
fi |
2319 |
# Just in case. |
2320 |
sleep 1 |
2321 |
am_has_slept=yes |
2322 |
done |
2323 |
test "$2" = conftest.file |
2324 |
) |
2325 |
then |
2326 |
# Ok. |
2327 |
: |
2328 |
else |
2329 |
as_fn_error $? "newly created file is older than distributed files! |
2330 |
Check your system clock" "$LINENO" 5 |
2331 |
fi |
2332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2333 |
$as_echo "yes" >&6; } |
2334 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
2335 |
# generated files are strictly newer. |
2336 |
am_sleep_pid= |
2337 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
2338 |
( sleep 1 ) & |
2339 |
am_sleep_pid=$! |
2340 |
fi |
2341 |
|
2342 |
rm -f conftest.file |
2343 |
|
2344 |
test "$program_prefix" != NONE && |
2345 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2346 |
# Use a double $ so make ignores it. |
2347 |
test "$program_suffix" != NONE && |
2348 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2349 |
# Double any \ or $. |
2350 |
# By default was `s,x,x', remove it if useless. |
2351 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2352 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2353 |
|
2354 |
# Expand $ac_aux_dir to an absolute path. |
2355 |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
2356 |
|
2357 |
if test x"${MISSING+set}" != xset; then |
2358 |
case $am_aux_dir in |
2359 |
*\ * | *\ *) |
2360 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2361 |
*) |
2362 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2363 |
esac |
2364 |
fi |
2365 |
# Use eval to expand $SHELL |
2366 |
if eval "$MISSING --is-lightweight"; then |
2367 |
am_missing_run="$MISSING " |
2368 |
else |
2369 |
am_missing_run= |
2370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2371 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
2372 |
fi |
2373 |
|
2374 |
if test x"${install_sh+set}" != xset; then |
2375 |
case $am_aux_dir in |
2376 |
*\ * | *\ *) |
2377 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2378 |
*) |
2379 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
2380 |
esac |
2381 |
fi |
2382 |
|
2383 |
# Installed binaries are usually stripped using 'strip' when the user |
2384 |
# run "make install-strip". However 'strip' might not be the right |
2385 |
# tool to use in cross-compilation environments, therefore Automake |
2386 |
# will honor the 'STRIP' environment variable to overrule this program. |
2387 |
if test "$cross_compiling" != no; then |
2388 |
if test -n "$ac_tool_prefix"; then |
2389 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2390 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2392 |
$as_echo_n "checking for $ac_word... " >&6; } |
2393 |
if ${ac_cv_prog_STRIP+:} false; then : |
2394 |
$as_echo_n "(cached) " >&6 |
2395 |
else |
2396 |
if test -n "$STRIP"; then |
2397 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2398 |
else |
2399 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2400 |
for as_dir in $PATH |
2401 |
do |
2402 |
IFS=$as_save_IFS |
2403 |
test -z "$as_dir" && as_dir=. |
2404 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2405 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2406 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2407 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2408 |
break 2 |
2409 |
fi |
2410 |
done |
2411 |
done |
2412 |
IFS=$as_save_IFS |
2413 |
|
2414 |
fi |
2415 |
fi |
2416 |
STRIP=$ac_cv_prog_STRIP |
2417 |
if test -n "$STRIP"; then |
2418 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2419 |
$as_echo "$STRIP" >&6; } |
2420 |
else |
2421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2422 |
$as_echo "no" >&6; } |
2423 |
fi |
2424 |
|
2425 |
|
2426 |
fi |
2427 |
if test -z "$ac_cv_prog_STRIP"; then |
2428 |
ac_ct_STRIP=$STRIP |
2429 |
# Extract the first word of "strip", so it can be a program name with args. |
2430 |
set dummy strip; ac_word=$2 |
2431 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2432 |
$as_echo_n "checking for $ac_word... " >&6; } |
2433 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
2434 |
$as_echo_n "(cached) " >&6 |
2435 |
else |
2436 |
if test -n "$ac_ct_STRIP"; then |
2437 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2438 |
else |
2439 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2440 |
for as_dir in $PATH |
2441 |
do |
2442 |
IFS=$as_save_IFS |
2443 |
test -z "$as_dir" && as_dir=. |
2444 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2445 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2446 |
ac_cv_prog_ac_ct_STRIP="strip" |
2447 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2448 |
break 2 |
2449 |
fi |
2450 |
done |
2451 |
done |
2452 |
IFS=$as_save_IFS |
2453 |
|
2454 |
fi |
2455 |
fi |
2456 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2457 |
if test -n "$ac_ct_STRIP"; then |
2458 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2459 |
$as_echo "$ac_ct_STRIP" >&6; } |
2460 |
else |
2461 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2462 |
$as_echo "no" >&6; } |
2463 |
fi |
2464 |
|
2465 |
if test "x$ac_ct_STRIP" = x; then |
2466 |
STRIP=":" |
2467 |
else |
2468 |
case $cross_compiling:$ac_tool_warned in |
2469 |
yes:) |
2470 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2471 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2472 |
ac_tool_warned=yes ;; |
2473 |
esac |
2474 |
STRIP=$ac_ct_STRIP |
2475 |
fi |
2476 |
else |
2477 |
STRIP="$ac_cv_prog_STRIP" |
2478 |
fi |
2479 |
|
2480 |
fi |
2481 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2482 |
|
2483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2484 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2485 |
if test -z "$MKDIR_P"; then |
2486 |
if ${ac_cv_path_mkdir+:} false; then : |
2487 |
$as_echo_n "(cached) " >&6 |
2488 |
else |
2489 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2490 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2491 |
do |
2492 |
IFS=$as_save_IFS |
2493 |
test -z "$as_dir" && as_dir=. |
2494 |
for ac_prog in mkdir gmkdir; do |
2495 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2496 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
2497 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2498 |
'mkdir (GNU coreutils) '* | \ |
2499 |
'mkdir (coreutils) '* | \ |
2500 |
'mkdir (fileutils) '4.1*) |
2501 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2502 |
break 3;; |
2503 |
esac |
2504 |
done |
2505 |
done |
2506 |
done |
2507 |
IFS=$as_save_IFS |
2508 |
|
2509 |
fi |
2510 |
|
2511 |
test -d ./--version && rmdir ./--version |
2512 |
if test "${ac_cv_path_mkdir+set}" = set; then |
2513 |
MKDIR_P="$ac_cv_path_mkdir -p" |
2514 |
else |
2515 |
# As a last resort, use the slow shell script. Don't cache a |
2516 |
# value for MKDIR_P within a source directory, because that will |
2517 |
# break other packages using the cache if that directory is |
2518 |
# removed, or if the value is a relative name. |
2519 |
MKDIR_P="$ac_install_sh -d" |
2520 |
fi |
2521 |
fi |
2522 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2523 |
$as_echo "$MKDIR_P" >&6; } |
2524 |
|
2525 |
for ac_prog in gawk mawk nawk awk |
2526 |
do |
2527 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2528 |
set dummy $ac_prog; ac_word=$2 |
2529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2530 |
$as_echo_n "checking for $ac_word... " >&6; } |
2531 |
if ${ac_cv_prog_AWK+:} false; then : |
2532 |
$as_echo_n "(cached) " >&6 |
2533 |
else |
2534 |
if test -n "$AWK"; then |
2535 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2536 |
else |
2537 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2538 |
for as_dir in $PATH |
2539 |
do |
2540 |
IFS=$as_save_IFS |
2541 |
test -z "$as_dir" && as_dir=. |
2542 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2543 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2544 |
ac_cv_prog_AWK="$ac_prog" |
2545 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2546 |
break 2 |
2547 |
fi |
2548 |
done |
2549 |
done |
2550 |
IFS=$as_save_IFS |
2551 |
|
2552 |
fi |
2553 |
fi |
2554 |
AWK=$ac_cv_prog_AWK |
2555 |
if test -n "$AWK"; then |
2556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2557 |
$as_echo "$AWK" >&6; } |
2558 |
else |
2559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2560 |
$as_echo "no" >&6; } |
2561 |
fi |
2562 |
|
2563 |
|
2564 |
test -n "$AWK" && break |
2565 |
done |
2566 |
|
2567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2568 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2569 |
set x ${MAKE-make} |
2570 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2571 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2572 |
$as_echo_n "(cached) " >&6 |
2573 |
else |
2574 |
cat >conftest.make <<\_ACEOF |
2575 |
SHELL = /bin/sh |
2576 |
all: |
2577 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
2578 |
_ACEOF |
2579 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2580 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2581 |
*@@@%%%=?*=@@@%%%*) |
2582 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
2583 |
*) |
2584 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
2585 |
esac |
2586 |
rm -f conftest.make |
2587 |
fi |
2588 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2589 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2590 |
$as_echo "yes" >&6; } |
2591 |
SET_MAKE= |
2592 |
else |
2593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2594 |
$as_echo "no" >&6; } |
2595 |
SET_MAKE="MAKE=${MAKE-make}" |
2596 |
fi |
2597 |
|
2598 |
rm -rf .tst 2>/dev/null |
2599 |
mkdir .tst 2>/dev/null |
2600 |
if test -d .tst; then |
2601 |
am__leading_dot=. |
2602 |
else |
2603 |
am__leading_dot=_ |
2604 |
fi |
2605 |
rmdir .tst 2>/dev/null |
2606 |
|
2607 |
# Check whether --enable-silent-rules was given. |
2608 |
if test "${enable_silent_rules+set}" = set; then : |
2609 |
enableval=$enable_silent_rules; |
2610 |
fi |
2611 |
|
2612 |
case $enable_silent_rules in # ((( |
2613 |
yes) AM_DEFAULT_VERBOSITY=0;; |
2614 |
no) AM_DEFAULT_VERBOSITY=1;; |
2615 |
*) AM_DEFAULT_VERBOSITY=1;; |
2616 |
esac |
2617 |
am_make=${MAKE-make} |
2618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
2619 |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
2620 |
if ${am_cv_make_support_nested_variables+:} false; then : |
2621 |
$as_echo_n "(cached) " >&6 |
2622 |
else |
2623 |
if $as_echo 'TRUE=$(BAR$(V)) |
2624 |
BAR0=false |
2625 |
BAR1=true |
2626 |
V=1 |
2627 |
am__doit: |
2628 |
@$(TRUE) |
2629 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
2630 |
am_cv_make_support_nested_variables=yes |
2631 |
else |
2632 |
am_cv_make_support_nested_variables=no |
2633 |
fi |
2634 |
fi |
2635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
2636 |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
2637 |
if test $am_cv_make_support_nested_variables = yes; then |
2638 |
AM_V='$(V)' |
2639 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2640 |
else |
2641 |
AM_V=$AM_DEFAULT_VERBOSITY |
2642 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
2643 |
fi |
2644 |
AM_BACKSLASH='\' |
2645 |
|
2646 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2647 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2648 |
# is not polluted with repeated "-I." |
2649 |
am__isrc=' -I$(srcdir)' |
2650 |
# test to see if srcdir already configured |
2651 |
if test -f $srcdir/config.status; then |
2652 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2653 |
fi |
2654 |
fi |
2655 |
|
2656 |
# test whether we have cygpath |
2657 |
if test -z "$CYGPATH_W"; then |
2658 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
2659 |
CYGPATH_W='cygpath -w' |
2660 |
else |
2661 |
CYGPATH_W=echo |
2662 |
fi |
2663 |
fi |
2664 |
|
2665 |
|
2666 |
# Define the identity of the package. |
2667 |
PACKAGE='hopm' |
2668 |
VERSION='TRUNK' |
2669 |
|
2670 |
|
2671 |
cat >>confdefs.h <<_ACEOF |
2672 |
#define PACKAGE "$PACKAGE" |
2673 |
_ACEOF |
2674 |
|
2675 |
|
2676 |
cat >>confdefs.h <<_ACEOF |
2677 |
#define VERSION "$VERSION" |
2678 |
_ACEOF |
2679 |
|
2680 |
# Some tools Automake needs. |
2681 |
|
2682 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2683 |
|
2684 |
|
2685 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2686 |
|
2687 |
|
2688 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2689 |
|
2690 |
|
2691 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2692 |
|
2693 |
|
2694 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2695 |
|
2696 |
# For better backward compatibility. To be removed once Automake 1.9.x |
2697 |
# dies out for good. For more background, see: |
2698 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
2699 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
2700 |
mkdir_p='$(MKDIR_P)' |
2701 |
|
2702 |
# We need awk for the "check" target (and possibly the TAP driver). The |
2703 |
# system "awk" is bad on some platforms. |
2704 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
2705 |
# in the wild :-( We should find a proper way to deprecate it ... |
2706 |
AMTAR='$${TAR-tar}' |
2707 |
|
2708 |
|
2709 |
# We'll loop over all known methods to create a tar archive until one works. |
2710 |
_am_tools='gnutar pax cpio none' |
2711 |
|
2712 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2713 |
|
2714 |
|
2715 |
|
2716 |
|
2717 |
|
2718 |
|
2719 |
# POSIX will say in a future version that running "rm -f" with no argument |
2720 |
# is OK; and we want to be able to make that assumption in our Makefile |
2721 |
# recipes. So use an aggressive probe to check that the usage we want is |
2722 |
# actually supported "in the wild" to an acceptable degree. |
2723 |
# See automake bug#10828. |
2724 |
# To make any issue more visible, cause the running configure to be aborted |
2725 |
# by default if the 'rm' program in use doesn't match our expectations; the |
2726 |
# user can still override this though. |
2727 |
if rm -f && rm -fr && rm -rf; then : OK; else |
2728 |
cat >&2 <<'END' |
2729 |
Oops! |
2730 |
|
2731 |
Your 'rm' program seems unable to run without file operands specified |
2732 |
on the command line, even when the '-f' option is present. This is contrary |
2733 |
to the behaviour of most rm programs out there, and not conforming with |
2734 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
2735 |
|
2736 |
Please tell bug-automake@gnu.org about your system, including the value |
2737 |
of your $PATH and any error possibly output before this message. This |
2738 |
can help us improve future automake versions. |
2739 |
|
2740 |
END |
2741 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
2742 |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
2743 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
2744 |
echo >&2 |
2745 |
else |
2746 |
cat >&2 <<'END' |
2747 |
Aborting the configuration process, to ensure you take notice of the issue. |
2748 |
|
2749 |
You can download and install GNU coreutils to get an 'rm' implementation |
2750 |
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
2751 |
|
2752 |
If you want to complete the configuration process using your problematic |
2753 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
2754 |
to "yes", and re-run configure. |
2755 |
|
2756 |
END |
2757 |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
2758 |
fi |
2759 |
fi |
2760 |
|
2761 |
|
2762 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2763 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
2764 |
# Check whether --enable-maintainer-mode was given. |
2765 |
if test "${enable_maintainer_mode+set}" = set; then : |
2766 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2767 |
else |
2768 |
USE_MAINTAINER_MODE=no |
2769 |
fi |
2770 |
|
2771 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2772 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
2773 |
if test $USE_MAINTAINER_MODE = yes; then |
2774 |
MAINTAINER_MODE_TRUE= |
2775 |
MAINTAINER_MODE_FALSE='#' |
2776 |
else |
2777 |
MAINTAINER_MODE_TRUE='#' |
2778 |
MAINTAINER_MODE_FALSE= |
2779 |
fi |
2780 |
|
2781 |
MAINT=$MAINTAINER_MODE_TRUE |
2782 |
|
2783 |
|
2784 |
|
2785 |
ac_config_headers="$ac_config_headers src/setup.h" |
2786 |
|
2787 |
|
2788 |
|
2789 |
|
2790 |
DEPDIR="${am__leading_dot}deps" |
2791 |
|
2792 |
ac_config_commands="$ac_config_commands depfiles" |
2793 |
|
2794 |
|
2795 |
am_make=${MAKE-make} |
2796 |
cat > confinc << 'END' |
2797 |
am__doit: |
2798 |
@echo this is the am__doit target |
2799 |
.PHONY: am__doit |
2800 |
END |
2801 |
# If we don't find an include directive, just comment out the code. |
2802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
2803 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
2804 |
am__include="#" |
2805 |
am__quote= |
2806 |
_am_result=none |
2807 |
# First try GNU make style include. |
2808 |
echo "include confinc" > confmf |
2809 |
# Ignore all kinds of additional output from 'make'. |
2810 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
2811 |
*the\ am__doit\ target*) |
2812 |
am__include=include |
2813 |
am__quote= |
2814 |
_am_result=GNU |
2815 |
;; |
2816 |
esac |
2817 |
# Now try BSD make style include. |
2818 |
if test "$am__include" = "#"; then |
2819 |
echo '.include "confinc"' > confmf |
2820 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
2821 |
*the\ am__doit\ target*) |
2822 |
am__include=.include |
2823 |
am__quote="\"" |
2824 |
_am_result=BSD |
2825 |
;; |
2826 |
esac |
2827 |
fi |
2828 |
|
2829 |
|
2830 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
2831 |
$as_echo "$_am_result" >&6; } |
2832 |
rm -f confinc confmf |
2833 |
|
2834 |
# Check whether --enable-dependency-tracking was given. |
2835 |
if test "${enable_dependency_tracking+set}" = set; then : |
2836 |
enableval=$enable_dependency_tracking; |
2837 |
fi |
2838 |
|
2839 |
if test "x$enable_dependency_tracking" != xno; then |
2840 |
am_depcomp="$ac_aux_dir/depcomp" |
2841 |
AMDEPBACKSLASH='\' |
2842 |
am__nodep='_no' |
2843 |
fi |
2844 |
if test "x$enable_dependency_tracking" != xno; then |
2845 |
AMDEP_TRUE= |
2846 |
AMDEP_FALSE='#' |
2847 |
else |
2848 |
AMDEP_TRUE='#' |
2849 |
AMDEP_FALSE= |
2850 |
fi |
2851 |
|
2852 |
|
2853 |
ac_ext=c |
2854 |
ac_cpp='$CPP $CPPFLAGS' |
2855 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2856 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2857 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2858 |
if test -n "$ac_tool_prefix"; then |
2859 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2860 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2862 |
$as_echo_n "checking for $ac_word... " >&6; } |
2863 |
if ${ac_cv_prog_CC+:} false; then : |
2864 |
$as_echo_n "(cached) " >&6 |
2865 |
else |
2866 |
if test -n "$CC"; then |
2867 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2868 |
else |
2869 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2870 |
for as_dir in $PATH |
2871 |
do |
2872 |
IFS=$as_save_IFS |
2873 |
test -z "$as_dir" && as_dir=. |
2874 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2875 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2876 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2877 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2878 |
break 2 |
2879 |
fi |
2880 |
done |
2881 |
done |
2882 |
IFS=$as_save_IFS |
2883 |
|
2884 |
fi |
2885 |
fi |
2886 |
CC=$ac_cv_prog_CC |
2887 |
if test -n "$CC"; then |
2888 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2889 |
$as_echo "$CC" >&6; } |
2890 |
else |
2891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2892 |
$as_echo "no" >&6; } |
2893 |
fi |
2894 |
|
2895 |
|
2896 |
fi |
2897 |
if test -z "$ac_cv_prog_CC"; then |
2898 |
ac_ct_CC=$CC |
2899 |
# Extract the first word of "gcc", so it can be a program name with args. |
2900 |
set dummy gcc; ac_word=$2 |
2901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2902 |
$as_echo_n "checking for $ac_word... " >&6; } |
2903 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2904 |
$as_echo_n "(cached) " >&6 |
2905 |
else |
2906 |
if test -n "$ac_ct_CC"; then |
2907 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2908 |
else |
2909 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2910 |
for as_dir in $PATH |
2911 |
do |
2912 |
IFS=$as_save_IFS |
2913 |
test -z "$as_dir" && as_dir=. |
2914 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2915 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2916 |
ac_cv_prog_ac_ct_CC="gcc" |
2917 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2918 |
break 2 |
2919 |
fi |
2920 |
done |
2921 |
done |
2922 |
IFS=$as_save_IFS |
2923 |
|
2924 |
fi |
2925 |
fi |
2926 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2927 |
if test -n "$ac_ct_CC"; then |
2928 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2929 |
$as_echo "$ac_ct_CC" >&6; } |
2930 |
else |
2931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2932 |
$as_echo "no" >&6; } |
2933 |
fi |
2934 |
|
2935 |
if test "x$ac_ct_CC" = x; then |
2936 |
CC="" |
2937 |
else |
2938 |
case $cross_compiling:$ac_tool_warned in |
2939 |
yes:) |
2940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2941 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2942 |
ac_tool_warned=yes ;; |
2943 |
esac |
2944 |
CC=$ac_ct_CC |
2945 |
fi |
2946 |
else |
2947 |
CC="$ac_cv_prog_CC" |
2948 |
fi |
2949 |
|
2950 |
if test -z "$CC"; then |
2951 |
if test -n "$ac_tool_prefix"; then |
2952 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2953 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2954 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2955 |
$as_echo_n "checking for $ac_word... " >&6; } |
2956 |
if ${ac_cv_prog_CC+:} false; then : |
2957 |
$as_echo_n "(cached) " >&6 |
2958 |
else |
2959 |
if test -n "$CC"; then |
2960 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2961 |
else |
2962 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2963 |
for as_dir in $PATH |
2964 |
do |
2965 |
IFS=$as_save_IFS |
2966 |
test -z "$as_dir" && as_dir=. |
2967 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2968 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2969 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
2970 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2971 |
break 2 |
2972 |
fi |
2973 |
done |
2974 |
done |
2975 |
IFS=$as_save_IFS |
2976 |
|
2977 |
fi |
2978 |
fi |
2979 |
CC=$ac_cv_prog_CC |
2980 |
if test -n "$CC"; then |
2981 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2982 |
$as_echo "$CC" >&6; } |
2983 |
else |
2984 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2985 |
$as_echo "no" >&6; } |
2986 |
fi |
2987 |
|
2988 |
|
2989 |
fi |
2990 |
fi |
2991 |
if test -z "$CC"; then |
2992 |
# Extract the first word of "cc", so it can be a program name with args. |
2993 |
set dummy cc; ac_word=$2 |
2994 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2995 |
$as_echo_n "checking for $ac_word... " >&6; } |
2996 |
if ${ac_cv_prog_CC+:} false; then : |
2997 |
$as_echo_n "(cached) " >&6 |
2998 |
else |
2999 |
if test -n "$CC"; then |
3000 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3001 |
else |
3002 |
ac_prog_rejected=no |
3003 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3004 |
for as_dir in $PATH |
3005 |
do |
3006 |
IFS=$as_save_IFS |
3007 |
test -z "$as_dir" && as_dir=. |
3008 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3009 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3010 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3011 |
ac_prog_rejected=yes |
3012 |
continue |
3013 |
fi |
3014 |
ac_cv_prog_CC="cc" |
3015 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3016 |
break 2 |
3017 |
fi |
3018 |
done |
3019 |
done |
3020 |
IFS=$as_save_IFS |
3021 |
|
3022 |
if test $ac_prog_rejected = yes; then |
3023 |
# We found a bogon in the path, so make sure we never use it. |
3024 |
set dummy $ac_cv_prog_CC |
3025 |
shift |
3026 |
if test $# != 0; then |
3027 |
# We chose a different compiler from the bogus one. |
3028 |
# However, it has the same basename, so the bogon will be chosen |
3029 |
# first if we set CC to just the basename; use the full file name. |
3030 |
shift |
3031 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3032 |
fi |
3033 |
fi |
3034 |
fi |
3035 |
fi |
3036 |
CC=$ac_cv_prog_CC |
3037 |
if test -n "$CC"; then |
3038 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3039 |
$as_echo "$CC" >&6; } |
3040 |
else |
3041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3042 |
$as_echo "no" >&6; } |
3043 |
fi |
3044 |
|
3045 |
|
3046 |
fi |
3047 |
if test -z "$CC"; then |
3048 |
if test -n "$ac_tool_prefix"; then |
3049 |
for ac_prog in cl.exe |
3050 |
do |
3051 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3052 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3054 |
$as_echo_n "checking for $ac_word... " >&6; } |
3055 |
if ${ac_cv_prog_CC+:} false; then : |
3056 |
$as_echo_n "(cached) " >&6 |
3057 |
else |
3058 |
if test -n "$CC"; then |
3059 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3060 |
else |
3061 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3062 |
for as_dir in $PATH |
3063 |
do |
3064 |
IFS=$as_save_IFS |
3065 |
test -z "$as_dir" && as_dir=. |
3066 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3067 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3068 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3069 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3070 |
break 2 |
3071 |
fi |
3072 |
done |
3073 |
done |
3074 |
IFS=$as_save_IFS |
3075 |
|
3076 |
fi |
3077 |
fi |
3078 |
CC=$ac_cv_prog_CC |
3079 |
if test -n "$CC"; then |
3080 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3081 |
$as_echo "$CC" >&6; } |
3082 |
else |
3083 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3084 |
$as_echo "no" >&6; } |
3085 |
fi |
3086 |
|
3087 |
|
3088 |
test -n "$CC" && break |
3089 |
done |
3090 |
fi |
3091 |
if test -z "$CC"; then |
3092 |
ac_ct_CC=$CC |
3093 |
for ac_prog in cl.exe |
3094 |
do |
3095 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3096 |
set dummy $ac_prog; ac_word=$2 |
3097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3098 |
$as_echo_n "checking for $ac_word... " >&6; } |
3099 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3100 |
$as_echo_n "(cached) " >&6 |
3101 |
else |
3102 |
if test -n "$ac_ct_CC"; then |
3103 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3104 |
else |
3105 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3106 |
for as_dir in $PATH |
3107 |
do |
3108 |
IFS=$as_save_IFS |
3109 |
test -z "$as_dir" && as_dir=. |
3110 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3111 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3112 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3113 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3114 |
break 2 |
3115 |
fi |
3116 |
done |
3117 |
done |
3118 |
IFS=$as_save_IFS |
3119 |
|
3120 |
fi |
3121 |
fi |
3122 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3123 |
if test -n "$ac_ct_CC"; then |
3124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3125 |
$as_echo "$ac_ct_CC" >&6; } |
3126 |
else |
3127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3128 |
$as_echo "no" >&6; } |
3129 |
fi |
3130 |
|
3131 |
|
3132 |
test -n "$ac_ct_CC" && break |
3133 |
done |
3134 |
|
3135 |
if test "x$ac_ct_CC" = x; then |
3136 |
CC="" |
3137 |
else |
3138 |
case $cross_compiling:$ac_tool_warned in |
3139 |
yes:) |
3140 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3141 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3142 |
ac_tool_warned=yes ;; |
3143 |
esac |
3144 |
CC=$ac_ct_CC |
3145 |
fi |
3146 |
fi |
3147 |
|
3148 |
fi |
3149 |
|
3150 |
|
3151 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3152 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3153 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3154 |
See \`config.log' for more details" "$LINENO" 5; } |
3155 |
|
3156 |
# Provide some information about the compiler. |
3157 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3158 |
set X $ac_compile |
3159 |
ac_compiler=$2 |
3160 |
for ac_option in --version -v -V -qversion; do |
3161 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3162 |
case "(($ac_try" in |
3163 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3164 |
*) ac_try_echo=$ac_try;; |
3165 |
esac |
3166 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3167 |
$as_echo "$ac_try_echo"; } >&5 |
3168 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3169 |
ac_status=$? |
3170 |
if test -s conftest.err; then |
3171 |
sed '10a\ |
3172 |
... rest of stderr output deleted ... |
3173 |
10q' conftest.err >conftest.er1 |
3174 |
cat conftest.er1 >&5 |
3175 |
fi |
3176 |
rm -f conftest.er1 conftest.err |
3177 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3178 |
test $ac_status = 0; } |
3179 |
done |
3180 |
|
3181 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3182 |
/* end confdefs.h. */ |
3183 |
|
3184 |
int |
3185 |
main () |
3186 |
{ |
3187 |
|
3188 |
; |
3189 |
return 0; |
3190 |
} |
3191 |
_ACEOF |
3192 |
ac_clean_files_save=$ac_clean_files |
3193 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3194 |
# Try to create an executable without -o first, disregard a.out. |
3195 |
# It will help us diagnose broken compilers, and finding out an intuition |
3196 |
# of exeext. |
3197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3198 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
3199 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3200 |
|
3201 |
# The possible output files: |
3202 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3203 |
|
3204 |
ac_rmfiles= |
3205 |
for ac_file in $ac_files |
3206 |
do |
3207 |
case $ac_file in |
3208 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3209 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3210 |
esac |
3211 |
done |
3212 |
rm -f $ac_rmfiles |
3213 |
|
3214 |
if { { ac_try="$ac_link_default" |
3215 |
case "(($ac_try" in |
3216 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3217 |
*) ac_try_echo=$ac_try;; |
3218 |
esac |
3219 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3220 |
$as_echo "$ac_try_echo"; } >&5 |
3221 |
(eval "$ac_link_default") 2>&5 |
3222 |
ac_status=$? |
3223 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3224 |
test $ac_status = 0; }; then : |
3225 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3226 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3227 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3228 |
# so that the user can short-circuit this test for compilers unknown to |
3229 |
# Autoconf. |
3230 |
for ac_file in $ac_files '' |
3231 |
do |
3232 |
test -f "$ac_file" || continue |
3233 |
case $ac_file in |
3234 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3235 |
;; |
3236 |
[ab].out ) |
3237 |
# We found the default executable, but exeext='' is most |
3238 |
# certainly right. |
3239 |
break;; |
3240 |
*.* ) |
3241 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3242 |
then :; else |
3243 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3244 |
fi |
3245 |
# We set ac_cv_exeext here because the later test for it is not |
3246 |
# safe: cross compilers may not add the suffix if given an `-o' |
3247 |
# argument, so we may need to know it at that point already. |
3248 |
# Even if this section looks crufty: it has the advantage of |
3249 |
# actually working. |
3250 |
break;; |
3251 |
* ) |
3252 |
break;; |
3253 |
esac |
3254 |
done |
3255 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3256 |
|
3257 |
else |
3258 |
ac_file='' |
3259 |
fi |
3260 |
if test -z "$ac_file"; then : |
3261 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3262 |
$as_echo "no" >&6; } |
3263 |
$as_echo "$as_me: failed program was:" >&5 |
3264 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3265 |
|
3266 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3267 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3268 |
as_fn_error 77 "C compiler cannot create executables |
3269 |
See \`config.log' for more details" "$LINENO" 5; } |
3270 |
else |
3271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3272 |
$as_echo "yes" >&6; } |
3273 |
fi |
3274 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3275 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
3276 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3277 |
$as_echo "$ac_file" >&6; } |
3278 |
ac_exeext=$ac_cv_exeext |
3279 |
|
3280 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3281 |
ac_clean_files=$ac_clean_files_save |
3282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3283 |
$as_echo_n "checking for suffix of executables... " >&6; } |
3284 |
if { { ac_try="$ac_link" |
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") 2>&5 |
3292 |
ac_status=$? |
3293 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3294 |
test $ac_status = 0; }; then : |
3295 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3296 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3297 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3298 |
# `rm'. |
3299 |
for ac_file in conftest.exe conftest conftest.*; do |
3300 |
test -f "$ac_file" || continue |
3301 |
case $ac_file in |
3302 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3303 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3304 |
break;; |
3305 |
* ) break;; |
3306 |
esac |
3307 |
done |
3308 |
else |
3309 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3310 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3311 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3312 |
See \`config.log' for more details" "$LINENO" 5; } |
3313 |
fi |
3314 |
rm -f conftest conftest$ac_cv_exeext |
3315 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3316 |
$as_echo "$ac_cv_exeext" >&6; } |
3317 |
|
3318 |
rm -f conftest.$ac_ext |
3319 |
EXEEXT=$ac_cv_exeext |
3320 |
ac_exeext=$EXEEXT |
3321 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3322 |
/* end confdefs.h. */ |
3323 |
#include <stdio.h> |
3324 |
int |
3325 |
main () |
3326 |
{ |
3327 |
FILE *f = fopen ("conftest.out", "w"); |
3328 |
return ferror (f) || fclose (f) != 0; |
3329 |
|
3330 |
; |
3331 |
return 0; |
3332 |
} |
3333 |
_ACEOF |
3334 |
ac_clean_files="$ac_clean_files conftest.out" |
3335 |
# Check that the compiler produces executables we can run. If not, either |
3336 |
# the compiler is broken, or we cross compile. |
3337 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3338 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3339 |
if test "$cross_compiling" != yes; then |
3340 |
{ { ac_try="$ac_link" |
3341 |
case "(($ac_try" in |
3342 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3343 |
*) ac_try_echo=$ac_try;; |
3344 |
esac |
3345 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3346 |
$as_echo "$ac_try_echo"; } >&5 |
3347 |
(eval "$ac_link") 2>&5 |
3348 |
ac_status=$? |
3349 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3350 |
test $ac_status = 0; } |
3351 |
if { ac_try='./conftest$ac_cv_exeext' |
3352 |
{ { case "(($ac_try" in |
3353 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3354 |
*) ac_try_echo=$ac_try;; |
3355 |
esac |
3356 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3357 |
$as_echo "$ac_try_echo"; } >&5 |
3358 |
(eval "$ac_try") 2>&5 |
3359 |
ac_status=$? |
3360 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3361 |
test $ac_status = 0; }; }; then |
3362 |
cross_compiling=no |
3363 |
else |
3364 |
if test "$cross_compiling" = maybe; then |
3365 |
cross_compiling=yes |
3366 |
else |
3367 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3368 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3369 |
as_fn_error $? "cannot run C compiled programs. |
3370 |
If you meant to cross compile, use \`--host'. |
3371 |
See \`config.log' for more details" "$LINENO" 5; } |
3372 |
fi |
3373 |
fi |
3374 |
fi |
3375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3376 |
$as_echo "$cross_compiling" >&6; } |
3377 |
|
3378 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3379 |
ac_clean_files=$ac_clean_files_save |
3380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3381 |
$as_echo_n "checking for suffix of object files... " >&6; } |
3382 |
if ${ac_cv_objext+:} false; then : |
3383 |
$as_echo_n "(cached) " >&6 |
3384 |
else |
3385 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3386 |
/* end confdefs.h. */ |
3387 |
|
3388 |
int |
3389 |
main () |
3390 |
{ |
3391 |
|
3392 |
; |
3393 |
return 0; |
3394 |
} |
3395 |
_ACEOF |
3396 |
rm -f conftest.o conftest.obj |
3397 |
if { { ac_try="$ac_compile" |
3398 |
case "(($ac_try" in |
3399 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3400 |
*) ac_try_echo=$ac_try;; |
3401 |
esac |
3402 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3403 |
$as_echo "$ac_try_echo"; } >&5 |
3404 |
(eval "$ac_compile") 2>&5 |
3405 |
ac_status=$? |
3406 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3407 |
test $ac_status = 0; }; then : |
3408 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3409 |
test -f "$ac_file" || continue; |
3410 |
case $ac_file in |
3411 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3412 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3413 |
break;; |
3414 |
esac |
3415 |
done |
3416 |
else |
3417 |
$as_echo "$as_me: failed program was:" >&5 |
3418 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3419 |
|
3420 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3421 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3422 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3423 |
See \`config.log' for more details" "$LINENO" 5; } |
3424 |
fi |
3425 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3426 |
fi |
3427 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3428 |
$as_echo "$ac_cv_objext" >&6; } |
3429 |
OBJEXT=$ac_cv_objext |
3430 |
ac_objext=$OBJEXT |
3431 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3432 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3433 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3434 |
$as_echo_n "(cached) " >&6 |
3435 |
else |
3436 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3437 |
/* end confdefs.h. */ |
3438 |
|
3439 |
int |
3440 |
main () |
3441 |
{ |
3442 |
#ifndef __GNUC__ |
3443 |
choke me |
3444 |
#endif |
3445 |
|
3446 |
; |
3447 |
return 0; |
3448 |
} |
3449 |
_ACEOF |
3450 |
if ac_fn_c_try_compile "$LINENO"; then : |
3451 |
ac_compiler_gnu=yes |
3452 |
else |
3453 |
ac_compiler_gnu=no |
3454 |
fi |
3455 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3456 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3457 |
|
3458 |
fi |
3459 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3460 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3461 |
if test $ac_compiler_gnu = yes; then |
3462 |
GCC=yes |
3463 |
else |
3464 |
GCC= |
3465 |
fi |
3466 |
ac_test_CFLAGS=${CFLAGS+set} |
3467 |
ac_save_CFLAGS=$CFLAGS |
3468 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3469 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3470 |
if ${ac_cv_prog_cc_g+:} false; then : |
3471 |
$as_echo_n "(cached) " >&6 |
3472 |
else |
3473 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3474 |
ac_c_werror_flag=yes |
3475 |
ac_cv_prog_cc_g=no |
3476 |
CFLAGS="-g" |
3477 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3478 |
/* end confdefs.h. */ |
3479 |
|
3480 |
int |
3481 |
main () |
3482 |
{ |
3483 |
|
3484 |
; |
3485 |
return 0; |
3486 |
} |
3487 |
_ACEOF |
3488 |
if ac_fn_c_try_compile "$LINENO"; then : |
3489 |
ac_cv_prog_cc_g=yes |
3490 |
else |
3491 |
CFLAGS="" |
3492 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3493 |
/* end confdefs.h. */ |
3494 |
|
3495 |
int |
3496 |
main () |
3497 |
{ |
3498 |
|
3499 |
; |
3500 |
return 0; |
3501 |
} |
3502 |
_ACEOF |
3503 |
if ac_fn_c_try_compile "$LINENO"; then : |
3504 |
|
3505 |
else |
3506 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3507 |
CFLAGS="-g" |
3508 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3509 |
/* end confdefs.h. */ |
3510 |
|
3511 |
int |
3512 |
main () |
3513 |
{ |
3514 |
|
3515 |
; |
3516 |
return 0; |
3517 |
} |
3518 |
_ACEOF |
3519 |
if ac_fn_c_try_compile "$LINENO"; then : |
3520 |
ac_cv_prog_cc_g=yes |
3521 |
fi |
3522 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3523 |
fi |
3524 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3525 |
fi |
3526 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3527 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3528 |
fi |
3529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3530 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3531 |
if test "$ac_test_CFLAGS" = set; then |
3532 |
CFLAGS=$ac_save_CFLAGS |
3533 |
elif test $ac_cv_prog_cc_g = yes; then |
3534 |
if test "$GCC" = yes; then |
3535 |
CFLAGS="-g -O2" |
3536 |
else |
3537 |
CFLAGS="-g" |
3538 |
fi |
3539 |
else |
3540 |
if test "$GCC" = yes; then |
3541 |
CFLAGS="-O2" |
3542 |
else |
3543 |
CFLAGS= |
3544 |
fi |
3545 |
fi |
3546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3547 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3548 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3549 |
$as_echo_n "(cached) " >&6 |
3550 |
else |
3551 |
ac_cv_prog_cc_c89=no |
3552 |
ac_save_CC=$CC |
3553 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3554 |
/* end confdefs.h. */ |
3555 |
#include <stdarg.h> |
3556 |
#include <stdio.h> |
3557 |
struct stat; |
3558 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3559 |
struct buf { int x; }; |
3560 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3561 |
static char *e (p, i) |
3562 |
char **p; |
3563 |
int i; |
3564 |
{ |
3565 |
return p[i]; |
3566 |
} |
3567 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3568 |
{ |
3569 |
char *s; |
3570 |
va_list v; |
3571 |
va_start (v,p); |
3572 |
s = g (p, va_arg (v,int)); |
3573 |
va_end (v); |
3574 |
return s; |
3575 |
} |
3576 |
|
3577 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3578 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3579 |
These don't provoke an error unfortunately, instead are silently treated |
3580 |
as 'x'. The following induces an error, until -std is added to get |
3581 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3582 |
array size at least. It's necessary to write '\x00'==0 to get something |
3583 |
that's true only with -std. */ |
3584 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3585 |
|
3586 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3587 |
inside strings and character constants. */ |
3588 |
#define FOO(x) 'x' |
3589 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3590 |
|
3591 |
int test (int i, double x); |
3592 |
struct s1 {int (*f) (int a);}; |
3593 |
struct s2 {int (*f) (double a);}; |
3594 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3595 |
int argc; |
3596 |
char **argv; |
3597 |
int |
3598 |
main () |
3599 |
{ |
3600 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3601 |
; |
3602 |
return 0; |
3603 |
} |
3604 |
_ACEOF |
3605 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3606 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3607 |
do |
3608 |
CC="$ac_save_CC $ac_arg" |
3609 |
if ac_fn_c_try_compile "$LINENO"; then : |
3610 |
ac_cv_prog_cc_c89=$ac_arg |
3611 |
fi |
3612 |
rm -f core conftest.err conftest.$ac_objext |
3613 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3614 |
done |
3615 |
rm -f conftest.$ac_ext |
3616 |
CC=$ac_save_CC |
3617 |
|
3618 |
fi |
3619 |
# AC_CACHE_VAL |
3620 |
case "x$ac_cv_prog_cc_c89" in |
3621 |
x) |
3622 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3623 |
$as_echo "none needed" >&6; } ;; |
3624 |
xno) |
3625 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3626 |
$as_echo "unsupported" >&6; } ;; |
3627 |
*) |
3628 |
CC="$CC $ac_cv_prog_cc_c89" |
3629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3630 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3631 |
esac |
3632 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3633 |
|
3634 |
fi |
3635 |
|
3636 |
ac_ext=c |
3637 |
ac_cpp='$CPP $CPPFLAGS' |
3638 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3639 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3640 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3641 |
|
3642 |
ac_ext=c |
3643 |
ac_cpp='$CPP $CPPFLAGS' |
3644 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3645 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3646 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3647 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
3648 |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
3649 |
if ${am_cv_prog_cc_c_o+:} false; then : |
3650 |
$as_echo_n "(cached) " >&6 |
3651 |
else |
3652 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3653 |
/* end confdefs.h. */ |
3654 |
|
3655 |
int |
3656 |
main () |
3657 |
{ |
3658 |
|
3659 |
; |
3660 |
return 0; |
3661 |
} |
3662 |
_ACEOF |
3663 |
# Make sure it works both with $CC and with simple cc. |
3664 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
3665 |
# compilers refuse to overwrite an existing .o file with -o, |
3666 |
# though they will create one. |
3667 |
am_cv_prog_cc_c_o=yes |
3668 |
for am_i in 1 2; do |
3669 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
3670 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
3671 |
ac_status=$? |
3672 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3673 |
(exit $ac_status); } \ |
3674 |
&& test -f conftest2.$ac_objext; then |
3675 |
: OK |
3676 |
else |
3677 |
am_cv_prog_cc_c_o=no |
3678 |
break |
3679 |
fi |
3680 |
done |
3681 |
rm -f core conftest* |
3682 |
unset am_i |
3683 |
fi |
3684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3685 |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
3686 |
if test "$am_cv_prog_cc_c_o" != yes; then |
3687 |
# Losing compiler, so override with the script. |
3688 |
# FIXME: It is wrong to rewrite CC. |
3689 |
# But if we don't then we get into trouble of one sort or another. |
3690 |
# A longer-term fix would be to have automake use am__CC in this case, |
3691 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
3692 |
CC="$am_aux_dir/compile $CC" |
3693 |
fi |
3694 |
ac_ext=c |
3695 |
ac_cpp='$CPP $CPPFLAGS' |
3696 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3697 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3698 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3699 |
|
3700 |
|
3701 |
depcc="$CC" am_compiler_list= |
3702 |
|
3703 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3704 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
3705 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
3706 |
$as_echo_n "(cached) " >&6 |
3707 |
else |
3708 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3709 |
# We make a subdir and do the tests there. Otherwise we can end up |
3710 |
# making bogus files that we don't know about and never remove. For |
3711 |
# instance it was reported that on HP-UX the gcc test will end up |
3712 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
3713 |
# in D". |
3714 |
rm -rf conftest.dir |
3715 |
mkdir conftest.dir |
3716 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
3717 |
# using a relative directory. |
3718 |
cp "$am_depcomp" conftest.dir |
3719 |
cd conftest.dir |
3720 |
# We will build objects and dependencies in a subdirectory because |
3721 |
# it helps to detect inapplicable dependency modes. For instance |
3722 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
3723 |
# side effect of compilation, but ICC will put the dependencies in |
3724 |
# the current directory while Tru64 will put them in the object |
3725 |
# directory. |
3726 |
mkdir sub |
3727 |
|
3728 |
am_cv_CC_dependencies_compiler_type=none |
3729 |
if test "$am_compiler_list" = ""; then |
3730 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3731 |
fi |
3732 |
am__universal=false |
3733 |
case " $depcc " in #( |
3734 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
3735 |
esac |
3736 |
|
3737 |
for depmode in $am_compiler_list; do |
3738 |
# Setup a source with many dependencies, because some compilers |
3739 |
# like to wrap large dependency lists on column 80 (with \), and |
3740 |
# we should not choose a depcomp mode which is confused by this. |
3741 |
# |
3742 |
# We need to recreate these files for each test, as the compiler may |
3743 |
# overwrite some of them when testing with obscure command lines. |
3744 |
# This happens at least with the AIX C compiler. |
3745 |
: > sub/conftest.c |
3746 |
for i in 1 2 3 4 5 6; do |
3747 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3748 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3749 |
# Solaris 10 /bin/sh. |
3750 |
echo '/* dummy */' > sub/conftst$i.h |
3751 |
done |
3752 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3753 |
|
3754 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
3755 |
# mode. It turns out that the SunPro C++ compiler does not properly |
3756 |
# handle '-M -o', and we need to detect this. Also, some Intel |
3757 |
# versions had trouble with output in subdirs. |
3758 |
am__obj=sub/conftest.${OBJEXT-o} |
3759 |
am__minus_obj="-o $am__obj" |
3760 |
case $depmode in |
3761 |
gcc) |
3762 |
# This depmode causes a compiler race in universal mode. |
3763 |
test "$am__universal" = false || continue |
3764 |
;; |
3765 |
nosideeffect) |
3766 |
# After this tag, mechanisms are not by side-effect, so they'll |
3767 |
# only be used when explicitly requested. |
3768 |
if test "x$enable_dependency_tracking" = xyes; then |
3769 |
continue |
3770 |
else |
3771 |
break |
3772 |
fi |
3773 |
;; |
3774 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3775 |
# This compiler won't grok '-c -o', but also, the minuso test has |
3776 |
# not run yet. These depmodes are late enough in the game, and |
3777 |
# so weak that their functioning should not be impacted. |
3778 |
am__obj=conftest.${OBJEXT-o} |
3779 |
am__minus_obj= |
3780 |
;; |
3781 |
none) break ;; |
3782 |
esac |
3783 |
if depmode=$depmode \ |
3784 |
source=sub/conftest.c object=$am__obj \ |
3785 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3786 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
3787 |
>/dev/null 2>conftest.err && |
3788 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
3789 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3790 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
3791 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3792 |
# icc doesn't choke on unknown options, it will just issue warnings |
3793 |
# or remarks (even with -Werror). So we grep stderr for any message |
3794 |
# that says an option was ignored or not supported. |
3795 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
3796 |
# icc: Command line warning: ignoring option '-M'; no argument required |
3797 |
# The diagnosis changed in icc 8.0: |
3798 |
# icc: Command line remark: option '-MP' not supported |
3799 |
if (grep 'ignoring option' conftest.err || |
3800 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3801 |
am_cv_CC_dependencies_compiler_type=$depmode |
3802 |
break |
3803 |
fi |
3804 |
fi |
3805 |
done |
3806 |
|
3807 |
cd .. |
3808 |
rm -rf conftest.dir |
3809 |
else |
3810 |
am_cv_CC_dependencies_compiler_type=none |
3811 |
fi |
3812 |
|
3813 |
fi |
3814 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3815 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
3816 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3817 |
|
3818 |
if |
3819 |
test "x$enable_dependency_tracking" != xno \ |
3820 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3821 |
am__fastdepCC_TRUE= |
3822 |
am__fastdepCC_FALSE='#' |
3823 |
else |
3824 |
am__fastdepCC_TRUE='#' |
3825 |
am__fastdepCC_FALSE= |
3826 |
fi |
3827 |
|
3828 |
|
3829 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3830 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
3831 |
if ${ac_cv_prog_cc_c99+:} false; then : |
3832 |
$as_echo_n "(cached) " >&6 |
3833 |
else |
3834 |
ac_cv_prog_cc_c99=no |
3835 |
ac_save_CC=$CC |
3836 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3837 |
/* end confdefs.h. */ |
3838 |
#include <stdarg.h> |
3839 |
#include <stdbool.h> |
3840 |
#include <stdlib.h> |
3841 |
#include <wchar.h> |
3842 |
#include <stdio.h> |
3843 |
|
3844 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
3845 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
3846 |
#define showlist(...) puts (#__VA_ARGS__) |
3847 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
3848 |
static void |
3849 |
test_varargs_macros (void) |
3850 |
{ |
3851 |
int x = 1234; |
3852 |
int y = 5678; |
3853 |
debug ("Flag"); |
3854 |
debug ("X = %d\n", x); |
3855 |
showlist (The first, second, and third items.); |
3856 |
report (x>y, "x is %d but y is %d", x, y); |
3857 |
} |
3858 |
|
3859 |
// Check long long types. |
3860 |
#define BIG64 18446744073709551615ull |
3861 |
#define BIG32 4294967295ul |
3862 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
3863 |
#if !BIG_OK |
3864 |
your preprocessor is broken; |
3865 |
#endif |
3866 |
#if BIG_OK |
3867 |
#else |
3868 |
your preprocessor is broken; |
3869 |
#endif |
3870 |
static long long int bignum = -9223372036854775807LL; |
3871 |
static unsigned long long int ubignum = BIG64; |
3872 |
|
3873 |
struct incomplete_array |
3874 |
{ |
3875 |
int datasize; |
3876 |
double data[]; |
3877 |
}; |
3878 |
|
3879 |
struct named_init { |
3880 |
int number; |
3881 |
const wchar_t *name; |
3882 |
double average; |
3883 |
}; |
3884 |
|
3885 |
typedef const char *ccp; |
3886 |
|
3887 |
static inline int |
3888 |
test_restrict (ccp restrict text) |
3889 |
{ |
3890 |
// See if C++-style comments work. |
3891 |
// Iterate through items via the restricted pointer. |
3892 |
// Also check for declarations in for loops. |
3893 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
3894 |
continue; |
3895 |
return 0; |
3896 |
} |
3897 |
|
3898 |
// Check varargs and va_copy. |
3899 |
static void |
3900 |
test_varargs (const char *format, ...) |
3901 |
{ |
3902 |
va_list args; |
3903 |
va_start (args, format); |
3904 |
va_list args_copy; |
3905 |
va_copy (args_copy, args); |
3906 |
|
3907 |
const char *str; |
3908 |
int number; |
3909 |
float fnumber; |
3910 |
|
3911 |
while (*format) |
3912 |
{ |
3913 |
switch (*format++) |
3914 |
{ |
3915 |
case 's': // string |
3916 |
str = va_arg (args_copy, const char *); |
3917 |
break; |
3918 |
case 'd': // int |
3919 |
number = va_arg (args_copy, int); |
3920 |
break; |
3921 |
case 'f': // float |
3922 |
fnumber = va_arg (args_copy, double); |
3923 |
break; |
3924 |
default: |
3925 |
break; |
3926 |
} |
3927 |
} |
3928 |
va_end (args_copy); |
3929 |
va_end (args); |
3930 |
} |
3931 |
|
3932 |
int |
3933 |
main () |
3934 |
{ |
3935 |
|
3936 |
// Check bool. |
3937 |
_Bool success = false; |
3938 |
|
3939 |
// Check restrict. |
3940 |
if (test_restrict ("String literal") == 0) |
3941 |
success = true; |
3942 |
char *restrict newvar = "Another string"; |
3943 |
|
3944 |
// Check varargs. |
3945 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
3946 |
test_varargs_macros (); |
3947 |
|
3948 |
// Check flexible array members. |
3949 |
struct incomplete_array *ia = |
3950 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
3951 |
ia->datasize = 10; |
3952 |
for (int i = 0; i < ia->datasize; ++i) |
3953 |
ia->data[i] = i * 1.234; |
3954 |
|
3955 |
// Check named initializers. |
3956 |
struct named_init ni = { |
3957 |
.number = 34, |
3958 |
.name = L"Test wide string", |
3959 |
.average = 543.34343, |
3960 |
}; |
3961 |
|
3962 |
ni.number = 58; |
3963 |
|
3964 |
int dynamic_array[ni.number]; |
3965 |
dynamic_array[ni.number - 1] = 543; |
3966 |
|
3967 |
// work around unused variable warnings |
3968 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
3969 |
|| dynamic_array[ni.number - 1] != 543); |
3970 |
|
3971 |
; |
3972 |
return 0; |
3973 |
} |
3974 |
_ACEOF |
3975 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
3976 |
do |
3977 |
CC="$ac_save_CC $ac_arg" |
3978 |
if ac_fn_c_try_compile "$LINENO"; then : |
3979 |
ac_cv_prog_cc_c99=$ac_arg |
3980 |
fi |
3981 |
rm -f core conftest.err conftest.$ac_objext |
3982 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
3983 |
done |
3984 |
rm -f conftest.$ac_ext |
3985 |
CC=$ac_save_CC |
3986 |
|
3987 |
fi |
3988 |
# AC_CACHE_VAL |
3989 |
case "x$ac_cv_prog_cc_c99" in |
3990 |
x) |
3991 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3992 |
$as_echo "none needed" >&6; } ;; |
3993 |
xno) |
3994 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3995 |
$as_echo "unsupported" >&6; } ;; |
3996 |
*) |
3997 |
CC="$CC $ac_cv_prog_cc_c99" |
3998 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
3999 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
4000 |
esac |
4001 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
4002 |
|
4003 |
fi |
4004 |
|
4005 |
|
4006 |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
4007 |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
4008 |
fi |
4009 |
case `pwd` in |
4010 |
*\ * | *\ *) |
4011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4012 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
4013 |
esac |
4014 |
|
4015 |
|
4016 |
|
4017 |
macro_version='2.4.6' |
4018 |
macro_revision='2.4.6' |
4019 |
|
4020 |
|
4021 |
|
4022 |
|
4023 |
|
4024 |
|
4025 |
|
4026 |
|
4027 |
|
4028 |
|
4029 |
|
4030 |
|
4031 |
|
4032 |
ltmain=$ac_aux_dir/ltmain.sh |
4033 |
|
4034 |
# Make sure we can run config.sub. |
4035 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4036 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
4037 |
|
4038 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4039 |
$as_echo_n "checking build system type... " >&6; } |
4040 |
if ${ac_cv_build+:} false; then : |
4041 |
$as_echo_n "(cached) " >&6 |
4042 |
else |
4043 |
ac_build_alias=$build_alias |
4044 |
test "x$ac_build_alias" = x && |
4045 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4046 |
test "x$ac_build_alias" = x && |
4047 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
4048 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4049 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
4050 |
|
4051 |
fi |
4052 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
4053 |
$as_echo "$ac_cv_build" >&6; } |
4054 |
case $ac_cv_build in |
4055 |
*-*-*) ;; |
4056 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
4057 |
esac |
4058 |
build=$ac_cv_build |
4059 |
ac_save_IFS=$IFS; IFS='-' |
4060 |
set x $ac_cv_build |
4061 |
shift |
4062 |
build_cpu=$1 |
4063 |
build_vendor=$2 |
4064 |
shift; shift |
4065 |
# Remember, the first character of IFS is used to create $*, |
4066 |
# except with old shells: |
4067 |
build_os=$* |
4068 |
IFS=$ac_save_IFS |
4069 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4070 |
|
4071 |
|
4072 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4073 |
$as_echo_n "checking host system type... " >&6; } |
4074 |
if ${ac_cv_host+:} false; then : |
4075 |
$as_echo_n "(cached) " >&6 |
4076 |
else |
4077 |
if test "x$host_alias" = x; then |
4078 |
ac_cv_host=$ac_cv_build |
4079 |
else |
4080 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4081 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
4082 |
fi |
4083 |
|
4084 |
fi |
4085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4086 |
$as_echo "$ac_cv_host" >&6; } |
4087 |
case $ac_cv_host in |
4088 |
*-*-*) ;; |
4089 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4090 |
esac |
4091 |
host=$ac_cv_host |
4092 |
ac_save_IFS=$IFS; IFS='-' |
4093 |
set x $ac_cv_host |
4094 |
shift |
4095 |
host_cpu=$1 |
4096 |
host_vendor=$2 |
4097 |
shift; shift |
4098 |
# Remember, the first character of IFS is used to create $*, |
4099 |
# except with old shells: |
4100 |
host_os=$* |
4101 |
IFS=$ac_save_IFS |
4102 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4103 |
|
4104 |
|
4105 |
# Backslashify metacharacters that are still active within |
4106 |
# double-quoted strings. |
4107 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
4108 |
|
4109 |
# Same as above, but do not quote variable references. |
4110 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
4111 |
|
4112 |
# Sed substitution to delay expansion of an escaped shell variable in a |
4113 |
# double_quote_subst'ed string. |
4114 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
4115 |
|
4116 |
# Sed substitution to delay expansion of an escaped single quote. |
4117 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
4118 |
|
4119 |
# Sed substitution to avoid accidental globbing in evaled expressions |
4120 |
no_glob_subst='s/\*/\\\*/g' |
4121 |
|
4122 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4123 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
4124 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
4125 |
|
4126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
4127 |
$as_echo_n "checking how to print strings... " >&6; } |
4128 |
# Test print first, because it will be a builtin if present. |
4129 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
4130 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4131 |
ECHO='print -r --' |
4132 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
4133 |
ECHO='printf %s\n' |
4134 |
else |
4135 |
# Use this function as a fallback that always works. |
4136 |
func_fallback_echo () |
4137 |
{ |
4138 |
eval 'cat <<_LTECHO_EOF |
4139 |
$1 |
4140 |
_LTECHO_EOF' |
4141 |
} |
4142 |
ECHO='func_fallback_echo' |
4143 |
fi |
4144 |
|
4145 |
# func_echo_all arg... |
4146 |
# Invoke $ECHO with all args, space-separated. |
4147 |
func_echo_all () |
4148 |
{ |
4149 |
$ECHO "" |
4150 |
} |
4151 |
|
4152 |
case $ECHO in |
4153 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4154 |
$as_echo "printf" >&6; } ;; |
4155 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
4156 |
$as_echo "print -r" >&6; } ;; |
4157 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
4158 |
$as_echo "cat" >&6; } ;; |
4159 |
esac |
4160 |
|
4161 |
|
4162 |
|
4163 |
|
4164 |
|
4165 |
|
4166 |
|
4167 |
|
4168 |
|
4169 |
|
4170 |
|
4171 |
|
4172 |
|
4173 |
|
4174 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4175 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4176 |
if ${ac_cv_path_SED+:} false; then : |
4177 |
$as_echo_n "(cached) " >&6 |
4178 |
else |
4179 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4180 |
for ac_i in 1 2 3 4 5 6 7; do |
4181 |
ac_script="$ac_script$as_nl$ac_script" |
4182 |
done |
4183 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
4184 |
{ ac_script=; unset ac_script;} |
4185 |
if test -z "$SED"; then |
4186 |
ac_path_SED_found=false |
4187 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4188 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4189 |
for as_dir in $PATH |
4190 |
do |
4191 |
IFS=$as_save_IFS |
4192 |
test -z "$as_dir" && as_dir=. |
4193 |
for ac_prog in sed gsed; do |
4194 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4195 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4196 |
as_fn_executable_p "$ac_path_SED" || continue |
4197 |
# Check for GNU ac_path_SED and select it if it is found. |
4198 |
# Check for GNU $ac_path_SED |
4199 |
case `"$ac_path_SED" --version 2>&1` in |
4200 |
*GNU*) |
4201 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
4202 |
*) |
4203 |
ac_count=0 |
4204 |
$as_echo_n 0123456789 >"conftest.in" |
4205 |
while : |
4206 |
do |
4207 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4208 |
mv "conftest.tmp" "conftest.in" |
4209 |
cp "conftest.in" "conftest.nl" |
4210 |
$as_echo '' >> "conftest.nl" |
4211 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4212 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4213 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4214 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
4215 |
# Best one so far, save it but keep looking for a better one |
4216 |
ac_cv_path_SED="$ac_path_SED" |
4217 |
ac_path_SED_max=$ac_count |
4218 |
fi |
4219 |
# 10*(2^10) chars as input seems more than enough |
4220 |
test $ac_count -gt 10 && break |
4221 |
done |
4222 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4223 |
esac |
4224 |
|
4225 |
$ac_path_SED_found && break 3 |
4226 |
done |
4227 |
done |
4228 |
done |
4229 |
IFS=$as_save_IFS |
4230 |
if test -z "$ac_cv_path_SED"; then |
4231 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
4232 |
fi |
4233 |
else |
4234 |
ac_cv_path_SED=$SED |
4235 |
fi |
4236 |
|
4237 |
fi |
4238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4239 |
$as_echo "$ac_cv_path_SED" >&6; } |
4240 |
SED="$ac_cv_path_SED" |
4241 |
rm -f conftest.sed |
4242 |
|
4243 |
test -z "$SED" && SED=sed |
4244 |
Xsed="$SED -e 1s/^X//" |
4245 |
|
4246 |
|
4247 |
|
4248 |
|
4249 |
|
4250 |
|
4251 |
|
4252 |
|
4253 |
|
4254 |
|
4255 |
|
4256 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4257 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4258 |
if ${ac_cv_path_GREP+:} false; then : |
4259 |
$as_echo_n "(cached) " >&6 |
4260 |
else |
4261 |
if test -z "$GREP"; then |
4262 |
ac_path_GREP_found=false |
4263 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4264 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4265 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4266 |
do |
4267 |
IFS=$as_save_IFS |
4268 |
test -z "$as_dir" && as_dir=. |
4269 |
for ac_prog in grep ggrep; do |
4270 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4271 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4272 |
as_fn_executable_p "$ac_path_GREP" || continue |
4273 |
# Check for GNU ac_path_GREP and select it if it is found. |
4274 |
# Check for GNU $ac_path_GREP |
4275 |
case `"$ac_path_GREP" --version 2>&1` in |
4276 |
*GNU*) |
4277 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4278 |
*) |
4279 |
ac_count=0 |
4280 |
$as_echo_n 0123456789 >"conftest.in" |
4281 |
while : |
4282 |
do |
4283 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4284 |
mv "conftest.tmp" "conftest.in" |
4285 |
cp "conftest.in" "conftest.nl" |
4286 |
$as_echo 'GREP' >> "conftest.nl" |
4287 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4288 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4289 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4290 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4291 |
# Best one so far, save it but keep looking for a better one |
4292 |
ac_cv_path_GREP="$ac_path_GREP" |
4293 |
ac_path_GREP_max=$ac_count |
4294 |
fi |
4295 |
# 10*(2^10) chars as input seems more than enough |
4296 |
test $ac_count -gt 10 && break |
4297 |
done |
4298 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4299 |
esac |
4300 |
|
4301 |
$ac_path_GREP_found && break 3 |
4302 |
done |
4303 |
done |
4304 |
done |
4305 |
IFS=$as_save_IFS |
4306 |
if test -z "$ac_cv_path_GREP"; then |
4307 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4308 |
fi |
4309 |
else |
4310 |
ac_cv_path_GREP=$GREP |
4311 |
fi |
4312 |
|
4313 |
fi |
4314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4315 |
$as_echo "$ac_cv_path_GREP" >&6; } |
4316 |
GREP="$ac_cv_path_GREP" |
4317 |
|
4318 |
|
4319 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4320 |
$as_echo_n "checking for egrep... " >&6; } |
4321 |
if ${ac_cv_path_EGREP+:} false; then : |
4322 |
$as_echo_n "(cached) " >&6 |
4323 |
else |
4324 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4325 |
then ac_cv_path_EGREP="$GREP -E" |
4326 |
else |
4327 |
if test -z "$EGREP"; then |
4328 |
ac_path_EGREP_found=false |
4329 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4330 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4331 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4332 |
do |
4333 |
IFS=$as_save_IFS |
4334 |
test -z "$as_dir" && as_dir=. |
4335 |
for ac_prog in egrep; do |
4336 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4337 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4338 |
as_fn_executable_p "$ac_path_EGREP" || continue |
4339 |
# Check for GNU ac_path_EGREP and select it if it is found. |
4340 |
# Check for GNU $ac_path_EGREP |
4341 |
case `"$ac_path_EGREP" --version 2>&1` in |
4342 |
*GNU*) |
4343 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4344 |
*) |
4345 |
ac_count=0 |
4346 |
$as_echo_n 0123456789 >"conftest.in" |
4347 |
while : |
4348 |
do |
4349 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4350 |
mv "conftest.tmp" "conftest.in" |
4351 |
cp "conftest.in" "conftest.nl" |
4352 |
$as_echo 'EGREP' >> "conftest.nl" |
4353 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4354 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4355 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4356 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4357 |
# Best one so far, save it but keep looking for a better one |
4358 |
ac_cv_path_EGREP="$ac_path_EGREP" |
4359 |
ac_path_EGREP_max=$ac_count |
4360 |
fi |
4361 |
# 10*(2^10) chars as input seems more than enough |
4362 |
test $ac_count -gt 10 && break |
4363 |
done |
4364 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4365 |
esac |
4366 |
|
4367 |
$ac_path_EGREP_found && break 3 |
4368 |
done |
4369 |
done |
4370 |
done |
4371 |
IFS=$as_save_IFS |
4372 |
if test -z "$ac_cv_path_EGREP"; then |
4373 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4374 |
fi |
4375 |
else |
4376 |
ac_cv_path_EGREP=$EGREP |
4377 |
fi |
4378 |
|
4379 |
fi |
4380 |
fi |
4381 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4382 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
4383 |
EGREP="$ac_cv_path_EGREP" |
4384 |
|
4385 |
|
4386 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4387 |
$as_echo_n "checking for fgrep... " >&6; } |
4388 |
if ${ac_cv_path_FGREP+:} false; then : |
4389 |
$as_echo_n "(cached) " >&6 |
4390 |
else |
4391 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4392 |
then ac_cv_path_FGREP="$GREP -F" |
4393 |
else |
4394 |
if test -z "$FGREP"; then |
4395 |
ac_path_FGREP_found=false |
4396 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4397 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4398 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4399 |
do |
4400 |
IFS=$as_save_IFS |
4401 |
test -z "$as_dir" && as_dir=. |
4402 |
for ac_prog in fgrep; do |
4403 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4404 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4405 |
as_fn_executable_p "$ac_path_FGREP" || continue |
4406 |
# Check for GNU ac_path_FGREP and select it if it is found. |
4407 |
# Check for GNU $ac_path_FGREP |
4408 |
case `"$ac_path_FGREP" --version 2>&1` in |
4409 |
*GNU*) |
4410 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
4411 |
*) |
4412 |
ac_count=0 |
4413 |
$as_echo_n 0123456789 >"conftest.in" |
4414 |
while : |
4415 |
do |
4416 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4417 |
mv "conftest.tmp" "conftest.in" |
4418 |
cp "conftest.in" "conftest.nl" |
4419 |
$as_echo 'FGREP' >> "conftest.nl" |
4420 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4421 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4422 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4423 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4424 |
# Best one so far, save it but keep looking for a better one |
4425 |
ac_cv_path_FGREP="$ac_path_FGREP" |
4426 |
ac_path_FGREP_max=$ac_count |
4427 |
fi |
4428 |
# 10*(2^10) chars as input seems more than enough |
4429 |
test $ac_count -gt 10 && break |
4430 |
done |
4431 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4432 |
esac |
4433 |
|
4434 |
$ac_path_FGREP_found && break 3 |
4435 |
done |
4436 |
done |
4437 |
done |
4438 |
IFS=$as_save_IFS |
4439 |
if test -z "$ac_cv_path_FGREP"; then |
4440 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4441 |
fi |
4442 |
else |
4443 |
ac_cv_path_FGREP=$FGREP |
4444 |
fi |
4445 |
|
4446 |
fi |
4447 |
fi |
4448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4449 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
4450 |
FGREP="$ac_cv_path_FGREP" |
4451 |
|
4452 |
|
4453 |
test -z "$GREP" && GREP=grep |
4454 |
|
4455 |
|
4456 |
|
4457 |
|
4458 |
|
4459 |
|
4460 |
|
4461 |
|
4462 |
|
4463 |
|
4464 |
|
4465 |
|
4466 |
|
4467 |
|
4468 |
|
4469 |
|
4470 |
|
4471 |
|
4472 |
|
4473 |
# Check whether --with-gnu-ld was given. |
4474 |
if test "${with_gnu_ld+set}" = set; then : |
4475 |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
4476 |
else |
4477 |
with_gnu_ld=no |
4478 |
fi |
4479 |
|
4480 |
ac_prog=ld |
4481 |
if test yes = "$GCC"; then |
4482 |
# Check if gcc -print-prog-name=ld gives a path. |
4483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4484 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
4485 |
case $host in |
4486 |
*-*-mingw*) |
4487 |
# gcc leaves a trailing carriage return, which upsets mingw |
4488 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4489 |
*) |
4490 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4491 |
esac |
4492 |
case $ac_prog in |
4493 |
# Accept absolute paths. |
4494 |
[\\/]* | ?:[\\/]*) |
4495 |
re_direlt='/[^/][^/]*/\.\./' |
4496 |
# Canonicalize the pathname of ld |
4497 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4498 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4499 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4500 |
done |
4501 |
test -z "$LD" && LD=$ac_prog |
4502 |
;; |
4503 |
"") |
4504 |
# If it fails, then pretend we aren't using GCC. |
4505 |
ac_prog=ld |
4506 |
;; |
4507 |
*) |
4508 |
# If it is relative, then search for the first ld in PATH. |
4509 |
with_gnu_ld=unknown |
4510 |
;; |
4511 |
esac |
4512 |
elif test yes = "$with_gnu_ld"; then |
4513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4514 |
$as_echo_n "checking for GNU ld... " >&6; } |
4515 |
else |
4516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4517 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
4518 |
fi |
4519 |
if ${lt_cv_path_LD+:} false; then : |
4520 |
$as_echo_n "(cached) " >&6 |
4521 |
else |
4522 |
if test -z "$LD"; then |
4523 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4524 |
for ac_dir in $PATH; do |
4525 |
IFS=$lt_save_ifs |
4526 |
test -z "$ac_dir" && ac_dir=. |
4527 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4528 |
lt_cv_path_LD=$ac_dir/$ac_prog |
4529 |
# Check to see if the program is GNU ld. I'd rather use --version, |
4530 |
# but apparently some variants of GNU ld only accept -v. |
4531 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4532 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4533 |
*GNU* | *'with BFD'*) |
4534 |
test no != "$with_gnu_ld" && break |
4535 |
;; |
4536 |
*) |
4537 |
test yes != "$with_gnu_ld" && break |
4538 |
;; |
4539 |
esac |
4540 |
fi |
4541 |
done |
4542 |
IFS=$lt_save_ifs |
4543 |
else |
4544 |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
4545 |
fi |
4546 |
fi |
4547 |
|
4548 |
LD=$lt_cv_path_LD |
4549 |
if test -n "$LD"; then |
4550 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4551 |
$as_echo "$LD" >&6; } |
4552 |
else |
4553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4554 |
$as_echo "no" >&6; } |
4555 |
fi |
4556 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4557 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4558 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4559 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
4560 |
$as_echo_n "(cached) " >&6 |
4561 |
else |
4562 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4563 |
case `$LD -v 2>&1 </dev/null` in |
4564 |
*GNU* | *'with BFD'*) |
4565 |
lt_cv_prog_gnu_ld=yes |
4566 |
;; |
4567 |
*) |
4568 |
lt_cv_prog_gnu_ld=no |
4569 |
;; |
4570 |
esac |
4571 |
fi |
4572 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4573 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
4574 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
4575 |
|
4576 |
|
4577 |
|
4578 |
|
4579 |
|
4580 |
|
4581 |
|
4582 |
|
4583 |
|
4584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4585 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
4586 |
if ${lt_cv_path_NM+:} false; then : |
4587 |
$as_echo_n "(cached) " >&6 |
4588 |
else |
4589 |
if test -n "$NM"; then |
4590 |
# Let the user override the test. |
4591 |
lt_cv_path_NM=$NM |
4592 |
else |
4593 |
lt_nm_to_check=${ac_tool_prefix}nm |
4594 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4595 |
lt_nm_to_check="$lt_nm_to_check nm" |
4596 |
fi |
4597 |
for lt_tmp_nm in $lt_nm_to_check; do |
4598 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4599 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4600 |
IFS=$lt_save_ifs |
4601 |
test -z "$ac_dir" && ac_dir=. |
4602 |
tmp_nm=$ac_dir/$lt_tmp_nm |
4603 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
4604 |
# Check to see if the nm accepts a BSD-compat flag. |
4605 |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
4606 |
# nm: unknown option "B" ignored |
4607 |
# Tru64's nm complains that /dev/null is an invalid object file |
4608 |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4609 |
case $build_os in |
4610 |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
4611 |
*) lt_bad_file=/dev/null ;; |
4612 |
esac |
4613 |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
4614 |
*$lt_bad_file* | *'Invalid file or object type'*) |
4615 |
lt_cv_path_NM="$tmp_nm -B" |
4616 |
break 2 |
4617 |
;; |
4618 |
*) |
4619 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4620 |
*/dev/null*) |
4621 |
lt_cv_path_NM="$tmp_nm -p" |
4622 |
break 2 |
4623 |
;; |
4624 |
*) |
4625 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4626 |
continue # so that we can try to find one that supports BSD flags |
4627 |
;; |
4628 |
esac |
4629 |
;; |
4630 |
esac |
4631 |
fi |
4632 |
done |
4633 |
IFS=$lt_save_ifs |
4634 |
done |
4635 |
: ${lt_cv_path_NM=no} |
4636 |
fi |
4637 |
fi |
4638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4639 |
$as_echo "$lt_cv_path_NM" >&6; } |
4640 |
if test no != "$lt_cv_path_NM"; then |
4641 |
NM=$lt_cv_path_NM |
4642 |
else |
4643 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
4644 |
if test -n "$DUMPBIN"; then : |
4645 |
# Let the user override the test. |
4646 |
else |
4647 |
if test -n "$ac_tool_prefix"; then |
4648 |
for ac_prog in dumpbin "link -dump" |
4649 |
do |
4650 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4651 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4652 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4653 |
$as_echo_n "checking for $ac_word... " >&6; } |
4654 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
4655 |
$as_echo_n "(cached) " >&6 |
4656 |
else |
4657 |
if test -n "$DUMPBIN"; then |
4658 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
4659 |
else |
4660 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4661 |
for as_dir in $PATH |
4662 |
do |
4663 |
IFS=$as_save_IFS |
4664 |
test -z "$as_dir" && as_dir=. |
4665 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4666 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4667 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
4668 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4669 |
break 2 |
4670 |
fi |
4671 |
done |
4672 |
done |
4673 |
IFS=$as_save_IFS |
4674 |
|
4675 |
fi |
4676 |
fi |
4677 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
4678 |
if test -n "$DUMPBIN"; then |
4679 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
4680 |
$as_echo "$DUMPBIN" >&6; } |
4681 |
else |
4682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4683 |
$as_echo "no" >&6; } |
4684 |
fi |
4685 |
|
4686 |
|
4687 |
test -n "$DUMPBIN" && break |
4688 |
done |
4689 |
fi |
4690 |
if test -z "$DUMPBIN"; then |
4691 |
ac_ct_DUMPBIN=$DUMPBIN |
4692 |
for ac_prog in dumpbin "link -dump" |
4693 |
do |
4694 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4695 |
set dummy $ac_prog; ac_word=$2 |
4696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4697 |
$as_echo_n "checking for $ac_word... " >&6; } |
4698 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
4699 |
$as_echo_n "(cached) " >&6 |
4700 |
else |
4701 |
if test -n "$ac_ct_DUMPBIN"; then |
4702 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
4703 |
else |
4704 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4705 |
for as_dir in $PATH |
4706 |
do |
4707 |
IFS=$as_save_IFS |
4708 |
test -z "$as_dir" && as_dir=. |
4709 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4710 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4711 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
4712 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4713 |
break 2 |
4714 |
fi |
4715 |
done |
4716 |
done |
4717 |
IFS=$as_save_IFS |
4718 |
|
4719 |
fi |
4720 |
fi |
4721 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4722 |
if test -n "$ac_ct_DUMPBIN"; then |
4723 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
4724 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
4725 |
else |
4726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4727 |
$as_echo "no" >&6; } |
4728 |
fi |
4729 |
|
4730 |
|
4731 |
test -n "$ac_ct_DUMPBIN" && break |
4732 |
done |
4733 |
|
4734 |
if test "x$ac_ct_DUMPBIN" = x; then |
4735 |
DUMPBIN=":" |
4736 |
else |
4737 |
case $cross_compiling:$ac_tool_warned in |
4738 |
yes:) |
4739 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4740 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4741 |
ac_tool_warned=yes ;; |
4742 |
esac |
4743 |
DUMPBIN=$ac_ct_DUMPBIN |
4744 |
fi |
4745 |
fi |
4746 |
|
4747 |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
4748 |
*COFF*) |
4749 |
DUMPBIN="$DUMPBIN -symbols -headers" |
4750 |
;; |
4751 |
*) |
4752 |
DUMPBIN=: |
4753 |
;; |
4754 |
esac |
4755 |
fi |
4756 |
|
4757 |
if test : != "$DUMPBIN"; then |
4758 |
NM=$DUMPBIN |
4759 |
fi |
4760 |
fi |
4761 |
test -z "$NM" && NM=nm |
4762 |
|
4763 |
|
4764 |
|
4765 |
|
4766 |
|
4767 |
|
4768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
4769 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
4770 |
if ${lt_cv_nm_interface+:} false; then : |
4771 |
$as_echo_n "(cached) " >&6 |
4772 |
else |
4773 |
lt_cv_nm_interface="BSD nm" |
4774 |
echo "int some_variable = 0;" > conftest.$ac_ext |
4775 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
4776 |
(eval "$ac_compile" 2>conftest.err) |
4777 |
cat conftest.err >&5 |
4778 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
4779 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4780 |
cat conftest.err >&5 |
4781 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
4782 |
cat conftest.out >&5 |
4783 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4784 |
lt_cv_nm_interface="MS dumpbin" |
4785 |
fi |
4786 |
rm -f conftest* |
4787 |
fi |
4788 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4789 |
$as_echo "$lt_cv_nm_interface" >&6; } |
4790 |
|
4791 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4792 |
$as_echo_n "checking whether ln -s works... " >&6; } |
4793 |
LN_S=$as_ln_s |
4794 |
if test "$LN_S" = "ln -s"; then |
4795 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4796 |
$as_echo "yes" >&6; } |
4797 |
else |
4798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4799 |
$as_echo "no, using $LN_S" >&6; } |
4800 |
fi |
4801 |
|
4802 |
# find the maximum length of command line arguments |
4803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
4804 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
4805 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
4806 |
$as_echo_n "(cached) " >&6 |
4807 |
else |
4808 |
i=0 |
4809 |
teststring=ABCD |
4810 |
|
4811 |
case $build_os in |
4812 |
msdosdjgpp*) |
4813 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
4814 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
4815 |
# during glob expansion). Even if it were fixed, the result of this |
4816 |
# check would be larger than it should be. |
4817 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
4818 |
;; |
4819 |
|
4820 |
gnu*) |
4821 |
# Under GNU Hurd, this test is not required because there is |
4822 |
# no limit to the length of command line arguments. |
4823 |
# Libtool will interpret -1 as no limit whatsoever |
4824 |
lt_cv_sys_max_cmd_len=-1; |
4825 |
;; |
4826 |
|
4827 |
cygwin* | mingw* | cegcc*) |
4828 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
4829 |
# about 5 minutes as the teststring grows exponentially. |
4830 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
4831 |
# you end up with a "frozen" computer, even though with patience |
4832 |
# the test eventually succeeds (with a max line length of 256k). |
4833 |
# Instead, let's just punt: use the minimum linelength reported by |
4834 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
4835 |
lt_cv_sys_max_cmd_len=8192; |
4836 |
;; |
4837 |
|
4838 |
mint*) |
4839 |
# On MiNT this can take a long time and run out of memory. |
4840 |
lt_cv_sys_max_cmd_len=8192; |
4841 |
;; |
4842 |
|
4843 |
amigaos*) |
4844 |
# On AmigaOS with pdksh, this test takes hours, literally. |
4845 |
# So we just punt and use a minimum line length of 8192. |
4846 |
lt_cv_sys_max_cmd_len=8192; |
4847 |
;; |
4848 |
|
4849 |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
4850 |
# This has been around since 386BSD, at least. Likely further. |
4851 |
if test -x /sbin/sysctl; then |
4852 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
4853 |
elif test -x /usr/sbin/sysctl; then |
4854 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
4855 |
else |
4856 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
4857 |
fi |
4858 |
# And add a safety zone |
4859 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4860 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
4861 |
;; |
4862 |
|
4863 |
interix*) |
4864 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
4865 |
lt_cv_sys_max_cmd_len=196608 |
4866 |
;; |
4867 |
|
4868 |
os2*) |
4869 |
# The test takes a long time on OS/2. |
4870 |
lt_cv_sys_max_cmd_len=8192 |
4871 |
;; |
4872 |
|
4873 |
osf*) |
4874 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
4875 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
4876 |
# nice to cause kernel panics so lets avoid the loop below. |
4877 |
# First set a reasonable default. |
4878 |
lt_cv_sys_max_cmd_len=16384 |
4879 |
# |
4880 |
if test -x /sbin/sysconfig; then |
4881 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
4882 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
4883 |
esac |
4884 |
fi |
4885 |
;; |
4886 |
sco3.2v5*) |
4887 |
lt_cv_sys_max_cmd_len=102400 |
4888 |
;; |
4889 |
sysv5* | sco5v6* | sysv4.2uw2*) |
4890 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
4891 |
if test -n "$kargmax"; then |
4892 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
4893 |
else |
4894 |
lt_cv_sys_max_cmd_len=32768 |
4895 |
fi |
4896 |
;; |
4897 |
*) |
4898 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
4899 |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
4900 |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
4901 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4902 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
4903 |
else |
4904 |
# Make teststring a little bigger before we do anything with it. |
4905 |
# a 1K string should be a reasonable start. |
4906 |
for i in 1 2 3 4 5 6 7 8; do |
4907 |
teststring=$teststring$teststring |
4908 |
done |
4909 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
4910 |
# If test is not a shell built-in, we'll probably end up computing a |
4911 |
# maximum length that is only half of the actual maximum length, but |
4912 |
# we can't tell. |
4913 |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
4914 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
4915 |
test 17 != "$i" # 1/2 MB should be enough |
4916 |
do |
4917 |
i=`expr $i + 1` |
4918 |
teststring=$teststring$teststring |
4919 |
done |
4920 |
# Only check the string length outside the loop. |
4921 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
4922 |
teststring= |
4923 |
# Add a significant safety factor because C++ compilers can tack on |
4924 |
# massive amounts of additional arguments before passing them to the |
4925 |
# linker. It appears as though 1/2 is a usable value. |
4926 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
4927 |
fi |
4928 |
;; |
4929 |
esac |
4930 |
|
4931 |
fi |
4932 |
|
4933 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
4934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
4935 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4936 |
else |
4937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4938 |
$as_echo "none" >&6; } |
4939 |
fi |
4940 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
4941 |
|
4942 |
|
4943 |
|
4944 |
|
4945 |
|
4946 |
|
4947 |
: ${CP="cp -f"} |
4948 |
: ${MV="mv -f"} |
4949 |
: ${RM="rm -f"} |
4950 |
|
4951 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4952 |
lt_unset=unset |
4953 |
else |
4954 |
lt_unset=false |
4955 |
fi |
4956 |
|
4957 |
|
4958 |
|
4959 |
|
4960 |
|
4961 |
# test EBCDIC or ASCII |
4962 |
case `echo X|tr X '\101'` in |
4963 |
A) # ASCII based system |
4964 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
4965 |
lt_SP2NL='tr \040 \012' |
4966 |
lt_NL2SP='tr \015\012 \040\040' |
4967 |
;; |
4968 |
*) # EBCDIC based system |
4969 |
lt_SP2NL='tr \100 \n' |
4970 |
lt_NL2SP='tr \r\n \100\100' |
4971 |
;; |
4972 |
esac |
4973 |
|
4974 |
|
4975 |
|
4976 |
|
4977 |
|
4978 |
|
4979 |
|
4980 |
|
4981 |
|
4982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4983 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
4984 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
4985 |
$as_echo_n "(cached) " >&6 |
4986 |
else |
4987 |
case $host in |
4988 |
*-*-mingw* ) |
4989 |
case $build in |
4990 |
*-*-mingw* ) # actually msys |
4991 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
4992 |
;; |
4993 |
*-*-cygwin* ) |
4994 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
4995 |
;; |
4996 |
* ) # otherwise, assume *nix |
4997 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
4998 |
;; |
4999 |
esac |
5000 |
;; |
5001 |
*-*-cygwin* ) |
5002 |
case $build in |
5003 |
*-*-mingw* ) # actually msys |
5004 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
5005 |
;; |
5006 |
*-*-cygwin* ) |
5007 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5008 |
;; |
5009 |
* ) # otherwise, assume *nix |
5010 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
5011 |
;; |
5012 |
esac |
5013 |
;; |
5014 |
* ) # unhandled hosts (and "normal" native builds) |
5015 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5016 |
;; |
5017 |
esac |
5018 |
|
5019 |
fi |
5020 |
|
5021 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
5022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
5023 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
5024 |
|
5025 |
|
5026 |
|
5027 |
|
5028 |
|
5029 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
5030 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
5031 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
5032 |
$as_echo_n "(cached) " >&6 |
5033 |
else |
5034 |
#assume ordinary cross tools, or native build. |
5035 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
5036 |
case $host in |
5037 |
*-*-mingw* ) |
5038 |
case $build in |
5039 |
*-*-mingw* ) # actually msys |
5040 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
5041 |
;; |
5042 |
esac |
5043 |
;; |
5044 |
esac |
5045 |
|
5046 |
fi |
5047 |
|
5048 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
5049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
5050 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
5051 |
|
5052 |
|
5053 |
|
5054 |
|
5055 |
|
5056 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5057 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
5058 |
if ${lt_cv_ld_reload_flag+:} false; then : |
5059 |
$as_echo_n "(cached) " >&6 |
5060 |
else |
5061 |
lt_cv_ld_reload_flag='-r' |
5062 |
fi |
5063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5064 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
5065 |
reload_flag=$lt_cv_ld_reload_flag |
5066 |
case $reload_flag in |
5067 |
"" | " "*) ;; |
5068 |
*) reload_flag=" $reload_flag" ;; |
5069 |
esac |
5070 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5071 |
case $host_os in |
5072 |
cygwin* | mingw* | pw32* | cegcc*) |
5073 |
if test yes != "$GCC"; then |
5074 |
reload_cmds=false |
5075 |
fi |
5076 |
;; |
5077 |
darwin*) |
5078 |
if test yes = "$GCC"; then |
5079 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
5080 |
else |
5081 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5082 |
fi |
5083 |
;; |
5084 |
esac |
5085 |
|
5086 |
|
5087 |
|
5088 |
|
5089 |
|
5090 |
|
5091 |
|
5092 |
|
5093 |
|
5094 |
if test -n "$ac_tool_prefix"; then |
5095 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
5096 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
5097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5098 |
$as_echo_n "checking for $ac_word... " >&6; } |
5099 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
5100 |
$as_echo_n "(cached) " >&6 |
5101 |
else |
5102 |
if test -n "$OBJDUMP"; then |
5103 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
5104 |
else |
5105 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5106 |
for as_dir in $PATH |
5107 |
do |
5108 |
IFS=$as_save_IFS |
5109 |
test -z "$as_dir" && as_dir=. |
5110 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5111 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5112 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5113 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5114 |
break 2 |
5115 |
fi |
5116 |
done |
5117 |
done |
5118 |
IFS=$as_save_IFS |
5119 |
|
5120 |
fi |
5121 |
fi |
5122 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
5123 |
if test -n "$OBJDUMP"; then |
5124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5125 |
$as_echo "$OBJDUMP" >&6; } |
5126 |
else |
5127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5128 |
$as_echo "no" >&6; } |
5129 |
fi |
5130 |
|
5131 |
|
5132 |
fi |
5133 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
5134 |
ac_ct_OBJDUMP=$OBJDUMP |
5135 |
# Extract the first word of "objdump", so it can be a program name with args. |
5136 |
set dummy objdump; ac_word=$2 |
5137 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5138 |
$as_echo_n "checking for $ac_word... " >&6; } |
5139 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5140 |
$as_echo_n "(cached) " >&6 |
5141 |
else |
5142 |
if test -n "$ac_ct_OBJDUMP"; then |
5143 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
5144 |
else |
5145 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5146 |
for as_dir in $PATH |
5147 |
do |
5148 |
IFS=$as_save_IFS |
5149 |
test -z "$as_dir" && as_dir=. |
5150 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5151 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5152 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5153 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5154 |
break 2 |
5155 |
fi |
5156 |
done |
5157 |
done |
5158 |
IFS=$as_save_IFS |
5159 |
|
5160 |
fi |
5161 |
fi |
5162 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5163 |
if test -n "$ac_ct_OBJDUMP"; then |
5164 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5165 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
5166 |
else |
5167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5168 |
$as_echo "no" >&6; } |
5169 |
fi |
5170 |
|
5171 |
if test "x$ac_ct_OBJDUMP" = x; then |
5172 |
OBJDUMP="false" |
5173 |
else |
5174 |
case $cross_compiling:$ac_tool_warned in |
5175 |
yes:) |
5176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5177 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5178 |
ac_tool_warned=yes ;; |
5179 |
esac |
5180 |
OBJDUMP=$ac_ct_OBJDUMP |
5181 |
fi |
5182 |
else |
5183 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
5184 |
fi |
5185 |
|
5186 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
5187 |
|
5188 |
|
5189 |
|
5190 |
|
5191 |
|
5192 |
|
5193 |
|
5194 |
|
5195 |
|
5196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5197 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
5198 |
if ${lt_cv_deplibs_check_method+:} false; then : |
5199 |
$as_echo_n "(cached) " >&6 |
5200 |
else |
5201 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
5202 |
lt_cv_file_magic_test_file= |
5203 |
lt_cv_deplibs_check_method='unknown' |
5204 |
# Need to set the preceding variable on all platforms that support |
5205 |
# interlibrary dependencies. |
5206 |
# 'none' -- dependencies not supported. |
5207 |
# 'unknown' -- same as none, but documents that we really don't know. |
5208 |
# 'pass_all' -- all dependencies passed with no checks. |
5209 |
# 'test_compile' -- check by making test program. |
5210 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
5211 |
# that responds to the $file_magic_cmd with a given extended regex. |
5212 |
# If you have 'file' or equivalent on your system and you're not sure |
5213 |
# whether 'pass_all' will *always* work, you probably want this one. |
5214 |
|
5215 |
case $host_os in |
5216 |
aix[4-9]*) |
5217 |
lt_cv_deplibs_check_method=pass_all |
5218 |
;; |
5219 |
|
5220 |
beos*) |
5221 |
lt_cv_deplibs_check_method=pass_all |
5222 |
;; |
5223 |
|
5224 |
bsdi[45]*) |
5225 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5226 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
5227 |
lt_cv_file_magic_test_file=/shlib/libc.so |
5228 |
;; |
5229 |
|
5230 |
cygwin*) |
5231 |
# func_win32_libid is a shell function defined in ltmain.sh |
5232 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5233 |
lt_cv_file_magic_cmd='func_win32_libid' |
5234 |
;; |
5235 |
|
5236 |
mingw* | pw32*) |
5237 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
5238 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
5239 |
# unless we find 'file', for example because we are cross-compiling. |
5240 |
if ( file / ) >/dev/null 2>&1; then |
5241 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5242 |
lt_cv_file_magic_cmd='func_win32_libid' |
5243 |
else |
5244 |
# Keep this pattern in sync with the one in func_win32_libid. |
5245 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
5246 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5247 |
fi |
5248 |
;; |
5249 |
|
5250 |
cegcc*) |
5251 |
# use the weaker test based on 'objdump'. See mingw*. |
5252 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
5253 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5254 |
;; |
5255 |
|
5256 |
darwin* | rhapsody*) |
5257 |
lt_cv_deplibs_check_method=pass_all |
5258 |
;; |
5259 |
|
5260 |
freebsd* | dragonfly*) |
5261 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5262 |
case $host_cpu in |
5263 |
i*86 ) |
5264 |
# Not sure whether the presence of OpenBSD here was a mistake. |
5265 |
# Let's accept both of them until this is cleared up. |
5266 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5267 |
lt_cv_file_magic_cmd=/usr/bin/file |
5268 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5269 |
;; |
5270 |
esac |
5271 |
else |
5272 |
lt_cv_deplibs_check_method=pass_all |
5273 |
fi |
5274 |
;; |
5275 |
|
5276 |
haiku*) |
5277 |
lt_cv_deplibs_check_method=pass_all |
5278 |
;; |
5279 |
|
5280 |
hpux10.20* | hpux11*) |
5281 |
lt_cv_file_magic_cmd=/usr/bin/file |
5282 |
case $host_cpu in |
5283 |
ia64*) |
5284 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5285 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5286 |
;; |
5287 |
hppa*64*) |
5288 |
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]' |
5289 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5290 |
;; |
5291 |
*) |
5292 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
5293 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5294 |
;; |
5295 |
esac |
5296 |
;; |
5297 |
|
5298 |
interix[3-9]*) |
5299 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
5300 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
5301 |
;; |
5302 |
|
5303 |
irix5* | irix6* | nonstopux*) |
5304 |
case $LD in |
5305 |
*-32|*"-32 ") libmagic=32-bit;; |
5306 |
*-n32|*"-n32 ") libmagic=N32;; |
5307 |
*-64|*"-64 ") libmagic=64-bit;; |
5308 |
*) libmagic=never-match;; |
5309 |
esac |
5310 |
lt_cv_deplibs_check_method=pass_all |
5311 |
;; |
5312 |
|
5313 |
# This must be glibc/ELF. |
5314 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5315 |
lt_cv_deplibs_check_method=pass_all |
5316 |
;; |
5317 |
|
5318 |
netbsd*) |
5319 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5320 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5321 |
else |
5322 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5323 |
fi |
5324 |
;; |
5325 |
|
5326 |
newos6*) |
5327 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5328 |
lt_cv_file_magic_cmd=/usr/bin/file |
5329 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5330 |
;; |
5331 |
|
5332 |
*nto* | *qnx*) |
5333 |
lt_cv_deplibs_check_method=pass_all |
5334 |
;; |
5335 |
|
5336 |
openbsd* | bitrig*) |
5337 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
5338 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5339 |
else |
5340 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5341 |
fi |
5342 |
;; |
5343 |
|
5344 |
osf3* | osf4* | osf5*) |
5345 |
lt_cv_deplibs_check_method=pass_all |
5346 |
;; |
5347 |
|
5348 |
rdos*) |
5349 |
lt_cv_deplibs_check_method=pass_all |
5350 |
;; |
5351 |
|
5352 |
solaris*) |
5353 |
lt_cv_deplibs_check_method=pass_all |
5354 |
;; |
5355 |
|
5356 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5357 |
lt_cv_deplibs_check_method=pass_all |
5358 |
;; |
5359 |
|
5360 |
sysv4 | sysv4.3*) |
5361 |
case $host_vendor in |
5362 |
motorola) |
5363 |
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]' |
5364 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5365 |
;; |
5366 |
ncr) |
5367 |
lt_cv_deplibs_check_method=pass_all |
5368 |
;; |
5369 |
sequent) |
5370 |
lt_cv_file_magic_cmd='/bin/file' |
5371 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5372 |
;; |
5373 |
sni) |
5374 |
lt_cv_file_magic_cmd='/bin/file' |
5375 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5376 |
lt_cv_file_magic_test_file=/lib/libc.so |
5377 |
;; |
5378 |
siemens) |
5379 |
lt_cv_deplibs_check_method=pass_all |
5380 |
;; |
5381 |
pc) |
5382 |
lt_cv_deplibs_check_method=pass_all |
5383 |
;; |
5384 |
esac |
5385 |
;; |
5386 |
|
5387 |
tpf*) |
5388 |
lt_cv_deplibs_check_method=pass_all |
5389 |
;; |
5390 |
os2*) |
5391 |
lt_cv_deplibs_check_method=pass_all |
5392 |
;; |
5393 |
esac |
5394 |
|
5395 |
fi |
5396 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5397 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
5398 |
|
5399 |
file_magic_glob= |
5400 |
want_nocaseglob=no |
5401 |
if test "$build" = "$host"; then |
5402 |
case $host_os in |
5403 |
mingw* | pw32*) |
5404 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
5405 |
want_nocaseglob=yes |
5406 |
else |
5407 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
5408 |
fi |
5409 |
;; |
5410 |
esac |
5411 |
fi |
5412 |
|
5413 |
file_magic_cmd=$lt_cv_file_magic_cmd |
5414 |
deplibs_check_method=$lt_cv_deplibs_check_method |
5415 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5416 |
|
5417 |
|
5418 |
|
5419 |
|
5420 |
|
5421 |
|
5422 |
|
5423 |
|
5424 |
|
5425 |
|
5426 |
|
5427 |
|
5428 |
|
5429 |
|
5430 |
|
5431 |
|
5432 |
|
5433 |
|
5434 |
|
5435 |
|
5436 |
|
5437 |
|
5438 |
if test -n "$ac_tool_prefix"; then |
5439 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5440 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
5441 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5442 |
$as_echo_n "checking for $ac_word... " >&6; } |
5443 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
5444 |
$as_echo_n "(cached) " >&6 |
5445 |
else |
5446 |
if test -n "$DLLTOOL"; then |
5447 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
5448 |
else |
5449 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5450 |
for as_dir in $PATH |
5451 |
do |
5452 |
IFS=$as_save_IFS |
5453 |
test -z "$as_dir" && as_dir=. |
5454 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5455 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5456 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
5457 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5458 |
break 2 |
5459 |
fi |
5460 |
done |
5461 |
done |
5462 |
IFS=$as_save_IFS |
5463 |
|
5464 |
fi |
5465 |
fi |
5466 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
5467 |
if test -n "$DLLTOOL"; then |
5468 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
5469 |
$as_echo "$DLLTOOL" >&6; } |
5470 |
else |
5471 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5472 |
$as_echo "no" >&6; } |
5473 |
fi |
5474 |
|
5475 |
|
5476 |
fi |
5477 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
5478 |
ac_ct_DLLTOOL=$DLLTOOL |
5479 |
# Extract the first word of "dlltool", so it can be a program name with args. |
5480 |
set dummy dlltool; ac_word=$2 |
5481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5482 |
$as_echo_n "checking for $ac_word... " >&6; } |
5483 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
5484 |
$as_echo_n "(cached) " >&6 |
5485 |
else |
5486 |
if test -n "$ac_ct_DLLTOOL"; then |
5487 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
5488 |
else |
5489 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5490 |
for as_dir in $PATH |
5491 |
do |
5492 |
IFS=$as_save_IFS |
5493 |
test -z "$as_dir" && as_dir=. |
5494 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5495 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5496 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
5497 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5498 |
break 2 |
5499 |
fi |
5500 |
done |
5501 |
done |
5502 |
IFS=$as_save_IFS |
5503 |
|
5504 |
fi |
5505 |
fi |
5506 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5507 |
if test -n "$ac_ct_DLLTOOL"; then |
5508 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
5509 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
5510 |
else |
5511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5512 |
$as_echo "no" >&6; } |
5513 |
fi |
5514 |
|
5515 |
if test "x$ac_ct_DLLTOOL" = x; then |
5516 |
DLLTOOL="false" |
5517 |
else |
5518 |
case $cross_compiling:$ac_tool_warned in |
5519 |
yes:) |
5520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5521 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5522 |
ac_tool_warned=yes ;; |
5523 |
esac |
5524 |
DLLTOOL=$ac_ct_DLLTOOL |
5525 |
fi |
5526 |
else |
5527 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
5528 |
fi |
5529 |
|
5530 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
5531 |
|
5532 |
|
5533 |
|
5534 |
|
5535 |
|
5536 |
|
5537 |
|
5538 |
|
5539 |
|
5540 |
|
5541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5542 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
5543 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
5544 |
$as_echo_n "(cached) " >&6 |
5545 |
else |
5546 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
5547 |
|
5548 |
case $host_os in |
5549 |
cygwin* | mingw* | pw32* | cegcc*) |
5550 |
# two different shell functions defined in ltmain.sh; |
5551 |
# decide which one to use based on capabilities of $DLLTOOL |
5552 |
case `$DLLTOOL --help 2>&1` in |
5553 |
*--identify-strict*) |
5554 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
5555 |
;; |
5556 |
*) |
5557 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
5558 |
;; |
5559 |
esac |
5560 |
;; |
5561 |
*) |
5562 |
# fallback: assume linklib IS sharedlib |
5563 |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
5564 |
;; |
5565 |
esac |
5566 |
|
5567 |
fi |
5568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5569 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
5570 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
5571 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
5572 |
|
5573 |
|
5574 |
|
5575 |
|
5576 |
|
5577 |
|
5578 |
|
5579 |
|
5580 |
if test -n "$ac_tool_prefix"; then |
5581 |
for ac_prog in ar |
5582 |
do |
5583 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5584 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5585 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5586 |
$as_echo_n "checking for $ac_word... " >&6; } |
5587 |
if ${ac_cv_prog_AR+:} false; then : |
5588 |
$as_echo_n "(cached) " >&6 |
5589 |
else |
5590 |
if test -n "$AR"; then |
5591 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
5592 |
else |
5593 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5594 |
for as_dir in $PATH |
5595 |
do |
5596 |
IFS=$as_save_IFS |
5597 |
test -z "$as_dir" && as_dir=. |
5598 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5599 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5600 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
5601 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5602 |
break 2 |
5603 |
fi |
5604 |
done |
5605 |
done |
5606 |
IFS=$as_save_IFS |
5607 |
|
5608 |
fi |
5609 |
fi |
5610 |
AR=$ac_cv_prog_AR |
5611 |
if test -n "$AR"; then |
5612 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5613 |
$as_echo "$AR" >&6; } |
5614 |
else |
5615 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5616 |
$as_echo "no" >&6; } |
5617 |
fi |
5618 |
|
5619 |
|
5620 |
test -n "$AR" && break |
5621 |
done |
5622 |
fi |
5623 |
if test -z "$AR"; then |
5624 |
ac_ct_AR=$AR |
5625 |
for ac_prog in ar |
5626 |
do |
5627 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5628 |
set dummy $ac_prog; ac_word=$2 |
5629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5630 |
$as_echo_n "checking for $ac_word... " >&6; } |
5631 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5632 |
$as_echo_n "(cached) " >&6 |
5633 |
else |
5634 |
if test -n "$ac_ct_AR"; then |
5635 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5636 |
else |
5637 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5638 |
for as_dir in $PATH |
5639 |
do |
5640 |
IFS=$as_save_IFS |
5641 |
test -z "$as_dir" && as_dir=. |
5642 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5643 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5644 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
5645 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5646 |
break 2 |
5647 |
fi |
5648 |
done |
5649 |
done |
5650 |
IFS=$as_save_IFS |
5651 |
|
5652 |
fi |
5653 |
fi |
5654 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5655 |
if test -n "$ac_ct_AR"; then |
5656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5657 |
$as_echo "$ac_ct_AR" >&6; } |
5658 |
else |
5659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5660 |
$as_echo "no" >&6; } |
5661 |
fi |
5662 |
|
5663 |
|
5664 |
test -n "$ac_ct_AR" && break |
5665 |
done |
5666 |
|
5667 |
if test "x$ac_ct_AR" = x; then |
5668 |
AR="false" |
5669 |
else |
5670 |
case $cross_compiling:$ac_tool_warned in |
5671 |
yes:) |
5672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5673 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5674 |
ac_tool_warned=yes ;; |
5675 |
esac |
5676 |
AR=$ac_ct_AR |
5677 |
fi |
5678 |
fi |
5679 |
|
5680 |
: ${AR=ar} |
5681 |
: ${AR_FLAGS=cru} |
5682 |
|
5683 |
|
5684 |
|
5685 |
|
5686 |
|
5687 |
|
5688 |
|
5689 |
|
5690 |
|
5691 |
|
5692 |
|
5693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5694 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
5695 |
if ${lt_cv_ar_at_file+:} false; then : |
5696 |
$as_echo_n "(cached) " >&6 |
5697 |
else |
5698 |
lt_cv_ar_at_file=no |
5699 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5700 |
/* end confdefs.h. */ |
5701 |
|
5702 |
int |
5703 |
main () |
5704 |
{ |
5705 |
|
5706 |
; |
5707 |
return 0; |
5708 |
} |
5709 |
_ACEOF |
5710 |
if ac_fn_c_try_compile "$LINENO"; then : |
5711 |
echo conftest.$ac_objext > conftest.lst |
5712 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
5713 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
5714 |
(eval $lt_ar_try) 2>&5 |
5715 |
ac_status=$? |
5716 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5717 |
test $ac_status = 0; } |
5718 |
if test 0 -eq "$ac_status"; then |
5719 |
# Ensure the archiver fails upon bogus file names. |
5720 |
rm -f conftest.$ac_objext libconftest.a |
5721 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
5722 |
(eval $lt_ar_try) 2>&5 |
5723 |
ac_status=$? |
5724 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5725 |
test $ac_status = 0; } |
5726 |
if test 0 -ne "$ac_status"; then |
5727 |
lt_cv_ar_at_file=@ |
5728 |
fi |
5729 |
fi |
5730 |
rm -f conftest.* libconftest.a |
5731 |
|
5732 |
fi |
5733 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5734 |
|
5735 |
fi |
5736 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
5737 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
5738 |
|
5739 |
if test no = "$lt_cv_ar_at_file"; then |
5740 |
archiver_list_spec= |
5741 |
else |
5742 |
archiver_list_spec=$lt_cv_ar_at_file |
5743 |
fi |
5744 |
|
5745 |
|
5746 |
|
5747 |
|
5748 |
|
5749 |
|
5750 |
|
5751 |
if test -n "$ac_tool_prefix"; then |
5752 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
5753 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5755 |
$as_echo_n "checking for $ac_word... " >&6; } |
5756 |
if ${ac_cv_prog_STRIP+:} false; then : |
5757 |
$as_echo_n "(cached) " >&6 |
5758 |
else |
5759 |
if test -n "$STRIP"; then |
5760 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
5761 |
else |
5762 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5763 |
for as_dir in $PATH |
5764 |
do |
5765 |
IFS=$as_save_IFS |
5766 |
test -z "$as_dir" && as_dir=. |
5767 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5768 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5769 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5770 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5771 |
break 2 |
5772 |
fi |
5773 |
done |
5774 |
done |
5775 |
IFS=$as_save_IFS |
5776 |
|
5777 |
fi |
5778 |
fi |
5779 |
STRIP=$ac_cv_prog_STRIP |
5780 |
if test -n "$STRIP"; then |
5781 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
5782 |
$as_echo "$STRIP" >&6; } |
5783 |
else |
5784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5785 |
$as_echo "no" >&6; } |
5786 |
fi |
5787 |
|
5788 |
|
5789 |
fi |
5790 |
if test -z "$ac_cv_prog_STRIP"; then |
5791 |
ac_ct_STRIP=$STRIP |
5792 |
# Extract the first word of "strip", so it can be a program name with args. |
5793 |
set dummy strip; ac_word=$2 |
5794 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5795 |
$as_echo_n "checking for $ac_word... " >&6; } |
5796 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5797 |
$as_echo_n "(cached) " >&6 |
5798 |
else |
5799 |
if test -n "$ac_ct_STRIP"; then |
5800 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
5801 |
else |
5802 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5803 |
for as_dir in $PATH |
5804 |
do |
5805 |
IFS=$as_save_IFS |
5806 |
test -z "$as_dir" && as_dir=. |
5807 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5808 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5809 |
ac_cv_prog_ac_ct_STRIP="strip" |
5810 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5811 |
break 2 |
5812 |
fi |
5813 |
done |
5814 |
done |
5815 |
IFS=$as_save_IFS |
5816 |
|
5817 |
fi |
5818 |
fi |
5819 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5820 |
if test -n "$ac_ct_STRIP"; then |
5821 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5822 |
$as_echo "$ac_ct_STRIP" >&6; } |
5823 |
else |
5824 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5825 |
$as_echo "no" >&6; } |
5826 |
fi |
5827 |
|
5828 |
if test "x$ac_ct_STRIP" = x; then |
5829 |
STRIP=":" |
5830 |
else |
5831 |
case $cross_compiling:$ac_tool_warned in |
5832 |
yes:) |
5833 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5834 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5835 |
ac_tool_warned=yes ;; |
5836 |
esac |
5837 |
STRIP=$ac_ct_STRIP |
5838 |
fi |
5839 |
else |
5840 |
STRIP="$ac_cv_prog_STRIP" |
5841 |
fi |
5842 |
|
5843 |
test -z "$STRIP" && STRIP=: |
5844 |
|
5845 |
|
5846 |
|
5847 |
|
5848 |
|
5849 |
|
5850 |
if test -n "$ac_tool_prefix"; then |
5851 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5852 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5854 |
$as_echo_n "checking for $ac_word... " >&6; } |
5855 |
if ${ac_cv_prog_RANLIB+:} false; then : |
5856 |
$as_echo_n "(cached) " >&6 |
5857 |
else |
5858 |
if test -n "$RANLIB"; then |
5859 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5860 |
else |
5861 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5862 |
for as_dir in $PATH |
5863 |
do |
5864 |
IFS=$as_save_IFS |
5865 |
test -z "$as_dir" && as_dir=. |
5866 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5867 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5868 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5869 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5870 |
break 2 |
5871 |
fi |
5872 |
done |
5873 |
done |
5874 |
IFS=$as_save_IFS |
5875 |
|
5876 |
fi |
5877 |
fi |
5878 |
RANLIB=$ac_cv_prog_RANLIB |
5879 |
if test -n "$RANLIB"; then |
5880 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5881 |
$as_echo "$RANLIB" >&6; } |
5882 |
else |
5883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5884 |
$as_echo "no" >&6; } |
5885 |
fi |
5886 |
|
5887 |
|
5888 |
fi |
5889 |
if test -z "$ac_cv_prog_RANLIB"; then |
5890 |
ac_ct_RANLIB=$RANLIB |
5891 |
# Extract the first word of "ranlib", so it can be a program name with args. |
5892 |
set dummy ranlib; ac_word=$2 |
5893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5894 |
$as_echo_n "checking for $ac_word... " >&6; } |
5895 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5896 |
$as_echo_n "(cached) " >&6 |
5897 |
else |
5898 |
if test -n "$ac_ct_RANLIB"; then |
5899 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5900 |
else |
5901 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5902 |
for as_dir in $PATH |
5903 |
do |
5904 |
IFS=$as_save_IFS |
5905 |
test -z "$as_dir" && as_dir=. |
5906 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5907 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5908 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
5909 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5910 |
break 2 |
5911 |
fi |
5912 |
done |
5913 |
done |
5914 |
IFS=$as_save_IFS |
5915 |
|
5916 |
fi |
5917 |
fi |
5918 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5919 |
if test -n "$ac_ct_RANLIB"; then |
5920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5921 |
$as_echo "$ac_ct_RANLIB" >&6; } |
5922 |
else |
5923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5924 |
$as_echo "no" >&6; } |
5925 |
fi |
5926 |
|
5927 |
if test "x$ac_ct_RANLIB" = x; then |
5928 |
RANLIB=":" |
5929 |
else |
5930 |
case $cross_compiling:$ac_tool_warned in |
5931 |
yes:) |
5932 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5933 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5934 |
ac_tool_warned=yes ;; |
5935 |
esac |
5936 |
RANLIB=$ac_ct_RANLIB |
5937 |
fi |
5938 |
else |
5939 |
RANLIB="$ac_cv_prog_RANLIB" |
5940 |
fi |
5941 |
|
5942 |
test -z "$RANLIB" && RANLIB=: |
5943 |
|
5944 |
|
5945 |
|
5946 |
|
5947 |
|
5948 |
|
5949 |
# Determine commands to create old-style static archives. |
5950 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
5951 |
old_postinstall_cmds='chmod 644 $oldlib' |
5952 |
old_postuninstall_cmds= |
5953 |
|
5954 |
if test -n "$RANLIB"; then |
5955 |
case $host_os in |
5956 |
bitrig* | openbsd*) |
5957 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
5958 |
;; |
5959 |
*) |
5960 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
5961 |
;; |
5962 |
esac |
5963 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
5964 |
fi |
5965 |
|
5966 |
case $host_os in |
5967 |
darwin*) |
5968 |
lock_old_archive_extraction=yes ;; |
5969 |
*) |
5970 |
lock_old_archive_extraction=no ;; |
5971 |
esac |
5972 |
|
5973 |
|
5974 |
|
5975 |
|
5976 |
|
5977 |
|
5978 |
|
5979 |
|
5980 |
|
5981 |
|
5982 |
|
5983 |
|
5984 |
|
5985 |
|
5986 |
|
5987 |
|
5988 |
|
5989 |
|
5990 |
|
5991 |
|
5992 |
|
5993 |
|
5994 |
|
5995 |
|
5996 |
|
5997 |
|
5998 |
|
5999 |
|
6000 |
|
6001 |
|
6002 |
|
6003 |
|
6004 |
|
6005 |
|
6006 |
|
6007 |
|
6008 |
|
6009 |
|
6010 |
|
6011 |
# If no C compiler was specified, use CC. |
6012 |
LTCC=${LTCC-"$CC"} |
6013 |
|
6014 |
# If no C compiler flags were specified, use CFLAGS. |
6015 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6016 |
|
6017 |
# Allow CC to be a program name with arguments. |
6018 |
compiler=$CC |
6019 |
|
6020 |
|
6021 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
6022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6023 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
6024 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6025 |
$as_echo_n "(cached) " >&6 |
6026 |
else |
6027 |
|
6028 |
# These are sane defaults that work on at least a few old systems. |
6029 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6030 |
|
6031 |
# Character class describing NM global symbol codes. |
6032 |
symcode='[BCDEGRST]' |
6033 |
|
6034 |
# Regexp to match symbols that can be accessed directly from C. |
6035 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6036 |
|
6037 |
# Define system-specific variables. |
6038 |
case $host_os in |
6039 |
aix*) |
6040 |
symcode='[BCDT]' |
6041 |
;; |
6042 |
cygwin* | mingw* | pw32* | cegcc*) |
6043 |
symcode='[ABCDGISTW]' |
6044 |
;; |
6045 |
hpux*) |
6046 |
if test ia64 = "$host_cpu"; then |
6047 |
symcode='[ABCDEGRST]' |
6048 |
fi |
6049 |
;; |
6050 |
irix* | nonstopux*) |
6051 |
symcode='[BCDEGRST]' |
6052 |
;; |
6053 |
osf*) |
6054 |
symcode='[BCDEGQRST]' |
6055 |
;; |
6056 |
solaris*) |
6057 |
symcode='[BDRT]' |
6058 |
;; |
6059 |
sco3.2v5*) |
6060 |
symcode='[DT]' |
6061 |
;; |
6062 |
sysv4.2uw2*) |
6063 |
symcode='[DT]' |
6064 |
;; |
6065 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6066 |
symcode='[ABDT]' |
6067 |
;; |
6068 |
sysv4) |
6069 |
symcode='[DFNSTU]' |
6070 |
;; |
6071 |
esac |
6072 |
|
6073 |
# If we're using GNU nm, then use its standard symbol codes. |
6074 |
case `$NM -V 2>&1` in |
6075 |
*GNU* | *'with BFD'*) |
6076 |
symcode='[ABCDGIRSTW]' ;; |
6077 |
esac |
6078 |
|
6079 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6080 |
# Gets list of data symbols to import. |
6081 |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
6082 |
# Adjust the below global symbol transforms to fixup imported variables. |
6083 |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
6084 |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
6085 |
lt_c_name_lib_hook="\ |
6086 |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
6087 |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
6088 |
else |
6089 |
# Disable hooks by default. |
6090 |
lt_cv_sys_global_symbol_to_import= |
6091 |
lt_cdecl_hook= |
6092 |
lt_c_name_hook= |
6093 |
lt_c_name_lib_hook= |
6094 |
fi |
6095 |
|
6096 |
# Transform an extracted symbol line into a proper C declaration. |
6097 |
# Some systems (esp. on ia64) link data and code symbols differently, |
6098 |
# so use this general approach. |
6099 |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6100 |
$lt_cdecl_hook\ |
6101 |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
6102 |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
6103 |
|
6104 |
# Transform an extracted symbol line into symbol name and symbol address |
6105 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6106 |
$lt_c_name_hook\ |
6107 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6108 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
6109 |
|
6110 |
# Transform an extracted symbol line into symbol name with lib prefix and |
6111 |
# symbol address. |
6112 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
6113 |
$lt_c_name_lib_hook\ |
6114 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6115 |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
6116 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
6117 |
|
6118 |
# Handle CRLF in mingw tool chain |
6119 |
opt_cr= |
6120 |
case $build_os in |
6121 |
mingw*) |
6122 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6123 |
;; |
6124 |
esac |
6125 |
|
6126 |
# Try without a prefix underscore, then with it. |
6127 |
for ac_symprfx in "" "_"; do |
6128 |
|
6129 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6130 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
6131 |
|
6132 |
# Write the raw and C identifiers. |
6133 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6134 |
# Fake it for dumpbin and say T for any non-static function, |
6135 |
# D for any global variable and I for any imported variable. |
6136 |
# Also find C++ and __fastcall symbols from MSVC++, |
6137 |
# which start with @ or ?. |
6138 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6139 |
" {last_section=section; section=\$ 3};"\ |
6140 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
6141 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6142 |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6143 |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
6144 |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
6145 |
" \$ 0!~/External *\|/{next};"\ |
6146 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6147 |
" {if(hide[section]) next};"\ |
6148 |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6149 |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
6150 |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
6151 |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
6152 |
" ' prfx=^$ac_symprfx" |
6153 |
else |
6154 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6155 |
fi |
6156 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
6157 |
|
6158 |
# Check to see that the pipe works correctly. |
6159 |
pipe_works=no |
6160 |
|
6161 |
rm -f conftest* |
6162 |
cat > conftest.$ac_ext <<_LT_EOF |
6163 |
#ifdef __cplusplus |
6164 |
extern "C" { |
6165 |
#endif |
6166 |
char nm_test_var; |
6167 |
void nm_test_func(void); |
6168 |
void nm_test_func(void){} |
6169 |
#ifdef __cplusplus |
6170 |
} |
6171 |
#endif |
6172 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
6173 |
_LT_EOF |
6174 |
|
6175 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6176 |
(eval $ac_compile) 2>&5 |
6177 |
ac_status=$? |
6178 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6179 |
test $ac_status = 0; }; then |
6180 |
# Now try to grab the symbols. |
6181 |
nlist=conftest.nm |
6182 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6183 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
6184 |
ac_status=$? |
6185 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6186 |
test $ac_status = 0; } && test -s "$nlist"; then |
6187 |
# Try sorting and uniquifying the output. |
6188 |
if sort "$nlist" | uniq > "$nlist"T; then |
6189 |
mv -f "$nlist"T "$nlist" |
6190 |
else |
6191 |
rm -f "$nlist"T |
6192 |
fi |
6193 |
|
6194 |
# Make sure that we snagged all the symbols we need. |
6195 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6196 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6197 |
cat <<_LT_EOF > conftest.$ac_ext |
6198 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6199 |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6200 |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
6201 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6202 |
# define LT_DLSYM_CONST |
6203 |
#elif defined __osf__ |
6204 |
/* This system does not cope well with relocations in const data. */ |
6205 |
# define LT_DLSYM_CONST |
6206 |
#else |
6207 |
# define LT_DLSYM_CONST const |
6208 |
#endif |
6209 |
|
6210 |
#ifdef __cplusplus |
6211 |
extern "C" { |
6212 |
#endif |
6213 |
|
6214 |
_LT_EOF |
6215 |
# Now generate the symbol file. |
6216 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6217 |
|
6218 |
cat <<_LT_EOF >> conftest.$ac_ext |
6219 |
|
6220 |
/* The mapping between symbol names and symbols. */ |
6221 |
LT_DLSYM_CONST struct { |
6222 |
const char *name; |
6223 |
void *address; |
6224 |
} |
6225 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
6226 |
{ |
6227 |
{ "@PROGRAM@", (void *) 0 }, |
6228 |
_LT_EOF |
6229 |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6230 |
cat <<\_LT_EOF >> conftest.$ac_ext |
6231 |
{0, (void *) 0} |
6232 |
}; |
6233 |
|
6234 |
/* This works around a problem in FreeBSD linker */ |
6235 |
#ifdef FREEBSD_WORKAROUND |
6236 |
static const void *lt_preloaded_setup() { |
6237 |
return lt__PROGRAM__LTX_preloaded_symbols; |
6238 |
} |
6239 |
#endif |
6240 |
|
6241 |
#ifdef __cplusplus |
6242 |
} |
6243 |
#endif |
6244 |
_LT_EOF |
6245 |
# Now try linking the two files. |
6246 |
mv conftest.$ac_objext conftstm.$ac_objext |
6247 |
lt_globsym_save_LIBS=$LIBS |
6248 |
lt_globsym_save_CFLAGS=$CFLAGS |
6249 |
LIBS=conftstm.$ac_objext |
6250 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6251 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6252 |
(eval $ac_link) 2>&5 |
6253 |
ac_status=$? |
6254 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6255 |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
6256 |
pipe_works=yes |
6257 |
fi |
6258 |
LIBS=$lt_globsym_save_LIBS |
6259 |
CFLAGS=$lt_globsym_save_CFLAGS |
6260 |
else |
6261 |
echo "cannot find nm_test_func in $nlist" >&5 |
6262 |
fi |
6263 |
else |
6264 |
echo "cannot find nm_test_var in $nlist" >&5 |
6265 |
fi |
6266 |
else |
6267 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6268 |
fi |
6269 |
else |
6270 |
echo "$progname: failed program was:" >&5 |
6271 |
cat conftest.$ac_ext >&5 |
6272 |
fi |
6273 |
rm -rf conftest* conftst* |
6274 |
|
6275 |
# Do not use the global_symbol_pipe unless it works. |
6276 |
if test yes = "$pipe_works"; then |
6277 |
break |
6278 |
else |
6279 |
lt_cv_sys_global_symbol_pipe= |
6280 |
fi |
6281 |
done |
6282 |
|
6283 |
fi |
6284 |
|
6285 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6286 |
lt_cv_sys_global_symbol_to_cdecl= |
6287 |
fi |
6288 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6289 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6290 |
$as_echo "failed" >&6; } |
6291 |
else |
6292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6293 |
$as_echo "ok" >&6; } |
6294 |
fi |
6295 |
|
6296 |
# Response file support. |
6297 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6298 |
nm_file_list_spec='@' |
6299 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
6300 |
nm_file_list_spec='@' |
6301 |
fi |
6302 |
|
6303 |
|
6304 |
|
6305 |
|
6306 |
|
6307 |
|
6308 |
|
6309 |
|
6310 |
|
6311 |
|
6312 |
|
6313 |
|
6314 |
|
6315 |
|
6316 |
|
6317 |
|
6318 |
|
6319 |
|
6320 |
|
6321 |
|
6322 |
|
6323 |
|
6324 |
|
6325 |
|
6326 |
|
6327 |
|
6328 |
|
6329 |
|
6330 |
|
6331 |
|
6332 |
|
6333 |
|
6334 |
|
6335 |
|
6336 |
|
6337 |
|
6338 |
|
6339 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6340 |
$as_echo_n "checking for sysroot... " >&6; } |
6341 |
|
6342 |
# Check whether --with-sysroot was given. |
6343 |
if test "${with_sysroot+set}" = set; then : |
6344 |
withval=$with_sysroot; |
6345 |
else |
6346 |
with_sysroot=no |
6347 |
fi |
6348 |
|
6349 |
|
6350 |
lt_sysroot= |
6351 |
case $with_sysroot in #( |
6352 |
yes) |
6353 |
if test yes = "$GCC"; then |
6354 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6355 |
fi |
6356 |
;; #( |
6357 |
/*) |
6358 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
6359 |
;; #( |
6360 |
no|'') |
6361 |
;; #( |
6362 |
*) |
6363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6364 |
$as_echo "$with_sysroot" >&6; } |
6365 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6366 |
;; |
6367 |
esac |
6368 |
|
6369 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6370 |
$as_echo "${lt_sysroot:-no}" >&6; } |
6371 |
|
6372 |
|
6373 |
|
6374 |
|
6375 |
|
6376 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6377 |
$as_echo_n "checking for a working dd... " >&6; } |
6378 |
if ${ac_cv_path_lt_DD+:} false; then : |
6379 |
$as_echo_n "(cached) " >&6 |
6380 |
else |
6381 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6382 |
cat conftest.i conftest.i >conftest2.i |
6383 |
: ${lt_DD:=$DD} |
6384 |
if test -z "$lt_DD"; then |
6385 |
ac_path_lt_DD_found=false |
6386 |
# Loop through the user's path and test for each of PROGNAME-LIST |
6387 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6388 |
for as_dir in $PATH |
6389 |
do |
6390 |
IFS=$as_save_IFS |
6391 |
test -z "$as_dir" && as_dir=. |
6392 |
for ac_prog in dd; do |
6393 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6394 |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
6395 |
as_fn_executable_p "$ac_path_lt_DD" || continue |
6396 |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6397 |
cmp -s conftest.i conftest.out \ |
6398 |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
6399 |
fi |
6400 |
$ac_path_lt_DD_found && break 3 |
6401 |
done |
6402 |
done |
6403 |
done |
6404 |
IFS=$as_save_IFS |
6405 |
if test -z "$ac_cv_path_lt_DD"; then |
6406 |
: |
6407 |
fi |
6408 |
else |
6409 |
ac_cv_path_lt_DD=$lt_DD |
6410 |
fi |
6411 |
|
6412 |
rm -f conftest.i conftest2.i conftest.out |
6413 |
fi |
6414 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
6415 |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
6416 |
|
6417 |
|
6418 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
6419 |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
6420 |
if ${lt_cv_truncate_bin+:} false; then : |
6421 |
$as_echo_n "(cached) " >&6 |
6422 |
else |
6423 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6424 |
cat conftest.i conftest.i >conftest2.i |
6425 |
lt_cv_truncate_bin= |
6426 |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6427 |
cmp -s conftest.i conftest.out \ |
6428 |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
6429 |
fi |
6430 |
rm -f conftest.i conftest2.i conftest.out |
6431 |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
6432 |
fi |
6433 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
6434 |
$as_echo "$lt_cv_truncate_bin" >&6; } |
6435 |
|
6436 |
|
6437 |
|
6438 |
|
6439 |
|
6440 |
|
6441 |
|
6442 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
6443 |
func_cc_basename () |
6444 |
{ |
6445 |
for cc_temp in $*""; do |
6446 |
case $cc_temp in |
6447 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6448 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6449 |
\-*) ;; |
6450 |
*) break;; |
6451 |
esac |
6452 |
done |
6453 |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
6454 |
} |
6455 |
|
6456 |
# Check whether --enable-libtool-lock was given. |
6457 |
if test "${enable_libtool_lock+set}" = set; then : |
6458 |
enableval=$enable_libtool_lock; |
6459 |
fi |
6460 |
|
6461 |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
6462 |
|
6463 |
# Some flags need to be propagated to the compiler or linker for good |
6464 |
# libtool support. |
6465 |
case $host in |
6466 |
ia64-*-hpux*) |
6467 |
# Find out what ABI is being produced by ac_compile, and set mode |
6468 |
# options accordingly. |
6469 |
echo 'int i;' > conftest.$ac_ext |
6470 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6471 |
(eval $ac_compile) 2>&5 |
6472 |
ac_status=$? |
6473 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6474 |
test $ac_status = 0; }; then |
6475 |
case `/usr/bin/file conftest.$ac_objext` in |
6476 |
*ELF-32*) |
6477 |
HPUX_IA64_MODE=32 |
6478 |
;; |
6479 |
*ELF-64*) |
6480 |
HPUX_IA64_MODE=64 |
6481 |
;; |
6482 |
esac |
6483 |
fi |
6484 |
rm -rf conftest* |
6485 |
;; |
6486 |
*-*-irix6*) |
6487 |
# Find out what ABI is being produced by ac_compile, and set linker |
6488 |
# options accordingly. |
6489 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6490 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6491 |
(eval $ac_compile) 2>&5 |
6492 |
ac_status=$? |
6493 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6494 |
test $ac_status = 0; }; then |
6495 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
6496 |
case `/usr/bin/file conftest.$ac_objext` in |
6497 |
*32-bit*) |
6498 |
LD="${LD-ld} -melf32bsmip" |
6499 |
;; |
6500 |
*N32*) |
6501 |
LD="${LD-ld} -melf32bmipn32" |
6502 |
;; |
6503 |
*64-bit*) |
6504 |
LD="${LD-ld} -melf64bmip" |
6505 |
;; |
6506 |
esac |
6507 |
else |
6508 |
case `/usr/bin/file conftest.$ac_objext` in |
6509 |
*32-bit*) |
6510 |
LD="${LD-ld} -32" |
6511 |
;; |
6512 |
*N32*) |
6513 |
LD="${LD-ld} -n32" |
6514 |
;; |
6515 |
*64-bit*) |
6516 |
LD="${LD-ld} -64" |
6517 |
;; |
6518 |
esac |
6519 |
fi |
6520 |
fi |
6521 |
rm -rf conftest* |
6522 |
;; |
6523 |
|
6524 |
mips64*-*linux*) |
6525 |
# Find out what ABI is being produced by ac_compile, and set linker |
6526 |
# options accordingly. |
6527 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6528 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6529 |
(eval $ac_compile) 2>&5 |
6530 |
ac_status=$? |
6531 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6532 |
test $ac_status = 0; }; then |
6533 |
emul=elf |
6534 |
case `/usr/bin/file conftest.$ac_objext` in |
6535 |
*32-bit*) |
6536 |
emul="${emul}32" |
6537 |
;; |
6538 |
*64-bit*) |
6539 |
emul="${emul}64" |
6540 |
;; |
6541 |
esac |
6542 |
case `/usr/bin/file conftest.$ac_objext` in |
6543 |
*MSB*) |
6544 |
emul="${emul}btsmip" |
6545 |
;; |
6546 |
*LSB*) |
6547 |
emul="${emul}ltsmip" |
6548 |
;; |
6549 |
esac |
6550 |
case `/usr/bin/file conftest.$ac_objext` in |
6551 |
*N32*) |
6552 |
emul="${emul}n32" |
6553 |
;; |
6554 |
esac |
6555 |
LD="${LD-ld} -m $emul" |
6556 |
fi |
6557 |
rm -rf conftest* |
6558 |
;; |
6559 |
|
6560 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
6561 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6562 |
# Find out what ABI is being produced by ac_compile, and set linker |
6563 |
# options accordingly. Note that the listed cases only cover the |
6564 |
# situations where additional linker options are needed (such as when |
6565 |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
6566 |
# vice versa); the common cases where no linker options are needed do |
6567 |
# not appear in the list. |
6568 |
echo 'int i;' > conftest.$ac_ext |
6569 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6570 |
(eval $ac_compile) 2>&5 |
6571 |
ac_status=$? |
6572 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6573 |
test $ac_status = 0; }; then |
6574 |
case `/usr/bin/file conftest.o` in |
6575 |
*32-bit*) |
6576 |
case $host in |
6577 |
x86_64-*kfreebsd*-gnu) |
6578 |
LD="${LD-ld} -m elf_i386_fbsd" |
6579 |
;; |
6580 |
x86_64-*linux*) |
6581 |
case `/usr/bin/file conftest.o` in |
6582 |
*x86-64*) |
6583 |
LD="${LD-ld} -m elf32_x86_64" |
6584 |
;; |
6585 |
*) |
6586 |
LD="${LD-ld} -m elf_i386" |
6587 |
;; |
6588 |
esac |
6589 |
;; |
6590 |
powerpc64le-*linux*) |
6591 |
LD="${LD-ld} -m elf32lppclinux" |
6592 |
;; |
6593 |
powerpc64-*linux*) |
6594 |
LD="${LD-ld} -m elf32ppclinux" |
6595 |
;; |
6596 |
s390x-*linux*) |
6597 |
LD="${LD-ld} -m elf_s390" |
6598 |
;; |
6599 |
sparc64-*linux*) |
6600 |
LD="${LD-ld} -m elf32_sparc" |
6601 |
;; |
6602 |
esac |
6603 |
;; |
6604 |
*64-bit*) |
6605 |
case $host in |
6606 |
x86_64-*kfreebsd*-gnu) |
6607 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
6608 |
;; |
6609 |
x86_64-*linux*) |
6610 |
LD="${LD-ld} -m elf_x86_64" |
6611 |
;; |
6612 |
powerpcle-*linux*) |
6613 |
LD="${LD-ld} -m elf64lppc" |
6614 |
;; |
6615 |
powerpc-*linux*) |
6616 |
LD="${LD-ld} -m elf64ppc" |
6617 |
;; |
6618 |
s390*-*linux*|s390*-*tpf*) |
6619 |
LD="${LD-ld} -m elf64_s390" |
6620 |
;; |
6621 |
sparc*-*linux*) |
6622 |
LD="${LD-ld} -m elf64_sparc" |
6623 |
;; |
6624 |
esac |
6625 |
;; |
6626 |
esac |
6627 |
fi |
6628 |
rm -rf conftest* |
6629 |
;; |
6630 |
|
6631 |
*-*-sco3.2v5*) |
6632 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
6633 |
SAVE_CFLAGS=$CFLAGS |
6634 |
CFLAGS="$CFLAGS -belf" |
6635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6636 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
6637 |
if ${lt_cv_cc_needs_belf+:} false; then : |
6638 |
$as_echo_n "(cached) " >&6 |
6639 |
else |
6640 |
ac_ext=c |
6641 |
ac_cpp='$CPP $CPPFLAGS' |
6642 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6643 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6644 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6645 |
|
6646 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6647 |
/* end confdefs.h. */ |
6648 |
|
6649 |
int |
6650 |
main () |
6651 |
{ |
6652 |
|
6653 |
; |
6654 |
return 0; |
6655 |
} |
6656 |
_ACEOF |
6657 |
if ac_fn_c_try_link "$LINENO"; then : |
6658 |
lt_cv_cc_needs_belf=yes |
6659 |
else |
6660 |
lt_cv_cc_needs_belf=no |
6661 |
fi |
6662 |
rm -f core conftest.err conftest.$ac_objext \ |
6663 |
conftest$ac_exeext conftest.$ac_ext |
6664 |
ac_ext=c |
6665 |
ac_cpp='$CPP $CPPFLAGS' |
6666 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6667 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6668 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6669 |
|
6670 |
fi |
6671 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6672 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
6673 |
if test yes != "$lt_cv_cc_needs_belf"; then |
6674 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6675 |
CFLAGS=$SAVE_CFLAGS |
6676 |
fi |
6677 |
;; |
6678 |
*-*solaris*) |
6679 |
# Find out what ABI is being produced by ac_compile, and set linker |
6680 |
# options accordingly. |
6681 |
echo 'int i;' > conftest.$ac_ext |
6682 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6683 |
(eval $ac_compile) 2>&5 |
6684 |
ac_status=$? |
6685 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6686 |
test $ac_status = 0; }; then |
6687 |
case `/usr/bin/file conftest.o` in |
6688 |
*64-bit*) |
6689 |
case $lt_cv_prog_gnu_ld in |
6690 |
yes*) |
6691 |
case $host in |
6692 |
i?86-*-solaris*|x86_64-*-solaris*) |
6693 |
LD="${LD-ld} -m elf_x86_64" |
6694 |
;; |
6695 |
sparc*-*-solaris*) |
6696 |
LD="${LD-ld} -m elf64_sparc" |
6697 |
;; |
6698 |
esac |
6699 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
6700 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
6701 |
LD=${LD-ld}_sol2 |
6702 |
fi |
6703 |
;; |
6704 |
*) |
6705 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
6706 |
LD="${LD-ld} -64" |
6707 |
fi |
6708 |
;; |
6709 |
esac |
6710 |
;; |
6711 |
esac |
6712 |
fi |
6713 |
rm -rf conftest* |
6714 |
;; |
6715 |
esac |
6716 |
|
6717 |
need_locks=$enable_libtool_lock |
6718 |
|
6719 |
if test -n "$ac_tool_prefix"; then |
6720 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
6721 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
6722 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6723 |
$as_echo_n "checking for $ac_word... " >&6; } |
6724 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
6725 |
$as_echo_n "(cached) " >&6 |
6726 |
else |
6727 |
if test -n "$MANIFEST_TOOL"; then |
6728 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
6729 |
else |
6730 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6731 |
for as_dir in $PATH |
6732 |
do |
6733 |
IFS=$as_save_IFS |
6734 |
test -z "$as_dir" && as_dir=. |
6735 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6736 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6737 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
6738 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6739 |
break 2 |
6740 |
fi |
6741 |
done |
6742 |
done |
6743 |
IFS=$as_save_IFS |
6744 |
|
6745 |
fi |
6746 |
fi |
6747 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
6748 |
if test -n "$MANIFEST_TOOL"; then |
6749 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
6750 |
$as_echo "$MANIFEST_TOOL" >&6; } |
6751 |
else |
6752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6753 |
$as_echo "no" >&6; } |
6754 |
fi |
6755 |
|
6756 |
|
6757 |
fi |
6758 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
6759 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
6760 |
# Extract the first word of "mt", so it can be a program name with args. |
6761 |
set dummy mt; ac_word=$2 |
6762 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6763 |
$as_echo_n "checking for $ac_word... " >&6; } |
6764 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
6765 |
$as_echo_n "(cached) " >&6 |
6766 |
else |
6767 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6768 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
6769 |
else |
6770 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6771 |
for as_dir in $PATH |
6772 |
do |
6773 |
IFS=$as_save_IFS |
6774 |
test -z "$as_dir" && as_dir=. |
6775 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6776 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6777 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
6778 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6779 |
break 2 |
6780 |
fi |
6781 |
done |
6782 |
done |
6783 |
IFS=$as_save_IFS |
6784 |
|
6785 |
fi |
6786 |
fi |
6787 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
6788 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6789 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
6790 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
6791 |
else |
6792 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6793 |
$as_echo "no" >&6; } |
6794 |
fi |
6795 |
|
6796 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
6797 |
MANIFEST_TOOL=":" |
6798 |
else |
6799 |
case $cross_compiling:$ac_tool_warned in |
6800 |
yes:) |
6801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6802 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6803 |
ac_tool_warned=yes ;; |
6804 |
esac |
6805 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
6806 |
fi |
6807 |
else |
6808 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
6809 |
fi |
6810 |
|
6811 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
6812 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
6813 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
6814 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
6815 |
$as_echo_n "(cached) " >&6 |
6816 |
else |
6817 |
lt_cv_path_mainfest_tool=no |
6818 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
6819 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
6820 |
cat conftest.err >&5 |
6821 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
6822 |
lt_cv_path_mainfest_tool=yes |
6823 |
fi |
6824 |
rm -f conftest* |
6825 |
fi |
6826 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
6827 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
6828 |
if test yes != "$lt_cv_path_mainfest_tool"; then |
6829 |
MANIFEST_TOOL=: |
6830 |
fi |
6831 |
|
6832 |
|
6833 |
|
6834 |
|
6835 |
|
6836 |
|
6837 |
case $host_os in |
6838 |
rhapsody* | darwin*) |
6839 |
if test -n "$ac_tool_prefix"; then |
6840 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
6841 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
6842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6843 |
$as_echo_n "checking for $ac_word... " >&6; } |
6844 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
6845 |
$as_echo_n "(cached) " >&6 |
6846 |
else |
6847 |
if test -n "$DSYMUTIL"; then |
6848 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
6849 |
else |
6850 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6851 |
for as_dir in $PATH |
6852 |
do |
6853 |
IFS=$as_save_IFS |
6854 |
test -z "$as_dir" && as_dir=. |
6855 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6856 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6857 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
6858 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6859 |
break 2 |
6860 |
fi |
6861 |
done |
6862 |
done |
6863 |
IFS=$as_save_IFS |
6864 |
|
6865 |
fi |
6866 |
fi |
6867 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6868 |
if test -n "$DSYMUTIL"; then |
6869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6870 |
$as_echo "$DSYMUTIL" >&6; } |
6871 |
else |
6872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6873 |
$as_echo "no" >&6; } |
6874 |
fi |
6875 |
|
6876 |
|
6877 |
fi |
6878 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
6879 |
ac_ct_DSYMUTIL=$DSYMUTIL |
6880 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
6881 |
set dummy dsymutil; ac_word=$2 |
6882 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6883 |
$as_echo_n "checking for $ac_word... " >&6; } |
6884 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
6885 |
$as_echo_n "(cached) " >&6 |
6886 |
else |
6887 |
if test -n "$ac_ct_DSYMUTIL"; then |
6888 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
6889 |
else |
6890 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6891 |
for as_dir in $PATH |
6892 |
do |
6893 |
IFS=$as_save_IFS |
6894 |
test -z "$as_dir" && as_dir=. |
6895 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6896 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6897 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
6898 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6899 |
break 2 |
6900 |
fi |
6901 |
done |
6902 |
done |
6903 |
IFS=$as_save_IFS |
6904 |
|
6905 |
fi |
6906 |
fi |
6907 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6908 |
if test -n "$ac_ct_DSYMUTIL"; then |
6909 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6910 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
6911 |
else |
6912 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6913 |
$as_echo "no" >&6; } |
6914 |
fi |
6915 |
|
6916 |
if test "x$ac_ct_DSYMUTIL" = x; then |
6917 |
DSYMUTIL=":" |
6918 |
else |
6919 |
case $cross_compiling:$ac_tool_warned in |
6920 |
yes:) |
6921 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6922 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6923 |
ac_tool_warned=yes ;; |
6924 |
esac |
6925 |
DSYMUTIL=$ac_ct_DSYMUTIL |
6926 |
fi |
6927 |
else |
6928 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
6929 |
fi |
6930 |
|
6931 |
if test -n "$ac_tool_prefix"; then |
6932 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
6933 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
6934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6935 |
$as_echo_n "checking for $ac_word... " >&6; } |
6936 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
6937 |
$as_echo_n "(cached) " >&6 |
6938 |
else |
6939 |
if test -n "$NMEDIT"; then |
6940 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
6941 |
else |
6942 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6943 |
for as_dir in $PATH |
6944 |
do |
6945 |
IFS=$as_save_IFS |
6946 |
test -z "$as_dir" && as_dir=. |
6947 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6948 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6949 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
6950 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6951 |
break 2 |
6952 |
fi |
6953 |
done |
6954 |
done |
6955 |
IFS=$as_save_IFS |
6956 |
|
6957 |
fi |
6958 |
fi |
6959 |
NMEDIT=$ac_cv_prog_NMEDIT |
6960 |
if test -n "$NMEDIT"; then |
6961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6962 |
$as_echo "$NMEDIT" >&6; } |
6963 |
else |
6964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6965 |
$as_echo "no" >&6; } |
6966 |
fi |
6967 |
|
6968 |
|
6969 |
fi |
6970 |
if test -z "$ac_cv_prog_NMEDIT"; then |
6971 |
ac_ct_NMEDIT=$NMEDIT |
6972 |
# Extract the first word of "nmedit", so it can be a program name with args. |
6973 |
set dummy nmedit; ac_word=$2 |
6974 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6975 |
$as_echo_n "checking for $ac_word... " >&6; } |
6976 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
6977 |
$as_echo_n "(cached) " >&6 |
6978 |
else |
6979 |
if test -n "$ac_ct_NMEDIT"; then |
6980 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
6981 |
else |
6982 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6983 |
for as_dir in $PATH |
6984 |
do |
6985 |
IFS=$as_save_IFS |
6986 |
test -z "$as_dir" && as_dir=. |
6987 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6988 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6989 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
6990 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6991 |
break 2 |
6992 |
fi |
6993 |
done |
6994 |
done |
6995 |
IFS=$as_save_IFS |
6996 |
|
6997 |
fi |
6998 |
fi |
6999 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7000 |
if test -n "$ac_ct_NMEDIT"; then |
7001 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7002 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
7003 |
else |
7004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7005 |
$as_echo "no" >&6; } |
7006 |
fi |
7007 |
|
7008 |
if test "x$ac_ct_NMEDIT" = x; then |
7009 |
NMEDIT=":" |
7010 |
else |
7011 |
case $cross_compiling:$ac_tool_warned in |
7012 |
yes:) |
7013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7014 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7015 |
ac_tool_warned=yes ;; |
7016 |
esac |
7017 |
NMEDIT=$ac_ct_NMEDIT |
7018 |
fi |
7019 |
else |
7020 |
NMEDIT="$ac_cv_prog_NMEDIT" |
7021 |
fi |
7022 |
|
7023 |
if test -n "$ac_tool_prefix"; then |
7024 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7025 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
7026 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7027 |
$as_echo_n "checking for $ac_word... " >&6; } |
7028 |
if ${ac_cv_prog_LIPO+:} false; then : |
7029 |
$as_echo_n "(cached) " >&6 |
7030 |
else |
7031 |
if test -n "$LIPO"; then |
7032 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
7033 |
else |
7034 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7035 |
for as_dir in $PATH |
7036 |
do |
7037 |
IFS=$as_save_IFS |
7038 |
test -z "$as_dir" && as_dir=. |
7039 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7040 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7041 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7042 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7043 |
break 2 |
7044 |
fi |
7045 |
done |
7046 |
done |
7047 |
IFS=$as_save_IFS |
7048 |
|
7049 |
fi |
7050 |
fi |
7051 |
LIPO=$ac_cv_prog_LIPO |
7052 |
if test -n "$LIPO"; then |
7053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7054 |
$as_echo "$LIPO" >&6; } |
7055 |
else |
7056 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7057 |
$as_echo "no" >&6; } |
7058 |
fi |
7059 |
|
7060 |
|
7061 |
fi |
7062 |
if test -z "$ac_cv_prog_LIPO"; then |
7063 |
ac_ct_LIPO=$LIPO |
7064 |
# Extract the first word of "lipo", so it can be a program name with args. |
7065 |
set dummy lipo; ac_word=$2 |
7066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7067 |
$as_echo_n "checking for $ac_word... " >&6; } |
7068 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
7069 |
$as_echo_n "(cached) " >&6 |
7070 |
else |
7071 |
if test -n "$ac_ct_LIPO"; then |
7072 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
7073 |
else |
7074 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7075 |
for as_dir in $PATH |
7076 |
do |
7077 |
IFS=$as_save_IFS |
7078 |
test -z "$as_dir" && as_dir=. |
7079 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7080 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7081 |
ac_cv_prog_ac_ct_LIPO="lipo" |
7082 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7083 |
break 2 |
7084 |
fi |
7085 |
done |
7086 |
done |
7087 |
IFS=$as_save_IFS |
7088 |
|
7089 |
fi |
7090 |
fi |
7091 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7092 |
if test -n "$ac_ct_LIPO"; then |
7093 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7094 |
$as_echo "$ac_ct_LIPO" >&6; } |
7095 |
else |
7096 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7097 |
$as_echo "no" >&6; } |
7098 |
fi |
7099 |
|
7100 |
if test "x$ac_ct_LIPO" = x; then |
7101 |
LIPO=":" |
7102 |
else |
7103 |
case $cross_compiling:$ac_tool_warned in |
7104 |
yes:) |
7105 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7106 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7107 |
ac_tool_warned=yes ;; |
7108 |
esac |
7109 |
LIPO=$ac_ct_LIPO |
7110 |
fi |
7111 |
else |
7112 |
LIPO="$ac_cv_prog_LIPO" |
7113 |
fi |
7114 |
|
7115 |
if test -n "$ac_tool_prefix"; then |
7116 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7117 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
7118 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7119 |
$as_echo_n "checking for $ac_word... " >&6; } |
7120 |
if ${ac_cv_prog_OTOOL+:} false; then : |
7121 |
$as_echo_n "(cached) " >&6 |
7122 |
else |
7123 |
if test -n "$OTOOL"; then |
7124 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
7125 |
else |
7126 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7127 |
for as_dir in $PATH |
7128 |
do |
7129 |
IFS=$as_save_IFS |
7130 |
test -z "$as_dir" && as_dir=. |
7131 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7132 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7133 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7134 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7135 |
break 2 |
7136 |
fi |
7137 |
done |
7138 |
done |
7139 |
IFS=$as_save_IFS |
7140 |
|
7141 |
fi |
7142 |
fi |
7143 |
OTOOL=$ac_cv_prog_OTOOL |
7144 |
if test -n "$OTOOL"; then |
7145 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7146 |
$as_echo "$OTOOL" >&6; } |
7147 |
else |
7148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7149 |
$as_echo "no" >&6; } |
7150 |
fi |
7151 |
|
7152 |
|
7153 |
fi |
7154 |
if test -z "$ac_cv_prog_OTOOL"; then |
7155 |
ac_ct_OTOOL=$OTOOL |
7156 |
# Extract the first word of "otool", so it can be a program name with args. |
7157 |
set dummy otool; ac_word=$2 |
7158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7159 |
$as_echo_n "checking for $ac_word... " >&6; } |
7160 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
7161 |
$as_echo_n "(cached) " >&6 |
7162 |
else |
7163 |
if test -n "$ac_ct_OTOOL"; then |
7164 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
7165 |
else |
7166 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7167 |
for as_dir in $PATH |
7168 |
do |
7169 |
IFS=$as_save_IFS |
7170 |
test -z "$as_dir" && as_dir=. |
7171 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7172 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7173 |
ac_cv_prog_ac_ct_OTOOL="otool" |
7174 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7175 |
break 2 |
7176 |
fi |
7177 |
done |
7178 |
done |
7179 |
IFS=$as_save_IFS |
7180 |
|
7181 |
fi |
7182 |
fi |
7183 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7184 |
if test -n "$ac_ct_OTOOL"; then |
7185 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7186 |
$as_echo "$ac_ct_OTOOL" >&6; } |
7187 |
else |
7188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7189 |
$as_echo "no" >&6; } |
7190 |
fi |
7191 |
|
7192 |
if test "x$ac_ct_OTOOL" = x; then |
7193 |
OTOOL=":" |
7194 |
else |
7195 |
case $cross_compiling:$ac_tool_warned in |
7196 |
yes:) |
7197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7198 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7199 |
ac_tool_warned=yes ;; |
7200 |
esac |
7201 |
OTOOL=$ac_ct_OTOOL |
7202 |
fi |
7203 |
else |
7204 |
OTOOL="$ac_cv_prog_OTOOL" |
7205 |
fi |
7206 |
|
7207 |
if test -n "$ac_tool_prefix"; then |
7208 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7209 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
7210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7211 |
$as_echo_n "checking for $ac_word... " >&6; } |
7212 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
7213 |
$as_echo_n "(cached) " >&6 |
7214 |
else |
7215 |
if test -n "$OTOOL64"; then |
7216 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
7217 |
else |
7218 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7219 |
for as_dir in $PATH |
7220 |
do |
7221 |
IFS=$as_save_IFS |
7222 |
test -z "$as_dir" && as_dir=. |
7223 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7224 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7225 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7226 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7227 |
break 2 |
7228 |
fi |
7229 |
done |
7230 |
done |
7231 |
IFS=$as_save_IFS |
7232 |
|
7233 |
fi |
7234 |
fi |
7235 |
OTOOL64=$ac_cv_prog_OTOOL64 |
7236 |
if test -n "$OTOOL64"; then |
7237 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7238 |
$as_echo "$OTOOL64" >&6; } |
7239 |
else |
7240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7241 |
$as_echo "no" >&6; } |
7242 |
fi |
7243 |
|
7244 |
|
7245 |
fi |
7246 |
if test -z "$ac_cv_prog_OTOOL64"; then |
7247 |
ac_ct_OTOOL64=$OTOOL64 |
7248 |
# Extract the first word of "otool64", so it can be a program name with args. |
7249 |
set dummy otool64; ac_word=$2 |
7250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7251 |
$as_echo_n "checking for $ac_word... " >&6; } |
7252 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
7253 |
$as_echo_n "(cached) " >&6 |
7254 |
else |
7255 |
if test -n "$ac_ct_OTOOL64"; then |
7256 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
7257 |
else |
7258 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7259 |
for as_dir in $PATH |
7260 |
do |
7261 |
IFS=$as_save_IFS |
7262 |
test -z "$as_dir" && as_dir=. |
7263 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7264 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7265 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
7266 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7267 |
break 2 |
7268 |
fi |
7269 |
done |
7270 |
done |
7271 |
IFS=$as_save_IFS |
7272 |
|
7273 |
fi |
7274 |
fi |
7275 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7276 |
if test -n "$ac_ct_OTOOL64"; then |
7277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7278 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
7279 |
else |
7280 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7281 |
$as_echo "no" >&6; } |
7282 |
fi |
7283 |
|
7284 |
if test "x$ac_ct_OTOOL64" = x; then |
7285 |
OTOOL64=":" |
7286 |
else |
7287 |
case $cross_compiling:$ac_tool_warned in |
7288 |
yes:) |
7289 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7290 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7291 |
ac_tool_warned=yes ;; |
7292 |
esac |
7293 |
OTOOL64=$ac_ct_OTOOL64 |
7294 |
fi |
7295 |
else |
7296 |
OTOOL64="$ac_cv_prog_OTOOL64" |
7297 |
fi |
7298 |
|
7299 |
|
7300 |
|
7301 |
|
7302 |
|
7303 |
|
7304 |
|
7305 |
|
7306 |
|
7307 |
|
7308 |
|
7309 |
|
7310 |
|
7311 |
|
7312 |
|
7313 |
|
7314 |
|
7315 |
|
7316 |
|
7317 |
|
7318 |
|
7319 |
|
7320 |
|
7321 |
|
7322 |
|
7323 |
|
7324 |
|
7325 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7326 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
7327 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
7328 |
$as_echo_n "(cached) " >&6 |
7329 |
else |
7330 |
lt_cv_apple_cc_single_mod=no |
7331 |
if test -z "$LT_MULTI_MODULE"; then |
7332 |
# By default we will add the -single_module flag. You can override |
7333 |
# by either setting the environment variable LT_MULTI_MODULE |
7334 |
# non-empty at configure time, or by adding -multi_module to the |
7335 |
# link flags. |
7336 |
rm -rf libconftest.dylib* |
7337 |
echo "int foo(void){return 1;}" > conftest.c |
7338 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7339 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
7340 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7341 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7342 |
_lt_result=$? |
7343 |
# If there is a non-empty error log, and "single_module" |
7344 |
# appears in it, assume the flag caused a linker warning |
7345 |
if test -s conftest.err && $GREP single_module conftest.err; then |
7346 |
cat conftest.err >&5 |
7347 |
# Otherwise, if the output was created with a 0 exit code from |
7348 |
# the compiler, it worked. |
7349 |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
7350 |
lt_cv_apple_cc_single_mod=yes |
7351 |
else |
7352 |
cat conftest.err >&5 |
7353 |
fi |
7354 |
rm -rf libconftest.dylib* |
7355 |
rm -f conftest.* |
7356 |
fi |
7357 |
fi |
7358 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7359 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7360 |
|
7361 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7362 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7363 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7364 |
$as_echo_n "(cached) " >&6 |
7365 |
else |
7366 |
lt_cv_ld_exported_symbols_list=no |
7367 |
save_LDFLAGS=$LDFLAGS |
7368 |
echo "_main" > conftest.sym |
7369 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7370 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7371 |
/* end confdefs.h. */ |
7372 |
|
7373 |
int |
7374 |
main () |
7375 |
{ |
7376 |
|
7377 |
; |
7378 |
return 0; |
7379 |
} |
7380 |
_ACEOF |
7381 |
if ac_fn_c_try_link "$LINENO"; then : |
7382 |
lt_cv_ld_exported_symbols_list=yes |
7383 |
else |
7384 |
lt_cv_ld_exported_symbols_list=no |
7385 |
fi |
7386 |
rm -f core conftest.err conftest.$ac_objext \ |
7387 |
conftest$ac_exeext conftest.$ac_ext |
7388 |
LDFLAGS=$save_LDFLAGS |
7389 |
|
7390 |
fi |
7391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7392 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7393 |
|
7394 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7395 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
7396 |
if ${lt_cv_ld_force_load+:} false; then : |
7397 |
$as_echo_n "(cached) " >&6 |
7398 |
else |
7399 |
lt_cv_ld_force_load=no |
7400 |
cat > conftest.c << _LT_EOF |
7401 |
int forced_loaded() { return 2;} |
7402 |
_LT_EOF |
7403 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
7404 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
7405 |
echo "$AR cru libconftest.a conftest.o" >&5 |
7406 |
$AR cru libconftest.a conftest.o 2>&5 |
7407 |
echo "$RANLIB libconftest.a" >&5 |
7408 |
$RANLIB libconftest.a 2>&5 |
7409 |
cat > conftest.c << _LT_EOF |
7410 |
int main() { return 0;} |
7411 |
_LT_EOF |
7412 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
7413 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
7414 |
_lt_result=$? |
7415 |
if test -s conftest.err && $GREP force_load conftest.err; then |
7416 |
cat conftest.err >&5 |
7417 |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
7418 |
lt_cv_ld_force_load=yes |
7419 |
else |
7420 |
cat conftest.err >&5 |
7421 |
fi |
7422 |
rm -f conftest.err libconftest.a conftest conftest.c |
7423 |
rm -rf conftest.dSYM |
7424 |
|
7425 |
fi |
7426 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7427 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
7428 |
case $host_os in |
7429 |
rhapsody* | darwin1.[012]) |
7430 |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
7431 |
darwin1.*) |
7432 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7433 |
darwin*) # darwin 5.x on |
7434 |
# if running on 10.5 or later, the deployment target defaults |
7435 |
# to the OS version, if on x86, and 10.4, the deployment |
7436 |
# target defaults to 10.4. Don't you love it? |
7437 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7438 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7439 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7440 |
10.[012][,.]*) |
7441 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7442 |
10.*) |
7443 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7444 |
esac |
7445 |
;; |
7446 |
esac |
7447 |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
7448 |
_lt_dar_single_mod='$single_module' |
7449 |
fi |
7450 |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7451 |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
7452 |
else |
7453 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
7454 |
fi |
7455 |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
7456 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
7457 |
else |
7458 |
_lt_dsymutil= |
7459 |
fi |
7460 |
;; |
7461 |
esac |
7462 |
|
7463 |
# func_munge_path_list VARIABLE PATH |
7464 |
# ----------------------------------- |
7465 |
# VARIABLE is name of variable containing _space_ separated list of |
7466 |
# directories to be munged by the contents of PATH, which is string |
7467 |
# having a format: |
7468 |
# "DIR[:DIR]:" |
7469 |
# string "DIR[ DIR]" will be prepended to VARIABLE |
7470 |
# ":DIR[:DIR]" |
7471 |
# string "DIR[ DIR]" will be appended to VARIABLE |
7472 |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
7473 |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
7474 |
# "DIRA[ DIRA]" will be appended to VARIABLE |
7475 |
# "DIR[:DIR]" |
7476 |
# VARIABLE will be replaced by "DIR[ DIR]" |
7477 |
func_munge_path_list () |
7478 |
{ |
7479 |
case x$2 in |
7480 |
x) |
7481 |
;; |
7482 |
*:) |
7483 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
7484 |
;; |
7485 |
x:*) |
7486 |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
7487 |
;; |
7488 |
*::*) |
7489 |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
7490 |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
7491 |
;; |
7492 |
*) |
7493 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
7494 |
;; |
7495 |
esac |
7496 |
} |
7497 |
|
7498 |
ac_ext=c |
7499 |
ac_cpp='$CPP $CPPFLAGS' |
7500 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7501 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7502 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7503 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7504 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
7505 |
# On Suns, sometimes $CPP names a directory. |
7506 |
if test -n "$CPP" && test -d "$CPP"; then |
7507 |
CPP= |
7508 |
fi |
7509 |
if test -z "$CPP"; then |
7510 |
if ${ac_cv_prog_CPP+:} false; then : |
7511 |
$as_echo_n "(cached) " >&6 |
7512 |
else |
7513 |
# Double quotes because CPP needs to be expanded |
7514 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
7515 |
do |
7516 |
ac_preproc_ok=false |
7517 |
for ac_c_preproc_warn_flag in '' yes |
7518 |
do |
7519 |
# Use a header file that comes with gcc, so configuring glibc |
7520 |
# with a fresh cross-compiler works. |
7521 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7522 |
# <limits.h> exists even on freestanding compilers. |
7523 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7524 |
# not just through cpp. "Syntax error" is here to catch this case. |
7525 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7526 |
/* end confdefs.h. */ |
7527 |
#ifdef __STDC__ |
7528 |
# include <limits.h> |
7529 |
#else |
7530 |
# include <assert.h> |
7531 |
#endif |
7532 |
Syntax error |
7533 |
_ACEOF |
7534 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7535 |
|
7536 |
else |
7537 |
# Broken: fails on valid input. |
7538 |
continue |
7539 |
fi |
7540 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7541 |
|
7542 |
# OK, works on sane cases. Now check whether nonexistent headers |
7543 |
# can be detected and how. |
7544 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7545 |
/* end confdefs.h. */ |
7546 |
#include <ac_nonexistent.h> |
7547 |
_ACEOF |
7548 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7549 |
# Broken: success on invalid input. |
7550 |
continue |
7551 |
else |
7552 |
# Passes both tests. |
7553 |
ac_preproc_ok=: |
7554 |
break |
7555 |
fi |
7556 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7557 |
|
7558 |
done |
7559 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7560 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7561 |
if $ac_preproc_ok; then : |
7562 |
break |
7563 |
fi |
7564 |
|
7565 |
done |
7566 |
ac_cv_prog_CPP=$CPP |
7567 |
|
7568 |
fi |
7569 |
CPP=$ac_cv_prog_CPP |
7570 |
else |
7571 |
ac_cv_prog_CPP=$CPP |
7572 |
fi |
7573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7574 |
$as_echo "$CPP" >&6; } |
7575 |
ac_preproc_ok=false |
7576 |
for ac_c_preproc_warn_flag in '' yes |
7577 |
do |
7578 |
# Use a header file that comes with gcc, so configuring glibc |
7579 |
# with a fresh cross-compiler works. |
7580 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7581 |
# <limits.h> exists even on freestanding compilers. |
7582 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7583 |
# not just through cpp. "Syntax error" is here to catch this case. |
7584 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7585 |
/* end confdefs.h. */ |
7586 |
#ifdef __STDC__ |
7587 |
# include <limits.h> |
7588 |
#else |
7589 |
# include <assert.h> |
7590 |
#endif |
7591 |
Syntax error |
7592 |
_ACEOF |
7593 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7594 |
|
7595 |
else |
7596 |
# Broken: fails on valid input. |
7597 |
continue |
7598 |
fi |
7599 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7600 |
|
7601 |
# OK, works on sane cases. Now check whether nonexistent headers |
7602 |
# can be detected and how. |
7603 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7604 |
/* end confdefs.h. */ |
7605 |
#include <ac_nonexistent.h> |
7606 |
_ACEOF |
7607 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7608 |
# Broken: success on invalid input. |
7609 |
continue |
7610 |
else |
7611 |
# Passes both tests. |
7612 |
ac_preproc_ok=: |
7613 |
break |
7614 |
fi |
7615 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7616 |
|
7617 |
done |
7618 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7619 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7620 |
if $ac_preproc_ok; then : |
7621 |
|
7622 |
else |
7623 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7624 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7625 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7626 |
See \`config.log' for more details" "$LINENO" 5; } |
7627 |
fi |
7628 |
|
7629 |
ac_ext=c |
7630 |
ac_cpp='$CPP $CPPFLAGS' |
7631 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7632 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7633 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7634 |
|
7635 |
|
7636 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7637 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7638 |
if ${ac_cv_header_stdc+:} false; then : |
7639 |
$as_echo_n "(cached) " >&6 |
7640 |
else |
7641 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7642 |
/* end confdefs.h. */ |
7643 |
#include <stdlib.h> |
7644 |
#include <stdarg.h> |
7645 |
#include <string.h> |
7646 |
#include <float.h> |
7647 |
|
7648 |
int |
7649 |
main () |
7650 |
{ |
7651 |
|
7652 |
; |
7653 |
return 0; |
7654 |
} |
7655 |
_ACEOF |
7656 |
if ac_fn_c_try_compile "$LINENO"; then : |
7657 |
ac_cv_header_stdc=yes |
7658 |
else |
7659 |
ac_cv_header_stdc=no |
7660 |
fi |
7661 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7662 |
|
7663 |
if test $ac_cv_header_stdc = yes; then |
7664 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7665 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7666 |
/* end confdefs.h. */ |
7667 |
#include <string.h> |
7668 |
|
7669 |
_ACEOF |
7670 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7671 |
$EGREP "memchr" >/dev/null 2>&1; then : |
7672 |
|
7673 |
else |
7674 |
ac_cv_header_stdc=no |
7675 |
fi |
7676 |
rm -f conftest* |
7677 |
|
7678 |
fi |
7679 |
|
7680 |
if test $ac_cv_header_stdc = yes; then |
7681 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7682 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7683 |
/* end confdefs.h. */ |
7684 |
#include <stdlib.h> |
7685 |
|
7686 |
_ACEOF |
7687 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7688 |
$EGREP "free" >/dev/null 2>&1; then : |
7689 |
|
7690 |
else |
7691 |
ac_cv_header_stdc=no |
7692 |
fi |
7693 |
rm -f conftest* |
7694 |
|
7695 |
fi |
7696 |
|
7697 |
if test $ac_cv_header_stdc = yes; then |
7698 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7699 |
if test "$cross_compiling" = yes; then : |
7700 |
: |
7701 |
else |
7702 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7703 |
/* end confdefs.h. */ |
7704 |
#include <ctype.h> |
7705 |
#include <stdlib.h> |
7706 |
#if ((' ' & 0x0FF) == 0x020) |
7707 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7708 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7709 |
#else |
7710 |
# define ISLOWER(c) \ |
7711 |
(('a' <= (c) && (c) <= 'i') \ |
7712 |
|| ('j' <= (c) && (c) <= 'r') \ |
7713 |
|| ('s' <= (c) && (c) <= 'z')) |
7714 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7715 |
#endif |
7716 |
|
7717 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7718 |
int |
7719 |
main () |
7720 |
{ |
7721 |
int i; |
7722 |
for (i = 0; i < 256; i++) |
7723 |
if (XOR (islower (i), ISLOWER (i)) |
7724 |
|| toupper (i) != TOUPPER (i)) |
7725 |
return 2; |
7726 |
return 0; |
7727 |
} |
7728 |
_ACEOF |
7729 |
if ac_fn_c_try_run "$LINENO"; then : |
7730 |
|
7731 |
else |
7732 |
ac_cv_header_stdc=no |
7733 |
fi |
7734 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7735 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7736 |
fi |
7737 |
|
7738 |
fi |
7739 |
fi |
7740 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7741 |
$as_echo "$ac_cv_header_stdc" >&6; } |
7742 |
if test $ac_cv_header_stdc = yes; then |
7743 |
|
7744 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7745 |
|
7746 |
fi |
7747 |
|
7748 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7749 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7750 |
inttypes.h stdint.h unistd.h |
7751 |
do : |
7752 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7753 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
7754 |
" |
7755 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7756 |
cat >>confdefs.h <<_ACEOF |
7757 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7758 |
_ACEOF |
7759 |
|
7760 |
fi |
7761 |
|
7762 |
done |
7763 |
|
7764 |
|
7765 |
for ac_header in dlfcn.h |
7766 |
do : |
7767 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
7768 |
" |
7769 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7770 |
cat >>confdefs.h <<_ACEOF |
7771 |
#define HAVE_DLFCN_H 1 |
7772 |
_ACEOF |
7773 |
|
7774 |
fi |
7775 |
|
7776 |
done |
7777 |
|
7778 |
|
7779 |
|
7780 |
|
7781 |
|
7782 |
# Set options |
7783 |
|
7784 |
|
7785 |
|
7786 |
enable_dlopen=no |
7787 |
|
7788 |
|
7789 |
enable_win32_dll=no |
7790 |
|
7791 |
|
7792 |
# Check whether --enable-shared was given. |
7793 |
if test "${enable_shared+set}" = set; then : |
7794 |
enableval=$enable_shared; p=${PACKAGE-default} |
7795 |
case $enableval in |
7796 |
yes) enable_shared=yes ;; |
7797 |
no) enable_shared=no ;; |
7798 |
*) |
7799 |
enable_shared=no |
7800 |
# Look at the argument we got. We use all the common list separators. |
7801 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7802 |
for pkg in $enableval; do |
7803 |
IFS=$lt_save_ifs |
7804 |
if test "X$pkg" = "X$p"; then |
7805 |
enable_shared=yes |
7806 |
fi |
7807 |
done |
7808 |
IFS=$lt_save_ifs |
7809 |
;; |
7810 |
esac |
7811 |
else |
7812 |
enable_shared=yes |
7813 |
fi |
7814 |
|
7815 |
|
7816 |
|
7817 |
|
7818 |
|
7819 |
|
7820 |
|
7821 |
|
7822 |
|
7823 |
# Check whether --enable-static was given. |
7824 |
if test "${enable_static+set}" = set; then : |
7825 |
enableval=$enable_static; p=${PACKAGE-default} |
7826 |
case $enableval in |
7827 |
yes) enable_static=yes ;; |
7828 |
no) enable_static=no ;; |
7829 |
*) |
7830 |
enable_static=no |
7831 |
# Look at the argument we got. We use all the common list separators. |
7832 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7833 |
for pkg in $enableval; do |
7834 |
IFS=$lt_save_ifs |
7835 |
if test "X$pkg" = "X$p"; then |
7836 |
enable_static=yes |
7837 |
fi |
7838 |
done |
7839 |
IFS=$lt_save_ifs |
7840 |
;; |
7841 |
esac |
7842 |
else |
7843 |
enable_static=yes |
7844 |
fi |
7845 |
|
7846 |
|
7847 |
|
7848 |
|
7849 |
|
7850 |
|
7851 |
|
7852 |
|
7853 |
|
7854 |
|
7855 |
# Check whether --with-pic was given. |
7856 |
if test "${with_pic+set}" = set; then : |
7857 |
withval=$with_pic; lt_p=${PACKAGE-default} |
7858 |
case $withval in |
7859 |
yes|no) pic_mode=$withval ;; |
7860 |
*) |
7861 |
pic_mode=default |
7862 |
# Look at the argument we got. We use all the common list separators. |
7863 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7864 |
for lt_pkg in $withval; do |
7865 |
IFS=$lt_save_ifs |
7866 |
if test "X$lt_pkg" = "X$lt_p"; then |
7867 |
pic_mode=yes |
7868 |
fi |
7869 |
done |
7870 |
IFS=$lt_save_ifs |
7871 |
;; |
7872 |
esac |
7873 |
else |
7874 |
pic_mode=default |
7875 |
fi |
7876 |
|
7877 |
|
7878 |
|
7879 |
|
7880 |
|
7881 |
|
7882 |
|
7883 |
|
7884 |
# Check whether --enable-fast-install was given. |
7885 |
if test "${enable_fast_install+set}" = set; then : |
7886 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
7887 |
case $enableval in |
7888 |
yes) enable_fast_install=yes ;; |
7889 |
no) enable_fast_install=no ;; |
7890 |
*) |
7891 |
enable_fast_install=no |
7892 |
# Look at the argument we got. We use all the common list separators. |
7893 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7894 |
for pkg in $enableval; do |
7895 |
IFS=$lt_save_ifs |
7896 |
if test "X$pkg" = "X$p"; then |
7897 |
enable_fast_install=yes |
7898 |
fi |
7899 |
done |
7900 |
IFS=$lt_save_ifs |
7901 |
;; |
7902 |
esac |
7903 |
else |
7904 |
enable_fast_install=yes |
7905 |
fi |
7906 |
|
7907 |
|
7908 |
|
7909 |
|
7910 |
|
7911 |
|
7912 |
|
7913 |
|
7914 |
shared_archive_member_spec= |
7915 |
case $host,$enable_shared in |
7916 |
power*-*-aix[5-9]*,yes) |
7917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
7918 |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
7919 |
|
7920 |
# Check whether --with-aix-soname was given. |
7921 |
if test "${with_aix_soname+set}" = set; then : |
7922 |
withval=$with_aix_soname; case $withval in |
7923 |
aix|svr4|both) |
7924 |
;; |
7925 |
*) |
7926 |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
7927 |
;; |
7928 |
esac |
7929 |
lt_cv_with_aix_soname=$with_aix_soname |
7930 |
else |
7931 |
if ${lt_cv_with_aix_soname+:} false; then : |
7932 |
$as_echo_n "(cached) " >&6 |
7933 |
else |
7934 |
lt_cv_with_aix_soname=aix |
7935 |
fi |
7936 |
|
7937 |
with_aix_soname=$lt_cv_with_aix_soname |
7938 |
fi |
7939 |
|
7940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
7941 |
$as_echo "$with_aix_soname" >&6; } |
7942 |
if test aix != "$with_aix_soname"; then |
7943 |
# For the AIX way of multilib, we name the shared archive member |
7944 |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
7945 |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
7946 |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
7947 |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
7948 |
if test 64 = "${OBJECT_MODE-32}"; then |
7949 |
shared_archive_member_spec=shr_64 |
7950 |
else |
7951 |
shared_archive_member_spec=shr |
7952 |
fi |
7953 |
fi |
7954 |
;; |
7955 |
*) |
7956 |
with_aix_soname=aix |
7957 |
;; |
7958 |
esac |
7959 |
|
7960 |
|
7961 |
|
7962 |
|
7963 |
|
7964 |
|
7965 |
|
7966 |
|
7967 |
|
7968 |
|
7969 |
# This can be used to rebuild libtool when needed |
7970 |
LIBTOOL_DEPS=$ltmain |
7971 |
|
7972 |
# Always use our own libtool. |
7973 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
7974 |
|
7975 |
|
7976 |
|
7977 |
|
7978 |
|
7979 |
|
7980 |
|
7981 |
|
7982 |
|
7983 |
|
7984 |
|
7985 |
|
7986 |
|
7987 |
|
7988 |
|
7989 |
|
7990 |
|
7991 |
|
7992 |
|
7993 |
|
7994 |
|
7995 |
|
7996 |
|
7997 |
|
7998 |
|
7999 |
|
8000 |
|
8001 |
|
8002 |
|
8003 |
|
8004 |
test -z "$LN_S" && LN_S="ln -s" |
8005 |
|
8006 |
|
8007 |
|
8008 |
|
8009 |
|
8010 |
|
8011 |
|
8012 |
|
8013 |
|
8014 |
|
8015 |
|
8016 |
|
8017 |
|
8018 |
|
8019 |
if test -n "${ZSH_VERSION+set}"; then |
8020 |
setopt NO_GLOB_SUBST |
8021 |
fi |
8022 |
|
8023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8024 |
$as_echo_n "checking for objdir... " >&6; } |
8025 |
if ${lt_cv_objdir+:} false; then : |
8026 |
$as_echo_n "(cached) " >&6 |
8027 |
else |
8028 |
rm -f .libs 2>/dev/null |
8029 |
mkdir .libs 2>/dev/null |
8030 |
if test -d .libs; then |
8031 |
lt_cv_objdir=.libs |
8032 |
else |
8033 |
# MS-DOS does not allow filenames that begin with a dot. |
8034 |
lt_cv_objdir=_libs |
8035 |
fi |
8036 |
rmdir .libs 2>/dev/null |
8037 |
fi |
8038 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8039 |
$as_echo "$lt_cv_objdir" >&6; } |
8040 |
objdir=$lt_cv_objdir |
8041 |
|
8042 |
|
8043 |
|
8044 |
|
8045 |
|
8046 |
cat >>confdefs.h <<_ACEOF |
8047 |
#define LT_OBJDIR "$lt_cv_objdir/" |
8048 |
_ACEOF |
8049 |
|
8050 |
|
8051 |
|
8052 |
|
8053 |
case $host_os in |
8054 |
aix3*) |
8055 |
# AIX sometimes has problems with the GCC collect2 program. For some |
8056 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
8057 |
# vanish in a puff of smoke. |
8058 |
if test set != "${COLLECT_NAMES+set}"; then |
8059 |
COLLECT_NAMES= |
8060 |
export COLLECT_NAMES |
8061 |
fi |
8062 |
;; |
8063 |
esac |
8064 |
|
8065 |
# Global variables: |
8066 |
ofile=libtool |
8067 |
can_build_shared=yes |
8068 |
|
8069 |
# All known linkers require a '.a' archive for static linking (except MSVC, |
8070 |
# which needs '.lib'). |
8071 |
libext=a |
8072 |
|
8073 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
8074 |
|
8075 |
old_CC=$CC |
8076 |
old_CFLAGS=$CFLAGS |
8077 |
|
8078 |
# Set sane defaults for various variables |
8079 |
test -z "$CC" && CC=cc |
8080 |
test -z "$LTCC" && LTCC=$CC |
8081 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
8082 |
test -z "$LD" && LD=ld |
8083 |
test -z "$ac_objext" && ac_objext=o |
8084 |
|
8085 |
func_cc_basename $compiler |
8086 |
cc_basename=$func_cc_basename_result |
8087 |
|
8088 |
|
8089 |
# Only perform the check for file, if the check method requires it |
8090 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
8091 |
case $deplibs_check_method in |
8092 |
file_magic*) |
8093 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
8094 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8095 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
8096 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8097 |
$as_echo_n "(cached) " >&6 |
8098 |
else |
8099 |
case $MAGIC_CMD in |
8100 |
[\\/*] | ?:[\\/]*) |
8101 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8102 |
;; |
8103 |
*) |
8104 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8105 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8106 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8107 |
for ac_dir in $ac_dummy; do |
8108 |
IFS=$lt_save_ifs |
8109 |
test -z "$ac_dir" && ac_dir=. |
8110 |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8111 |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
8112 |
if test -n "$file_magic_test_file"; then |
8113 |
case $deplibs_check_method in |
8114 |
"file_magic "*) |
8115 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8116 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8117 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8118 |
$EGREP "$file_magic_regex" > /dev/null; then |
8119 |
: |
8120 |
else |
8121 |
cat <<_LT_EOF 1>&2 |
8122 |
|
8123 |
*** Warning: the command libtool uses to detect shared libraries, |
8124 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8125 |
*** The result is that libtool may fail to recognize shared libraries |
8126 |
*** as such. This will affect the creation of libtool libraries that |
8127 |
*** depend on shared libraries, but programs linked with such libtool |
8128 |
*** libraries will work regardless of this problem. Nevertheless, you |
8129 |
*** may want to report the problem to your system manager and/or to |
8130 |
*** bug-libtool@gnu.org |
8131 |
|
8132 |
_LT_EOF |
8133 |
fi ;; |
8134 |
esac |
8135 |
fi |
8136 |
break |
8137 |
fi |
8138 |
done |
8139 |
IFS=$lt_save_ifs |
8140 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8141 |
;; |
8142 |
esac |
8143 |
fi |
8144 |
|
8145 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8146 |
if test -n "$MAGIC_CMD"; then |
8147 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8148 |
$as_echo "$MAGIC_CMD" >&6; } |
8149 |
else |
8150 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8151 |
$as_echo "no" >&6; } |
8152 |
fi |
8153 |
|
8154 |
|
8155 |
|
8156 |
|
8157 |
|
8158 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
8159 |
if test -n "$ac_tool_prefix"; then |
8160 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8161 |
$as_echo_n "checking for file... " >&6; } |
8162 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8163 |
$as_echo_n "(cached) " >&6 |
8164 |
else |
8165 |
case $MAGIC_CMD in |
8166 |
[\\/*] | ?:[\\/]*) |
8167 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8168 |
;; |
8169 |
*) |
8170 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8171 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8172 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8173 |
for ac_dir in $ac_dummy; do |
8174 |
IFS=$lt_save_ifs |
8175 |
test -z "$ac_dir" && ac_dir=. |
8176 |
if test -f "$ac_dir/file"; then |
8177 |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
8178 |
if test -n "$file_magic_test_file"; then |
8179 |
case $deplibs_check_method in |
8180 |
"file_magic "*) |
8181 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8182 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8183 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8184 |
$EGREP "$file_magic_regex" > /dev/null; then |
8185 |
: |
8186 |
else |
8187 |
cat <<_LT_EOF 1>&2 |
8188 |
|
8189 |
*** Warning: the command libtool uses to detect shared libraries, |
8190 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8191 |
*** The result is that libtool may fail to recognize shared libraries |
8192 |
*** as such. This will affect the creation of libtool libraries that |
8193 |
*** depend on shared libraries, but programs linked with such libtool |
8194 |
*** libraries will work regardless of this problem. Nevertheless, you |
8195 |
*** may want to report the problem to your system manager and/or to |
8196 |
*** bug-libtool@gnu.org |
8197 |
|
8198 |
_LT_EOF |
8199 |
fi ;; |
8200 |
esac |
8201 |
fi |
8202 |
break |
8203 |
fi |
8204 |
done |
8205 |
IFS=$lt_save_ifs |
8206 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8207 |
;; |
8208 |
esac |
8209 |
fi |
8210 |
|
8211 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8212 |
if test -n "$MAGIC_CMD"; then |
8213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8214 |
$as_echo "$MAGIC_CMD" >&6; } |
8215 |
else |
8216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8217 |
$as_echo "no" >&6; } |
8218 |
fi |
8219 |
|
8220 |
|
8221 |
else |
8222 |
MAGIC_CMD=: |
8223 |
fi |
8224 |
fi |
8225 |
|
8226 |
fi |
8227 |
;; |
8228 |
esac |
8229 |
|
8230 |
# Use C for the default configuration in the libtool script |
8231 |
|
8232 |
lt_save_CC=$CC |
8233 |
ac_ext=c |
8234 |
ac_cpp='$CPP $CPPFLAGS' |
8235 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8236 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8237 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8238 |
|
8239 |
|
8240 |
# Source file extension for C test sources. |
8241 |
ac_ext=c |
8242 |
|
8243 |
# Object file extension for compiled C test sources. |
8244 |
objext=o |
8245 |
objext=$objext |
8246 |
|
8247 |
# Code to be used in simple compile tests |
8248 |
lt_simple_compile_test_code="int some_variable = 0;" |
8249 |
|
8250 |
# Code to be used in simple link tests |
8251 |
lt_simple_link_test_code='int main(){return(0);}' |
8252 |
|
8253 |
|
8254 |
|
8255 |
|
8256 |
|
8257 |
|
8258 |
|
8259 |
# If no C compiler was specified, use CC. |
8260 |
LTCC=${LTCC-"$CC"} |
8261 |
|
8262 |
# If no C compiler flags were specified, use CFLAGS. |
8263 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
8264 |
|
8265 |
# Allow CC to be a program name with arguments. |
8266 |
compiler=$CC |
8267 |
|
8268 |
# Save the default compiler, since it gets overwritten when the other |
8269 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
8270 |
compiler_DEFAULT=$CC |
8271 |
|
8272 |
# save warnings/boilerplate of simple test code |
8273 |
ac_outfile=conftest.$ac_objext |
8274 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
8275 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8276 |
_lt_compiler_boilerplate=`cat conftest.err` |
8277 |
$RM conftest* |
8278 |
|
8279 |
ac_outfile=conftest.$ac_objext |
8280 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8281 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8282 |
_lt_linker_boilerplate=`cat conftest.err` |
8283 |
$RM -r conftest* |
8284 |
|
8285 |
|
8286 |
## CAVEAT EMPTOR: |
8287 |
## There is no encapsulation within the following macros, do not change |
8288 |
## the running order or otherwise move them around unless you know exactly |
8289 |
## what you are doing... |
8290 |
if test -n "$compiler"; then |
8291 |
|
8292 |
lt_prog_compiler_no_builtin_flag= |
8293 |
|
8294 |
if test yes = "$GCC"; then |
8295 |
case $cc_basename in |
8296 |
nvcc*) |
8297 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
8298 |
*) |
8299 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
8300 |
esac |
8301 |
|
8302 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8303 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8304 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8305 |
$as_echo_n "(cached) " >&6 |
8306 |
else |
8307 |
lt_cv_prog_compiler_rtti_exceptions=no |
8308 |
ac_outfile=conftest.$ac_objext |
8309 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8310 |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8311 |
# Insert the option either (1) after the last *FLAGS variable, or |
8312 |
# (2) before a word containing "conftest.", or (3) at the end. |
8313 |
# Note that $ac_compile itself does not contain backslashes and begins |
8314 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8315 |
# The option is referenced via a variable to avoid confusing sed. |
8316 |
lt_compile=`echo "$ac_compile" | $SED \ |
8317 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8318 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8319 |
-e 's:$: $lt_compiler_flag:'` |
8320 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8321 |
(eval "$lt_compile" 2>conftest.err) |
8322 |
ac_status=$? |
8323 |
cat conftest.err >&5 |
8324 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8325 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8326 |
# The compiler can only warn and ignore the option if not recognized |
8327 |
# So say no if there are warnings other than the usual output. |
8328 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8329 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8330 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8331 |
lt_cv_prog_compiler_rtti_exceptions=yes |
8332 |
fi |
8333 |
fi |
8334 |
$RM conftest* |
8335 |
|
8336 |
fi |
8337 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8338 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8339 |
|
8340 |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8341 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8342 |
else |
8343 |
: |
8344 |
fi |
8345 |
|
8346 |
fi |
8347 |
|
8348 |
|
8349 |
|
8350 |
|
8351 |
|
8352 |
|
8353 |
lt_prog_compiler_wl= |
8354 |
lt_prog_compiler_pic= |
8355 |
lt_prog_compiler_static= |
8356 |
|
8357 |
|
8358 |
if test yes = "$GCC"; then |
8359 |
lt_prog_compiler_wl='-Wl,' |
8360 |
lt_prog_compiler_static='-static' |
8361 |
|
8362 |
case $host_os in |
8363 |
aix*) |
8364 |
# All AIX code is PIC. |
8365 |
if test ia64 = "$host_cpu"; then |
8366 |
# AIX 5 now supports IA64 processor |
8367 |
lt_prog_compiler_static='-Bstatic' |
8368 |
fi |
8369 |
lt_prog_compiler_pic='-fPIC' |
8370 |
;; |
8371 |
|
8372 |
amigaos*) |
8373 |
case $host_cpu in |
8374 |
powerpc) |
8375 |
# see comment about AmigaOS4 .so support |
8376 |
lt_prog_compiler_pic='-fPIC' |
8377 |
;; |
8378 |
m68k) |
8379 |
# FIXME: we need at least 68020 code to build shared libraries, but |
8380 |
# adding the '-m68020' flag to GCC prevents building anything better, |
8381 |
# like '-m68040'. |
8382 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8383 |
;; |
8384 |
esac |
8385 |
;; |
8386 |
|
8387 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8388 |
# PIC is the default for these OSes. |
8389 |
;; |
8390 |
|
8391 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8392 |
# This hack is so that the source file can tell whether it is being |
8393 |
# built for inclusion in a dll (and should export symbols for example). |
8394 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
8395 |
# (--disable-auto-import) libraries |
8396 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8397 |
case $host_os in |
8398 |
os2*) |
8399 |
lt_prog_compiler_static='$wl-static' |
8400 |
;; |
8401 |
esac |
8402 |
;; |
8403 |
|
8404 |
darwin* | rhapsody*) |
8405 |
# PIC is the default on this platform |
8406 |
# Common symbols not allowed in MH_DYLIB files |
8407 |
lt_prog_compiler_pic='-fno-common' |
8408 |
;; |
8409 |
|
8410 |
haiku*) |
8411 |
# PIC is the default for Haiku. |
8412 |
# The "-static" flag exists, but is broken. |
8413 |
lt_prog_compiler_static= |
8414 |
;; |
8415 |
|
8416 |
hpux*) |
8417 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8418 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8419 |
# sets the default TLS model and affects inlining. |
8420 |
case $host_cpu in |
8421 |
hppa*64*) |
8422 |
# +Z the default |
8423 |
;; |
8424 |
*) |
8425 |
lt_prog_compiler_pic='-fPIC' |
8426 |
;; |
8427 |
esac |
8428 |
;; |
8429 |
|
8430 |
interix[3-9]*) |
8431 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8432 |
# Instead, we relocate shared libraries at runtime. |
8433 |
;; |
8434 |
|
8435 |
msdosdjgpp*) |
8436 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
8437 |
# on systems that don't support them. |
8438 |
lt_prog_compiler_can_build_shared=no |
8439 |
enable_shared=no |
8440 |
;; |
8441 |
|
8442 |
*nto* | *qnx*) |
8443 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8444 |
# it will coredump. |
8445 |
lt_prog_compiler_pic='-fPIC -shared' |
8446 |
;; |
8447 |
|
8448 |
sysv4*MP*) |
8449 |
if test -d /usr/nec; then |
8450 |
lt_prog_compiler_pic=-Kconform_pic |
8451 |
fi |
8452 |
;; |
8453 |
|
8454 |
*) |
8455 |
lt_prog_compiler_pic='-fPIC' |
8456 |
;; |
8457 |
esac |
8458 |
|
8459 |
case $cc_basename in |
8460 |
nvcc*) # Cuda Compiler Driver 2.2 |
8461 |
lt_prog_compiler_wl='-Xlinker ' |
8462 |
if test -n "$lt_prog_compiler_pic"; then |
8463 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
8464 |
fi |
8465 |
;; |
8466 |
esac |
8467 |
else |
8468 |
# PORTME Check for flag to pass linker flags through the system compiler. |
8469 |
case $host_os in |
8470 |
aix*) |
8471 |
lt_prog_compiler_wl='-Wl,' |
8472 |
if test ia64 = "$host_cpu"; then |
8473 |
# AIX 5 now supports IA64 processor |
8474 |
lt_prog_compiler_static='-Bstatic' |
8475 |
else |
8476 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
8477 |
fi |
8478 |
;; |
8479 |
|
8480 |
darwin* | rhapsody*) |
8481 |
# PIC is the default on this platform |
8482 |
# Common symbols not allowed in MH_DYLIB files |
8483 |
lt_prog_compiler_pic='-fno-common' |
8484 |
case $cc_basename in |
8485 |
nagfor*) |
8486 |
# NAG Fortran compiler |
8487 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8488 |
lt_prog_compiler_pic='-PIC' |
8489 |
lt_prog_compiler_static='-Bstatic' |
8490 |
;; |
8491 |
esac |
8492 |
;; |
8493 |
|
8494 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8495 |
# This hack is so that the source file can tell whether it is being |
8496 |
# built for inclusion in a dll (and should export symbols for example). |
8497 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8498 |
case $host_os in |
8499 |
os2*) |
8500 |
lt_prog_compiler_static='$wl-static' |
8501 |
;; |
8502 |
esac |
8503 |
;; |
8504 |
|
8505 |
hpux9* | hpux10* | hpux11*) |
8506 |
lt_prog_compiler_wl='-Wl,' |
8507 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8508 |
# not for PA HP-UX. |
8509 |
case $host_cpu in |
8510 |
hppa*64*|ia64*) |
8511 |
# +Z the default |
8512 |
;; |
8513 |
*) |
8514 |
lt_prog_compiler_pic='+Z' |
8515 |
;; |
8516 |
esac |
8517 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
8518 |
lt_prog_compiler_static='$wl-a ${wl}archive' |
8519 |
;; |
8520 |
|
8521 |
irix5* | irix6* | nonstopux*) |
8522 |
lt_prog_compiler_wl='-Wl,' |
8523 |
# PIC (with -KPIC) is the default. |
8524 |
lt_prog_compiler_static='-non_shared' |
8525 |
;; |
8526 |
|
8527 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8528 |
case $cc_basename in |
8529 |
# old Intel for x86_64, which still supported -KPIC. |
8530 |
ecc*) |
8531 |
lt_prog_compiler_wl='-Wl,' |
8532 |
lt_prog_compiler_pic='-KPIC' |
8533 |
lt_prog_compiler_static='-static' |
8534 |
;; |
8535 |
# icc used to be incompatible with GCC. |
8536 |
# ICC 10 doesn't accept -KPIC any more. |
8537 |
icc* | ifort*) |
8538 |
lt_prog_compiler_wl='-Wl,' |
8539 |
lt_prog_compiler_pic='-fPIC' |
8540 |
lt_prog_compiler_static='-static' |
8541 |
;; |
8542 |
# Lahey Fortran 8.1. |
8543 |
lf95*) |
8544 |
lt_prog_compiler_wl='-Wl,' |
8545 |
lt_prog_compiler_pic='--shared' |
8546 |
lt_prog_compiler_static='--static' |
8547 |
;; |
8548 |
nagfor*) |
8549 |
# NAG Fortran compiler |
8550 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8551 |
lt_prog_compiler_pic='-PIC' |
8552 |
lt_prog_compiler_static='-Bstatic' |
8553 |
;; |
8554 |
tcc*) |
8555 |
# Fabrice Bellard et al's Tiny C Compiler |
8556 |
lt_prog_compiler_wl='-Wl,' |
8557 |
lt_prog_compiler_pic='-fPIC' |
8558 |
lt_prog_compiler_static='-static' |
8559 |
;; |
8560 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8561 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
8562 |
# which looks to be a dead project) |
8563 |
lt_prog_compiler_wl='-Wl,' |
8564 |
lt_prog_compiler_pic='-fpic' |
8565 |
lt_prog_compiler_static='-Bstatic' |
8566 |
;; |
8567 |
ccc*) |
8568 |
lt_prog_compiler_wl='-Wl,' |
8569 |
# All Alpha code is PIC. |
8570 |
lt_prog_compiler_static='-non_shared' |
8571 |
;; |
8572 |
xl* | bgxl* | bgf* | mpixl*) |
8573 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
8574 |
lt_prog_compiler_wl='-Wl,' |
8575 |
lt_prog_compiler_pic='-qpic' |
8576 |
lt_prog_compiler_static='-qstaticlink' |
8577 |
;; |
8578 |
*) |
8579 |
case `$CC -V 2>&1 | sed 5q` in |
8580 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8581 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
8582 |
lt_prog_compiler_pic='-KPIC' |
8583 |
lt_prog_compiler_static='-Bstatic' |
8584 |
lt_prog_compiler_wl='' |
8585 |
;; |
8586 |
*Sun\ F* | *Sun*Fortran*) |
8587 |
lt_prog_compiler_pic='-KPIC' |
8588 |
lt_prog_compiler_static='-Bstatic' |
8589 |
lt_prog_compiler_wl='-Qoption ld ' |
8590 |
;; |
8591 |
*Sun\ C*) |
8592 |
# Sun C 5.9 |
8593 |
lt_prog_compiler_pic='-KPIC' |
8594 |
lt_prog_compiler_static='-Bstatic' |
8595 |
lt_prog_compiler_wl='-Wl,' |
8596 |
;; |
8597 |
*Intel*\ [CF]*Compiler*) |
8598 |
lt_prog_compiler_wl='-Wl,' |
8599 |
lt_prog_compiler_pic='-fPIC' |
8600 |
lt_prog_compiler_static='-static' |
8601 |
;; |
8602 |
*Portland\ Group*) |
8603 |
lt_prog_compiler_wl='-Wl,' |
8604 |
lt_prog_compiler_pic='-fpic' |
8605 |
lt_prog_compiler_static='-Bstatic' |
8606 |
;; |
8607 |
esac |
8608 |
;; |
8609 |
esac |
8610 |
;; |
8611 |
|
8612 |
newsos6) |
8613 |
lt_prog_compiler_pic='-KPIC' |
8614 |
lt_prog_compiler_static='-Bstatic' |
8615 |
;; |
8616 |
|
8617 |
*nto* | *qnx*) |
8618 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8619 |
# it will coredump. |
8620 |
lt_prog_compiler_pic='-fPIC -shared' |
8621 |
;; |
8622 |
|
8623 |
osf3* | osf4* | osf5*) |
8624 |
lt_prog_compiler_wl='-Wl,' |
8625 |
# All OSF/1 code is PIC. |
8626 |
lt_prog_compiler_static='-non_shared' |
8627 |
;; |
8628 |
|
8629 |
rdos*) |
8630 |
lt_prog_compiler_static='-non_shared' |
8631 |
;; |
8632 |
|
8633 |
solaris*) |
8634 |
lt_prog_compiler_pic='-KPIC' |
8635 |
lt_prog_compiler_static='-Bstatic' |
8636 |
case $cc_basename in |
8637 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8638 |
lt_prog_compiler_wl='-Qoption ld ';; |
8639 |
*) |
8640 |
lt_prog_compiler_wl='-Wl,';; |
8641 |
esac |
8642 |
;; |
8643 |
|
8644 |
sunos4*) |
8645 |
lt_prog_compiler_wl='-Qoption ld ' |
8646 |
lt_prog_compiler_pic='-PIC' |
8647 |
lt_prog_compiler_static='-Bstatic' |
8648 |
;; |
8649 |
|
8650 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
8651 |
lt_prog_compiler_wl='-Wl,' |
8652 |
lt_prog_compiler_pic='-KPIC' |
8653 |
lt_prog_compiler_static='-Bstatic' |
8654 |
;; |
8655 |
|
8656 |
sysv4*MP*) |
8657 |
if test -d /usr/nec; then |
8658 |
lt_prog_compiler_pic='-Kconform_pic' |
8659 |
lt_prog_compiler_static='-Bstatic' |
8660 |
fi |
8661 |
;; |
8662 |
|
8663 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8664 |
lt_prog_compiler_wl='-Wl,' |
8665 |
lt_prog_compiler_pic='-KPIC' |
8666 |
lt_prog_compiler_static='-Bstatic' |
8667 |
;; |
8668 |
|
8669 |
unicos*) |
8670 |
lt_prog_compiler_wl='-Wl,' |
8671 |
lt_prog_compiler_can_build_shared=no |
8672 |
;; |
8673 |
|
8674 |
uts4*) |
8675 |
lt_prog_compiler_pic='-pic' |
8676 |
lt_prog_compiler_static='-Bstatic' |
8677 |
;; |
8678 |
|
8679 |
*) |
8680 |
lt_prog_compiler_can_build_shared=no |
8681 |
;; |
8682 |
esac |
8683 |
fi |
8684 |
|
8685 |
case $host_os in |
8686 |
# For platforms that do not support PIC, -DPIC is meaningless: |
8687 |
*djgpp*) |
8688 |
lt_prog_compiler_pic= |
8689 |
;; |
8690 |
*) |
8691 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
8692 |
;; |
8693 |
esac |
8694 |
|
8695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8696 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
8697 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
8698 |
$as_echo_n "(cached) " >&6 |
8699 |
else |
8700 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
8701 |
fi |
8702 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
8703 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
8704 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
8705 |
|
8706 |
# |
8707 |
# Check to make sure the PIC flag actually works. |
8708 |
# |
8709 |
if test -n "$lt_prog_compiler_pic"; then |
8710 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8711 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
8712 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8713 |
$as_echo_n "(cached) " >&6 |
8714 |
else |
8715 |
lt_cv_prog_compiler_pic_works=no |
8716 |
ac_outfile=conftest.$ac_objext |
8717 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8718 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8719 |
# Insert the option either (1) after the last *FLAGS variable, or |
8720 |
# (2) before a word containing "conftest.", or (3) at the end. |
8721 |
# Note that $ac_compile itself does not contain backslashes and begins |
8722 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8723 |
# The option is referenced via a variable to avoid confusing sed. |
8724 |
lt_compile=`echo "$ac_compile" | $SED \ |
8725 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8726 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8727 |
-e 's:$: $lt_compiler_flag:'` |
8728 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8729 |
(eval "$lt_compile" 2>conftest.err) |
8730 |
ac_status=$? |
8731 |
cat conftest.err >&5 |
8732 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8733 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8734 |
# The compiler can only warn and ignore the option if not recognized |
8735 |
# So say no if there are warnings other than the usual output. |
8736 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8737 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8738 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8739 |
lt_cv_prog_compiler_pic_works=yes |
8740 |
fi |
8741 |
fi |
8742 |
$RM conftest* |
8743 |
|
8744 |
fi |
8745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8746 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
8747 |
|
8748 |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8749 |
case $lt_prog_compiler_pic in |
8750 |
"" | " "*) ;; |
8751 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
8752 |
esac |
8753 |
else |
8754 |
lt_prog_compiler_pic= |
8755 |
lt_prog_compiler_can_build_shared=no |
8756 |
fi |
8757 |
|
8758 |
fi |
8759 |
|
8760 |
|
8761 |
|
8762 |
|
8763 |
|
8764 |
|
8765 |
|
8766 |
|
8767 |
|
8768 |
|
8769 |
|
8770 |
# |
8771 |
# Check to make sure the static flag actually works. |
8772 |
# |
8773 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8774 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8775 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
8776 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
8777 |
$as_echo_n "(cached) " >&6 |
8778 |
else |
8779 |
lt_cv_prog_compiler_static_works=no |
8780 |
save_LDFLAGS=$LDFLAGS |
8781 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8782 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
8783 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8784 |
# The linker can only warn and ignore the option if not recognized |
8785 |
# So say no if there are warnings |
8786 |
if test -s conftest.err; then |
8787 |
# Append any errors to the config.log. |
8788 |
cat conftest.err 1>&5 |
8789 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8790 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8791 |
if diff conftest.exp conftest.er2 >/dev/null; then |
8792 |
lt_cv_prog_compiler_static_works=yes |
8793 |
fi |
8794 |
else |
8795 |
lt_cv_prog_compiler_static_works=yes |
8796 |
fi |
8797 |
fi |
8798 |
$RM -r conftest* |
8799 |
LDFLAGS=$save_LDFLAGS |
8800 |
|
8801 |
fi |
8802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8803 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
8804 |
|
8805 |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
8806 |
: |
8807 |
else |
8808 |
lt_prog_compiler_static= |
8809 |
fi |
8810 |
|
8811 |
|
8812 |
|
8813 |
|
8814 |
|
8815 |
|
8816 |
|
8817 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8818 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8819 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8820 |
$as_echo_n "(cached) " >&6 |
8821 |
else |
8822 |
lt_cv_prog_compiler_c_o=no |
8823 |
$RM -r conftest 2>/dev/null |
8824 |
mkdir conftest |
8825 |
cd conftest |
8826 |
mkdir out |
8827 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8828 |
|
8829 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8830 |
# Insert the option either (1) after the last *FLAGS variable, or |
8831 |
# (2) before a word containing "conftest.", or (3) at the end. |
8832 |
# Note that $ac_compile itself does not contain backslashes and begins |
8833 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8834 |
lt_compile=`echo "$ac_compile" | $SED \ |
8835 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8836 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8837 |
-e 's:$: $lt_compiler_flag:'` |
8838 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8839 |
(eval "$lt_compile" 2>out/conftest.err) |
8840 |
ac_status=$? |
8841 |
cat out/conftest.err >&5 |
8842 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8843 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8844 |
then |
8845 |
# The compiler can only warn and ignore the option if not recognized |
8846 |
# So say no if there are warnings |
8847 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8848 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8849 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8850 |
lt_cv_prog_compiler_c_o=yes |
8851 |
fi |
8852 |
fi |
8853 |
chmod u+w . 2>&5 |
8854 |
$RM conftest* |
8855 |
# SGI C++ compiler will create directory out/ii_files/ for |
8856 |
# template instantiation |
8857 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8858 |
$RM out/* && rmdir out |
8859 |
cd .. |
8860 |
$RM -r conftest |
8861 |
$RM conftest* |
8862 |
|
8863 |
fi |
8864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8865 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8866 |
|
8867 |
|
8868 |
|
8869 |
|
8870 |
|
8871 |
|
8872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8873 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8874 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8875 |
$as_echo_n "(cached) " >&6 |
8876 |
else |
8877 |
lt_cv_prog_compiler_c_o=no |
8878 |
$RM -r conftest 2>/dev/null |
8879 |
mkdir conftest |
8880 |
cd conftest |
8881 |
mkdir out |
8882 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8883 |
|
8884 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8885 |
# Insert the option either (1) after the last *FLAGS variable, or |
8886 |
# (2) before a word containing "conftest.", or (3) at the end. |
8887 |
# Note that $ac_compile itself does not contain backslashes and begins |
8888 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8889 |
lt_compile=`echo "$ac_compile" | $SED \ |
8890 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8891 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8892 |
-e 's:$: $lt_compiler_flag:'` |
8893 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8894 |
(eval "$lt_compile" 2>out/conftest.err) |
8895 |
ac_status=$? |
8896 |
cat out/conftest.err >&5 |
8897 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8898 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8899 |
then |
8900 |
# The compiler can only warn and ignore the option if not recognized |
8901 |
# So say no if there are warnings |
8902 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8903 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8904 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8905 |
lt_cv_prog_compiler_c_o=yes |
8906 |
fi |
8907 |
fi |
8908 |
chmod u+w . 2>&5 |
8909 |
$RM conftest* |
8910 |
# SGI C++ compiler will create directory out/ii_files/ for |
8911 |
# template instantiation |
8912 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8913 |
$RM out/* && rmdir out |
8914 |
cd .. |
8915 |
$RM -r conftest |
8916 |
$RM conftest* |
8917 |
|
8918 |
fi |
8919 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8920 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8921 |
|
8922 |
|
8923 |
|
8924 |
|
8925 |
hard_links=nottested |
8926 |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
8927 |
# do not overwrite the value of need_locks provided by the user |
8928 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8929 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
8930 |
hard_links=yes |
8931 |
$RM conftest* |
8932 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8933 |
touch conftest.a |
8934 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
8935 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8936 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8937 |
$as_echo "$hard_links" >&6; } |
8938 |
if test no = "$hard_links"; then |
8939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
8940 |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
8941 |
need_locks=warn |
8942 |
fi |
8943 |
else |
8944 |
need_locks=no |
8945 |
fi |
8946 |
|
8947 |
|
8948 |
|
8949 |
|
8950 |
|
8951 |
|
8952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8953 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
8954 |
|
8955 |
runpath_var= |
8956 |
allow_undefined_flag= |
8957 |
always_export_symbols=no |
8958 |
archive_cmds= |
8959 |
archive_expsym_cmds= |
8960 |
compiler_needs_object=no |
8961 |
enable_shared_with_static_runtimes=no |
8962 |
export_dynamic_flag_spec= |
8963 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
8964 |
hardcode_automatic=no |
8965 |
hardcode_direct=no |
8966 |
hardcode_direct_absolute=no |
8967 |
hardcode_libdir_flag_spec= |
8968 |
hardcode_libdir_separator= |
8969 |
hardcode_minus_L=no |
8970 |
hardcode_shlibpath_var=unsupported |
8971 |
inherit_rpath=no |
8972 |
link_all_deplibs=unknown |
8973 |
module_cmds= |
8974 |
module_expsym_cmds= |
8975 |
old_archive_from_new_cmds= |
8976 |
old_archive_from_expsyms_cmds= |
8977 |
thread_safe_flag_spec= |
8978 |
whole_archive_flag_spec= |
8979 |
# include_expsyms should be a list of space-separated symbols to be *always* |
8980 |
# included in the symbol list |
8981 |
include_expsyms= |
8982 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
8983 |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
8984 |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
8985 |
# as well as any symbol that contains 'd'. |
8986 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8987 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8988 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
8989 |
# the symbol is explicitly referenced. Since portable code cannot |
8990 |
# rely on this symbol name, it's probably fine to never include it in |
8991 |
# preloaded symbol tables. |
8992 |
# Exclude shared library initialization/finalization symbols. |
8993 |
extract_expsyms_cmds= |
8994 |
|
8995 |
case $host_os in |
8996 |
cygwin* | mingw* | pw32* | cegcc*) |
8997 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
8998 |
# When not using gcc, we currently assume that we are using |
8999 |
# Microsoft Visual C++. |
9000 |
if test yes != "$GCC"; then |
9001 |
with_gnu_ld=no |
9002 |
fi |
9003 |
;; |
9004 |
interix*) |
9005 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
9006 |
with_gnu_ld=yes |
9007 |
;; |
9008 |
openbsd* | bitrig*) |
9009 |
with_gnu_ld=no |
9010 |
;; |
9011 |
esac |
9012 |
|
9013 |
ld_shlibs=yes |
9014 |
|
9015 |
# On some targets, GNU ld is compatible enough with the native linker |
9016 |
# that we're better off using the native interface for both. |
9017 |
lt_use_gnu_ld_interface=no |
9018 |
if test yes = "$with_gnu_ld"; then |
9019 |
case $host_os in |
9020 |
aix*) |
9021 |
# The AIX port of GNU ld has always aspired to compatibility |
9022 |
# with the native linker. However, as the warning in the GNU ld |
9023 |
# block says, versions before 2.19.5* couldn't really create working |
9024 |
# shared libraries, regardless of the interface used. |
9025 |
case `$LD -v 2>&1` in |
9026 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
9027 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
9028 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
9029 |
*) |
9030 |
lt_use_gnu_ld_interface=yes |
9031 |
;; |
9032 |
esac |
9033 |
;; |
9034 |
*) |
9035 |
lt_use_gnu_ld_interface=yes |
9036 |
;; |
9037 |
esac |
9038 |
fi |
9039 |
|
9040 |
if test yes = "$lt_use_gnu_ld_interface"; then |
9041 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
9042 |
wlarc='$wl' |
9043 |
|
9044 |
# Set some defaults for GNU ld with shared library support. These |
9045 |
# are reset later if shared libraries are not supported. Putting them |
9046 |
# here allows them to be overridden if necessary. |
9047 |
runpath_var=LD_RUN_PATH |
9048 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9049 |
export_dynamic_flag_spec='$wl--export-dynamic' |
9050 |
# ancient GNU ld didn't support --whole-archive et. al. |
9051 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
9052 |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
9053 |
else |
9054 |
whole_archive_flag_spec= |
9055 |
fi |
9056 |
supports_anon_versioning=no |
9057 |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
9058 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
9059 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9060 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
9061 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
9062 |
*\ 2.11.*) ;; # other 2.11 versions |
9063 |
*) supports_anon_versioning=yes ;; |
9064 |
esac |
9065 |
|
9066 |
# See if GNU ld supports shared libraries. |
9067 |
case $host_os in |
9068 |
aix[3-9]*) |
9069 |
# On AIX/PPC, the GNU linker is very broken |
9070 |
if test ia64 != "$host_cpu"; then |
9071 |
ld_shlibs=no |
9072 |
cat <<_LT_EOF 1>&2 |
9073 |
|
9074 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
9075 |
*** to be unable to reliably create shared libraries on AIX. |
9076 |
*** Therefore, libtool is disabling shared libraries support. If you |
9077 |
*** really care for shared libraries, you may want to install binutils |
9078 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
9079 |
*** You will then need to restart the configuration process. |
9080 |
|
9081 |
_LT_EOF |
9082 |
fi |
9083 |
;; |
9084 |
|
9085 |
amigaos*) |
9086 |
case $host_cpu in |
9087 |
powerpc) |
9088 |
# see comment about AmigaOS4 .so support |
9089 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9090 |
archive_expsym_cmds='' |
9091 |
;; |
9092 |
m68k) |
9093 |
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)' |
9094 |
hardcode_libdir_flag_spec='-L$libdir' |
9095 |
hardcode_minus_L=yes |
9096 |
;; |
9097 |
esac |
9098 |
;; |
9099 |
|
9100 |
beos*) |
9101 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9102 |
allow_undefined_flag=unsupported |
9103 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9104 |
# support --undefined. This deserves some investigation. FIXME |
9105 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9106 |
else |
9107 |
ld_shlibs=no |
9108 |
fi |
9109 |
;; |
9110 |
|
9111 |
cygwin* | mingw* | pw32* | cegcc*) |
9112 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9113 |
# as there is no search path for DLLs. |
9114 |
hardcode_libdir_flag_spec='-L$libdir' |
9115 |
export_dynamic_flag_spec='$wl--export-all-symbols' |
9116 |
allow_undefined_flag=unsupported |
9117 |
always_export_symbols=no |
9118 |
enable_shared_with_static_runtimes=yes |
9119 |
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' |
9120 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
9121 |
|
9122 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9123 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9124 |
# If the export-symbols file already is a .def file, use it as |
9125 |
# is; otherwise, prepend EXPORTS... |
9126 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9127 |
cp $export_symbols $output_objdir/$soname.def; |
9128 |
else |
9129 |
echo EXPORTS > $output_objdir/$soname.def; |
9130 |
cat $export_symbols >> $output_objdir/$soname.def; |
9131 |
fi~ |
9132 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9133 |
else |
9134 |
ld_shlibs=no |
9135 |
fi |
9136 |
;; |
9137 |
|
9138 |
haiku*) |
9139 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9140 |
link_all_deplibs=yes |
9141 |
;; |
9142 |
|
9143 |
os2*) |
9144 |
hardcode_libdir_flag_spec='-L$libdir' |
9145 |
hardcode_minus_L=yes |
9146 |
allow_undefined_flag=unsupported |
9147 |
shrext_cmds=.dll |
9148 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9149 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9150 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9151 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9152 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
9153 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9154 |
emximp -o $lib $output_objdir/$libname.def' |
9155 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9156 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9157 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9158 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9159 |
prefix_cmds="$SED"~ |
9160 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
9161 |
prefix_cmds="$prefix_cmds -e 1d"; |
9162 |
fi~ |
9163 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
9164 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
9165 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9166 |
emximp -o $lib $output_objdir/$libname.def' |
9167 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
9168 |
enable_shared_with_static_runtimes=yes |
9169 |
;; |
9170 |
|
9171 |
interix[3-9]*) |
9172 |
hardcode_direct=no |
9173 |
hardcode_shlibpath_var=no |
9174 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9175 |
export_dynamic_flag_spec='$wl-E' |
9176 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9177 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
9178 |
# default) and relocated if they conflict, which is a slow very memory |
9179 |
# consuming and fragmenting process. To avoid this, we pick a random, |
9180 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9181 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9182 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9183 |
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' |
9184 |
;; |
9185 |
|
9186 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9187 |
tmp_diet=no |
9188 |
if test linux-dietlibc = "$host_os"; then |
9189 |
case $cc_basename in |
9190 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9191 |
esac |
9192 |
fi |
9193 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9194 |
&& test no = "$tmp_diet" |
9195 |
then |
9196 |
tmp_addflag=' $pic_flag' |
9197 |
tmp_sharedflag='-shared' |
9198 |
case $cc_basename,$host_cpu in |
9199 |
pgcc*) # Portland Group C compiler |
9200 |
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' |
9201 |
tmp_addflag=' $pic_flag' |
9202 |
;; |
9203 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
9204 |
# Portland Group f77 and f90 compilers |
9205 |
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' |
9206 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
9207 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9208 |
tmp_addflag=' -i_dynamic' ;; |
9209 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
9210 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
9211 |
ifc* | ifort*) # Intel Fortran compiler |
9212 |
tmp_addflag=' -nofor_main' ;; |
9213 |
lf95*) # Lahey Fortran 8.1 |
9214 |
whole_archive_flag_spec= |
9215 |
tmp_sharedflag='--shared' ;; |
9216 |
nagfor*) # NAGFOR 5.3 |
9217 |
tmp_sharedflag='-Wl,-shared' ;; |
9218 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9219 |
tmp_sharedflag='-qmkshrobj' |
9220 |
tmp_addflag= ;; |
9221 |
nvcc*) # Cuda Compiler Driver 2.2 |
9222 |
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' |
9223 |
compiler_needs_object=yes |
9224 |
;; |
9225 |
esac |
9226 |
case `$CC -V 2>&1 | sed 5q` in |
9227 |
*Sun\ C*) # Sun C 5.9 |
9228 |
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' |
9229 |
compiler_needs_object=yes |
9230 |
tmp_sharedflag='-G' ;; |
9231 |
*Sun\ F*) # Sun Fortran 8.3 |
9232 |
tmp_sharedflag='-G' ;; |
9233 |
esac |
9234 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9235 |
|
9236 |
if test yes = "$supports_anon_versioning"; then |
9237 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9238 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9239 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9240 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
9241 |
fi |
9242 |
|
9243 |
case $cc_basename in |
9244 |
tcc*) |
9245 |
export_dynamic_flag_spec='-rdynamic' |
9246 |
;; |
9247 |
xlf* | bgf* | bgxlf* | mpixlf*) |
9248 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9249 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9250 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9251 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9252 |
if test yes = "$supports_anon_versioning"; then |
9253 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9254 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9255 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9256 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9257 |
fi |
9258 |
;; |
9259 |
esac |
9260 |
else |
9261 |
ld_shlibs=no |
9262 |
fi |
9263 |
;; |
9264 |
|
9265 |
netbsd*) |
9266 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9267 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9268 |
wlarc= |
9269 |
else |
9270 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9271 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9272 |
fi |
9273 |
;; |
9274 |
|
9275 |
solaris*) |
9276 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9277 |
ld_shlibs=no |
9278 |
cat <<_LT_EOF 1>&2 |
9279 |
|
9280 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9281 |
*** create shared libraries on Solaris systems. Therefore, libtool |
9282 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9283 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
9284 |
*** your PATH or compiler configuration so that the native linker is |
9285 |
*** used, and then restart. |
9286 |
|
9287 |
_LT_EOF |
9288 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9289 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9290 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9291 |
else |
9292 |
ld_shlibs=no |
9293 |
fi |
9294 |
;; |
9295 |
|
9296 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9297 |
case `$LD -v 2>&1` in |
9298 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
9299 |
ld_shlibs=no |
9300 |
cat <<_LT_EOF 1>&2 |
9301 |
|
9302 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
9303 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
9304 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9305 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9306 |
*** your PATH or compiler configuration so that the native linker is |
9307 |
*** used, and then restart. |
9308 |
|
9309 |
_LT_EOF |
9310 |
;; |
9311 |
*) |
9312 |
# For security reasons, it is highly recommended that you always |
9313 |
# use absolute paths for naming shared libraries, and exclude the |
9314 |
# DT_RUNPATH tag from executables and libraries. But doing so |
9315 |
# requires that you compile everything twice, which is a pain. |
9316 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9317 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9318 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9319 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9320 |
else |
9321 |
ld_shlibs=no |
9322 |
fi |
9323 |
;; |
9324 |
esac |
9325 |
;; |
9326 |
|
9327 |
sunos4*) |
9328 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9329 |
wlarc= |
9330 |
hardcode_direct=yes |
9331 |
hardcode_shlibpath_var=no |
9332 |
;; |
9333 |
|
9334 |
*) |
9335 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9336 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9337 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9338 |
else |
9339 |
ld_shlibs=no |
9340 |
fi |
9341 |
;; |
9342 |
esac |
9343 |
|
9344 |
if test no = "$ld_shlibs"; then |
9345 |
runpath_var= |
9346 |
hardcode_libdir_flag_spec= |
9347 |
export_dynamic_flag_spec= |
9348 |
whole_archive_flag_spec= |
9349 |
fi |
9350 |
else |
9351 |
# PORTME fill in a description of your system's linker (not GNU ld) |
9352 |
case $host_os in |
9353 |
aix3*) |
9354 |
allow_undefined_flag=unsupported |
9355 |
always_export_symbols=yes |
9356 |
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' |
9357 |
# Note: this linker hardcodes the directories in LIBPATH if there |
9358 |
# are no directories specified by -L. |
9359 |
hardcode_minus_L=yes |
9360 |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
9361 |
# Neither direct hardcoding nor static linking is supported with a |
9362 |
# broken collect2. |
9363 |
hardcode_direct=unsupported |
9364 |
fi |
9365 |
;; |
9366 |
|
9367 |
aix[4-9]*) |
9368 |
if test ia64 = "$host_cpu"; then |
9369 |
# On IA64, the linker does run time linking by default, so we don't |
9370 |
# have to do anything special. |
9371 |
aix_use_runtimelinking=no |
9372 |
exp_sym_flag='-Bexport' |
9373 |
no_entry_flag= |
9374 |
else |
9375 |
# If we're using GNU nm, then we don't want the "-C" option. |
9376 |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9377 |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
9378 |
# weak defined symbols like other global defined symbols, whereas |
9379 |
# GNU nm marks them as "W". |
9380 |
# While the 'weak' keyword is ignored in the Export File, we need |
9381 |
# it in the Import File for the 'aix-soname' feature, so we have |
9382 |
# to replace the "-B" option with "-P" for AIX nm. |
9383 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9384 |
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' |
9385 |
else |
9386 |
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' |
9387 |
fi |
9388 |
aix_use_runtimelinking=no |
9389 |
|
9390 |
# Test if we are trying to use run time linking or normal |
9391 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9392 |
# have runtime linking enabled, and use it for executables. |
9393 |
# For shared libraries, we enable/disable runtime linking |
9394 |
# depending on the kind of the shared library created - |
9395 |
# when "with_aix_soname,aix_use_runtimelinking" is: |
9396 |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
9397 |
# "aix,yes" lib.so shared, rtl:yes, for executables |
9398 |
# lib.a static archive |
9399 |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
9400 |
# lib.a(lib.so.V) shared, rtl:no, for executables |
9401 |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
9402 |
# lib.a(lib.so.V) shared, rtl:no |
9403 |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
9404 |
# lib.a static archive |
9405 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9406 |
for ld_flag in $LDFLAGS; do |
9407 |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
9408 |
aix_use_runtimelinking=yes |
9409 |
break |
9410 |
fi |
9411 |
done |
9412 |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9413 |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
9414 |
# so we don't have lib.a shared libs to link our executables. |
9415 |
# We have to force runtime linking in this case. |
9416 |
aix_use_runtimelinking=yes |
9417 |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
9418 |
fi |
9419 |
;; |
9420 |
esac |
9421 |
|
9422 |
exp_sym_flag='-bexport' |
9423 |
no_entry_flag='-bnoentry' |
9424 |
fi |
9425 |
|
9426 |
# When large executables or shared objects are built, AIX ld can |
9427 |
# have problems creating the table of contents. If linking a library |
9428 |
# or program results in "error TOC overflow" add -mminimal-toc to |
9429 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
9430 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
9431 |
|
9432 |
archive_cmds='' |
9433 |
hardcode_direct=yes |
9434 |
hardcode_direct_absolute=yes |
9435 |
hardcode_libdir_separator=':' |
9436 |
link_all_deplibs=yes |
9437 |
file_list_spec='$wl-f,' |
9438 |
case $with_aix_soname,$aix_use_runtimelinking in |
9439 |
aix,*) ;; # traditional, no import file |
9440 |
svr4,* | *,yes) # use import file |
9441 |
# The Import File defines what to hardcode. |
9442 |
hardcode_direct=no |
9443 |
hardcode_direct_absolute=no |
9444 |
;; |
9445 |
esac |
9446 |
|
9447 |
if test yes = "$GCC"; then |
9448 |
case $host_os in aix4.[012]|aix4.[012].*) |
9449 |
# We only want to do this on AIX 4.2 and lower, the check |
9450 |
# below for broken collect2 doesn't work under 4.3+ |
9451 |
collect2name=`$CC -print-prog-name=collect2` |
9452 |
if test -f "$collect2name" && |
9453 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9454 |
then |
9455 |
# We have reworked collect2 |
9456 |
: |
9457 |
else |
9458 |
# We have old collect2 |
9459 |
hardcode_direct=unsupported |
9460 |
# It fails to find uninstalled libraries when the uninstalled |
9461 |
# path is not listed in the libpath. Setting hardcode_minus_L |
9462 |
# to unsupported forces relinking |
9463 |
hardcode_minus_L=yes |
9464 |
hardcode_libdir_flag_spec='-L$libdir' |
9465 |
hardcode_libdir_separator= |
9466 |
fi |
9467 |
;; |
9468 |
esac |
9469 |
shared_flag='-shared' |
9470 |
if test yes = "$aix_use_runtimelinking"; then |
9471 |
shared_flag="$shared_flag "'$wl-G' |
9472 |
fi |
9473 |
# Need to ensure runtime linking is disabled for the traditional |
9474 |
# shared library, or the linker may eventually find shared libraries |
9475 |
# /with/ Import File - we do not want to mix them. |
9476 |
shared_flag_aix='-shared' |
9477 |
shared_flag_svr4='-shared $wl-G' |
9478 |
else |
9479 |
# not using gcc |
9480 |
if test ia64 = "$host_cpu"; then |
9481 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9482 |
# chokes on -Wl,-G. The following line is correct: |
9483 |
shared_flag='-G' |
9484 |
else |
9485 |
if test yes = "$aix_use_runtimelinking"; then |
9486 |
shared_flag='$wl-G' |
9487 |
else |
9488 |
shared_flag='$wl-bM:SRE' |
9489 |
fi |
9490 |
shared_flag_aix='$wl-bM:SRE' |
9491 |
shared_flag_svr4='$wl-G' |
9492 |
fi |
9493 |
fi |
9494 |
|
9495 |
export_dynamic_flag_spec='$wl-bexpall' |
9496 |
# It seems that -bexpall does not export symbols beginning with |
9497 |
# underscore (_), so it is better to generate a list of symbols to export. |
9498 |
always_export_symbols=yes |
9499 |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
9500 |
# Warning - without using the other runtime loading flags (-brtl), |
9501 |
# -berok will link without error, but may produce a broken library. |
9502 |
allow_undefined_flag='-berok' |
9503 |
# Determine the default libpath from the value encoded in an |
9504 |
# empty executable. |
9505 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9506 |
aix_libpath=$lt_cv_aix_libpath |
9507 |
else |
9508 |
if ${lt_cv_aix_libpath_+:} false; then : |
9509 |
$as_echo_n "(cached) " >&6 |
9510 |
else |
9511 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9512 |
/* end confdefs.h. */ |
9513 |
|
9514 |
int |
9515 |
main () |
9516 |
{ |
9517 |
|
9518 |
; |
9519 |
return 0; |
9520 |
} |
9521 |
_ACEOF |
9522 |
if ac_fn_c_try_link "$LINENO"; then : |
9523 |
|
9524 |
lt_aix_libpath_sed=' |
9525 |
/Import File Strings/,/^$/ { |
9526 |
/^0/ { |
9527 |
s/^0 *\([^ ]*\) *$/\1/ |
9528 |
p |
9529 |
} |
9530 |
}' |
9531 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9532 |
# Check for a 64-bit object if we didn't find anything. |
9533 |
if test -z "$lt_cv_aix_libpath_"; then |
9534 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9535 |
fi |
9536 |
fi |
9537 |
rm -f core conftest.err conftest.$ac_objext \ |
9538 |
conftest$ac_exeext conftest.$ac_ext |
9539 |
if test -z "$lt_cv_aix_libpath_"; then |
9540 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9541 |
fi |
9542 |
|
9543 |
fi |
9544 |
|
9545 |
aix_libpath=$lt_cv_aix_libpath_ |
9546 |
fi |
9547 |
|
9548 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9549 |
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 |
9550 |
else |
9551 |
if test ia64 = "$host_cpu"; then |
9552 |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
9553 |
allow_undefined_flag="-z nodefs" |
9554 |
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" |
9555 |
else |
9556 |
# Determine the default libpath from the value encoded in an |
9557 |
# empty executable. |
9558 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9559 |
aix_libpath=$lt_cv_aix_libpath |
9560 |
else |
9561 |
if ${lt_cv_aix_libpath_+:} false; then : |
9562 |
$as_echo_n "(cached) " >&6 |
9563 |
else |
9564 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9565 |
/* end confdefs.h. */ |
9566 |
|
9567 |
int |
9568 |
main () |
9569 |
{ |
9570 |
|
9571 |
; |
9572 |
return 0; |
9573 |
} |
9574 |
_ACEOF |
9575 |
if ac_fn_c_try_link "$LINENO"; then : |
9576 |
|
9577 |
lt_aix_libpath_sed=' |
9578 |
/Import File Strings/,/^$/ { |
9579 |
/^0/ { |
9580 |
s/^0 *\([^ ]*\) *$/\1/ |
9581 |
p |
9582 |
} |
9583 |
}' |
9584 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9585 |
# Check for a 64-bit object if we didn't find anything. |
9586 |
if test -z "$lt_cv_aix_libpath_"; then |
9587 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9588 |
fi |
9589 |
fi |
9590 |
rm -f core conftest.err conftest.$ac_objext \ |
9591 |
conftest$ac_exeext conftest.$ac_ext |
9592 |
if test -z "$lt_cv_aix_libpath_"; then |
9593 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9594 |
fi |
9595 |
|
9596 |
fi |
9597 |
|
9598 |
aix_libpath=$lt_cv_aix_libpath_ |
9599 |
fi |
9600 |
|
9601 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9602 |
# Warning - without using the other run time loading flags, |
9603 |
# -berok will link without error, but may produce a broken library. |
9604 |
no_undefined_flag=' $wl-bernotok' |
9605 |
allow_undefined_flag=' $wl-berok' |
9606 |
if test yes = "$with_gnu_ld"; then |
9607 |
# We only use this code for GNU lds that support --whole-archive. |
9608 |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
9609 |
else |
9610 |
# Exported symbols can be pulled into shared objects from archives |
9611 |
whole_archive_flag_spec='$convenience' |
9612 |
fi |
9613 |
archive_cmds_need_lc=yes |
9614 |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9615 |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
9616 |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
9617 |
if test svr4 != "$with_aix_soname"; then |
9618 |
# This is similar to how AIX traditionally builds its shared libraries. |
9619 |
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' |
9620 |
fi |
9621 |
if test aix != "$with_aix_soname"; then |
9622 |
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' |
9623 |
else |
9624 |
# used by -dlpreopen to get the symbols |
9625 |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
9626 |
fi |
9627 |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
9628 |
fi |
9629 |
fi |
9630 |
;; |
9631 |
|
9632 |
amigaos*) |
9633 |
case $host_cpu in |
9634 |
powerpc) |
9635 |
# see comment about AmigaOS4 .so support |
9636 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9637 |
archive_expsym_cmds='' |
9638 |
;; |
9639 |
m68k) |
9640 |
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)' |
9641 |
hardcode_libdir_flag_spec='-L$libdir' |
9642 |
hardcode_minus_L=yes |
9643 |
;; |
9644 |
esac |
9645 |
;; |
9646 |
|
9647 |
bsdi[45]*) |
9648 |
export_dynamic_flag_spec=-rdynamic |
9649 |
;; |
9650 |
|
9651 |
cygwin* | mingw* | pw32* | cegcc*) |
9652 |
# When not using gcc, we currently assume that we are using |
9653 |
# Microsoft Visual C++. |
9654 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
9655 |
# no search path for DLLs. |
9656 |
case $cc_basename in |
9657 |
cl*) |
9658 |
# Native MSVC |
9659 |
hardcode_libdir_flag_spec=' ' |
9660 |
allow_undefined_flag=unsupported |
9661 |
always_export_symbols=yes |
9662 |
file_list_spec='@' |
9663 |
# Tell ltmain to make .lib files, not .a files. |
9664 |
libext=lib |
9665 |
# Tell ltmain to make .dll files, not .so files. |
9666 |
shrext_cmds=.dll |
9667 |
# FIXME: Setting linknames here is a bad hack. |
9668 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9669 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9670 |
cp "$export_symbols" "$output_objdir/$soname.def"; |
9671 |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
9672 |
else |
9673 |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
9674 |
fi~ |
9675 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
9676 |
linknames=' |
9677 |
# The linker will not automatically build a static lib if we build a DLL. |
9678 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
9679 |
enable_shared_with_static_runtimes=yes |
9680 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
9681 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
9682 |
# Don't use ranlib |
9683 |
old_postinstall_cmds='chmod 644 $oldlib' |
9684 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
9685 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9686 |
case $lt_outputfile in |
9687 |
*.exe|*.EXE) ;; |
9688 |
*) |
9689 |
lt_outputfile=$lt_outputfile.exe |
9690 |
lt_tool_outputfile=$lt_tool_outputfile.exe |
9691 |
;; |
9692 |
esac~ |
9693 |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
9694 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
9695 |
$RM "$lt_outputfile.manifest"; |
9696 |
fi' |
9697 |
;; |
9698 |
*) |
9699 |
# Assume MSVC wrapper |
9700 |
hardcode_libdir_flag_spec=' ' |
9701 |
allow_undefined_flag=unsupported |
9702 |
# Tell ltmain to make .lib files, not .a files. |
9703 |
libext=lib |
9704 |
# Tell ltmain to make .dll files, not .so files. |
9705 |
shrext_cmds=.dll |
9706 |
# FIXME: Setting linknames here is a bad hack. |
9707 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
9708 |
# The linker will automatically build a .lib file if we build a DLL. |
9709 |
old_archive_from_new_cmds='true' |
9710 |
# FIXME: Should let the user specify the lib program. |
9711 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9712 |
enable_shared_with_static_runtimes=yes |
9713 |
;; |
9714 |
esac |
9715 |
;; |
9716 |
|
9717 |
darwin* | rhapsody*) |
9718 |
|
9719 |
|
9720 |
archive_cmds_need_lc=no |
9721 |
hardcode_direct=no |
9722 |
hardcode_automatic=yes |
9723 |
hardcode_shlibpath_var=unsupported |
9724 |
if test yes = "$lt_cv_ld_force_load"; then |
9725 |
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\"`' |
9726 |
|
9727 |
else |
9728 |
whole_archive_flag_spec='' |
9729 |
fi |
9730 |
link_all_deplibs=yes |
9731 |
allow_undefined_flag=$_lt_dar_allow_undefined |
9732 |
case $cc_basename in |
9733 |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
9734 |
*) _lt_dar_can_shared=$GCC ;; |
9735 |
esac |
9736 |
if test yes = "$_lt_dar_can_shared"; then |
9737 |
output_verbose_link_cmd=func_echo_all |
9738 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9739 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
9740 |
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" |
9741 |
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" |
9742 |
|
9743 |
else |
9744 |
ld_shlibs=no |
9745 |
fi |
9746 |
|
9747 |
;; |
9748 |
|
9749 |
dgux*) |
9750 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9751 |
hardcode_libdir_flag_spec='-L$libdir' |
9752 |
hardcode_shlibpath_var=no |
9753 |
;; |
9754 |
|
9755 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9756 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
9757 |
# does not break anything, and helps significantly (at the cost of a little |
9758 |
# extra space). |
9759 |
freebsd2.2*) |
9760 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9761 |
hardcode_libdir_flag_spec='-R$libdir' |
9762 |
hardcode_direct=yes |
9763 |
hardcode_shlibpath_var=no |
9764 |
;; |
9765 |
|
9766 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9767 |
freebsd2.*) |
9768 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9769 |
hardcode_direct=yes |
9770 |
hardcode_minus_L=yes |
9771 |
hardcode_shlibpath_var=no |
9772 |
;; |
9773 |
|
9774 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9775 |
freebsd* | dragonfly*) |
9776 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9777 |
hardcode_libdir_flag_spec='-R$libdir' |
9778 |
hardcode_direct=yes |
9779 |
hardcode_shlibpath_var=no |
9780 |
;; |
9781 |
|
9782 |
hpux9*) |
9783 |
if test yes = "$GCC"; then |
9784 |
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' |
9785 |
else |
9786 |
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' |
9787 |
fi |
9788 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9789 |
hardcode_libdir_separator=: |
9790 |
hardcode_direct=yes |
9791 |
|
9792 |
# hardcode_minus_L: Not really in the search PATH, |
9793 |
# but as the default location of the library. |
9794 |
hardcode_minus_L=yes |
9795 |
export_dynamic_flag_spec='$wl-E' |
9796 |
;; |
9797 |
|
9798 |
hpux10*) |
9799 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
9800 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9801 |
else |
9802 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9803 |
fi |
9804 |
if test no = "$with_gnu_ld"; then |
9805 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9806 |
hardcode_libdir_separator=: |
9807 |
hardcode_direct=yes |
9808 |
hardcode_direct_absolute=yes |
9809 |
export_dynamic_flag_spec='$wl-E' |
9810 |
# hardcode_minus_L: Not really in the search PATH, |
9811 |
# but as the default location of the library. |
9812 |
hardcode_minus_L=yes |
9813 |
fi |
9814 |
;; |
9815 |
|
9816 |
hpux11*) |
9817 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
9818 |
case $host_cpu in |
9819 |
hppa*64*) |
9820 |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
9821 |
;; |
9822 |
ia64*) |
9823 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9824 |
;; |
9825 |
*) |
9826 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9827 |
;; |
9828 |
esac |
9829 |
else |
9830 |
case $host_cpu in |
9831 |
hppa*64*) |
9832 |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
9833 |
;; |
9834 |
ia64*) |
9835 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9836 |
;; |
9837 |
*) |
9838 |
|
9839 |
# Older versions of the 11.00 compiler do not understand -b yet |
9840 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
9841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
9842 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
9843 |
if ${lt_cv_prog_compiler__b+:} false; then : |
9844 |
$as_echo_n "(cached) " >&6 |
9845 |
else |
9846 |
lt_cv_prog_compiler__b=no |
9847 |
save_LDFLAGS=$LDFLAGS |
9848 |
LDFLAGS="$LDFLAGS -b" |
9849 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
9850 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
9851 |
# The linker can only warn and ignore the option if not recognized |
9852 |
# So say no if there are warnings |
9853 |
if test -s conftest.err; then |
9854 |
# Append any errors to the config.log. |
9855 |
cat conftest.err 1>&5 |
9856 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
9857 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9858 |
if diff conftest.exp conftest.er2 >/dev/null; then |
9859 |
lt_cv_prog_compiler__b=yes |
9860 |
fi |
9861 |
else |
9862 |
lt_cv_prog_compiler__b=yes |
9863 |
fi |
9864 |
fi |
9865 |
$RM -r conftest* |
9866 |
LDFLAGS=$save_LDFLAGS |
9867 |
|
9868 |
fi |
9869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
9870 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
9871 |
|
9872 |
if test yes = "$lt_cv_prog_compiler__b"; then |
9873 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9874 |
else |
9875 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9876 |
fi |
9877 |
|
9878 |
;; |
9879 |
esac |
9880 |
fi |
9881 |
if test no = "$with_gnu_ld"; then |
9882 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9883 |
hardcode_libdir_separator=: |
9884 |
|
9885 |
case $host_cpu in |
9886 |
hppa*64*|ia64*) |
9887 |
hardcode_direct=no |
9888 |
hardcode_shlibpath_var=no |
9889 |
;; |
9890 |
*) |
9891 |
hardcode_direct=yes |
9892 |
hardcode_direct_absolute=yes |
9893 |
export_dynamic_flag_spec='$wl-E' |
9894 |
|
9895 |
# hardcode_minus_L: Not really in the search PATH, |
9896 |
# but as the default location of the library. |
9897 |
hardcode_minus_L=yes |
9898 |
;; |
9899 |
esac |
9900 |
fi |
9901 |
;; |
9902 |
|
9903 |
irix5* | irix6* | nonstopux*) |
9904 |
if test yes = "$GCC"; then |
9905 |
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' |
9906 |
# Try to use the -exported_symbol ld option, if it does not |
9907 |
# work, assume that -exports_file does not work either and |
9908 |
# implicitly export all symbols. |
9909 |
# This should be the same for all languages, so no per-tag cache variable. |
9910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
9911 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
9912 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
9913 |
$as_echo_n "(cached) " >&6 |
9914 |
else |
9915 |
save_LDFLAGS=$LDFLAGS |
9916 |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
9917 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9918 |
/* end confdefs.h. */ |
9919 |
int foo (void) { return 0; } |
9920 |
_ACEOF |
9921 |
if ac_fn_c_try_link "$LINENO"; then : |
9922 |
lt_cv_irix_exported_symbol=yes |
9923 |
else |
9924 |
lt_cv_irix_exported_symbol=no |
9925 |
fi |
9926 |
rm -f core conftest.err conftest.$ac_objext \ |
9927 |
conftest$ac_exeext conftest.$ac_ext |
9928 |
LDFLAGS=$save_LDFLAGS |
9929 |
fi |
9930 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
9931 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
9932 |
if test yes = "$lt_cv_irix_exported_symbol"; then |
9933 |
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' |
9934 |
fi |
9935 |
else |
9936 |
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' |
9937 |
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' |
9938 |
fi |
9939 |
archive_cmds_need_lc='no' |
9940 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9941 |
hardcode_libdir_separator=: |
9942 |
inherit_rpath=yes |
9943 |
link_all_deplibs=yes |
9944 |
;; |
9945 |
|
9946 |
linux*) |
9947 |
case $cc_basename in |
9948 |
tcc*) |
9949 |
# Fabrice Bellard et al's Tiny C Compiler |
9950 |
ld_shlibs=yes |
9951 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9952 |
;; |
9953 |
esac |
9954 |
;; |
9955 |
|
9956 |
netbsd*) |
9957 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9958 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
9959 |
else |
9960 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
9961 |
fi |
9962 |
hardcode_libdir_flag_spec='-R$libdir' |
9963 |
hardcode_direct=yes |
9964 |
hardcode_shlibpath_var=no |
9965 |
;; |
9966 |
|
9967 |
newsos6) |
9968 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9969 |
hardcode_direct=yes |
9970 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9971 |
hardcode_libdir_separator=: |
9972 |
hardcode_shlibpath_var=no |
9973 |
;; |
9974 |
|
9975 |
*nto* | *qnx*) |
9976 |
;; |
9977 |
|
9978 |
openbsd* | bitrig*) |
9979 |
if test -f /usr/libexec/ld.so; then |
9980 |
hardcode_direct=yes |
9981 |
hardcode_shlibpath_var=no |
9982 |
hardcode_direct_absolute=yes |
9983 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
9984 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9985 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9986 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9987 |
export_dynamic_flag_spec='$wl-E' |
9988 |
else |
9989 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9990 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9991 |
fi |
9992 |
else |
9993 |
ld_shlibs=no |
9994 |
fi |
9995 |
;; |
9996 |
|
9997 |
os2*) |
9998 |
hardcode_libdir_flag_spec='-L$libdir' |
9999 |
hardcode_minus_L=yes |
10000 |
allow_undefined_flag=unsupported |
10001 |
shrext_cmds=.dll |
10002 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10003 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10004 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10005 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10006 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
10007 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10008 |
emximp -o $lib $output_objdir/$libname.def' |
10009 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10010 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10011 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10012 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10013 |
prefix_cmds="$SED"~ |
10014 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
10015 |
prefix_cmds="$prefix_cmds -e 1d"; |
10016 |
fi~ |
10017 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
10018 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
10019 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10020 |
emximp -o $lib $output_objdir/$libname.def' |
10021 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
10022 |
enable_shared_with_static_runtimes=yes |
10023 |
;; |
10024 |
|
10025 |
osf3*) |
10026 |
if test yes = "$GCC"; then |
10027 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10028 |
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' |
10029 |
else |
10030 |
allow_undefined_flag=' -expect_unresolved \*' |
10031 |
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' |
10032 |
fi |
10033 |
archive_cmds_need_lc='no' |
10034 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10035 |
hardcode_libdir_separator=: |
10036 |
;; |
10037 |
|
10038 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
10039 |
if test yes = "$GCC"; then |
10040 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10041 |
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' |
10042 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10043 |
else |
10044 |
allow_undefined_flag=' -expect_unresolved \*' |
10045 |
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' |
10046 |
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~ |
10047 |
$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' |
10048 |
|
10049 |
# Both c and cxx compiler support -rpath directly |
10050 |
hardcode_libdir_flag_spec='-rpath $libdir' |
10051 |
fi |
10052 |
archive_cmds_need_lc='no' |
10053 |
hardcode_libdir_separator=: |
10054 |
;; |
10055 |
|
10056 |
solaris*) |
10057 |
no_undefined_flag=' -z defs' |
10058 |
if test yes = "$GCC"; then |
10059 |
wlarc='$wl' |
10060 |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10061 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10062 |
$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' |
10063 |
else |
10064 |
case `$CC -V 2>&1` in |
10065 |
*"Compilers 5.0"*) |
10066 |
wlarc='' |
10067 |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10068 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10069 |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10070 |
;; |
10071 |
*) |
10072 |
wlarc='$wl' |
10073 |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10074 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10075 |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10076 |
;; |
10077 |
esac |
10078 |
fi |
10079 |
hardcode_libdir_flag_spec='-R$libdir' |
10080 |
hardcode_shlibpath_var=no |
10081 |
case $host_os in |
10082 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
10083 |
*) |
10084 |
# The compiler driver will combine and reorder linker options, |
10085 |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
10086 |
# but is careful enough not to reorder. |
10087 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10088 |
if test yes = "$GCC"; then |
10089 |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
10090 |
else |
10091 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
10092 |
fi |
10093 |
;; |
10094 |
esac |
10095 |
link_all_deplibs=yes |
10096 |
;; |
10097 |
|
10098 |
sunos4*) |
10099 |
if test sequent = "$host_vendor"; then |
10100 |
# Use $CC to link under sequent, because it throws in some extra .o |
10101 |
# files that make .init and .fini sections work. |
10102 |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10103 |
else |
10104 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
10105 |
fi |
10106 |
hardcode_libdir_flag_spec='-L$libdir' |
10107 |
hardcode_direct=yes |
10108 |
hardcode_minus_L=yes |
10109 |
hardcode_shlibpath_var=no |
10110 |
;; |
10111 |
|
10112 |
sysv4) |
10113 |
case $host_vendor in |
10114 |
sni) |
10115 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10116 |
hardcode_direct=yes # is this really true??? |
10117 |
;; |
10118 |
siemens) |
10119 |
## LD is ld it makes a PLAMLIB |
10120 |
## CC just makes a GrossModule. |
10121 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10122 |
reload_cmds='$CC -r -o $output$reload_objs' |
10123 |
hardcode_direct=no |
10124 |
;; |
10125 |
motorola) |
10126 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10127 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
10128 |
;; |
10129 |
esac |
10130 |
runpath_var='LD_RUN_PATH' |
10131 |
hardcode_shlibpath_var=no |
10132 |
;; |
10133 |
|
10134 |
sysv4.3*) |
10135 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10136 |
hardcode_shlibpath_var=no |
10137 |
export_dynamic_flag_spec='-Bexport' |
10138 |
;; |
10139 |
|
10140 |
sysv4*MP*) |
10141 |
if test -d /usr/nec; then |
10142 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10143 |
hardcode_shlibpath_var=no |
10144 |
runpath_var=LD_RUN_PATH |
10145 |
hardcode_runpath_var=yes |
10146 |
ld_shlibs=yes |
10147 |
fi |
10148 |
;; |
10149 |
|
10150 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10151 |
no_undefined_flag='$wl-z,text' |
10152 |
archive_cmds_need_lc=no |
10153 |
hardcode_shlibpath_var=no |
10154 |
runpath_var='LD_RUN_PATH' |
10155 |
|
10156 |
if test yes = "$GCC"; then |
10157 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10158 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10159 |
else |
10160 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10161 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10162 |
fi |
10163 |
;; |
10164 |
|
10165 |
sysv5* | sco3.2v5* | sco5v6*) |
10166 |
# Note: We CANNOT use -z defs as we might desire, because we do not |
10167 |
# link with -lc, and that would cause any symbols used from libc to |
10168 |
# always be unresolved, which means just about no library would |
10169 |
# ever link correctly. If we're not using GNU ld we use -z text |
10170 |
# though, which does catch some bad symbols but isn't as heavy-handed |
10171 |
# as -z defs. |
10172 |
no_undefined_flag='$wl-z,text' |
10173 |
allow_undefined_flag='$wl-z,nodefs' |
10174 |
archive_cmds_need_lc=no |
10175 |
hardcode_shlibpath_var=no |
10176 |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
10177 |
hardcode_libdir_separator=':' |
10178 |
link_all_deplibs=yes |
10179 |
export_dynamic_flag_spec='$wl-Bexport' |
10180 |
runpath_var='LD_RUN_PATH' |
10181 |
|
10182 |
if test yes = "$GCC"; then |
10183 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10184 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10185 |
else |
10186 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10187 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10188 |
fi |
10189 |
;; |
10190 |
|
10191 |
uts4*) |
10192 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10193 |
hardcode_libdir_flag_spec='-L$libdir' |
10194 |
hardcode_shlibpath_var=no |
10195 |
;; |
10196 |
|
10197 |
*) |
10198 |
ld_shlibs=no |
10199 |
;; |
10200 |
esac |
10201 |
|
10202 |
if test sni = "$host_vendor"; then |
10203 |
case $host in |
10204 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
10205 |
export_dynamic_flag_spec='$wl-Blargedynsym' |
10206 |
;; |
10207 |
esac |
10208 |
fi |
10209 |
fi |
10210 |
|
10211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10212 |
$as_echo "$ld_shlibs" >&6; } |
10213 |
test no = "$ld_shlibs" && can_build_shared=no |
10214 |
|
10215 |
with_gnu_ld=$with_gnu_ld |
10216 |
|
10217 |
|
10218 |
|
10219 |
|
10220 |
|
10221 |
|
10222 |
|
10223 |
|
10224 |
|
10225 |
|
10226 |
|
10227 |
|
10228 |
|
10229 |
|
10230 |
|
10231 |
# |
10232 |
# Do we need to explicitly link libc? |
10233 |
# |
10234 |
case "x$archive_cmds_need_lc" in |
10235 |
x|xyes) |
10236 |
# Assume -lc should be added |
10237 |
archive_cmds_need_lc=yes |
10238 |
|
10239 |
if test yes,yes = "$GCC,$enable_shared"; then |
10240 |
case $archive_cmds in |
10241 |
*'~'*) |
10242 |
# FIXME: we may have to deal with multi-command sequences. |
10243 |
;; |
10244 |
'$CC '*) |
10245 |
# Test whether the compiler implicitly links with -lc since on some |
10246 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
10247 |
# to ld, don't add -lc before -lgcc. |
10248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10249 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
10250 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10251 |
$as_echo_n "(cached) " >&6 |
10252 |
else |
10253 |
$RM conftest* |
10254 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
10255 |
|
10256 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10257 |
(eval $ac_compile) 2>&5 |
10258 |
ac_status=$? |
10259 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10260 |
test $ac_status = 0; } 2>conftest.err; then |
10261 |
soname=conftest |
10262 |
lib=conftest |
10263 |
libobjs=conftest.$ac_objext |
10264 |
deplibs= |
10265 |
wl=$lt_prog_compiler_wl |
10266 |
pic_flag=$lt_prog_compiler_pic |
10267 |
compiler_flags=-v |
10268 |
linker_flags=-v |
10269 |
verstring= |
10270 |
output_objdir=. |
10271 |
libname=conftest |
10272 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
10273 |
allow_undefined_flag= |
10274 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
10275 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10276 |
ac_status=$? |
10277 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10278 |
test $ac_status = 0; } |
10279 |
then |
10280 |
lt_cv_archive_cmds_need_lc=no |
10281 |
else |
10282 |
lt_cv_archive_cmds_need_lc=yes |
10283 |
fi |
10284 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
10285 |
else |
10286 |
cat conftest.err 1>&5 |
10287 |
fi |
10288 |
$RM conftest* |
10289 |
|
10290 |
fi |
10291 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10292 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
10293 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
10294 |
;; |
10295 |
esac |
10296 |
fi |
10297 |
;; |
10298 |
esac |
10299 |
|
10300 |
|
10301 |
|
10302 |
|
10303 |
|
10304 |
|
10305 |
|
10306 |
|
10307 |
|
10308 |
|
10309 |
|
10310 |
|
10311 |
|
10312 |
|
10313 |
|
10314 |
|
10315 |
|
10316 |
|
10317 |
|
10318 |
|
10319 |
|
10320 |
|
10321 |
|
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 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10452 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
10453 |
|
10454 |
if test yes = "$GCC"; then |
10455 |
case $host_os in |
10456 |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10457 |
*) lt_awk_arg='/^libraries:/' ;; |
10458 |
esac |
10459 |
case $host_os in |
10460 |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10461 |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
10462 |
esac |
10463 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
10464 |
case $lt_search_path_spec in |
10465 |
*\;*) |
10466 |
# if the path contains ";" then we assume it to be the separator |
10467 |
# otherwise default to the standard path separator (i.e. ":") - it is |
10468 |
# assumed that no part of a normal pathname contains ";" but that should |
10469 |
# okay in the real world where ";" in dirpaths is itself problematic. |
10470 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10471 |
;; |
10472 |
*) |
10473 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
10474 |
;; |
10475 |
esac |
10476 |
# Ok, now we have the path, separated by spaces, we can step through it |
10477 |
# and add multilib dir if necessary... |
10478 |
lt_tmp_lt_search_path_spec= |
10479 |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10480 |
# ...but if some path component already ends with the multilib dir we assume |
10481 |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
10482 |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
10483 |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
10484 |
lt_multi_os_dir= |
10485 |
;; |
10486 |
esac |
10487 |
for lt_sys_path in $lt_search_path_spec; do |
10488 |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10489 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
10490 |
elif test -n "$lt_multi_os_dir"; then |
10491 |
test -d "$lt_sys_path" && \ |
10492 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10493 |
fi |
10494 |
done |
10495 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10496 |
BEGIN {RS = " "; FS = "/|\n";} { |
10497 |
lt_foo = ""; |
10498 |
lt_count = 0; |
10499 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
10500 |
if ($lt_i != "" && $lt_i != ".") { |
10501 |
if ($lt_i == "..") { |
10502 |
lt_count++; |
10503 |
} else { |
10504 |
if (lt_count == 0) { |
10505 |
lt_foo = "/" $lt_i lt_foo; |
10506 |
} else { |
10507 |
lt_count--; |
10508 |
} |
10509 |
} |
10510 |
} |
10511 |
} |
10512 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
10513 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10514 |
}'` |
10515 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
10516 |
# for these hosts. |
10517 |
case $host_os in |
10518 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
10519 |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
10520 |
esac |
10521 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
10522 |
else |
10523 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10524 |
fi |
10525 |
library_names_spec= |
10526 |
libname_spec='lib$name' |
10527 |
soname_spec= |
10528 |
shrext_cmds=.so |
10529 |
postinstall_cmds= |
10530 |
postuninstall_cmds= |
10531 |
finish_cmds= |
10532 |
finish_eval= |
10533 |
shlibpath_var= |
10534 |
shlibpath_overrides_runpath=unknown |
10535 |
version_type=none |
10536 |
dynamic_linker="$host_os ld.so" |
10537 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
10538 |
need_lib_prefix=unknown |
10539 |
hardcode_into_libs=no |
10540 |
|
10541 |
# when you set need_version to no, make sure it does not cause -set_version |
10542 |
# flags to be left without arguments |
10543 |
need_version=unknown |
10544 |
|
10545 |
|
10546 |
|
10547 |
case $host_os in |
10548 |
aix3*) |
10549 |
version_type=linux # correct to gnu/linux during the next big refactor |
10550 |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
10551 |
shlibpath_var=LIBPATH |
10552 |
|
10553 |
# AIX 3 has no versioning support, so we append a major version to the name. |
10554 |
soname_spec='$libname$release$shared_ext$major' |
10555 |
;; |
10556 |
|
10557 |
aix[4-9]*) |
10558 |
version_type=linux # correct to gnu/linux during the next big refactor |
10559 |
need_lib_prefix=no |
10560 |
need_version=no |
10561 |
hardcode_into_libs=yes |
10562 |
if test ia64 = "$host_cpu"; then |
10563 |
# AIX 5 supports IA64 |
10564 |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
10565 |
shlibpath_var=LD_LIBRARY_PATH |
10566 |
else |
10567 |
# With GCC up to 2.95.x, collect2 would create an import file |
10568 |
# for dependence libraries. The import file would start with |
10569 |
# the line '#! .'. This would cause the generated library to |
10570 |
# depend on '.', always an invalid library. This was fixed in |
10571 |
# development snapshots of GCC prior to 3.0. |
10572 |
case $host_os in |
10573 |
aix4 | aix4.[01] | aix4.[01].*) |
10574 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
10575 |
echo ' yes ' |
10576 |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
10577 |
: |
10578 |
else |
10579 |
can_build_shared=no |
10580 |
fi |
10581 |
;; |
10582 |
esac |
10583 |
# Using Import Files as archive members, it is possible to support |
10584 |
# filename-based versioning of shared library archives on AIX. While |
10585 |
# this would work for both with and without runtime linking, it will |
10586 |
# prevent static linking of such archives. So we do filename-based |
10587 |
# shared library versioning with .so extension only, which is used |
10588 |
# when both runtime linking and shared linking is enabled. |
10589 |
# Unfortunately, runtime linking may impact performance, so we do |
10590 |
# not want this to be the default eventually. Also, we use the |
10591 |
# versioned .so libs for executables only if there is the -brtl |
10592 |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
10593 |
# To allow for filename-based versioning support, we need to create |
10594 |
# libNAME.so.V as an archive file, containing: |
10595 |
# *) an Import File, referring to the versioned filename of the |
10596 |
# archive as well as the shared archive member, telling the |
10597 |
# bitwidth (32 or 64) of that shared object, and providing the |
10598 |
# list of exported symbols of that shared object, eventually |
10599 |
# decorated with the 'weak' keyword |
10600 |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
10601 |
# it being seen by the linker. |
10602 |
# At run time we better use the real file rather than another symlink, |
10603 |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
10604 |
|
10605 |
case $with_aix_soname,$aix_use_runtimelinking in |
10606 |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
10607 |
# soname into executable. Probably we can add versioning support to |
10608 |
# collect2, so additional links can be useful in future. |
10609 |
aix,yes) # traditional libtool |
10610 |
dynamic_linker='AIX unversionable lib.so' |
10611 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10612 |
# instead of lib<name>.a to let people know that these are not |
10613 |
# typical AIX shared libraries. |
10614 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10615 |
;; |
10616 |
aix,no) # traditional AIX only |
10617 |
dynamic_linker='AIX lib.a(lib.so.V)' |
10618 |
# We preserve .a as extension for shared libraries through AIX4.2 |
10619 |
# and later when we are not doing run time linking. |
10620 |
library_names_spec='$libname$release.a $libname.a' |
10621 |
soname_spec='$libname$release$shared_ext$major' |
10622 |
;; |
10623 |
svr4,*) # full svr4 only |
10624 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
10625 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10626 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10627 |
shlibpath_overrides_runpath=yes |
10628 |
;; |
10629 |
*,yes) # both, prefer svr4 |
10630 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
10631 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10632 |
# unpreferred sharedlib libNAME.a needs extra handling |
10633 |
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"' |
10634 |
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"' |
10635 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10636 |
shlibpath_overrides_runpath=yes |
10637 |
;; |
10638 |
*,no) # both, prefer aix |
10639 |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
10640 |
library_names_spec='$libname$release.a $libname.a' |
10641 |
soname_spec='$libname$release$shared_ext$major' |
10642 |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
10643 |
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)' |
10644 |
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"' |
10645 |
;; |
10646 |
esac |
10647 |
shlibpath_var=LIBPATH |
10648 |
fi |
10649 |
;; |
10650 |
|
10651 |
amigaos*) |
10652 |
case $host_cpu in |
10653 |
powerpc) |
10654 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
10655 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
10656 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10657 |
;; |
10658 |
m68k) |
10659 |
library_names_spec='$libname.ixlibrary $libname.a' |
10660 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
10661 |
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' |
10662 |
;; |
10663 |
esac |
10664 |
;; |
10665 |
|
10666 |
beos*) |
10667 |
library_names_spec='$libname$shared_ext' |
10668 |
dynamic_linker="$host_os ld.so" |
10669 |
shlibpath_var=LIBRARY_PATH |
10670 |
;; |
10671 |
|
10672 |
bsdi[45]*) |
10673 |
version_type=linux # correct to gnu/linux during the next big refactor |
10674 |
need_version=no |
10675 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10676 |
soname_spec='$libname$release$shared_ext$major' |
10677 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10678 |
shlibpath_var=LD_LIBRARY_PATH |
10679 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
10680 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
10681 |
# the default ld.so.conf also contains /usr/contrib/lib and |
10682 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
10683 |
# libtool to hard-code these into programs |
10684 |
;; |
10685 |
|
10686 |
cygwin* | mingw* | pw32* | cegcc*) |
10687 |
version_type=windows |
10688 |
shrext_cmds=.dll |
10689 |
need_version=no |
10690 |
need_lib_prefix=no |
10691 |
|
10692 |
case $GCC,$cc_basename in |
10693 |
yes,*) |
10694 |
# gcc |
10695 |
library_names_spec='$libname.dll.a' |
10696 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10697 |
postinstall_cmds='base_file=`basename \$file`~ |
10698 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
10699 |
dldir=$destdir/`dirname \$dlpath`~ |
10700 |
test -d \$dldir || mkdir -p \$dldir~ |
10701 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
10702 |
chmod a+x \$dldir/$dlname~ |
10703 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
10704 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
10705 |
fi' |
10706 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10707 |
dlpath=$dir/\$dldll~ |
10708 |
$RM \$dlpath' |
10709 |
shlibpath_overrides_runpath=yes |
10710 |
|
10711 |
case $host_os in |
10712 |
cygwin*) |
10713 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10714 |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10715 |
|
10716 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
10717 |
;; |
10718 |
mingw* | cegcc*) |
10719 |
# MinGW DLLs use traditional 'lib' prefix |
10720 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10721 |
;; |
10722 |
pw32*) |
10723 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
10724 |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10725 |
;; |
10726 |
esac |
10727 |
dynamic_linker='Win32 ld.exe' |
10728 |
;; |
10729 |
|
10730 |
*,cl*) |
10731 |
# Native MSVC |
10732 |
libname_spec='$name' |
10733 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10734 |
library_names_spec='$libname.dll.lib' |
10735 |
|
10736 |
case $build_os in |
10737 |
mingw*) |
10738 |
sys_lib_search_path_spec= |
10739 |
lt_save_ifs=$IFS |
10740 |
IFS=';' |
10741 |
for lt_path in $LIB |
10742 |
do |
10743 |
IFS=$lt_save_ifs |
10744 |
# Let DOS variable expansion print the short 8.3 style file name. |
10745 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
10746 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
10747 |
done |
10748 |
IFS=$lt_save_ifs |
10749 |
# Convert to MSYS style. |
10750 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
10751 |
;; |
10752 |
cygwin*) |
10753 |
# Convert to unix form, then to dos form, then back to unix form |
10754 |
# but this time dos style (no spaces!) so that the unix form looks |
10755 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
10756 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
10757 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
10758 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10759 |
;; |
10760 |
*) |
10761 |
sys_lib_search_path_spec=$LIB |
10762 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10763 |
# It is most probably a Windows format PATH. |
10764 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
10765 |
else |
10766 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10767 |
fi |
10768 |
# FIXME: find the short name or the path components, as spaces are |
10769 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
10770 |
;; |
10771 |
esac |
10772 |
|
10773 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10774 |
postinstall_cmds='base_file=`basename \$file`~ |
10775 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
10776 |
dldir=$destdir/`dirname \$dlpath`~ |
10777 |
test -d \$dldir || mkdir -p \$dldir~ |
10778 |
$install_prog $dir/$dlname \$dldir/$dlname' |
10779 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10780 |
dlpath=$dir/\$dldll~ |
10781 |
$RM \$dlpath' |
10782 |
shlibpath_overrides_runpath=yes |
10783 |
dynamic_linker='Win32 link.exe' |
10784 |
;; |
10785 |
|
10786 |
*) |
10787 |
# Assume MSVC wrapper |
10788 |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
10789 |
dynamic_linker='Win32 ld.exe' |
10790 |
;; |
10791 |
esac |
10792 |
# FIXME: first we should search . and the directory the executable is in |
10793 |
shlibpath_var=PATH |
10794 |
;; |
10795 |
|
10796 |
darwin* | rhapsody*) |
10797 |
dynamic_linker="$host_os dyld" |
10798 |
version_type=darwin |
10799 |
need_lib_prefix=no |
10800 |
need_version=no |
10801 |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10802 |
soname_spec='$libname$release$major$shared_ext' |
10803 |
shlibpath_overrides_runpath=yes |
10804 |
shlibpath_var=DYLD_LIBRARY_PATH |
10805 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
10806 |
|
10807 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10808 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10809 |
;; |
10810 |
|
10811 |
dgux*) |
10812 |
version_type=linux # correct to gnu/linux during the next big refactor |
10813 |
need_lib_prefix=no |
10814 |
need_version=no |
10815 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10816 |
soname_spec='$libname$release$shared_ext$major' |
10817 |
shlibpath_var=LD_LIBRARY_PATH |
10818 |
;; |
10819 |
|
10820 |
freebsd* | dragonfly*) |
10821 |
# DragonFly does not have aout. When/if they implement a new |
10822 |
# versioning mechanism, adjust this. |
10823 |
if test -x /usr/bin/objformat; then |
10824 |
objformat=`/usr/bin/objformat` |
10825 |
else |
10826 |
case $host_os in |
10827 |
freebsd[23].*) objformat=aout ;; |
10828 |
*) objformat=elf ;; |
10829 |
esac |
10830 |
fi |
10831 |
version_type=freebsd-$objformat |
10832 |
case $version_type in |
10833 |
freebsd-elf*) |
10834 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10835 |
soname_spec='$libname$release$shared_ext$major' |
10836 |
need_version=no |
10837 |
need_lib_prefix=no |
10838 |
;; |
10839 |
freebsd-*) |
10840 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
10841 |
need_version=yes |
10842 |
;; |
10843 |
esac |
10844 |
shlibpath_var=LD_LIBRARY_PATH |
10845 |
case $host_os in |
10846 |
freebsd2.*) |
10847 |
shlibpath_overrides_runpath=yes |
10848 |
;; |
10849 |
freebsd3.[01]* | freebsdelf3.[01]*) |
10850 |
shlibpath_overrides_runpath=yes |
10851 |
hardcode_into_libs=yes |
10852 |
;; |
10853 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
10854 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
10855 |
shlibpath_overrides_runpath=no |
10856 |
hardcode_into_libs=yes |
10857 |
;; |
10858 |
*) # from 4.6 on, and DragonFly |
10859 |
shlibpath_overrides_runpath=yes |
10860 |
hardcode_into_libs=yes |
10861 |
;; |
10862 |
esac |
10863 |
;; |
10864 |
|
10865 |
haiku*) |
10866 |
version_type=linux # correct to gnu/linux during the next big refactor |
10867 |
need_lib_prefix=no |
10868 |
need_version=no |
10869 |
dynamic_linker="$host_os runtime_loader" |
10870 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10871 |
soname_spec='$libname$release$shared_ext$major' |
10872 |
shlibpath_var=LIBRARY_PATH |
10873 |
shlibpath_overrides_runpath=no |
10874 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
10875 |
hardcode_into_libs=yes |
10876 |
;; |
10877 |
|
10878 |
hpux9* | hpux10* | hpux11*) |
10879 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
10880 |
# link against other versions. |
10881 |
version_type=sunos |
10882 |
need_lib_prefix=no |
10883 |
need_version=no |
10884 |
case $host_cpu in |
10885 |
ia64*) |
10886 |
shrext_cmds='.so' |
10887 |
hardcode_into_libs=yes |
10888 |
dynamic_linker="$host_os dld.so" |
10889 |
shlibpath_var=LD_LIBRARY_PATH |
10890 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10891 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10892 |
soname_spec='$libname$release$shared_ext$major' |
10893 |
if test 32 = "$HPUX_IA64_MODE"; then |
10894 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
10895 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
10896 |
else |
10897 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
10898 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
10899 |
fi |
10900 |
;; |
10901 |
hppa*64*) |
10902 |
shrext_cmds='.sl' |
10903 |
hardcode_into_libs=yes |
10904 |
dynamic_linker="$host_os dld.sl" |
10905 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
10906 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10907 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10908 |
soname_spec='$libname$release$shared_ext$major' |
10909 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10910 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10911 |
;; |
10912 |
*) |
10913 |
shrext_cmds='.sl' |
10914 |
dynamic_linker="$host_os dld.sl" |
10915 |
shlibpath_var=SHLIB_PATH |
10916 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
10917 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10918 |
soname_spec='$libname$release$shared_ext$major' |
10919 |
;; |
10920 |
esac |
10921 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
10922 |
postinstall_cmds='chmod 555 $lib' |
10923 |
# or fails outright, so override atomically: |
10924 |
install_override_mode=555 |
10925 |
;; |
10926 |
|
10927 |
interix[3-9]*) |
10928 |
version_type=linux # correct to gnu/linux during the next big refactor |
10929 |
need_lib_prefix=no |
10930 |
need_version=no |
10931 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10932 |
soname_spec='$libname$release$shared_ext$major' |
10933 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10934 |
shlibpath_var=LD_LIBRARY_PATH |
10935 |
shlibpath_overrides_runpath=no |
10936 |
hardcode_into_libs=yes |
10937 |
;; |
10938 |
|
10939 |
irix5* | irix6* | nonstopux*) |
10940 |
case $host_os in |
10941 |
nonstopux*) version_type=nonstopux ;; |
10942 |
*) |
10943 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
10944 |
version_type=linux # correct to gnu/linux during the next big refactor |
10945 |
else |
10946 |
version_type=irix |
10947 |
fi ;; |
10948 |
esac |
10949 |
need_lib_prefix=no |
10950 |
need_version=no |
10951 |
soname_spec='$libname$release$shared_ext$major' |
10952 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
10953 |
case $host_os in |
10954 |
irix5* | nonstopux*) |
10955 |
libsuff= shlibsuff= |
10956 |
;; |
10957 |
*) |
10958 |
case $LD in # libtool.m4 will add one of these switches to LD |
10959 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
10960 |
libsuff= shlibsuff= libmagic=32-bit;; |
10961 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
10962 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
10963 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
10964 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
10965 |
*) libsuff= shlibsuff= libmagic=never-match;; |
10966 |
esac |
10967 |
;; |
10968 |
esac |
10969 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
10970 |
shlibpath_overrides_runpath=no |
10971 |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10972 |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
10973 |
hardcode_into_libs=yes |
10974 |
;; |
10975 |
|
10976 |
# No shared lib support for Linux oldld, aout, or coff. |
10977 |
linux*oldld* | linux*aout* | linux*coff*) |
10978 |
dynamic_linker=no |
10979 |
;; |
10980 |
|
10981 |
linux*android*) |
10982 |
version_type=none # Android doesn't support versioned libraries. |
10983 |
need_lib_prefix=no |
10984 |
need_version=no |
10985 |
library_names_spec='$libname$release$shared_ext' |
10986 |
soname_spec='$libname$release$shared_ext' |
10987 |
finish_cmds= |
10988 |
shlibpath_var=LD_LIBRARY_PATH |
10989 |
shlibpath_overrides_runpath=yes |
10990 |
|
10991 |
# This implies no fast_install, which is unacceptable. |
10992 |
# Some rework will be needed to allow for fast_install |
10993 |
# before this can be enabled. |
10994 |
hardcode_into_libs=yes |
10995 |
|
10996 |
dynamic_linker='Android linker' |
10997 |
# Don't embed -rpath directories since the linker doesn't support them. |
10998 |
hardcode_libdir_flag_spec='-L$libdir' |
10999 |
;; |
11000 |
|
11001 |
# This must be glibc/ELF. |
11002 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
11003 |
version_type=linux # correct to gnu/linux during the next big refactor |
11004 |
need_lib_prefix=no |
11005 |
need_version=no |
11006 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11007 |
soname_spec='$libname$release$shared_ext$major' |
11008 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11009 |
shlibpath_var=LD_LIBRARY_PATH |
11010 |
shlibpath_overrides_runpath=no |
11011 |
|
11012 |
# Some binutils ld are patched to set DT_RUNPATH |
11013 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11014 |
$as_echo_n "(cached) " >&6 |
11015 |
else |
11016 |
lt_cv_shlibpath_overrides_runpath=no |
11017 |
save_LDFLAGS=$LDFLAGS |
11018 |
save_libdir=$libdir |
11019 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
11020 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
11021 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11022 |
/* end confdefs.h. */ |
11023 |
|
11024 |
int |
11025 |
main () |
11026 |
{ |
11027 |
|
11028 |
; |
11029 |
return 0; |
11030 |
} |
11031 |
_ACEOF |
11032 |
if ac_fn_c_try_link "$LINENO"; then : |
11033 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11034 |
lt_cv_shlibpath_overrides_runpath=yes |
11035 |
fi |
11036 |
fi |
11037 |
rm -f core conftest.err conftest.$ac_objext \ |
11038 |
conftest$ac_exeext conftest.$ac_ext |
11039 |
LDFLAGS=$save_LDFLAGS |
11040 |
libdir=$save_libdir |
11041 |
|
11042 |
fi |
11043 |
|
11044 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
11045 |
|
11046 |
# This implies no fast_install, which is unacceptable. |
11047 |
# Some rework will be needed to allow for fast_install |
11048 |
# before this can be enabled. |
11049 |
hardcode_into_libs=yes |
11050 |
|
11051 |
# Ideally, we could use ldconfig to report *all* directores which are |
11052 |
# searched for libraries, however this is still not possible. Aside from not |
11053 |
# being certain /sbin/ldconfig is available, command |
11054 |
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
11055 |
# even though it is searched at run-time. Try to do the best guess by |
11056 |
# appending ld.so.conf contents (and includes) to the search path. |
11057 |
if test -f /etc/ld.so.conf; then |
11058 |
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' ' '` |
11059 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11060 |
fi |
11061 |
|
11062 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
11063 |
# powerpc, because MkLinux only supported shared libraries with the |
11064 |
# GNU dynamic linker. Since this was broken with cross compilers, |
11065 |
# most powerpc-linux boxes support dynamic linking these days and |
11066 |
# people can always --disable-shared, the test was removed, and we |
11067 |
# assume the GNU/Linux dynamic linker is in use. |
11068 |
dynamic_linker='GNU/Linux ld.so' |
11069 |
;; |
11070 |
|
11071 |
netbsd*) |
11072 |
version_type=sunos |
11073 |
need_lib_prefix=no |
11074 |
need_version=no |
11075 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
11076 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11077 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11078 |
dynamic_linker='NetBSD (a.out) ld.so' |
11079 |
else |
11080 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11081 |
soname_spec='$libname$release$shared_ext$major' |
11082 |
dynamic_linker='NetBSD ld.elf_so' |
11083 |
fi |
11084 |
shlibpath_var=LD_LIBRARY_PATH |
11085 |
shlibpath_overrides_runpath=yes |
11086 |
hardcode_into_libs=yes |
11087 |
;; |
11088 |
|
11089 |
newsos6) |
11090 |
version_type=linux # correct to gnu/linux during the next big refactor |
11091 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11092 |
shlibpath_var=LD_LIBRARY_PATH |
11093 |
shlibpath_overrides_runpath=yes |
11094 |
;; |
11095 |
|
11096 |
*nto* | *qnx*) |
11097 |
version_type=qnx |
11098 |
need_lib_prefix=no |
11099 |
need_version=no |
11100 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11101 |
soname_spec='$libname$release$shared_ext$major' |
11102 |
shlibpath_var=LD_LIBRARY_PATH |
11103 |
shlibpath_overrides_runpath=no |
11104 |
hardcode_into_libs=yes |
11105 |
dynamic_linker='ldqnx.so' |
11106 |
;; |
11107 |
|
11108 |
openbsd* | bitrig*) |
11109 |
version_type=sunos |
11110 |
sys_lib_dlsearch_path_spec=/usr/lib |
11111 |
need_lib_prefix=no |
11112 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11113 |
need_version=no |
11114 |
else |
11115 |
need_version=yes |
11116 |
fi |
11117 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11118 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11119 |
shlibpath_var=LD_LIBRARY_PATH |
11120 |
shlibpath_overrides_runpath=yes |
11121 |
;; |
11122 |
|
11123 |
os2*) |
11124 |
libname_spec='$name' |
11125 |
version_type=windows |
11126 |
shrext_cmds=.dll |
11127 |
need_version=no |
11128 |
need_lib_prefix=no |
11129 |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
11130 |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
11131 |
v=$($ECHO $release$versuffix | tr -d .-); |
11132 |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
11133 |
$ECHO $n$v`$shared_ext' |
11134 |
library_names_spec='${libname}_dll.$libext' |
11135 |
dynamic_linker='OS/2 ld.exe' |
11136 |
shlibpath_var=BEGINLIBPATH |
11137 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11138 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11139 |
postinstall_cmds='base_file=`basename \$file`~ |
11140 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
11141 |
dldir=$destdir/`dirname \$dlpath`~ |
11142 |
test -d \$dldir || mkdir -p \$dldir~ |
11143 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
11144 |
chmod a+x \$dldir/$dlname~ |
11145 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
11146 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
11147 |
fi' |
11148 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
11149 |
dlpath=$dir/\$dldll~ |
11150 |
$RM \$dlpath' |
11151 |
;; |
11152 |
|
11153 |
osf3* | osf4* | osf5*) |
11154 |
version_type=osf |
11155 |
need_lib_prefix=no |
11156 |
need_version=no |
11157 |
soname_spec='$libname$release$shared_ext$major' |
11158 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11159 |
shlibpath_var=LD_LIBRARY_PATH |
11160 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11161 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11162 |
;; |
11163 |
|
11164 |
rdos*) |
11165 |
dynamic_linker=no |
11166 |
;; |
11167 |
|
11168 |
solaris*) |
11169 |
version_type=linux # correct to gnu/linux during the next big refactor |
11170 |
need_lib_prefix=no |
11171 |
need_version=no |
11172 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11173 |
soname_spec='$libname$release$shared_ext$major' |
11174 |
shlibpath_var=LD_LIBRARY_PATH |
11175 |
shlibpath_overrides_runpath=yes |
11176 |
hardcode_into_libs=yes |
11177 |
# ldd complains unless libraries are executable |
11178 |
postinstall_cmds='chmod +x $lib' |
11179 |
;; |
11180 |
|
11181 |
sunos4*) |
11182 |
version_type=sunos |
11183 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11184 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11185 |
shlibpath_var=LD_LIBRARY_PATH |
11186 |
shlibpath_overrides_runpath=yes |
11187 |
if test yes = "$with_gnu_ld"; then |
11188 |
need_lib_prefix=no |
11189 |
fi |
11190 |
need_version=yes |
11191 |
;; |
11192 |
|
11193 |
sysv4 | sysv4.3*) |
11194 |
version_type=linux # correct to gnu/linux during the next big refactor |
11195 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11196 |
soname_spec='$libname$release$shared_ext$major' |
11197 |
shlibpath_var=LD_LIBRARY_PATH |
11198 |
case $host_vendor in |
11199 |
sni) |
11200 |
shlibpath_overrides_runpath=no |
11201 |
need_lib_prefix=no |
11202 |
runpath_var=LD_RUN_PATH |
11203 |
;; |
11204 |
siemens) |
11205 |
need_lib_prefix=no |
11206 |
;; |
11207 |
motorola) |
11208 |
need_lib_prefix=no |
11209 |
need_version=no |
11210 |
shlibpath_overrides_runpath=no |
11211 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
11212 |
;; |
11213 |
esac |
11214 |
;; |
11215 |
|
11216 |
sysv4*MP*) |
11217 |
if test -d /usr/nec; then |
11218 |
version_type=linux # correct to gnu/linux during the next big refactor |
11219 |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11220 |
soname_spec='$libname$shared_ext.$major' |
11221 |
shlibpath_var=LD_LIBRARY_PATH |
11222 |
fi |
11223 |
;; |
11224 |
|
11225 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11226 |
version_type=sco |
11227 |
need_lib_prefix=no |
11228 |
need_version=no |
11229 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11230 |
soname_spec='$libname$release$shared_ext$major' |
11231 |
shlibpath_var=LD_LIBRARY_PATH |
11232 |
shlibpath_overrides_runpath=yes |
11233 |
hardcode_into_libs=yes |
11234 |
if test yes = "$with_gnu_ld"; then |
11235 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11236 |
else |
11237 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11238 |
case $host_os in |
11239 |
sco3.2v5*) |
11240 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
11241 |
;; |
11242 |
esac |
11243 |
fi |
11244 |
sys_lib_dlsearch_path_spec='/usr/lib' |
11245 |
;; |
11246 |
|
11247 |
tpf*) |
11248 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
11249 |
version_type=linux # correct to gnu/linux during the next big refactor |
11250 |
need_lib_prefix=no |
11251 |
need_version=no |
11252 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11253 |
shlibpath_var=LD_LIBRARY_PATH |
11254 |
shlibpath_overrides_runpath=no |
11255 |
hardcode_into_libs=yes |
11256 |
;; |
11257 |
|
11258 |
uts4*) |
11259 |
version_type=linux # correct to gnu/linux during the next big refactor |
11260 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11261 |
soname_spec='$libname$release$shared_ext$major' |
11262 |
shlibpath_var=LD_LIBRARY_PATH |
11263 |
;; |
11264 |
|
11265 |
*) |
11266 |
dynamic_linker=no |
11267 |
;; |
11268 |
esac |
11269 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11270 |
$as_echo "$dynamic_linker" >&6; } |
11271 |
test no = "$dynamic_linker" && can_build_shared=no |
11272 |
|
11273 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11274 |
if test yes = "$GCC"; then |
11275 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11276 |
fi |
11277 |
|
11278 |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11279 |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
11280 |
fi |
11281 |
|
11282 |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
11283 |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
11284 |
fi |
11285 |
|
11286 |
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11287 |
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
11288 |
|
11289 |
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
11290 |
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
11291 |
|
11292 |
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
11293 |
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
11294 |
|
11295 |
|
11296 |
|
11297 |
|
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 |
|
11391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11392 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11393 |
hardcode_action= |
11394 |
if test -n "$hardcode_libdir_flag_spec" || |
11395 |
test -n "$runpath_var" || |
11396 |
test yes = "$hardcode_automatic"; then |
11397 |
|
11398 |
# We can hardcode non-existent directories. |
11399 |
if test no != "$hardcode_direct" && |
11400 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
11401 |
# have to relink, otherwise we might link with an installed library |
11402 |
# when we should be linking with a yet-to-be-installed one |
11403 |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11404 |
test no != "$hardcode_minus_L"; then |
11405 |
# Linking always hardcodes the temporary library directory. |
11406 |
hardcode_action=relink |
11407 |
else |
11408 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
11409 |
hardcode_action=immediate |
11410 |
fi |
11411 |
else |
11412 |
# We cannot hardcode anything, or else we can only hardcode existing |
11413 |
# directories. |
11414 |
hardcode_action=unsupported |
11415 |
fi |
11416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11417 |
$as_echo "$hardcode_action" >&6; } |
11418 |
|
11419 |
if test relink = "$hardcode_action" || |
11420 |
test yes = "$inherit_rpath"; then |
11421 |
# Fast installation is not supported |
11422 |
enable_fast_install=no |
11423 |
elif test yes = "$shlibpath_overrides_runpath" || |
11424 |
test no = "$enable_shared"; then |
11425 |
# Fast installation is not necessary |
11426 |
enable_fast_install=needless |
11427 |
fi |
11428 |
|
11429 |
|
11430 |
|
11431 |
|
11432 |
|
11433 |
|
11434 |
if test yes != "$enable_dlopen"; then |
11435 |
enable_dlopen=unknown |
11436 |
enable_dlopen_self=unknown |
11437 |
enable_dlopen_self_static=unknown |
11438 |
else |
11439 |
lt_cv_dlopen=no |
11440 |
lt_cv_dlopen_libs= |
11441 |
|
11442 |
case $host_os in |
11443 |
beos*) |
11444 |
lt_cv_dlopen=load_add_on |
11445 |
lt_cv_dlopen_libs= |
11446 |
lt_cv_dlopen_self=yes |
11447 |
;; |
11448 |
|
11449 |
mingw* | pw32* | cegcc*) |
11450 |
lt_cv_dlopen=LoadLibrary |
11451 |
lt_cv_dlopen_libs= |
11452 |
;; |
11453 |
|
11454 |
cygwin*) |
11455 |
lt_cv_dlopen=dlopen |
11456 |
lt_cv_dlopen_libs= |
11457 |
;; |
11458 |
|
11459 |
darwin*) |
11460 |
# if libdl is installed we need to link against it |
11461 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11462 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11463 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11464 |
$as_echo_n "(cached) " >&6 |
11465 |
else |
11466 |
ac_check_lib_save_LIBS=$LIBS |
11467 |
LIBS="-ldl $LIBS" |
11468 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11469 |
/* end confdefs.h. */ |
11470 |
|
11471 |
/* Override any GCC internal prototype to avoid an error. |
11472 |
Use char because int might match the return type of a GCC |
11473 |
builtin and then its argument prototype would still apply. */ |
11474 |
#ifdef __cplusplus |
11475 |
extern "C" |
11476 |
#endif |
11477 |
char dlopen (); |
11478 |
int |
11479 |
main () |
11480 |
{ |
11481 |
return dlopen (); |
11482 |
; |
11483 |
return 0; |
11484 |
} |
11485 |
_ACEOF |
11486 |
if ac_fn_c_try_link "$LINENO"; then : |
11487 |
ac_cv_lib_dl_dlopen=yes |
11488 |
else |
11489 |
ac_cv_lib_dl_dlopen=no |
11490 |
fi |
11491 |
rm -f core conftest.err conftest.$ac_objext \ |
11492 |
conftest$ac_exeext conftest.$ac_ext |
11493 |
LIBS=$ac_check_lib_save_LIBS |
11494 |
fi |
11495 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11496 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11497 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11498 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11499 |
else |
11500 |
|
11501 |
lt_cv_dlopen=dyld |
11502 |
lt_cv_dlopen_libs= |
11503 |
lt_cv_dlopen_self=yes |
11504 |
|
11505 |
fi |
11506 |
|
11507 |
;; |
11508 |
|
11509 |
tpf*) |
11510 |
# Don't try to run any link tests for TPF. We know it's impossible |
11511 |
# because TPF is a cross-compiler, and we know how we open DSOs. |
11512 |
lt_cv_dlopen=dlopen |
11513 |
lt_cv_dlopen_libs= |
11514 |
lt_cv_dlopen_self=no |
11515 |
;; |
11516 |
|
11517 |
*) |
11518 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11519 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
11520 |
lt_cv_dlopen=shl_load |
11521 |
else |
11522 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11523 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
11524 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
11525 |
$as_echo_n "(cached) " >&6 |
11526 |
else |
11527 |
ac_check_lib_save_LIBS=$LIBS |
11528 |
LIBS="-ldld $LIBS" |
11529 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11530 |
/* end confdefs.h. */ |
11531 |
|
11532 |
/* Override any GCC internal prototype to avoid an error. |
11533 |
Use char because int might match the return type of a GCC |
11534 |
builtin and then its argument prototype would still apply. */ |
11535 |
#ifdef __cplusplus |
11536 |
extern "C" |
11537 |
#endif |
11538 |
char shl_load (); |
11539 |
int |
11540 |
main () |
11541 |
{ |
11542 |
return shl_load (); |
11543 |
; |
11544 |
return 0; |
11545 |
} |
11546 |
_ACEOF |
11547 |
if ac_fn_c_try_link "$LINENO"; then : |
11548 |
ac_cv_lib_dld_shl_load=yes |
11549 |
else |
11550 |
ac_cv_lib_dld_shl_load=no |
11551 |
fi |
11552 |
rm -f core conftest.err conftest.$ac_objext \ |
11553 |
conftest$ac_exeext conftest.$ac_ext |
11554 |
LIBS=$ac_check_lib_save_LIBS |
11555 |
fi |
11556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11557 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
11558 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
11559 |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
11560 |
else |
11561 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11562 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
11563 |
lt_cv_dlopen=dlopen |
11564 |
else |
11565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11566 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11567 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11568 |
$as_echo_n "(cached) " >&6 |
11569 |
else |
11570 |
ac_check_lib_save_LIBS=$LIBS |
11571 |
LIBS="-ldl $LIBS" |
11572 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11573 |
/* end confdefs.h. */ |
11574 |
|
11575 |
/* Override any GCC internal prototype to avoid an error. |
11576 |
Use char because int might match the return type of a GCC |
11577 |
builtin and then its argument prototype would still apply. */ |
11578 |
#ifdef __cplusplus |
11579 |
extern "C" |
11580 |
#endif |
11581 |
char dlopen (); |
11582 |
int |
11583 |
main () |
11584 |
{ |
11585 |
return dlopen (); |
11586 |
; |
11587 |
return 0; |
11588 |
} |
11589 |
_ACEOF |
11590 |
if ac_fn_c_try_link "$LINENO"; then : |
11591 |
ac_cv_lib_dl_dlopen=yes |
11592 |
else |
11593 |
ac_cv_lib_dl_dlopen=no |
11594 |
fi |
11595 |
rm -f core conftest.err conftest.$ac_objext \ |
11596 |
conftest$ac_exeext conftest.$ac_ext |
11597 |
LIBS=$ac_check_lib_save_LIBS |
11598 |
fi |
11599 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11600 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11601 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11602 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11603 |
else |
11604 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11605 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
11606 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
11607 |
$as_echo_n "(cached) " >&6 |
11608 |
else |
11609 |
ac_check_lib_save_LIBS=$LIBS |
11610 |
LIBS="-lsvld $LIBS" |
11611 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11612 |
/* end confdefs.h. */ |
11613 |
|
11614 |
/* Override any GCC internal prototype to avoid an error. |
11615 |
Use char because int might match the return type of a GCC |
11616 |
builtin and then its argument prototype would still apply. */ |
11617 |
#ifdef __cplusplus |
11618 |
extern "C" |
11619 |
#endif |
11620 |
char dlopen (); |
11621 |
int |
11622 |
main () |
11623 |
{ |
11624 |
return dlopen (); |
11625 |
; |
11626 |
return 0; |
11627 |
} |
11628 |
_ACEOF |
11629 |
if ac_fn_c_try_link "$LINENO"; then : |
11630 |
ac_cv_lib_svld_dlopen=yes |
11631 |
else |
11632 |
ac_cv_lib_svld_dlopen=no |
11633 |
fi |
11634 |
rm -f core conftest.err conftest.$ac_objext \ |
11635 |
conftest$ac_exeext conftest.$ac_ext |
11636 |
LIBS=$ac_check_lib_save_LIBS |
11637 |
fi |
11638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11639 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
11640 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
11641 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
11642 |
else |
11643 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11644 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
11645 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
11646 |
$as_echo_n "(cached) " >&6 |
11647 |
else |
11648 |
ac_check_lib_save_LIBS=$LIBS |
11649 |
LIBS="-ldld $LIBS" |
11650 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11651 |
/* end confdefs.h. */ |
11652 |
|
11653 |
/* Override any GCC internal prototype to avoid an error. |
11654 |
Use char because int might match the return type of a GCC |
11655 |
builtin and then its argument prototype would still apply. */ |
11656 |
#ifdef __cplusplus |
11657 |
extern "C" |
11658 |
#endif |
11659 |
char dld_link (); |
11660 |
int |
11661 |
main () |
11662 |
{ |
11663 |
return dld_link (); |
11664 |
; |
11665 |
return 0; |
11666 |
} |
11667 |
_ACEOF |
11668 |
if ac_fn_c_try_link "$LINENO"; then : |
11669 |
ac_cv_lib_dld_dld_link=yes |
11670 |
else |
11671 |
ac_cv_lib_dld_dld_link=no |
11672 |
fi |
11673 |
rm -f core conftest.err conftest.$ac_objext \ |
11674 |
conftest$ac_exeext conftest.$ac_ext |
11675 |
LIBS=$ac_check_lib_save_LIBS |
11676 |
fi |
11677 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11678 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
11679 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
11680 |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
11681 |
fi |
11682 |
|
11683 |
|
11684 |
fi |
11685 |
|
11686 |
|
11687 |
fi |
11688 |
|
11689 |
|
11690 |
fi |
11691 |
|
11692 |
|
11693 |
fi |
11694 |
|
11695 |
|
11696 |
fi |
11697 |
|
11698 |
;; |
11699 |
esac |
11700 |
|
11701 |
if test no = "$lt_cv_dlopen"; then |
11702 |
enable_dlopen=no |
11703 |
else |
11704 |
enable_dlopen=yes |
11705 |
fi |
11706 |
|
11707 |
case $lt_cv_dlopen in |
11708 |
dlopen) |
11709 |
save_CPPFLAGS=$CPPFLAGS |
11710 |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
11711 |
|
11712 |
save_LDFLAGS=$LDFLAGS |
11713 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11714 |
|
11715 |
save_LIBS=$LIBS |
11716 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
11717 |
|
11718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11719 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
11720 |
if ${lt_cv_dlopen_self+:} false; then : |
11721 |
$as_echo_n "(cached) " >&6 |
11722 |
else |
11723 |
if test yes = "$cross_compiling"; then : |
11724 |
lt_cv_dlopen_self=cross |
11725 |
else |
11726 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11727 |
lt_status=$lt_dlunknown |
11728 |
cat > conftest.$ac_ext <<_LT_EOF |
11729 |
#line $LINENO "configure" |
11730 |
#include "confdefs.h" |
11731 |
|
11732 |
#if HAVE_DLFCN_H |
11733 |
#include <dlfcn.h> |
11734 |
#endif |
11735 |
|
11736 |
#include <stdio.h> |
11737 |
|
11738 |
#ifdef RTLD_GLOBAL |
11739 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11740 |
#else |
11741 |
# ifdef DL_GLOBAL |
11742 |
# define LT_DLGLOBAL DL_GLOBAL |
11743 |
# else |
11744 |
# define LT_DLGLOBAL 0 |
11745 |
# endif |
11746 |
#endif |
11747 |
|
11748 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11749 |
find out it does not work in some platform. */ |
11750 |
#ifndef LT_DLLAZY_OR_NOW |
11751 |
# ifdef RTLD_LAZY |
11752 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11753 |
# else |
11754 |
# ifdef DL_LAZY |
11755 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11756 |
# else |
11757 |
# ifdef RTLD_NOW |
11758 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11759 |
# else |
11760 |
# ifdef DL_NOW |
11761 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11762 |
# else |
11763 |
# define LT_DLLAZY_OR_NOW 0 |
11764 |
# endif |
11765 |
# endif |
11766 |
# endif |
11767 |
# endif |
11768 |
#endif |
11769 |
|
11770 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
11771 |
correspondingly for the symbols needed. */ |
11772 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11773 |
int fnord () __attribute__((visibility("default"))); |
11774 |
#endif |
11775 |
|
11776 |
int fnord () { return 42; } |
11777 |
int main () |
11778 |
{ |
11779 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11780 |
int status = $lt_dlunknown; |
11781 |
|
11782 |
if (self) |
11783 |
{ |
11784 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11785 |
else |
11786 |
{ |
11787 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11788 |
else puts (dlerror ()); |
11789 |
} |
11790 |
/* dlclose (self); */ |
11791 |
} |
11792 |
else |
11793 |
puts (dlerror ()); |
11794 |
|
11795 |
return status; |
11796 |
} |
11797 |
_LT_EOF |
11798 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11799 |
(eval $ac_link) 2>&5 |
11800 |
ac_status=$? |
11801 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11802 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
11803 |
(./conftest; exit; ) >&5 2>/dev/null |
11804 |
lt_status=$? |
11805 |
case x$lt_status in |
11806 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
11807 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
11808 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
11809 |
esac |
11810 |
else : |
11811 |
# compilation failed |
11812 |
lt_cv_dlopen_self=no |
11813 |
fi |
11814 |
fi |
11815 |
rm -fr conftest* |
11816 |
|
11817 |
|
11818 |
fi |
11819 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11820 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
11821 |
|
11822 |
if test yes = "$lt_cv_dlopen_self"; then |
11823 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
11824 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11825 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
11826 |
if ${lt_cv_dlopen_self_static+:} false; then : |
11827 |
$as_echo_n "(cached) " >&6 |
11828 |
else |
11829 |
if test yes = "$cross_compiling"; then : |
11830 |
lt_cv_dlopen_self_static=cross |
11831 |
else |
11832 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11833 |
lt_status=$lt_dlunknown |
11834 |
cat > conftest.$ac_ext <<_LT_EOF |
11835 |
#line $LINENO "configure" |
11836 |
#include "confdefs.h" |
11837 |
|
11838 |
#if HAVE_DLFCN_H |
11839 |
#include <dlfcn.h> |
11840 |
#endif |
11841 |
|
11842 |
#include <stdio.h> |
11843 |
|
11844 |
#ifdef RTLD_GLOBAL |
11845 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11846 |
#else |
11847 |
# ifdef DL_GLOBAL |
11848 |
# define LT_DLGLOBAL DL_GLOBAL |
11849 |
# else |
11850 |
# define LT_DLGLOBAL 0 |
11851 |
# endif |
11852 |
#endif |
11853 |
|
11854 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11855 |
find out it does not work in some platform. */ |
11856 |
#ifndef LT_DLLAZY_OR_NOW |
11857 |
# ifdef RTLD_LAZY |
11858 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11859 |
# else |
11860 |
# ifdef DL_LAZY |
11861 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11862 |
# else |
11863 |
# ifdef RTLD_NOW |
11864 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11865 |
# else |
11866 |
# ifdef DL_NOW |
11867 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11868 |
# else |
11869 |
# define LT_DLLAZY_OR_NOW 0 |
11870 |
# endif |
11871 |
# endif |
11872 |
# endif |
11873 |
# endif |
11874 |
#endif |
11875 |
|
11876 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
11877 |
correspondingly for the symbols needed. */ |
11878 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11879 |
int fnord () __attribute__((visibility("default"))); |
11880 |
#endif |
11881 |
|
11882 |
int fnord () { return 42; } |
11883 |
int main () |
11884 |
{ |
11885 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11886 |
int status = $lt_dlunknown; |
11887 |
|
11888 |
if (self) |
11889 |
{ |
11890 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11891 |
else |
11892 |
{ |
11893 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11894 |
else puts (dlerror ()); |
11895 |
} |
11896 |
/* dlclose (self); */ |
11897 |
} |
11898 |
else |
11899 |
puts (dlerror ()); |
11900 |
|
11901 |
return status; |
11902 |
} |
11903 |
_LT_EOF |
11904 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11905 |
(eval $ac_link) 2>&5 |
11906 |
ac_status=$? |
11907 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11908 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
11909 |
(./conftest; exit; ) >&5 2>/dev/null |
11910 |
lt_status=$? |
11911 |
case x$lt_status in |
11912 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
11913 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
11914 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
11915 |
esac |
11916 |
else : |
11917 |
# compilation failed |
11918 |
lt_cv_dlopen_self_static=no |
11919 |
fi |
11920 |
fi |
11921 |
rm -fr conftest* |
11922 |
|
11923 |
|
11924 |
fi |
11925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11926 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
11927 |
fi |
11928 |
|
11929 |
CPPFLAGS=$save_CPPFLAGS |
11930 |
LDFLAGS=$save_LDFLAGS |
11931 |
LIBS=$save_LIBS |
11932 |
;; |
11933 |
esac |
11934 |
|
11935 |
case $lt_cv_dlopen_self in |
11936 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
11937 |
*) enable_dlopen_self=unknown ;; |
11938 |
esac |
11939 |
|
11940 |
case $lt_cv_dlopen_self_static in |
11941 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
11942 |
*) enable_dlopen_self_static=unknown ;; |
11943 |
esac |
11944 |
fi |
11945 |
|
11946 |
|
11947 |
|
11948 |
|
11949 |
|
11950 |
|
11951 |
|
11952 |
|
11953 |
|
11954 |
|
11955 |
|
11956 |
|
11957 |
|
11958 |
|
11959 |
|
11960 |
|
11961 |
|
11962 |
striplib= |
11963 |
old_striplib= |
11964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11965 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11966 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11967 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
11968 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
11969 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11970 |
$as_echo "yes" >&6; } |
11971 |
else |
11972 |
# FIXME - insert some real tests, host_os isn't really good enough |
11973 |
case $host_os in |
11974 |
darwin*) |
11975 |
if test -n "$STRIP"; then |
11976 |
striplib="$STRIP -x" |
11977 |
old_striplib="$STRIP -S" |
11978 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11979 |
$as_echo "yes" >&6; } |
11980 |
else |
11981 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11982 |
$as_echo "no" >&6; } |
11983 |
fi |
11984 |
;; |
11985 |
*) |
11986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11987 |
$as_echo "no" >&6; } |
11988 |
;; |
11989 |
esac |
11990 |
fi |
11991 |
|
11992 |
|
11993 |
|
11994 |
|
11995 |
|
11996 |
|
11997 |
|
11998 |
|
11999 |
|
12000 |
|
12001 |
|
12002 |
|
12003 |
# Report what library types will actually be built |
12004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12005 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
12006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
12007 |
$as_echo "$can_build_shared" >&6; } |
12008 |
|
12009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12010 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
12011 |
test no = "$can_build_shared" && enable_shared=no |
12012 |
|
12013 |
# On AIX, shared libraries and static libraries use the same namespace, and |
12014 |
# are all built from PIC. |
12015 |
case $host_os in |
12016 |
aix3*) |
12017 |
test yes = "$enable_shared" && enable_static=no |
12018 |
if test -n "$RANLIB"; then |
12019 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
12020 |
postinstall_cmds='$RANLIB $lib' |
12021 |
fi |
12022 |
;; |
12023 |
|
12024 |
aix[4-9]*) |
12025 |
if test ia64 != "$host_cpu"; then |
12026 |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
12027 |
yes,aix,yes) ;; # shared object as lib.so file only |
12028 |
yes,svr4,*) ;; # shared object as lib.so archive member only |
12029 |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
12030 |
esac |
12031 |
fi |
12032 |
;; |
12033 |
esac |
12034 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12035 |
$as_echo "$enable_shared" >&6; } |
12036 |
|
12037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12038 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
12039 |
# Make sure either enable_shared or enable_static is yes. |
12040 |
test yes = "$enable_shared" || enable_static=yes |
12041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12042 |
$as_echo "$enable_static" >&6; } |
12043 |
|
12044 |
|
12045 |
|
12046 |
|
12047 |
fi |
12048 |
ac_ext=c |
12049 |
ac_cpp='$CPP $CPPFLAGS' |
12050 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12051 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12052 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12053 |
|
12054 |
CC=$lt_save_CC |
12055 |
|
12056 |
|
12057 |
|
12058 |
|
12059 |
|
12060 |
|
12061 |
|
12062 |
|
12063 |
|
12064 |
|
12065 |
|
12066 |
|
12067 |
|
12068 |
|
12069 |
|
12070 |
ac_config_commands="$ac_config_commands libtool" |
12071 |
|
12072 |
|
12073 |
|
12074 |
|
12075 |
# Only expand once: |
12076 |
|
12077 |
|
12078 |
|
12079 |
|
12080 |
for ac_prog in 'bison -y' byacc |
12081 |
do |
12082 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
12083 |
set dummy $ac_prog; ac_word=$2 |
12084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12085 |
$as_echo_n "checking for $ac_word... " >&6; } |
12086 |
if ${ac_cv_prog_YACC+:} false; then : |
12087 |
$as_echo_n "(cached) " >&6 |
12088 |
else |
12089 |
if test -n "$YACC"; then |
12090 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
12091 |
else |
12092 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12093 |
for as_dir in $PATH |
12094 |
do |
12095 |
IFS=$as_save_IFS |
12096 |
test -z "$as_dir" && as_dir=. |
12097 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12098 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12099 |
ac_cv_prog_YACC="$ac_prog" |
12100 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12101 |
break 2 |
12102 |
fi |
12103 |
done |
12104 |
done |
12105 |
IFS=$as_save_IFS |
12106 |
|
12107 |
fi |
12108 |
fi |
12109 |
YACC=$ac_cv_prog_YACC |
12110 |
if test -n "$YACC"; then |
12111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12112 |
$as_echo "$YACC" >&6; } |
12113 |
else |
12114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12115 |
$as_echo "no" >&6; } |
12116 |
fi |
12117 |
|
12118 |
|
12119 |
test -n "$YACC" && break |
12120 |
done |
12121 |
test -n "$YACC" || YACC="yacc" |
12122 |
|
12123 |
|
12124 |
for ac_prog in flex lex |
12125 |
do |
12126 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
12127 |
set dummy $ac_prog; ac_word=$2 |
12128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12129 |
$as_echo_n "checking for $ac_word... " >&6; } |
12130 |
if ${ac_cv_prog_LEX+:} false; then : |
12131 |
$as_echo_n "(cached) " >&6 |
12132 |
else |
12133 |
if test -n "$LEX"; then |
12134 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
12135 |
else |
12136 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12137 |
for as_dir in $PATH |
12138 |
do |
12139 |
IFS=$as_save_IFS |
12140 |
test -z "$as_dir" && as_dir=. |
12141 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12142 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12143 |
ac_cv_prog_LEX="$ac_prog" |
12144 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12145 |
break 2 |
12146 |
fi |
12147 |
done |
12148 |
done |
12149 |
IFS=$as_save_IFS |
12150 |
|
12151 |
fi |
12152 |
fi |
12153 |
LEX=$ac_cv_prog_LEX |
12154 |
if test -n "$LEX"; then |
12155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12156 |
$as_echo "$LEX" >&6; } |
12157 |
else |
12158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12159 |
$as_echo "no" >&6; } |
12160 |
fi |
12161 |
|
12162 |
|
12163 |
test -n "$LEX" && break |
12164 |
done |
12165 |
test -n "$LEX" || LEX=":" |
12166 |
|
12167 |
if test "x$LEX" != "x:"; then |
12168 |
cat >conftest.l <<_ACEOF |
12169 |
%% |
12170 |
a { ECHO; } |
12171 |
b { REJECT; } |
12172 |
c { yymore (); } |
12173 |
d { yyless (1); } |
12174 |
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
12175 |
yyless ((input () != 0)); } |
12176 |
f { unput (yytext[0]); } |
12177 |
. { BEGIN INITIAL; } |
12178 |
%% |
12179 |
#ifdef YYTEXT_POINTER |
12180 |
extern char *yytext; |
12181 |
#endif |
12182 |
int |
12183 |
main (void) |
12184 |
{ |
12185 |
return ! yylex () + ! yywrap (); |
12186 |
} |
12187 |
_ACEOF |
12188 |
{ { ac_try="$LEX conftest.l" |
12189 |
case "(($ac_try" in |
12190 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12191 |
*) ac_try_echo=$ac_try;; |
12192 |
esac |
12193 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
12194 |
$as_echo "$ac_try_echo"; } >&5 |
12195 |
(eval "$LEX conftest.l") 2>&5 |
12196 |
ac_status=$? |
12197 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12198 |
test $ac_status = 0; } |
12199 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
12200 |
$as_echo_n "checking lex output file root... " >&6; } |
12201 |
if ${ac_cv_prog_lex_root+:} false; then : |
12202 |
$as_echo_n "(cached) " >&6 |
12203 |
else |
12204 |
|
12205 |
if test -f lex.yy.c; then |
12206 |
ac_cv_prog_lex_root=lex.yy |
12207 |
elif test -f lexyy.c; then |
12208 |
ac_cv_prog_lex_root=lexyy |
12209 |
else |
12210 |
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
12211 |
fi |
12212 |
fi |
12213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12214 |
$as_echo "$ac_cv_prog_lex_root" >&6; } |
12215 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
12216 |
|
12217 |
if test -z "${LEXLIB+set}"; then |
12218 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
12219 |
$as_echo_n "checking lex library... " >&6; } |
12220 |
if ${ac_cv_lib_lex+:} false; then : |
12221 |
$as_echo_n "(cached) " >&6 |
12222 |
else |
12223 |
|
12224 |
ac_save_LIBS=$LIBS |
12225 |
ac_cv_lib_lex='none needed' |
12226 |
for ac_lib in '' -lfl -ll; do |
12227 |
LIBS="$ac_lib $ac_save_LIBS" |
12228 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12229 |
/* end confdefs.h. */ |
12230 |
`cat $LEX_OUTPUT_ROOT.c` |
12231 |
_ACEOF |
12232 |
if ac_fn_c_try_link "$LINENO"; then : |
12233 |
ac_cv_lib_lex=$ac_lib |
12234 |
fi |
12235 |
rm -f core conftest.err conftest.$ac_objext \ |
12236 |
conftest$ac_exeext conftest.$ac_ext |
12237 |
test "$ac_cv_lib_lex" != 'none needed' && break |
12238 |
done |
12239 |
LIBS=$ac_save_LIBS |
12240 |
|
12241 |
fi |
12242 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12243 |
$as_echo "$ac_cv_lib_lex" >&6; } |
12244 |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
12245 |
fi |
12246 |
|
12247 |
|
12248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12249 |
$as_echo_n "checking whether yytext is a pointer... " >&6; } |
12250 |
if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
12251 |
$as_echo_n "(cached) " >&6 |
12252 |
else |
12253 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
12254 |
# default is implementation-dependent. Figure out which it is, since |
12255 |
# not all implementations provide the %pointer and %array declarations. |
12256 |
ac_cv_prog_lex_yytext_pointer=no |
12257 |
ac_save_LIBS=$LIBS |
12258 |
LIBS="$LEXLIB $ac_save_LIBS" |
12259 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12260 |
/* end confdefs.h. */ |
12261 |
|
12262 |
#define YYTEXT_POINTER 1 |
12263 |
`cat $LEX_OUTPUT_ROOT.c` |
12264 |
_ACEOF |
12265 |
if ac_fn_c_try_link "$LINENO"; then : |
12266 |
ac_cv_prog_lex_yytext_pointer=yes |
12267 |
fi |
12268 |
rm -f core conftest.err conftest.$ac_objext \ |
12269 |
conftest$ac_exeext conftest.$ac_ext |
12270 |
LIBS=$ac_save_LIBS |
12271 |
|
12272 |
fi |
12273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12274 |
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
12275 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
12276 |
|
12277 |
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
12278 |
|
12279 |
fi |
12280 |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
12281 |
|
12282 |
fi |
12283 |
if test "$LEX" = :; then |
12284 |
LEX=${am_missing_run}flex |
12285 |
fi |
12286 |
|
12287 |
|
12288 |
|
12289 |
if test "X$CC" != "X"; then |
12290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5 |
12291 |
$as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; } |
12292 |
if ${ssp_cv_cc+:} false; then : |
12293 |
$as_echo_n "(cached) " >&6 |
12294 |
else |
12295 |
ssp_old_cflags="$CFLAGS" |
12296 |
CFLAGS="$CFLAGS -fstack-protector-strong" |
12297 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12298 |
/* end confdefs.h. */ |
12299 |
|
12300 |
int |
12301 |
main () |
12302 |
{ |
12303 |
|
12304 |
; |
12305 |
return 0; |
12306 |
} |
12307 |
_ACEOF |
12308 |
if ac_fn_c_try_compile "$LINENO"; then : |
12309 |
ssp_cv_cc=yes |
12310 |
else |
12311 |
ssp_cv_cc=no |
12312 |
fi |
12313 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12314 |
CFLAGS="$ssp_old_cflags" |
12315 |
|
12316 |
fi |
12317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
12318 |
$as_echo "$ssp_cv_cc" >&6; } |
12319 |
if test $ssp_cv_cc = yes; then |
12320 |
CFLAGS="$CFLAGS -fstack-protector-strong" |
12321 |
|
12322 |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
12323 |
|
12324 |
else |
12325 |
unset ssp_cv_cc |
12326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 |
12327 |
$as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } |
12328 |
if ${ssp_cv_cc+:} false; then : |
12329 |
$as_echo_n "(cached) " >&6 |
12330 |
else |
12331 |
ssp_old_cflags="$CFLAGS" |
12332 |
CFLAGS="$CFLAGS -fstack-protector" |
12333 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12334 |
/* end confdefs.h. */ |
12335 |
|
12336 |
int |
12337 |
main () |
12338 |
{ |
12339 |
|
12340 |
; |
12341 |
return 0; |
12342 |
} |
12343 |
_ACEOF |
12344 |
if ac_fn_c_try_compile "$LINENO"; then : |
12345 |
ssp_cv_cc=yes |
12346 |
else |
12347 |
ssp_cv_cc=no |
12348 |
fi |
12349 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12350 |
CFLAGS="$ssp_old_cflags" |
12351 |
|
12352 |
fi |
12353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 |
12354 |
$as_echo "$ssp_cv_cc" >&6; } |
12355 |
if test $ssp_cv_cc = yes; then |
12356 |
CFLAGS="$CFLAGS -fstack-protector" |
12357 |
|
12358 |
$as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h |
12359 |
|
12360 |
fi |
12361 |
fi |
12362 |
fi |
12363 |
|
12364 |
|
12365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 |
12366 |
$as_echo_n "checking whether libssp exists... " >&6; } |
12367 |
if ${ssp_cv_lib+:} false; then : |
12368 |
$as_echo_n "(cached) " >&6 |
12369 |
else |
12370 |
ssp_old_libs="$LIBS" |
12371 |
LIBS="$LIBS -lssp" |
12372 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12373 |
/* end confdefs.h. */ |
12374 |
|
12375 |
int |
12376 |
main () |
12377 |
{ |
12378 |
|
12379 |
; |
12380 |
return 0; |
12381 |
} |
12382 |
_ACEOF |
12383 |
if ac_fn_c_try_link "$LINENO"; then : |
12384 |
ssp_cv_lib=yes |
12385 |
else |
12386 |
ssp_cv_lib=no |
12387 |
fi |
12388 |
rm -f core conftest.err conftest.$ac_objext \ |
12389 |
conftest$ac_exeext conftest.$ac_ext |
12390 |
LIBS="$ssp_old_libs" |
12391 |
|
12392 |
fi |
12393 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 |
12394 |
$as_echo "$ssp_cv_lib" >&6; } |
12395 |
if test $ssp_cv_lib = yes; then |
12396 |
LIBS="$LIBS -lssp" |
12397 |
fi |
12398 |
|
12399 |
|
12400 |
|
12401 |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
12402 |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
12403 |
|
12404 |
else |
12405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
12406 |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
12407 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12408 |
$as_echo_n "(cached) " >&6 |
12409 |
else |
12410 |
ac_func_search_save_LIBS=$LIBS |
12411 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12412 |
/* end confdefs.h. */ |
12413 |
|
12414 |
/* Override any GCC internal prototype to avoid an error. |
12415 |
Use char because int might match the return type of a GCC |
12416 |
builtin and then its argument prototype would still apply. */ |
12417 |
#ifdef __cplusplus |
12418 |
extern "C" |
12419 |
#endif |
12420 |
char getaddrinfo (); |
12421 |
int |
12422 |
main () |
12423 |
{ |
12424 |
return getaddrinfo (); |
12425 |
; |
12426 |
return 0; |
12427 |
} |
12428 |
_ACEOF |
12429 |
for ac_lib in '' nsl; do |
12430 |
if test -z "$ac_lib"; then |
12431 |
ac_res="none required" |
12432 |
else |
12433 |
ac_res=-l$ac_lib |
12434 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12435 |
fi |
12436 |
if ac_fn_c_try_link "$LINENO"; then : |
12437 |
ac_cv_search_getaddrinfo=$ac_res |
12438 |
fi |
12439 |
rm -f core conftest.err conftest.$ac_objext \ |
12440 |
conftest$ac_exeext |
12441 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12442 |
break |
12443 |
fi |
12444 |
done |
12445 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12446 |
|
12447 |
else |
12448 |
ac_cv_search_getaddrinfo=no |
12449 |
fi |
12450 |
rm conftest.$ac_ext |
12451 |
LIBS=$ac_func_search_save_LIBS |
12452 |
fi |
12453 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
12454 |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
12455 |
ac_res=$ac_cv_search_getaddrinfo |
12456 |
if test "$ac_res" != no; then : |
12457 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12458 |
|
12459 |
fi |
12460 |
|
12461 |
fi |
12462 |
|
12463 |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
12464 |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
12465 |
|
12466 |
else |
12467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
12468 |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
12469 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12470 |
$as_echo_n "(cached) " >&6 |
12471 |
else |
12472 |
ac_func_search_save_LIBS=$LIBS |
12473 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12474 |
/* end confdefs.h. */ |
12475 |
|
12476 |
/* Override any GCC internal prototype to avoid an error. |
12477 |
Use char because int might match the return type of a GCC |
12478 |
builtin and then its argument prototype would still apply. */ |
12479 |
#ifdef __cplusplus |
12480 |
extern "C" |
12481 |
#endif |
12482 |
char getnameinfo (); |
12483 |
int |
12484 |
main () |
12485 |
{ |
12486 |
return getnameinfo (); |
12487 |
; |
12488 |
return 0; |
12489 |
} |
12490 |
_ACEOF |
12491 |
for ac_lib in '' nsl; do |
12492 |
if test -z "$ac_lib"; then |
12493 |
ac_res="none required" |
12494 |
else |
12495 |
ac_res=-l$ac_lib |
12496 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12497 |
fi |
12498 |
if ac_fn_c_try_link "$LINENO"; then : |
12499 |
ac_cv_search_getnameinfo=$ac_res |
12500 |
fi |
12501 |
rm -f core conftest.err conftest.$ac_objext \ |
12502 |
conftest$ac_exeext |
12503 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12504 |
break |
12505 |
fi |
12506 |
done |
12507 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12508 |
|
12509 |
else |
12510 |
ac_cv_search_getnameinfo=no |
12511 |
fi |
12512 |
rm conftest.$ac_ext |
12513 |
LIBS=$ac_func_search_save_LIBS |
12514 |
fi |
12515 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
12516 |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
12517 |
ac_res=$ac_cv_search_getnameinfo |
12518 |
if test "$ac_res" != no; then : |
12519 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12520 |
|
12521 |
fi |
12522 |
|
12523 |
fi |
12524 |
|
12525 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
12526 |
$as_echo_n "checking for library containing socket... " >&6; } |
12527 |
if ${ac_cv_search_socket+:} false; then : |
12528 |
$as_echo_n "(cached) " >&6 |
12529 |
else |
12530 |
ac_func_search_save_LIBS=$LIBS |
12531 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12532 |
/* end confdefs.h. */ |
12533 |
|
12534 |
/* Override any GCC internal prototype to avoid an error. |
12535 |
Use char because int might match the return type of a GCC |
12536 |
builtin and then its argument prototype would still apply. */ |
12537 |
#ifdef __cplusplus |
12538 |
extern "C" |
12539 |
#endif |
12540 |
char socket (); |
12541 |
int |
12542 |
main () |
12543 |
{ |
12544 |
return socket (); |
12545 |
; |
12546 |
return 0; |
12547 |
} |
12548 |
_ACEOF |
12549 |
for ac_lib in '' socket; do |
12550 |
if test -z "$ac_lib"; then |
12551 |
ac_res="none required" |
12552 |
else |
12553 |
ac_res=-l$ac_lib |
12554 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12555 |
fi |
12556 |
if ac_fn_c_try_link "$LINENO"; then : |
12557 |
ac_cv_search_socket=$ac_res |
12558 |
fi |
12559 |
rm -f core conftest.err conftest.$ac_objext \ |
12560 |
conftest$ac_exeext |
12561 |
if ${ac_cv_search_socket+:} false; then : |
12562 |
break |
12563 |
fi |
12564 |
done |
12565 |
if ${ac_cv_search_socket+:} false; then : |
12566 |
|
12567 |
else |
12568 |
ac_cv_search_socket=no |
12569 |
fi |
12570 |
rm conftest.$ac_ext |
12571 |
LIBS=$ac_func_search_save_LIBS |
12572 |
fi |
12573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
12574 |
$as_echo "$ac_cv_search_socket" >&6; } |
12575 |
ac_res=$ac_cv_search_socket |
12576 |
if test "$ac_res" != no; then : |
12577 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12578 |
|
12579 |
else |
12580 |
as_fn_error $? "socket library not found" "$LINENO" 5 |
12581 |
fi |
12582 |
|
12583 |
|
12584 |
|
12585 |
# Check whether --enable-openssl was given. |
12586 |
if test "${enable_openssl+set}" = set; then : |
12587 |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
12588 |
else |
12589 |
cf_enable_openssl="auto" |
12590 |
fi |
12591 |
|
12592 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5 |
12593 |
$as_echo_n "checking for LibreSSL/OpenSSL... " >&6; } |
12594 |
if test "$cf_enable_openssl" != "no"; then |
12595 |
cf_openssl_basedir="" |
12596 |
if test "$cf_enable_openssl" != "auto" && |
12597 |
test "$cf_enable_openssl" != "yes"; then |
12598 |
cf_openssl_basedir="${cf_enable_openssl}" |
12599 |
else |
12600 |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
12601 |
/opt /opt/openssl /usr/local/openssl; do |
12602 |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
12603 |
cf_openssl_basedir="${dirs}" |
12604 |
break |
12605 |
fi |
12606 |
done |
12607 |
unset dirs |
12608 |
fi |
12609 |
|
12610 |
if test ! -z "$cf_openssl_basedir"; then |
12611 |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
12612 |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
12613 |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
12614 |
else |
12615 |
cf_openssl_basedir="" |
12616 |
fi |
12617 |
else |
12618 |
if test -f "/usr/include/openssl/opensslv.h"; then |
12619 |
cf_openssl_basedir="/usr" |
12620 |
fi |
12621 |
fi |
12622 |
|
12623 |
if test ! -z "$cf_openssl_basedir"; then |
12624 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
12625 |
$as_echo "$cf_openssl_basedir" >&6; } |
12626 |
cf_enable_openssl="yes" |
12627 |
else |
12628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
12629 |
$as_echo "not found. Please check your path." >&6; } |
12630 |
cf_enable_openssl="no" |
12631 |
fi |
12632 |
unset cf_openssl_basedir |
12633 |
else |
12634 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
12635 |
$as_echo "disabled" >&6; } |
12636 |
fi |
12637 |
|
12638 |
if test "$cf_enable_openssl" != "no"; then : |
12639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5 |
12640 |
$as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; } |
12641 |
if test "$cross_compiling" = yes; then : |
12642 |
cf_openssl_version_ok=no |
12643 |
else |
12644 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12645 |
/* end confdefs.h. */ |
12646 |
|
12647 |
|
12648 |
#include <openssl/opensslv.h> |
12649 |
#include <stdlib.h> |
12650 |
int |
12651 |
main () |
12652 |
{ |
12653 |
exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL)); |
12654 |
; |
12655 |
return 0; |
12656 |
} |
12657 |
_ACEOF |
12658 |
if ac_fn_c_try_run "$LINENO"; then : |
12659 |
cf_openssl_version_ok=yes |
12660 |
else |
12661 |
cf_openssl_version_ok=no |
12662 |
fi |
12663 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12664 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
12665 |
fi |
12666 |
|
12667 |
|
12668 |
if test "$cf_openssl_version_ok" = "yes"; then : |
12669 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
12670 |
$as_echo "found" >&6; } |
12671 |
|
12672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
12673 |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
12674 |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
12675 |
$as_echo_n "(cached) " >&6 |
12676 |
else |
12677 |
ac_check_lib_save_LIBS=$LIBS |
12678 |
LIBS="-lcrypto $LIBS" |
12679 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12680 |
/* end confdefs.h. */ |
12681 |
|
12682 |
/* Override any GCC internal prototype to avoid an error. |
12683 |
Use char because int might match the return type of a GCC |
12684 |
builtin and then its argument prototype would still apply. */ |
12685 |
#ifdef __cplusplus |
12686 |
extern "C" |
12687 |
#endif |
12688 |
char RSA_free (); |
12689 |
int |
12690 |
main () |
12691 |
{ |
12692 |
return RSA_free (); |
12693 |
; |
12694 |
return 0; |
12695 |
} |
12696 |
_ACEOF |
12697 |
if ac_fn_c_try_link "$LINENO"; then : |
12698 |
ac_cv_lib_crypto_RSA_free=yes |
12699 |
else |
12700 |
ac_cv_lib_crypto_RSA_free=no |
12701 |
fi |
12702 |
rm -f core conftest.err conftest.$ac_objext \ |
12703 |
conftest$ac_exeext conftest.$ac_ext |
12704 |
LIBS=$ac_check_lib_save_LIBS |
12705 |
fi |
12706 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
12707 |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
12708 |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
12709 |
cat >>confdefs.h <<_ACEOF |
12710 |
#define HAVE_LIBCRYPTO 1 |
12711 |
_ACEOF |
12712 |
|
12713 |
LIBS="-lcrypto $LIBS" |
12714 |
|
12715 |
fi |
12716 |
|
12717 |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
12718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
12719 |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
12720 |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
12721 |
$as_echo_n "(cached) " >&6 |
12722 |
else |
12723 |
ac_check_lib_save_LIBS=$LIBS |
12724 |
LIBS="-lssl $LIBS" |
12725 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12726 |
/* end confdefs.h. */ |
12727 |
|
12728 |
/* Override any GCC internal prototype to avoid an error. |
12729 |
Use char because int might match the return type of a GCC |
12730 |
builtin and then its argument prototype would still apply. */ |
12731 |
#ifdef __cplusplus |
12732 |
extern "C" |
12733 |
#endif |
12734 |
char SSL_connect (); |
12735 |
int |
12736 |
main () |
12737 |
{ |
12738 |
return SSL_connect (); |
12739 |
; |
12740 |
return 0; |
12741 |
} |
12742 |
_ACEOF |
12743 |
if ac_fn_c_try_link "$LINENO"; then : |
12744 |
ac_cv_lib_ssl_SSL_connect=yes |
12745 |
else |
12746 |
ac_cv_lib_ssl_SSL_connect=no |
12747 |
fi |
12748 |
rm -f core conftest.err conftest.$ac_objext \ |
12749 |
conftest$ac_exeext conftest.$ac_ext |
12750 |
LIBS=$ac_check_lib_save_LIBS |
12751 |
fi |
12752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
12753 |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
12754 |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
12755 |
cat >>confdefs.h <<_ACEOF |
12756 |
#define HAVE_LIBSSL 1 |
12757 |
_ACEOF |
12758 |
|
12759 |
LIBS="-lssl $LIBS" |
12760 |
|
12761 |
fi |
12762 |
|
12763 |
fi |
12764 |
|
12765 |
else |
12766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5 |
12767 |
$as_echo "no - LibreSSL/OpenSSL support disabled" >&6; } |
12768 |
cf_enable_openssl="no" |
12769 |
fi |
12770 |
fi |
12771 |
|
12772 |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
12773 |
ENABLE_SSL_TRUE= |
12774 |
ENABLE_SSL_FALSE='#' |
12775 |
else |
12776 |
ENABLE_SSL_TRUE='#' |
12777 |
ENABLE_SSL_FALSE= |
12778 |
fi |
12779 |
|
12780 |
|
12781 |
|
12782 |
# Check whether --enable-assert was given. |
12783 |
if test "${enable_assert+set}" = set; then : |
12784 |
enableval=$enable_assert; assert=$enableval |
12785 |
else |
12786 |
assert=no |
12787 |
fi |
12788 |
|
12789 |
|
12790 |
if test "$assert" = "no"; then : |
12791 |
|
12792 |
$as_echo "#define NDEBUG 1" >>confdefs.h |
12793 |
|
12794 |
fi |
12795 |
|
12796 |
|
12797 |
# Check whether --enable-warnings was given. |
12798 |
if test "${enable_warnings+set}" = set; then : |
12799 |
enableval=$enable_warnings; warnings="$enableval" |
12800 |
else |
12801 |
warnings="no" |
12802 |
fi |
12803 |
|
12804 |
|
12805 |
if test "$warnings" = "yes"; then : |
12806 |
|
12807 |
|
12808 |
|
12809 |
|
12810 |
|
12811 |
for flag in -Wall; do |
12812 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
12813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
12814 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
12815 |
if eval \${$as_CACHEVAR+:} false; then : |
12816 |
$as_echo_n "(cached) " >&6 |
12817 |
else |
12818 |
|
12819 |
ax_check_save_flags=$CFLAGS |
12820 |
CFLAGS="$CFLAGS $flag" |
12821 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12822 |
/* end confdefs.h. */ |
12823 |
|
12824 |
int |
12825 |
main () |
12826 |
{ |
12827 |
|
12828 |
; |
12829 |
return 0; |
12830 |
} |
12831 |
_ACEOF |
12832 |
if ac_fn_c_try_compile "$LINENO"; then : |
12833 |
eval "$as_CACHEVAR=yes" |
12834 |
else |
12835 |
eval "$as_CACHEVAR=no" |
12836 |
fi |
12837 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12838 |
CFLAGS=$ax_check_save_flags |
12839 |
fi |
12840 |
eval ac_res=\$$as_CACHEVAR |
12841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
12842 |
$as_echo "$ac_res" >&6; } |
12843 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
12844 |
|
12845 |
if ${CFLAGS+:} false; then : |
12846 |
|
12847 |
case " $CFLAGS " in #( |
12848 |
*" $flag "*) : |
12849 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
12850 |
(: CFLAGS already contains $flag) 2>&5 |
12851 |
ac_status=$? |
12852 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12853 |
test $ac_status = 0; } ;; #( |
12854 |
*) : |
12855 |
|
12856 |
as_fn_append CFLAGS " $flag" |
12857 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
12858 |
(: CFLAGS="$CFLAGS") 2>&5 |
12859 |
ac_status=$? |
12860 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12861 |
test $ac_status = 0; } |
12862 |
;; |
12863 |
esac |
12864 |
|
12865 |
else |
12866 |
|
12867 |
CFLAGS=$flag |
12868 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
12869 |
(: CFLAGS="$CFLAGS") 2>&5 |
12870 |
ac_status=$? |
12871 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12872 |
test $ac_status = 0; } |
12873 |
|
12874 |
fi |
12875 |
|
12876 |
else |
12877 |
: |
12878 |
fi |
12879 |
|
12880 |
done |
12881 |
|
12882 |
|
12883 |
|
12884 |
|
12885 |
|
12886 |
for flag in -Wbad-function-cast; do |
12887 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
12888 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
12889 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
12890 |
if eval \${$as_CACHEVAR+:} false; then : |
12891 |
$as_echo_n "(cached) " >&6 |
12892 |
else |
12893 |
|
12894 |
ax_check_save_flags=$CFLAGS |
12895 |
CFLAGS="$CFLAGS $flag" |
12896 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12897 |
/* end confdefs.h. */ |
12898 |
|
12899 |
int |
12900 |
main () |
12901 |
{ |
12902 |
|
12903 |
; |
12904 |
return 0; |
12905 |
} |
12906 |
_ACEOF |
12907 |
if ac_fn_c_try_compile "$LINENO"; then : |
12908 |
eval "$as_CACHEVAR=yes" |
12909 |
else |
12910 |
eval "$as_CACHEVAR=no" |
12911 |
fi |
12912 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12913 |
CFLAGS=$ax_check_save_flags |
12914 |
fi |
12915 |
eval ac_res=\$$as_CACHEVAR |
12916 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
12917 |
$as_echo "$ac_res" >&6; } |
12918 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
12919 |
|
12920 |
if ${CFLAGS+:} false; then : |
12921 |
|
12922 |
case " $CFLAGS " in #( |
12923 |
*" $flag "*) : |
12924 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
12925 |
(: CFLAGS already contains $flag) 2>&5 |
12926 |
ac_status=$? |
12927 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12928 |
test $ac_status = 0; } ;; #( |
12929 |
*) : |
12930 |
|
12931 |
as_fn_append CFLAGS " $flag" |
12932 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
12933 |
(: CFLAGS="$CFLAGS") 2>&5 |
12934 |
ac_status=$? |
12935 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12936 |
test $ac_status = 0; } |
12937 |
;; |
12938 |
esac |
12939 |
|
12940 |
else |
12941 |
|
12942 |
CFLAGS=$flag |
12943 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
12944 |
(: CFLAGS="$CFLAGS") 2>&5 |
12945 |
ac_status=$? |
12946 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12947 |
test $ac_status = 0; } |
12948 |
|
12949 |
fi |
12950 |
|
12951 |
else |
12952 |
: |
12953 |
fi |
12954 |
|
12955 |
done |
12956 |
|
12957 |
|
12958 |
|
12959 |
|
12960 |
|
12961 |
for flag in -Wcast-align; do |
12962 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
12963 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
12964 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
12965 |
if eval \${$as_CACHEVAR+:} false; then : |
12966 |
$as_echo_n "(cached) " >&6 |
12967 |
else |
12968 |
|
12969 |
ax_check_save_flags=$CFLAGS |
12970 |
CFLAGS="$CFLAGS $flag" |
12971 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12972 |
/* end confdefs.h. */ |
12973 |
|
12974 |
int |
12975 |
main () |
12976 |
{ |
12977 |
|
12978 |
; |
12979 |
return 0; |
12980 |
} |
12981 |
_ACEOF |
12982 |
if ac_fn_c_try_compile "$LINENO"; then : |
12983 |
eval "$as_CACHEVAR=yes" |
12984 |
else |
12985 |
eval "$as_CACHEVAR=no" |
12986 |
fi |
12987 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12988 |
CFLAGS=$ax_check_save_flags |
12989 |
fi |
12990 |
eval ac_res=\$$as_CACHEVAR |
12991 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
12992 |
$as_echo "$ac_res" >&6; } |
12993 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
12994 |
|
12995 |
if ${CFLAGS+:} false; then : |
12996 |
|
12997 |
case " $CFLAGS " in #( |
12998 |
*" $flag "*) : |
12999 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13000 |
(: CFLAGS already contains $flag) 2>&5 |
13001 |
ac_status=$? |
13002 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13003 |
test $ac_status = 0; } ;; #( |
13004 |
*) : |
13005 |
|
13006 |
as_fn_append CFLAGS " $flag" |
13007 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13008 |
(: CFLAGS="$CFLAGS") 2>&5 |
13009 |
ac_status=$? |
13010 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13011 |
test $ac_status = 0; } |
13012 |
;; |
13013 |
esac |
13014 |
|
13015 |
else |
13016 |
|
13017 |
CFLAGS=$flag |
13018 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13019 |
(: CFLAGS="$CFLAGS") 2>&5 |
13020 |
ac_status=$? |
13021 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13022 |
test $ac_status = 0; } |
13023 |
|
13024 |
fi |
13025 |
|
13026 |
else |
13027 |
: |
13028 |
fi |
13029 |
|
13030 |
done |
13031 |
|
13032 |
|
13033 |
|
13034 |
|
13035 |
|
13036 |
for flag in -Wcast-qual; do |
13037 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13038 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13039 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13040 |
if eval \${$as_CACHEVAR+:} false; then : |
13041 |
$as_echo_n "(cached) " >&6 |
13042 |
else |
13043 |
|
13044 |
ax_check_save_flags=$CFLAGS |
13045 |
CFLAGS="$CFLAGS $flag" |
13046 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13047 |
/* end confdefs.h. */ |
13048 |
|
13049 |
int |
13050 |
main () |
13051 |
{ |
13052 |
|
13053 |
; |
13054 |
return 0; |
13055 |
} |
13056 |
_ACEOF |
13057 |
if ac_fn_c_try_compile "$LINENO"; then : |
13058 |
eval "$as_CACHEVAR=yes" |
13059 |
else |
13060 |
eval "$as_CACHEVAR=no" |
13061 |
fi |
13062 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13063 |
CFLAGS=$ax_check_save_flags |
13064 |
fi |
13065 |
eval ac_res=\$$as_CACHEVAR |
13066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13067 |
$as_echo "$ac_res" >&6; } |
13068 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13069 |
|
13070 |
if ${CFLAGS+:} false; then : |
13071 |
|
13072 |
case " $CFLAGS " in #( |
13073 |
*" $flag "*) : |
13074 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13075 |
(: CFLAGS already contains $flag) 2>&5 |
13076 |
ac_status=$? |
13077 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13078 |
test $ac_status = 0; } ;; #( |
13079 |
*) : |
13080 |
|
13081 |
as_fn_append CFLAGS " $flag" |
13082 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13083 |
(: CFLAGS="$CFLAGS") 2>&5 |
13084 |
ac_status=$? |
13085 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13086 |
test $ac_status = 0; } |
13087 |
;; |
13088 |
esac |
13089 |
|
13090 |
else |
13091 |
|
13092 |
CFLAGS=$flag |
13093 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13094 |
(: CFLAGS="$CFLAGS") 2>&5 |
13095 |
ac_status=$? |
13096 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13097 |
test $ac_status = 0; } |
13098 |
|
13099 |
fi |
13100 |
|
13101 |
else |
13102 |
: |
13103 |
fi |
13104 |
|
13105 |
done |
13106 |
|
13107 |
|
13108 |
|
13109 |
|
13110 |
|
13111 |
for flag in -Wclobbered; do |
13112 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13114 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13115 |
if eval \${$as_CACHEVAR+:} false; then : |
13116 |
$as_echo_n "(cached) " >&6 |
13117 |
else |
13118 |
|
13119 |
ax_check_save_flags=$CFLAGS |
13120 |
CFLAGS="$CFLAGS $flag" |
13121 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13122 |
/* end confdefs.h. */ |
13123 |
|
13124 |
int |
13125 |
main () |
13126 |
{ |
13127 |
|
13128 |
; |
13129 |
return 0; |
13130 |
} |
13131 |
_ACEOF |
13132 |
if ac_fn_c_try_compile "$LINENO"; then : |
13133 |
eval "$as_CACHEVAR=yes" |
13134 |
else |
13135 |
eval "$as_CACHEVAR=no" |
13136 |
fi |
13137 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13138 |
CFLAGS=$ax_check_save_flags |
13139 |
fi |
13140 |
eval ac_res=\$$as_CACHEVAR |
13141 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13142 |
$as_echo "$ac_res" >&6; } |
13143 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13144 |
|
13145 |
if ${CFLAGS+:} false; then : |
13146 |
|
13147 |
case " $CFLAGS " in #( |
13148 |
*" $flag "*) : |
13149 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13150 |
(: CFLAGS already contains $flag) 2>&5 |
13151 |
ac_status=$? |
13152 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13153 |
test $ac_status = 0; } ;; #( |
13154 |
*) : |
13155 |
|
13156 |
as_fn_append CFLAGS " $flag" |
13157 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13158 |
(: CFLAGS="$CFLAGS") 2>&5 |
13159 |
ac_status=$? |
13160 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13161 |
test $ac_status = 0; } |
13162 |
;; |
13163 |
esac |
13164 |
|
13165 |
else |
13166 |
|
13167 |
CFLAGS=$flag |
13168 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13169 |
(: CFLAGS="$CFLAGS") 2>&5 |
13170 |
ac_status=$? |
13171 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13172 |
test $ac_status = 0; } |
13173 |
|
13174 |
fi |
13175 |
|
13176 |
else |
13177 |
: |
13178 |
fi |
13179 |
|
13180 |
done |
13181 |
|
13182 |
|
13183 |
|
13184 |
|
13185 |
|
13186 |
for flag in -Wempty-body; do |
13187 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13189 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13190 |
if eval \${$as_CACHEVAR+:} false; then : |
13191 |
$as_echo_n "(cached) " >&6 |
13192 |
else |
13193 |
|
13194 |
ax_check_save_flags=$CFLAGS |
13195 |
CFLAGS="$CFLAGS $flag" |
13196 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13197 |
/* end confdefs.h. */ |
13198 |
|
13199 |
int |
13200 |
main () |
13201 |
{ |
13202 |
|
13203 |
; |
13204 |
return 0; |
13205 |
} |
13206 |
_ACEOF |
13207 |
if ac_fn_c_try_compile "$LINENO"; then : |
13208 |
eval "$as_CACHEVAR=yes" |
13209 |
else |
13210 |
eval "$as_CACHEVAR=no" |
13211 |
fi |
13212 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13213 |
CFLAGS=$ax_check_save_flags |
13214 |
fi |
13215 |
eval ac_res=\$$as_CACHEVAR |
13216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13217 |
$as_echo "$ac_res" >&6; } |
13218 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13219 |
|
13220 |
if ${CFLAGS+:} false; then : |
13221 |
|
13222 |
case " $CFLAGS " in #( |
13223 |
*" $flag "*) : |
13224 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13225 |
(: CFLAGS already contains $flag) 2>&5 |
13226 |
ac_status=$? |
13227 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13228 |
test $ac_status = 0; } ;; #( |
13229 |
*) : |
13230 |
|
13231 |
as_fn_append CFLAGS " $flag" |
13232 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13233 |
(: CFLAGS="$CFLAGS") 2>&5 |
13234 |
ac_status=$? |
13235 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13236 |
test $ac_status = 0; } |
13237 |
;; |
13238 |
esac |
13239 |
|
13240 |
else |
13241 |
|
13242 |
CFLAGS=$flag |
13243 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13244 |
(: CFLAGS="$CFLAGS") 2>&5 |
13245 |
ac_status=$? |
13246 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13247 |
test $ac_status = 0; } |
13248 |
|
13249 |
fi |
13250 |
|
13251 |
else |
13252 |
: |
13253 |
fi |
13254 |
|
13255 |
done |
13256 |
|
13257 |
|
13258 |
|
13259 |
|
13260 |
|
13261 |
for flag in -Wignored-qualifiers; do |
13262 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13264 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13265 |
if eval \${$as_CACHEVAR+:} false; then : |
13266 |
$as_echo_n "(cached) " >&6 |
13267 |
else |
13268 |
|
13269 |
ax_check_save_flags=$CFLAGS |
13270 |
CFLAGS="$CFLAGS $flag" |
13271 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13272 |
/* end confdefs.h. */ |
13273 |
|
13274 |
int |
13275 |
main () |
13276 |
{ |
13277 |
|
13278 |
; |
13279 |
return 0; |
13280 |
} |
13281 |
_ACEOF |
13282 |
if ac_fn_c_try_compile "$LINENO"; then : |
13283 |
eval "$as_CACHEVAR=yes" |
13284 |
else |
13285 |
eval "$as_CACHEVAR=no" |
13286 |
fi |
13287 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13288 |
CFLAGS=$ax_check_save_flags |
13289 |
fi |
13290 |
eval ac_res=\$$as_CACHEVAR |
13291 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13292 |
$as_echo "$ac_res" >&6; } |
13293 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13294 |
|
13295 |
if ${CFLAGS+:} false; then : |
13296 |
|
13297 |
case " $CFLAGS " in #( |
13298 |
*" $flag "*) : |
13299 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13300 |
(: CFLAGS already contains $flag) 2>&5 |
13301 |
ac_status=$? |
13302 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13303 |
test $ac_status = 0; } ;; #( |
13304 |
*) : |
13305 |
|
13306 |
as_fn_append CFLAGS " $flag" |
13307 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13308 |
(: CFLAGS="$CFLAGS") 2>&5 |
13309 |
ac_status=$? |
13310 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13311 |
test $ac_status = 0; } |
13312 |
;; |
13313 |
esac |
13314 |
|
13315 |
else |
13316 |
|
13317 |
CFLAGS=$flag |
13318 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13319 |
(: CFLAGS="$CFLAGS") 2>&5 |
13320 |
ac_status=$? |
13321 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13322 |
test $ac_status = 0; } |
13323 |
|
13324 |
fi |
13325 |
|
13326 |
else |
13327 |
: |
13328 |
fi |
13329 |
|
13330 |
done |
13331 |
|
13332 |
|
13333 |
|
13334 |
|
13335 |
|
13336 |
for flag in -Wlogical-op; do |
13337 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13339 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13340 |
if eval \${$as_CACHEVAR+:} false; then : |
13341 |
$as_echo_n "(cached) " >&6 |
13342 |
else |
13343 |
|
13344 |
ax_check_save_flags=$CFLAGS |
13345 |
CFLAGS="$CFLAGS $flag" |
13346 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13347 |
/* end confdefs.h. */ |
13348 |
|
13349 |
int |
13350 |
main () |
13351 |
{ |
13352 |
|
13353 |
; |
13354 |
return 0; |
13355 |
} |
13356 |
_ACEOF |
13357 |
if ac_fn_c_try_compile "$LINENO"; then : |
13358 |
eval "$as_CACHEVAR=yes" |
13359 |
else |
13360 |
eval "$as_CACHEVAR=no" |
13361 |
fi |
13362 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13363 |
CFLAGS=$ax_check_save_flags |
13364 |
fi |
13365 |
eval ac_res=\$$as_CACHEVAR |
13366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13367 |
$as_echo "$ac_res" >&6; } |
13368 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13369 |
|
13370 |
if ${CFLAGS+:} false; then : |
13371 |
|
13372 |
case " $CFLAGS " in #( |
13373 |
*" $flag "*) : |
13374 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13375 |
(: CFLAGS already contains $flag) 2>&5 |
13376 |
ac_status=$? |
13377 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13378 |
test $ac_status = 0; } ;; #( |
13379 |
*) : |
13380 |
|
13381 |
as_fn_append CFLAGS " $flag" |
13382 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13383 |
(: CFLAGS="$CFLAGS") 2>&5 |
13384 |
ac_status=$? |
13385 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13386 |
test $ac_status = 0; } |
13387 |
;; |
13388 |
esac |
13389 |
|
13390 |
else |
13391 |
|
13392 |
CFLAGS=$flag |
13393 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13394 |
(: CFLAGS="$CFLAGS") 2>&5 |
13395 |
ac_status=$? |
13396 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13397 |
test $ac_status = 0; } |
13398 |
|
13399 |
fi |
13400 |
|
13401 |
else |
13402 |
: |
13403 |
fi |
13404 |
|
13405 |
done |
13406 |
|
13407 |
|
13408 |
|
13409 |
|
13410 |
|
13411 |
for flag in -Wmissing-declarations; do |
13412 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13414 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13415 |
if eval \${$as_CACHEVAR+:} false; then : |
13416 |
$as_echo_n "(cached) " >&6 |
13417 |
else |
13418 |
|
13419 |
ax_check_save_flags=$CFLAGS |
13420 |
CFLAGS="$CFLAGS $flag" |
13421 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13422 |
/* end confdefs.h. */ |
13423 |
|
13424 |
int |
13425 |
main () |
13426 |
{ |
13427 |
|
13428 |
; |
13429 |
return 0; |
13430 |
} |
13431 |
_ACEOF |
13432 |
if ac_fn_c_try_compile "$LINENO"; then : |
13433 |
eval "$as_CACHEVAR=yes" |
13434 |
else |
13435 |
eval "$as_CACHEVAR=no" |
13436 |
fi |
13437 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13438 |
CFLAGS=$ax_check_save_flags |
13439 |
fi |
13440 |
eval ac_res=\$$as_CACHEVAR |
13441 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13442 |
$as_echo "$ac_res" >&6; } |
13443 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13444 |
|
13445 |
if ${CFLAGS+:} false; then : |
13446 |
|
13447 |
case " $CFLAGS " in #( |
13448 |
*" $flag "*) : |
13449 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13450 |
(: CFLAGS already contains $flag) 2>&5 |
13451 |
ac_status=$? |
13452 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13453 |
test $ac_status = 0; } ;; #( |
13454 |
*) : |
13455 |
|
13456 |
as_fn_append CFLAGS " $flag" |
13457 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13458 |
(: CFLAGS="$CFLAGS") 2>&5 |
13459 |
ac_status=$? |
13460 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13461 |
test $ac_status = 0; } |
13462 |
;; |
13463 |
esac |
13464 |
|
13465 |
else |
13466 |
|
13467 |
CFLAGS=$flag |
13468 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13469 |
(: CFLAGS="$CFLAGS") 2>&5 |
13470 |
ac_status=$? |
13471 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13472 |
test $ac_status = 0; } |
13473 |
|
13474 |
fi |
13475 |
|
13476 |
else |
13477 |
: |
13478 |
fi |
13479 |
|
13480 |
done |
13481 |
|
13482 |
|
13483 |
|
13484 |
|
13485 |
|
13486 |
for flag in -Wmissing-field-initializers; do |
13487 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13489 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13490 |
if eval \${$as_CACHEVAR+:} false; then : |
13491 |
$as_echo_n "(cached) " >&6 |
13492 |
else |
13493 |
|
13494 |
ax_check_save_flags=$CFLAGS |
13495 |
CFLAGS="$CFLAGS $flag" |
13496 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13497 |
/* end confdefs.h. */ |
13498 |
|
13499 |
int |
13500 |
main () |
13501 |
{ |
13502 |
|
13503 |
; |
13504 |
return 0; |
13505 |
} |
13506 |
_ACEOF |
13507 |
if ac_fn_c_try_compile "$LINENO"; then : |
13508 |
eval "$as_CACHEVAR=yes" |
13509 |
else |
13510 |
eval "$as_CACHEVAR=no" |
13511 |
fi |
13512 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13513 |
CFLAGS=$ax_check_save_flags |
13514 |
fi |
13515 |
eval ac_res=\$$as_CACHEVAR |
13516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13517 |
$as_echo "$ac_res" >&6; } |
13518 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13519 |
|
13520 |
if ${CFLAGS+:} false; then : |
13521 |
|
13522 |
case " $CFLAGS " in #( |
13523 |
*" $flag "*) : |
13524 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13525 |
(: CFLAGS already contains $flag) 2>&5 |
13526 |
ac_status=$? |
13527 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13528 |
test $ac_status = 0; } ;; #( |
13529 |
*) : |
13530 |
|
13531 |
as_fn_append CFLAGS " $flag" |
13532 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13533 |
(: CFLAGS="$CFLAGS") 2>&5 |
13534 |
ac_status=$? |
13535 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13536 |
test $ac_status = 0; } |
13537 |
;; |
13538 |
esac |
13539 |
|
13540 |
else |
13541 |
|
13542 |
CFLAGS=$flag |
13543 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13544 |
(: CFLAGS="$CFLAGS") 2>&5 |
13545 |
ac_status=$? |
13546 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13547 |
test $ac_status = 0; } |
13548 |
|
13549 |
fi |
13550 |
|
13551 |
else |
13552 |
: |
13553 |
fi |
13554 |
|
13555 |
done |
13556 |
|
13557 |
|
13558 |
|
13559 |
|
13560 |
|
13561 |
for flag in -Wmissing-include-dirs; do |
13562 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13563 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13564 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13565 |
if eval \${$as_CACHEVAR+:} false; then : |
13566 |
$as_echo_n "(cached) " >&6 |
13567 |
else |
13568 |
|
13569 |
ax_check_save_flags=$CFLAGS |
13570 |
CFLAGS="$CFLAGS $flag" |
13571 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13572 |
/* end confdefs.h. */ |
13573 |
|
13574 |
int |
13575 |
main () |
13576 |
{ |
13577 |
|
13578 |
; |
13579 |
return 0; |
13580 |
} |
13581 |
_ACEOF |
13582 |
if ac_fn_c_try_compile "$LINENO"; then : |
13583 |
eval "$as_CACHEVAR=yes" |
13584 |
else |
13585 |
eval "$as_CACHEVAR=no" |
13586 |
fi |
13587 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13588 |
CFLAGS=$ax_check_save_flags |
13589 |
fi |
13590 |
eval ac_res=\$$as_CACHEVAR |
13591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13592 |
$as_echo "$ac_res" >&6; } |
13593 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13594 |
|
13595 |
if ${CFLAGS+:} false; then : |
13596 |
|
13597 |
case " $CFLAGS " in #( |
13598 |
*" $flag "*) : |
13599 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13600 |
(: CFLAGS already contains $flag) 2>&5 |
13601 |
ac_status=$? |
13602 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13603 |
test $ac_status = 0; } ;; #( |
13604 |
*) : |
13605 |
|
13606 |
as_fn_append CFLAGS " $flag" |
13607 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13608 |
(: CFLAGS="$CFLAGS") 2>&5 |
13609 |
ac_status=$? |
13610 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13611 |
test $ac_status = 0; } |
13612 |
;; |
13613 |
esac |
13614 |
|
13615 |
else |
13616 |
|
13617 |
CFLAGS=$flag |
13618 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13619 |
(: CFLAGS="$CFLAGS") 2>&5 |
13620 |
ac_status=$? |
13621 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13622 |
test $ac_status = 0; } |
13623 |
|
13624 |
fi |
13625 |
|
13626 |
else |
13627 |
: |
13628 |
fi |
13629 |
|
13630 |
done |
13631 |
|
13632 |
|
13633 |
|
13634 |
|
13635 |
|
13636 |
for flag in -Wmissing-parameter-type; do |
13637 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13639 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13640 |
if eval \${$as_CACHEVAR+:} false; then : |
13641 |
$as_echo_n "(cached) " >&6 |
13642 |
else |
13643 |
|
13644 |
ax_check_save_flags=$CFLAGS |
13645 |
CFLAGS="$CFLAGS $flag" |
13646 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13647 |
/* end confdefs.h. */ |
13648 |
|
13649 |
int |
13650 |
main () |
13651 |
{ |
13652 |
|
13653 |
; |
13654 |
return 0; |
13655 |
} |
13656 |
_ACEOF |
13657 |
if ac_fn_c_try_compile "$LINENO"; then : |
13658 |
eval "$as_CACHEVAR=yes" |
13659 |
else |
13660 |
eval "$as_CACHEVAR=no" |
13661 |
fi |
13662 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13663 |
CFLAGS=$ax_check_save_flags |
13664 |
fi |
13665 |
eval ac_res=\$$as_CACHEVAR |
13666 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13667 |
$as_echo "$ac_res" >&6; } |
13668 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13669 |
|
13670 |
if ${CFLAGS+:} false; then : |
13671 |
|
13672 |
case " $CFLAGS " in #( |
13673 |
*" $flag "*) : |
13674 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13675 |
(: CFLAGS already contains $flag) 2>&5 |
13676 |
ac_status=$? |
13677 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13678 |
test $ac_status = 0; } ;; #( |
13679 |
*) : |
13680 |
|
13681 |
as_fn_append CFLAGS " $flag" |
13682 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13683 |
(: CFLAGS="$CFLAGS") 2>&5 |
13684 |
ac_status=$? |
13685 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13686 |
test $ac_status = 0; } |
13687 |
;; |
13688 |
esac |
13689 |
|
13690 |
else |
13691 |
|
13692 |
CFLAGS=$flag |
13693 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13694 |
(: CFLAGS="$CFLAGS") 2>&5 |
13695 |
ac_status=$? |
13696 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13697 |
test $ac_status = 0; } |
13698 |
|
13699 |
fi |
13700 |
|
13701 |
else |
13702 |
: |
13703 |
fi |
13704 |
|
13705 |
done |
13706 |
|
13707 |
|
13708 |
|
13709 |
|
13710 |
|
13711 |
for flag in -Wmissing-prototypes; do |
13712 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13713 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13714 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13715 |
if eval \${$as_CACHEVAR+:} false; then : |
13716 |
$as_echo_n "(cached) " >&6 |
13717 |
else |
13718 |
|
13719 |
ax_check_save_flags=$CFLAGS |
13720 |
CFLAGS="$CFLAGS $flag" |
13721 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13722 |
/* end confdefs.h. */ |
13723 |
|
13724 |
int |
13725 |
main () |
13726 |
{ |
13727 |
|
13728 |
; |
13729 |
return 0; |
13730 |
} |
13731 |
_ACEOF |
13732 |
if ac_fn_c_try_compile "$LINENO"; then : |
13733 |
eval "$as_CACHEVAR=yes" |
13734 |
else |
13735 |
eval "$as_CACHEVAR=no" |
13736 |
fi |
13737 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13738 |
CFLAGS=$ax_check_save_flags |
13739 |
fi |
13740 |
eval ac_res=\$$as_CACHEVAR |
13741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13742 |
$as_echo "$ac_res" >&6; } |
13743 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13744 |
|
13745 |
if ${CFLAGS+:} false; then : |
13746 |
|
13747 |
case " $CFLAGS " in #( |
13748 |
*" $flag "*) : |
13749 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13750 |
(: CFLAGS already contains $flag) 2>&5 |
13751 |
ac_status=$? |
13752 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13753 |
test $ac_status = 0; } ;; #( |
13754 |
*) : |
13755 |
|
13756 |
as_fn_append CFLAGS " $flag" |
13757 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13758 |
(: CFLAGS="$CFLAGS") 2>&5 |
13759 |
ac_status=$? |
13760 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13761 |
test $ac_status = 0; } |
13762 |
;; |
13763 |
esac |
13764 |
|
13765 |
else |
13766 |
|
13767 |
CFLAGS=$flag |
13768 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13769 |
(: CFLAGS="$CFLAGS") 2>&5 |
13770 |
ac_status=$? |
13771 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13772 |
test $ac_status = 0; } |
13773 |
|
13774 |
fi |
13775 |
|
13776 |
else |
13777 |
: |
13778 |
fi |
13779 |
|
13780 |
done |
13781 |
|
13782 |
|
13783 |
|
13784 |
|
13785 |
|
13786 |
for flag in -Wnested-externs; do |
13787 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13788 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13789 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13790 |
if eval \${$as_CACHEVAR+:} false; then : |
13791 |
$as_echo_n "(cached) " >&6 |
13792 |
else |
13793 |
|
13794 |
ax_check_save_flags=$CFLAGS |
13795 |
CFLAGS="$CFLAGS $flag" |
13796 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13797 |
/* end confdefs.h. */ |
13798 |
|
13799 |
int |
13800 |
main () |
13801 |
{ |
13802 |
|
13803 |
; |
13804 |
return 0; |
13805 |
} |
13806 |
_ACEOF |
13807 |
if ac_fn_c_try_compile "$LINENO"; then : |
13808 |
eval "$as_CACHEVAR=yes" |
13809 |
else |
13810 |
eval "$as_CACHEVAR=no" |
13811 |
fi |
13812 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13813 |
CFLAGS=$ax_check_save_flags |
13814 |
fi |
13815 |
eval ac_res=\$$as_CACHEVAR |
13816 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13817 |
$as_echo "$ac_res" >&6; } |
13818 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13819 |
|
13820 |
if ${CFLAGS+:} false; then : |
13821 |
|
13822 |
case " $CFLAGS " in #( |
13823 |
*" $flag "*) : |
13824 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13825 |
(: CFLAGS already contains $flag) 2>&5 |
13826 |
ac_status=$? |
13827 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13828 |
test $ac_status = 0; } ;; #( |
13829 |
*) : |
13830 |
|
13831 |
as_fn_append CFLAGS " $flag" |
13832 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13833 |
(: CFLAGS="$CFLAGS") 2>&5 |
13834 |
ac_status=$? |
13835 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13836 |
test $ac_status = 0; } |
13837 |
;; |
13838 |
esac |
13839 |
|
13840 |
else |
13841 |
|
13842 |
CFLAGS=$flag |
13843 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13844 |
(: CFLAGS="$CFLAGS") 2>&5 |
13845 |
ac_status=$? |
13846 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13847 |
test $ac_status = 0; } |
13848 |
|
13849 |
fi |
13850 |
|
13851 |
else |
13852 |
: |
13853 |
fi |
13854 |
|
13855 |
done |
13856 |
|
13857 |
|
13858 |
|
13859 |
|
13860 |
|
13861 |
for flag in -Wold-style-declaration; do |
13862 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13863 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13864 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13865 |
if eval \${$as_CACHEVAR+:} false; then : |
13866 |
$as_echo_n "(cached) " >&6 |
13867 |
else |
13868 |
|
13869 |
ax_check_save_flags=$CFLAGS |
13870 |
CFLAGS="$CFLAGS $flag" |
13871 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13872 |
/* end confdefs.h. */ |
13873 |
|
13874 |
int |
13875 |
main () |
13876 |
{ |
13877 |
|
13878 |
; |
13879 |
return 0; |
13880 |
} |
13881 |
_ACEOF |
13882 |
if ac_fn_c_try_compile "$LINENO"; then : |
13883 |
eval "$as_CACHEVAR=yes" |
13884 |
else |
13885 |
eval "$as_CACHEVAR=no" |
13886 |
fi |
13887 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13888 |
CFLAGS=$ax_check_save_flags |
13889 |
fi |
13890 |
eval ac_res=\$$as_CACHEVAR |
13891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13892 |
$as_echo "$ac_res" >&6; } |
13893 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13894 |
|
13895 |
if ${CFLAGS+:} false; then : |
13896 |
|
13897 |
case " $CFLAGS " in #( |
13898 |
*" $flag "*) : |
13899 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13900 |
(: CFLAGS already contains $flag) 2>&5 |
13901 |
ac_status=$? |
13902 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13903 |
test $ac_status = 0; } ;; #( |
13904 |
*) : |
13905 |
|
13906 |
as_fn_append CFLAGS " $flag" |
13907 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13908 |
(: CFLAGS="$CFLAGS") 2>&5 |
13909 |
ac_status=$? |
13910 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13911 |
test $ac_status = 0; } |
13912 |
;; |
13913 |
esac |
13914 |
|
13915 |
else |
13916 |
|
13917 |
CFLAGS=$flag |
13918 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13919 |
(: CFLAGS="$CFLAGS") 2>&5 |
13920 |
ac_status=$? |
13921 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13922 |
test $ac_status = 0; } |
13923 |
|
13924 |
fi |
13925 |
|
13926 |
else |
13927 |
: |
13928 |
fi |
13929 |
|
13930 |
done |
13931 |
|
13932 |
|
13933 |
|
13934 |
|
13935 |
|
13936 |
for flag in -Woverride-init; do |
13937 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
13938 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
13939 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
13940 |
if eval \${$as_CACHEVAR+:} false; then : |
13941 |
$as_echo_n "(cached) " >&6 |
13942 |
else |
13943 |
|
13944 |
ax_check_save_flags=$CFLAGS |
13945 |
CFLAGS="$CFLAGS $flag" |
13946 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13947 |
/* end confdefs.h. */ |
13948 |
|
13949 |
int |
13950 |
main () |
13951 |
{ |
13952 |
|
13953 |
; |
13954 |
return 0; |
13955 |
} |
13956 |
_ACEOF |
13957 |
if ac_fn_c_try_compile "$LINENO"; then : |
13958 |
eval "$as_CACHEVAR=yes" |
13959 |
else |
13960 |
eval "$as_CACHEVAR=no" |
13961 |
fi |
13962 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13963 |
CFLAGS=$ax_check_save_flags |
13964 |
fi |
13965 |
eval ac_res=\$$as_CACHEVAR |
13966 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
13967 |
$as_echo "$ac_res" >&6; } |
13968 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
13969 |
|
13970 |
if ${CFLAGS+:} false; then : |
13971 |
|
13972 |
case " $CFLAGS " in #( |
13973 |
*" $flag "*) : |
13974 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
13975 |
(: CFLAGS already contains $flag) 2>&5 |
13976 |
ac_status=$? |
13977 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13978 |
test $ac_status = 0; } ;; #( |
13979 |
*) : |
13980 |
|
13981 |
as_fn_append CFLAGS " $flag" |
13982 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13983 |
(: CFLAGS="$CFLAGS") 2>&5 |
13984 |
ac_status=$? |
13985 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13986 |
test $ac_status = 0; } |
13987 |
;; |
13988 |
esac |
13989 |
|
13990 |
else |
13991 |
|
13992 |
CFLAGS=$flag |
13993 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
13994 |
(: CFLAGS="$CFLAGS") 2>&5 |
13995 |
ac_status=$? |
13996 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13997 |
test $ac_status = 0; } |
13998 |
|
13999 |
fi |
14000 |
|
14001 |
else |
14002 |
: |
14003 |
fi |
14004 |
|
14005 |
done |
14006 |
|
14007 |
|
14008 |
|
14009 |
|
14010 |
|
14011 |
for flag in -Wpointer-arith; do |
14012 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14014 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14015 |
if eval \${$as_CACHEVAR+:} false; then : |
14016 |
$as_echo_n "(cached) " >&6 |
14017 |
else |
14018 |
|
14019 |
ax_check_save_flags=$CFLAGS |
14020 |
CFLAGS="$CFLAGS $flag" |
14021 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14022 |
/* end confdefs.h. */ |
14023 |
|
14024 |
int |
14025 |
main () |
14026 |
{ |
14027 |
|
14028 |
; |
14029 |
return 0; |
14030 |
} |
14031 |
_ACEOF |
14032 |
if ac_fn_c_try_compile "$LINENO"; then : |
14033 |
eval "$as_CACHEVAR=yes" |
14034 |
else |
14035 |
eval "$as_CACHEVAR=no" |
14036 |
fi |
14037 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14038 |
CFLAGS=$ax_check_save_flags |
14039 |
fi |
14040 |
eval ac_res=\$$as_CACHEVAR |
14041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14042 |
$as_echo "$ac_res" >&6; } |
14043 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14044 |
|
14045 |
if ${CFLAGS+:} false; then : |
14046 |
|
14047 |
case " $CFLAGS " in #( |
14048 |
*" $flag "*) : |
14049 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14050 |
(: CFLAGS already contains $flag) 2>&5 |
14051 |
ac_status=$? |
14052 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14053 |
test $ac_status = 0; } ;; #( |
14054 |
*) : |
14055 |
|
14056 |
as_fn_append CFLAGS " $flag" |
14057 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14058 |
(: CFLAGS="$CFLAGS") 2>&5 |
14059 |
ac_status=$? |
14060 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14061 |
test $ac_status = 0; } |
14062 |
;; |
14063 |
esac |
14064 |
|
14065 |
else |
14066 |
|
14067 |
CFLAGS=$flag |
14068 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14069 |
(: CFLAGS="$CFLAGS") 2>&5 |
14070 |
ac_status=$? |
14071 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14072 |
test $ac_status = 0; } |
14073 |
|
14074 |
fi |
14075 |
|
14076 |
else |
14077 |
: |
14078 |
fi |
14079 |
|
14080 |
done |
14081 |
|
14082 |
|
14083 |
|
14084 |
|
14085 |
|
14086 |
for flag in -Wredundant-decls; do |
14087 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14088 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14089 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14090 |
if eval \${$as_CACHEVAR+:} false; then : |
14091 |
$as_echo_n "(cached) " >&6 |
14092 |
else |
14093 |
|
14094 |
ax_check_save_flags=$CFLAGS |
14095 |
CFLAGS="$CFLAGS $flag" |
14096 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14097 |
/* end confdefs.h. */ |
14098 |
|
14099 |
int |
14100 |
main () |
14101 |
{ |
14102 |
|
14103 |
; |
14104 |
return 0; |
14105 |
} |
14106 |
_ACEOF |
14107 |
if ac_fn_c_try_compile "$LINENO"; then : |
14108 |
eval "$as_CACHEVAR=yes" |
14109 |
else |
14110 |
eval "$as_CACHEVAR=no" |
14111 |
fi |
14112 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14113 |
CFLAGS=$ax_check_save_flags |
14114 |
fi |
14115 |
eval ac_res=\$$as_CACHEVAR |
14116 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14117 |
$as_echo "$ac_res" >&6; } |
14118 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14119 |
|
14120 |
if ${CFLAGS+:} false; then : |
14121 |
|
14122 |
case " $CFLAGS " in #( |
14123 |
*" $flag "*) : |
14124 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14125 |
(: CFLAGS already contains $flag) 2>&5 |
14126 |
ac_status=$? |
14127 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14128 |
test $ac_status = 0; } ;; #( |
14129 |
*) : |
14130 |
|
14131 |
as_fn_append CFLAGS " $flag" |
14132 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14133 |
(: CFLAGS="$CFLAGS") 2>&5 |
14134 |
ac_status=$? |
14135 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14136 |
test $ac_status = 0; } |
14137 |
;; |
14138 |
esac |
14139 |
|
14140 |
else |
14141 |
|
14142 |
CFLAGS=$flag |
14143 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14144 |
(: CFLAGS="$CFLAGS") 2>&5 |
14145 |
ac_status=$? |
14146 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14147 |
test $ac_status = 0; } |
14148 |
|
14149 |
fi |
14150 |
|
14151 |
else |
14152 |
: |
14153 |
fi |
14154 |
|
14155 |
done |
14156 |
|
14157 |
|
14158 |
|
14159 |
|
14160 |
|
14161 |
for flag in -Wshadow; do |
14162 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14164 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14165 |
if eval \${$as_CACHEVAR+:} false; then : |
14166 |
$as_echo_n "(cached) " >&6 |
14167 |
else |
14168 |
|
14169 |
ax_check_save_flags=$CFLAGS |
14170 |
CFLAGS="$CFLAGS $flag" |
14171 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14172 |
/* end confdefs.h. */ |
14173 |
|
14174 |
int |
14175 |
main () |
14176 |
{ |
14177 |
|
14178 |
; |
14179 |
return 0; |
14180 |
} |
14181 |
_ACEOF |
14182 |
if ac_fn_c_try_compile "$LINENO"; then : |
14183 |
eval "$as_CACHEVAR=yes" |
14184 |
else |
14185 |
eval "$as_CACHEVAR=no" |
14186 |
fi |
14187 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14188 |
CFLAGS=$ax_check_save_flags |
14189 |
fi |
14190 |
eval ac_res=\$$as_CACHEVAR |
14191 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14192 |
$as_echo "$ac_res" >&6; } |
14193 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14194 |
|
14195 |
if ${CFLAGS+:} false; then : |
14196 |
|
14197 |
case " $CFLAGS " in #( |
14198 |
*" $flag "*) : |
14199 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14200 |
(: CFLAGS already contains $flag) 2>&5 |
14201 |
ac_status=$? |
14202 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14203 |
test $ac_status = 0; } ;; #( |
14204 |
*) : |
14205 |
|
14206 |
as_fn_append CFLAGS " $flag" |
14207 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14208 |
(: CFLAGS="$CFLAGS") 2>&5 |
14209 |
ac_status=$? |
14210 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14211 |
test $ac_status = 0; } |
14212 |
;; |
14213 |
esac |
14214 |
|
14215 |
else |
14216 |
|
14217 |
CFLAGS=$flag |
14218 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14219 |
(: CFLAGS="$CFLAGS") 2>&5 |
14220 |
ac_status=$? |
14221 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14222 |
test $ac_status = 0; } |
14223 |
|
14224 |
fi |
14225 |
|
14226 |
else |
14227 |
: |
14228 |
fi |
14229 |
|
14230 |
done |
14231 |
|
14232 |
|
14233 |
|
14234 |
|
14235 |
|
14236 |
for flag in -Wsign-compare; do |
14237 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14239 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14240 |
if eval \${$as_CACHEVAR+:} false; then : |
14241 |
$as_echo_n "(cached) " >&6 |
14242 |
else |
14243 |
|
14244 |
ax_check_save_flags=$CFLAGS |
14245 |
CFLAGS="$CFLAGS $flag" |
14246 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14247 |
/* end confdefs.h. */ |
14248 |
|
14249 |
int |
14250 |
main () |
14251 |
{ |
14252 |
|
14253 |
; |
14254 |
return 0; |
14255 |
} |
14256 |
_ACEOF |
14257 |
if ac_fn_c_try_compile "$LINENO"; then : |
14258 |
eval "$as_CACHEVAR=yes" |
14259 |
else |
14260 |
eval "$as_CACHEVAR=no" |
14261 |
fi |
14262 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14263 |
CFLAGS=$ax_check_save_flags |
14264 |
fi |
14265 |
eval ac_res=\$$as_CACHEVAR |
14266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14267 |
$as_echo "$ac_res" >&6; } |
14268 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14269 |
|
14270 |
if ${CFLAGS+:} false; then : |
14271 |
|
14272 |
case " $CFLAGS " in #( |
14273 |
*" $flag "*) : |
14274 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14275 |
(: CFLAGS already contains $flag) 2>&5 |
14276 |
ac_status=$? |
14277 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14278 |
test $ac_status = 0; } ;; #( |
14279 |
*) : |
14280 |
|
14281 |
as_fn_append CFLAGS " $flag" |
14282 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14283 |
(: CFLAGS="$CFLAGS") 2>&5 |
14284 |
ac_status=$? |
14285 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14286 |
test $ac_status = 0; } |
14287 |
;; |
14288 |
esac |
14289 |
|
14290 |
else |
14291 |
|
14292 |
CFLAGS=$flag |
14293 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14294 |
(: CFLAGS="$CFLAGS") 2>&5 |
14295 |
ac_status=$? |
14296 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14297 |
test $ac_status = 0; } |
14298 |
|
14299 |
fi |
14300 |
|
14301 |
else |
14302 |
: |
14303 |
fi |
14304 |
|
14305 |
done |
14306 |
|
14307 |
|
14308 |
|
14309 |
|
14310 |
|
14311 |
for flag in -Wtype-limits; do |
14312 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14314 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14315 |
if eval \${$as_CACHEVAR+:} false; then : |
14316 |
$as_echo_n "(cached) " >&6 |
14317 |
else |
14318 |
|
14319 |
ax_check_save_flags=$CFLAGS |
14320 |
CFLAGS="$CFLAGS $flag" |
14321 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14322 |
/* end confdefs.h. */ |
14323 |
|
14324 |
int |
14325 |
main () |
14326 |
{ |
14327 |
|
14328 |
; |
14329 |
return 0; |
14330 |
} |
14331 |
_ACEOF |
14332 |
if ac_fn_c_try_compile "$LINENO"; then : |
14333 |
eval "$as_CACHEVAR=yes" |
14334 |
else |
14335 |
eval "$as_CACHEVAR=no" |
14336 |
fi |
14337 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14338 |
CFLAGS=$ax_check_save_flags |
14339 |
fi |
14340 |
eval ac_res=\$$as_CACHEVAR |
14341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14342 |
$as_echo "$ac_res" >&6; } |
14343 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14344 |
|
14345 |
if ${CFLAGS+:} false; then : |
14346 |
|
14347 |
case " $CFLAGS " in #( |
14348 |
*" $flag "*) : |
14349 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14350 |
(: CFLAGS already contains $flag) 2>&5 |
14351 |
ac_status=$? |
14352 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14353 |
test $ac_status = 0; } ;; #( |
14354 |
*) : |
14355 |
|
14356 |
as_fn_append CFLAGS " $flag" |
14357 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14358 |
(: CFLAGS="$CFLAGS") 2>&5 |
14359 |
ac_status=$? |
14360 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14361 |
test $ac_status = 0; } |
14362 |
;; |
14363 |
esac |
14364 |
|
14365 |
else |
14366 |
|
14367 |
CFLAGS=$flag |
14368 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14369 |
(: CFLAGS="$CFLAGS") 2>&5 |
14370 |
ac_status=$? |
14371 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14372 |
test $ac_status = 0; } |
14373 |
|
14374 |
fi |
14375 |
|
14376 |
else |
14377 |
: |
14378 |
fi |
14379 |
|
14380 |
done |
14381 |
|
14382 |
|
14383 |
|
14384 |
|
14385 |
|
14386 |
for flag in -Wundef; do |
14387 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14388 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14389 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14390 |
if eval \${$as_CACHEVAR+:} false; then : |
14391 |
$as_echo_n "(cached) " >&6 |
14392 |
else |
14393 |
|
14394 |
ax_check_save_flags=$CFLAGS |
14395 |
CFLAGS="$CFLAGS $flag" |
14396 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14397 |
/* end confdefs.h. */ |
14398 |
|
14399 |
int |
14400 |
main () |
14401 |
{ |
14402 |
|
14403 |
; |
14404 |
return 0; |
14405 |
} |
14406 |
_ACEOF |
14407 |
if ac_fn_c_try_compile "$LINENO"; then : |
14408 |
eval "$as_CACHEVAR=yes" |
14409 |
else |
14410 |
eval "$as_CACHEVAR=no" |
14411 |
fi |
14412 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14413 |
CFLAGS=$ax_check_save_flags |
14414 |
fi |
14415 |
eval ac_res=\$$as_CACHEVAR |
14416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14417 |
$as_echo "$ac_res" >&6; } |
14418 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14419 |
|
14420 |
if ${CFLAGS+:} false; then : |
14421 |
|
14422 |
case " $CFLAGS " in #( |
14423 |
*" $flag "*) : |
14424 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14425 |
(: CFLAGS already contains $flag) 2>&5 |
14426 |
ac_status=$? |
14427 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14428 |
test $ac_status = 0; } ;; #( |
14429 |
*) : |
14430 |
|
14431 |
as_fn_append CFLAGS " $flag" |
14432 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14433 |
(: CFLAGS="$CFLAGS") 2>&5 |
14434 |
ac_status=$? |
14435 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14436 |
test $ac_status = 0; } |
14437 |
;; |
14438 |
esac |
14439 |
|
14440 |
else |
14441 |
|
14442 |
CFLAGS=$flag |
14443 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14444 |
(: CFLAGS="$CFLAGS") 2>&5 |
14445 |
ac_status=$? |
14446 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14447 |
test $ac_status = 0; } |
14448 |
|
14449 |
fi |
14450 |
|
14451 |
else |
14452 |
: |
14453 |
fi |
14454 |
|
14455 |
done |
14456 |
|
14457 |
|
14458 |
|
14459 |
|
14460 |
|
14461 |
for flag in -Wuninitialized; do |
14462 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14463 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14464 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14465 |
if eval \${$as_CACHEVAR+:} false; then : |
14466 |
$as_echo_n "(cached) " >&6 |
14467 |
else |
14468 |
|
14469 |
ax_check_save_flags=$CFLAGS |
14470 |
CFLAGS="$CFLAGS $flag" |
14471 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14472 |
/* end confdefs.h. */ |
14473 |
|
14474 |
int |
14475 |
main () |
14476 |
{ |
14477 |
|
14478 |
; |
14479 |
return 0; |
14480 |
} |
14481 |
_ACEOF |
14482 |
if ac_fn_c_try_compile "$LINENO"; then : |
14483 |
eval "$as_CACHEVAR=yes" |
14484 |
else |
14485 |
eval "$as_CACHEVAR=no" |
14486 |
fi |
14487 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14488 |
CFLAGS=$ax_check_save_flags |
14489 |
fi |
14490 |
eval ac_res=\$$as_CACHEVAR |
14491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14492 |
$as_echo "$ac_res" >&6; } |
14493 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14494 |
|
14495 |
if ${CFLAGS+:} false; then : |
14496 |
|
14497 |
case " $CFLAGS " in #( |
14498 |
*" $flag "*) : |
14499 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14500 |
(: CFLAGS already contains $flag) 2>&5 |
14501 |
ac_status=$? |
14502 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14503 |
test $ac_status = 0; } ;; #( |
14504 |
*) : |
14505 |
|
14506 |
as_fn_append CFLAGS " $flag" |
14507 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14508 |
(: CFLAGS="$CFLAGS") 2>&5 |
14509 |
ac_status=$? |
14510 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14511 |
test $ac_status = 0; } |
14512 |
;; |
14513 |
esac |
14514 |
|
14515 |
else |
14516 |
|
14517 |
CFLAGS=$flag |
14518 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14519 |
(: CFLAGS="$CFLAGS") 2>&5 |
14520 |
ac_status=$? |
14521 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14522 |
test $ac_status = 0; } |
14523 |
|
14524 |
fi |
14525 |
|
14526 |
else |
14527 |
: |
14528 |
fi |
14529 |
|
14530 |
done |
14531 |
|
14532 |
|
14533 |
|
14534 |
|
14535 |
|
14536 |
for flag in -Wwrite-strings; do |
14537 |
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
14538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
14539 |
$as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
14540 |
if eval \${$as_CACHEVAR+:} false; then : |
14541 |
$as_echo_n "(cached) " >&6 |
14542 |
else |
14543 |
|
14544 |
ax_check_save_flags=$CFLAGS |
14545 |
CFLAGS="$CFLAGS $flag" |
14546 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14547 |
/* end confdefs.h. */ |
14548 |
|
14549 |
int |
14550 |
main () |
14551 |
{ |
14552 |
|
14553 |
; |
14554 |
return 0; |
14555 |
} |
14556 |
_ACEOF |
14557 |
if ac_fn_c_try_compile "$LINENO"; then : |
14558 |
eval "$as_CACHEVAR=yes" |
14559 |
else |
14560 |
eval "$as_CACHEVAR=no" |
14561 |
fi |
14562 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14563 |
CFLAGS=$ax_check_save_flags |
14564 |
fi |
14565 |
eval ac_res=\$$as_CACHEVAR |
14566 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
14567 |
$as_echo "$ac_res" >&6; } |
14568 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : |
14569 |
|
14570 |
if ${CFLAGS+:} false; then : |
14571 |
|
14572 |
case " $CFLAGS " in #( |
14573 |
*" $flag "*) : |
14574 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 |
14575 |
(: CFLAGS already contains $flag) 2>&5 |
14576 |
ac_status=$? |
14577 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14578 |
test $ac_status = 0; } ;; #( |
14579 |
*) : |
14580 |
|
14581 |
as_fn_append CFLAGS " $flag" |
14582 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14583 |
(: CFLAGS="$CFLAGS") 2>&5 |
14584 |
ac_status=$? |
14585 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14586 |
test $ac_status = 0; } |
14587 |
;; |
14588 |
esac |
14589 |
|
14590 |
else |
14591 |
|
14592 |
CFLAGS=$flag |
14593 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 |
14594 |
(: CFLAGS="$CFLAGS") 2>&5 |
14595 |
ac_status=$? |
14596 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14597 |
test $ac_status = 0; } |
14598 |
|
14599 |
fi |
14600 |
|
14601 |
else |
14602 |
: |
14603 |
fi |
14604 |
|
14605 |
done |
14606 |
|
14607 |
|
14608 |
fi |
14609 |
|
14610 |
|
14611 |
for ac_func in strlcpy strlcat |
14612 |
do : |
14613 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14614 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
14615 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
14616 |
cat >>confdefs.h <<_ACEOF |
14617 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
14618 |
_ACEOF |
14619 |
|
14620 |
fi |
14621 |
done |
14622 |
|
14623 |
|
14624 |
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile" |
14625 |
|
14626 |
cat >confcache <<\_ACEOF |
14627 |
# This file is a shell script that caches the results of configure |
14628 |
# tests run on this system so they can be shared between configure |
14629 |
# scripts and configure runs, see configure's option --config-cache. |
14630 |
# It is not useful on other systems. If it contains results you don't |
14631 |
# want to keep, you may remove or edit it. |
14632 |
# |
14633 |
# config.status only pays attention to the cache file if you give it |
14634 |
# the --recheck option to rerun configure. |
14635 |
# |
14636 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
14637 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
14638 |
# following values. |
14639 |
|
14640 |
_ACEOF |
14641 |
|
14642 |
# The following way of writing the cache mishandles newlines in values, |
14643 |
# but we know of no workaround that is simple, portable, and efficient. |
14644 |
# So, we kill variables containing newlines. |
14645 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
14646 |
# and sets the high bit in the cache file unless we assign to the vars. |
14647 |
( |
14648 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
14649 |
eval ac_val=\$$ac_var |
14650 |
case $ac_val in #( |
14651 |
*${as_nl}*) |
14652 |
case $ac_var in #( |
14653 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
14654 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
14655 |
esac |
14656 |
case $ac_var in #( |
14657 |
_ | IFS | as_nl) ;; #( |
14658 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
14659 |
*) { eval $ac_var=; unset $ac_var;} ;; |
14660 |
esac ;; |
14661 |
esac |
14662 |
done |
14663 |
|
14664 |
(set) 2>&1 | |
14665 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14666 |
*${as_nl}ac_space=\ *) |
14667 |
# `set' does not quote correctly, so add quotes: double-quote |
14668 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
14669 |
sed -n \ |
14670 |
"s/'/'\\\\''/g; |
14671 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
14672 |
;; #( |
14673 |
*) |
14674 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
14675 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
14676 |
;; |
14677 |
esac | |
14678 |
sort |
14679 |
) | |
14680 |
sed ' |
14681 |
/^ac_cv_env_/b end |
14682 |
t clear |
14683 |
:clear |
14684 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14685 |
t end |
14686 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14687 |
:end' >>confcache |
14688 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
14689 |
if test -w "$cache_file"; then |
14690 |
if test "x$cache_file" != "x/dev/null"; then |
14691 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14692 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
14693 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
14694 |
cat confcache >"$cache_file" |
14695 |
else |
14696 |
case $cache_file in #( |
14697 |
*/* | ?:*) |
14698 |
mv -f confcache "$cache_file"$$ && |
14699 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
14700 |
*) |
14701 |
mv -f confcache "$cache_file" ;; |
14702 |
esac |
14703 |
fi |
14704 |
fi |
14705 |
else |
14706 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14707 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
14708 |
fi |
14709 |
fi |
14710 |
rm -f confcache |
14711 |
|
14712 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14713 |
# Let make expand exec_prefix. |
14714 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
14715 |
|
14716 |
DEFS=-DHAVE_CONFIG_H |
14717 |
|
14718 |
ac_libobjs= |
14719 |
ac_ltlibobjs= |
14720 |
U= |
14721 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14722 |
# 1. Remove the extension, and $U if already installed. |
14723 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14724 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
14725 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
14726 |
# will be set to the directory where LIBOBJS objects are built. |
14727 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
14728 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
14729 |
done |
14730 |
LIBOBJS=$ac_libobjs |
14731 |
|
14732 |
LTLIBOBJS=$ac_ltlibobjs |
14733 |
|
14734 |
|
14735 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
14736 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
14737 |
if test -n "$am_sleep_pid"; then |
14738 |
# Hide warnings about reused PIDs. |
14739 |
wait $am_sleep_pid 2>/dev/null |
14740 |
fi |
14741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
14742 |
$as_echo "done" >&6; } |
14743 |
if test -n "$EXEEXT"; then |
14744 |
am__EXEEXT_TRUE= |
14745 |
am__EXEEXT_FALSE='#' |
14746 |
else |
14747 |
am__EXEEXT_TRUE='#' |
14748 |
am__EXEEXT_FALSE= |
14749 |
fi |
14750 |
|
14751 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
14752 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
14753 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14754 |
fi |
14755 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14756 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
14757 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14758 |
fi |
14759 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
14760 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
14761 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14762 |
fi |
14763 |
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then |
14764 |
as_fn_error $? "conditional \"ENABLE_SSL\" was never defined. |
14765 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14766 |
fi |
14767 |
|
14768 |
: "${CONFIG_STATUS=./config.status}" |
14769 |
ac_write_fail=0 |
14770 |
ac_clean_files_save=$ac_clean_files |
14771 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
14772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14773 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
14774 |
as_write_fail=0 |
14775 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
14776 |
#! $SHELL |
14777 |
# Generated by $as_me. |
14778 |
# Run this file to recreate the current configuration. |
14779 |
# Compiler output produced by configure, useful for debugging |
14780 |
# configure, is in config.log if it exists. |
14781 |
|
14782 |
debug=false |
14783 |
ac_cs_recheck=false |
14784 |
ac_cs_silent=false |
14785 |
|
14786 |
SHELL=\${CONFIG_SHELL-$SHELL} |
14787 |
export SHELL |
14788 |
_ASEOF |
14789 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
14790 |
## -------------------- ## |
14791 |
## M4sh Initialization. ## |
14792 |
## -------------------- ## |
14793 |
|
14794 |
# Be more Bourne compatible |
14795 |
DUALCASE=1; export DUALCASE # for MKS sh |
14796 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
14797 |
emulate sh |
14798 |
NULLCMD=: |
14799 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
14800 |
# is contrary to our usage. Disable this feature. |
14801 |
alias -g '${1+"$@"}'='"$@"' |
14802 |
setopt NO_GLOB_SUBST |
14803 |
else |
14804 |
case `(set -o) 2>/dev/null` in #( |
14805 |
*posix*) : |
14806 |
set -o posix ;; #( |
14807 |
*) : |
14808 |
;; |
14809 |
esac |
14810 |
fi |
14811 |
|
14812 |
|
14813 |
as_nl=' |
14814 |
' |
14815 |
export as_nl |
14816 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
14817 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
14818 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
14819 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
14820 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
14821 |
# but without wasting forks for bash or zsh. |
14822 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
14823 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
14824 |
as_echo='print -r --' |
14825 |
as_echo_n='print -rn --' |
14826 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
14827 |
as_echo='printf %s\n' |
14828 |
as_echo_n='printf %s' |
14829 |
else |
14830 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
14831 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
14832 |
as_echo_n='/usr/ucb/echo -n' |
14833 |
else |
14834 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
14835 |
as_echo_n_body='eval |
14836 |
arg=$1; |
14837 |
case $arg in #( |
14838 |
*"$as_nl"*) |
14839 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
14840 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
14841 |
esac; |
14842 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
14843 |
' |
14844 |
export as_echo_n_body |
14845 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
14846 |
fi |
14847 |
export as_echo_body |
14848 |
as_echo='sh -c $as_echo_body as_echo' |
14849 |
fi |
14850 |
|
14851 |
# The user is always right. |
14852 |
if test "${PATH_SEPARATOR+set}" != set; then |
14853 |
PATH_SEPARATOR=: |
14854 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
14855 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
14856 |
PATH_SEPARATOR=';' |
14857 |
} |
14858 |
fi |
14859 |
|
14860 |
|
14861 |
# IFS |
14862 |
# We need space, tab and new line, in precisely that order. Quoting is |
14863 |
# there to prevent editors from complaining about space-tab. |
14864 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
14865 |
# splitting by setting IFS to empty value.) |
14866 |
IFS=" "" $as_nl" |
14867 |
|
14868 |
# Find who we are. Look in the path if we contain no directory separator. |
14869 |
as_myself= |
14870 |
case $0 in #(( |
14871 |
*[\\/]* ) as_myself=$0 ;; |
14872 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14873 |
for as_dir in $PATH |
14874 |
do |
14875 |
IFS=$as_save_IFS |
14876 |
test -z "$as_dir" && as_dir=. |
14877 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14878 |
done |
14879 |
IFS=$as_save_IFS |
14880 |
|
14881 |
;; |
14882 |
esac |
14883 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
14884 |
# in which case we are not to be found in the path. |
14885 |
if test "x$as_myself" = x; then |
14886 |
as_myself=$0 |
14887 |
fi |
14888 |
if test ! -f "$as_myself"; then |
14889 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
14890 |
exit 1 |
14891 |
fi |
14892 |
|
14893 |
# Unset variables that we do not need and which cause bugs (e.g. in |
14894 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
14895 |
# suppresses any "Segmentation fault" message there. '((' could |
14896 |
# trigger a bug in pdksh 5.2.14. |
14897 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
14898 |
do eval test x\${$as_var+set} = xset \ |
14899 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
14900 |
done |
14901 |
PS1='$ ' |
14902 |
PS2='> ' |
14903 |
PS4='+ ' |
14904 |
|
14905 |
# NLS nuisances. |
14906 |
LC_ALL=C |
14907 |
export LC_ALL |
14908 |
LANGUAGE=C |
14909 |
export LANGUAGE |
14910 |
|
14911 |
# CDPATH. |
14912 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
14913 |
|
14914 |
|
14915 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
14916 |
# ---------------------------------------- |
14917 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14918 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
14919 |
# script with STATUS, using 1 if that was 0. |
14920 |
as_fn_error () |
14921 |
{ |
14922 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
14923 |
if test "$4"; then |
14924 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
14925 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
14926 |
fi |
14927 |
$as_echo "$as_me: error: $2" >&2 |
14928 |
as_fn_exit $as_status |
14929 |
} # as_fn_error |
14930 |
|
14931 |
|
14932 |
# as_fn_set_status STATUS |
14933 |
# ----------------------- |
14934 |
# Set $? to STATUS, without forking. |
14935 |
as_fn_set_status () |
14936 |
{ |
14937 |
return $1 |
14938 |
} # as_fn_set_status |
14939 |
|
14940 |
# as_fn_exit STATUS |
14941 |
# ----------------- |
14942 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
14943 |
as_fn_exit () |
14944 |
{ |
14945 |
set +e |
14946 |
as_fn_set_status $1 |
14947 |
exit $1 |
14948 |
} # as_fn_exit |
14949 |
|
14950 |
# as_fn_unset VAR |
14951 |
# --------------- |
14952 |
# Portably unset VAR. |
14953 |
as_fn_unset () |
14954 |
{ |
14955 |
{ eval $1=; unset $1;} |
14956 |
} |
14957 |
as_unset=as_fn_unset |
14958 |
# as_fn_append VAR VALUE |
14959 |
# ---------------------- |
14960 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
14961 |
# advantage of any shell optimizations that allow amortized linear growth over |
14962 |
# repeated appends, instead of the typical quadratic growth present in naive |
14963 |
# implementations. |
14964 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
14965 |
eval 'as_fn_append () |
14966 |
{ |
14967 |
eval $1+=\$2 |
14968 |
}' |
14969 |
else |
14970 |
as_fn_append () |
14971 |
{ |
14972 |
eval $1=\$$1\$2 |
14973 |
} |
14974 |
fi # as_fn_append |
14975 |
|
14976 |
# as_fn_arith ARG... |
14977 |
# ------------------ |
14978 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
14979 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
14980 |
# must be portable across $(()) and expr. |
14981 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
14982 |
eval 'as_fn_arith () |
14983 |
{ |
14984 |
as_val=$(( $* )) |
14985 |
}' |
14986 |
else |
14987 |
as_fn_arith () |
14988 |
{ |
14989 |
as_val=`expr "$@" || test $? -eq 1` |
14990 |
} |
14991 |
fi # as_fn_arith |
14992 |
|
14993 |
|
14994 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
14995 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
14996 |
as_expr=expr |
14997 |
else |
14998 |
as_expr=false |
14999 |
fi |
15000 |
|
15001 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
15002 |
as_basename=basename |
15003 |
else |
15004 |
as_basename=false |
15005 |
fi |
15006 |
|
15007 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15008 |
as_dirname=dirname |
15009 |
else |
15010 |
as_dirname=false |
15011 |
fi |
15012 |
|
15013 |
as_me=`$as_basename -- "$0" || |
15014 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15015 |
X"$0" : 'X\(//\)$' \| \ |
15016 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15017 |
$as_echo X/"$0" | |
15018 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15019 |
s//\1/ |
15020 |
q |
15021 |
} |
15022 |
/^X\/\(\/\/\)$/{ |
15023 |
s//\1/ |
15024 |
q |
15025 |
} |
15026 |
/^X\/\(\/\).*/{ |
15027 |
s//\1/ |
15028 |
q |
15029 |
} |
15030 |
s/.*/./; q'` |
15031 |
|
15032 |
# Avoid depending upon Character Ranges. |
15033 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
15034 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
15035 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
15036 |
as_cr_digits='0123456789' |
15037 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
15038 |
|
15039 |
ECHO_C= ECHO_N= ECHO_T= |
15040 |
case `echo -n x` in #((((( |
15041 |
-n*) |
15042 |
case `echo 'xy\c'` in |
15043 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
15044 |
xy) ECHO_C='\c';; |
15045 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
15046 |
ECHO_T=' ';; |
15047 |
esac;; |
15048 |
*) |
15049 |
ECHO_N='-n';; |
15050 |
esac |
15051 |
|
15052 |
rm -f conf$$ conf$$.exe conf$$.file |
15053 |
if test -d conf$$.dir; then |
15054 |
rm -f conf$$.dir/conf$$.file |
15055 |
else |
15056 |
rm -f conf$$.dir |
15057 |
mkdir conf$$.dir 2>/dev/null |
15058 |
fi |
15059 |
if (echo >conf$$.file) 2>/dev/null; then |
15060 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
15061 |
as_ln_s='ln -s' |
15062 |
# ... but there are two gotchas: |
15063 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
15064 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
15065 |
# In both cases, we have to default to `cp -pR'. |
15066 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
15067 |
as_ln_s='cp -pR' |
15068 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
15069 |
as_ln_s=ln |
15070 |
else |
15071 |
as_ln_s='cp -pR' |
15072 |
fi |
15073 |
else |
15074 |
as_ln_s='cp -pR' |
15075 |
fi |
15076 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15077 |
rmdir conf$$.dir 2>/dev/null |
15078 |
|
15079 |
|
15080 |
# as_fn_mkdir_p |
15081 |
# ------------- |
15082 |
# Create "$as_dir" as a directory, including parents if necessary. |
15083 |
as_fn_mkdir_p () |
15084 |
{ |
15085 |
|
15086 |
case $as_dir in #( |
15087 |
-*) as_dir=./$as_dir;; |
15088 |
esac |
15089 |
test -d "$as_dir" || eval $as_mkdir_p || { |
15090 |
as_dirs= |
15091 |
while :; do |
15092 |
case $as_dir in #( |
15093 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
15094 |
*) as_qdir=$as_dir;; |
15095 |
esac |
15096 |
as_dirs="'$as_qdir' $as_dirs" |
15097 |
as_dir=`$as_dirname -- "$as_dir" || |
15098 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15099 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
15100 |
X"$as_dir" : 'X\(//\)$' \| \ |
15101 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
15102 |
$as_echo X"$as_dir" | |
15103 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15104 |
s//\1/ |
15105 |
q |
15106 |
} |
15107 |
/^X\(\/\/\)[^/].*/{ |
15108 |
s//\1/ |
15109 |
q |
15110 |
} |
15111 |
/^X\(\/\/\)$/{ |
15112 |
s//\1/ |
15113 |
q |
15114 |
} |
15115 |
/^X\(\/\).*/{ |
15116 |
s//\1/ |
15117 |
q |
15118 |
} |
15119 |
s/.*/./; q'` |
15120 |
test -d "$as_dir" && break |
15121 |
done |
15122 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
15123 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
15124 |
|
15125 |
|
15126 |
} # as_fn_mkdir_p |
15127 |
if mkdir -p . 2>/dev/null; then |
15128 |
as_mkdir_p='mkdir -p "$as_dir"' |
15129 |
else |
15130 |
test -d ./-p && rmdir ./-p |
15131 |
as_mkdir_p=false |
15132 |
fi |
15133 |
|
15134 |
|
15135 |
# as_fn_executable_p FILE |
15136 |
# ----------------------- |
15137 |
# Test if FILE is an executable regular file. |
15138 |
as_fn_executable_p () |
15139 |
{ |
15140 |
test -f "$1" && test -x "$1" |
15141 |
} # as_fn_executable_p |
15142 |
as_test_x='test -x' |
15143 |
as_executable_p=as_fn_executable_p |
15144 |
|
15145 |
# Sed expression to map a string onto a valid CPP name. |
15146 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
15147 |
|
15148 |
# Sed expression to map a string onto a valid variable name. |
15149 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
15150 |
|
15151 |
|
15152 |
exec 6>&1 |
15153 |
## ----------------------------------- ## |
15154 |
## Main body of $CONFIG_STATUS script. ## |
15155 |
## ----------------------------------- ## |
15156 |
_ASEOF |
15157 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
15158 |
|
15159 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15160 |
# Save the log message, to keep $0 and so on meaningful, and to |
15161 |
# report actual input values of CONFIG_FILES etc. instead of their |
15162 |
# values after options handling. |
15163 |
ac_log=" |
15164 |
This file was extended by hopm $as_me TRUNK, which was |
15165 |
generated by GNU Autoconf 2.69. Invocation command line was |
15166 |
|
15167 |
CONFIG_FILES = $CONFIG_FILES |
15168 |
CONFIG_HEADERS = $CONFIG_HEADERS |
15169 |
CONFIG_LINKS = $CONFIG_LINKS |
15170 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
15171 |
$ $0 $@ |
15172 |
|
15173 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15174 |
" |
15175 |
|
15176 |
_ACEOF |
15177 |
|
15178 |
case $ac_config_files in *" |
15179 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
15180 |
esac |
15181 |
|
15182 |
case $ac_config_headers in *" |
15183 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
15184 |
esac |
15185 |
|
15186 |
|
15187 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15188 |
# Files that config.status was made for. |
15189 |
config_files="$ac_config_files" |
15190 |
config_headers="$ac_config_headers" |
15191 |
config_commands="$ac_config_commands" |
15192 |
|
15193 |
_ACEOF |
15194 |
|
15195 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15196 |
ac_cs_usage="\ |
15197 |
\`$as_me' instantiates files and other configuration actions |
15198 |
from templates according to the current configuration. Unless the files |
15199 |
and actions are specified as TAGs, all are instantiated by default. |
15200 |
|
15201 |
Usage: $0 [OPTION]... [TAG]... |
15202 |
|
15203 |
-h, --help print this help, then exit |
15204 |
-V, --version print version number and configuration settings, then exit |
15205 |
--config print configuration, then exit |
15206 |
-q, --quiet, --silent |
15207 |
do not print progress messages |
15208 |
-d, --debug don't remove temporary files |
15209 |
--recheck update $as_me by reconfiguring in the same conditions |
15210 |
--file=FILE[:TEMPLATE] |
15211 |
instantiate the configuration file FILE |
15212 |
--header=FILE[:TEMPLATE] |
15213 |
instantiate the configuration header FILE |
15214 |
|
15215 |
Configuration files: |
15216 |
$config_files |
15217 |
|
15218 |
Configuration headers: |
15219 |
$config_headers |
15220 |
|
15221 |
Configuration commands: |
15222 |
$config_commands |
15223 |
|
15224 |
Report bugs to <bugs@ircd-hybrid.org>." |
15225 |
|
15226 |
_ACEOF |
15227 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15228 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
15229 |
ac_cs_version="\\ |
15230 |
hopm config.status TRUNK |
15231 |
configured by $0, generated by GNU Autoconf 2.69, |
15232 |
with options \\"\$ac_cs_config\\" |
15233 |
|
15234 |
Copyright (C) 2012 Free Software Foundation, Inc. |
15235 |
This config.status script is free software; the Free Software Foundation |
15236 |
gives unlimited permission to copy, distribute and modify it." |
15237 |
|
15238 |
ac_pwd='$ac_pwd' |
15239 |
srcdir='$srcdir' |
15240 |
INSTALL='$INSTALL' |
15241 |
MKDIR_P='$MKDIR_P' |
15242 |
AWK='$AWK' |
15243 |
test -n "\$AWK" || AWK=awk |
15244 |
_ACEOF |
15245 |
|
15246 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15247 |
# The default lists apply if the user does not specify any file. |
15248 |
ac_need_defaults=: |
15249 |
while test $# != 0 |
15250 |
do |
15251 |
case $1 in |
15252 |
--*=?*) |
15253 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15254 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
15255 |
ac_shift=: |
15256 |
;; |
15257 |
--*=) |
15258 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15259 |
ac_optarg= |
15260 |
ac_shift=: |
15261 |
;; |
15262 |
*) |
15263 |
ac_option=$1 |
15264 |
ac_optarg=$2 |
15265 |
ac_shift=shift |
15266 |
;; |
15267 |
esac |
15268 |
|
15269 |
case $ac_option in |
15270 |
# Handling of the options. |
15271 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15272 |
ac_cs_recheck=: ;; |
15273 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15274 |
$as_echo "$ac_cs_version"; exit ;; |
15275 |
--config | --confi | --conf | --con | --co | --c ) |
15276 |
$as_echo "$ac_cs_config"; exit ;; |
15277 |
--debug | --debu | --deb | --de | --d | -d ) |
15278 |
debug=: ;; |
15279 |
--file | --fil | --fi | --f ) |
15280 |
$ac_shift |
15281 |
case $ac_optarg in |
15282 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15283 |
'') as_fn_error $? "missing file argument" ;; |
15284 |
esac |
15285 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
15286 |
ac_need_defaults=false;; |
15287 |
--header | --heade | --head | --hea ) |
15288 |
$ac_shift |
15289 |
case $ac_optarg in |
15290 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15291 |
esac |
15292 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
15293 |
ac_need_defaults=false;; |
15294 |
--he | --h) |
15295 |
# Conflict between --help and --header |
15296 |
as_fn_error $? "ambiguous option: \`$1' |
15297 |
Try \`$0 --help' for more information.";; |
15298 |
--help | --hel | -h ) |
15299 |
$as_echo "$ac_cs_usage"; exit ;; |
15300 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15301 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
15302 |
ac_cs_silent=: ;; |
15303 |
|
15304 |
# This is an error. |
15305 |
-*) as_fn_error $? "unrecognized option: \`$1' |
15306 |
Try \`$0 --help' for more information." ;; |
15307 |
|
15308 |
*) as_fn_append ac_config_targets " $1" |
15309 |
ac_need_defaults=false ;; |
15310 |
|
15311 |
esac |
15312 |
shift |
15313 |
done |
15314 |
|
15315 |
ac_configure_extra_args= |
15316 |
|
15317 |
if $ac_cs_silent; then |
15318 |
exec 6>/dev/null |
15319 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
15320 |
fi |
15321 |
|
15322 |
_ACEOF |
15323 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15324 |
if \$ac_cs_recheck; then |
15325 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15326 |
shift |
15327 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
15328 |
CONFIG_SHELL='$SHELL' |
15329 |
export CONFIG_SHELL |
15330 |
exec "\$@" |
15331 |
fi |
15332 |
|
15333 |
_ACEOF |
15334 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15335 |
exec 5>>config.log |
15336 |
{ |
15337 |
echo |
15338 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
15339 |
## Running $as_me. ## |
15340 |
_ASBOX |
15341 |
$as_echo "$ac_log" |
15342 |
} >&5 |
15343 |
|
15344 |
_ACEOF |
15345 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15346 |
# |
15347 |
# INIT-COMMANDS |
15348 |
# |
15349 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
15350 |
|
15351 |
|
15352 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
15353 |
# if CDPATH is set. |
15354 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
15355 |
|
15356 |
sed_quote_subst='$sed_quote_subst' |
15357 |
double_quote_subst='$double_quote_subst' |
15358 |
delay_variable_subst='$delay_variable_subst' |
15359 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
15360 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
15361 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
15362 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
15363 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
15364 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
15365 |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
15366 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
15367 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
15368 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
15369 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
15370 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
15371 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
15372 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
15373 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
15374 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
15375 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
15376 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
15377 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
15378 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
15379 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
15380 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
15381 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
15382 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
15383 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
15384 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
15385 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
15386 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
15387 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
15388 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
15389 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
15390 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
15391 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
15392 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
15393 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
15394 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
15395 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
15396 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
15397 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
15398 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
15399 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
15400 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
15401 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
15402 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
15403 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
15404 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
15405 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
15406 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
15407 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
15408 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
15409 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
15410 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
15411 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
15412 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
15413 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
15414 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
15415 |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
15416 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
15417 |
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"`' |
15418 |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
15419 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
15420 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
15421 |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
15422 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
15423 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
15424 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
15425 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
15426 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
15427 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
15428 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
15429 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
15430 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
15431 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
15432 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
15433 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
15434 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
15435 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
15436 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
15437 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
15438 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
15439 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
15440 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
15441 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
15442 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
15443 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
15444 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
15445 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
15446 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
15447 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
15448 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
15449 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
15450 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
15451 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
15452 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
15453 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
15454 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
15455 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
15456 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
15457 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
15458 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
15459 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
15460 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
15461 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
15462 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
15463 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
15464 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
15465 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
15466 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
15467 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
15468 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
15469 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
15470 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
15471 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
15472 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
15473 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
15474 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
15475 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
15476 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
15477 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
15478 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
15479 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
15480 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
15481 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
15482 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
15483 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
15484 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
15485 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
15486 |
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
15487 |
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
15488 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
15489 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
15490 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
15491 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
15492 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
15493 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
15494 |
|
15495 |
LTCC='$LTCC' |
15496 |
LTCFLAGS='$LTCFLAGS' |
15497 |
compiler='$compiler_DEFAULT' |
15498 |
|
15499 |
# A function that is used when there is no print builtin or printf. |
15500 |
func_fallback_echo () |
15501 |
{ |
15502 |
eval 'cat <<_LTECHO_EOF |
15503 |
\$1 |
15504 |
_LTECHO_EOF' |
15505 |
} |
15506 |
|
15507 |
# Quote evaled strings. |
15508 |
for var in SHELL \ |
15509 |
ECHO \ |
15510 |
PATH_SEPARATOR \ |
15511 |
SED \ |
15512 |
GREP \ |
15513 |
EGREP \ |
15514 |
FGREP \ |
15515 |
LD \ |
15516 |
NM \ |
15517 |
LN_S \ |
15518 |
lt_SP2NL \ |
15519 |
lt_NL2SP \ |
15520 |
reload_flag \ |
15521 |
OBJDUMP \ |
15522 |
deplibs_check_method \ |
15523 |
file_magic_cmd \ |
15524 |
file_magic_glob \ |
15525 |
want_nocaseglob \ |
15526 |
DLLTOOL \ |
15527 |
sharedlib_from_linklib_cmd \ |
15528 |
AR \ |
15529 |
AR_FLAGS \ |
15530 |
archiver_list_spec \ |
15531 |
STRIP \ |
15532 |
RANLIB \ |
15533 |
CC \ |
15534 |
CFLAGS \ |
15535 |
compiler \ |
15536 |
lt_cv_sys_global_symbol_pipe \ |
15537 |
lt_cv_sys_global_symbol_to_cdecl \ |
15538 |
lt_cv_sys_global_symbol_to_import \ |
15539 |
lt_cv_sys_global_symbol_to_c_name_address \ |
15540 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
15541 |
lt_cv_nm_interface \ |
15542 |
nm_file_list_spec \ |
15543 |
lt_cv_truncate_bin \ |
15544 |
lt_prog_compiler_no_builtin_flag \ |
15545 |
lt_prog_compiler_pic \ |
15546 |
lt_prog_compiler_wl \ |
15547 |
lt_prog_compiler_static \ |
15548 |
lt_cv_prog_compiler_c_o \ |
15549 |
need_locks \ |
15550 |
MANIFEST_TOOL \ |
15551 |
DSYMUTIL \ |
15552 |
NMEDIT \ |
15553 |
LIPO \ |
15554 |
OTOOL \ |
15555 |
OTOOL64 \ |
15556 |
shrext_cmds \ |
15557 |
export_dynamic_flag_spec \ |
15558 |
whole_archive_flag_spec \ |
15559 |
compiler_needs_object \ |
15560 |
with_gnu_ld \ |
15561 |
allow_undefined_flag \ |
15562 |
no_undefined_flag \ |
15563 |
hardcode_libdir_flag_spec \ |
15564 |
hardcode_libdir_separator \ |
15565 |
exclude_expsyms \ |
15566 |
include_expsyms \ |
15567 |
file_list_spec \ |
15568 |
variables_saved_for_relink \ |
15569 |
libname_spec \ |
15570 |
library_names_spec \ |
15571 |
soname_spec \ |
15572 |
install_override_mode \ |
15573 |
finish_eval \ |
15574 |
old_striplib \ |
15575 |
striplib; do |
15576 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
15577 |
*[\\\\\\\`\\"\\\$]*) |
15578 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
15579 |
;; |
15580 |
*) |
15581 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15582 |
;; |
15583 |
esac |
15584 |
done |
15585 |
|
15586 |
# Double-quote double-evaled strings. |
15587 |
for var in reload_cmds \ |
15588 |
old_postinstall_cmds \ |
15589 |
old_postuninstall_cmds \ |
15590 |
old_archive_cmds \ |
15591 |
extract_expsyms_cmds \ |
15592 |
old_archive_from_new_cmds \ |
15593 |
old_archive_from_expsyms_cmds \ |
15594 |
archive_cmds \ |
15595 |
archive_expsym_cmds \ |
15596 |
module_cmds \ |
15597 |
module_expsym_cmds \ |
15598 |
export_symbols_cmds \ |
15599 |
prelink_cmds \ |
15600 |
postlink_cmds \ |
15601 |
postinstall_cmds \ |
15602 |
postuninstall_cmds \ |
15603 |
finish_cmds \ |
15604 |
sys_lib_search_path_spec \ |
15605 |
configure_time_dlsearch_path \ |
15606 |
configure_time_lt_sys_library_path; do |
15607 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
15608 |
*[\\\\\\\`\\"\\\$]*) |
15609 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
15610 |
;; |
15611 |
*) |
15612 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15613 |
;; |
15614 |
esac |
15615 |
done |
15616 |
|
15617 |
ac_aux_dir='$ac_aux_dir' |
15618 |
|
15619 |
# See if we are running on zsh, and set the options that allow our |
15620 |
# commands through without removal of \ escapes INIT. |
15621 |
if test -n "\${ZSH_VERSION+set}"; then |
15622 |
setopt NO_GLOB_SUBST |
15623 |
fi |
15624 |
|
15625 |
|
15626 |
PACKAGE='$PACKAGE' |
15627 |
VERSION='$VERSION' |
15628 |
RM='$RM' |
15629 |
ofile='$ofile' |
15630 |
|
15631 |
|
15632 |
|
15633 |
|
15634 |
_ACEOF |
15635 |
|
15636 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15637 |
|
15638 |
# Handling of arguments. |
15639 |
for ac_config_target in $ac_config_targets |
15640 |
do |
15641 |
case $ac_config_target in |
15642 |
"src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;; |
15643 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
15644 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
15645 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15646 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
15647 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
15648 |
"src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;; |
15649 |
"src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;; |
15650 |
|
15651 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
15652 |
esac |
15653 |
done |
15654 |
|
15655 |
|
15656 |
# If the user did not use the arguments to specify the items to instantiate, |
15657 |
# then the envvar interface is used. Set only those that are not. |
15658 |
# We use the long form for the default assignment because of an extremely |
15659 |
# bizarre bug on SunOS 4.1.3. |
15660 |
if $ac_need_defaults; then |
15661 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
15662 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
15663 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
15664 |
fi |
15665 |
|
15666 |
# Have a temporary directory for convenience. Make it in the build tree |
15667 |
# simply because there is no reason against having it here, and in addition, |
15668 |
# creating and moving files from /tmp can sometimes cause problems. |
15669 |
# Hook for its removal unless debugging. |
15670 |
# Note that there is a small window in which the directory will not be cleaned: |
15671 |
# after its creation but before its name has been assigned to `$tmp'. |
15672 |
$debug || |
15673 |
{ |
15674 |
tmp= ac_tmp= |
15675 |
trap 'exit_status=$? |
15676 |
: "${ac_tmp:=$tmp}" |
15677 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
15678 |
' 0 |
15679 |
trap 'as_fn_exit 1' 1 2 13 15 |
15680 |
} |
15681 |
# Create a (secure) tmp directory for tmp files. |
15682 |
|
15683 |
{ |
15684 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
15685 |
test -d "$tmp" |
15686 |
} || |
15687 |
{ |
15688 |
tmp=./conf$$-$RANDOM |
15689 |
(umask 077 && mkdir "$tmp") |
15690 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15691 |
ac_tmp=$tmp |
15692 |
|
15693 |
# Set up the scripts for CONFIG_FILES section. |
15694 |
# No need to generate them if there are no CONFIG_FILES. |
15695 |
# This happens for instance with `./config.status config.h'. |
15696 |
if test -n "$CONFIG_FILES"; then |
15697 |
|
15698 |
|
15699 |
ac_cr=`echo X | tr X '\015'` |
15700 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
15701 |
# But we know of no other shell where ac_cr would be empty at this |
15702 |
# point, so we can use a bashism as a fallback. |
15703 |
if test "x$ac_cr" = x; then |
15704 |
eval ac_cr=\$\'\\r\' |
15705 |
fi |
15706 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
15707 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
15708 |
ac_cs_awk_cr='\\r' |
15709 |
else |
15710 |
ac_cs_awk_cr=$ac_cr |
15711 |
fi |
15712 |
|
15713 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
15714 |
_ACEOF |
15715 |
|
15716 |
|
15717 |
{ |
15718 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
15719 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
15720 |
echo "_ACEOF" |
15721 |
} >conf$$subs.sh || |
15722 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15723 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
15724 |
ac_delim='%!_!# ' |
15725 |
for ac_last_try in false false false false false :; do |
15726 |
. ./conf$$subs.sh || |
15727 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15728 |
|
15729 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
15730 |
if test $ac_delim_n = $ac_delim_num; then |
15731 |
break |
15732 |
elif $ac_last_try; then |
15733 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15734 |
else |
15735 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15736 |
fi |
15737 |
done |
15738 |
rm -f conf$$subs.sh |
15739 |
|
15740 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15741 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
15742 |
_ACEOF |
15743 |
sed -n ' |
15744 |
h |
15745 |
s/^/S["/; s/!.*/"]=/ |
15746 |
p |
15747 |
g |
15748 |
s/^[^!]*!// |
15749 |
:repl |
15750 |
t repl |
15751 |
s/'"$ac_delim"'$// |
15752 |
t delim |
15753 |
:nl |
15754 |
h |
15755 |
s/\(.\{148\}\)..*/\1/ |
15756 |
t more1 |
15757 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
15758 |
p |
15759 |
n |
15760 |
b repl |
15761 |
:more1 |
15762 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15763 |
p |
15764 |
g |
15765 |
s/.\{148\}// |
15766 |
t nl |
15767 |
:delim |
15768 |
h |
15769 |
s/\(.\{148\}\)..*/\1/ |
15770 |
t more2 |
15771 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
15772 |
p |
15773 |
b |
15774 |
:more2 |
15775 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15776 |
p |
15777 |
g |
15778 |
s/.\{148\}// |
15779 |
t delim |
15780 |
' <conf$$subs.awk | sed ' |
15781 |
/^[^""]/{ |
15782 |
N |
15783 |
s/\n// |
15784 |
} |
15785 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
15786 |
rm -f conf$$subs.awk |
15787 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15788 |
_ACAWK |
15789 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
15790 |
for (key in S) S_is_set[key] = 1 |
15791 |
FS = "" |
15792 |
|
15793 |
} |
15794 |
{ |
15795 |
line = $ 0 |
15796 |
nfields = split(line, field, "@") |
15797 |
substed = 0 |
15798 |
len = length(field[1]) |
15799 |
for (i = 2; i < nfields; i++) { |
15800 |
key = field[i] |
15801 |
keylen = length(key) |
15802 |
if (S_is_set[key]) { |
15803 |
value = S[key] |
15804 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
15805 |
len += length(value) + length(field[++i]) |
15806 |
substed = 1 |
15807 |
} else |
15808 |
len += 1 + keylen |
15809 |
} |
15810 |
|
15811 |
print line |
15812 |
} |
15813 |
|
15814 |
_ACAWK |
15815 |
_ACEOF |
15816 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15817 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
15818 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
15819 |
else |
15820 |
cat |
15821 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15822 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
15823 |
_ACEOF |
15824 |
|
15825 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15826 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
15827 |
# trailing colons and then remove the whole line if VPATH becomes empty |
15828 |
# (actually we leave an empty line to preserve line numbers). |
15829 |
if test "x$srcdir" = x.; then |
15830 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15831 |
h |
15832 |
s/// |
15833 |
s/^/:/ |
15834 |
s/[ ]*$/:/ |
15835 |
s/:\$(srcdir):/:/g |
15836 |
s/:\${srcdir}:/:/g |
15837 |
s/:@srcdir@:/:/g |
15838 |
s/^:*// |
15839 |
s/:*$// |
15840 |
x |
15841 |
s/\(=[ ]*\).*/\1/ |
15842 |
G |
15843 |
s/\n// |
15844 |
s/^[^=]*=[ ]*$// |
15845 |
}' |
15846 |
fi |
15847 |
|
15848 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15849 |
fi # test -n "$CONFIG_FILES" |
15850 |
|
15851 |
# Set up the scripts for CONFIG_HEADERS section. |
15852 |
# No need to generate them if there are no CONFIG_HEADERS. |
15853 |
# This happens for instance with `./config.status Makefile'. |
15854 |
if test -n "$CONFIG_HEADERS"; then |
15855 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
15856 |
BEGIN { |
15857 |
_ACEOF |
15858 |
|
15859 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
15860 |
# here-document in config.status, that substitutes the proper values into |
15861 |
# config.h.in to produce config.h. |
15862 |
|
15863 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
15864 |
# handling of long lines. |
15865 |
ac_delim='%!_!# ' |
15866 |
for ac_last_try in false false :; do |
15867 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15868 |
if test -z "$ac_tt"; then |
15869 |
break |
15870 |
elif $ac_last_try; then |
15871 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
15872 |
else |
15873 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15874 |
fi |
15875 |
done |
15876 |
|
15877 |
# For the awk script, D is an array of macro values keyed by name, |
15878 |
# likewise P contains macro parameters if any. Preserve backslash |
15879 |
# newline sequences. |
15880 |
|
15881 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
15882 |
sed -n ' |
15883 |
s/.\{148\}/&'"$ac_delim"'/g |
15884 |
t rset |
15885 |
:rset |
15886 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
15887 |
t def |
15888 |
d |
15889 |
:def |
15890 |
s/\\$// |
15891 |
t bsnl |
15892 |
s/["\\]/\\&/g |
15893 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15894 |
D["\1"]=" \3"/p |
15895 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
15896 |
d |
15897 |
:bsnl |
15898 |
s/["\\]/\\&/g |
15899 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15900 |
D["\1"]=" \3\\\\\\n"\\/p |
15901 |
t cont |
15902 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
15903 |
t cont |
15904 |
d |
15905 |
:cont |
15906 |
n |
15907 |
s/.\{148\}/&'"$ac_delim"'/g |
15908 |
t clear |
15909 |
:clear |
15910 |
s/\\$// |
15911 |
t bsnlc |
15912 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
15913 |
d |
15914 |
:bsnlc |
15915 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
15916 |
b cont |
15917 |
' <confdefs.h | sed ' |
15918 |
s/'"$ac_delim"'/"\\\ |
15919 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
15920 |
|
15921 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15922 |
for (key in D) D_is_set[key] = 1 |
15923 |
FS = "" |
15924 |
} |
15925 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
15926 |
line = \$ 0 |
15927 |
split(line, arg, " ") |
15928 |
if (arg[1] == "#") { |
15929 |
defundef = arg[2] |
15930 |
mac1 = arg[3] |
15931 |
} else { |
15932 |
defundef = substr(arg[1], 2) |
15933 |
mac1 = arg[2] |
15934 |
} |
15935 |
split(mac1, mac2, "(") #) |
15936 |
macro = mac2[1] |
15937 |
prefix = substr(line, 1, index(line, defundef) - 1) |
15938 |
if (D_is_set[macro]) { |
15939 |
# Preserve the white space surrounding the "#". |
15940 |
print prefix "define", macro P[macro] D[macro] |
15941 |
next |
15942 |
} else { |
15943 |
# Replace #undef with comments. This is necessary, for example, |
15944 |
# in the case of _POSIX_SOURCE, which is predefined and required |
15945 |
# on some systems where configure will not decide to define it. |
15946 |
if (defundef == "undef") { |
15947 |
print "/*", prefix defundef, macro, "*/" |
15948 |
next |
15949 |
} |
15950 |
} |
15951 |
} |
15952 |
{ print } |
15953 |
_ACAWK |
15954 |
_ACEOF |
15955 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15956 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
15957 |
fi # test -n "$CONFIG_HEADERS" |
15958 |
|
15959 |
|
15960 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
15961 |
shift |
15962 |
for ac_tag |
15963 |
do |
15964 |
case $ac_tag in |
15965 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
15966 |
esac |
15967 |
case $ac_mode$ac_tag in |
15968 |
:[FHL]*:*);; |
15969 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
15970 |
:[FH]-) ac_tag=-:-;; |
15971 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
15972 |
esac |
15973 |
ac_save_IFS=$IFS |
15974 |
IFS=: |
15975 |
set x $ac_tag |
15976 |
IFS=$ac_save_IFS |
15977 |
shift |
15978 |
ac_file=$1 |
15979 |
shift |
15980 |
|
15981 |
case $ac_mode in |
15982 |
:L) ac_source=$1;; |
15983 |
:[FH]) |
15984 |
ac_file_inputs= |
15985 |
for ac_f |
15986 |
do |
15987 |
case $ac_f in |
15988 |
-) ac_f="$ac_tmp/stdin";; |
15989 |
*) # Look for the file first in the build tree, then in the source tree |
15990 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
15991 |
# because $ac_f cannot contain `:'. |
15992 |
test -f "$ac_f" || |
15993 |
case $ac_f in |
15994 |
[\\/$]*) false;; |
15995 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
15996 |
esac || |
15997 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
15998 |
esac |
15999 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16000 |
as_fn_append ac_file_inputs " '$ac_f'" |
16001 |
done |
16002 |
|
16003 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
16004 |
# use $as_me), people would be surprised to read: |
16005 |
# /* config.h. Generated by config.status. */ |
16006 |
configure_input='Generated from '` |
16007 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
16008 |
`' by configure.' |
16009 |
if test x"$ac_file" != x-; then |
16010 |
configure_input="$ac_file. $configure_input" |
16011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
16012 |
$as_echo "$as_me: creating $ac_file" >&6;} |
16013 |
fi |
16014 |
# Neutralize special characters interpreted by sed in replacement strings. |
16015 |
case $configure_input in #( |
16016 |
*\&* | *\|* | *\\* ) |
16017 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
16018 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
16019 |
*) ac_sed_conf_input=$configure_input;; |
16020 |
esac |
16021 |
|
16022 |
case $ac_tag in |
16023 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16024 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
16025 |
esac |
16026 |
;; |
16027 |
esac |
16028 |
|
16029 |
ac_dir=`$as_dirname -- "$ac_file" || |
16030 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16031 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
16032 |
X"$ac_file" : 'X\(//\)$' \| \ |
16033 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16034 |
$as_echo X"$ac_file" | |
16035 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16036 |
s//\1/ |
16037 |
q |
16038 |
} |
16039 |
/^X\(\/\/\)[^/].*/{ |
16040 |
s//\1/ |
16041 |
q |
16042 |
} |
16043 |
/^X\(\/\/\)$/{ |
16044 |
s//\1/ |
16045 |
q |
16046 |
} |
16047 |
/^X\(\/\).*/{ |
16048 |
s//\1/ |
16049 |
q |
16050 |
} |
16051 |
s/.*/./; q'` |
16052 |
as_dir="$ac_dir"; as_fn_mkdir_p |
16053 |
ac_builddir=. |
16054 |
|
16055 |
case "$ac_dir" in |
16056 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
16057 |
*) |
16058 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
16059 |
# A ".." for each directory in $ac_dir_suffix. |
16060 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
16061 |
case $ac_top_builddir_sub in |
16062 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
16063 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
16064 |
esac ;; |
16065 |
esac |
16066 |
ac_abs_top_builddir=$ac_pwd |
16067 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
16068 |
# for backward compatibility: |
16069 |
ac_top_builddir=$ac_top_build_prefix |
16070 |
|
16071 |
case $srcdir in |
16072 |
.) # We are building in place. |
16073 |
ac_srcdir=. |
16074 |
ac_top_srcdir=$ac_top_builddir_sub |
16075 |
ac_abs_top_srcdir=$ac_pwd ;; |
16076 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
16077 |
ac_srcdir=$srcdir$ac_dir_suffix; |
16078 |
ac_top_srcdir=$srcdir |
16079 |
ac_abs_top_srcdir=$srcdir ;; |
16080 |
*) # Relative name. |
16081 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
16082 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
16083 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
16084 |
esac |
16085 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
16086 |
|
16087 |
|
16088 |
case $ac_mode in |
16089 |
:F) |
16090 |
# |
16091 |
# CONFIG_FILE |
16092 |
# |
16093 |
|
16094 |
case $INSTALL in |
16095 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
16096 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
16097 |
esac |
16098 |
ac_MKDIR_P=$MKDIR_P |
16099 |
case $MKDIR_P in |
16100 |
[\\/$]* | ?:[\\/]* ) ;; |
16101 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
16102 |
esac |
16103 |
_ACEOF |
16104 |
|
16105 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16106 |
# If the template does not know about datarootdir, expand it. |
16107 |
# FIXME: This hack should be removed a few years after 2.60. |
16108 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
16109 |
ac_sed_dataroot=' |
16110 |
/datarootdir/ { |
16111 |
p |
16112 |
q |
16113 |
} |
16114 |
/@datadir@/p |
16115 |
/@docdir@/p |
16116 |
/@infodir@/p |
16117 |
/@localedir@/p |
16118 |
/@mandir@/p' |
16119 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
16120 |
*datarootdir*) ac_datarootdir_seen=yes;; |
16121 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
16122 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16123 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
16124 |
_ACEOF |
16125 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16126 |
ac_datarootdir_hack=' |
16127 |
s&@datadir@&$datadir&g |
16128 |
s&@docdir@&$docdir&g |
16129 |
s&@infodir@&$infodir&g |
16130 |
s&@localedir@&$localedir&g |
16131 |
s&@mandir@&$mandir&g |
16132 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
16133 |
esac |
16134 |
_ACEOF |
16135 |
|
16136 |
# Neutralize VPATH when `$srcdir' = `.'. |
16137 |
# Shell code in configure.ac might set extrasub. |
16138 |
# FIXME: do we really want to maintain this feature? |
16139 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16140 |
ac_sed_extra="$ac_vpsub |
16141 |
$extrasub |
16142 |
_ACEOF |
16143 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16144 |
:t |
16145 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
16146 |
s|@configure_input@|$ac_sed_conf_input|;t t |
16147 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
16148 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
16149 |
s&@srcdir@&$ac_srcdir&;t t |
16150 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
16151 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
16152 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
16153 |
s&@builddir@&$ac_builddir&;t t |
16154 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
16155 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
16156 |
s&@INSTALL@&$ac_INSTALL&;t t |
16157 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
16158 |
$ac_datarootdir_hack |
16159 |
" |
16160 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16161 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16162 |
|
16163 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
16164 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16165 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
16166 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
16167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
16168 |
which seems to be undefined. Please make sure it is defined" >&5 |
16169 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
16170 |
which seems to be undefined. Please make sure it is defined" >&2;} |
16171 |
|
16172 |
rm -f "$ac_tmp/stdin" |
16173 |
case $ac_file in |
16174 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16175 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
16176 |
esac \ |
16177 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16178 |
;; |
16179 |
:H) |
16180 |
# |
16181 |
# CONFIG_HEADER |
16182 |
# |
16183 |
if test x"$ac_file" != x-; then |
16184 |
{ |
16185 |
$as_echo "/* $configure_input */" \ |
16186 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16187 |
} >"$ac_tmp/config.h" \ |
16188 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16189 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
16190 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16191 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
16192 |
else |
16193 |
rm -f "$ac_file" |
16194 |
mv "$ac_tmp/config.h" "$ac_file" \ |
16195 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16196 |
fi |
16197 |
else |
16198 |
$as_echo "/* $configure_input */" \ |
16199 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16200 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
16201 |
fi |
16202 |
# Compute "$ac_file"'s index in $config_headers. |
16203 |
_am_arg="$ac_file" |
16204 |
_am_stamp_count=1 |
16205 |
for _am_header in $config_headers :; do |
16206 |
case $_am_header in |
16207 |
$_am_arg | $_am_arg:* ) |
16208 |
break ;; |
16209 |
* ) |
16210 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
16211 |
esac |
16212 |
done |
16213 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
16214 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16215 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
16216 |
X"$_am_arg" : 'X\(//\)$' \| \ |
16217 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
16218 |
$as_echo X"$_am_arg" | |
16219 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16220 |
s//\1/ |
16221 |
q |
16222 |
} |
16223 |
/^X\(\/\/\)[^/].*/{ |
16224 |
s//\1/ |
16225 |
q |
16226 |
} |
16227 |
/^X\(\/\/\)$/{ |
16228 |
s//\1/ |
16229 |
q |
16230 |
} |
16231 |
/^X\(\/\).*/{ |
16232 |
s//\1/ |
16233 |
q |
16234 |
} |
16235 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
16236 |
;; |
16237 |
|
16238 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16239 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
16240 |
;; |
16241 |
esac |
16242 |
|
16243 |
|
16244 |
case $ac_file$ac_mode in |
16245 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
16246 |
# Older Autoconf quotes --file arguments for eval, but not when files |
16247 |
# are listed without --file. Let's play safe and only enable the eval |
16248 |
# if we detect the quoting. |
16249 |
case $CONFIG_FILES in |
16250 |
*\'*) eval set x "$CONFIG_FILES" ;; |
16251 |
*) set x $CONFIG_FILES ;; |
16252 |
esac |
16253 |
shift |
16254 |
for mf |
16255 |
do |
16256 |
# Strip MF so we end up with the name of the file. |
16257 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
16258 |
# Check whether this is an Automake generated Makefile or not. |
16259 |
# We used to match only the files named 'Makefile.in', but |
16260 |
# some people rename them; so instead we look at the file content. |
16261 |
# Grep'ing the first line is not enough: some people post-process |
16262 |
# each Makefile.in and add a new line on top of each file to say so. |
16263 |
# Grep'ing the whole file is not good either: AIX grep has a line |
16264 |
# limit of 2048, but all sed's we know have understand at least 4000. |
16265 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
16266 |
dirpart=`$as_dirname -- "$mf" || |
16267 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16268 |
X"$mf" : 'X\(//\)[^/]' \| \ |
16269 |
X"$mf" : 'X\(//\)$' \| \ |
16270 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
16271 |
$as_echo X"$mf" | |
16272 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16273 |
s//\1/ |
16274 |
q |
16275 |
} |
16276 |
/^X\(\/\/\)[^/].*/{ |
16277 |
s//\1/ |
16278 |
q |
16279 |
} |
16280 |
/^X\(\/\/\)$/{ |
16281 |
s//\1/ |
16282 |
q |
16283 |
} |
16284 |
/^X\(\/\).*/{ |
16285 |
s//\1/ |
16286 |
q |
16287 |
} |
16288 |
s/.*/./; q'` |
16289 |
else |
16290 |
continue |
16291 |
fi |
16292 |
# Extract the definition of DEPDIR, am__include, and am__quote |
16293 |
# from the Makefile without running 'make'. |
16294 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
16295 |
test -z "$DEPDIR" && continue |
16296 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
16297 |
test -z "$am__include" && continue |
16298 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
16299 |
# Find all dependency output files, they are included files with |
16300 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
16301 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
16302 |
# expansion. |
16303 |
for file in `sed -n " |
16304 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
16305 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
16306 |
# Make sure the directory exists. |
16307 |
test -f "$dirpart/$file" && continue |
16308 |
fdir=`$as_dirname -- "$file" || |
16309 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16310 |
X"$file" : 'X\(//\)[^/]' \| \ |
16311 |
X"$file" : 'X\(//\)$' \| \ |
16312 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
16313 |
$as_echo X"$file" | |
16314 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16315 |
s//\1/ |
16316 |
q |
16317 |
} |
16318 |
/^X\(\/\/\)[^/].*/{ |
16319 |
s//\1/ |
16320 |
q |
16321 |
} |
16322 |
/^X\(\/\/\)$/{ |
16323 |
s//\1/ |
16324 |
q |
16325 |
} |
16326 |
/^X\(\/\).*/{ |
16327 |
s//\1/ |
16328 |
q |
16329 |
} |
16330 |
s/.*/./; q'` |
16331 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
16332 |
# echo "creating $dirpart/$file" |
16333 |
echo '# dummy' > "$dirpart/$file" |
16334 |
done |
16335 |
done |
16336 |
} |
16337 |
;; |
16338 |
"libtool":C) |
16339 |
|
16340 |
# See if we are running on zsh, and set the options that allow our |
16341 |
# commands through without removal of \ escapes. |
16342 |
if test -n "${ZSH_VERSION+set}"; then |
16343 |
setopt NO_GLOB_SUBST |
16344 |
fi |
16345 |
|
16346 |
cfgfile=${ofile}T |
16347 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
16348 |
$RM "$cfgfile" |
16349 |
|
16350 |
cat <<_LT_EOF >> "$cfgfile" |
16351 |
#! $SHELL |
16352 |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
16353 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16354 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
16355 |
|
16356 |
# Provide generalized library-building support services. |
16357 |
# Written by Gordon Matzigkeit, 1996 |
16358 |
|
16359 |
# Copyright (C) 2014 Free Software Foundation, Inc. |
16360 |
# This is free software; see the source for copying conditions. There is NO |
16361 |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16362 |
|
16363 |
# GNU Libtool is free software; you can redistribute it and/or modify |
16364 |
# it under the terms of the GNU General Public License as published by |
16365 |
# the Free Software Foundation; either version 2 of of the License, or |
16366 |
# (at your option) any later version. |
16367 |
# |
16368 |
# As a special exception to the GNU General Public License, if you |
16369 |
# distribute this file as part of a program or library that is built |
16370 |
# using GNU Libtool, you may include this file under the same |
16371 |
# distribution terms that you use for the rest of that program. |
16372 |
# |
16373 |
# GNU Libtool is distributed in the hope that it will be useful, but |
16374 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
16375 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16376 |
# GNU General Public License for more details. |
16377 |
# |
16378 |
# You should have received a copy of the GNU General Public License |
16379 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
16380 |
|
16381 |
|
16382 |
# The names of the tagged configurations supported by this script. |
16383 |
available_tags='' |
16384 |
|
16385 |
# Configured defaults for sys_lib_dlsearch_path munging. |
16386 |
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
16387 |
|
16388 |
# ### BEGIN LIBTOOL CONFIG |
16389 |
|
16390 |
# Which release of libtool.m4 was used? |
16391 |
macro_version=$macro_version |
16392 |
macro_revision=$macro_revision |
16393 |
|
16394 |
# Whether or not to build shared libraries. |
16395 |
build_libtool_libs=$enable_shared |
16396 |
|
16397 |
# Whether or not to build static libraries. |
16398 |
build_old_libs=$enable_static |
16399 |
|
16400 |
# What type of objects to build. |
16401 |
pic_mode=$pic_mode |
16402 |
|
16403 |
# Whether or not to optimize for fast installation. |
16404 |
fast_install=$enable_fast_install |
16405 |
|
16406 |
# Shared archive member basename,for filename based shared library versioning on AIX. |
16407 |
shared_archive_member_spec=$shared_archive_member_spec |
16408 |
|
16409 |
# Shell to use when invoking shell scripts. |
16410 |
SHELL=$lt_SHELL |
16411 |
|
16412 |
# An echo program that protects backslashes. |
16413 |
ECHO=$lt_ECHO |
16414 |
|
16415 |
# The PATH separator for the build system. |
16416 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
16417 |
|
16418 |
# The host system. |
16419 |
host_alias=$host_alias |
16420 |
host=$host |
16421 |
host_os=$host_os |
16422 |
|
16423 |
# The build system. |
16424 |
build_alias=$build_alias |
16425 |
build=$build |
16426 |
build_os=$build_os |
16427 |
|
16428 |
# A sed program that does not truncate output. |
16429 |
SED=$lt_SED |
16430 |
|
16431 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
16432 |
Xsed="\$SED -e 1s/^X//" |
16433 |
|
16434 |
# A grep program that handles long lines. |
16435 |
GREP=$lt_GREP |
16436 |
|
16437 |
# An ERE matcher. |
16438 |
EGREP=$lt_EGREP |
16439 |
|
16440 |
# A literal string matcher. |
16441 |
FGREP=$lt_FGREP |
16442 |
|
16443 |
# A BSD- or MS-compatible name lister. |
16444 |
NM=$lt_NM |
16445 |
|
16446 |
# Whether we need soft or hard links. |
16447 |
LN_S=$lt_LN_S |
16448 |
|
16449 |
# What is the maximum length of a command? |
16450 |
max_cmd_len=$max_cmd_len |
16451 |
|
16452 |
# Object file suffix (normally "o"). |
16453 |
objext=$ac_objext |
16454 |
|
16455 |
# Executable file suffix (normally ""). |
16456 |
exeext=$exeext |
16457 |
|
16458 |
# whether the shell understands "unset". |
16459 |
lt_unset=$lt_unset |
16460 |
|
16461 |
# turn spaces into newlines. |
16462 |
SP2NL=$lt_lt_SP2NL |
16463 |
|
16464 |
# turn newlines into spaces. |
16465 |
NL2SP=$lt_lt_NL2SP |
16466 |
|
16467 |
# convert \$build file names to \$host format. |
16468 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
16469 |
|
16470 |
# convert \$build files to toolchain format. |
16471 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
16472 |
|
16473 |
# An object symbol dumper. |
16474 |
OBJDUMP=$lt_OBJDUMP |
16475 |
|
16476 |
# Method to check whether dependent libraries are shared objects. |
16477 |
deplibs_check_method=$lt_deplibs_check_method |
16478 |
|
16479 |
# Command to use when deplibs_check_method = "file_magic". |
16480 |
file_magic_cmd=$lt_file_magic_cmd |
16481 |
|
16482 |
# How to find potential files when deplibs_check_method = "file_magic". |
16483 |
file_magic_glob=$lt_file_magic_glob |
16484 |
|
16485 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
16486 |
want_nocaseglob=$lt_want_nocaseglob |
16487 |
|
16488 |
# DLL creation program. |
16489 |
DLLTOOL=$lt_DLLTOOL |
16490 |
|
16491 |
# Command to associate shared and link libraries. |
16492 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
16493 |
|
16494 |
# The archiver. |
16495 |
AR=$lt_AR |
16496 |
|
16497 |
# Flags to create an archive. |
16498 |
AR_FLAGS=$lt_AR_FLAGS |
16499 |
|
16500 |
# How to feed a file listing to the archiver. |
16501 |
archiver_list_spec=$lt_archiver_list_spec |
16502 |
|
16503 |
# A symbol stripping program. |
16504 |
STRIP=$lt_STRIP |
16505 |
|
16506 |
# Commands used to install an old-style archive. |
16507 |
RANLIB=$lt_RANLIB |
16508 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
16509 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16510 |
|
16511 |
# Whether to use a lock for old archive extraction. |
16512 |
lock_old_archive_extraction=$lock_old_archive_extraction |
16513 |
|
16514 |
# A C compiler. |
16515 |
LTCC=$lt_CC |
16516 |
|
16517 |
# LTCC compiler flags. |
16518 |
LTCFLAGS=$lt_CFLAGS |
16519 |
|
16520 |
# Take the output of nm and produce a listing of raw symbols and C names. |
16521 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16522 |
|
16523 |
# Transform the output of nm in a proper C declaration. |
16524 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16525 |
|
16526 |
# Transform the output of nm into a list of symbols to manually relocate. |
16527 |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
16528 |
|
16529 |
# Transform the output of nm in a C name address pair. |
16530 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16531 |
|
16532 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
16533 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
16534 |
|
16535 |
# The name lister interface. |
16536 |
nm_interface=$lt_lt_cv_nm_interface |
16537 |
|
16538 |
# Specify filename containing input files for \$NM. |
16539 |
nm_file_list_spec=$lt_nm_file_list_spec |
16540 |
|
16541 |
# The root where to search for dependent libraries,and where our libraries should be installed. |
16542 |
lt_sysroot=$lt_sysroot |
16543 |
|
16544 |
# Command to truncate a binary pipe. |
16545 |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
16546 |
|
16547 |
# The name of the directory that contains temporary libtool files. |
16548 |
objdir=$objdir |
16549 |
|
16550 |
# Used to examine libraries when file_magic_cmd begins with "file". |
16551 |
MAGIC_CMD=$MAGIC_CMD |
16552 |
|
16553 |
# Must we lock files when doing compilation? |
16554 |
need_locks=$lt_need_locks |
16555 |
|
16556 |
# Manifest tool. |
16557 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
16558 |
|
16559 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16560 |
DSYMUTIL=$lt_DSYMUTIL |
16561 |
|
16562 |
# Tool to change global to local symbols on Mac OS X. |
16563 |
NMEDIT=$lt_NMEDIT |
16564 |
|
16565 |
# Tool to manipulate fat objects and archives on Mac OS X. |
16566 |
LIPO=$lt_LIPO |
16567 |
|
16568 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
16569 |
OTOOL=$lt_OTOOL |
16570 |
|
16571 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
16572 |
OTOOL64=$lt_OTOOL64 |
16573 |
|
16574 |
# Old archive suffix (normally "a"). |
16575 |
libext=$libext |
16576 |
|
16577 |
# Shared library suffix (normally ".so"). |
16578 |
shrext_cmds=$lt_shrext_cmds |
16579 |
|
16580 |
# The commands to extract the exported symbol list from a shared archive. |
16581 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16582 |
|
16583 |
# Variables whose values should be saved in libtool wrapper scripts and |
16584 |
# restored at link time. |
16585 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
16586 |
|
16587 |
# Do we need the "lib" prefix for modules? |
16588 |
need_lib_prefix=$need_lib_prefix |
16589 |
|
16590 |
# Do we need a version for libraries? |
16591 |
need_version=$need_version |
16592 |
|
16593 |
# Library versioning type. |
16594 |
version_type=$version_type |
16595 |
|
16596 |
# Shared library runtime path variable. |
16597 |
runpath_var=$runpath_var |
16598 |
|
16599 |
# Shared library path variable. |
16600 |
shlibpath_var=$shlibpath_var |
16601 |
|
16602 |
# Is shlibpath searched before the hard-coded library search path? |
16603 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16604 |
|
16605 |
# Format of library name prefix. |
16606 |
libname_spec=$lt_libname_spec |
16607 |
|
16608 |
# List of archive names. First name is the real one, the rest are links. |
16609 |
# The last name is the one that the linker finds with -lNAME |
16610 |
library_names_spec=$lt_library_names_spec |
16611 |
|
16612 |
# The coded name of the library, if different from the real name. |
16613 |
soname_spec=$lt_soname_spec |
16614 |
|
16615 |
# Permission mode override for installation of shared libraries. |
16616 |
install_override_mode=$lt_install_override_mode |
16617 |
|
16618 |
# Command to use after installation of a shared archive. |
16619 |
postinstall_cmds=$lt_postinstall_cmds |
16620 |
|
16621 |
# Command to use after uninstallation of a shared archive. |
16622 |
postuninstall_cmds=$lt_postuninstall_cmds |
16623 |
|
16624 |
# Commands used to finish a libtool library installation in a directory. |
16625 |
finish_cmds=$lt_finish_cmds |
16626 |
|
16627 |
# As "finish_cmds", except a single script fragment to be evaled but |
16628 |
# not shown. |
16629 |
finish_eval=$lt_finish_eval |
16630 |
|
16631 |
# Whether we should hardcode library paths into libraries. |
16632 |
hardcode_into_libs=$hardcode_into_libs |
16633 |
|
16634 |
# Compile-time system search path for libraries. |
16635 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
16636 |
|
16637 |
# Detected run-time system search path for libraries. |
16638 |
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
16639 |
|
16640 |
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
16641 |
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
16642 |
|
16643 |
# Whether dlopen is supported. |
16644 |
dlopen_support=$enable_dlopen |
16645 |
|
16646 |
# Whether dlopen of programs is supported. |
16647 |
dlopen_self=$enable_dlopen_self |
16648 |
|
16649 |
# Whether dlopen of statically linked programs is supported. |
16650 |
dlopen_self_static=$enable_dlopen_self_static |
16651 |
|
16652 |
# Commands to strip libraries. |
16653 |
old_striplib=$lt_old_striplib |
16654 |
striplib=$lt_striplib |
16655 |
|
16656 |
|
16657 |
# The linker used to build libraries. |
16658 |
LD=$lt_LD |
16659 |
|
16660 |
# How to create reloadable object files. |
16661 |
reload_flag=$lt_reload_flag |
16662 |
reload_cmds=$lt_reload_cmds |
16663 |
|
16664 |
# Commands used to build an old-style archive. |
16665 |
old_archive_cmds=$lt_old_archive_cmds |
16666 |
|
16667 |
# A language specific compiler. |
16668 |
CC=$lt_compiler |
16669 |
|
16670 |
# Is the compiler the GNU compiler? |
16671 |
with_gcc=$GCC |
16672 |
|
16673 |
# Compiler flag to turn off builtin functions. |
16674 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
16675 |
|
16676 |
# Additional compiler flags for building library objects. |
16677 |
pic_flag=$lt_lt_prog_compiler_pic |
16678 |
|
16679 |
# How to pass a linker flag through the compiler. |
16680 |
wl=$lt_lt_prog_compiler_wl |
16681 |
|
16682 |
# Compiler flag to prevent dynamic linking. |
16683 |
link_static_flag=$lt_lt_prog_compiler_static |
16684 |
|
16685 |
# Does compiler simultaneously support -c and -o options? |
16686 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
16687 |
|
16688 |
# Whether or not to add -lc for building shared libraries. |
16689 |
build_libtool_need_lc=$archive_cmds_need_lc |
16690 |
|
16691 |
# Whether or not to disallow shared libs when runtime libs are static. |
16692 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
16693 |
|
16694 |
# Compiler flag to allow reflexive dlopens. |
16695 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
16696 |
|
16697 |
# Compiler flag to generate shared objects directly from archives. |
16698 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
16699 |
|
16700 |
# Whether the compiler copes with passing no objects directly. |
16701 |
compiler_needs_object=$lt_compiler_needs_object |
16702 |
|
16703 |
# Create an old-style archive from a shared archive. |
16704 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
16705 |
|
16706 |
# Create a temporary old-style archive to link instead of a shared archive. |
16707 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
16708 |
|
16709 |
# Commands used to build a shared archive. |
16710 |
archive_cmds=$lt_archive_cmds |
16711 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
16712 |
|
16713 |
# Commands used to build a loadable module if different from building |
16714 |
# a shared archive. |
16715 |
module_cmds=$lt_module_cmds |
16716 |
module_expsym_cmds=$lt_module_expsym_cmds |
16717 |
|
16718 |
# Whether we are building with GNU ld or not. |
16719 |
with_gnu_ld=$lt_with_gnu_ld |
16720 |
|
16721 |
# Flag that allows shared libraries with undefined symbols to be built. |
16722 |
allow_undefined_flag=$lt_allow_undefined_flag |
16723 |
|
16724 |
# Flag that enforces no undefined symbols. |
16725 |
no_undefined_flag=$lt_no_undefined_flag |
16726 |
|
16727 |
# Flag to hardcode \$libdir into a binary during linking. |
16728 |
# This must work even if \$libdir does not exist |
16729 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
16730 |
|
16731 |
# Whether we need a single "-rpath" flag with a separated argument. |
16732 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
16733 |
|
16734 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
16735 |
# DIR into the resulting binary. |
16736 |
hardcode_direct=$hardcode_direct |
16737 |
|
16738 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
16739 |
# DIR into the resulting binary and the resulting library dependency is |
16740 |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
16741 |
# library is relocated. |
16742 |
hardcode_direct_absolute=$hardcode_direct_absolute |
16743 |
|
16744 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
16745 |
# into the resulting binary. |
16746 |
hardcode_minus_L=$hardcode_minus_L |
16747 |
|
16748 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
16749 |
# into the resulting binary. |
16750 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
16751 |
|
16752 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
16753 |
# into the library and all subsequent libraries and executables linked |
16754 |
# against it. |
16755 |
hardcode_automatic=$hardcode_automatic |
16756 |
|
16757 |
# Set to yes if linker adds runtime paths of dependent libraries |
16758 |
# to runtime path list. |
16759 |
inherit_rpath=$inherit_rpath |
16760 |
|
16761 |
# Whether libtool must link a program against all its dependency libraries. |
16762 |
link_all_deplibs=$link_all_deplibs |
16763 |
|
16764 |
# Set to "yes" if exported symbols are required. |
16765 |
always_export_symbols=$always_export_symbols |
16766 |
|
16767 |
# The commands to list exported symbols. |
16768 |
export_symbols_cmds=$lt_export_symbols_cmds |
16769 |
|
16770 |
# Symbols that should not be listed in the preloaded symbols. |
16771 |
exclude_expsyms=$lt_exclude_expsyms |
16772 |
|
16773 |
# Symbols that must always be exported. |
16774 |
include_expsyms=$lt_include_expsyms |
16775 |
|
16776 |
# Commands necessary for linking programs (against libraries) with templates. |
16777 |
prelink_cmds=$lt_prelink_cmds |
16778 |
|
16779 |
# Commands necessary for finishing linking programs. |
16780 |
postlink_cmds=$lt_postlink_cmds |
16781 |
|
16782 |
# Specify filename containing input files. |
16783 |
file_list_spec=$lt_file_list_spec |
16784 |
|
16785 |
# How to hardcode a shared library path into an executable. |
16786 |
hardcode_action=$hardcode_action |
16787 |
|
16788 |
# ### END LIBTOOL CONFIG |
16789 |
|
16790 |
_LT_EOF |
16791 |
|
16792 |
cat <<'_LT_EOF' >> "$cfgfile" |
16793 |
|
16794 |
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
16795 |
|
16796 |
# func_munge_path_list VARIABLE PATH |
16797 |
# ----------------------------------- |
16798 |
# VARIABLE is name of variable containing _space_ separated list of |
16799 |
# directories to be munged by the contents of PATH, which is string |
16800 |
# having a format: |
16801 |
# "DIR[:DIR]:" |
16802 |
# string "DIR[ DIR]" will be prepended to VARIABLE |
16803 |
# ":DIR[:DIR]" |
16804 |
# string "DIR[ DIR]" will be appended to VARIABLE |
16805 |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
16806 |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
16807 |
# "DIRA[ DIRA]" will be appended to VARIABLE |
16808 |
# "DIR[:DIR]" |
16809 |
# VARIABLE will be replaced by "DIR[ DIR]" |
16810 |
func_munge_path_list () |
16811 |
{ |
16812 |
case x$2 in |
16813 |
x) |
16814 |
;; |
16815 |
*:) |
16816 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
16817 |
;; |
16818 |
x:*) |
16819 |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
16820 |
;; |
16821 |
*::*) |
16822 |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
16823 |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
16824 |
;; |
16825 |
*) |
16826 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
16827 |
;; |
16828 |
esac |
16829 |
} |
16830 |
|
16831 |
|
16832 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
16833 |
func_cc_basename () |
16834 |
{ |
16835 |
for cc_temp in $*""; do |
16836 |
case $cc_temp in |
16837 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16838 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16839 |
\-*) ;; |
16840 |
*) break;; |
16841 |
esac |
16842 |
done |
16843 |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
16844 |
} |
16845 |
|
16846 |
|
16847 |
# ### END FUNCTIONS SHARED WITH CONFIGURE |
16848 |
|
16849 |
_LT_EOF |
16850 |
|
16851 |
case $host_os in |
16852 |
aix3*) |
16853 |
cat <<\_LT_EOF >> "$cfgfile" |
16854 |
# AIX sometimes has problems with the GCC collect2 program. For some |
16855 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
16856 |
# vanish in a puff of smoke. |
16857 |
if test set != "${COLLECT_NAMES+set}"; then |
16858 |
COLLECT_NAMES= |
16859 |
export COLLECT_NAMES |
16860 |
fi |
16861 |
_LT_EOF |
16862 |
;; |
16863 |
esac |
16864 |
|
16865 |
|
16866 |
ltmain=$ac_aux_dir/ltmain.sh |
16867 |
|
16868 |
|
16869 |
# We use sed instead of cat because bash on DJGPP gets confused if |
16870 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
16871 |
# text mode, it properly converts lines to CR/LF. This bash problem |
16872 |
# is reportedly fixed, but why not run on old versions too? |
16873 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
16874 |
|| (rm -f "$cfgfile"; exit 1) |
16875 |
|
16876 |
mv -f "$cfgfile" "$ofile" || |
16877 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
16878 |
chmod +x "$ofile" |
16879 |
|
16880 |
;; |
16881 |
|
16882 |
esac |
16883 |
done # for ac_tag |
16884 |
|
16885 |
|
16886 |
as_fn_exit 0 |
16887 |
_ACEOF |
16888 |
ac_clean_files=$ac_clean_files_save |
16889 |
|
16890 |
test $ac_write_fail = 0 || |
16891 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
16892 |
|
16893 |
|
16894 |
# configure is writing to config.log, and then calls config.status. |
16895 |
# config.status does its own redirection, appending to config.log. |
16896 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
16897 |
# by configure, so config.status won't be able to write to it; its |
16898 |
# output is simply discarded. So we exec the FD to /dev/null, |
16899 |
# effectively closing config.log, so it can be properly (re)opened and |
16900 |
# appended to by config.status. When coming back to configure, we |
16901 |
# need to make the FD available again. |
16902 |
if test "$no_create" != yes; then |
16903 |
ac_cs_success=: |
16904 |
ac_config_status_args= |
16905 |
test "$silent" = yes && |
16906 |
ac_config_status_args="$ac_config_status_args --quiet" |
16907 |
exec 5>/dev/null |
16908 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
16909 |
exec 5>>config.log |
16910 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
16911 |
# would make configure fail if this is the last instruction. |
16912 |
$ac_cs_success || as_fn_exit 1 |
16913 |
fi |
16914 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
16916 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
16917 |
fi |
16918 |
|
16919 |
|
16920 |
|
16921 |
echo "###############################################################################" |
16922 |
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile." |
16923 |
echo |
16924 |
echo "HOPM will be installed in ${prefix}. To change this, run:" |
16925 |
echo " ./configure --prefix=DIRECTORY" |
16926 |
echo "###############################################################################" |