1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.69 for hopm 1.0.0. |
4 |
# |
5 |
# Report bugs to <bugs@ircd-hybrid.org>. |
6 |
# |
7 |
# |
8 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
9 |
# |
10 |
# |
11 |
# This configure script is free software; the Free Software Foundation |
12 |
# gives unlimited permission to copy, distribute and modify it. |
13 |
## -------------------- ## |
14 |
## M4sh Initialization. ## |
15 |
## -------------------- ## |
16 |
|
17 |
# Be more Bourne compatible |
18 |
DUALCASE=1; export DUALCASE # for MKS sh |
19 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
20 |
emulate sh |
21 |
NULLCMD=: |
22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
23 |
# is contrary to our usage. Disable this feature. |
24 |
alias -g '${1+"$@"}'='"$@"' |
25 |
setopt NO_GLOB_SUBST |
26 |
else |
27 |
case `(set -o) 2>/dev/null` in #( |
28 |
*posix*) : |
29 |
set -o posix ;; #( |
30 |
*) : |
31 |
;; |
32 |
esac |
33 |
fi |
34 |
|
35 |
|
36 |
as_nl=' |
37 |
' |
38 |
export as_nl |
39 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
40 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
41 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
43 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
44 |
# but without wasting forks for bash or zsh. |
45 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
46 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
47 |
as_echo='print -r --' |
48 |
as_echo_n='print -rn --' |
49 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
50 |
as_echo='printf %s\n' |
51 |
as_echo_n='printf %s' |
52 |
else |
53 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
54 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
55 |
as_echo_n='/usr/ucb/echo -n' |
56 |
else |
57 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 |
as_echo_n_body='eval |
59 |
arg=$1; |
60 |
case $arg in #( |
61 |
*"$as_nl"*) |
62 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
63 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
64 |
esac; |
65 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
66 |
' |
67 |
export as_echo_n_body |
68 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
69 |
fi |
70 |
export as_echo_body |
71 |
as_echo='sh -c $as_echo_body as_echo' |
72 |
fi |
73 |
|
74 |
# The user is always right. |
75 |
if test "${PATH_SEPARATOR+set}" != set; then |
76 |
PATH_SEPARATOR=: |
77 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
78 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
79 |
PATH_SEPARATOR=';' |
80 |
} |
81 |
fi |
82 |
|
83 |
|
84 |
# IFS |
85 |
# We need space, tab and new line, in precisely that order. Quoting is |
86 |
# there to prevent editors from complaining about space-tab. |
87 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
88 |
# splitting by setting IFS to empty value.) |
89 |
IFS=" "" $as_nl" |
90 |
|
91 |
# Find who we are. Look in the path if we contain no directory separator. |
92 |
as_myself= |
93 |
case $0 in #(( |
94 |
*[\\/]* ) as_myself=$0 ;; |
95 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
96 |
for as_dir in $PATH |
97 |
do |
98 |
IFS=$as_save_IFS |
99 |
test -z "$as_dir" && as_dir=. |
100 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 |
done |
102 |
IFS=$as_save_IFS |
103 |
|
104 |
;; |
105 |
esac |
106 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
107 |
# in which case we are not to be found in the path. |
108 |
if test "x$as_myself" = x; then |
109 |
as_myself=$0 |
110 |
fi |
111 |
if test ! -f "$as_myself"; then |
112 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 |
exit 1 |
114 |
fi |
115 |
|
116 |
# Unset variables that we do not need and which cause bugs (e.g. in |
117 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
118 |
# suppresses any "Segmentation fault" message there. '((' could |
119 |
# trigger a bug in pdksh 5.2.14. |
120 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
121 |
do eval test x\${$as_var+set} = xset \ |
122 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
123 |
done |
124 |
PS1='$ ' |
125 |
PS2='> ' |
126 |
PS4='+ ' |
127 |
|
128 |
# NLS nuisances. |
129 |
LC_ALL=C |
130 |
export LC_ALL |
131 |
LANGUAGE=C |
132 |
export LANGUAGE |
133 |
|
134 |
# CDPATH. |
135 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
136 |
|
137 |
# Use a proper internal environment variable to ensure we don't fall |
138 |
# into an infinite loop, continuously re-executing ourselves. |
139 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
140 |
_as_can_reexec=no; export _as_can_reexec; |
141 |
# We cannot yet assume a decent shell, so we have to provide a |
142 |
# neutralization value for shells without unset; and this also |
143 |
# works around shells that cannot unset nonexistent variables. |
144 |
# Preserve -v and -x to the replacement shell. |
145 |
BASH_ENV=/dev/null |
146 |
ENV=/dev/null |
147 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
148 |
case $- in # (((( |
149 |
*v*x* | *x*v* ) as_opts=-vx ;; |
150 |
*v* ) as_opts=-v ;; |
151 |
*x* ) as_opts=-x ;; |
152 |
* ) as_opts= ;; |
153 |
esac |
154 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
155 |
# Admittedly, this is quite paranoid, since all the known shells bail |
156 |
# out after a failed `exec'. |
157 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
158 |
as_fn_exit 255 |
159 |
fi |
160 |
# We don't want this to propagate to other subprocesses. |
161 |
{ _as_can_reexec=; unset _as_can_reexec;} |
162 |
if test "x$CONFIG_SHELL" = x; then |
163 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
164 |
emulate sh |
165 |
NULLCMD=: |
166 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
167 |
# is contrary to our usage. Disable this feature. |
168 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
169 |
setopt NO_GLOB_SUBST |
170 |
else |
171 |
case \`(set -o) 2>/dev/null\` in #( |
172 |
*posix*) : |
173 |
set -o posix ;; #( |
174 |
*) : |
175 |
;; |
176 |
esac |
177 |
fi |
178 |
" |
179 |
as_required="as_fn_return () { (exit \$1); } |
180 |
as_fn_success () { as_fn_return 0; } |
181 |
as_fn_failure () { as_fn_return 1; } |
182 |
as_fn_ret_success () { return 0; } |
183 |
as_fn_ret_failure () { return 1; } |
184 |
|
185 |
exitcode=0 |
186 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
187 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
188 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
189 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
190 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
191 |
|
192 |
else |
193 |
exitcode=1; echo positional parameters were not saved. |
194 |
fi |
195 |
test x\$exitcode = x0 || exit 1 |
196 |
test -x / || exit 1" |
197 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
199 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
200 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
201 |
|
202 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
203 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
204 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
205 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
206 |
PATH=/empty FPATH=/empty; export PATH FPATH |
207 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
208 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
209 |
test \$(( 1 + 1 )) = 2 || exit 1" |
210 |
if (eval "$as_required") 2>/dev/null; then : |
211 |
as_have_required=yes |
212 |
else |
213 |
as_have_required=no |
214 |
fi |
215 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
216 |
|
217 |
else |
218 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 |
as_found=false |
220 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 |
do |
222 |
IFS=$as_save_IFS |
223 |
test -z "$as_dir" && as_dir=. |
224 |
as_found=: |
225 |
case $as_dir in #( |
226 |
/*) |
227 |
for as_base in sh bash ksh sh5; do |
228 |
# Try only shells that exist, to save several forks. |
229 |
as_shell=$as_dir/$as_base |
230 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
231 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
232 |
CONFIG_SHELL=$as_shell as_have_required=yes |
233 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
234 |
break 2 |
235 |
fi |
236 |
fi |
237 |
done;; |
238 |
esac |
239 |
as_found=false |
240 |
done |
241 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
242 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
243 |
CONFIG_SHELL=$SHELL as_have_required=yes |
244 |
fi; } |
245 |
IFS=$as_save_IFS |
246 |
|
247 |
|
248 |
if test "x$CONFIG_SHELL" != x; then : |
249 |
export CONFIG_SHELL |
250 |
# We cannot yet assume a decent shell, so we have to provide a |
251 |
# neutralization value for shells without unset; and this also |
252 |
# works around shells that cannot unset nonexistent variables. |
253 |
# Preserve -v and -x to the replacement shell. |
254 |
BASH_ENV=/dev/null |
255 |
ENV=/dev/null |
256 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
257 |
case $- in # (((( |
258 |
*v*x* | *x*v* ) as_opts=-vx ;; |
259 |
*v* ) as_opts=-v ;; |
260 |
*x* ) as_opts=-x ;; |
261 |
* ) as_opts= ;; |
262 |
esac |
263 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
264 |
# Admittedly, this is quite paranoid, since all the known shells bail |
265 |
# out after a failed `exec'. |
266 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
267 |
exit 255 |
268 |
fi |
269 |
|
270 |
if test x$as_have_required = xno; then : |
271 |
$as_echo "$0: This script requires a shell more modern than all" |
272 |
$as_echo "$0: the shells that I found on your system." |
273 |
if test x${ZSH_VERSION+set} = xset ; then |
274 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
275 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
276 |
else |
277 |
$as_echo "$0: Please tell bug-autoconf@gnu.org and |
278 |
$0: bugs@ircd-hybrid.org about your system, including any |
279 |
$0: error possibly output before this message. Then install |
280 |
$0: a modern shell, or manually run the script under such a |
281 |
$0: shell if you do have one." |
282 |
fi |
283 |
exit 1 |
284 |
fi |
285 |
fi |
286 |
fi |
287 |
SHELL=${CONFIG_SHELL-/bin/sh} |
288 |
export SHELL |
289 |
# Unset more variables known to interfere with behavior of common tools. |
290 |
CLICOLOR_FORCE= GREP_OPTIONS= |
291 |
unset CLICOLOR_FORCE GREP_OPTIONS |
292 |
|
293 |
## --------------------- ## |
294 |
## M4sh Shell Functions. ## |
295 |
## --------------------- ## |
296 |
# as_fn_unset VAR |
297 |
# --------------- |
298 |
# Portably unset VAR. |
299 |
as_fn_unset () |
300 |
{ |
301 |
{ eval $1=; unset $1;} |
302 |
} |
303 |
as_unset=as_fn_unset |
304 |
|
305 |
# as_fn_set_status STATUS |
306 |
# ----------------------- |
307 |
# Set $? to STATUS, without forking. |
308 |
as_fn_set_status () |
309 |
{ |
310 |
return $1 |
311 |
} # as_fn_set_status |
312 |
|
313 |
# as_fn_exit STATUS |
314 |
# ----------------- |
315 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
316 |
as_fn_exit () |
317 |
{ |
318 |
set +e |
319 |
as_fn_set_status $1 |
320 |
exit $1 |
321 |
} # as_fn_exit |
322 |
|
323 |
# as_fn_mkdir_p |
324 |
# ------------- |
325 |
# Create "$as_dir" as a directory, including parents if necessary. |
326 |
as_fn_mkdir_p () |
327 |
{ |
328 |
|
329 |
case $as_dir in #( |
330 |
-*) as_dir=./$as_dir;; |
331 |
esac |
332 |
test -d "$as_dir" || eval $as_mkdir_p || { |
333 |
as_dirs= |
334 |
while :; do |
335 |
case $as_dir in #( |
336 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
337 |
*) as_qdir=$as_dir;; |
338 |
esac |
339 |
as_dirs="'$as_qdir' $as_dirs" |
340 |
as_dir=`$as_dirname -- "$as_dir" || |
341 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
342 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
343 |
X"$as_dir" : 'X\(//\)$' \| \ |
344 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
345 |
$as_echo X"$as_dir" | |
346 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
347 |
s//\1/ |
348 |
q |
349 |
} |
350 |
/^X\(\/\/\)[^/].*/{ |
351 |
s//\1/ |
352 |
q |
353 |
} |
354 |
/^X\(\/\/\)$/{ |
355 |
s//\1/ |
356 |
q |
357 |
} |
358 |
/^X\(\/\).*/{ |
359 |
s//\1/ |
360 |
q |
361 |
} |
362 |
s/.*/./; q'` |
363 |
test -d "$as_dir" && break |
364 |
done |
365 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
366 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
367 |
|
368 |
|
369 |
} # as_fn_mkdir_p |
370 |
|
371 |
# as_fn_executable_p FILE |
372 |
# ----------------------- |
373 |
# Test if FILE is an executable regular file. |
374 |
as_fn_executable_p () |
375 |
{ |
376 |
test -f "$1" && test -x "$1" |
377 |
} # as_fn_executable_p |
378 |
# as_fn_append VAR VALUE |
379 |
# ---------------------- |
380 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
381 |
# advantage of any shell optimizations that allow amortized linear growth over |
382 |
# repeated appends, instead of the typical quadratic growth present in naive |
383 |
# implementations. |
384 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
385 |
eval 'as_fn_append () |
386 |
{ |
387 |
eval $1+=\$2 |
388 |
}' |
389 |
else |
390 |
as_fn_append () |
391 |
{ |
392 |
eval $1=\$$1\$2 |
393 |
} |
394 |
fi # as_fn_append |
395 |
|
396 |
# as_fn_arith ARG... |
397 |
# ------------------ |
398 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
399 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
400 |
# must be portable across $(()) and expr. |
401 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
402 |
eval 'as_fn_arith () |
403 |
{ |
404 |
as_val=$(( $* )) |
405 |
}' |
406 |
else |
407 |
as_fn_arith () |
408 |
{ |
409 |
as_val=`expr "$@" || test $? -eq 1` |
410 |
} |
411 |
fi # as_fn_arith |
412 |
|
413 |
|
414 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
415 |
# ---------------------------------------- |
416 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
417 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
418 |
# script with STATUS, using 1 if that was 0. |
419 |
as_fn_error () |
420 |
{ |
421 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
422 |
if test "$4"; then |
423 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
424 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
425 |
fi |
426 |
$as_echo "$as_me: error: $2" >&2 |
427 |
as_fn_exit $as_status |
428 |
} # as_fn_error |
429 |
|
430 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
431 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
432 |
as_expr=expr |
433 |
else |
434 |
as_expr=false |
435 |
fi |
436 |
|
437 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
438 |
as_basename=basename |
439 |
else |
440 |
as_basename=false |
441 |
fi |
442 |
|
443 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 |
as_dirname=dirname |
445 |
else |
446 |
as_dirname=false |
447 |
fi |
448 |
|
449 |
as_me=`$as_basename -- "$0" || |
450 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
451 |
X"$0" : 'X\(//\)$' \| \ |
452 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
453 |
$as_echo X/"$0" | |
454 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
455 |
s//\1/ |
456 |
q |
457 |
} |
458 |
/^X\/\(\/\/\)$/{ |
459 |
s//\1/ |
460 |
q |
461 |
} |
462 |
/^X\/\(\/\).*/{ |
463 |
s//\1/ |
464 |
q |
465 |
} |
466 |
s/.*/./; q'` |
467 |
|
468 |
# Avoid depending upon Character Ranges. |
469 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
470 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
471 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
472 |
as_cr_digits='0123456789' |
473 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
474 |
|
475 |
|
476 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
477 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
478 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
479 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
480 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
481 |
sed -n ' |
482 |
p |
483 |
/[$]LINENO/= |
484 |
' <$as_myself | |
485 |
sed ' |
486 |
s/[$]LINENO.*/&-/ |
487 |
t lineno |
488 |
b |
489 |
:lineno |
490 |
N |
491 |
:loop |
492 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
493 |
t loop |
494 |
s/-\n.*// |
495 |
' >$as_me.lineno && |
496 |
chmod +x "$as_me.lineno" || |
497 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
498 |
|
499 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
500 |
# already done that, so ensure we don't try to do so again and fall |
501 |
# in an infinite loop. This has already happened in practice. |
502 |
_as_can_reexec=no; export _as_can_reexec |
503 |
# Don't try to exec as it changes $[0], causing all sort of problems |
504 |
# (the dirname of $[0] is not the place where we might find the |
505 |
# original and so on. Autoconf is especially sensitive to this). |
506 |
. "./$as_me.lineno" |
507 |
# Exit status is that of the last command. |
508 |
exit |
509 |
} |
510 |
|
511 |
ECHO_C= ECHO_N= ECHO_T= |
512 |
case `echo -n x` in #((((( |
513 |
-n*) |
514 |
case `echo 'xy\c'` in |
515 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
516 |
xy) ECHO_C='\c';; |
517 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
518 |
ECHO_T=' ';; |
519 |
esac;; |
520 |
*) |
521 |
ECHO_N='-n';; |
522 |
esac |
523 |
|
524 |
rm -f conf$$ conf$$.exe conf$$.file |
525 |
if test -d conf$$.dir; then |
526 |
rm -f conf$$.dir/conf$$.file |
527 |
else |
528 |
rm -f conf$$.dir |
529 |
mkdir conf$$.dir 2>/dev/null |
530 |
fi |
531 |
if (echo >conf$$.file) 2>/dev/null; then |
532 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
533 |
as_ln_s='ln -s' |
534 |
# ... but there are two gotchas: |
535 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
536 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
537 |
# In both cases, we have to default to `cp -pR'. |
538 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
539 |
as_ln_s='cp -pR' |
540 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
541 |
as_ln_s=ln |
542 |
else |
543 |
as_ln_s='cp -pR' |
544 |
fi |
545 |
else |
546 |
as_ln_s='cp -pR' |
547 |
fi |
548 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 |
rmdir conf$$.dir 2>/dev/null |
550 |
|
551 |
if mkdir -p . 2>/dev/null; then |
552 |
as_mkdir_p='mkdir -p "$as_dir"' |
553 |
else |
554 |
test -d ./-p && rmdir ./-p |
555 |
as_mkdir_p=false |
556 |
fi |
557 |
|
558 |
as_test_x='test -x' |
559 |
as_executable_p=as_fn_executable_p |
560 |
|
561 |
# Sed expression to map a string onto a valid CPP name. |
562 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
563 |
|
564 |
# Sed expression to map a string onto a valid variable name. |
565 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
566 |
|
567 |
SHELL=${CONFIG_SHELL-/bin/sh} |
568 |
|
569 |
|
570 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
571 |
exec 6>&1 |
572 |
|
573 |
# Name of the host. |
574 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
575 |
# so uname gets run too. |
576 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
577 |
|
578 |
# |
579 |
# Initializations. |
580 |
# |
581 |
ac_default_prefix=/usr/local |
582 |
ac_clean_files= |
583 |
ac_config_libobj_dir=. |
584 |
LIBOBJS= |
585 |
cross_compiling=no |
586 |
subdirs= |
587 |
MFLAGS= |
588 |
MAKEFLAGS= |
589 |
|
590 |
# Identity of this package. |
591 |
PACKAGE_NAME='hopm' |
592 |
PACKAGE_TARNAME='hopm' |
593 |
PACKAGE_VERSION='1.0.0' |
594 |
PACKAGE_STRING='hopm 1.0.0' |
595 |
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
596 |
PACKAGE_URL='' |
597 |
|
598 |
ac_unique_file="src/opercmd.h" |
599 |
ac_default_prefix=\${HOME}/hopm |
600 |
# Factoring default headers for most tests. |
601 |
ac_includes_default="\ |
602 |
#include <stdio.h> |
603 |
#ifdef HAVE_SYS_TYPES_H |
604 |
# include <sys/types.h> |
605 |
#endif |
606 |
#ifdef HAVE_SYS_STAT_H |
607 |
# include <sys/stat.h> |
608 |
#endif |
609 |
#ifdef STDC_HEADERS |
610 |
# include <stdlib.h> |
611 |
# include <stddef.h> |
612 |
#else |
613 |
# ifdef HAVE_STDLIB_H |
614 |
# include <stdlib.h> |
615 |
# endif |
616 |
#endif |
617 |
#ifdef HAVE_STRING_H |
618 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
619 |
# include <memory.h> |
620 |
# endif |
621 |
# include <string.h> |
622 |
#endif |
623 |
#ifdef HAVE_STRINGS_H |
624 |
# include <strings.h> |
625 |
#endif |
626 |
#ifdef HAVE_INTTYPES_H |
627 |
# include <inttypes.h> |
628 |
#endif |
629 |
#ifdef HAVE_STDINT_H |
630 |
# include <stdint.h> |
631 |
#endif |
632 |
#ifdef HAVE_UNISTD_H |
633 |
# include <unistd.h> |
634 |
#endif" |
635 |
|
636 |
ac_subst_vars='am__EXEEXT_FALSE |
637 |
am__EXEEXT_TRUE |
638 |
LTLIBOBJS |
639 |
LIBOBJS |
640 |
LEXLIB |
641 |
LEX_OUTPUT_ROOT |
642 |
LEX |
643 |
YFLAGS |
644 |
YACC |
645 |
CPP |
646 |
OTOOL64 |
647 |
OTOOL |
648 |
LIPO |
649 |
NMEDIT |
650 |
DSYMUTIL |
651 |
MANIFEST_TOOL |
652 |
RANLIB |
653 |
ac_ct_AR |
654 |
AR |
655 |
DLLTOOL |
656 |
OBJDUMP |
657 |
LN_S |
658 |
NM |
659 |
ac_ct_DUMPBIN |
660 |
DUMPBIN |
661 |
LD |
662 |
FGREP |
663 |
EGREP |
664 |
GREP |
665 |
SED |
666 |
host_os |
667 |
host_vendor |
668 |
host_cpu |
669 |
host |
670 |
build_os |
671 |
build_vendor |
672 |
build_cpu |
673 |
build |
674 |
LIBTOOL |
675 |
am__fastdepCC_FALSE |
676 |
am__fastdepCC_TRUE |
677 |
CCDEPMODE |
678 |
am__nodep |
679 |
AMDEPBACKSLASH |
680 |
AMDEP_FALSE |
681 |
AMDEP_TRUE |
682 |
am__quote |
683 |
am__include |
684 |
DEPDIR |
685 |
OBJEXT |
686 |
EXEEXT |
687 |
ac_ct_CC |
688 |
CPPFLAGS |
689 |
LDFLAGS |
690 |
CFLAGS |
691 |
CC |
692 |
MAINT |
693 |
MAINTAINER_MODE_FALSE |
694 |
MAINTAINER_MODE_TRUE |
695 |
AM_BACKSLASH |
696 |
AM_DEFAULT_VERBOSITY |
697 |
AM_DEFAULT_V |
698 |
AM_V |
699 |
am__untar |
700 |
am__tar |
701 |
AMTAR |
702 |
am__leading_dot |
703 |
SET_MAKE |
704 |
AWK |
705 |
mkdir_p |
706 |
MKDIR_P |
707 |
INSTALL_STRIP_PROGRAM |
708 |
STRIP |
709 |
install_sh |
710 |
MAKEINFO |
711 |
AUTOHEADER |
712 |
AUTOMAKE |
713 |
AUTOCONF |
714 |
ACLOCAL |
715 |
VERSION |
716 |
PACKAGE |
717 |
CYGPATH_W |
718 |
am__isrc |
719 |
INSTALL_DATA |
720 |
INSTALL_SCRIPT |
721 |
INSTALL_PROGRAM |
722 |
target_alias |
723 |
host_alias |
724 |
build_alias |
725 |
LIBS |
726 |
ECHO_T |
727 |
ECHO_N |
728 |
ECHO_C |
729 |
DEFS |
730 |
mandir |
731 |
localedir |
732 |
libdir |
733 |
psdir |
734 |
pdfdir |
735 |
dvidir |
736 |
htmldir |
737 |
infodir |
738 |
docdir |
739 |
oldincludedir |
740 |
includedir |
741 |
localstatedir |
742 |
sharedstatedir |
743 |
sysconfdir |
744 |
datadir |
745 |
datarootdir |
746 |
libexecdir |
747 |
sbindir |
748 |
bindir |
749 |
program_transform_name |
750 |
prefix |
751 |
exec_prefix |
752 |
PACKAGE_URL |
753 |
PACKAGE_BUGREPORT |
754 |
PACKAGE_STRING |
755 |
PACKAGE_VERSION |
756 |
PACKAGE_TARNAME |
757 |
PACKAGE_NAME |
758 |
PATH_SEPARATOR |
759 |
SHELL' |
760 |
ac_subst_files='' |
761 |
ac_user_opts=' |
762 |
enable_option_checking |
763 |
enable_silent_rules |
764 |
enable_maintainer_mode |
765 |
enable_dependency_tracking |
766 |
enable_shared |
767 |
enable_static |
768 |
with_pic |
769 |
enable_fast_install |
770 |
with_aix_soname |
771 |
with_gnu_ld |
772 |
with_sysroot |
773 |
enable_libtool_lock |
774 |
' |
775 |
ac_precious_vars='build_alias |
776 |
host_alias |
777 |
target_alias |
778 |
CC |
779 |
CFLAGS |
780 |
LDFLAGS |
781 |
LIBS |
782 |
CPPFLAGS |
783 |
CPP |
784 |
YACC |
785 |
YFLAGS' |
786 |
|
787 |
|
788 |
# Initialize some variables set by options. |
789 |
ac_init_help= |
790 |
ac_init_version=false |
791 |
ac_unrecognized_opts= |
792 |
ac_unrecognized_sep= |
793 |
# The variables have the same names as the options, with |
794 |
# dashes changed to underlines. |
795 |
cache_file=/dev/null |
796 |
exec_prefix=NONE |
797 |
no_create= |
798 |
no_recursion= |
799 |
prefix=NONE |
800 |
program_prefix=NONE |
801 |
program_suffix=NONE |
802 |
program_transform_name=s,x,x, |
803 |
silent= |
804 |
site= |
805 |
srcdir= |
806 |
verbose= |
807 |
x_includes=NONE |
808 |
x_libraries=NONE |
809 |
|
810 |
# Installation directory options. |
811 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
812 |
# and all the variables that are supposed to be based on exec_prefix |
813 |
# by default will actually change. |
814 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
815 |
# (The list follows the same order as the GNU Coding Standards.) |
816 |
bindir='${exec_prefix}/bin' |
817 |
sbindir='${exec_prefix}/sbin' |
818 |
libexecdir='${exec_prefix}/libexec' |
819 |
datarootdir='${prefix}/share' |
820 |
datadir='${datarootdir}' |
821 |
sysconfdir='${prefix}/etc' |
822 |
sharedstatedir='${prefix}/com' |
823 |
localstatedir='${prefix}/var' |
824 |
includedir='${prefix}/include' |
825 |
oldincludedir='/usr/include' |
826 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
827 |
infodir='${datarootdir}/info' |
828 |
htmldir='${docdir}' |
829 |
dvidir='${docdir}' |
830 |
pdfdir='${docdir}' |
831 |
psdir='${docdir}' |
832 |
libdir='${exec_prefix}/lib' |
833 |
localedir='${datarootdir}/locale' |
834 |
mandir='${datarootdir}/man' |
835 |
|
836 |
ac_prev= |
837 |
ac_dashdash= |
838 |
for ac_option |
839 |
do |
840 |
# If the previous option needs an argument, assign it. |
841 |
if test -n "$ac_prev"; then |
842 |
eval $ac_prev=\$ac_option |
843 |
ac_prev= |
844 |
continue |
845 |
fi |
846 |
|
847 |
case $ac_option in |
848 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
849 |
*=) ac_optarg= ;; |
850 |
*) ac_optarg=yes ;; |
851 |
esac |
852 |
|
853 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
854 |
|
855 |
case $ac_dashdash$ac_option in |
856 |
--) |
857 |
ac_dashdash=yes ;; |
858 |
|
859 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
860 |
ac_prev=bindir ;; |
861 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
862 |
bindir=$ac_optarg ;; |
863 |
|
864 |
-build | --build | --buil | --bui | --bu) |
865 |
ac_prev=build_alias ;; |
866 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
867 |
build_alias=$ac_optarg ;; |
868 |
|
869 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
870 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
871 |
ac_prev=cache_file ;; |
872 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
873 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
874 |
cache_file=$ac_optarg ;; |
875 |
|
876 |
--config-cache | -C) |
877 |
cache_file=config.cache ;; |
878 |
|
879 |
-datadir | --datadir | --datadi | --datad) |
880 |
ac_prev=datadir ;; |
881 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
882 |
datadir=$ac_optarg ;; |
883 |
|
884 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
885 |
| --dataroo | --dataro | --datar) |
886 |
ac_prev=datarootdir ;; |
887 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
888 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
889 |
datarootdir=$ac_optarg ;; |
890 |
|
891 |
-disable-* | --disable-*) |
892 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
893 |
# Reject names that are not valid shell variable names. |
894 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
895 |
as_fn_error $? "invalid feature name: $ac_useropt" |
896 |
ac_useropt_orig=$ac_useropt |
897 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
898 |
case $ac_user_opts in |
899 |
*" |
900 |
"enable_$ac_useropt" |
901 |
"*) ;; |
902 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
903 |
ac_unrecognized_sep=', ';; |
904 |
esac |
905 |
eval enable_$ac_useropt=no ;; |
906 |
|
907 |
-docdir | --docdir | --docdi | --doc | --do) |
908 |
ac_prev=docdir ;; |
909 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
910 |
docdir=$ac_optarg ;; |
911 |
|
912 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
913 |
ac_prev=dvidir ;; |
914 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
915 |
dvidir=$ac_optarg ;; |
916 |
|
917 |
-enable-* | --enable-*) |
918 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
919 |
# Reject names that are not valid shell variable names. |
920 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
921 |
as_fn_error $? "invalid feature name: $ac_useropt" |
922 |
ac_useropt_orig=$ac_useropt |
923 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
924 |
case $ac_user_opts in |
925 |
*" |
926 |
"enable_$ac_useropt" |
927 |
"*) ;; |
928 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
929 |
ac_unrecognized_sep=', ';; |
930 |
esac |
931 |
eval enable_$ac_useropt=\$ac_optarg ;; |
932 |
|
933 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
934 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
935 |
| --exec | --exe | --ex) |
936 |
ac_prev=exec_prefix ;; |
937 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
938 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
939 |
| --exec=* | --exe=* | --ex=*) |
940 |
exec_prefix=$ac_optarg ;; |
941 |
|
942 |
-gas | --gas | --ga | --g) |
943 |
# Obsolete; use --with-gas. |
944 |
with_gas=yes ;; |
945 |
|
946 |
-help | --help | --hel | --he | -h) |
947 |
ac_init_help=long ;; |
948 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
949 |
ac_init_help=recursive ;; |
950 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
951 |
ac_init_help=short ;; |
952 |
|
953 |
-host | --host | --hos | --ho) |
954 |
ac_prev=host_alias ;; |
955 |
-host=* | --host=* | --hos=* | --ho=*) |
956 |
host_alias=$ac_optarg ;; |
957 |
|
958 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
959 |
ac_prev=htmldir ;; |
960 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
961 |
| --ht=*) |
962 |
htmldir=$ac_optarg ;; |
963 |
|
964 |
-includedir | --includedir | --includedi | --included | --include \ |
965 |
| --includ | --inclu | --incl | --inc) |
966 |
ac_prev=includedir ;; |
967 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
968 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
969 |
includedir=$ac_optarg ;; |
970 |
|
971 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
972 |
ac_prev=infodir ;; |
973 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
974 |
infodir=$ac_optarg ;; |
975 |
|
976 |
-libdir | --libdir | --libdi | --libd) |
977 |
ac_prev=libdir ;; |
978 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
979 |
libdir=$ac_optarg ;; |
980 |
|
981 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
982 |
| --libexe | --libex | --libe) |
983 |
ac_prev=libexecdir ;; |
984 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
985 |
| --libexe=* | --libex=* | --libe=*) |
986 |
libexecdir=$ac_optarg ;; |
987 |
|
988 |
-localedir | --localedir | --localedi | --localed | --locale) |
989 |
ac_prev=localedir ;; |
990 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
991 |
localedir=$ac_optarg ;; |
992 |
|
993 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
994 |
| --localstate | --localstat | --localsta | --localst | --locals) |
995 |
ac_prev=localstatedir ;; |
996 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
997 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
998 |
localstatedir=$ac_optarg ;; |
999 |
|
1000 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1001 |
ac_prev=mandir ;; |
1002 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1003 |
mandir=$ac_optarg ;; |
1004 |
|
1005 |
-nfp | --nfp | --nf) |
1006 |
# Obsolete; use --without-fp. |
1007 |
with_fp=no ;; |
1008 |
|
1009 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1010 |
| --no-cr | --no-c | -n) |
1011 |
no_create=yes ;; |
1012 |
|
1013 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1014 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1015 |
no_recursion=yes ;; |
1016 |
|
1017 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1018 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1019 |
| --oldin | --oldi | --old | --ol | --o) |
1020 |
ac_prev=oldincludedir ;; |
1021 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1022 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1023 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1024 |
oldincludedir=$ac_optarg ;; |
1025 |
|
1026 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1027 |
ac_prev=prefix ;; |
1028 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1029 |
prefix=$ac_optarg ;; |
1030 |
|
1031 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1032 |
| --program-pre | --program-pr | --program-p) |
1033 |
ac_prev=program_prefix ;; |
1034 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1035 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1036 |
program_prefix=$ac_optarg ;; |
1037 |
|
1038 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1039 |
| --program-suf | --program-su | --program-s) |
1040 |
ac_prev=program_suffix ;; |
1041 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1042 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1043 |
program_suffix=$ac_optarg ;; |
1044 |
|
1045 |
-program-transform-name | --program-transform-name \ |
1046 |
| --program-transform-nam | --program-transform-na \ |
1047 |
| --program-transform-n | --program-transform- \ |
1048 |
| --program-transform | --program-transfor \ |
1049 |
| --program-transfo | --program-transf \ |
1050 |
| --program-trans | --program-tran \ |
1051 |
| --progr-tra | --program-tr | --program-t) |
1052 |
ac_prev=program_transform_name ;; |
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 |
program_transform_name=$ac_optarg ;; |
1061 |
|
1062 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1063 |
ac_prev=pdfdir ;; |
1064 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1065 |
pdfdir=$ac_optarg ;; |
1066 |
|
1067 |
-psdir | --psdir | --psdi | --psd | --ps) |
1068 |
ac_prev=psdir ;; |
1069 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1070 |
psdir=$ac_optarg ;; |
1071 |
|
1072 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1073 |
| -silent | --silent | --silen | --sile | --sil) |
1074 |
silent=yes ;; |
1075 |
|
1076 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1077 |
ac_prev=sbindir ;; |
1078 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1079 |
| --sbi=* | --sb=*) |
1080 |
sbindir=$ac_optarg ;; |
1081 |
|
1082 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1083 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1084 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1085 |
| --sha | --sh) |
1086 |
ac_prev=sharedstatedir ;; |
1087 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1088 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1089 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1090 |
| --sha=* | --sh=*) |
1091 |
sharedstatedir=$ac_optarg ;; |
1092 |
|
1093 |
-site | --site | --sit) |
1094 |
ac_prev=site ;; |
1095 |
-site=* | --site=* | --sit=*) |
1096 |
site=$ac_optarg ;; |
1097 |
|
1098 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1099 |
ac_prev=srcdir ;; |
1100 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1101 |
srcdir=$ac_optarg ;; |
1102 |
|
1103 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1104 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1105 |
ac_prev=sysconfdir ;; |
1106 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1107 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1108 |
sysconfdir=$ac_optarg ;; |
1109 |
|
1110 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1111 |
ac_prev=target_alias ;; |
1112 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1113 |
target_alias=$ac_optarg ;; |
1114 |
|
1115 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1116 |
verbose=yes ;; |
1117 |
|
1118 |
-version | --version | --versio | --versi | --vers | -V) |
1119 |
ac_init_version=: ;; |
1120 |
|
1121 |
-with-* | --with-*) |
1122 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1123 |
# Reject names that are not valid shell variable names. |
1124 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1125 |
as_fn_error $? "invalid package name: $ac_useropt" |
1126 |
ac_useropt_orig=$ac_useropt |
1127 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1128 |
case $ac_user_opts in |
1129 |
*" |
1130 |
"with_$ac_useropt" |
1131 |
"*) ;; |
1132 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1133 |
ac_unrecognized_sep=', ';; |
1134 |
esac |
1135 |
eval with_$ac_useropt=\$ac_optarg ;; |
1136 |
|
1137 |
-without-* | --without-*) |
1138 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1139 |
# Reject names that are not valid shell variable names. |
1140 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1141 |
as_fn_error $? "invalid package name: $ac_useropt" |
1142 |
ac_useropt_orig=$ac_useropt |
1143 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1144 |
case $ac_user_opts in |
1145 |
*" |
1146 |
"with_$ac_useropt" |
1147 |
"*) ;; |
1148 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1149 |
ac_unrecognized_sep=', ';; |
1150 |
esac |
1151 |
eval with_$ac_useropt=no ;; |
1152 |
|
1153 |
--x) |
1154 |
# Obsolete; use --with-x. |
1155 |
with_x=yes ;; |
1156 |
|
1157 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1158 |
| --x-incl | --x-inc | --x-in | --x-i) |
1159 |
ac_prev=x_includes ;; |
1160 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1161 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1162 |
x_includes=$ac_optarg ;; |
1163 |
|
1164 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1165 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1166 |
ac_prev=x_libraries ;; |
1167 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1168 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1169 |
x_libraries=$ac_optarg ;; |
1170 |
|
1171 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1172 |
Try \`$0 --help' for more information" |
1173 |
;; |
1174 |
|
1175 |
*=*) |
1176 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1177 |
# Reject names that are not valid shell variable names. |
1178 |
case $ac_envvar in #( |
1179 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1180 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1181 |
esac |
1182 |
eval $ac_envvar=\$ac_optarg |
1183 |
export $ac_envvar ;; |
1184 |
|
1185 |
*) |
1186 |
# FIXME: should be removed in autoconf 3.0. |
1187 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1188 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1189 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1190 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1191 |
;; |
1192 |
|
1193 |
esac |
1194 |
done |
1195 |
|
1196 |
if test -n "$ac_prev"; then |
1197 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1198 |
as_fn_error $? "missing argument to $ac_option" |
1199 |
fi |
1200 |
|
1201 |
if test -n "$ac_unrecognized_opts"; then |
1202 |
case $enable_option_checking in |
1203 |
no) ;; |
1204 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1205 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1206 |
esac |
1207 |
fi |
1208 |
|
1209 |
# Check all directory arguments for consistency. |
1210 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1211 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1212 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1213 |
libdir localedir mandir |
1214 |
do |
1215 |
eval ac_val=\$$ac_var |
1216 |
# Remove trailing slashes. |
1217 |
case $ac_val in |
1218 |
*/ ) |
1219 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1220 |
eval $ac_var=\$ac_val;; |
1221 |
esac |
1222 |
# Be sure to have absolute directory names. |
1223 |
case $ac_val in |
1224 |
[\\/$]* | ?:[\\/]* ) continue;; |
1225 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1226 |
esac |
1227 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1228 |
done |
1229 |
|
1230 |
# There might be people who depend on the old broken behavior: `$host' |
1231 |
# used to hold the argument of --host etc. |
1232 |
# FIXME: To remove some day. |
1233 |
build=$build_alias |
1234 |
host=$host_alias |
1235 |
target=$target_alias |
1236 |
|
1237 |
# FIXME: To remove some day. |
1238 |
if test "x$host_alias" != x; then |
1239 |
if test "x$build_alias" = x; then |
1240 |
cross_compiling=maybe |
1241 |
elif test "x$build_alias" != "x$host_alias"; then |
1242 |
cross_compiling=yes |
1243 |
fi |
1244 |
fi |
1245 |
|
1246 |
ac_tool_prefix= |
1247 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1248 |
|
1249 |
test "$silent" = yes && exec 6>/dev/null |
1250 |
|
1251 |
|
1252 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1253 |
ac_ls_di=`ls -di .` && |
1254 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1255 |
as_fn_error $? "working directory cannot be determined" |
1256 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1257 |
as_fn_error $? "pwd does not report name of working directory" |
1258 |
|
1259 |
|
1260 |
# Find the source files, if location was not specified. |
1261 |
if test -z "$srcdir"; then |
1262 |
ac_srcdir_defaulted=yes |
1263 |
# Try the directory containing this script, then the parent directory. |
1264 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1265 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1266 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1267 |
X"$as_myself" : 'X\(//\)$' \| \ |
1268 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1269 |
$as_echo X"$as_myself" | |
1270 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1271 |
s//\1/ |
1272 |
q |
1273 |
} |
1274 |
/^X\(\/\/\)[^/].*/{ |
1275 |
s//\1/ |
1276 |
q |
1277 |
} |
1278 |
/^X\(\/\/\)$/{ |
1279 |
s//\1/ |
1280 |
q |
1281 |
} |
1282 |
/^X\(\/\).*/{ |
1283 |
s//\1/ |
1284 |
q |
1285 |
} |
1286 |
s/.*/./; q'` |
1287 |
srcdir=$ac_confdir |
1288 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1289 |
srcdir=.. |
1290 |
fi |
1291 |
else |
1292 |
ac_srcdir_defaulted=no |
1293 |
fi |
1294 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1295 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1296 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1297 |
fi |
1298 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1299 |
ac_abs_confdir=`( |
1300 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1301 |
pwd)` |
1302 |
# When building in place, set srcdir=. |
1303 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1304 |
srcdir=. |
1305 |
fi |
1306 |
# Remove unnecessary trailing slashes from srcdir. |
1307 |
# Double slashes in file names in object file debugging info |
1308 |
# mess up M-x gdb in Emacs. |
1309 |
case $srcdir in |
1310 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1311 |
esac |
1312 |
for ac_var in $ac_precious_vars; do |
1313 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1314 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1315 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1316 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1317 |
done |
1318 |
|
1319 |
# |
1320 |
# Report the --help message. |
1321 |
# |
1322 |
if test "$ac_init_help" = "long"; then |
1323 |
# Omit some internal or obsolete options to make the list less imposing. |
1324 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1325 |
cat <<_ACEOF |
1326 |
\`configure' configures hopm 1.0.0 to adapt to many kinds of systems. |
1327 |
|
1328 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1329 |
|
1330 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1331 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1332 |
|
1333 |
Defaults for the options are specified in brackets. |
1334 |
|
1335 |
Configuration: |
1336 |
-h, --help display this help and exit |
1337 |
--help=short display options specific to this package |
1338 |
--help=recursive display the short help of all the included packages |
1339 |
-V, --version display version information and exit |
1340 |
-q, --quiet, --silent do not print \`checking ...' messages |
1341 |
--cache-file=FILE cache test results in FILE [disabled] |
1342 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1343 |
-n, --no-create do not create output files |
1344 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1345 |
|
1346 |
Installation directories: |
1347 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1348 |
[$ac_default_prefix] |
1349 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1350 |
[PREFIX] |
1351 |
|
1352 |
By default, \`make install' will install all the files in |
1353 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1354 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1355 |
for instance \`--prefix=\$HOME'. |
1356 |
|
1357 |
For better control, use the options below. |
1358 |
|
1359 |
Fine tuning of the installation directories: |
1360 |
--bindir=DIR user executables [EPREFIX/bin] |
1361 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1362 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1363 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1364 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1365 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1366 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1367 |
--includedir=DIR C header files [PREFIX/include] |
1368 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1369 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1370 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1371 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1372 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1373 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1374 |
--docdir=DIR documentation root [DATAROOTDIR/doc/hopm] |
1375 |
--htmldir=DIR html documentation [DOCDIR] |
1376 |
--dvidir=DIR dvi documentation [DOCDIR] |
1377 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1378 |
--psdir=DIR ps documentation [DOCDIR] |
1379 |
_ACEOF |
1380 |
|
1381 |
cat <<\_ACEOF |
1382 |
|
1383 |
Program names: |
1384 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1385 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1386 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1387 |
|
1388 |
System types: |
1389 |
--build=BUILD configure for building on BUILD [guessed] |
1390 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1391 |
_ACEOF |
1392 |
fi |
1393 |
|
1394 |
if test -n "$ac_init_help"; then |
1395 |
case $ac_init_help in |
1396 |
short | recursive ) echo "Configuration of hopm 1.0.0:";; |
1397 |
esac |
1398 |
cat <<\_ACEOF |
1399 |
|
1400 |
Optional Features: |
1401 |
--disable-option-checking ignore unrecognized --enable/--with options |
1402 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1403 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1404 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
1405 |
--disable-silent-rules verbose build output (undo: "make V=0") |
1406 |
--enable-maintainer-mode |
1407 |
enable make rules and dependencies not useful (and |
1408 |
sometimes confusing) to the casual installer |
1409 |
--enable-dependency-tracking |
1410 |
do not reject slow dependency extractors |
1411 |
--disable-dependency-tracking |
1412 |
speeds up one-time build |
1413 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
1414 |
--enable-static[=PKGS] build static libraries [default=yes] |
1415 |
--enable-fast-install[=PKGS] |
1416 |
optimize for fast installation [default=yes] |
1417 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1418 |
|
1419 |
Optional Packages: |
1420 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1421 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1422 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1423 |
both] |
1424 |
--with-aix-soname=aix|svr4|both |
1425 |
shared library versioning (aka "SONAME") variant to |
1426 |
provide on AIX, [default=aix]. |
1427 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1428 |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1429 |
compiler's sysroot if not specified). |
1430 |
|
1431 |
Some influential environment variables: |
1432 |
CC C compiler command |
1433 |
CFLAGS C compiler flags |
1434 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1435 |
nonstandard directory <lib dir> |
1436 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1437 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1438 |
you have headers in a nonstandard directory <include dir> |
1439 |
CPP C preprocessor |
1440 |
YACC The `Yet Another Compiler Compiler' implementation to use. |
1441 |
Defaults to the first program found out of: `bison -y', `byacc', |
1442 |
`yacc'. |
1443 |
YFLAGS The list of arguments that will be passed by default to $YACC. |
1444 |
This script will default YFLAGS to the empty string to avoid a |
1445 |
default value of `-d' given by some make applications. |
1446 |
|
1447 |
Use these variables to override the choices made by `configure' or to help |
1448 |
it to find libraries and programs with nonstandard names/locations. |
1449 |
|
1450 |
Report bugs to <bugs@ircd-hybrid.org>. |
1451 |
_ACEOF |
1452 |
ac_status=$? |
1453 |
fi |
1454 |
|
1455 |
if test "$ac_init_help" = "recursive"; then |
1456 |
# If there are subdirs, report their specific --help. |
1457 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1458 |
test -d "$ac_dir" || |
1459 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1460 |
continue |
1461 |
ac_builddir=. |
1462 |
|
1463 |
case "$ac_dir" in |
1464 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1465 |
*) |
1466 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1467 |
# A ".." for each directory in $ac_dir_suffix. |
1468 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1469 |
case $ac_top_builddir_sub in |
1470 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1471 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1472 |
esac ;; |
1473 |
esac |
1474 |
ac_abs_top_builddir=$ac_pwd |
1475 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1476 |
# for backward compatibility: |
1477 |
ac_top_builddir=$ac_top_build_prefix |
1478 |
|
1479 |
case $srcdir in |
1480 |
.) # We are building in place. |
1481 |
ac_srcdir=. |
1482 |
ac_top_srcdir=$ac_top_builddir_sub |
1483 |
ac_abs_top_srcdir=$ac_pwd ;; |
1484 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1485 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1486 |
ac_top_srcdir=$srcdir |
1487 |
ac_abs_top_srcdir=$srcdir ;; |
1488 |
*) # Relative name. |
1489 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1490 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1491 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1492 |
esac |
1493 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1494 |
|
1495 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1496 |
# Check for guested configure. |
1497 |
if test -f "$ac_srcdir/configure.gnu"; then |
1498 |
echo && |
1499 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1500 |
elif test -f "$ac_srcdir/configure"; then |
1501 |
echo && |
1502 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1503 |
else |
1504 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1505 |
fi || ac_status=$? |
1506 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1507 |
done |
1508 |
fi |
1509 |
|
1510 |
test -n "$ac_init_help" && exit $ac_status |
1511 |
if $ac_init_version; then |
1512 |
cat <<\_ACEOF |
1513 |
hopm configure 1.0.0 |
1514 |
generated by GNU Autoconf 2.69 |
1515 |
|
1516 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1517 |
This configure script is free software; the Free Software Foundation |
1518 |
gives unlimited permission to copy, distribute and modify it. |
1519 |
_ACEOF |
1520 |
exit |
1521 |
fi |
1522 |
|
1523 |
## ------------------------ ## |
1524 |
## Autoconf initialization. ## |
1525 |
## ------------------------ ## |
1526 |
|
1527 |
# ac_fn_c_try_compile LINENO |
1528 |
# -------------------------- |
1529 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1530 |
ac_fn_c_try_compile () |
1531 |
{ |
1532 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1533 |
rm -f conftest.$ac_objext |
1534 |
if { { ac_try="$ac_compile" |
1535 |
case "(($ac_try" in |
1536 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1537 |
*) ac_try_echo=$ac_try;; |
1538 |
esac |
1539 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1540 |
$as_echo "$ac_try_echo"; } >&5 |
1541 |
(eval "$ac_compile") 2>conftest.err |
1542 |
ac_status=$? |
1543 |
if test -s conftest.err; then |
1544 |
grep -v '^ *+' conftest.err >conftest.er1 |
1545 |
cat conftest.er1 >&5 |
1546 |
mv -f conftest.er1 conftest.err |
1547 |
fi |
1548 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1549 |
test $ac_status = 0; } && { |
1550 |
test -z "$ac_c_werror_flag" || |
1551 |
test ! -s conftest.err |
1552 |
} && test -s conftest.$ac_objext; then : |
1553 |
ac_retval=0 |
1554 |
else |
1555 |
$as_echo "$as_me: failed program was:" >&5 |
1556 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1557 |
|
1558 |
ac_retval=1 |
1559 |
fi |
1560 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1561 |
as_fn_set_status $ac_retval |
1562 |
|
1563 |
} # ac_fn_c_try_compile |
1564 |
|
1565 |
# ac_fn_c_try_link LINENO |
1566 |
# ----------------------- |
1567 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1568 |
ac_fn_c_try_link () |
1569 |
{ |
1570 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1571 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1572 |
if { { ac_try="$ac_link" |
1573 |
case "(($ac_try" in |
1574 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1575 |
*) ac_try_echo=$ac_try;; |
1576 |
esac |
1577 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1578 |
$as_echo "$ac_try_echo"; } >&5 |
1579 |
(eval "$ac_link") 2>conftest.err |
1580 |
ac_status=$? |
1581 |
if test -s conftest.err; then |
1582 |
grep -v '^ *+' conftest.err >conftest.er1 |
1583 |
cat conftest.er1 >&5 |
1584 |
mv -f conftest.er1 conftest.err |
1585 |
fi |
1586 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1587 |
test $ac_status = 0; } && { |
1588 |
test -z "$ac_c_werror_flag" || |
1589 |
test ! -s conftest.err |
1590 |
} && test -s conftest$ac_exeext && { |
1591 |
test "$cross_compiling" = yes || |
1592 |
test -x conftest$ac_exeext |
1593 |
}; then : |
1594 |
ac_retval=0 |
1595 |
else |
1596 |
$as_echo "$as_me: failed program was:" >&5 |
1597 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1598 |
|
1599 |
ac_retval=1 |
1600 |
fi |
1601 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1602 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1603 |
# interfere with the next link command; also delete a directory that is |
1604 |
# left behind by Apple's compiler. We do this before executing the actions. |
1605 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1606 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1607 |
as_fn_set_status $ac_retval |
1608 |
|
1609 |
} # ac_fn_c_try_link |
1610 |
|
1611 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1612 |
# ------------------------------------------------------- |
1613 |
# Tests whether HEADER exists and can be compiled using the include files in |
1614 |
# INCLUDES, setting the cache variable VAR accordingly. |
1615 |
ac_fn_c_check_header_compile () |
1616 |
{ |
1617 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1619 |
$as_echo_n "checking for $2... " >&6; } |
1620 |
if eval \${$3+:} false; then : |
1621 |
$as_echo_n "(cached) " >&6 |
1622 |
else |
1623 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1624 |
/* end confdefs.h. */ |
1625 |
$4 |
1626 |
#include <$2> |
1627 |
_ACEOF |
1628 |
if ac_fn_c_try_compile "$LINENO"; then : |
1629 |
eval "$3=yes" |
1630 |
else |
1631 |
eval "$3=no" |
1632 |
fi |
1633 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1634 |
fi |
1635 |
eval ac_res=\$$3 |
1636 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1637 |
$as_echo "$ac_res" >&6; } |
1638 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1639 |
|
1640 |
} # ac_fn_c_check_header_compile |
1641 |
|
1642 |
# ac_fn_c_try_cpp LINENO |
1643 |
# ---------------------- |
1644 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1645 |
ac_fn_c_try_cpp () |
1646 |
{ |
1647 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1648 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1649 |
case "(($ac_try" in |
1650 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1651 |
*) ac_try_echo=$ac_try;; |
1652 |
esac |
1653 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1654 |
$as_echo "$ac_try_echo"; } >&5 |
1655 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1656 |
ac_status=$? |
1657 |
if test -s conftest.err; then |
1658 |
grep -v '^ *+' conftest.err >conftest.er1 |
1659 |
cat conftest.er1 >&5 |
1660 |
mv -f conftest.er1 conftest.err |
1661 |
fi |
1662 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1663 |
test $ac_status = 0; } > conftest.i && { |
1664 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1665 |
test ! -s conftest.err |
1666 |
}; then : |
1667 |
ac_retval=0 |
1668 |
else |
1669 |
$as_echo "$as_me: failed program was:" >&5 |
1670 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1671 |
|
1672 |
ac_retval=1 |
1673 |
fi |
1674 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1675 |
as_fn_set_status $ac_retval |
1676 |
|
1677 |
} # ac_fn_c_try_cpp |
1678 |
|
1679 |
# ac_fn_c_try_run LINENO |
1680 |
# ---------------------- |
1681 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1682 |
# that executables *can* be run. |
1683 |
ac_fn_c_try_run () |
1684 |
{ |
1685 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1686 |
if { { ac_try="$ac_link" |
1687 |
case "(($ac_try" in |
1688 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1689 |
*) ac_try_echo=$ac_try;; |
1690 |
esac |
1691 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1692 |
$as_echo "$ac_try_echo"; } >&5 |
1693 |
(eval "$ac_link") 2>&5 |
1694 |
ac_status=$? |
1695 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1696 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1697 |
{ { case "(($ac_try" in |
1698 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1699 |
*) ac_try_echo=$ac_try;; |
1700 |
esac |
1701 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1702 |
$as_echo "$ac_try_echo"; } >&5 |
1703 |
(eval "$ac_try") 2>&5 |
1704 |
ac_status=$? |
1705 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1706 |
test $ac_status = 0; }; }; then : |
1707 |
ac_retval=0 |
1708 |
else |
1709 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1710 |
$as_echo "$as_me: failed program was:" >&5 |
1711 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1712 |
|
1713 |
ac_retval=$ac_status |
1714 |
fi |
1715 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1716 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1717 |
as_fn_set_status $ac_retval |
1718 |
|
1719 |
} # ac_fn_c_try_run |
1720 |
|
1721 |
# ac_fn_c_check_func LINENO FUNC VAR |
1722 |
# ---------------------------------- |
1723 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1724 |
ac_fn_c_check_func () |
1725 |
{ |
1726 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1728 |
$as_echo_n "checking for $2... " >&6; } |
1729 |
if eval \${$3+:} false; then : |
1730 |
$as_echo_n "(cached) " >&6 |
1731 |
else |
1732 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1733 |
/* end confdefs.h. */ |
1734 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1735 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1736 |
#define $2 innocuous_$2 |
1737 |
|
1738 |
/* System header to define __stub macros and hopefully few prototypes, |
1739 |
which can conflict with char $2 (); below. |
1740 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1741 |
<limits.h> exists even on freestanding compilers. */ |
1742 |
|
1743 |
#ifdef __STDC__ |
1744 |
# include <limits.h> |
1745 |
#else |
1746 |
# include <assert.h> |
1747 |
#endif |
1748 |
|
1749 |
#undef $2 |
1750 |
|
1751 |
/* Override any GCC internal prototype to avoid an error. |
1752 |
Use char because int might match the return type of a GCC |
1753 |
builtin and then its argument prototype would still apply. */ |
1754 |
#ifdef __cplusplus |
1755 |
extern "C" |
1756 |
#endif |
1757 |
char $2 (); |
1758 |
/* The GNU C library defines this for functions which it implements |
1759 |
to always fail with ENOSYS. Some functions are actually named |
1760 |
something starting with __ and the normal name is an alias. */ |
1761 |
#if defined __stub_$2 || defined __stub___$2 |
1762 |
choke me |
1763 |
#endif |
1764 |
|
1765 |
int |
1766 |
main () |
1767 |
{ |
1768 |
return $2 (); |
1769 |
; |
1770 |
return 0; |
1771 |
} |
1772 |
_ACEOF |
1773 |
if ac_fn_c_try_link "$LINENO"; then : |
1774 |
eval "$3=yes" |
1775 |
else |
1776 |
eval "$3=no" |
1777 |
fi |
1778 |
rm -f core conftest.err conftest.$ac_objext \ |
1779 |
conftest$ac_exeext conftest.$ac_ext |
1780 |
fi |
1781 |
eval ac_res=\$$3 |
1782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1783 |
$as_echo "$ac_res" >&6; } |
1784 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1785 |
|
1786 |
} # ac_fn_c_check_func |
1787 |
cat >config.log <<_ACEOF |
1788 |
This file contains any messages produced by compilers while |
1789 |
running configure, to aid debugging if configure makes a mistake. |
1790 |
|
1791 |
It was created by hopm $as_me 1.0.0, which was |
1792 |
generated by GNU Autoconf 2.69. Invocation command line was |
1793 |
|
1794 |
$ $0 $@ |
1795 |
|
1796 |
_ACEOF |
1797 |
exec 5>>config.log |
1798 |
{ |
1799 |
cat <<_ASUNAME |
1800 |
## --------- ## |
1801 |
## Platform. ## |
1802 |
## --------- ## |
1803 |
|
1804 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1805 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1806 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1807 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1808 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1809 |
|
1810 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1811 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1812 |
|
1813 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1814 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1815 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1816 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1817 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1818 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1819 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1820 |
|
1821 |
_ASUNAME |
1822 |
|
1823 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1824 |
for as_dir in $PATH |
1825 |
do |
1826 |
IFS=$as_save_IFS |
1827 |
test -z "$as_dir" && as_dir=. |
1828 |
$as_echo "PATH: $as_dir" |
1829 |
done |
1830 |
IFS=$as_save_IFS |
1831 |
|
1832 |
} >&5 |
1833 |
|
1834 |
cat >&5 <<_ACEOF |
1835 |
|
1836 |
|
1837 |
## ----------- ## |
1838 |
## Core tests. ## |
1839 |
## ----------- ## |
1840 |
|
1841 |
_ACEOF |
1842 |
|
1843 |
|
1844 |
# Keep a trace of the command line. |
1845 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1846 |
# Strip out --silent because we don't want to record it for future runs. |
1847 |
# Also quote any args containing shell meta-characters. |
1848 |
# Make two passes to allow for proper duplicate-argument suppression. |
1849 |
ac_configure_args= |
1850 |
ac_configure_args0= |
1851 |
ac_configure_args1= |
1852 |
ac_must_keep_next=false |
1853 |
for ac_pass in 1 2 |
1854 |
do |
1855 |
for ac_arg |
1856 |
do |
1857 |
case $ac_arg in |
1858 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1859 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1860 |
| -silent | --silent | --silen | --sile | --sil) |
1861 |
continue ;; |
1862 |
*\'*) |
1863 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1864 |
esac |
1865 |
case $ac_pass in |
1866 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1867 |
2) |
1868 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
1869 |
if test $ac_must_keep_next = true; then |
1870 |
ac_must_keep_next=false # Got value, back to normal. |
1871 |
else |
1872 |
case $ac_arg in |
1873 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1874 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1875 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1876 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1877 |
case "$ac_configure_args0 " in |
1878 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1879 |
esac |
1880 |
;; |
1881 |
-* ) ac_must_keep_next=true ;; |
1882 |
esac |
1883 |
fi |
1884 |
as_fn_append ac_configure_args " '$ac_arg'" |
1885 |
;; |
1886 |
esac |
1887 |
done |
1888 |
done |
1889 |
{ ac_configure_args0=; unset ac_configure_args0;} |
1890 |
{ ac_configure_args1=; unset ac_configure_args1;} |
1891 |
|
1892 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1893 |
# config.log. We remove comments because anyway the quotes in there |
1894 |
# would cause problems or look ugly. |
1895 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1896 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1897 |
trap 'exit_status=$? |
1898 |
# Save into config.log some information that might help in debugging. |
1899 |
{ |
1900 |
echo |
1901 |
|
1902 |
$as_echo "## ---------------- ## |
1903 |
## Cache variables. ## |
1904 |
## ---------------- ##" |
1905 |
echo |
1906 |
# The following way of writing the cache mishandles newlines in values, |
1907 |
( |
1908 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1909 |
eval ac_val=\$$ac_var |
1910 |
case $ac_val in #( |
1911 |
*${as_nl}*) |
1912 |
case $ac_var in #( |
1913 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1914 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1915 |
esac |
1916 |
case $ac_var in #( |
1917 |
_ | IFS | as_nl) ;; #( |
1918 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1919 |
*) { eval $ac_var=; unset $ac_var;} ;; |
1920 |
esac ;; |
1921 |
esac |
1922 |
done |
1923 |
(set) 2>&1 | |
1924 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1925 |
*${as_nl}ac_space=\ *) |
1926 |
sed -n \ |
1927 |
"s/'\''/'\''\\\\'\'''\''/g; |
1928 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1929 |
;; #( |
1930 |
*) |
1931 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1932 |
;; |
1933 |
esac | |
1934 |
sort |
1935 |
) |
1936 |
echo |
1937 |
|
1938 |
$as_echo "## ----------------- ## |
1939 |
## Output variables. ## |
1940 |
## ----------------- ##" |
1941 |
echo |
1942 |
for ac_var in $ac_subst_vars |
1943 |
do |
1944 |
eval ac_val=\$$ac_var |
1945 |
case $ac_val in |
1946 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1947 |
esac |
1948 |
$as_echo "$ac_var='\''$ac_val'\''" |
1949 |
done | sort |
1950 |
echo |
1951 |
|
1952 |
if test -n "$ac_subst_files"; then |
1953 |
$as_echo "## ------------------- ## |
1954 |
## File substitutions. ## |
1955 |
## ------------------- ##" |
1956 |
echo |
1957 |
for ac_var in $ac_subst_files |
1958 |
do |
1959 |
eval ac_val=\$$ac_var |
1960 |
case $ac_val in |
1961 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1962 |
esac |
1963 |
$as_echo "$ac_var='\''$ac_val'\''" |
1964 |
done | sort |
1965 |
echo |
1966 |
fi |
1967 |
|
1968 |
if test -s confdefs.h; then |
1969 |
$as_echo "## ----------- ## |
1970 |
## confdefs.h. ## |
1971 |
## ----------- ##" |
1972 |
echo |
1973 |
cat confdefs.h |
1974 |
echo |
1975 |
fi |
1976 |
test "$ac_signal" != 0 && |
1977 |
$as_echo "$as_me: caught signal $ac_signal" |
1978 |
$as_echo "$as_me: exit $exit_status" |
1979 |
} >&5 |
1980 |
rm -f core *.core core.conftest.* && |
1981 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1982 |
exit $exit_status |
1983 |
' 0 |
1984 |
for ac_signal in 1 2 13 15; do |
1985 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1986 |
done |
1987 |
ac_signal=0 |
1988 |
|
1989 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1990 |
rm -f -r conftest* confdefs.h |
1991 |
|
1992 |
$as_echo "/* confdefs.h */" > confdefs.h |
1993 |
|
1994 |
# Predefined preprocessor variables. |
1995 |
|
1996 |
cat >>confdefs.h <<_ACEOF |
1997 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1998 |
_ACEOF |
1999 |
|
2000 |
cat >>confdefs.h <<_ACEOF |
2001 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2002 |
_ACEOF |
2003 |
|
2004 |
cat >>confdefs.h <<_ACEOF |
2005 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2006 |
_ACEOF |
2007 |
|
2008 |
cat >>confdefs.h <<_ACEOF |
2009 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2010 |
_ACEOF |
2011 |
|
2012 |
cat >>confdefs.h <<_ACEOF |
2013 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2014 |
_ACEOF |
2015 |
|
2016 |
cat >>confdefs.h <<_ACEOF |
2017 |
#define PACKAGE_URL "$PACKAGE_URL" |
2018 |
_ACEOF |
2019 |
|
2020 |
|
2021 |
# Let the site file select an alternate cache file if it wants to. |
2022 |
# Prefer an explicitly selected file to automatically selected ones. |
2023 |
ac_site_file1=NONE |
2024 |
ac_site_file2=NONE |
2025 |
if test -n "$CONFIG_SITE"; then |
2026 |
# We do not want a PATH search for config.site. |
2027 |
case $CONFIG_SITE in #(( |
2028 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2029 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2030 |
*) ac_site_file1=./$CONFIG_SITE;; |
2031 |
esac |
2032 |
elif test "x$prefix" != xNONE; then |
2033 |
ac_site_file1=$prefix/share/config.site |
2034 |
ac_site_file2=$prefix/etc/config.site |
2035 |
else |
2036 |
ac_site_file1=$ac_default_prefix/share/config.site |
2037 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2038 |
fi |
2039 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2040 |
do |
2041 |
test "x$ac_site_file" = xNONE && continue |
2042 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2044 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2045 |
sed 's/^/| /' "$ac_site_file" >&5 |
2046 |
. "$ac_site_file" \ |
2047 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2048 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2049 |
as_fn_error $? "failed to load site script $ac_site_file |
2050 |
See \`config.log' for more details" "$LINENO" 5; } |
2051 |
fi |
2052 |
done |
2053 |
|
2054 |
if test -r "$cache_file"; then |
2055 |
# Some versions of bash will fail to source /dev/null (special files |
2056 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2057 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2059 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2060 |
case $cache_file in |
2061 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2062 |
*) . "./$cache_file";; |
2063 |
esac |
2064 |
fi |
2065 |
else |
2066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2067 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2068 |
>$cache_file |
2069 |
fi |
2070 |
|
2071 |
# Check that the precious variables saved in the cache have kept the same |
2072 |
# value. |
2073 |
ac_cache_corrupted=false |
2074 |
for ac_var in $ac_precious_vars; do |
2075 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2076 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2077 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2078 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2079 |
case $ac_old_set,$ac_new_set in |
2080 |
set,) |
2081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2082 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2083 |
ac_cache_corrupted=: ;; |
2084 |
,set) |
2085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2086 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2087 |
ac_cache_corrupted=: ;; |
2088 |
,);; |
2089 |
*) |
2090 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2091 |
# differences in whitespace do not lead to failure. |
2092 |
ac_old_val_w=`echo x $ac_old_val` |
2093 |
ac_new_val_w=`echo x $ac_new_val` |
2094 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2095 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2096 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2097 |
ac_cache_corrupted=: |
2098 |
else |
2099 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2100 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2101 |
eval $ac_var=\$ac_old_val |
2102 |
fi |
2103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2104 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2105 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2106 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2107 |
fi;; |
2108 |
esac |
2109 |
# Pass precious variables to config.status. |
2110 |
if test "$ac_new_set" = set; then |
2111 |
case $ac_new_val in |
2112 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2113 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2114 |
esac |
2115 |
case " $ac_configure_args " in |
2116 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2117 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2118 |
esac |
2119 |
fi |
2120 |
done |
2121 |
if $ac_cache_corrupted; then |
2122 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2123 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2125 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2126 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2127 |
fi |
2128 |
## -------------------- ## |
2129 |
## Main body of script. ## |
2130 |
## -------------------- ## |
2131 |
|
2132 |
ac_ext=c |
2133 |
ac_cpp='$CPP $CPPFLAGS' |
2134 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2135 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2136 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2137 |
|
2138 |
|
2139 |
|
2140 |
ac_config_headers="$ac_config_headers src/setup.h" |
2141 |
|
2142 |
am__api_version='1.14' |
2143 |
|
2144 |
ac_aux_dir= |
2145 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2146 |
if test -f "$ac_dir/install-sh"; then |
2147 |
ac_aux_dir=$ac_dir |
2148 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2149 |
break |
2150 |
elif test -f "$ac_dir/install.sh"; then |
2151 |
ac_aux_dir=$ac_dir |
2152 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2153 |
break |
2154 |
elif test -f "$ac_dir/shtool"; then |
2155 |
ac_aux_dir=$ac_dir |
2156 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2157 |
break |
2158 |
fi |
2159 |
done |
2160 |
if test -z "$ac_aux_dir"; then |
2161 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2162 |
fi |
2163 |
|
2164 |
# These three variables are undocumented and unsupported, |
2165 |
# and are intended to be withdrawn in a future Autoconf release. |
2166 |
# They can cause serious problems if a builder's source tree is in a directory |
2167 |
# whose full name contains unusual characters. |
2168 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2169 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2170 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2171 |
|
2172 |
|
2173 |
# Find a good install program. We prefer a C program (faster), |
2174 |
# so one script is as good as another. But avoid the broken or |
2175 |
# incompatible versions: |
2176 |
# SysV /etc/install, /usr/sbin/install |
2177 |
# SunOS /usr/etc/install |
2178 |
# IRIX /sbin/install |
2179 |
# AIX /bin/install |
2180 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2181 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2182 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2183 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2184 |
# OS/2's system install, which has a completely different semantic |
2185 |
# ./install, which can be erroneously created by make from ./install.sh. |
2186 |
# Reject install programs that cannot install multiple files. |
2187 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2188 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2189 |
if test -z "$INSTALL"; then |
2190 |
if ${ac_cv_path_install+:} false; then : |
2191 |
$as_echo_n "(cached) " >&6 |
2192 |
else |
2193 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2194 |
for as_dir in $PATH |
2195 |
do |
2196 |
IFS=$as_save_IFS |
2197 |
test -z "$as_dir" && as_dir=. |
2198 |
# Account for people who put trailing slashes in PATH elements. |
2199 |
case $as_dir/ in #(( |
2200 |
./ | .// | /[cC]/* | \ |
2201 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2202 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2203 |
/usr/ucb/* ) ;; |
2204 |
*) |
2205 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2206 |
# Don't use installbsd from OSF since it installs stuff as root |
2207 |
# by default. |
2208 |
for ac_prog in ginstall scoinst install; do |
2209 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2210 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2211 |
if test $ac_prog = install && |
2212 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2213 |
# AIX install. It has an incompatible calling convention. |
2214 |
: |
2215 |
elif test $ac_prog = install && |
2216 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2217 |
# program-specific install script used by HP pwplus--don't use. |
2218 |
: |
2219 |
else |
2220 |
rm -rf conftest.one conftest.two conftest.dir |
2221 |
echo one > conftest.one |
2222 |
echo two > conftest.two |
2223 |
mkdir conftest.dir |
2224 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2225 |
test -s conftest.one && test -s conftest.two && |
2226 |
test -s conftest.dir/conftest.one && |
2227 |
test -s conftest.dir/conftest.two |
2228 |
then |
2229 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2230 |
break 3 |
2231 |
fi |
2232 |
fi |
2233 |
fi |
2234 |
done |
2235 |
done |
2236 |
;; |
2237 |
esac |
2238 |
|
2239 |
done |
2240 |
IFS=$as_save_IFS |
2241 |
|
2242 |
rm -rf conftest.one conftest.two conftest.dir |
2243 |
|
2244 |
fi |
2245 |
if test "${ac_cv_path_install+set}" = set; then |
2246 |
INSTALL=$ac_cv_path_install |
2247 |
else |
2248 |
# As a last resort, use the slow shell script. Don't cache a |
2249 |
# value for INSTALL within a source directory, because that will |
2250 |
# break other packages using the cache if that directory is |
2251 |
# removed, or if the value is a relative name. |
2252 |
INSTALL=$ac_install_sh |
2253 |
fi |
2254 |
fi |
2255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2256 |
$as_echo "$INSTALL" >&6; } |
2257 |
|
2258 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2259 |
# It thinks the first close brace ends the variable substitution. |
2260 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2261 |
|
2262 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2263 |
|
2264 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2265 |
|
2266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2267 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
2268 |
# Reject unsafe characters in $srcdir or the absolute working directory |
2269 |
# name. Accept space and tab only in the latter. |
2270 |
am_lf=' |
2271 |
' |
2272 |
case `pwd` in |
2273 |
*[\\\"\#\$\&\'\`$am_lf]*) |
2274 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
2275 |
esac |
2276 |
case $srcdir in |
2277 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2278 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
2279 |
esac |
2280 |
|
2281 |
# Do 'set' in a subshell so we don't clobber the current shell's |
2282 |
# arguments. Must try -L first in case configure is actually a |
2283 |
# symlink; some systems play weird games with the mod time of symlinks |
2284 |
# (eg FreeBSD returns the mod time of the symlink's containing |
2285 |
# directory). |
2286 |
if ( |
2287 |
am_has_slept=no |
2288 |
for am_try in 1 2; do |
2289 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
2290 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2291 |
if test "$*" = "X"; then |
2292 |
# -L didn't work. |
2293 |
set X `ls -t "$srcdir/configure" conftest.file` |
2294 |
fi |
2295 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2296 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2297 |
|
2298 |
# If neither matched, then we have a broken ls. This can happen |
2299 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2300 |
# broken ls alias from the environment. This has actually |
2301 |
# happened. Such a system could not be considered "sane". |
2302 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2303 |
alias in your environment" "$LINENO" 5 |
2304 |
fi |
2305 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
2306 |
break |
2307 |
fi |
2308 |
# Just in case. |
2309 |
sleep 1 |
2310 |
am_has_slept=yes |
2311 |
done |
2312 |
test "$2" = conftest.file |
2313 |
) |
2314 |
then |
2315 |
# Ok. |
2316 |
: |
2317 |
else |
2318 |
as_fn_error $? "newly created file is older than distributed files! |
2319 |
Check your system clock" "$LINENO" 5 |
2320 |
fi |
2321 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2322 |
$as_echo "yes" >&6; } |
2323 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
2324 |
# generated files are strictly newer. |
2325 |
am_sleep_pid= |
2326 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
2327 |
( sleep 1 ) & |
2328 |
am_sleep_pid=$! |
2329 |
fi |
2330 |
|
2331 |
rm -f conftest.file |
2332 |
|
2333 |
test "$program_prefix" != NONE && |
2334 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2335 |
# Use a double $ so make ignores it. |
2336 |
test "$program_suffix" != NONE && |
2337 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2338 |
# Double any \ or $. |
2339 |
# By default was `s,x,x', remove it if useless. |
2340 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2341 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2342 |
|
2343 |
# expand $ac_aux_dir to an absolute path |
2344 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
2345 |
|
2346 |
if test x"${MISSING+set}" != xset; then |
2347 |
case $am_aux_dir in |
2348 |
*\ * | *\ *) |
2349 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2350 |
*) |
2351 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2352 |
esac |
2353 |
fi |
2354 |
# Use eval to expand $SHELL |
2355 |
if eval "$MISSING --is-lightweight"; then |
2356 |
am_missing_run="$MISSING " |
2357 |
else |
2358 |
am_missing_run= |
2359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2360 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
2361 |
fi |
2362 |
|
2363 |
if test x"${install_sh}" != xset; then |
2364 |
case $am_aux_dir in |
2365 |
*\ * | *\ *) |
2366 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2367 |
*) |
2368 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
2369 |
esac |
2370 |
fi |
2371 |
|
2372 |
# Installed binaries are usually stripped using 'strip' when the user |
2373 |
# run "make install-strip". However 'strip' might not be the right |
2374 |
# tool to use in cross-compilation environments, therefore Automake |
2375 |
# will honor the 'STRIP' environment variable to overrule this program. |
2376 |
if test "$cross_compiling" != no; then |
2377 |
if test -n "$ac_tool_prefix"; then |
2378 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2379 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2381 |
$as_echo_n "checking for $ac_word... " >&6; } |
2382 |
if ${ac_cv_prog_STRIP+:} false; then : |
2383 |
$as_echo_n "(cached) " >&6 |
2384 |
else |
2385 |
if test -n "$STRIP"; then |
2386 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2387 |
else |
2388 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2389 |
for as_dir in $PATH |
2390 |
do |
2391 |
IFS=$as_save_IFS |
2392 |
test -z "$as_dir" && as_dir=. |
2393 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2394 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2395 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2396 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2397 |
break 2 |
2398 |
fi |
2399 |
done |
2400 |
done |
2401 |
IFS=$as_save_IFS |
2402 |
|
2403 |
fi |
2404 |
fi |
2405 |
STRIP=$ac_cv_prog_STRIP |
2406 |
if test -n "$STRIP"; then |
2407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2408 |
$as_echo "$STRIP" >&6; } |
2409 |
else |
2410 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2411 |
$as_echo "no" >&6; } |
2412 |
fi |
2413 |
|
2414 |
|
2415 |
fi |
2416 |
if test -z "$ac_cv_prog_STRIP"; then |
2417 |
ac_ct_STRIP=$STRIP |
2418 |
# Extract the first word of "strip", so it can be a program name with args. |
2419 |
set dummy strip; ac_word=$2 |
2420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2421 |
$as_echo_n "checking for $ac_word... " >&6; } |
2422 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
2423 |
$as_echo_n "(cached) " >&6 |
2424 |
else |
2425 |
if test -n "$ac_ct_STRIP"; then |
2426 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2427 |
else |
2428 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2429 |
for as_dir in $PATH |
2430 |
do |
2431 |
IFS=$as_save_IFS |
2432 |
test -z "$as_dir" && as_dir=. |
2433 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2434 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2435 |
ac_cv_prog_ac_ct_STRIP="strip" |
2436 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2437 |
break 2 |
2438 |
fi |
2439 |
done |
2440 |
done |
2441 |
IFS=$as_save_IFS |
2442 |
|
2443 |
fi |
2444 |
fi |
2445 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2446 |
if test -n "$ac_ct_STRIP"; then |
2447 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2448 |
$as_echo "$ac_ct_STRIP" >&6; } |
2449 |
else |
2450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2451 |
$as_echo "no" >&6; } |
2452 |
fi |
2453 |
|
2454 |
if test "x$ac_ct_STRIP" = x; then |
2455 |
STRIP=":" |
2456 |
else |
2457 |
case $cross_compiling:$ac_tool_warned in |
2458 |
yes:) |
2459 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2460 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2461 |
ac_tool_warned=yes ;; |
2462 |
esac |
2463 |
STRIP=$ac_ct_STRIP |
2464 |
fi |
2465 |
else |
2466 |
STRIP="$ac_cv_prog_STRIP" |
2467 |
fi |
2468 |
|
2469 |
fi |
2470 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2471 |
|
2472 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2473 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2474 |
if test -z "$MKDIR_P"; then |
2475 |
if ${ac_cv_path_mkdir+:} false; then : |
2476 |
$as_echo_n "(cached) " >&6 |
2477 |
else |
2478 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2479 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2480 |
do |
2481 |
IFS=$as_save_IFS |
2482 |
test -z "$as_dir" && as_dir=. |
2483 |
for ac_prog in mkdir gmkdir; do |
2484 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2485 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
2486 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2487 |
'mkdir (GNU coreutils) '* | \ |
2488 |
'mkdir (coreutils) '* | \ |
2489 |
'mkdir (fileutils) '4.1*) |
2490 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2491 |
break 3;; |
2492 |
esac |
2493 |
done |
2494 |
done |
2495 |
done |
2496 |
IFS=$as_save_IFS |
2497 |
|
2498 |
fi |
2499 |
|
2500 |
test -d ./--version && rmdir ./--version |
2501 |
if test "${ac_cv_path_mkdir+set}" = set; then |
2502 |
MKDIR_P="$ac_cv_path_mkdir -p" |
2503 |
else |
2504 |
# As a last resort, use the slow shell script. Don't cache a |
2505 |
# value for MKDIR_P within a source directory, because that will |
2506 |
# break other packages using the cache if that directory is |
2507 |
# removed, or if the value is a relative name. |
2508 |
MKDIR_P="$ac_install_sh -d" |
2509 |
fi |
2510 |
fi |
2511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2512 |
$as_echo "$MKDIR_P" >&6; } |
2513 |
|
2514 |
for ac_prog in gawk mawk nawk awk |
2515 |
do |
2516 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2517 |
set dummy $ac_prog; ac_word=$2 |
2518 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2519 |
$as_echo_n "checking for $ac_word... " >&6; } |
2520 |
if ${ac_cv_prog_AWK+:} false; then : |
2521 |
$as_echo_n "(cached) " >&6 |
2522 |
else |
2523 |
if test -n "$AWK"; then |
2524 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2525 |
else |
2526 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2527 |
for as_dir in $PATH |
2528 |
do |
2529 |
IFS=$as_save_IFS |
2530 |
test -z "$as_dir" && as_dir=. |
2531 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2532 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2533 |
ac_cv_prog_AWK="$ac_prog" |
2534 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2535 |
break 2 |
2536 |
fi |
2537 |
done |
2538 |
done |
2539 |
IFS=$as_save_IFS |
2540 |
|
2541 |
fi |
2542 |
fi |
2543 |
AWK=$ac_cv_prog_AWK |
2544 |
if test -n "$AWK"; then |
2545 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2546 |
$as_echo "$AWK" >&6; } |
2547 |
else |
2548 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2549 |
$as_echo "no" >&6; } |
2550 |
fi |
2551 |
|
2552 |
|
2553 |
test -n "$AWK" && break |
2554 |
done |
2555 |
|
2556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2557 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2558 |
set x ${MAKE-make} |
2559 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2560 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2561 |
$as_echo_n "(cached) " >&6 |
2562 |
else |
2563 |
cat >conftest.make <<\_ACEOF |
2564 |
SHELL = /bin/sh |
2565 |
all: |
2566 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
2567 |
_ACEOF |
2568 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2569 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2570 |
*@@@%%%=?*=@@@%%%*) |
2571 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
2572 |
*) |
2573 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
2574 |
esac |
2575 |
rm -f conftest.make |
2576 |
fi |
2577 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2578 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2579 |
$as_echo "yes" >&6; } |
2580 |
SET_MAKE= |
2581 |
else |
2582 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2583 |
$as_echo "no" >&6; } |
2584 |
SET_MAKE="MAKE=${MAKE-make}" |
2585 |
fi |
2586 |
|
2587 |
rm -rf .tst 2>/dev/null |
2588 |
mkdir .tst 2>/dev/null |
2589 |
if test -d .tst; then |
2590 |
am__leading_dot=. |
2591 |
else |
2592 |
am__leading_dot=_ |
2593 |
fi |
2594 |
rmdir .tst 2>/dev/null |
2595 |
|
2596 |
# Check whether --enable-silent-rules was given. |
2597 |
if test "${enable_silent_rules+set}" = set; then : |
2598 |
enableval=$enable_silent_rules; |
2599 |
fi |
2600 |
|
2601 |
case $enable_silent_rules in # ((( |
2602 |
yes) AM_DEFAULT_VERBOSITY=0;; |
2603 |
no) AM_DEFAULT_VERBOSITY=1;; |
2604 |
*) AM_DEFAULT_VERBOSITY=1;; |
2605 |
esac |
2606 |
am_make=${MAKE-make} |
2607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
2608 |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
2609 |
if ${am_cv_make_support_nested_variables+:} false; then : |
2610 |
$as_echo_n "(cached) " >&6 |
2611 |
else |
2612 |
if $as_echo 'TRUE=$(BAR$(V)) |
2613 |
BAR0=false |
2614 |
BAR1=true |
2615 |
V=1 |
2616 |
am__doit: |
2617 |
@$(TRUE) |
2618 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
2619 |
am_cv_make_support_nested_variables=yes |
2620 |
else |
2621 |
am_cv_make_support_nested_variables=no |
2622 |
fi |
2623 |
fi |
2624 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
2625 |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
2626 |
if test $am_cv_make_support_nested_variables = yes; then |
2627 |
AM_V='$(V)' |
2628 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2629 |
else |
2630 |
AM_V=$AM_DEFAULT_VERBOSITY |
2631 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
2632 |
fi |
2633 |
AM_BACKSLASH='\' |
2634 |
|
2635 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2636 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2637 |
# is not polluted with repeated "-I." |
2638 |
am__isrc=' -I$(srcdir)' |
2639 |
# test to see if srcdir already configured |
2640 |
if test -f $srcdir/config.status; then |
2641 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2642 |
fi |
2643 |
fi |
2644 |
|
2645 |
# test whether we have cygpath |
2646 |
if test -z "$CYGPATH_W"; then |
2647 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
2648 |
CYGPATH_W='cygpath -w' |
2649 |
else |
2650 |
CYGPATH_W=echo |
2651 |
fi |
2652 |
fi |
2653 |
|
2654 |
|
2655 |
# Define the identity of the package. |
2656 |
PACKAGE='hopm' |
2657 |
VERSION='1.0.0' |
2658 |
|
2659 |
|
2660 |
cat >>confdefs.h <<_ACEOF |
2661 |
#define PACKAGE "$PACKAGE" |
2662 |
_ACEOF |
2663 |
|
2664 |
|
2665 |
cat >>confdefs.h <<_ACEOF |
2666 |
#define VERSION "$VERSION" |
2667 |
_ACEOF |
2668 |
|
2669 |
# Some tools Automake needs. |
2670 |
|
2671 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2672 |
|
2673 |
|
2674 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2675 |
|
2676 |
|
2677 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2678 |
|
2679 |
|
2680 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2681 |
|
2682 |
|
2683 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2684 |
|
2685 |
# For better backward compatibility. To be removed once Automake 1.9.x |
2686 |
# dies out for good. For more background, see: |
2687 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
2688 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
2689 |
mkdir_p='$(MKDIR_P)' |
2690 |
|
2691 |
# We need awk for the "check" target. The system "awk" is bad on |
2692 |
# some platforms. |
2693 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
2694 |
# in the wild :-( We should find a proper way to deprecate it ... |
2695 |
AMTAR='$${TAR-tar}' |
2696 |
|
2697 |
|
2698 |
# We'll loop over all known methods to create a tar archive until one works. |
2699 |
_am_tools='gnutar pax cpio none' |
2700 |
|
2701 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2702 |
|
2703 |
|
2704 |
|
2705 |
|
2706 |
|
2707 |
|
2708 |
# POSIX will say in a future version that running "rm -f" with no argument |
2709 |
# is OK; and we want to be able to make that assumption in our Makefile |
2710 |
# recipes. So use an aggressive probe to check that the usage we want is |
2711 |
# actually supported "in the wild" to an acceptable degree. |
2712 |
# See automake bug#10828. |
2713 |
# To make any issue more visible, cause the running configure to be aborted |
2714 |
# by default if the 'rm' program in use doesn't match our expectations; the |
2715 |
# user can still override this though. |
2716 |
if rm -f && rm -fr && rm -rf; then : OK; else |
2717 |
cat >&2 <<'END' |
2718 |
Oops! |
2719 |
|
2720 |
Your 'rm' program seems unable to run without file operands specified |
2721 |
on the command line, even when the '-f' option is present. This is contrary |
2722 |
to the behaviour of most rm programs out there, and not conforming with |
2723 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
2724 |
|
2725 |
Please tell bug-automake@gnu.org about your system, including the value |
2726 |
of your $PATH and any error possibly output before this message. This |
2727 |
can help us improve future automake versions. |
2728 |
|
2729 |
END |
2730 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
2731 |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
2732 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
2733 |
echo >&2 |
2734 |
else |
2735 |
cat >&2 <<'END' |
2736 |
Aborting the configuration process, to ensure you take notice of the issue. |
2737 |
|
2738 |
You can download and install GNU coreutils to get an 'rm' implementation |
2739 |
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
2740 |
|
2741 |
If you want to complete the configuration process using your problematic |
2742 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
2743 |
to "yes", and re-run configure. |
2744 |
|
2745 |
END |
2746 |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
2747 |
fi |
2748 |
fi |
2749 |
|
2750 |
|
2751 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2752 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
2753 |
# Check whether --enable-maintainer-mode was given. |
2754 |
if test "${enable_maintainer_mode+set}" = set; then : |
2755 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2756 |
else |
2757 |
USE_MAINTAINER_MODE=no |
2758 |
fi |
2759 |
|
2760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2761 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
2762 |
if test $USE_MAINTAINER_MODE = yes; then |
2763 |
MAINTAINER_MODE_TRUE= |
2764 |
MAINTAINER_MODE_FALSE='#' |
2765 |
else |
2766 |
MAINTAINER_MODE_TRUE='#' |
2767 |
MAINTAINER_MODE_FALSE= |
2768 |
fi |
2769 |
|
2770 |
MAINT=$MAINTAINER_MODE_TRUE |
2771 |
|
2772 |
|
2773 |
|
2774 |
DEPDIR="${am__leading_dot}deps" |
2775 |
|
2776 |
ac_config_commands="$ac_config_commands depfiles" |
2777 |
|
2778 |
|
2779 |
am_make=${MAKE-make} |
2780 |
cat > confinc << 'END' |
2781 |
am__doit: |
2782 |
@echo this is the am__doit target |
2783 |
.PHONY: am__doit |
2784 |
END |
2785 |
# If we don't find an include directive, just comment out the code. |
2786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
2787 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
2788 |
am__include="#" |
2789 |
am__quote= |
2790 |
_am_result=none |
2791 |
# First try GNU make style include. |
2792 |
echo "include confinc" > confmf |
2793 |
# Ignore all kinds of additional output from 'make'. |
2794 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
2795 |
*the\ am__doit\ target*) |
2796 |
am__include=include |
2797 |
am__quote= |
2798 |
_am_result=GNU |
2799 |
;; |
2800 |
esac |
2801 |
# Now try BSD make style include. |
2802 |
if test "$am__include" = "#"; then |
2803 |
echo '.include "confinc"' > confmf |
2804 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
2805 |
*the\ am__doit\ target*) |
2806 |
am__include=.include |
2807 |
am__quote="\"" |
2808 |
_am_result=BSD |
2809 |
;; |
2810 |
esac |
2811 |
fi |
2812 |
|
2813 |
|
2814 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
2815 |
$as_echo "$_am_result" >&6; } |
2816 |
rm -f confinc confmf |
2817 |
|
2818 |
# Check whether --enable-dependency-tracking was given. |
2819 |
if test "${enable_dependency_tracking+set}" = set; then : |
2820 |
enableval=$enable_dependency_tracking; |
2821 |
fi |
2822 |
|
2823 |
if test "x$enable_dependency_tracking" != xno; then |
2824 |
am_depcomp="$ac_aux_dir/depcomp" |
2825 |
AMDEPBACKSLASH='\' |
2826 |
am__nodep='_no' |
2827 |
fi |
2828 |
if test "x$enable_dependency_tracking" != xno; then |
2829 |
AMDEP_TRUE= |
2830 |
AMDEP_FALSE='#' |
2831 |
else |
2832 |
AMDEP_TRUE='#' |
2833 |
AMDEP_FALSE= |
2834 |
fi |
2835 |
|
2836 |
|
2837 |
ac_ext=c |
2838 |
ac_cpp='$CPP $CPPFLAGS' |
2839 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2840 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2841 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2842 |
if test -n "$ac_tool_prefix"; then |
2843 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2844 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2846 |
$as_echo_n "checking for $ac_word... " >&6; } |
2847 |
if ${ac_cv_prog_CC+:} false; then : |
2848 |
$as_echo_n "(cached) " >&6 |
2849 |
else |
2850 |
if test -n "$CC"; then |
2851 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2852 |
else |
2853 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2854 |
for as_dir in $PATH |
2855 |
do |
2856 |
IFS=$as_save_IFS |
2857 |
test -z "$as_dir" && as_dir=. |
2858 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2859 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2860 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2861 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2862 |
break 2 |
2863 |
fi |
2864 |
done |
2865 |
done |
2866 |
IFS=$as_save_IFS |
2867 |
|
2868 |
fi |
2869 |
fi |
2870 |
CC=$ac_cv_prog_CC |
2871 |
if test -n "$CC"; then |
2872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2873 |
$as_echo "$CC" >&6; } |
2874 |
else |
2875 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2876 |
$as_echo "no" >&6; } |
2877 |
fi |
2878 |
|
2879 |
|
2880 |
fi |
2881 |
if test -z "$ac_cv_prog_CC"; then |
2882 |
ac_ct_CC=$CC |
2883 |
# Extract the first word of "gcc", so it can be a program name with args. |
2884 |
set dummy gcc; ac_word=$2 |
2885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2886 |
$as_echo_n "checking for $ac_word... " >&6; } |
2887 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2888 |
$as_echo_n "(cached) " >&6 |
2889 |
else |
2890 |
if test -n "$ac_ct_CC"; then |
2891 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2892 |
else |
2893 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2894 |
for as_dir in $PATH |
2895 |
do |
2896 |
IFS=$as_save_IFS |
2897 |
test -z "$as_dir" && as_dir=. |
2898 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2899 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2900 |
ac_cv_prog_ac_ct_CC="gcc" |
2901 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2902 |
break 2 |
2903 |
fi |
2904 |
done |
2905 |
done |
2906 |
IFS=$as_save_IFS |
2907 |
|
2908 |
fi |
2909 |
fi |
2910 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2911 |
if test -n "$ac_ct_CC"; then |
2912 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2913 |
$as_echo "$ac_ct_CC" >&6; } |
2914 |
else |
2915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2916 |
$as_echo "no" >&6; } |
2917 |
fi |
2918 |
|
2919 |
if test "x$ac_ct_CC" = x; then |
2920 |
CC="" |
2921 |
else |
2922 |
case $cross_compiling:$ac_tool_warned in |
2923 |
yes:) |
2924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2925 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2926 |
ac_tool_warned=yes ;; |
2927 |
esac |
2928 |
CC=$ac_ct_CC |
2929 |
fi |
2930 |
else |
2931 |
CC="$ac_cv_prog_CC" |
2932 |
fi |
2933 |
|
2934 |
if test -z "$CC"; then |
2935 |
if test -n "$ac_tool_prefix"; then |
2936 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2937 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2938 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2939 |
$as_echo_n "checking for $ac_word... " >&6; } |
2940 |
if ${ac_cv_prog_CC+:} false; then : |
2941 |
$as_echo_n "(cached) " >&6 |
2942 |
else |
2943 |
if test -n "$CC"; then |
2944 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2945 |
else |
2946 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2947 |
for as_dir in $PATH |
2948 |
do |
2949 |
IFS=$as_save_IFS |
2950 |
test -z "$as_dir" && as_dir=. |
2951 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2952 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2953 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
2954 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2955 |
break 2 |
2956 |
fi |
2957 |
done |
2958 |
done |
2959 |
IFS=$as_save_IFS |
2960 |
|
2961 |
fi |
2962 |
fi |
2963 |
CC=$ac_cv_prog_CC |
2964 |
if test -n "$CC"; then |
2965 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2966 |
$as_echo "$CC" >&6; } |
2967 |
else |
2968 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2969 |
$as_echo "no" >&6; } |
2970 |
fi |
2971 |
|
2972 |
|
2973 |
fi |
2974 |
fi |
2975 |
if test -z "$CC"; then |
2976 |
# Extract the first word of "cc", so it can be a program name with args. |
2977 |
set dummy cc; ac_word=$2 |
2978 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2979 |
$as_echo_n "checking for $ac_word... " >&6; } |
2980 |
if ${ac_cv_prog_CC+:} false; then : |
2981 |
$as_echo_n "(cached) " >&6 |
2982 |
else |
2983 |
if test -n "$CC"; then |
2984 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2985 |
else |
2986 |
ac_prog_rejected=no |
2987 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2988 |
for as_dir in $PATH |
2989 |
do |
2990 |
IFS=$as_save_IFS |
2991 |
test -z "$as_dir" && as_dir=. |
2992 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2993 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2994 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2995 |
ac_prog_rejected=yes |
2996 |
continue |
2997 |
fi |
2998 |
ac_cv_prog_CC="cc" |
2999 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3000 |
break 2 |
3001 |
fi |
3002 |
done |
3003 |
done |
3004 |
IFS=$as_save_IFS |
3005 |
|
3006 |
if test $ac_prog_rejected = yes; then |
3007 |
# We found a bogon in the path, so make sure we never use it. |
3008 |
set dummy $ac_cv_prog_CC |
3009 |
shift |
3010 |
if test $# != 0; then |
3011 |
# We chose a different compiler from the bogus one. |
3012 |
# However, it has the same basename, so the bogon will be chosen |
3013 |
# first if we set CC to just the basename; use the full file name. |
3014 |
shift |
3015 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3016 |
fi |
3017 |
fi |
3018 |
fi |
3019 |
fi |
3020 |
CC=$ac_cv_prog_CC |
3021 |
if test -n "$CC"; then |
3022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3023 |
$as_echo "$CC" >&6; } |
3024 |
else |
3025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3026 |
$as_echo "no" >&6; } |
3027 |
fi |
3028 |
|
3029 |
|
3030 |
fi |
3031 |
if test -z "$CC"; then |
3032 |
if test -n "$ac_tool_prefix"; then |
3033 |
for ac_prog in cl.exe |
3034 |
do |
3035 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3036 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3038 |
$as_echo_n "checking for $ac_word... " >&6; } |
3039 |
if ${ac_cv_prog_CC+:} false; then : |
3040 |
$as_echo_n "(cached) " >&6 |
3041 |
else |
3042 |
if test -n "$CC"; then |
3043 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3044 |
else |
3045 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3046 |
for as_dir in $PATH |
3047 |
do |
3048 |
IFS=$as_save_IFS |
3049 |
test -z "$as_dir" && as_dir=. |
3050 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3051 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3052 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3053 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3054 |
break 2 |
3055 |
fi |
3056 |
done |
3057 |
done |
3058 |
IFS=$as_save_IFS |
3059 |
|
3060 |
fi |
3061 |
fi |
3062 |
CC=$ac_cv_prog_CC |
3063 |
if test -n "$CC"; then |
3064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3065 |
$as_echo "$CC" >&6; } |
3066 |
else |
3067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3068 |
$as_echo "no" >&6; } |
3069 |
fi |
3070 |
|
3071 |
|
3072 |
test -n "$CC" && break |
3073 |
done |
3074 |
fi |
3075 |
if test -z "$CC"; then |
3076 |
ac_ct_CC=$CC |
3077 |
for ac_prog in cl.exe |
3078 |
do |
3079 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3080 |
set dummy $ac_prog; ac_word=$2 |
3081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3082 |
$as_echo_n "checking for $ac_word... " >&6; } |
3083 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3084 |
$as_echo_n "(cached) " >&6 |
3085 |
else |
3086 |
if test -n "$ac_ct_CC"; then |
3087 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3088 |
else |
3089 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3090 |
for as_dir in $PATH |
3091 |
do |
3092 |
IFS=$as_save_IFS |
3093 |
test -z "$as_dir" && as_dir=. |
3094 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3095 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3096 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3097 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3098 |
break 2 |
3099 |
fi |
3100 |
done |
3101 |
done |
3102 |
IFS=$as_save_IFS |
3103 |
|
3104 |
fi |
3105 |
fi |
3106 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3107 |
if test -n "$ac_ct_CC"; then |
3108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3109 |
$as_echo "$ac_ct_CC" >&6; } |
3110 |
else |
3111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3112 |
$as_echo "no" >&6; } |
3113 |
fi |
3114 |
|
3115 |
|
3116 |
test -n "$ac_ct_CC" && break |
3117 |
done |
3118 |
|
3119 |
if test "x$ac_ct_CC" = x; then |
3120 |
CC="" |
3121 |
else |
3122 |
case $cross_compiling:$ac_tool_warned in |
3123 |
yes:) |
3124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3125 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3126 |
ac_tool_warned=yes ;; |
3127 |
esac |
3128 |
CC=$ac_ct_CC |
3129 |
fi |
3130 |
fi |
3131 |
|
3132 |
fi |
3133 |
|
3134 |
|
3135 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3136 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3137 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3138 |
See \`config.log' for more details" "$LINENO" 5; } |
3139 |
|
3140 |
# Provide some information about the compiler. |
3141 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3142 |
set X $ac_compile |
3143 |
ac_compiler=$2 |
3144 |
for ac_option in --version -v -V -qversion; do |
3145 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3146 |
case "(($ac_try" in |
3147 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3148 |
*) ac_try_echo=$ac_try;; |
3149 |
esac |
3150 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3151 |
$as_echo "$ac_try_echo"; } >&5 |
3152 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3153 |
ac_status=$? |
3154 |
if test -s conftest.err; then |
3155 |
sed '10a\ |
3156 |
... rest of stderr output deleted ... |
3157 |
10q' conftest.err >conftest.er1 |
3158 |
cat conftest.er1 >&5 |
3159 |
fi |
3160 |
rm -f conftest.er1 conftest.err |
3161 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3162 |
test $ac_status = 0; } |
3163 |
done |
3164 |
|
3165 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3166 |
/* end confdefs.h. */ |
3167 |
|
3168 |
int |
3169 |
main () |
3170 |
{ |
3171 |
|
3172 |
; |
3173 |
return 0; |
3174 |
} |
3175 |
_ACEOF |
3176 |
ac_clean_files_save=$ac_clean_files |
3177 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3178 |
# Try to create an executable without -o first, disregard a.out. |
3179 |
# It will help us diagnose broken compilers, and finding out an intuition |
3180 |
# of exeext. |
3181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3182 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
3183 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3184 |
|
3185 |
# The possible output files: |
3186 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3187 |
|
3188 |
ac_rmfiles= |
3189 |
for ac_file in $ac_files |
3190 |
do |
3191 |
case $ac_file in |
3192 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3193 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3194 |
esac |
3195 |
done |
3196 |
rm -f $ac_rmfiles |
3197 |
|
3198 |
if { { ac_try="$ac_link_default" |
3199 |
case "(($ac_try" in |
3200 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3201 |
*) ac_try_echo=$ac_try;; |
3202 |
esac |
3203 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3204 |
$as_echo "$ac_try_echo"; } >&5 |
3205 |
(eval "$ac_link_default") 2>&5 |
3206 |
ac_status=$? |
3207 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3208 |
test $ac_status = 0; }; then : |
3209 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3210 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3211 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3212 |
# so that the user can short-circuit this test for compilers unknown to |
3213 |
# Autoconf. |
3214 |
for ac_file in $ac_files '' |
3215 |
do |
3216 |
test -f "$ac_file" || continue |
3217 |
case $ac_file in |
3218 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3219 |
;; |
3220 |
[ab].out ) |
3221 |
# We found the default executable, but exeext='' is most |
3222 |
# certainly right. |
3223 |
break;; |
3224 |
*.* ) |
3225 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3226 |
then :; else |
3227 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3228 |
fi |
3229 |
# We set ac_cv_exeext here because the later test for it is not |
3230 |
# safe: cross compilers may not add the suffix if given an `-o' |
3231 |
# argument, so we may need to know it at that point already. |
3232 |
# Even if this section looks crufty: it has the advantage of |
3233 |
# actually working. |
3234 |
break;; |
3235 |
* ) |
3236 |
break;; |
3237 |
esac |
3238 |
done |
3239 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3240 |
|
3241 |
else |
3242 |
ac_file='' |
3243 |
fi |
3244 |
if test -z "$ac_file"; then : |
3245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3246 |
$as_echo "no" >&6; } |
3247 |
$as_echo "$as_me: failed program was:" >&5 |
3248 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3249 |
|
3250 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3251 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3252 |
as_fn_error 77 "C compiler cannot create executables |
3253 |
See \`config.log' for more details" "$LINENO" 5; } |
3254 |
else |
3255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3256 |
$as_echo "yes" >&6; } |
3257 |
fi |
3258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3259 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
3260 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3261 |
$as_echo "$ac_file" >&6; } |
3262 |
ac_exeext=$ac_cv_exeext |
3263 |
|
3264 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3265 |
ac_clean_files=$ac_clean_files_save |
3266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3267 |
$as_echo_n "checking for suffix of executables... " >&6; } |
3268 |
if { { ac_try="$ac_link" |
3269 |
case "(($ac_try" in |
3270 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3271 |
*) ac_try_echo=$ac_try;; |
3272 |
esac |
3273 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3274 |
$as_echo "$ac_try_echo"; } >&5 |
3275 |
(eval "$ac_link") 2>&5 |
3276 |
ac_status=$? |
3277 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3278 |
test $ac_status = 0; }; then : |
3279 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3280 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3281 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3282 |
# `rm'. |
3283 |
for ac_file in conftest.exe conftest conftest.*; do |
3284 |
test -f "$ac_file" || continue |
3285 |
case $ac_file in |
3286 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3287 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3288 |
break;; |
3289 |
* ) break;; |
3290 |
esac |
3291 |
done |
3292 |
else |
3293 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3294 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3295 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3296 |
See \`config.log' for more details" "$LINENO" 5; } |
3297 |
fi |
3298 |
rm -f conftest conftest$ac_cv_exeext |
3299 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3300 |
$as_echo "$ac_cv_exeext" >&6; } |
3301 |
|
3302 |
rm -f conftest.$ac_ext |
3303 |
EXEEXT=$ac_cv_exeext |
3304 |
ac_exeext=$EXEEXT |
3305 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3306 |
/* end confdefs.h. */ |
3307 |
#include <stdio.h> |
3308 |
int |
3309 |
main () |
3310 |
{ |
3311 |
FILE *f = fopen ("conftest.out", "w"); |
3312 |
return ferror (f) || fclose (f) != 0; |
3313 |
|
3314 |
; |
3315 |
return 0; |
3316 |
} |
3317 |
_ACEOF |
3318 |
ac_clean_files="$ac_clean_files conftest.out" |
3319 |
# Check that the compiler produces executables we can run. If not, either |
3320 |
# the compiler is broken, or we cross compile. |
3321 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3322 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3323 |
if test "$cross_compiling" != yes; then |
3324 |
{ { ac_try="$ac_link" |
3325 |
case "(($ac_try" in |
3326 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3327 |
*) ac_try_echo=$ac_try;; |
3328 |
esac |
3329 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3330 |
$as_echo "$ac_try_echo"; } >&5 |
3331 |
(eval "$ac_link") 2>&5 |
3332 |
ac_status=$? |
3333 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3334 |
test $ac_status = 0; } |
3335 |
if { ac_try='./conftest$ac_cv_exeext' |
3336 |
{ { case "(($ac_try" in |
3337 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3338 |
*) ac_try_echo=$ac_try;; |
3339 |
esac |
3340 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3341 |
$as_echo "$ac_try_echo"; } >&5 |
3342 |
(eval "$ac_try") 2>&5 |
3343 |
ac_status=$? |
3344 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3345 |
test $ac_status = 0; }; }; then |
3346 |
cross_compiling=no |
3347 |
else |
3348 |
if test "$cross_compiling" = maybe; then |
3349 |
cross_compiling=yes |
3350 |
else |
3351 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3352 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3353 |
as_fn_error $? "cannot run C compiled programs. |
3354 |
If you meant to cross compile, use \`--host'. |
3355 |
See \`config.log' for more details" "$LINENO" 5; } |
3356 |
fi |
3357 |
fi |
3358 |
fi |
3359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3360 |
$as_echo "$cross_compiling" >&6; } |
3361 |
|
3362 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3363 |
ac_clean_files=$ac_clean_files_save |
3364 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3365 |
$as_echo_n "checking for suffix of object files... " >&6; } |
3366 |
if ${ac_cv_objext+:} false; then : |
3367 |
$as_echo_n "(cached) " >&6 |
3368 |
else |
3369 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3370 |
/* end confdefs.h. */ |
3371 |
|
3372 |
int |
3373 |
main () |
3374 |
{ |
3375 |
|
3376 |
; |
3377 |
return 0; |
3378 |
} |
3379 |
_ACEOF |
3380 |
rm -f conftest.o conftest.obj |
3381 |
if { { ac_try="$ac_compile" |
3382 |
case "(($ac_try" in |
3383 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3384 |
*) ac_try_echo=$ac_try;; |
3385 |
esac |
3386 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3387 |
$as_echo "$ac_try_echo"; } >&5 |
3388 |
(eval "$ac_compile") 2>&5 |
3389 |
ac_status=$? |
3390 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3391 |
test $ac_status = 0; }; then : |
3392 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3393 |
test -f "$ac_file" || continue; |
3394 |
case $ac_file in |
3395 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3396 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3397 |
break;; |
3398 |
esac |
3399 |
done |
3400 |
else |
3401 |
$as_echo "$as_me: failed program was:" >&5 |
3402 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3403 |
|
3404 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3405 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3406 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3407 |
See \`config.log' for more details" "$LINENO" 5; } |
3408 |
fi |
3409 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3410 |
fi |
3411 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3412 |
$as_echo "$ac_cv_objext" >&6; } |
3413 |
OBJEXT=$ac_cv_objext |
3414 |
ac_objext=$OBJEXT |
3415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3416 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3417 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3418 |
$as_echo_n "(cached) " >&6 |
3419 |
else |
3420 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3421 |
/* end confdefs.h. */ |
3422 |
|
3423 |
int |
3424 |
main () |
3425 |
{ |
3426 |
#ifndef __GNUC__ |
3427 |
choke me |
3428 |
#endif |
3429 |
|
3430 |
; |
3431 |
return 0; |
3432 |
} |
3433 |
_ACEOF |
3434 |
if ac_fn_c_try_compile "$LINENO"; then : |
3435 |
ac_compiler_gnu=yes |
3436 |
else |
3437 |
ac_compiler_gnu=no |
3438 |
fi |
3439 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3440 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3441 |
|
3442 |
fi |
3443 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3444 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3445 |
if test $ac_compiler_gnu = yes; then |
3446 |
GCC=yes |
3447 |
else |
3448 |
GCC= |
3449 |
fi |
3450 |
ac_test_CFLAGS=${CFLAGS+set} |
3451 |
ac_save_CFLAGS=$CFLAGS |
3452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3453 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3454 |
if ${ac_cv_prog_cc_g+:} false; then : |
3455 |
$as_echo_n "(cached) " >&6 |
3456 |
else |
3457 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3458 |
ac_c_werror_flag=yes |
3459 |
ac_cv_prog_cc_g=no |
3460 |
CFLAGS="-g" |
3461 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3462 |
/* end confdefs.h. */ |
3463 |
|
3464 |
int |
3465 |
main () |
3466 |
{ |
3467 |
|
3468 |
; |
3469 |
return 0; |
3470 |
} |
3471 |
_ACEOF |
3472 |
if ac_fn_c_try_compile "$LINENO"; then : |
3473 |
ac_cv_prog_cc_g=yes |
3474 |
else |
3475 |
CFLAGS="" |
3476 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3477 |
/* end confdefs.h. */ |
3478 |
|
3479 |
int |
3480 |
main () |
3481 |
{ |
3482 |
|
3483 |
; |
3484 |
return 0; |
3485 |
} |
3486 |
_ACEOF |
3487 |
if ac_fn_c_try_compile "$LINENO"; then : |
3488 |
|
3489 |
else |
3490 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3491 |
CFLAGS="-g" |
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 |
ac_cv_prog_cc_g=yes |
3505 |
fi |
3506 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3507 |
fi |
3508 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3509 |
fi |
3510 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3511 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3512 |
fi |
3513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3514 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3515 |
if test "$ac_test_CFLAGS" = set; then |
3516 |
CFLAGS=$ac_save_CFLAGS |
3517 |
elif test $ac_cv_prog_cc_g = yes; then |
3518 |
if test "$GCC" = yes; then |
3519 |
CFLAGS="-g -O2" |
3520 |
else |
3521 |
CFLAGS="-g" |
3522 |
fi |
3523 |
else |
3524 |
if test "$GCC" = yes; then |
3525 |
CFLAGS="-O2" |
3526 |
else |
3527 |
CFLAGS= |
3528 |
fi |
3529 |
fi |
3530 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3531 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3532 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3533 |
$as_echo_n "(cached) " >&6 |
3534 |
else |
3535 |
ac_cv_prog_cc_c89=no |
3536 |
ac_save_CC=$CC |
3537 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3538 |
/* end confdefs.h. */ |
3539 |
#include <stdarg.h> |
3540 |
#include <stdio.h> |
3541 |
struct stat; |
3542 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3543 |
struct buf { int x; }; |
3544 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3545 |
static char *e (p, i) |
3546 |
char **p; |
3547 |
int i; |
3548 |
{ |
3549 |
return p[i]; |
3550 |
} |
3551 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3552 |
{ |
3553 |
char *s; |
3554 |
va_list v; |
3555 |
va_start (v,p); |
3556 |
s = g (p, va_arg (v,int)); |
3557 |
va_end (v); |
3558 |
return s; |
3559 |
} |
3560 |
|
3561 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3562 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3563 |
These don't provoke an error unfortunately, instead are silently treated |
3564 |
as 'x'. The following induces an error, until -std is added to get |
3565 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3566 |
array size at least. It's necessary to write '\x00'==0 to get something |
3567 |
that's true only with -std. */ |
3568 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3569 |
|
3570 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3571 |
inside strings and character constants. */ |
3572 |
#define FOO(x) 'x' |
3573 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3574 |
|
3575 |
int test (int i, double x); |
3576 |
struct s1 {int (*f) (int a);}; |
3577 |
struct s2 {int (*f) (double a);}; |
3578 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3579 |
int argc; |
3580 |
char **argv; |
3581 |
int |
3582 |
main () |
3583 |
{ |
3584 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3585 |
; |
3586 |
return 0; |
3587 |
} |
3588 |
_ACEOF |
3589 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3590 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3591 |
do |
3592 |
CC="$ac_save_CC $ac_arg" |
3593 |
if ac_fn_c_try_compile "$LINENO"; then : |
3594 |
ac_cv_prog_cc_c89=$ac_arg |
3595 |
fi |
3596 |
rm -f core conftest.err conftest.$ac_objext |
3597 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3598 |
done |
3599 |
rm -f conftest.$ac_ext |
3600 |
CC=$ac_save_CC |
3601 |
|
3602 |
fi |
3603 |
# AC_CACHE_VAL |
3604 |
case "x$ac_cv_prog_cc_c89" in |
3605 |
x) |
3606 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3607 |
$as_echo "none needed" >&6; } ;; |
3608 |
xno) |
3609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3610 |
$as_echo "unsupported" >&6; } ;; |
3611 |
*) |
3612 |
CC="$CC $ac_cv_prog_cc_c89" |
3613 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3614 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3615 |
esac |
3616 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3617 |
|
3618 |
fi |
3619 |
|
3620 |
ac_ext=c |
3621 |
ac_cpp='$CPP $CPPFLAGS' |
3622 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3623 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3624 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3625 |
|
3626 |
ac_ext=c |
3627 |
ac_cpp='$CPP $CPPFLAGS' |
3628 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3629 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3630 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
3632 |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
3633 |
if ${am_cv_prog_cc_c_o+:} false; then : |
3634 |
$as_echo_n "(cached) " >&6 |
3635 |
else |
3636 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3637 |
/* end confdefs.h. */ |
3638 |
|
3639 |
int |
3640 |
main () |
3641 |
{ |
3642 |
|
3643 |
; |
3644 |
return 0; |
3645 |
} |
3646 |
_ACEOF |
3647 |
# Make sure it works both with $CC and with simple cc. |
3648 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
3649 |
# compilers refuse to overwrite an existing .o file with -o, |
3650 |
# though they will create one. |
3651 |
am_cv_prog_cc_c_o=yes |
3652 |
for am_i in 1 2; do |
3653 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
3654 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
3655 |
ac_status=$? |
3656 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3657 |
(exit $ac_status); } \ |
3658 |
&& test -f conftest2.$ac_objext; then |
3659 |
: OK |
3660 |
else |
3661 |
am_cv_prog_cc_c_o=no |
3662 |
break |
3663 |
fi |
3664 |
done |
3665 |
rm -f core conftest* |
3666 |
unset am_i |
3667 |
fi |
3668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3669 |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
3670 |
if test "$am_cv_prog_cc_c_o" != yes; then |
3671 |
# Losing compiler, so override with the script. |
3672 |
# FIXME: It is wrong to rewrite CC. |
3673 |
# But if we don't then we get into trouble of one sort or another. |
3674 |
# A longer-term fix would be to have automake use am__CC in this case, |
3675 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
3676 |
CC="$am_aux_dir/compile $CC" |
3677 |
fi |
3678 |
ac_ext=c |
3679 |
ac_cpp='$CPP $CPPFLAGS' |
3680 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3681 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3682 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3683 |
|
3684 |
|
3685 |
depcc="$CC" am_compiler_list= |
3686 |
|
3687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3688 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
3689 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
3690 |
$as_echo_n "(cached) " >&6 |
3691 |
else |
3692 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3693 |
# We make a subdir and do the tests there. Otherwise we can end up |
3694 |
# making bogus files that we don't know about and never remove. For |
3695 |
# instance it was reported that on HP-UX the gcc test will end up |
3696 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
3697 |
# in D". |
3698 |
rm -rf conftest.dir |
3699 |
mkdir conftest.dir |
3700 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
3701 |
# using a relative directory. |
3702 |
cp "$am_depcomp" conftest.dir |
3703 |
cd conftest.dir |
3704 |
# We will build objects and dependencies in a subdirectory because |
3705 |
# it helps to detect inapplicable dependency modes. For instance |
3706 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
3707 |
# side effect of compilation, but ICC will put the dependencies in |
3708 |
# the current directory while Tru64 will put them in the object |
3709 |
# directory. |
3710 |
mkdir sub |
3711 |
|
3712 |
am_cv_CC_dependencies_compiler_type=none |
3713 |
if test "$am_compiler_list" = ""; then |
3714 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3715 |
fi |
3716 |
am__universal=false |
3717 |
case " $depcc " in #( |
3718 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
3719 |
esac |
3720 |
|
3721 |
for depmode in $am_compiler_list; do |
3722 |
# Setup a source with many dependencies, because some compilers |
3723 |
# like to wrap large dependency lists on column 80 (with \), and |
3724 |
# we should not choose a depcomp mode which is confused by this. |
3725 |
# |
3726 |
# We need to recreate these files for each test, as the compiler may |
3727 |
# overwrite some of them when testing with obscure command lines. |
3728 |
# This happens at least with the AIX C compiler. |
3729 |
: > sub/conftest.c |
3730 |
for i in 1 2 3 4 5 6; do |
3731 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3732 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3733 |
# Solaris 10 /bin/sh. |
3734 |
echo '/* dummy */' > sub/conftst$i.h |
3735 |
done |
3736 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3737 |
|
3738 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
3739 |
# mode. It turns out that the SunPro C++ compiler does not properly |
3740 |
# handle '-M -o', and we need to detect this. Also, some Intel |
3741 |
# versions had trouble with output in subdirs. |
3742 |
am__obj=sub/conftest.${OBJEXT-o} |
3743 |
am__minus_obj="-o $am__obj" |
3744 |
case $depmode in |
3745 |
gcc) |
3746 |
# This depmode causes a compiler race in universal mode. |
3747 |
test "$am__universal" = false || continue |
3748 |
;; |
3749 |
nosideeffect) |
3750 |
# After this tag, mechanisms are not by side-effect, so they'll |
3751 |
# only be used when explicitly requested. |
3752 |
if test "x$enable_dependency_tracking" = xyes; then |
3753 |
continue |
3754 |
else |
3755 |
break |
3756 |
fi |
3757 |
;; |
3758 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3759 |
# This compiler won't grok '-c -o', but also, the minuso test has |
3760 |
# not run yet. These depmodes are late enough in the game, and |
3761 |
# so weak that their functioning should not be impacted. |
3762 |
am__obj=conftest.${OBJEXT-o} |
3763 |
am__minus_obj= |
3764 |
;; |
3765 |
none) break ;; |
3766 |
esac |
3767 |
if depmode=$depmode \ |
3768 |
source=sub/conftest.c object=$am__obj \ |
3769 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3770 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
3771 |
>/dev/null 2>conftest.err && |
3772 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
3773 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3774 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
3775 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3776 |
# icc doesn't choke on unknown options, it will just issue warnings |
3777 |
# or remarks (even with -Werror). So we grep stderr for any message |
3778 |
# that says an option was ignored or not supported. |
3779 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
3780 |
# icc: Command line warning: ignoring option '-M'; no argument required |
3781 |
# The diagnosis changed in icc 8.0: |
3782 |
# icc: Command line remark: option '-MP' not supported |
3783 |
if (grep 'ignoring option' conftest.err || |
3784 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3785 |
am_cv_CC_dependencies_compiler_type=$depmode |
3786 |
break |
3787 |
fi |
3788 |
fi |
3789 |
done |
3790 |
|
3791 |
cd .. |
3792 |
rm -rf conftest.dir |
3793 |
else |
3794 |
am_cv_CC_dependencies_compiler_type=none |
3795 |
fi |
3796 |
|
3797 |
fi |
3798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3799 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
3800 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3801 |
|
3802 |
if |
3803 |
test "x$enable_dependency_tracking" != xno \ |
3804 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3805 |
am__fastdepCC_TRUE= |
3806 |
am__fastdepCC_FALSE='#' |
3807 |
else |
3808 |
am__fastdepCC_TRUE='#' |
3809 |
am__fastdepCC_FALSE= |
3810 |
fi |
3811 |
|
3812 |
|
3813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3814 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
3815 |
if ${ac_cv_prog_cc_c99+:} false; then : |
3816 |
$as_echo_n "(cached) " >&6 |
3817 |
else |
3818 |
ac_cv_prog_cc_c99=no |
3819 |
ac_save_CC=$CC |
3820 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3821 |
/* end confdefs.h. */ |
3822 |
#include <stdarg.h> |
3823 |
#include <stdbool.h> |
3824 |
#include <stdlib.h> |
3825 |
#include <wchar.h> |
3826 |
#include <stdio.h> |
3827 |
|
3828 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
3829 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
3830 |
#define showlist(...) puts (#__VA_ARGS__) |
3831 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
3832 |
static void |
3833 |
test_varargs_macros (void) |
3834 |
{ |
3835 |
int x = 1234; |
3836 |
int y = 5678; |
3837 |
debug ("Flag"); |
3838 |
debug ("X = %d\n", x); |
3839 |
showlist (The first, second, and third items.); |
3840 |
report (x>y, "x is %d but y is %d", x, y); |
3841 |
} |
3842 |
|
3843 |
// Check long long types. |
3844 |
#define BIG64 18446744073709551615ull |
3845 |
#define BIG32 4294967295ul |
3846 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
3847 |
#if !BIG_OK |
3848 |
your preprocessor is broken; |
3849 |
#endif |
3850 |
#if BIG_OK |
3851 |
#else |
3852 |
your preprocessor is broken; |
3853 |
#endif |
3854 |
static long long int bignum = -9223372036854775807LL; |
3855 |
static unsigned long long int ubignum = BIG64; |
3856 |
|
3857 |
struct incomplete_array |
3858 |
{ |
3859 |
int datasize; |
3860 |
double data[]; |
3861 |
}; |
3862 |
|
3863 |
struct named_init { |
3864 |
int number; |
3865 |
const wchar_t *name; |
3866 |
double average; |
3867 |
}; |
3868 |
|
3869 |
typedef const char *ccp; |
3870 |
|
3871 |
static inline int |
3872 |
test_restrict (ccp restrict text) |
3873 |
{ |
3874 |
// See if C++-style comments work. |
3875 |
// Iterate through items via the restricted pointer. |
3876 |
// Also check for declarations in for loops. |
3877 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
3878 |
continue; |
3879 |
return 0; |
3880 |
} |
3881 |
|
3882 |
// Check varargs and va_copy. |
3883 |
static void |
3884 |
test_varargs (const char *format, ...) |
3885 |
{ |
3886 |
va_list args; |
3887 |
va_start (args, format); |
3888 |
va_list args_copy; |
3889 |
va_copy (args_copy, args); |
3890 |
|
3891 |
const char *str; |
3892 |
int number; |
3893 |
float fnumber; |
3894 |
|
3895 |
while (*format) |
3896 |
{ |
3897 |
switch (*format++) |
3898 |
{ |
3899 |
case 's': // string |
3900 |
str = va_arg (args_copy, const char *); |
3901 |
break; |
3902 |
case 'd': // int |
3903 |
number = va_arg (args_copy, int); |
3904 |
break; |
3905 |
case 'f': // float |
3906 |
fnumber = va_arg (args_copy, double); |
3907 |
break; |
3908 |
default: |
3909 |
break; |
3910 |
} |
3911 |
} |
3912 |
va_end (args_copy); |
3913 |
va_end (args); |
3914 |
} |
3915 |
|
3916 |
int |
3917 |
main () |
3918 |
{ |
3919 |
|
3920 |
// Check bool. |
3921 |
_Bool success = false; |
3922 |
|
3923 |
// Check restrict. |
3924 |
if (test_restrict ("String literal") == 0) |
3925 |
success = true; |
3926 |
char *restrict newvar = "Another string"; |
3927 |
|
3928 |
// Check varargs. |
3929 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
3930 |
test_varargs_macros (); |
3931 |
|
3932 |
// Check flexible array members. |
3933 |
struct incomplete_array *ia = |
3934 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
3935 |
ia->datasize = 10; |
3936 |
for (int i = 0; i < ia->datasize; ++i) |
3937 |
ia->data[i] = i * 1.234; |
3938 |
|
3939 |
// Check named initializers. |
3940 |
struct named_init ni = { |
3941 |
.number = 34, |
3942 |
.name = L"Test wide string", |
3943 |
.average = 543.34343, |
3944 |
}; |
3945 |
|
3946 |
ni.number = 58; |
3947 |
|
3948 |
int dynamic_array[ni.number]; |
3949 |
dynamic_array[ni.number - 1] = 543; |
3950 |
|
3951 |
// work around unused variable warnings |
3952 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
3953 |
|| dynamic_array[ni.number - 1] != 543); |
3954 |
|
3955 |
; |
3956 |
return 0; |
3957 |
} |
3958 |
_ACEOF |
3959 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
3960 |
do |
3961 |
CC="$ac_save_CC $ac_arg" |
3962 |
if ac_fn_c_try_compile "$LINENO"; then : |
3963 |
ac_cv_prog_cc_c99=$ac_arg |
3964 |
fi |
3965 |
rm -f core conftest.err conftest.$ac_objext |
3966 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
3967 |
done |
3968 |
rm -f conftest.$ac_ext |
3969 |
CC=$ac_save_CC |
3970 |
|
3971 |
fi |
3972 |
# AC_CACHE_VAL |
3973 |
case "x$ac_cv_prog_cc_c99" in |
3974 |
x) |
3975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3976 |
$as_echo "none needed" >&6; } ;; |
3977 |
xno) |
3978 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3979 |
$as_echo "unsupported" >&6; } ;; |
3980 |
*) |
3981 |
CC="$CC $ac_cv_prog_cc_c99" |
3982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
3983 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
3984 |
esac |
3985 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
3986 |
|
3987 |
fi |
3988 |
|
3989 |
|
3990 |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
3991 |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
3992 |
fi |
3993 |
case `pwd` in |
3994 |
*\ * | *\ *) |
3995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
3996 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3997 |
esac |
3998 |
|
3999 |
|
4000 |
|
4001 |
macro_version='2.4.4' |
4002 |
macro_revision='2.4.4' |
4003 |
|
4004 |
|
4005 |
|
4006 |
|
4007 |
|
4008 |
|
4009 |
|
4010 |
|
4011 |
|
4012 |
|
4013 |
|
4014 |
|
4015 |
|
4016 |
ltmain=$ac_aux_dir/ltmain.sh |
4017 |
|
4018 |
# Make sure we can run config.sub. |
4019 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4020 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
4021 |
|
4022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4023 |
$as_echo_n "checking build system type... " >&6; } |
4024 |
if ${ac_cv_build+:} false; then : |
4025 |
$as_echo_n "(cached) " >&6 |
4026 |
else |
4027 |
ac_build_alias=$build_alias |
4028 |
test "x$ac_build_alias" = x && |
4029 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4030 |
test "x$ac_build_alias" = x && |
4031 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
4032 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4033 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
4034 |
|
4035 |
fi |
4036 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
4037 |
$as_echo "$ac_cv_build" >&6; } |
4038 |
case $ac_cv_build in |
4039 |
*-*-*) ;; |
4040 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
4041 |
esac |
4042 |
build=$ac_cv_build |
4043 |
ac_save_IFS=$IFS; IFS='-' |
4044 |
set x $ac_cv_build |
4045 |
shift |
4046 |
build_cpu=$1 |
4047 |
build_vendor=$2 |
4048 |
shift; shift |
4049 |
# Remember, the first character of IFS is used to create $*, |
4050 |
# except with old shells: |
4051 |
build_os=$* |
4052 |
IFS=$ac_save_IFS |
4053 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4054 |
|
4055 |
|
4056 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4057 |
$as_echo_n "checking host system type... " >&6; } |
4058 |
if ${ac_cv_host+:} false; then : |
4059 |
$as_echo_n "(cached) " >&6 |
4060 |
else |
4061 |
if test "x$host_alias" = x; then |
4062 |
ac_cv_host=$ac_cv_build |
4063 |
else |
4064 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4065 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
4066 |
fi |
4067 |
|
4068 |
fi |
4069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4070 |
$as_echo "$ac_cv_host" >&6; } |
4071 |
case $ac_cv_host in |
4072 |
*-*-*) ;; |
4073 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4074 |
esac |
4075 |
host=$ac_cv_host |
4076 |
ac_save_IFS=$IFS; IFS='-' |
4077 |
set x $ac_cv_host |
4078 |
shift |
4079 |
host_cpu=$1 |
4080 |
host_vendor=$2 |
4081 |
shift; shift |
4082 |
# Remember, the first character of IFS is used to create $*, |
4083 |
# except with old shells: |
4084 |
host_os=$* |
4085 |
IFS=$ac_save_IFS |
4086 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4087 |
|
4088 |
|
4089 |
# Backslashify metacharacters that are still active within |
4090 |
# double-quoted strings. |
4091 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
4092 |
|
4093 |
# Same as above, but do not quote variable references. |
4094 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
4095 |
|
4096 |
# Sed substitution to delay expansion of an escaped shell variable in a |
4097 |
# double_quote_subst'ed string. |
4098 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
4099 |
|
4100 |
# Sed substitution to delay expansion of an escaped single quote. |
4101 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
4102 |
|
4103 |
# Sed substitution to avoid accidental globbing in evaled expressions |
4104 |
no_glob_subst='s/\*/\\\*/g' |
4105 |
|
4106 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4107 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
4108 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
4109 |
|
4110 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
4111 |
$as_echo_n "checking how to print strings... " >&6; } |
4112 |
# Test print first, because it will be a builtin if present. |
4113 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
4114 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4115 |
ECHO='print -r --' |
4116 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
4117 |
ECHO='printf %s\n' |
4118 |
else |
4119 |
# Use this function as a fallback that always works. |
4120 |
func_fallback_echo () |
4121 |
{ |
4122 |
eval 'cat <<_LTECHO_EOF |
4123 |
$1 |
4124 |
_LTECHO_EOF' |
4125 |
} |
4126 |
ECHO='func_fallback_echo' |
4127 |
fi |
4128 |
|
4129 |
# func_echo_all arg... |
4130 |
# Invoke $ECHO with all args, space-separated. |
4131 |
func_echo_all () |
4132 |
{ |
4133 |
$ECHO "" |
4134 |
} |
4135 |
|
4136 |
case $ECHO in |
4137 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4138 |
$as_echo "printf" >&6; } ;; |
4139 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
4140 |
$as_echo "print -r" >&6; } ;; |
4141 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
4142 |
$as_echo "cat" >&6; } ;; |
4143 |
esac |
4144 |
|
4145 |
|
4146 |
|
4147 |
|
4148 |
|
4149 |
|
4150 |
|
4151 |
|
4152 |
|
4153 |
|
4154 |
|
4155 |
|
4156 |
|
4157 |
|
4158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4159 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4160 |
if ${ac_cv_path_SED+:} false; then : |
4161 |
$as_echo_n "(cached) " >&6 |
4162 |
else |
4163 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4164 |
for ac_i in 1 2 3 4 5 6 7; do |
4165 |
ac_script="$ac_script$as_nl$ac_script" |
4166 |
done |
4167 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
4168 |
{ ac_script=; unset ac_script;} |
4169 |
if test -z "$SED"; then |
4170 |
ac_path_SED_found=false |
4171 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4172 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4173 |
for as_dir in $PATH |
4174 |
do |
4175 |
IFS=$as_save_IFS |
4176 |
test -z "$as_dir" && as_dir=. |
4177 |
for ac_prog in sed gsed; do |
4178 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4179 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4180 |
as_fn_executable_p "$ac_path_SED" || continue |
4181 |
# Check for GNU ac_path_SED and select it if it is found. |
4182 |
# Check for GNU $ac_path_SED |
4183 |
case `"$ac_path_SED" --version 2>&1` in |
4184 |
*GNU*) |
4185 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
4186 |
*) |
4187 |
ac_count=0 |
4188 |
$as_echo_n 0123456789 >"conftest.in" |
4189 |
while : |
4190 |
do |
4191 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4192 |
mv "conftest.tmp" "conftest.in" |
4193 |
cp "conftest.in" "conftest.nl" |
4194 |
$as_echo '' >> "conftest.nl" |
4195 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4196 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4197 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4198 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
4199 |
# Best one so far, save it but keep looking for a better one |
4200 |
ac_cv_path_SED="$ac_path_SED" |
4201 |
ac_path_SED_max=$ac_count |
4202 |
fi |
4203 |
# 10*(2^10) chars as input seems more than enough |
4204 |
test $ac_count -gt 10 && break |
4205 |
done |
4206 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4207 |
esac |
4208 |
|
4209 |
$ac_path_SED_found && break 3 |
4210 |
done |
4211 |
done |
4212 |
done |
4213 |
IFS=$as_save_IFS |
4214 |
if test -z "$ac_cv_path_SED"; then |
4215 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
4216 |
fi |
4217 |
else |
4218 |
ac_cv_path_SED=$SED |
4219 |
fi |
4220 |
|
4221 |
fi |
4222 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4223 |
$as_echo "$ac_cv_path_SED" >&6; } |
4224 |
SED="$ac_cv_path_SED" |
4225 |
rm -f conftest.sed |
4226 |
|
4227 |
test -z "$SED" && SED=sed |
4228 |
Xsed="$SED -e 1s/^X//" |
4229 |
|
4230 |
|
4231 |
|
4232 |
|
4233 |
|
4234 |
|
4235 |
|
4236 |
|
4237 |
|
4238 |
|
4239 |
|
4240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4241 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4242 |
if ${ac_cv_path_GREP+:} false; then : |
4243 |
$as_echo_n "(cached) " >&6 |
4244 |
else |
4245 |
if test -z "$GREP"; then |
4246 |
ac_path_GREP_found=false |
4247 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4248 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4249 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4250 |
do |
4251 |
IFS=$as_save_IFS |
4252 |
test -z "$as_dir" && as_dir=. |
4253 |
for ac_prog in grep ggrep; do |
4254 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4255 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4256 |
as_fn_executable_p "$ac_path_GREP" || continue |
4257 |
# Check for GNU ac_path_GREP and select it if it is found. |
4258 |
# Check for GNU $ac_path_GREP |
4259 |
case `"$ac_path_GREP" --version 2>&1` in |
4260 |
*GNU*) |
4261 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4262 |
*) |
4263 |
ac_count=0 |
4264 |
$as_echo_n 0123456789 >"conftest.in" |
4265 |
while : |
4266 |
do |
4267 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4268 |
mv "conftest.tmp" "conftest.in" |
4269 |
cp "conftest.in" "conftest.nl" |
4270 |
$as_echo 'GREP' >> "conftest.nl" |
4271 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4272 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4273 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4274 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4275 |
# Best one so far, save it but keep looking for a better one |
4276 |
ac_cv_path_GREP="$ac_path_GREP" |
4277 |
ac_path_GREP_max=$ac_count |
4278 |
fi |
4279 |
# 10*(2^10) chars as input seems more than enough |
4280 |
test $ac_count -gt 10 && break |
4281 |
done |
4282 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4283 |
esac |
4284 |
|
4285 |
$ac_path_GREP_found && break 3 |
4286 |
done |
4287 |
done |
4288 |
done |
4289 |
IFS=$as_save_IFS |
4290 |
if test -z "$ac_cv_path_GREP"; then |
4291 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4292 |
fi |
4293 |
else |
4294 |
ac_cv_path_GREP=$GREP |
4295 |
fi |
4296 |
|
4297 |
fi |
4298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4299 |
$as_echo "$ac_cv_path_GREP" >&6; } |
4300 |
GREP="$ac_cv_path_GREP" |
4301 |
|
4302 |
|
4303 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4304 |
$as_echo_n "checking for egrep... " >&6; } |
4305 |
if ${ac_cv_path_EGREP+:} false; then : |
4306 |
$as_echo_n "(cached) " >&6 |
4307 |
else |
4308 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4309 |
then ac_cv_path_EGREP="$GREP -E" |
4310 |
else |
4311 |
if test -z "$EGREP"; then |
4312 |
ac_path_EGREP_found=false |
4313 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4314 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4315 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4316 |
do |
4317 |
IFS=$as_save_IFS |
4318 |
test -z "$as_dir" && as_dir=. |
4319 |
for ac_prog in egrep; do |
4320 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4321 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4322 |
as_fn_executable_p "$ac_path_EGREP" || continue |
4323 |
# Check for GNU ac_path_EGREP and select it if it is found. |
4324 |
# Check for GNU $ac_path_EGREP |
4325 |
case `"$ac_path_EGREP" --version 2>&1` in |
4326 |
*GNU*) |
4327 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4328 |
*) |
4329 |
ac_count=0 |
4330 |
$as_echo_n 0123456789 >"conftest.in" |
4331 |
while : |
4332 |
do |
4333 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4334 |
mv "conftest.tmp" "conftest.in" |
4335 |
cp "conftest.in" "conftest.nl" |
4336 |
$as_echo 'EGREP' >> "conftest.nl" |
4337 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4338 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4339 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4340 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4341 |
# Best one so far, save it but keep looking for a better one |
4342 |
ac_cv_path_EGREP="$ac_path_EGREP" |
4343 |
ac_path_EGREP_max=$ac_count |
4344 |
fi |
4345 |
# 10*(2^10) chars as input seems more than enough |
4346 |
test $ac_count -gt 10 && break |
4347 |
done |
4348 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4349 |
esac |
4350 |
|
4351 |
$ac_path_EGREP_found && break 3 |
4352 |
done |
4353 |
done |
4354 |
done |
4355 |
IFS=$as_save_IFS |
4356 |
if test -z "$ac_cv_path_EGREP"; then |
4357 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4358 |
fi |
4359 |
else |
4360 |
ac_cv_path_EGREP=$EGREP |
4361 |
fi |
4362 |
|
4363 |
fi |
4364 |
fi |
4365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4366 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
4367 |
EGREP="$ac_cv_path_EGREP" |
4368 |
|
4369 |
|
4370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4371 |
$as_echo_n "checking for fgrep... " >&6; } |
4372 |
if ${ac_cv_path_FGREP+:} false; then : |
4373 |
$as_echo_n "(cached) " >&6 |
4374 |
else |
4375 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4376 |
then ac_cv_path_FGREP="$GREP -F" |
4377 |
else |
4378 |
if test -z "$FGREP"; then |
4379 |
ac_path_FGREP_found=false |
4380 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4381 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4382 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4383 |
do |
4384 |
IFS=$as_save_IFS |
4385 |
test -z "$as_dir" && as_dir=. |
4386 |
for ac_prog in fgrep; do |
4387 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4388 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4389 |
as_fn_executable_p "$ac_path_FGREP" || continue |
4390 |
# Check for GNU ac_path_FGREP and select it if it is found. |
4391 |
# Check for GNU $ac_path_FGREP |
4392 |
case `"$ac_path_FGREP" --version 2>&1` in |
4393 |
*GNU*) |
4394 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
4395 |
*) |
4396 |
ac_count=0 |
4397 |
$as_echo_n 0123456789 >"conftest.in" |
4398 |
while : |
4399 |
do |
4400 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4401 |
mv "conftest.tmp" "conftest.in" |
4402 |
cp "conftest.in" "conftest.nl" |
4403 |
$as_echo 'FGREP' >> "conftest.nl" |
4404 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4405 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4406 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4407 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4408 |
# Best one so far, save it but keep looking for a better one |
4409 |
ac_cv_path_FGREP="$ac_path_FGREP" |
4410 |
ac_path_FGREP_max=$ac_count |
4411 |
fi |
4412 |
# 10*(2^10) chars as input seems more than enough |
4413 |
test $ac_count -gt 10 && break |
4414 |
done |
4415 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4416 |
esac |
4417 |
|
4418 |
$ac_path_FGREP_found && break 3 |
4419 |
done |
4420 |
done |
4421 |
done |
4422 |
IFS=$as_save_IFS |
4423 |
if test -z "$ac_cv_path_FGREP"; then |
4424 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4425 |
fi |
4426 |
else |
4427 |
ac_cv_path_FGREP=$FGREP |
4428 |
fi |
4429 |
|
4430 |
fi |
4431 |
fi |
4432 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4433 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
4434 |
FGREP="$ac_cv_path_FGREP" |
4435 |
|
4436 |
|
4437 |
test -z "$GREP" && GREP=grep |
4438 |
|
4439 |
|
4440 |
|
4441 |
|
4442 |
|
4443 |
|
4444 |
|
4445 |
|
4446 |
|
4447 |
|
4448 |
|
4449 |
|
4450 |
|
4451 |
|
4452 |
|
4453 |
|
4454 |
|
4455 |
|
4456 |
|
4457 |
# Check whether --with-gnu-ld was given. |
4458 |
if test "${with_gnu_ld+set}" = set; then : |
4459 |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
4460 |
else |
4461 |
with_gnu_ld=no |
4462 |
fi |
4463 |
|
4464 |
ac_prog=ld |
4465 |
if test yes = "$GCC"; then |
4466 |
# Check if gcc -print-prog-name=ld gives a path. |
4467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4468 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
4469 |
case $host in |
4470 |
*-*-mingw*) |
4471 |
# gcc leaves a trailing carriage return, which upsets mingw |
4472 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4473 |
*) |
4474 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4475 |
esac |
4476 |
case $ac_prog in |
4477 |
# Accept absolute paths. |
4478 |
[\\/]* | ?:[\\/]*) |
4479 |
re_direlt='/[^/][^/]*/\.\./' |
4480 |
# Canonicalize the pathname of ld |
4481 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4482 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4483 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4484 |
done |
4485 |
test -z "$LD" && LD=$ac_prog |
4486 |
;; |
4487 |
"") |
4488 |
# If it fails, then pretend we aren't using GCC. |
4489 |
ac_prog=ld |
4490 |
;; |
4491 |
*) |
4492 |
# If it is relative, then search for the first ld in PATH. |
4493 |
with_gnu_ld=unknown |
4494 |
;; |
4495 |
esac |
4496 |
elif test yes = "$with_gnu_ld"; then |
4497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4498 |
$as_echo_n "checking for GNU ld... " >&6; } |
4499 |
else |
4500 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4501 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
4502 |
fi |
4503 |
if ${lt_cv_path_LD+:} false; then : |
4504 |
$as_echo_n "(cached) " >&6 |
4505 |
else |
4506 |
if test -z "$LD"; then |
4507 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4508 |
for ac_dir in $PATH; do |
4509 |
IFS=$lt_save_ifs |
4510 |
test -z "$ac_dir" && ac_dir=. |
4511 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4512 |
lt_cv_path_LD=$ac_dir/$ac_prog |
4513 |
# Check to see if the program is GNU ld. I'd rather use --version, |
4514 |
# but apparently some variants of GNU ld only accept -v. |
4515 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4516 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4517 |
*GNU* | *'with BFD'*) |
4518 |
test no != "$with_gnu_ld" && break |
4519 |
;; |
4520 |
*) |
4521 |
test yes != "$with_gnu_ld" && break |
4522 |
;; |
4523 |
esac |
4524 |
fi |
4525 |
done |
4526 |
IFS=$lt_save_ifs |
4527 |
else |
4528 |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
4529 |
fi |
4530 |
fi |
4531 |
|
4532 |
LD=$lt_cv_path_LD |
4533 |
if test -n "$LD"; then |
4534 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4535 |
$as_echo "$LD" >&6; } |
4536 |
else |
4537 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4538 |
$as_echo "no" >&6; } |
4539 |
fi |
4540 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4542 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4543 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
4544 |
$as_echo_n "(cached) " >&6 |
4545 |
else |
4546 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4547 |
case `$LD -v 2>&1 </dev/null` in |
4548 |
*GNU* | *'with BFD'*) |
4549 |
lt_cv_prog_gnu_ld=yes |
4550 |
;; |
4551 |
*) |
4552 |
lt_cv_prog_gnu_ld=no |
4553 |
;; |
4554 |
esac |
4555 |
fi |
4556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4557 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
4558 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
4559 |
|
4560 |
|
4561 |
|
4562 |
|
4563 |
|
4564 |
|
4565 |
|
4566 |
|
4567 |
|
4568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4569 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
4570 |
if ${lt_cv_path_NM+:} false; then : |
4571 |
$as_echo_n "(cached) " >&6 |
4572 |
else |
4573 |
if test -n "$NM"; then |
4574 |
# Let the user override the test. |
4575 |
lt_cv_path_NM=$NM |
4576 |
else |
4577 |
lt_nm_to_check=${ac_tool_prefix}nm |
4578 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4579 |
lt_nm_to_check="$lt_nm_to_check nm" |
4580 |
fi |
4581 |
for lt_tmp_nm in $lt_nm_to_check; do |
4582 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4583 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4584 |
IFS=$lt_save_ifs |
4585 |
test -z "$ac_dir" && ac_dir=. |
4586 |
tmp_nm=$ac_dir/$lt_tmp_nm |
4587 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
4588 |
# Check to see if the nm accepts a BSD-compat flag. |
4589 |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
4590 |
# nm: unknown option "B" ignored |
4591 |
# Tru64's nm complains that /dev/null is an invalid object file |
4592 |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4593 |
case $build_os in |
4594 |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
4595 |
*) lt_bad_file=/dev/null ;; |
4596 |
esac |
4597 |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
4598 |
*$lt_bad_file* | *'Invalid file or object type'*) |
4599 |
lt_cv_path_NM="$tmp_nm -B" |
4600 |
break 2 |
4601 |
;; |
4602 |
*) |
4603 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4604 |
*/dev/null*) |
4605 |
lt_cv_path_NM="$tmp_nm -p" |
4606 |
break 2 |
4607 |
;; |
4608 |
*) |
4609 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4610 |
continue # so that we can try to find one that supports BSD flags |
4611 |
;; |
4612 |
esac |
4613 |
;; |
4614 |
esac |
4615 |
fi |
4616 |
done |
4617 |
IFS=$lt_save_ifs |
4618 |
done |
4619 |
: ${lt_cv_path_NM=no} |
4620 |
fi |
4621 |
fi |
4622 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4623 |
$as_echo "$lt_cv_path_NM" >&6; } |
4624 |
if test no != "$lt_cv_path_NM"; then |
4625 |
NM=$lt_cv_path_NM |
4626 |
else |
4627 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
4628 |
if test -n "$DUMPBIN"; then : |
4629 |
# Let the user override the test. |
4630 |
else |
4631 |
if test -n "$ac_tool_prefix"; then |
4632 |
for ac_prog in dumpbin "link -dump" |
4633 |
do |
4634 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4635 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4636 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4637 |
$as_echo_n "checking for $ac_word... " >&6; } |
4638 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
4639 |
$as_echo_n "(cached) " >&6 |
4640 |
else |
4641 |
if test -n "$DUMPBIN"; then |
4642 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
4643 |
else |
4644 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4645 |
for as_dir in $PATH |
4646 |
do |
4647 |
IFS=$as_save_IFS |
4648 |
test -z "$as_dir" && as_dir=. |
4649 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4650 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4651 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
4652 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4653 |
break 2 |
4654 |
fi |
4655 |
done |
4656 |
done |
4657 |
IFS=$as_save_IFS |
4658 |
|
4659 |
fi |
4660 |
fi |
4661 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
4662 |
if test -n "$DUMPBIN"; then |
4663 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
4664 |
$as_echo "$DUMPBIN" >&6; } |
4665 |
else |
4666 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4667 |
$as_echo "no" >&6; } |
4668 |
fi |
4669 |
|
4670 |
|
4671 |
test -n "$DUMPBIN" && break |
4672 |
done |
4673 |
fi |
4674 |
if test -z "$DUMPBIN"; then |
4675 |
ac_ct_DUMPBIN=$DUMPBIN |
4676 |
for ac_prog in dumpbin "link -dump" |
4677 |
do |
4678 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4679 |
set dummy $ac_prog; ac_word=$2 |
4680 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4681 |
$as_echo_n "checking for $ac_word... " >&6; } |
4682 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
4683 |
$as_echo_n "(cached) " >&6 |
4684 |
else |
4685 |
if test -n "$ac_ct_DUMPBIN"; then |
4686 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
4687 |
else |
4688 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4689 |
for as_dir in $PATH |
4690 |
do |
4691 |
IFS=$as_save_IFS |
4692 |
test -z "$as_dir" && as_dir=. |
4693 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4694 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4695 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
4696 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4697 |
break 2 |
4698 |
fi |
4699 |
done |
4700 |
done |
4701 |
IFS=$as_save_IFS |
4702 |
|
4703 |
fi |
4704 |
fi |
4705 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4706 |
if test -n "$ac_ct_DUMPBIN"; then |
4707 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
4708 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
4709 |
else |
4710 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4711 |
$as_echo "no" >&6; } |
4712 |
fi |
4713 |
|
4714 |
|
4715 |
test -n "$ac_ct_DUMPBIN" && break |
4716 |
done |
4717 |
|
4718 |
if test "x$ac_ct_DUMPBIN" = x; then |
4719 |
DUMPBIN=":" |
4720 |
else |
4721 |
case $cross_compiling:$ac_tool_warned in |
4722 |
yes:) |
4723 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4724 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4725 |
ac_tool_warned=yes ;; |
4726 |
esac |
4727 |
DUMPBIN=$ac_ct_DUMPBIN |
4728 |
fi |
4729 |
fi |
4730 |
|
4731 |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
4732 |
*COFF*) |
4733 |
DUMPBIN="$DUMPBIN -symbols -headers" |
4734 |
;; |
4735 |
*) |
4736 |
DUMPBIN=: |
4737 |
;; |
4738 |
esac |
4739 |
fi |
4740 |
|
4741 |
if test : != "$DUMPBIN"; then |
4742 |
NM=$DUMPBIN |
4743 |
fi |
4744 |
fi |
4745 |
test -z "$NM" && NM=nm |
4746 |
|
4747 |
|
4748 |
|
4749 |
|
4750 |
|
4751 |
|
4752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
4753 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
4754 |
if ${lt_cv_nm_interface+:} false; then : |
4755 |
$as_echo_n "(cached) " >&6 |
4756 |
else |
4757 |
lt_cv_nm_interface="BSD nm" |
4758 |
echo "int some_variable = 0;" > conftest.$ac_ext |
4759 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
4760 |
(eval "$ac_compile" 2>conftest.err) |
4761 |
cat conftest.err >&5 |
4762 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
4763 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4764 |
cat conftest.err >&5 |
4765 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
4766 |
cat conftest.out >&5 |
4767 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4768 |
lt_cv_nm_interface="MS dumpbin" |
4769 |
fi |
4770 |
rm -f conftest* |
4771 |
fi |
4772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4773 |
$as_echo "$lt_cv_nm_interface" >&6; } |
4774 |
|
4775 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4776 |
$as_echo_n "checking whether ln -s works... " >&6; } |
4777 |
LN_S=$as_ln_s |
4778 |
if test "$LN_S" = "ln -s"; then |
4779 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4780 |
$as_echo "yes" >&6; } |
4781 |
else |
4782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4783 |
$as_echo "no, using $LN_S" >&6; } |
4784 |
fi |
4785 |
|
4786 |
# find the maximum length of command line arguments |
4787 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
4788 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
4789 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
4790 |
$as_echo_n "(cached) " >&6 |
4791 |
else |
4792 |
i=0 |
4793 |
teststring=ABCD |
4794 |
|
4795 |
case $build_os in |
4796 |
msdosdjgpp*) |
4797 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
4798 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
4799 |
# during glob expansion). Even if it were fixed, the result of this |
4800 |
# check would be larger than it should be. |
4801 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
4802 |
;; |
4803 |
|
4804 |
gnu*) |
4805 |
# Under GNU Hurd, this test is not required because there is |
4806 |
# no limit to the length of command line arguments. |
4807 |
# Libtool will interpret -1 as no limit whatsoever |
4808 |
lt_cv_sys_max_cmd_len=-1; |
4809 |
;; |
4810 |
|
4811 |
cygwin* | mingw* | cegcc*) |
4812 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
4813 |
# about 5 minutes as the teststring grows exponentially. |
4814 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
4815 |
# you end up with a "frozen" computer, even though with patience |
4816 |
# the test eventually succeeds (with a max line length of 256k). |
4817 |
# Instead, let's just punt: use the minimum linelength reported by |
4818 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
4819 |
lt_cv_sys_max_cmd_len=8192; |
4820 |
;; |
4821 |
|
4822 |
mint*) |
4823 |
# On MiNT this can take a long time and run out of memory. |
4824 |
lt_cv_sys_max_cmd_len=8192; |
4825 |
;; |
4826 |
|
4827 |
amigaos*) |
4828 |
# On AmigaOS with pdksh, this test takes hours, literally. |
4829 |
# So we just punt and use a minimum line length of 8192. |
4830 |
lt_cv_sys_max_cmd_len=8192; |
4831 |
;; |
4832 |
|
4833 |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
4834 |
# This has been around since 386BSD, at least. Likely further. |
4835 |
if test -x /sbin/sysctl; then |
4836 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
4837 |
elif test -x /usr/sbin/sysctl; then |
4838 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
4839 |
else |
4840 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
4841 |
fi |
4842 |
# And add a safety zone |
4843 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4844 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
4845 |
;; |
4846 |
|
4847 |
interix*) |
4848 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
4849 |
lt_cv_sys_max_cmd_len=196608 |
4850 |
;; |
4851 |
|
4852 |
os2*) |
4853 |
# The test takes a long time on OS/2. |
4854 |
lt_cv_sys_max_cmd_len=8192 |
4855 |
;; |
4856 |
|
4857 |
osf*) |
4858 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
4859 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
4860 |
# nice to cause kernel panics so lets avoid the loop below. |
4861 |
# First set a reasonable default. |
4862 |
lt_cv_sys_max_cmd_len=16384 |
4863 |
# |
4864 |
if test -x /sbin/sysconfig; then |
4865 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
4866 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
4867 |
esac |
4868 |
fi |
4869 |
;; |
4870 |
sco3.2v5*) |
4871 |
lt_cv_sys_max_cmd_len=102400 |
4872 |
;; |
4873 |
sysv5* | sco5v6* | sysv4.2uw2*) |
4874 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
4875 |
if test -n "$kargmax"; then |
4876 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
4877 |
else |
4878 |
lt_cv_sys_max_cmd_len=32768 |
4879 |
fi |
4880 |
;; |
4881 |
*) |
4882 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
4883 |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
4884 |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
4885 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4886 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
4887 |
else |
4888 |
# Make teststring a little bigger before we do anything with it. |
4889 |
# a 1K string should be a reasonable start. |
4890 |
for i in 1 2 3 4 5 6 7 8; do |
4891 |
teststring=$teststring$teststring |
4892 |
done |
4893 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
4894 |
# If test is not a shell built-in, we'll probably end up computing a |
4895 |
# maximum length that is only half of the actual maximum length, but |
4896 |
# we can't tell. |
4897 |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
4898 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
4899 |
test 17 != "$i" # 1/2 MB should be enough |
4900 |
do |
4901 |
i=`expr $i + 1` |
4902 |
teststring=$teststring$teststring |
4903 |
done |
4904 |
# Only check the string length outside the loop. |
4905 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
4906 |
teststring= |
4907 |
# Add a significant safety factor because C++ compilers can tack on |
4908 |
# massive amounts of additional arguments before passing them to the |
4909 |
# linker. It appears as though 1/2 is a usable value. |
4910 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
4911 |
fi |
4912 |
;; |
4913 |
esac |
4914 |
|
4915 |
fi |
4916 |
|
4917 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
4918 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
4919 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4920 |
else |
4921 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4922 |
$as_echo "none" >&6; } |
4923 |
fi |
4924 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
4925 |
|
4926 |
|
4927 |
|
4928 |
|
4929 |
|
4930 |
|
4931 |
: ${CP="cp -f"} |
4932 |
: ${MV="mv -f"} |
4933 |
: ${RM="rm -f"} |
4934 |
|
4935 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4936 |
lt_unset=unset |
4937 |
else |
4938 |
lt_unset=false |
4939 |
fi |
4940 |
|
4941 |
|
4942 |
|
4943 |
|
4944 |
|
4945 |
# test EBCDIC or ASCII |
4946 |
case `echo X|tr X '\101'` in |
4947 |
A) # ASCII based system |
4948 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
4949 |
lt_SP2NL='tr \040 \012' |
4950 |
lt_NL2SP='tr \015\012 \040\040' |
4951 |
;; |
4952 |
*) # EBCDIC based system |
4953 |
lt_SP2NL='tr \100 \n' |
4954 |
lt_NL2SP='tr \r\n \100\100' |
4955 |
;; |
4956 |
esac |
4957 |
|
4958 |
|
4959 |
|
4960 |
|
4961 |
|
4962 |
|
4963 |
|
4964 |
|
4965 |
|
4966 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4967 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
4968 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
4969 |
$as_echo_n "(cached) " >&6 |
4970 |
else |
4971 |
case $host in |
4972 |
*-*-mingw* ) |
4973 |
case $build in |
4974 |
*-*-mingw* ) # actually msys |
4975 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
4976 |
;; |
4977 |
*-*-cygwin* ) |
4978 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
4979 |
;; |
4980 |
* ) # otherwise, assume *nix |
4981 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
4982 |
;; |
4983 |
esac |
4984 |
;; |
4985 |
*-*-cygwin* ) |
4986 |
case $build in |
4987 |
*-*-mingw* ) # actually msys |
4988 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
4989 |
;; |
4990 |
*-*-cygwin* ) |
4991 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
4992 |
;; |
4993 |
* ) # otherwise, assume *nix |
4994 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
4995 |
;; |
4996 |
esac |
4997 |
;; |
4998 |
* ) # unhandled hosts (and "normal" native builds) |
4999 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5000 |
;; |
5001 |
esac |
5002 |
|
5003 |
fi |
5004 |
|
5005 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
5006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
5007 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
5008 |
|
5009 |
|
5010 |
|
5011 |
|
5012 |
|
5013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
5014 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
5015 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
5016 |
$as_echo_n "(cached) " >&6 |
5017 |
else |
5018 |
#assume ordinary cross tools, or native build. |
5019 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
5020 |
case $host in |
5021 |
*-*-mingw* ) |
5022 |
case $build in |
5023 |
*-*-mingw* ) # actually msys |
5024 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
5025 |
;; |
5026 |
esac |
5027 |
;; |
5028 |
esac |
5029 |
|
5030 |
fi |
5031 |
|
5032 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
5033 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
5034 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
5035 |
|
5036 |
|
5037 |
|
5038 |
|
5039 |
|
5040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5041 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
5042 |
if ${lt_cv_ld_reload_flag+:} false; then : |
5043 |
$as_echo_n "(cached) " >&6 |
5044 |
else |
5045 |
lt_cv_ld_reload_flag='-r' |
5046 |
fi |
5047 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5048 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
5049 |
reload_flag=$lt_cv_ld_reload_flag |
5050 |
case $reload_flag in |
5051 |
"" | " "*) ;; |
5052 |
*) reload_flag=" $reload_flag" ;; |
5053 |
esac |
5054 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5055 |
case $host_os in |
5056 |
cygwin* | mingw* | pw32* | cegcc*) |
5057 |
if test yes != "$GCC"; then |
5058 |
reload_cmds=false |
5059 |
fi |
5060 |
;; |
5061 |
darwin*) |
5062 |
if test yes = "$GCC"; then |
5063 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
5064 |
else |
5065 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5066 |
fi |
5067 |
;; |
5068 |
esac |
5069 |
|
5070 |
|
5071 |
|
5072 |
|
5073 |
|
5074 |
|
5075 |
|
5076 |
|
5077 |
|
5078 |
if test -n "$ac_tool_prefix"; then |
5079 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
5080 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
5081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5082 |
$as_echo_n "checking for $ac_word... " >&6; } |
5083 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
5084 |
$as_echo_n "(cached) " >&6 |
5085 |
else |
5086 |
if test -n "$OBJDUMP"; then |
5087 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
5088 |
else |
5089 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5090 |
for as_dir in $PATH |
5091 |
do |
5092 |
IFS=$as_save_IFS |
5093 |
test -z "$as_dir" && as_dir=. |
5094 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5095 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5096 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5097 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5098 |
break 2 |
5099 |
fi |
5100 |
done |
5101 |
done |
5102 |
IFS=$as_save_IFS |
5103 |
|
5104 |
fi |
5105 |
fi |
5106 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
5107 |
if test -n "$OBJDUMP"; then |
5108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5109 |
$as_echo "$OBJDUMP" >&6; } |
5110 |
else |
5111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5112 |
$as_echo "no" >&6; } |
5113 |
fi |
5114 |
|
5115 |
|
5116 |
fi |
5117 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
5118 |
ac_ct_OBJDUMP=$OBJDUMP |
5119 |
# Extract the first word of "objdump", so it can be a program name with args. |
5120 |
set dummy objdump; ac_word=$2 |
5121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5122 |
$as_echo_n "checking for $ac_word... " >&6; } |
5123 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5124 |
$as_echo_n "(cached) " >&6 |
5125 |
else |
5126 |
if test -n "$ac_ct_OBJDUMP"; then |
5127 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
5128 |
else |
5129 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5130 |
for as_dir in $PATH |
5131 |
do |
5132 |
IFS=$as_save_IFS |
5133 |
test -z "$as_dir" && as_dir=. |
5134 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5135 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5136 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5137 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5138 |
break 2 |
5139 |
fi |
5140 |
done |
5141 |
done |
5142 |
IFS=$as_save_IFS |
5143 |
|
5144 |
fi |
5145 |
fi |
5146 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5147 |
if test -n "$ac_ct_OBJDUMP"; then |
5148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5149 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
5150 |
else |
5151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5152 |
$as_echo "no" >&6; } |
5153 |
fi |
5154 |
|
5155 |
if test "x$ac_ct_OBJDUMP" = x; then |
5156 |
OBJDUMP="false" |
5157 |
else |
5158 |
case $cross_compiling:$ac_tool_warned in |
5159 |
yes:) |
5160 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5161 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5162 |
ac_tool_warned=yes ;; |
5163 |
esac |
5164 |
OBJDUMP=$ac_ct_OBJDUMP |
5165 |
fi |
5166 |
else |
5167 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
5168 |
fi |
5169 |
|
5170 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
5171 |
|
5172 |
|
5173 |
|
5174 |
|
5175 |
|
5176 |
|
5177 |
|
5178 |
|
5179 |
|
5180 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5181 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
5182 |
if ${lt_cv_deplibs_check_method+:} false; then : |
5183 |
$as_echo_n "(cached) " >&6 |
5184 |
else |
5185 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
5186 |
lt_cv_file_magic_test_file= |
5187 |
lt_cv_deplibs_check_method='unknown' |
5188 |
# Need to set the preceding variable on all platforms that support |
5189 |
# interlibrary dependencies. |
5190 |
# 'none' -- dependencies not supported. |
5191 |
# 'unknown' -- same as none, but documents that we really don't know. |
5192 |
# 'pass_all' -- all dependencies passed with no checks. |
5193 |
# 'test_compile' -- check by making test program. |
5194 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
5195 |
# that responds to the $file_magic_cmd with a given extended regex. |
5196 |
# If you have 'file' or equivalent on your system and you're not sure |
5197 |
# whether 'pass_all' will *always* work, you probably want this one. |
5198 |
|
5199 |
case $host_os in |
5200 |
aix[4-9]*) |
5201 |
lt_cv_deplibs_check_method=pass_all |
5202 |
;; |
5203 |
|
5204 |
beos*) |
5205 |
lt_cv_deplibs_check_method=pass_all |
5206 |
;; |
5207 |
|
5208 |
bsdi[45]*) |
5209 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5210 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
5211 |
lt_cv_file_magic_test_file=/shlib/libc.so |
5212 |
;; |
5213 |
|
5214 |
cygwin*) |
5215 |
# func_win32_libid is a shell function defined in ltmain.sh |
5216 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5217 |
lt_cv_file_magic_cmd='func_win32_libid' |
5218 |
;; |
5219 |
|
5220 |
mingw* | pw32*) |
5221 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
5222 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
5223 |
# unless we find 'file', for example because we are cross-compiling. |
5224 |
if ( file / ) >/dev/null 2>&1; then |
5225 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5226 |
lt_cv_file_magic_cmd='func_win32_libid' |
5227 |
else |
5228 |
# Keep this pattern in sync with the one in func_win32_libid. |
5229 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
5230 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5231 |
fi |
5232 |
;; |
5233 |
|
5234 |
cegcc*) |
5235 |
# use the weaker test based on 'objdump'. See mingw*. |
5236 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
5237 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5238 |
;; |
5239 |
|
5240 |
darwin* | rhapsody*) |
5241 |
lt_cv_deplibs_check_method=pass_all |
5242 |
;; |
5243 |
|
5244 |
freebsd* | dragonfly*) |
5245 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5246 |
case $host_cpu in |
5247 |
i*86 ) |
5248 |
# Not sure whether the presence of OpenBSD here was a mistake. |
5249 |
# Let's accept both of them until this is cleared up. |
5250 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5251 |
lt_cv_file_magic_cmd=/usr/bin/file |
5252 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5253 |
;; |
5254 |
esac |
5255 |
else |
5256 |
lt_cv_deplibs_check_method=pass_all |
5257 |
fi |
5258 |
;; |
5259 |
|
5260 |
haiku*) |
5261 |
lt_cv_deplibs_check_method=pass_all |
5262 |
;; |
5263 |
|
5264 |
hpux10.20* | hpux11*) |
5265 |
lt_cv_file_magic_cmd=/usr/bin/file |
5266 |
case $host_cpu in |
5267 |
ia64*) |
5268 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5269 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5270 |
;; |
5271 |
hppa*64*) |
5272 |
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]' |
5273 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5274 |
;; |
5275 |
*) |
5276 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
5277 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5278 |
;; |
5279 |
esac |
5280 |
;; |
5281 |
|
5282 |
interix[3-9]*) |
5283 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
5284 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
5285 |
;; |
5286 |
|
5287 |
irix5* | irix6* | nonstopux*) |
5288 |
case $LD in |
5289 |
*-32|*"-32 ") libmagic=32-bit;; |
5290 |
*-n32|*"-n32 ") libmagic=N32;; |
5291 |
*-64|*"-64 ") libmagic=64-bit;; |
5292 |
*) libmagic=never-match;; |
5293 |
esac |
5294 |
lt_cv_deplibs_check_method=pass_all |
5295 |
;; |
5296 |
|
5297 |
# This must be glibc/ELF. |
5298 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5299 |
lt_cv_deplibs_check_method=pass_all |
5300 |
;; |
5301 |
|
5302 |
netbsd*) |
5303 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5304 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5305 |
else |
5306 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5307 |
fi |
5308 |
;; |
5309 |
|
5310 |
newos6*) |
5311 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5312 |
lt_cv_file_magic_cmd=/usr/bin/file |
5313 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5314 |
;; |
5315 |
|
5316 |
*nto* | *qnx*) |
5317 |
lt_cv_deplibs_check_method=pass_all |
5318 |
;; |
5319 |
|
5320 |
openbsd* | bitrig*) |
5321 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
5322 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5323 |
else |
5324 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5325 |
fi |
5326 |
;; |
5327 |
|
5328 |
osf3* | osf4* | osf5*) |
5329 |
lt_cv_deplibs_check_method=pass_all |
5330 |
;; |
5331 |
|
5332 |
rdos*) |
5333 |
lt_cv_deplibs_check_method=pass_all |
5334 |
;; |
5335 |
|
5336 |
solaris*) |
5337 |
lt_cv_deplibs_check_method=pass_all |
5338 |
;; |
5339 |
|
5340 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5341 |
lt_cv_deplibs_check_method=pass_all |
5342 |
;; |
5343 |
|
5344 |
sysv4 | sysv4.3*) |
5345 |
case $host_vendor in |
5346 |
motorola) |
5347 |
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]' |
5348 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5349 |
;; |
5350 |
ncr) |
5351 |
lt_cv_deplibs_check_method=pass_all |
5352 |
;; |
5353 |
sequent) |
5354 |
lt_cv_file_magic_cmd='/bin/file' |
5355 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5356 |
;; |
5357 |
sni) |
5358 |
lt_cv_file_magic_cmd='/bin/file' |
5359 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5360 |
lt_cv_file_magic_test_file=/lib/libc.so |
5361 |
;; |
5362 |
siemens) |
5363 |
lt_cv_deplibs_check_method=pass_all |
5364 |
;; |
5365 |
pc) |
5366 |
lt_cv_deplibs_check_method=pass_all |
5367 |
;; |
5368 |
esac |
5369 |
;; |
5370 |
|
5371 |
tpf*) |
5372 |
lt_cv_deplibs_check_method=pass_all |
5373 |
;; |
5374 |
os2*) |
5375 |
lt_cv_deplibs_check_method=pass_all |
5376 |
;; |
5377 |
esac |
5378 |
|
5379 |
fi |
5380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5381 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
5382 |
|
5383 |
file_magic_glob= |
5384 |
want_nocaseglob=no |
5385 |
if test "$build" = "$host"; then |
5386 |
case $host_os in |
5387 |
mingw* | pw32*) |
5388 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
5389 |
want_nocaseglob=yes |
5390 |
else |
5391 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
5392 |
fi |
5393 |
;; |
5394 |
esac |
5395 |
fi |
5396 |
|
5397 |
file_magic_cmd=$lt_cv_file_magic_cmd |
5398 |
deplibs_check_method=$lt_cv_deplibs_check_method |
5399 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5400 |
|
5401 |
|
5402 |
|
5403 |
|
5404 |
|
5405 |
|
5406 |
|
5407 |
|
5408 |
|
5409 |
|
5410 |
|
5411 |
|
5412 |
|
5413 |
|
5414 |
|
5415 |
|
5416 |
|
5417 |
|
5418 |
|
5419 |
|
5420 |
|
5421 |
|
5422 |
if test -n "$ac_tool_prefix"; then |
5423 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5424 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
5425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5426 |
$as_echo_n "checking for $ac_word... " >&6; } |
5427 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
5428 |
$as_echo_n "(cached) " >&6 |
5429 |
else |
5430 |
if test -n "$DLLTOOL"; then |
5431 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
5432 |
else |
5433 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5434 |
for as_dir in $PATH |
5435 |
do |
5436 |
IFS=$as_save_IFS |
5437 |
test -z "$as_dir" && as_dir=. |
5438 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5439 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5440 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
5441 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5442 |
break 2 |
5443 |
fi |
5444 |
done |
5445 |
done |
5446 |
IFS=$as_save_IFS |
5447 |
|
5448 |
fi |
5449 |
fi |
5450 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
5451 |
if test -n "$DLLTOOL"; then |
5452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
5453 |
$as_echo "$DLLTOOL" >&6; } |
5454 |
else |
5455 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5456 |
$as_echo "no" >&6; } |
5457 |
fi |
5458 |
|
5459 |
|
5460 |
fi |
5461 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
5462 |
ac_ct_DLLTOOL=$DLLTOOL |
5463 |
# Extract the first word of "dlltool", so it can be a program name with args. |
5464 |
set dummy dlltool; ac_word=$2 |
5465 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5466 |
$as_echo_n "checking for $ac_word... " >&6; } |
5467 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
5468 |
$as_echo_n "(cached) " >&6 |
5469 |
else |
5470 |
if test -n "$ac_ct_DLLTOOL"; then |
5471 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
5472 |
else |
5473 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5474 |
for as_dir in $PATH |
5475 |
do |
5476 |
IFS=$as_save_IFS |
5477 |
test -z "$as_dir" && as_dir=. |
5478 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5479 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5480 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
5481 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5482 |
break 2 |
5483 |
fi |
5484 |
done |
5485 |
done |
5486 |
IFS=$as_save_IFS |
5487 |
|
5488 |
fi |
5489 |
fi |
5490 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5491 |
if test -n "$ac_ct_DLLTOOL"; then |
5492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
5493 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
5494 |
else |
5495 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5496 |
$as_echo "no" >&6; } |
5497 |
fi |
5498 |
|
5499 |
if test "x$ac_ct_DLLTOOL" = x; then |
5500 |
DLLTOOL="false" |
5501 |
else |
5502 |
case $cross_compiling:$ac_tool_warned in |
5503 |
yes:) |
5504 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5505 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5506 |
ac_tool_warned=yes ;; |
5507 |
esac |
5508 |
DLLTOOL=$ac_ct_DLLTOOL |
5509 |
fi |
5510 |
else |
5511 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
5512 |
fi |
5513 |
|
5514 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
5515 |
|
5516 |
|
5517 |
|
5518 |
|
5519 |
|
5520 |
|
5521 |
|
5522 |
|
5523 |
|
5524 |
|
5525 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5526 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
5527 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
5528 |
$as_echo_n "(cached) " >&6 |
5529 |
else |
5530 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
5531 |
|
5532 |
case $host_os in |
5533 |
cygwin* | mingw* | pw32* | cegcc*) |
5534 |
# two different shell functions defined in ltmain.sh; |
5535 |
# decide which one to use based on capabilities of $DLLTOOL |
5536 |
case `$DLLTOOL --help 2>&1` in |
5537 |
*--identify-strict*) |
5538 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
5539 |
;; |
5540 |
*) |
5541 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
5542 |
;; |
5543 |
esac |
5544 |
;; |
5545 |
*) |
5546 |
# fallback: assume linklib IS sharedlib |
5547 |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
5548 |
;; |
5549 |
esac |
5550 |
|
5551 |
fi |
5552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5553 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
5554 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
5555 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
5556 |
|
5557 |
|
5558 |
|
5559 |
|
5560 |
|
5561 |
|
5562 |
|
5563 |
|
5564 |
if test -n "$ac_tool_prefix"; then |
5565 |
for ac_prog in ar |
5566 |
do |
5567 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5568 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5570 |
$as_echo_n "checking for $ac_word... " >&6; } |
5571 |
if ${ac_cv_prog_AR+:} false; then : |
5572 |
$as_echo_n "(cached) " >&6 |
5573 |
else |
5574 |
if test -n "$AR"; then |
5575 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
5576 |
else |
5577 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5578 |
for as_dir in $PATH |
5579 |
do |
5580 |
IFS=$as_save_IFS |
5581 |
test -z "$as_dir" && as_dir=. |
5582 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5583 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5584 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
5585 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5586 |
break 2 |
5587 |
fi |
5588 |
done |
5589 |
done |
5590 |
IFS=$as_save_IFS |
5591 |
|
5592 |
fi |
5593 |
fi |
5594 |
AR=$ac_cv_prog_AR |
5595 |
if test -n "$AR"; then |
5596 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5597 |
$as_echo "$AR" >&6; } |
5598 |
else |
5599 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5600 |
$as_echo "no" >&6; } |
5601 |
fi |
5602 |
|
5603 |
|
5604 |
test -n "$AR" && break |
5605 |
done |
5606 |
fi |
5607 |
if test -z "$AR"; then |
5608 |
ac_ct_AR=$AR |
5609 |
for ac_prog in ar |
5610 |
do |
5611 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5612 |
set dummy $ac_prog; ac_word=$2 |
5613 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5614 |
$as_echo_n "checking for $ac_word... " >&6; } |
5615 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5616 |
$as_echo_n "(cached) " >&6 |
5617 |
else |
5618 |
if test -n "$ac_ct_AR"; then |
5619 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5620 |
else |
5621 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5622 |
for as_dir in $PATH |
5623 |
do |
5624 |
IFS=$as_save_IFS |
5625 |
test -z "$as_dir" && as_dir=. |
5626 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5627 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5628 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
5629 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5630 |
break 2 |
5631 |
fi |
5632 |
done |
5633 |
done |
5634 |
IFS=$as_save_IFS |
5635 |
|
5636 |
fi |
5637 |
fi |
5638 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5639 |
if test -n "$ac_ct_AR"; then |
5640 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5641 |
$as_echo "$ac_ct_AR" >&6; } |
5642 |
else |
5643 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5644 |
$as_echo "no" >&6; } |
5645 |
fi |
5646 |
|
5647 |
|
5648 |
test -n "$ac_ct_AR" && break |
5649 |
done |
5650 |
|
5651 |
if test "x$ac_ct_AR" = x; then |
5652 |
AR="false" |
5653 |
else |
5654 |
case $cross_compiling:$ac_tool_warned in |
5655 |
yes:) |
5656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5657 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5658 |
ac_tool_warned=yes ;; |
5659 |
esac |
5660 |
AR=$ac_ct_AR |
5661 |
fi |
5662 |
fi |
5663 |
|
5664 |
: ${AR=ar} |
5665 |
: ${AR_FLAGS=cru} |
5666 |
|
5667 |
|
5668 |
|
5669 |
|
5670 |
|
5671 |
|
5672 |
|
5673 |
|
5674 |
|
5675 |
|
5676 |
|
5677 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5678 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
5679 |
if ${lt_cv_ar_at_file+:} false; then : |
5680 |
$as_echo_n "(cached) " >&6 |
5681 |
else |
5682 |
lt_cv_ar_at_file=no |
5683 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5684 |
/* end confdefs.h. */ |
5685 |
|
5686 |
int |
5687 |
main () |
5688 |
{ |
5689 |
|
5690 |
; |
5691 |
return 0; |
5692 |
} |
5693 |
_ACEOF |
5694 |
if ac_fn_c_try_compile "$LINENO"; then : |
5695 |
echo conftest.$ac_objext > conftest.lst |
5696 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
5697 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
5698 |
(eval $lt_ar_try) 2>&5 |
5699 |
ac_status=$? |
5700 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5701 |
test $ac_status = 0; } |
5702 |
if test 0 -eq "$ac_status"; then |
5703 |
# Ensure the archiver fails upon bogus file names. |
5704 |
rm -f conftest.$ac_objext libconftest.a |
5705 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
5706 |
(eval $lt_ar_try) 2>&5 |
5707 |
ac_status=$? |
5708 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5709 |
test $ac_status = 0; } |
5710 |
if test 0 -ne "$ac_status"; then |
5711 |
lt_cv_ar_at_file=@ |
5712 |
fi |
5713 |
fi |
5714 |
rm -f conftest.* libconftest.a |
5715 |
|
5716 |
fi |
5717 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5718 |
|
5719 |
fi |
5720 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
5721 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
5722 |
|
5723 |
if test no = "$lt_cv_ar_at_file"; then |
5724 |
archiver_list_spec= |
5725 |
else |
5726 |
archiver_list_spec=$lt_cv_ar_at_file |
5727 |
fi |
5728 |
|
5729 |
|
5730 |
|
5731 |
|
5732 |
|
5733 |
|
5734 |
|
5735 |
if test -n "$ac_tool_prefix"; then |
5736 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
5737 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5738 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5739 |
$as_echo_n "checking for $ac_word... " >&6; } |
5740 |
if ${ac_cv_prog_STRIP+:} false; then : |
5741 |
$as_echo_n "(cached) " >&6 |
5742 |
else |
5743 |
if test -n "$STRIP"; then |
5744 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
5745 |
else |
5746 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5747 |
for as_dir in $PATH |
5748 |
do |
5749 |
IFS=$as_save_IFS |
5750 |
test -z "$as_dir" && as_dir=. |
5751 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5752 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5753 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5754 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5755 |
break 2 |
5756 |
fi |
5757 |
done |
5758 |
done |
5759 |
IFS=$as_save_IFS |
5760 |
|
5761 |
fi |
5762 |
fi |
5763 |
STRIP=$ac_cv_prog_STRIP |
5764 |
if test -n "$STRIP"; then |
5765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
5766 |
$as_echo "$STRIP" >&6; } |
5767 |
else |
5768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5769 |
$as_echo "no" >&6; } |
5770 |
fi |
5771 |
|
5772 |
|
5773 |
fi |
5774 |
if test -z "$ac_cv_prog_STRIP"; then |
5775 |
ac_ct_STRIP=$STRIP |
5776 |
# Extract the first word of "strip", so it can be a program name with args. |
5777 |
set dummy strip; ac_word=$2 |
5778 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5779 |
$as_echo_n "checking for $ac_word... " >&6; } |
5780 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5781 |
$as_echo_n "(cached) " >&6 |
5782 |
else |
5783 |
if test -n "$ac_ct_STRIP"; then |
5784 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
5785 |
else |
5786 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5787 |
for as_dir in $PATH |
5788 |
do |
5789 |
IFS=$as_save_IFS |
5790 |
test -z "$as_dir" && as_dir=. |
5791 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5792 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5793 |
ac_cv_prog_ac_ct_STRIP="strip" |
5794 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5795 |
break 2 |
5796 |
fi |
5797 |
done |
5798 |
done |
5799 |
IFS=$as_save_IFS |
5800 |
|
5801 |
fi |
5802 |
fi |
5803 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5804 |
if test -n "$ac_ct_STRIP"; then |
5805 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5806 |
$as_echo "$ac_ct_STRIP" >&6; } |
5807 |
else |
5808 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5809 |
$as_echo "no" >&6; } |
5810 |
fi |
5811 |
|
5812 |
if test "x$ac_ct_STRIP" = x; then |
5813 |
STRIP=":" |
5814 |
else |
5815 |
case $cross_compiling:$ac_tool_warned in |
5816 |
yes:) |
5817 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5818 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5819 |
ac_tool_warned=yes ;; |
5820 |
esac |
5821 |
STRIP=$ac_ct_STRIP |
5822 |
fi |
5823 |
else |
5824 |
STRIP="$ac_cv_prog_STRIP" |
5825 |
fi |
5826 |
|
5827 |
test -z "$STRIP" && STRIP=: |
5828 |
|
5829 |
|
5830 |
|
5831 |
|
5832 |
|
5833 |
|
5834 |
if test -n "$ac_tool_prefix"; then |
5835 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5836 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5837 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5838 |
$as_echo_n "checking for $ac_word... " >&6; } |
5839 |
if ${ac_cv_prog_RANLIB+:} false; then : |
5840 |
$as_echo_n "(cached) " >&6 |
5841 |
else |
5842 |
if test -n "$RANLIB"; then |
5843 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5844 |
else |
5845 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5846 |
for as_dir in $PATH |
5847 |
do |
5848 |
IFS=$as_save_IFS |
5849 |
test -z "$as_dir" && as_dir=. |
5850 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5851 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5852 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5853 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5854 |
break 2 |
5855 |
fi |
5856 |
done |
5857 |
done |
5858 |
IFS=$as_save_IFS |
5859 |
|
5860 |
fi |
5861 |
fi |
5862 |
RANLIB=$ac_cv_prog_RANLIB |
5863 |
if test -n "$RANLIB"; then |
5864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5865 |
$as_echo "$RANLIB" >&6; } |
5866 |
else |
5867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5868 |
$as_echo "no" >&6; } |
5869 |
fi |
5870 |
|
5871 |
|
5872 |
fi |
5873 |
if test -z "$ac_cv_prog_RANLIB"; then |
5874 |
ac_ct_RANLIB=$RANLIB |
5875 |
# Extract the first word of "ranlib", so it can be a program name with args. |
5876 |
set dummy ranlib; ac_word=$2 |
5877 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5878 |
$as_echo_n "checking for $ac_word... " >&6; } |
5879 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5880 |
$as_echo_n "(cached) " >&6 |
5881 |
else |
5882 |
if test -n "$ac_ct_RANLIB"; then |
5883 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5884 |
else |
5885 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5886 |
for as_dir in $PATH |
5887 |
do |
5888 |
IFS=$as_save_IFS |
5889 |
test -z "$as_dir" && as_dir=. |
5890 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5891 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5892 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
5893 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5894 |
break 2 |
5895 |
fi |
5896 |
done |
5897 |
done |
5898 |
IFS=$as_save_IFS |
5899 |
|
5900 |
fi |
5901 |
fi |
5902 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5903 |
if test -n "$ac_ct_RANLIB"; then |
5904 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5905 |
$as_echo "$ac_ct_RANLIB" >&6; } |
5906 |
else |
5907 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5908 |
$as_echo "no" >&6; } |
5909 |
fi |
5910 |
|
5911 |
if test "x$ac_ct_RANLIB" = x; then |
5912 |
RANLIB=":" |
5913 |
else |
5914 |
case $cross_compiling:$ac_tool_warned in |
5915 |
yes:) |
5916 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5917 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5918 |
ac_tool_warned=yes ;; |
5919 |
esac |
5920 |
RANLIB=$ac_ct_RANLIB |
5921 |
fi |
5922 |
else |
5923 |
RANLIB="$ac_cv_prog_RANLIB" |
5924 |
fi |
5925 |
|
5926 |
test -z "$RANLIB" && RANLIB=: |
5927 |
|
5928 |
|
5929 |
|
5930 |
|
5931 |
|
5932 |
|
5933 |
# Determine commands to create old-style static archives. |
5934 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
5935 |
old_postinstall_cmds='chmod 644 $oldlib' |
5936 |
old_postuninstall_cmds= |
5937 |
|
5938 |
if test -n "$RANLIB"; then |
5939 |
case $host_os in |
5940 |
bitrig* | openbsd*) |
5941 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
5942 |
;; |
5943 |
*) |
5944 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
5945 |
;; |
5946 |
esac |
5947 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
5948 |
fi |
5949 |
|
5950 |
case $host_os in |
5951 |
darwin*) |
5952 |
lock_old_archive_extraction=yes ;; |
5953 |
*) |
5954 |
lock_old_archive_extraction=no ;; |
5955 |
esac |
5956 |
|
5957 |
|
5958 |
|
5959 |
|
5960 |
|
5961 |
|
5962 |
|
5963 |
|
5964 |
|
5965 |
|
5966 |
|
5967 |
|
5968 |
|
5969 |
|
5970 |
|
5971 |
|
5972 |
|
5973 |
|
5974 |
|
5975 |
|
5976 |
|
5977 |
|
5978 |
|
5979 |
|
5980 |
|
5981 |
|
5982 |
|
5983 |
|
5984 |
|
5985 |
|
5986 |
|
5987 |
|
5988 |
|
5989 |
|
5990 |
|
5991 |
|
5992 |
|
5993 |
|
5994 |
|
5995 |
# If no C compiler was specified, use CC. |
5996 |
LTCC=${LTCC-"$CC"} |
5997 |
|
5998 |
# If no C compiler flags were specified, use CFLAGS. |
5999 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6000 |
|
6001 |
# Allow CC to be a program name with arguments. |
6002 |
compiler=$CC |
6003 |
|
6004 |
|
6005 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
6006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6007 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
6008 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6009 |
$as_echo_n "(cached) " >&6 |
6010 |
else |
6011 |
|
6012 |
# These are sane defaults that work on at least a few old systems. |
6013 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6014 |
|
6015 |
# Character class describing NM global symbol codes. |
6016 |
symcode='[BCDEGRST]' |
6017 |
|
6018 |
# Regexp to match symbols that can be accessed directly from C. |
6019 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6020 |
|
6021 |
# Define system-specific variables. |
6022 |
case $host_os in |
6023 |
aix*) |
6024 |
symcode='[BCDT]' |
6025 |
;; |
6026 |
cygwin* | mingw* | pw32* | cegcc*) |
6027 |
symcode='[ABCDGISTW]' |
6028 |
;; |
6029 |
hpux*) |
6030 |
if test ia64 = "$host_cpu"; then |
6031 |
symcode='[ABCDEGRST]' |
6032 |
fi |
6033 |
;; |
6034 |
irix* | nonstopux*) |
6035 |
symcode='[BCDEGRST]' |
6036 |
;; |
6037 |
osf*) |
6038 |
symcode='[BCDEGQRST]' |
6039 |
;; |
6040 |
solaris*) |
6041 |
symcode='[BDRT]' |
6042 |
;; |
6043 |
sco3.2v5*) |
6044 |
symcode='[DT]' |
6045 |
;; |
6046 |
sysv4.2uw2*) |
6047 |
symcode='[DT]' |
6048 |
;; |
6049 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6050 |
symcode='[ABDT]' |
6051 |
;; |
6052 |
sysv4) |
6053 |
symcode='[DFNSTU]' |
6054 |
;; |
6055 |
esac |
6056 |
|
6057 |
# If we're using GNU nm, then use its standard symbol codes. |
6058 |
case `$NM -V 2>&1` in |
6059 |
*GNU* | *'with BFD'*) |
6060 |
symcode='[ABCDGIRSTW]' ;; |
6061 |
esac |
6062 |
|
6063 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6064 |
# Gets list of data symbols to import. |
6065 |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
6066 |
# Adjust the below global symbol transforms to fixup imported variables. |
6067 |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
6068 |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
6069 |
lt_c_name_lib_hook="\ |
6070 |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
6071 |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
6072 |
else |
6073 |
# Disable hooks by default. |
6074 |
lt_cv_sys_global_symbol_to_import= |
6075 |
lt_cdecl_hook= |
6076 |
lt_c_name_hook= |
6077 |
lt_c_name_lib_hook= |
6078 |
fi |
6079 |
|
6080 |
# Transform an extracted symbol line into a proper C declaration. |
6081 |
# Some systems (esp. on ia64) link data and code symbols differently, |
6082 |
# so use this general approach. |
6083 |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6084 |
$lt_cdecl_hook\ |
6085 |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
6086 |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
6087 |
|
6088 |
# Transform an extracted symbol line into symbol name and symbol address |
6089 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6090 |
$lt_c_name_hook\ |
6091 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6092 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
6093 |
|
6094 |
# Transform an extracted symbol line into symbol name with lib prefix and |
6095 |
# symbol address. |
6096 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
6097 |
$lt_c_name_lib_hook\ |
6098 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6099 |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
6100 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
6101 |
|
6102 |
# Handle CRLF in mingw tool chain |
6103 |
opt_cr= |
6104 |
case $build_os in |
6105 |
mingw*) |
6106 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6107 |
;; |
6108 |
esac |
6109 |
|
6110 |
# Try without a prefix underscore, then with it. |
6111 |
for ac_symprfx in "" "_"; do |
6112 |
|
6113 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6114 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
6115 |
|
6116 |
# Write the raw and C identifiers. |
6117 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6118 |
# Fake it for dumpbin and say T for any non-static function, |
6119 |
# D for any global variable and I for any imported variable. |
6120 |
# Also find C++ and __fastcall symbols from MSVC++, |
6121 |
# which start with @ or ?. |
6122 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6123 |
" {last_section=section; section=\$ 3};"\ |
6124 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
6125 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6126 |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6127 |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
6128 |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
6129 |
" \$ 0!~/External *\|/{next};"\ |
6130 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6131 |
" {if(hide[section]) next};"\ |
6132 |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6133 |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
6134 |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
6135 |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
6136 |
" ' prfx=^$ac_symprfx" |
6137 |
else |
6138 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6139 |
fi |
6140 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
6141 |
|
6142 |
# Check to see that the pipe works correctly. |
6143 |
pipe_works=no |
6144 |
|
6145 |
rm -f conftest* |
6146 |
cat > conftest.$ac_ext <<_LT_EOF |
6147 |
#ifdef __cplusplus |
6148 |
extern "C" { |
6149 |
#endif |
6150 |
char nm_test_var; |
6151 |
void nm_test_func(void); |
6152 |
void nm_test_func(void){} |
6153 |
#ifdef __cplusplus |
6154 |
} |
6155 |
#endif |
6156 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
6157 |
_LT_EOF |
6158 |
|
6159 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6160 |
(eval $ac_compile) 2>&5 |
6161 |
ac_status=$? |
6162 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6163 |
test $ac_status = 0; }; then |
6164 |
# Now try to grab the symbols. |
6165 |
nlist=conftest.nm |
6166 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6167 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
6168 |
ac_status=$? |
6169 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6170 |
test $ac_status = 0; } && test -s "$nlist"; then |
6171 |
# Try sorting and uniquifying the output. |
6172 |
if sort "$nlist" | uniq > "$nlist"T; then |
6173 |
mv -f "$nlist"T "$nlist" |
6174 |
else |
6175 |
rm -f "$nlist"T |
6176 |
fi |
6177 |
|
6178 |
# Make sure that we snagged all the symbols we need. |
6179 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6180 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6181 |
cat <<_LT_EOF > conftest.$ac_ext |
6182 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6183 |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6184 |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
6185 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6186 |
# define LT_DLSYM_CONST |
6187 |
#elif defined __osf__ |
6188 |
/* This system does not cope well with relocations in const data. */ |
6189 |
# define LT_DLSYM_CONST |
6190 |
#else |
6191 |
# define LT_DLSYM_CONST const |
6192 |
#endif |
6193 |
|
6194 |
#ifdef __cplusplus |
6195 |
extern "C" { |
6196 |
#endif |
6197 |
|
6198 |
_LT_EOF |
6199 |
# Now generate the symbol file. |
6200 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6201 |
|
6202 |
cat <<_LT_EOF >> conftest.$ac_ext |
6203 |
|
6204 |
/* The mapping between symbol names and symbols. */ |
6205 |
LT_DLSYM_CONST struct { |
6206 |
const char *name; |
6207 |
void *address; |
6208 |
} |
6209 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
6210 |
{ |
6211 |
{ "@PROGRAM@", (void *) 0 }, |
6212 |
_LT_EOF |
6213 |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6214 |
cat <<\_LT_EOF >> conftest.$ac_ext |
6215 |
{0, (void *) 0} |
6216 |
}; |
6217 |
|
6218 |
/* This works around a problem in FreeBSD linker */ |
6219 |
#ifdef FREEBSD_WORKAROUND |
6220 |
static const void *lt_preloaded_setup() { |
6221 |
return lt__PROGRAM__LTX_preloaded_symbols; |
6222 |
} |
6223 |
#endif |
6224 |
|
6225 |
#ifdef __cplusplus |
6226 |
} |
6227 |
#endif |
6228 |
_LT_EOF |
6229 |
# Now try linking the two files. |
6230 |
mv conftest.$ac_objext conftstm.$ac_objext |
6231 |
lt_globsym_save_LIBS=$LIBS |
6232 |
lt_globsym_save_CFLAGS=$CFLAGS |
6233 |
LIBS=conftstm.$ac_objext |
6234 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6235 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6236 |
(eval $ac_link) 2>&5 |
6237 |
ac_status=$? |
6238 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6239 |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
6240 |
pipe_works=yes |
6241 |
fi |
6242 |
LIBS=$lt_globsym_save_LIBS |
6243 |
CFLAGS=$lt_globsym_save_CFLAGS |
6244 |
else |
6245 |
echo "cannot find nm_test_func in $nlist" >&5 |
6246 |
fi |
6247 |
else |
6248 |
echo "cannot find nm_test_var in $nlist" >&5 |
6249 |
fi |
6250 |
else |
6251 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6252 |
fi |
6253 |
else |
6254 |
echo "$progname: failed program was:" >&5 |
6255 |
cat conftest.$ac_ext >&5 |
6256 |
fi |
6257 |
rm -rf conftest* conftst* |
6258 |
|
6259 |
# Do not use the global_symbol_pipe unless it works. |
6260 |
if test yes = "$pipe_works"; then |
6261 |
break |
6262 |
else |
6263 |
lt_cv_sys_global_symbol_pipe= |
6264 |
fi |
6265 |
done |
6266 |
|
6267 |
fi |
6268 |
|
6269 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6270 |
lt_cv_sys_global_symbol_to_cdecl= |
6271 |
fi |
6272 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6274 |
$as_echo "failed" >&6; } |
6275 |
else |
6276 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6277 |
$as_echo "ok" >&6; } |
6278 |
fi |
6279 |
|
6280 |
# Response file support. |
6281 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6282 |
nm_file_list_spec='@' |
6283 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
6284 |
nm_file_list_spec='@' |
6285 |
fi |
6286 |
|
6287 |
|
6288 |
|
6289 |
|
6290 |
|
6291 |
|
6292 |
|
6293 |
|
6294 |
|
6295 |
|
6296 |
|
6297 |
|
6298 |
|
6299 |
|
6300 |
|
6301 |
|
6302 |
|
6303 |
|
6304 |
|
6305 |
|
6306 |
|
6307 |
|
6308 |
|
6309 |
|
6310 |
|
6311 |
|
6312 |
|
6313 |
|
6314 |
|
6315 |
|
6316 |
|
6317 |
|
6318 |
|
6319 |
|
6320 |
|
6321 |
|
6322 |
|
6323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6324 |
$as_echo_n "checking for sysroot... " >&6; } |
6325 |
|
6326 |
# Check whether --with-sysroot was given. |
6327 |
if test "${with_sysroot+set}" = set; then : |
6328 |
withval=$with_sysroot; |
6329 |
else |
6330 |
with_sysroot=no |
6331 |
fi |
6332 |
|
6333 |
|
6334 |
lt_sysroot= |
6335 |
case $with_sysroot in #( |
6336 |
yes) |
6337 |
if test yes = "$GCC"; then |
6338 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6339 |
fi |
6340 |
;; #( |
6341 |
/*) |
6342 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
6343 |
;; #( |
6344 |
no|'') |
6345 |
;; #( |
6346 |
*) |
6347 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6348 |
$as_echo "$with_sysroot" >&6; } |
6349 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6350 |
;; |
6351 |
esac |
6352 |
|
6353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6354 |
$as_echo "${lt_sysroot:-no}" >&6; } |
6355 |
|
6356 |
|
6357 |
|
6358 |
|
6359 |
|
6360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6361 |
$as_echo_n "checking for a working dd... " >&6; } |
6362 |
if ${ac_cv_path_lt_DD+:} false; then : |
6363 |
$as_echo_n "(cached) " >&6 |
6364 |
else |
6365 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6366 |
cat conftest.i conftest.i >conftest2.i |
6367 |
: ${lt_DD:=$DD} |
6368 |
if test -z "$lt_DD"; then |
6369 |
ac_path_lt_DD_found=false |
6370 |
# Loop through the user's path and test for each of PROGNAME-LIST |
6371 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6372 |
for as_dir in $PATH |
6373 |
do |
6374 |
IFS=$as_save_IFS |
6375 |
test -z "$as_dir" && as_dir=. |
6376 |
for ac_prog in dd; do |
6377 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6378 |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
6379 |
as_fn_executable_p "$ac_path_lt_DD" || continue |
6380 |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6381 |
cmp -s conftest.i conftest.out \ |
6382 |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
6383 |
fi |
6384 |
$ac_path_lt_DD_found && break 3 |
6385 |
done |
6386 |
done |
6387 |
done |
6388 |
IFS=$as_save_IFS |
6389 |
if test -z "$ac_cv_path_lt_DD"; then |
6390 |
: |
6391 |
fi |
6392 |
else |
6393 |
ac_cv_path_lt_DD=$lt_DD |
6394 |
fi |
6395 |
|
6396 |
rm -f conftest.i conftest2.i conftest.out |
6397 |
fi |
6398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
6399 |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
6400 |
|
6401 |
|
6402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
6403 |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
6404 |
if ${lt_cv_truncate_bin+:} false; then : |
6405 |
$as_echo_n "(cached) " >&6 |
6406 |
else |
6407 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6408 |
cat conftest.i conftest.i >conftest2.i |
6409 |
lt_cv_truncate_bin= |
6410 |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6411 |
cmp -s conftest.i conftest.out \ |
6412 |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
6413 |
fi |
6414 |
rm -f conftest.i conftest2.i conftest.out |
6415 |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
6416 |
fi |
6417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
6418 |
$as_echo "$lt_cv_truncate_bin" >&6; } |
6419 |
|
6420 |
|
6421 |
|
6422 |
|
6423 |
|
6424 |
|
6425 |
# Check whether --enable-libtool-lock was given. |
6426 |
if test "${enable_libtool_lock+set}" = set; then : |
6427 |
enableval=$enable_libtool_lock; |
6428 |
fi |
6429 |
|
6430 |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
6431 |
|
6432 |
# Some flags need to be propagated to the compiler or linker for good |
6433 |
# libtool support. |
6434 |
case $host in |
6435 |
ia64-*-hpux*) |
6436 |
# Find out what ABI is being produced by ac_compile, and set mode |
6437 |
# options accordingly. |
6438 |
echo 'int i;' > conftest.$ac_ext |
6439 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6440 |
(eval $ac_compile) 2>&5 |
6441 |
ac_status=$? |
6442 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6443 |
test $ac_status = 0; }; then |
6444 |
case `/usr/bin/file conftest.$ac_objext` in |
6445 |
*ELF-32*) |
6446 |
HPUX_IA64_MODE=32 |
6447 |
;; |
6448 |
*ELF-64*) |
6449 |
HPUX_IA64_MODE=64 |
6450 |
;; |
6451 |
esac |
6452 |
fi |
6453 |
rm -rf conftest* |
6454 |
;; |
6455 |
*-*-irix6*) |
6456 |
# Find out what ABI is being produced by ac_compile, and set linker |
6457 |
# options accordingly. |
6458 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6459 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6460 |
(eval $ac_compile) 2>&5 |
6461 |
ac_status=$? |
6462 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6463 |
test $ac_status = 0; }; then |
6464 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
6465 |
case `/usr/bin/file conftest.$ac_objext` in |
6466 |
*32-bit*) |
6467 |
LD="${LD-ld} -melf32bsmip" |
6468 |
;; |
6469 |
*N32*) |
6470 |
LD="${LD-ld} -melf32bmipn32" |
6471 |
;; |
6472 |
*64-bit*) |
6473 |
LD="${LD-ld} -melf64bmip" |
6474 |
;; |
6475 |
esac |
6476 |
else |
6477 |
case `/usr/bin/file conftest.$ac_objext` in |
6478 |
*32-bit*) |
6479 |
LD="${LD-ld} -32" |
6480 |
;; |
6481 |
*N32*) |
6482 |
LD="${LD-ld} -n32" |
6483 |
;; |
6484 |
*64-bit*) |
6485 |
LD="${LD-ld} -64" |
6486 |
;; |
6487 |
esac |
6488 |
fi |
6489 |
fi |
6490 |
rm -rf conftest* |
6491 |
;; |
6492 |
|
6493 |
mips64*-*linux*) |
6494 |
# Find out what ABI is being produced by ac_compile, and set linker |
6495 |
# options accordingly. |
6496 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6497 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6498 |
(eval $ac_compile) 2>&5 |
6499 |
ac_status=$? |
6500 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6501 |
test $ac_status = 0; }; then |
6502 |
emul=elf |
6503 |
case `/usr/bin/file conftest.$ac_objext` in |
6504 |
*32-bit*) |
6505 |
emul="${emul}32" |
6506 |
;; |
6507 |
*64-bit*) |
6508 |
emul="${emul}64" |
6509 |
;; |
6510 |
esac |
6511 |
case `/usr/bin/file conftest.$ac_objext` in |
6512 |
*MSB*) |
6513 |
emul="${emul}btsmip" |
6514 |
;; |
6515 |
*LSB*) |
6516 |
emul="${emul}ltsmip" |
6517 |
;; |
6518 |
esac |
6519 |
case `/usr/bin/file conftest.$ac_objext` in |
6520 |
*N32*) |
6521 |
emul="${emul}n32" |
6522 |
;; |
6523 |
esac |
6524 |
LD="${LD-ld} -m $emul" |
6525 |
fi |
6526 |
rm -rf conftest* |
6527 |
;; |
6528 |
|
6529 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
6530 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6531 |
# Find out what ABI is being produced by ac_compile, and set linker |
6532 |
# options accordingly. Note that the listed cases only cover the |
6533 |
# situations where additional linker options are needed (such as when |
6534 |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
6535 |
# vice versa); the common cases where no linker options are needed do |
6536 |
# not appear in the list. |
6537 |
echo 'int i;' > conftest.$ac_ext |
6538 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6539 |
(eval $ac_compile) 2>&5 |
6540 |
ac_status=$? |
6541 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6542 |
test $ac_status = 0; }; then |
6543 |
case `/usr/bin/file conftest.o` in |
6544 |
*32-bit*) |
6545 |
case $host in |
6546 |
x86_64-*kfreebsd*-gnu) |
6547 |
LD="${LD-ld} -m elf_i386_fbsd" |
6548 |
;; |
6549 |
x86_64-*linux*) |
6550 |
case `/usr/bin/file conftest.o` in |
6551 |
*x86-64*) |
6552 |
LD="${LD-ld} -m elf32_x86_64" |
6553 |
;; |
6554 |
*) |
6555 |
LD="${LD-ld} -m elf_i386" |
6556 |
;; |
6557 |
esac |
6558 |
;; |
6559 |
powerpc64le-*linux*) |
6560 |
LD="${LD-ld} -m elf32lppclinux" |
6561 |
;; |
6562 |
powerpc64-*linux*) |
6563 |
LD="${LD-ld} -m elf32ppclinux" |
6564 |
;; |
6565 |
s390x-*linux*) |
6566 |
LD="${LD-ld} -m elf_s390" |
6567 |
;; |
6568 |
sparc64-*linux*) |
6569 |
LD="${LD-ld} -m elf32_sparc" |
6570 |
;; |
6571 |
esac |
6572 |
;; |
6573 |
*64-bit*) |
6574 |
case $host in |
6575 |
x86_64-*kfreebsd*-gnu) |
6576 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
6577 |
;; |
6578 |
x86_64-*linux*) |
6579 |
LD="${LD-ld} -m elf_x86_64" |
6580 |
;; |
6581 |
powerpcle-*linux*) |
6582 |
LD="${LD-ld} -m elf64lppc" |
6583 |
;; |
6584 |
powerpc-*linux*) |
6585 |
LD="${LD-ld} -m elf64ppc" |
6586 |
;; |
6587 |
s390*-*linux*|s390*-*tpf*) |
6588 |
LD="${LD-ld} -m elf64_s390" |
6589 |
;; |
6590 |
sparc*-*linux*) |
6591 |
LD="${LD-ld} -m elf64_sparc" |
6592 |
;; |
6593 |
esac |
6594 |
;; |
6595 |
esac |
6596 |
fi |
6597 |
rm -rf conftest* |
6598 |
;; |
6599 |
|
6600 |
*-*-sco3.2v5*) |
6601 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
6602 |
SAVE_CFLAGS=$CFLAGS |
6603 |
CFLAGS="$CFLAGS -belf" |
6604 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6605 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
6606 |
if ${lt_cv_cc_needs_belf+:} false; then : |
6607 |
$as_echo_n "(cached) " >&6 |
6608 |
else |
6609 |
ac_ext=c |
6610 |
ac_cpp='$CPP $CPPFLAGS' |
6611 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6612 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6613 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6614 |
|
6615 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6616 |
/* end confdefs.h. */ |
6617 |
|
6618 |
int |
6619 |
main () |
6620 |
{ |
6621 |
|
6622 |
; |
6623 |
return 0; |
6624 |
} |
6625 |
_ACEOF |
6626 |
if ac_fn_c_try_link "$LINENO"; then : |
6627 |
lt_cv_cc_needs_belf=yes |
6628 |
else |
6629 |
lt_cv_cc_needs_belf=no |
6630 |
fi |
6631 |
rm -f core conftest.err conftest.$ac_objext \ |
6632 |
conftest$ac_exeext conftest.$ac_ext |
6633 |
ac_ext=c |
6634 |
ac_cpp='$CPP $CPPFLAGS' |
6635 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6636 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6637 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6638 |
|
6639 |
fi |
6640 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6641 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
6642 |
if test yes != "$lt_cv_cc_needs_belf"; then |
6643 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6644 |
CFLAGS=$SAVE_CFLAGS |
6645 |
fi |
6646 |
;; |
6647 |
*-*solaris*) |
6648 |
# Find out what ABI is being produced by ac_compile, and set linker |
6649 |
# options accordingly. |
6650 |
echo 'int i;' > conftest.$ac_ext |
6651 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6652 |
(eval $ac_compile) 2>&5 |
6653 |
ac_status=$? |
6654 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6655 |
test $ac_status = 0; }; then |
6656 |
case `/usr/bin/file conftest.o` in |
6657 |
*64-bit*) |
6658 |
case $lt_cv_prog_gnu_ld in |
6659 |
yes*) |
6660 |
case $host in |
6661 |
i?86-*-solaris*|x86_64-*-solaris*) |
6662 |
LD="${LD-ld} -m elf_x86_64" |
6663 |
;; |
6664 |
sparc*-*-solaris*) |
6665 |
LD="${LD-ld} -m elf64_sparc" |
6666 |
;; |
6667 |
esac |
6668 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
6669 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
6670 |
LD=${LD-ld}_sol2 |
6671 |
fi |
6672 |
;; |
6673 |
*) |
6674 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
6675 |
LD="${LD-ld} -64" |
6676 |
fi |
6677 |
;; |
6678 |
esac |
6679 |
;; |
6680 |
esac |
6681 |
fi |
6682 |
rm -rf conftest* |
6683 |
;; |
6684 |
esac |
6685 |
|
6686 |
need_locks=$enable_libtool_lock |
6687 |
|
6688 |
if test -n "$ac_tool_prefix"; then |
6689 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
6690 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
6691 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6692 |
$as_echo_n "checking for $ac_word... " >&6; } |
6693 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
6694 |
$as_echo_n "(cached) " >&6 |
6695 |
else |
6696 |
if test -n "$MANIFEST_TOOL"; then |
6697 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
6698 |
else |
6699 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6700 |
for as_dir in $PATH |
6701 |
do |
6702 |
IFS=$as_save_IFS |
6703 |
test -z "$as_dir" && as_dir=. |
6704 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6705 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6706 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
6707 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6708 |
break 2 |
6709 |
fi |
6710 |
done |
6711 |
done |
6712 |
IFS=$as_save_IFS |
6713 |
|
6714 |
fi |
6715 |
fi |
6716 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
6717 |
if test -n "$MANIFEST_TOOL"; then |
6718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
6719 |
$as_echo "$MANIFEST_TOOL" >&6; } |
6720 |
else |
6721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6722 |
$as_echo "no" >&6; } |
6723 |
fi |
6724 |
|
6725 |
|
6726 |
fi |
6727 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
6728 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
6729 |
# Extract the first word of "mt", so it can be a program name with args. |
6730 |
set dummy mt; ac_word=$2 |
6731 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6732 |
$as_echo_n "checking for $ac_word... " >&6; } |
6733 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
6734 |
$as_echo_n "(cached) " >&6 |
6735 |
else |
6736 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6737 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
6738 |
else |
6739 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6740 |
for as_dir in $PATH |
6741 |
do |
6742 |
IFS=$as_save_IFS |
6743 |
test -z "$as_dir" && as_dir=. |
6744 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6745 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6746 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
6747 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6748 |
break 2 |
6749 |
fi |
6750 |
done |
6751 |
done |
6752 |
IFS=$as_save_IFS |
6753 |
|
6754 |
fi |
6755 |
fi |
6756 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
6757 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
6759 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
6760 |
else |
6761 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6762 |
$as_echo "no" >&6; } |
6763 |
fi |
6764 |
|
6765 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
6766 |
MANIFEST_TOOL=":" |
6767 |
else |
6768 |
case $cross_compiling:$ac_tool_warned in |
6769 |
yes:) |
6770 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6771 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6772 |
ac_tool_warned=yes ;; |
6773 |
esac |
6774 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
6775 |
fi |
6776 |
else |
6777 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
6778 |
fi |
6779 |
|
6780 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
6781 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
6782 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
6783 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
6784 |
$as_echo_n "(cached) " >&6 |
6785 |
else |
6786 |
lt_cv_path_mainfest_tool=no |
6787 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
6788 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
6789 |
cat conftest.err >&5 |
6790 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
6791 |
lt_cv_path_mainfest_tool=yes |
6792 |
fi |
6793 |
rm -f conftest* |
6794 |
fi |
6795 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
6796 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
6797 |
if test yes != "$lt_cv_path_mainfest_tool"; then |
6798 |
MANIFEST_TOOL=: |
6799 |
fi |
6800 |
|
6801 |
|
6802 |
|
6803 |
|
6804 |
|
6805 |
|
6806 |
case $host_os in |
6807 |
rhapsody* | darwin*) |
6808 |
if test -n "$ac_tool_prefix"; then |
6809 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
6810 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
6811 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6812 |
$as_echo_n "checking for $ac_word... " >&6; } |
6813 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
6814 |
$as_echo_n "(cached) " >&6 |
6815 |
else |
6816 |
if test -n "$DSYMUTIL"; then |
6817 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
6818 |
else |
6819 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6820 |
for as_dir in $PATH |
6821 |
do |
6822 |
IFS=$as_save_IFS |
6823 |
test -z "$as_dir" && as_dir=. |
6824 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6825 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6826 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
6827 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6828 |
break 2 |
6829 |
fi |
6830 |
done |
6831 |
done |
6832 |
IFS=$as_save_IFS |
6833 |
|
6834 |
fi |
6835 |
fi |
6836 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6837 |
if test -n "$DSYMUTIL"; then |
6838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6839 |
$as_echo "$DSYMUTIL" >&6; } |
6840 |
else |
6841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6842 |
$as_echo "no" >&6; } |
6843 |
fi |
6844 |
|
6845 |
|
6846 |
fi |
6847 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
6848 |
ac_ct_DSYMUTIL=$DSYMUTIL |
6849 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
6850 |
set dummy dsymutil; ac_word=$2 |
6851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6852 |
$as_echo_n "checking for $ac_word... " >&6; } |
6853 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
6854 |
$as_echo_n "(cached) " >&6 |
6855 |
else |
6856 |
if test -n "$ac_ct_DSYMUTIL"; then |
6857 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
6858 |
else |
6859 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6860 |
for as_dir in $PATH |
6861 |
do |
6862 |
IFS=$as_save_IFS |
6863 |
test -z "$as_dir" && as_dir=. |
6864 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6865 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6866 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
6867 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6868 |
break 2 |
6869 |
fi |
6870 |
done |
6871 |
done |
6872 |
IFS=$as_save_IFS |
6873 |
|
6874 |
fi |
6875 |
fi |
6876 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6877 |
if test -n "$ac_ct_DSYMUTIL"; then |
6878 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6879 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
6880 |
else |
6881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6882 |
$as_echo "no" >&6; } |
6883 |
fi |
6884 |
|
6885 |
if test "x$ac_ct_DSYMUTIL" = x; then |
6886 |
DSYMUTIL=":" |
6887 |
else |
6888 |
case $cross_compiling:$ac_tool_warned in |
6889 |
yes:) |
6890 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6891 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6892 |
ac_tool_warned=yes ;; |
6893 |
esac |
6894 |
DSYMUTIL=$ac_ct_DSYMUTIL |
6895 |
fi |
6896 |
else |
6897 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
6898 |
fi |
6899 |
|
6900 |
if test -n "$ac_tool_prefix"; then |
6901 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
6902 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
6903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6904 |
$as_echo_n "checking for $ac_word... " >&6; } |
6905 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
6906 |
$as_echo_n "(cached) " >&6 |
6907 |
else |
6908 |
if test -n "$NMEDIT"; then |
6909 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
6910 |
else |
6911 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6912 |
for as_dir in $PATH |
6913 |
do |
6914 |
IFS=$as_save_IFS |
6915 |
test -z "$as_dir" && as_dir=. |
6916 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6917 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6918 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
6919 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6920 |
break 2 |
6921 |
fi |
6922 |
done |
6923 |
done |
6924 |
IFS=$as_save_IFS |
6925 |
|
6926 |
fi |
6927 |
fi |
6928 |
NMEDIT=$ac_cv_prog_NMEDIT |
6929 |
if test -n "$NMEDIT"; then |
6930 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6931 |
$as_echo "$NMEDIT" >&6; } |
6932 |
else |
6933 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6934 |
$as_echo "no" >&6; } |
6935 |
fi |
6936 |
|
6937 |
|
6938 |
fi |
6939 |
if test -z "$ac_cv_prog_NMEDIT"; then |
6940 |
ac_ct_NMEDIT=$NMEDIT |
6941 |
# Extract the first word of "nmedit", so it can be a program name with args. |
6942 |
set dummy nmedit; ac_word=$2 |
6943 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6944 |
$as_echo_n "checking for $ac_word... " >&6; } |
6945 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
6946 |
$as_echo_n "(cached) " >&6 |
6947 |
else |
6948 |
if test -n "$ac_ct_NMEDIT"; then |
6949 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
6950 |
else |
6951 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6952 |
for as_dir in $PATH |
6953 |
do |
6954 |
IFS=$as_save_IFS |
6955 |
test -z "$as_dir" && as_dir=. |
6956 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6957 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6958 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
6959 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6960 |
break 2 |
6961 |
fi |
6962 |
done |
6963 |
done |
6964 |
IFS=$as_save_IFS |
6965 |
|
6966 |
fi |
6967 |
fi |
6968 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6969 |
if test -n "$ac_ct_NMEDIT"; then |
6970 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6971 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
6972 |
else |
6973 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6974 |
$as_echo "no" >&6; } |
6975 |
fi |
6976 |
|
6977 |
if test "x$ac_ct_NMEDIT" = x; then |
6978 |
NMEDIT=":" |
6979 |
else |
6980 |
case $cross_compiling:$ac_tool_warned in |
6981 |
yes:) |
6982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6983 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6984 |
ac_tool_warned=yes ;; |
6985 |
esac |
6986 |
NMEDIT=$ac_ct_NMEDIT |
6987 |
fi |
6988 |
else |
6989 |
NMEDIT="$ac_cv_prog_NMEDIT" |
6990 |
fi |
6991 |
|
6992 |
if test -n "$ac_tool_prefix"; then |
6993 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
6994 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
6995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6996 |
$as_echo_n "checking for $ac_word... " >&6; } |
6997 |
if ${ac_cv_prog_LIPO+:} false; then : |
6998 |
$as_echo_n "(cached) " >&6 |
6999 |
else |
7000 |
if test -n "$LIPO"; then |
7001 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
7002 |
else |
7003 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7004 |
for as_dir in $PATH |
7005 |
do |
7006 |
IFS=$as_save_IFS |
7007 |
test -z "$as_dir" && as_dir=. |
7008 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7009 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7010 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7011 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7012 |
break 2 |
7013 |
fi |
7014 |
done |
7015 |
done |
7016 |
IFS=$as_save_IFS |
7017 |
|
7018 |
fi |
7019 |
fi |
7020 |
LIPO=$ac_cv_prog_LIPO |
7021 |
if test -n "$LIPO"; then |
7022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7023 |
$as_echo "$LIPO" >&6; } |
7024 |
else |
7025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7026 |
$as_echo "no" >&6; } |
7027 |
fi |
7028 |
|
7029 |
|
7030 |
fi |
7031 |
if test -z "$ac_cv_prog_LIPO"; then |
7032 |
ac_ct_LIPO=$LIPO |
7033 |
# Extract the first word of "lipo", so it can be a program name with args. |
7034 |
set dummy lipo; ac_word=$2 |
7035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7036 |
$as_echo_n "checking for $ac_word... " >&6; } |
7037 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
7038 |
$as_echo_n "(cached) " >&6 |
7039 |
else |
7040 |
if test -n "$ac_ct_LIPO"; then |
7041 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
7042 |
else |
7043 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7044 |
for as_dir in $PATH |
7045 |
do |
7046 |
IFS=$as_save_IFS |
7047 |
test -z "$as_dir" && as_dir=. |
7048 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7049 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7050 |
ac_cv_prog_ac_ct_LIPO="lipo" |
7051 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7052 |
break 2 |
7053 |
fi |
7054 |
done |
7055 |
done |
7056 |
IFS=$as_save_IFS |
7057 |
|
7058 |
fi |
7059 |
fi |
7060 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7061 |
if test -n "$ac_ct_LIPO"; then |
7062 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7063 |
$as_echo "$ac_ct_LIPO" >&6; } |
7064 |
else |
7065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7066 |
$as_echo "no" >&6; } |
7067 |
fi |
7068 |
|
7069 |
if test "x$ac_ct_LIPO" = x; then |
7070 |
LIPO=":" |
7071 |
else |
7072 |
case $cross_compiling:$ac_tool_warned in |
7073 |
yes:) |
7074 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7075 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7076 |
ac_tool_warned=yes ;; |
7077 |
esac |
7078 |
LIPO=$ac_ct_LIPO |
7079 |
fi |
7080 |
else |
7081 |
LIPO="$ac_cv_prog_LIPO" |
7082 |
fi |
7083 |
|
7084 |
if test -n "$ac_tool_prefix"; then |
7085 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7086 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
7087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7088 |
$as_echo_n "checking for $ac_word... " >&6; } |
7089 |
if ${ac_cv_prog_OTOOL+:} false; then : |
7090 |
$as_echo_n "(cached) " >&6 |
7091 |
else |
7092 |
if test -n "$OTOOL"; then |
7093 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
7094 |
else |
7095 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7096 |
for as_dir in $PATH |
7097 |
do |
7098 |
IFS=$as_save_IFS |
7099 |
test -z "$as_dir" && as_dir=. |
7100 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7101 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7102 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7103 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7104 |
break 2 |
7105 |
fi |
7106 |
done |
7107 |
done |
7108 |
IFS=$as_save_IFS |
7109 |
|
7110 |
fi |
7111 |
fi |
7112 |
OTOOL=$ac_cv_prog_OTOOL |
7113 |
if test -n "$OTOOL"; then |
7114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7115 |
$as_echo "$OTOOL" >&6; } |
7116 |
else |
7117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7118 |
$as_echo "no" >&6; } |
7119 |
fi |
7120 |
|
7121 |
|
7122 |
fi |
7123 |
if test -z "$ac_cv_prog_OTOOL"; then |
7124 |
ac_ct_OTOOL=$OTOOL |
7125 |
# Extract the first word of "otool", so it can be a program name with args. |
7126 |
set dummy otool; ac_word=$2 |
7127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7128 |
$as_echo_n "checking for $ac_word... " >&6; } |
7129 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
7130 |
$as_echo_n "(cached) " >&6 |
7131 |
else |
7132 |
if test -n "$ac_ct_OTOOL"; then |
7133 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
7134 |
else |
7135 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7136 |
for as_dir in $PATH |
7137 |
do |
7138 |
IFS=$as_save_IFS |
7139 |
test -z "$as_dir" && as_dir=. |
7140 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7141 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7142 |
ac_cv_prog_ac_ct_OTOOL="otool" |
7143 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7144 |
break 2 |
7145 |
fi |
7146 |
done |
7147 |
done |
7148 |
IFS=$as_save_IFS |
7149 |
|
7150 |
fi |
7151 |
fi |
7152 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7153 |
if test -n "$ac_ct_OTOOL"; then |
7154 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7155 |
$as_echo "$ac_ct_OTOOL" >&6; } |
7156 |
else |
7157 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7158 |
$as_echo "no" >&6; } |
7159 |
fi |
7160 |
|
7161 |
if test "x$ac_ct_OTOOL" = x; then |
7162 |
OTOOL=":" |
7163 |
else |
7164 |
case $cross_compiling:$ac_tool_warned in |
7165 |
yes:) |
7166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7167 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7168 |
ac_tool_warned=yes ;; |
7169 |
esac |
7170 |
OTOOL=$ac_ct_OTOOL |
7171 |
fi |
7172 |
else |
7173 |
OTOOL="$ac_cv_prog_OTOOL" |
7174 |
fi |
7175 |
|
7176 |
if test -n "$ac_tool_prefix"; then |
7177 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7178 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
7179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7180 |
$as_echo_n "checking for $ac_word... " >&6; } |
7181 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
7182 |
$as_echo_n "(cached) " >&6 |
7183 |
else |
7184 |
if test -n "$OTOOL64"; then |
7185 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
7186 |
else |
7187 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7188 |
for as_dir in $PATH |
7189 |
do |
7190 |
IFS=$as_save_IFS |
7191 |
test -z "$as_dir" && as_dir=. |
7192 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7193 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7194 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7195 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7196 |
break 2 |
7197 |
fi |
7198 |
done |
7199 |
done |
7200 |
IFS=$as_save_IFS |
7201 |
|
7202 |
fi |
7203 |
fi |
7204 |
OTOOL64=$ac_cv_prog_OTOOL64 |
7205 |
if test -n "$OTOOL64"; then |
7206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7207 |
$as_echo "$OTOOL64" >&6; } |
7208 |
else |
7209 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7210 |
$as_echo "no" >&6; } |
7211 |
fi |
7212 |
|
7213 |
|
7214 |
fi |
7215 |
if test -z "$ac_cv_prog_OTOOL64"; then |
7216 |
ac_ct_OTOOL64=$OTOOL64 |
7217 |
# Extract the first word of "otool64", so it can be a program name with args. |
7218 |
set dummy otool64; ac_word=$2 |
7219 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7220 |
$as_echo_n "checking for $ac_word... " >&6; } |
7221 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
7222 |
$as_echo_n "(cached) " >&6 |
7223 |
else |
7224 |
if test -n "$ac_ct_OTOOL64"; then |
7225 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
7226 |
else |
7227 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7228 |
for as_dir in $PATH |
7229 |
do |
7230 |
IFS=$as_save_IFS |
7231 |
test -z "$as_dir" && as_dir=. |
7232 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7233 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7234 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
7235 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7236 |
break 2 |
7237 |
fi |
7238 |
done |
7239 |
done |
7240 |
IFS=$as_save_IFS |
7241 |
|
7242 |
fi |
7243 |
fi |
7244 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7245 |
if test -n "$ac_ct_OTOOL64"; then |
7246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7247 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
7248 |
else |
7249 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7250 |
$as_echo "no" >&6; } |
7251 |
fi |
7252 |
|
7253 |
if test "x$ac_ct_OTOOL64" = x; then |
7254 |
OTOOL64=":" |
7255 |
else |
7256 |
case $cross_compiling:$ac_tool_warned in |
7257 |
yes:) |
7258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7259 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7260 |
ac_tool_warned=yes ;; |
7261 |
esac |
7262 |
OTOOL64=$ac_ct_OTOOL64 |
7263 |
fi |
7264 |
else |
7265 |
OTOOL64="$ac_cv_prog_OTOOL64" |
7266 |
fi |
7267 |
|
7268 |
|
7269 |
|
7270 |
|
7271 |
|
7272 |
|
7273 |
|
7274 |
|
7275 |
|
7276 |
|
7277 |
|
7278 |
|
7279 |
|
7280 |
|
7281 |
|
7282 |
|
7283 |
|
7284 |
|
7285 |
|
7286 |
|
7287 |
|
7288 |
|
7289 |
|
7290 |
|
7291 |
|
7292 |
|
7293 |
|
7294 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7295 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
7296 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
7297 |
$as_echo_n "(cached) " >&6 |
7298 |
else |
7299 |
lt_cv_apple_cc_single_mod=no |
7300 |
if test -z "$LT_MULTI_MODULE"; then |
7301 |
# By default we will add the -single_module flag. You can override |
7302 |
# by either setting the environment variable LT_MULTI_MODULE |
7303 |
# non-empty at configure time, or by adding -multi_module to the |
7304 |
# link flags. |
7305 |
rm -rf libconftest.dylib* |
7306 |
echo "int foo(void){return 1;}" > conftest.c |
7307 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7308 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
7309 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7310 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7311 |
_lt_result=$? |
7312 |
# If there is a non-empty error log, and "single_module" |
7313 |
# appears in it, assume the flag caused a linker warning |
7314 |
if test -s conftest.err && $GREP single_module conftest.err; then |
7315 |
cat conftest.err >&5 |
7316 |
# Otherwise, if the output was created with a 0 exit code from |
7317 |
# the compiler, it worked. |
7318 |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
7319 |
lt_cv_apple_cc_single_mod=yes |
7320 |
else |
7321 |
cat conftest.err >&5 |
7322 |
fi |
7323 |
rm -rf libconftest.dylib* |
7324 |
rm -f conftest.* |
7325 |
fi |
7326 |
fi |
7327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7328 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7329 |
|
7330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7331 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7332 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7333 |
$as_echo_n "(cached) " >&6 |
7334 |
else |
7335 |
lt_cv_ld_exported_symbols_list=no |
7336 |
save_LDFLAGS=$LDFLAGS |
7337 |
echo "_main" > conftest.sym |
7338 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7339 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7340 |
/* end confdefs.h. */ |
7341 |
|
7342 |
int |
7343 |
main () |
7344 |
{ |
7345 |
|
7346 |
; |
7347 |
return 0; |
7348 |
} |
7349 |
_ACEOF |
7350 |
if ac_fn_c_try_link "$LINENO"; then : |
7351 |
lt_cv_ld_exported_symbols_list=yes |
7352 |
else |
7353 |
lt_cv_ld_exported_symbols_list=no |
7354 |
fi |
7355 |
rm -f core conftest.err conftest.$ac_objext \ |
7356 |
conftest$ac_exeext conftest.$ac_ext |
7357 |
LDFLAGS=$save_LDFLAGS |
7358 |
|
7359 |
fi |
7360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7361 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7362 |
|
7363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7364 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
7365 |
if ${lt_cv_ld_force_load+:} false; then : |
7366 |
$as_echo_n "(cached) " >&6 |
7367 |
else |
7368 |
lt_cv_ld_force_load=no |
7369 |
cat > conftest.c << _LT_EOF |
7370 |
int forced_loaded() { return 2;} |
7371 |
_LT_EOF |
7372 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
7373 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
7374 |
echo "$AR cru libconftest.a conftest.o" >&5 |
7375 |
$AR cru libconftest.a conftest.o 2>&5 |
7376 |
echo "$RANLIB libconftest.a" >&5 |
7377 |
$RANLIB libconftest.a 2>&5 |
7378 |
cat > conftest.c << _LT_EOF |
7379 |
int main() { return 0;} |
7380 |
_LT_EOF |
7381 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
7382 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
7383 |
_lt_result=$? |
7384 |
if test -s conftest.err && $GREP force_load conftest.err; then |
7385 |
cat conftest.err >&5 |
7386 |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
7387 |
lt_cv_ld_force_load=yes |
7388 |
else |
7389 |
cat conftest.err >&5 |
7390 |
fi |
7391 |
rm -f conftest.err libconftest.a conftest conftest.c |
7392 |
rm -rf conftest.dSYM |
7393 |
|
7394 |
fi |
7395 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7396 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
7397 |
case $host_os in |
7398 |
rhapsody* | darwin1.[012]) |
7399 |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
7400 |
darwin1.*) |
7401 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7402 |
darwin*) # darwin 5.x on |
7403 |
# if running on 10.5 or later, the deployment target defaults |
7404 |
# to the OS version, if on x86, and 10.4, the deployment |
7405 |
# target defaults to 10.4. Don't you love it? |
7406 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7407 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7408 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7409 |
10.[012][,.]*) |
7410 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7411 |
10.*) |
7412 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7413 |
esac |
7414 |
;; |
7415 |
esac |
7416 |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
7417 |
_lt_dar_single_mod='$single_module' |
7418 |
fi |
7419 |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7420 |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
7421 |
else |
7422 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
7423 |
fi |
7424 |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
7425 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
7426 |
else |
7427 |
_lt_dsymutil= |
7428 |
fi |
7429 |
;; |
7430 |
esac |
7431 |
|
7432 |
ac_ext=c |
7433 |
ac_cpp='$CPP $CPPFLAGS' |
7434 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7435 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7436 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7437 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7438 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
7439 |
# On Suns, sometimes $CPP names a directory. |
7440 |
if test -n "$CPP" && test -d "$CPP"; then |
7441 |
CPP= |
7442 |
fi |
7443 |
if test -z "$CPP"; then |
7444 |
if ${ac_cv_prog_CPP+:} false; then : |
7445 |
$as_echo_n "(cached) " >&6 |
7446 |
else |
7447 |
# Double quotes because CPP needs to be expanded |
7448 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
7449 |
do |
7450 |
ac_preproc_ok=false |
7451 |
for ac_c_preproc_warn_flag in '' yes |
7452 |
do |
7453 |
# Use a header file that comes with gcc, so configuring glibc |
7454 |
# with a fresh cross-compiler works. |
7455 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7456 |
# <limits.h> exists even on freestanding compilers. |
7457 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7458 |
# not just through cpp. "Syntax error" is here to catch this case. |
7459 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7460 |
/* end confdefs.h. */ |
7461 |
#ifdef __STDC__ |
7462 |
# include <limits.h> |
7463 |
#else |
7464 |
# include <assert.h> |
7465 |
#endif |
7466 |
Syntax error |
7467 |
_ACEOF |
7468 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7469 |
|
7470 |
else |
7471 |
# Broken: fails on valid input. |
7472 |
continue |
7473 |
fi |
7474 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7475 |
|
7476 |
# OK, works on sane cases. Now check whether nonexistent headers |
7477 |
# can be detected and how. |
7478 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7479 |
/* end confdefs.h. */ |
7480 |
#include <ac_nonexistent.h> |
7481 |
_ACEOF |
7482 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7483 |
# Broken: success on invalid input. |
7484 |
continue |
7485 |
else |
7486 |
# Passes both tests. |
7487 |
ac_preproc_ok=: |
7488 |
break |
7489 |
fi |
7490 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7491 |
|
7492 |
done |
7493 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7494 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7495 |
if $ac_preproc_ok; then : |
7496 |
break |
7497 |
fi |
7498 |
|
7499 |
done |
7500 |
ac_cv_prog_CPP=$CPP |
7501 |
|
7502 |
fi |
7503 |
CPP=$ac_cv_prog_CPP |
7504 |
else |
7505 |
ac_cv_prog_CPP=$CPP |
7506 |
fi |
7507 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7508 |
$as_echo "$CPP" >&6; } |
7509 |
ac_preproc_ok=false |
7510 |
for ac_c_preproc_warn_flag in '' yes |
7511 |
do |
7512 |
# Use a header file that comes with gcc, so configuring glibc |
7513 |
# with a fresh cross-compiler works. |
7514 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7515 |
# <limits.h> exists even on freestanding compilers. |
7516 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7517 |
# not just through cpp. "Syntax error" is here to catch this case. |
7518 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7519 |
/* end confdefs.h. */ |
7520 |
#ifdef __STDC__ |
7521 |
# include <limits.h> |
7522 |
#else |
7523 |
# include <assert.h> |
7524 |
#endif |
7525 |
Syntax error |
7526 |
_ACEOF |
7527 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7528 |
|
7529 |
else |
7530 |
# Broken: fails on valid input. |
7531 |
continue |
7532 |
fi |
7533 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7534 |
|
7535 |
# OK, works on sane cases. Now check whether nonexistent headers |
7536 |
# can be detected and how. |
7537 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7538 |
/* end confdefs.h. */ |
7539 |
#include <ac_nonexistent.h> |
7540 |
_ACEOF |
7541 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7542 |
# Broken: success on invalid input. |
7543 |
continue |
7544 |
else |
7545 |
# Passes both tests. |
7546 |
ac_preproc_ok=: |
7547 |
break |
7548 |
fi |
7549 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7550 |
|
7551 |
done |
7552 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7553 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7554 |
if $ac_preproc_ok; then : |
7555 |
|
7556 |
else |
7557 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7558 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7559 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7560 |
See \`config.log' for more details" "$LINENO" 5; } |
7561 |
fi |
7562 |
|
7563 |
ac_ext=c |
7564 |
ac_cpp='$CPP $CPPFLAGS' |
7565 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7566 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7567 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7568 |
|
7569 |
|
7570 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7571 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7572 |
if ${ac_cv_header_stdc+:} false; then : |
7573 |
$as_echo_n "(cached) " >&6 |
7574 |
else |
7575 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7576 |
/* end confdefs.h. */ |
7577 |
#include <stdlib.h> |
7578 |
#include <stdarg.h> |
7579 |
#include <string.h> |
7580 |
#include <float.h> |
7581 |
|
7582 |
int |
7583 |
main () |
7584 |
{ |
7585 |
|
7586 |
; |
7587 |
return 0; |
7588 |
} |
7589 |
_ACEOF |
7590 |
if ac_fn_c_try_compile "$LINENO"; then : |
7591 |
ac_cv_header_stdc=yes |
7592 |
else |
7593 |
ac_cv_header_stdc=no |
7594 |
fi |
7595 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7596 |
|
7597 |
if test $ac_cv_header_stdc = yes; then |
7598 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7599 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7600 |
/* end confdefs.h. */ |
7601 |
#include <string.h> |
7602 |
|
7603 |
_ACEOF |
7604 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7605 |
$EGREP "memchr" >/dev/null 2>&1; then : |
7606 |
|
7607 |
else |
7608 |
ac_cv_header_stdc=no |
7609 |
fi |
7610 |
rm -f conftest* |
7611 |
|
7612 |
fi |
7613 |
|
7614 |
if test $ac_cv_header_stdc = yes; then |
7615 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7617 |
/* end confdefs.h. */ |
7618 |
#include <stdlib.h> |
7619 |
|
7620 |
_ACEOF |
7621 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7622 |
$EGREP "free" >/dev/null 2>&1; then : |
7623 |
|
7624 |
else |
7625 |
ac_cv_header_stdc=no |
7626 |
fi |
7627 |
rm -f conftest* |
7628 |
|
7629 |
fi |
7630 |
|
7631 |
if test $ac_cv_header_stdc = yes; then |
7632 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7633 |
if test "$cross_compiling" = yes; then : |
7634 |
: |
7635 |
else |
7636 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7637 |
/* end confdefs.h. */ |
7638 |
#include <ctype.h> |
7639 |
#include <stdlib.h> |
7640 |
#if ((' ' & 0x0FF) == 0x020) |
7641 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7642 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7643 |
#else |
7644 |
# define ISLOWER(c) \ |
7645 |
(('a' <= (c) && (c) <= 'i') \ |
7646 |
|| ('j' <= (c) && (c) <= 'r') \ |
7647 |
|| ('s' <= (c) && (c) <= 'z')) |
7648 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7649 |
#endif |
7650 |
|
7651 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7652 |
int |
7653 |
main () |
7654 |
{ |
7655 |
int i; |
7656 |
for (i = 0; i < 256; i++) |
7657 |
if (XOR (islower (i), ISLOWER (i)) |
7658 |
|| toupper (i) != TOUPPER (i)) |
7659 |
return 2; |
7660 |
return 0; |
7661 |
} |
7662 |
_ACEOF |
7663 |
if ac_fn_c_try_run "$LINENO"; then : |
7664 |
|
7665 |
else |
7666 |
ac_cv_header_stdc=no |
7667 |
fi |
7668 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7669 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7670 |
fi |
7671 |
|
7672 |
fi |
7673 |
fi |
7674 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7675 |
$as_echo "$ac_cv_header_stdc" >&6; } |
7676 |
if test $ac_cv_header_stdc = yes; then |
7677 |
|
7678 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7679 |
|
7680 |
fi |
7681 |
|
7682 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7683 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7684 |
inttypes.h stdint.h unistd.h |
7685 |
do : |
7686 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7687 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
7688 |
" |
7689 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7690 |
cat >>confdefs.h <<_ACEOF |
7691 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7692 |
_ACEOF |
7693 |
|
7694 |
fi |
7695 |
|
7696 |
done |
7697 |
|
7698 |
|
7699 |
for ac_header in dlfcn.h |
7700 |
do : |
7701 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
7702 |
" |
7703 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7704 |
cat >>confdefs.h <<_ACEOF |
7705 |
#define HAVE_DLFCN_H 1 |
7706 |
_ACEOF |
7707 |
|
7708 |
fi |
7709 |
|
7710 |
done |
7711 |
|
7712 |
|
7713 |
|
7714 |
|
7715 |
|
7716 |
# Set options |
7717 |
|
7718 |
|
7719 |
|
7720 |
enable_dlopen=no |
7721 |
|
7722 |
|
7723 |
enable_win32_dll=no |
7724 |
|
7725 |
|
7726 |
# Check whether --enable-shared was given. |
7727 |
if test "${enable_shared+set}" = set; then : |
7728 |
enableval=$enable_shared; p=${PACKAGE-default} |
7729 |
case $enableval in |
7730 |
yes) enable_shared=yes ;; |
7731 |
no) enable_shared=no ;; |
7732 |
*) |
7733 |
enable_shared=no |
7734 |
# Look at the argument we got. We use all the common list separators. |
7735 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7736 |
for pkg in $enableval; do |
7737 |
IFS=$lt_save_ifs |
7738 |
if test "X$pkg" = "X$p"; then |
7739 |
enable_shared=yes |
7740 |
fi |
7741 |
done |
7742 |
IFS=$lt_save_ifs |
7743 |
;; |
7744 |
esac |
7745 |
else |
7746 |
enable_shared=yes |
7747 |
fi |
7748 |
|
7749 |
|
7750 |
|
7751 |
|
7752 |
|
7753 |
|
7754 |
|
7755 |
|
7756 |
|
7757 |
# Check whether --enable-static was given. |
7758 |
if test "${enable_static+set}" = set; then : |
7759 |
enableval=$enable_static; p=${PACKAGE-default} |
7760 |
case $enableval in |
7761 |
yes) enable_static=yes ;; |
7762 |
no) enable_static=no ;; |
7763 |
*) |
7764 |
enable_static=no |
7765 |
# Look at the argument we got. We use all the common list separators. |
7766 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7767 |
for pkg in $enableval; do |
7768 |
IFS=$lt_save_ifs |
7769 |
if test "X$pkg" = "X$p"; then |
7770 |
enable_static=yes |
7771 |
fi |
7772 |
done |
7773 |
IFS=$lt_save_ifs |
7774 |
;; |
7775 |
esac |
7776 |
else |
7777 |
enable_static=yes |
7778 |
fi |
7779 |
|
7780 |
|
7781 |
|
7782 |
|
7783 |
|
7784 |
|
7785 |
|
7786 |
|
7787 |
|
7788 |
|
7789 |
# Check whether --with-pic was given. |
7790 |
if test "${with_pic+set}" = set; then : |
7791 |
withval=$with_pic; lt_p=${PACKAGE-default} |
7792 |
case $withval in |
7793 |
yes|no) pic_mode=$withval ;; |
7794 |
*) |
7795 |
pic_mode=default |
7796 |
# Look at the argument we got. We use all the common list separators. |
7797 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7798 |
for lt_pkg in $withval; do |
7799 |
IFS=$lt_save_ifs |
7800 |
if test "X$lt_pkg" = "X$lt_p"; then |
7801 |
pic_mode=yes |
7802 |
fi |
7803 |
done |
7804 |
IFS=$lt_save_ifs |
7805 |
;; |
7806 |
esac |
7807 |
else |
7808 |
pic_mode=default |
7809 |
fi |
7810 |
|
7811 |
|
7812 |
|
7813 |
|
7814 |
|
7815 |
|
7816 |
|
7817 |
|
7818 |
# Check whether --enable-fast-install was given. |
7819 |
if test "${enable_fast_install+set}" = set; then : |
7820 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
7821 |
case $enableval in |
7822 |
yes) enable_fast_install=yes ;; |
7823 |
no) enable_fast_install=no ;; |
7824 |
*) |
7825 |
enable_fast_install=no |
7826 |
# Look at the argument we got. We use all the common list separators. |
7827 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
7828 |
for pkg in $enableval; do |
7829 |
IFS=$lt_save_ifs |
7830 |
if test "X$pkg" = "X$p"; then |
7831 |
enable_fast_install=yes |
7832 |
fi |
7833 |
done |
7834 |
IFS=$lt_save_ifs |
7835 |
;; |
7836 |
esac |
7837 |
else |
7838 |
enable_fast_install=yes |
7839 |
fi |
7840 |
|
7841 |
|
7842 |
|
7843 |
|
7844 |
|
7845 |
|
7846 |
|
7847 |
|
7848 |
shared_archive_member_spec= |
7849 |
case $host,$enable_shared in |
7850 |
power*-*-aix[5-9]*,yes) |
7851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
7852 |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
7853 |
|
7854 |
# Check whether --with-aix-soname was given. |
7855 |
if test "${with_aix_soname+set}" = set; then : |
7856 |
withval=$with_aix_soname; case $withval in |
7857 |
aix|svr4|both) |
7858 |
;; |
7859 |
*) |
7860 |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
7861 |
;; |
7862 |
esac |
7863 |
lt_cv_with_aix_soname=$with_aix_soname |
7864 |
else |
7865 |
if ${lt_cv_with_aix_soname+:} false; then : |
7866 |
$as_echo_n "(cached) " >&6 |
7867 |
else |
7868 |
lt_cv_with_aix_soname=aix |
7869 |
fi |
7870 |
|
7871 |
with_aix_soname=$lt_cv_with_aix_soname |
7872 |
fi |
7873 |
|
7874 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
7875 |
$as_echo "$with_aix_soname" >&6; } |
7876 |
if test aix != "$with_aix_soname"; then |
7877 |
# For the AIX way of multilib, we name the shared archive member |
7878 |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
7879 |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
7880 |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
7881 |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
7882 |
if test 64 = "${OBJECT_MODE-32}"; then |
7883 |
shared_archive_member_spec=shr_64 |
7884 |
else |
7885 |
shared_archive_member_spec=shr |
7886 |
fi |
7887 |
fi |
7888 |
;; |
7889 |
*) |
7890 |
with_aix_soname=aix |
7891 |
;; |
7892 |
esac |
7893 |
|
7894 |
|
7895 |
|
7896 |
|
7897 |
|
7898 |
|
7899 |
|
7900 |
|
7901 |
|
7902 |
|
7903 |
# This can be used to rebuild libtool when needed |
7904 |
LIBTOOL_DEPS=$ltmain |
7905 |
|
7906 |
# Always use our own libtool. |
7907 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
7908 |
|
7909 |
|
7910 |
|
7911 |
|
7912 |
|
7913 |
|
7914 |
|
7915 |
|
7916 |
|
7917 |
|
7918 |
|
7919 |
|
7920 |
|
7921 |
|
7922 |
|
7923 |
|
7924 |
|
7925 |
|
7926 |
|
7927 |
|
7928 |
|
7929 |
|
7930 |
|
7931 |
|
7932 |
|
7933 |
|
7934 |
|
7935 |
|
7936 |
|
7937 |
|
7938 |
test -z "$LN_S" && LN_S="ln -s" |
7939 |
|
7940 |
|
7941 |
|
7942 |
|
7943 |
|
7944 |
|
7945 |
|
7946 |
|
7947 |
|
7948 |
|
7949 |
|
7950 |
|
7951 |
|
7952 |
|
7953 |
if test -n "${ZSH_VERSION+set}"; then |
7954 |
setopt NO_GLOB_SUBST |
7955 |
fi |
7956 |
|
7957 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7958 |
$as_echo_n "checking for objdir... " >&6; } |
7959 |
if ${lt_cv_objdir+:} false; then : |
7960 |
$as_echo_n "(cached) " >&6 |
7961 |
else |
7962 |
rm -f .libs 2>/dev/null |
7963 |
mkdir .libs 2>/dev/null |
7964 |
if test -d .libs; then |
7965 |
lt_cv_objdir=.libs |
7966 |
else |
7967 |
# MS-DOS does not allow filenames that begin with a dot. |
7968 |
lt_cv_objdir=_libs |
7969 |
fi |
7970 |
rmdir .libs 2>/dev/null |
7971 |
fi |
7972 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7973 |
$as_echo "$lt_cv_objdir" >&6; } |
7974 |
objdir=$lt_cv_objdir |
7975 |
|
7976 |
|
7977 |
|
7978 |
|
7979 |
|
7980 |
cat >>confdefs.h <<_ACEOF |
7981 |
#define LT_OBJDIR "$lt_cv_objdir/" |
7982 |
_ACEOF |
7983 |
|
7984 |
|
7985 |
|
7986 |
|
7987 |
case $host_os in |
7988 |
aix3*) |
7989 |
# AIX sometimes has problems with the GCC collect2 program. For some |
7990 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
7991 |
# vanish in a puff of smoke. |
7992 |
if test set != "${COLLECT_NAMES+set}"; then |
7993 |
COLLECT_NAMES= |
7994 |
export COLLECT_NAMES |
7995 |
fi |
7996 |
;; |
7997 |
esac |
7998 |
|
7999 |
# Global variables: |
8000 |
ofile=libtool |
8001 |
can_build_shared=yes |
8002 |
|
8003 |
# All known linkers require a '.a' archive for static linking (except MSVC, |
8004 |
# which needs '.lib'). |
8005 |
libext=a |
8006 |
|
8007 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
8008 |
|
8009 |
old_CC=$CC |
8010 |
old_CFLAGS=$CFLAGS |
8011 |
|
8012 |
# Set sane defaults for various variables |
8013 |
test -z "$CC" && CC=cc |
8014 |
test -z "$LTCC" && LTCC=$CC |
8015 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
8016 |
test -z "$LD" && LD=ld |
8017 |
test -z "$ac_objext" && ac_objext=o |
8018 |
|
8019 |
for cc_temp in $compiler""; do |
8020 |
case $cc_temp in |
8021 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8022 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8023 |
\-*) ;; |
8024 |
*) break;; |
8025 |
esac |
8026 |
done |
8027 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8028 |
|
8029 |
|
8030 |
# Only perform the check for file, if the check method requires it |
8031 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
8032 |
case $deplibs_check_method in |
8033 |
file_magic*) |
8034 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
8035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8036 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
8037 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8038 |
$as_echo_n "(cached) " >&6 |
8039 |
else |
8040 |
case $MAGIC_CMD in |
8041 |
[\\/*] | ?:[\\/]*) |
8042 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8043 |
;; |
8044 |
*) |
8045 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8046 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8047 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8048 |
for ac_dir in $ac_dummy; do |
8049 |
IFS=$lt_save_ifs |
8050 |
test -z "$ac_dir" && ac_dir=. |
8051 |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8052 |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
8053 |
if test -n "$file_magic_test_file"; then |
8054 |
case $deplibs_check_method in |
8055 |
"file_magic "*) |
8056 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8057 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8058 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8059 |
$EGREP "$file_magic_regex" > /dev/null; then |
8060 |
: |
8061 |
else |
8062 |
cat <<_LT_EOF 1>&2 |
8063 |
|
8064 |
*** Warning: the command libtool uses to detect shared libraries, |
8065 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8066 |
*** The result is that libtool may fail to recognize shared libraries |
8067 |
*** as such. This will affect the creation of libtool libraries that |
8068 |
*** depend on shared libraries, but programs linked with such libtool |
8069 |
*** libraries will work regardless of this problem. Nevertheless, you |
8070 |
*** may want to report the problem to your system manager and/or to |
8071 |
*** bug-libtool@gnu.org |
8072 |
|
8073 |
_LT_EOF |
8074 |
fi ;; |
8075 |
esac |
8076 |
fi |
8077 |
break |
8078 |
fi |
8079 |
done |
8080 |
IFS=$lt_save_ifs |
8081 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8082 |
;; |
8083 |
esac |
8084 |
fi |
8085 |
|
8086 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8087 |
if test -n "$MAGIC_CMD"; then |
8088 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8089 |
$as_echo "$MAGIC_CMD" >&6; } |
8090 |
else |
8091 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8092 |
$as_echo "no" >&6; } |
8093 |
fi |
8094 |
|
8095 |
|
8096 |
|
8097 |
|
8098 |
|
8099 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
8100 |
if test -n "$ac_tool_prefix"; then |
8101 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8102 |
$as_echo_n "checking for file... " >&6; } |
8103 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8104 |
$as_echo_n "(cached) " >&6 |
8105 |
else |
8106 |
case $MAGIC_CMD in |
8107 |
[\\/*] | ?:[\\/]*) |
8108 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8109 |
;; |
8110 |
*) |
8111 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8112 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8113 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8114 |
for ac_dir in $ac_dummy; do |
8115 |
IFS=$lt_save_ifs |
8116 |
test -z "$ac_dir" && ac_dir=. |
8117 |
if test -f "$ac_dir/file"; then |
8118 |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
8119 |
if test -n "$file_magic_test_file"; then |
8120 |
case $deplibs_check_method in |
8121 |
"file_magic "*) |
8122 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8123 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8124 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8125 |
$EGREP "$file_magic_regex" > /dev/null; then |
8126 |
: |
8127 |
else |
8128 |
cat <<_LT_EOF 1>&2 |
8129 |
|
8130 |
*** Warning: the command libtool uses to detect shared libraries, |
8131 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8132 |
*** The result is that libtool may fail to recognize shared libraries |
8133 |
*** as such. This will affect the creation of libtool libraries that |
8134 |
*** depend on shared libraries, but programs linked with such libtool |
8135 |
*** libraries will work regardless of this problem. Nevertheless, you |
8136 |
*** may want to report the problem to your system manager and/or to |
8137 |
*** bug-libtool@gnu.org |
8138 |
|
8139 |
_LT_EOF |
8140 |
fi ;; |
8141 |
esac |
8142 |
fi |
8143 |
break |
8144 |
fi |
8145 |
done |
8146 |
IFS=$lt_save_ifs |
8147 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8148 |
;; |
8149 |
esac |
8150 |
fi |
8151 |
|
8152 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8153 |
if test -n "$MAGIC_CMD"; then |
8154 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8155 |
$as_echo "$MAGIC_CMD" >&6; } |
8156 |
else |
8157 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8158 |
$as_echo "no" >&6; } |
8159 |
fi |
8160 |
|
8161 |
|
8162 |
else |
8163 |
MAGIC_CMD=: |
8164 |
fi |
8165 |
fi |
8166 |
|
8167 |
fi |
8168 |
;; |
8169 |
esac |
8170 |
|
8171 |
# Use C for the default configuration in the libtool script |
8172 |
|
8173 |
lt_save_CC=$CC |
8174 |
ac_ext=c |
8175 |
ac_cpp='$CPP $CPPFLAGS' |
8176 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8177 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8178 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8179 |
|
8180 |
|
8181 |
# Source file extension for C test sources. |
8182 |
ac_ext=c |
8183 |
|
8184 |
# Object file extension for compiled C test sources. |
8185 |
objext=o |
8186 |
objext=$objext |
8187 |
|
8188 |
# Code to be used in simple compile tests |
8189 |
lt_simple_compile_test_code="int some_variable = 0;" |
8190 |
|
8191 |
# Code to be used in simple link tests |
8192 |
lt_simple_link_test_code='int main(){return(0);}' |
8193 |
|
8194 |
|
8195 |
|
8196 |
|
8197 |
|
8198 |
|
8199 |
|
8200 |
# If no C compiler was specified, use CC. |
8201 |
LTCC=${LTCC-"$CC"} |
8202 |
|
8203 |
# If no C compiler flags were specified, use CFLAGS. |
8204 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
8205 |
|
8206 |
# Allow CC to be a program name with arguments. |
8207 |
compiler=$CC |
8208 |
|
8209 |
# Save the default compiler, since it gets overwritten when the other |
8210 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
8211 |
compiler_DEFAULT=$CC |
8212 |
|
8213 |
# save warnings/boilerplate of simple test code |
8214 |
ac_outfile=conftest.$ac_objext |
8215 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
8216 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8217 |
_lt_compiler_boilerplate=`cat conftest.err` |
8218 |
$RM conftest* |
8219 |
|
8220 |
ac_outfile=conftest.$ac_objext |
8221 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8222 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8223 |
_lt_linker_boilerplate=`cat conftest.err` |
8224 |
$RM -r conftest* |
8225 |
|
8226 |
|
8227 |
if test -n "$compiler"; then |
8228 |
|
8229 |
lt_prog_compiler_no_builtin_flag= |
8230 |
|
8231 |
if test yes = "$GCC"; then |
8232 |
case $cc_basename in |
8233 |
nvcc*) |
8234 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
8235 |
*) |
8236 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
8237 |
esac |
8238 |
|
8239 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8240 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8241 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8242 |
$as_echo_n "(cached) " >&6 |
8243 |
else |
8244 |
lt_cv_prog_compiler_rtti_exceptions=no |
8245 |
ac_outfile=conftest.$ac_objext |
8246 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8247 |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8248 |
# Insert the option either (1) after the last *FLAGS variable, or |
8249 |
# (2) before a word containing "conftest.", or (3) at the end. |
8250 |
# Note that $ac_compile itself does not contain backslashes and begins |
8251 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8252 |
# The option is referenced via a variable to avoid confusing sed. |
8253 |
lt_compile=`echo "$ac_compile" | $SED \ |
8254 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8255 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8256 |
-e 's:$: $lt_compiler_flag:'` |
8257 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8258 |
(eval "$lt_compile" 2>conftest.err) |
8259 |
ac_status=$? |
8260 |
cat conftest.err >&5 |
8261 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8262 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8263 |
# The compiler can only warn and ignore the option if not recognized |
8264 |
# So say no if there are warnings other than the usual output. |
8265 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8266 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8267 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8268 |
lt_cv_prog_compiler_rtti_exceptions=yes |
8269 |
fi |
8270 |
fi |
8271 |
$RM conftest* |
8272 |
|
8273 |
fi |
8274 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8275 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8276 |
|
8277 |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8278 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8279 |
else |
8280 |
: |
8281 |
fi |
8282 |
|
8283 |
fi |
8284 |
|
8285 |
|
8286 |
|
8287 |
|
8288 |
|
8289 |
|
8290 |
lt_prog_compiler_wl= |
8291 |
lt_prog_compiler_pic= |
8292 |
lt_prog_compiler_static= |
8293 |
|
8294 |
|
8295 |
if test yes = "$GCC"; then |
8296 |
lt_prog_compiler_wl='-Wl,' |
8297 |
lt_prog_compiler_static='-static' |
8298 |
|
8299 |
case $host_os in |
8300 |
aix*) |
8301 |
# All AIX code is PIC. |
8302 |
if test ia64 = "$host_cpu"; then |
8303 |
# AIX 5 now supports IA64 processor |
8304 |
lt_prog_compiler_static='-Bstatic' |
8305 |
fi |
8306 |
lt_prog_compiler_pic='-fPIC' |
8307 |
;; |
8308 |
|
8309 |
amigaos*) |
8310 |
case $host_cpu in |
8311 |
powerpc) |
8312 |
# see comment about AmigaOS4 .so support |
8313 |
lt_prog_compiler_pic='-fPIC' |
8314 |
;; |
8315 |
m68k) |
8316 |
# FIXME: we need at least 68020 code to build shared libraries, but |
8317 |
# adding the '-m68020' flag to GCC prevents building anything better, |
8318 |
# like '-m68040'. |
8319 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8320 |
;; |
8321 |
esac |
8322 |
;; |
8323 |
|
8324 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8325 |
# PIC is the default for these OSes. |
8326 |
;; |
8327 |
|
8328 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8329 |
# This hack is so that the source file can tell whether it is being |
8330 |
# built for inclusion in a dll (and should export symbols for example). |
8331 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
8332 |
# (--disable-auto-import) libraries |
8333 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8334 |
case $host_os in |
8335 |
os2*) |
8336 |
lt_prog_compiler_static='$wl-static' |
8337 |
;; |
8338 |
esac |
8339 |
;; |
8340 |
|
8341 |
darwin* | rhapsody*) |
8342 |
# PIC is the default on this platform |
8343 |
# Common symbols not allowed in MH_DYLIB files |
8344 |
lt_prog_compiler_pic='-fno-common' |
8345 |
;; |
8346 |
|
8347 |
haiku*) |
8348 |
# PIC is the default for Haiku. |
8349 |
# The "-static" flag exists, but is broken. |
8350 |
lt_prog_compiler_static= |
8351 |
;; |
8352 |
|
8353 |
hpux*) |
8354 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8355 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8356 |
# sets the default TLS model and affects inlining. |
8357 |
case $host_cpu in |
8358 |
hppa*64*) |
8359 |
# +Z the default |
8360 |
;; |
8361 |
*) |
8362 |
lt_prog_compiler_pic='-fPIC' |
8363 |
;; |
8364 |
esac |
8365 |
;; |
8366 |
|
8367 |
interix[3-9]*) |
8368 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8369 |
# Instead, we relocate shared libraries at runtime. |
8370 |
;; |
8371 |
|
8372 |
msdosdjgpp*) |
8373 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
8374 |
# on systems that don't support them. |
8375 |
lt_prog_compiler_can_build_shared=no |
8376 |
enable_shared=no |
8377 |
;; |
8378 |
|
8379 |
*nto* | *qnx*) |
8380 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8381 |
# it will coredump. |
8382 |
lt_prog_compiler_pic='-fPIC -shared' |
8383 |
;; |
8384 |
|
8385 |
sysv4*MP*) |
8386 |
if test -d /usr/nec; then |
8387 |
lt_prog_compiler_pic=-Kconform_pic |
8388 |
fi |
8389 |
;; |
8390 |
|
8391 |
*) |
8392 |
lt_prog_compiler_pic='-fPIC' |
8393 |
;; |
8394 |
esac |
8395 |
|
8396 |
case $cc_basename in |
8397 |
nvcc*) # Cuda Compiler Driver 2.2 |
8398 |
lt_prog_compiler_wl='-Xlinker ' |
8399 |
if test -n "$lt_prog_compiler_pic"; then |
8400 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
8401 |
fi |
8402 |
;; |
8403 |
esac |
8404 |
else |
8405 |
# PORTME Check for flag to pass linker flags through the system compiler. |
8406 |
case $host_os in |
8407 |
aix*) |
8408 |
lt_prog_compiler_wl='-Wl,' |
8409 |
if test ia64 = "$host_cpu"; then |
8410 |
# AIX 5 now supports IA64 processor |
8411 |
lt_prog_compiler_static='-Bstatic' |
8412 |
else |
8413 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
8414 |
fi |
8415 |
;; |
8416 |
|
8417 |
darwin* | rhapsody*) |
8418 |
# PIC is the default on this platform |
8419 |
# Common symbols not allowed in MH_DYLIB files |
8420 |
lt_prog_compiler_pic='-fno-common' |
8421 |
case $cc_basename in |
8422 |
nagfor*) |
8423 |
# NAG Fortran compiler |
8424 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8425 |
lt_prog_compiler_pic='-PIC' |
8426 |
lt_prog_compiler_static='-Bstatic' |
8427 |
;; |
8428 |
esac |
8429 |
;; |
8430 |
|
8431 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8432 |
# This hack is so that the source file can tell whether it is being |
8433 |
# built for inclusion in a dll (and should export symbols for example). |
8434 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8435 |
case $host_os in |
8436 |
os2*) |
8437 |
lt_prog_compiler_static='$wl-static' |
8438 |
;; |
8439 |
esac |
8440 |
;; |
8441 |
|
8442 |
hpux9* | hpux10* | hpux11*) |
8443 |
lt_prog_compiler_wl='-Wl,' |
8444 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8445 |
# not for PA HP-UX. |
8446 |
case $host_cpu in |
8447 |
hppa*64*|ia64*) |
8448 |
# +Z the default |
8449 |
;; |
8450 |
*) |
8451 |
lt_prog_compiler_pic='+Z' |
8452 |
;; |
8453 |
esac |
8454 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
8455 |
lt_prog_compiler_static='$wl-a ${wl}archive' |
8456 |
;; |
8457 |
|
8458 |
irix5* | irix6* | nonstopux*) |
8459 |
lt_prog_compiler_wl='-Wl,' |
8460 |
# PIC (with -KPIC) is the default. |
8461 |
lt_prog_compiler_static='-non_shared' |
8462 |
;; |
8463 |
|
8464 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8465 |
case $cc_basename in |
8466 |
# old Intel for x86_64, which still supported -KPIC. |
8467 |
ecc*) |
8468 |
lt_prog_compiler_wl='-Wl,' |
8469 |
lt_prog_compiler_pic='-KPIC' |
8470 |
lt_prog_compiler_static='-static' |
8471 |
;; |
8472 |
# icc used to be incompatible with GCC. |
8473 |
# ICC 10 doesn't accept -KPIC any more. |
8474 |
icc* | ifort*) |
8475 |
lt_prog_compiler_wl='-Wl,' |
8476 |
lt_prog_compiler_pic='-fPIC' |
8477 |
lt_prog_compiler_static='-static' |
8478 |
;; |
8479 |
# Lahey Fortran 8.1. |
8480 |
lf95*) |
8481 |
lt_prog_compiler_wl='-Wl,' |
8482 |
lt_prog_compiler_pic='--shared' |
8483 |
lt_prog_compiler_static='--static' |
8484 |
;; |
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 |
tcc*) |
8492 |
# Fabrice Bellard et al's Tiny C Compiler |
8493 |
lt_prog_compiler_wl='-Wl,' |
8494 |
lt_prog_compiler_pic='-fPIC' |
8495 |
lt_prog_compiler_static='-static' |
8496 |
;; |
8497 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8498 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
8499 |
# which looks to be a dead project) |
8500 |
lt_prog_compiler_wl='-Wl,' |
8501 |
lt_prog_compiler_pic='-fpic' |
8502 |
lt_prog_compiler_static='-Bstatic' |
8503 |
;; |
8504 |
ccc*) |
8505 |
lt_prog_compiler_wl='-Wl,' |
8506 |
# All Alpha code is PIC. |
8507 |
lt_prog_compiler_static='-non_shared' |
8508 |
;; |
8509 |
xl* | bgxl* | bgf* | mpixl*) |
8510 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
8511 |
lt_prog_compiler_wl='-Wl,' |
8512 |
lt_prog_compiler_pic='-qpic' |
8513 |
lt_prog_compiler_static='-qstaticlink' |
8514 |
;; |
8515 |
*) |
8516 |
case `$CC -V 2>&1 | sed 5q` in |
8517 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8518 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
8519 |
lt_prog_compiler_pic='-KPIC' |
8520 |
lt_prog_compiler_static='-Bstatic' |
8521 |
lt_prog_compiler_wl='' |
8522 |
;; |
8523 |
*Sun\ F* | *Sun*Fortran*) |
8524 |
lt_prog_compiler_pic='-KPIC' |
8525 |
lt_prog_compiler_static='-Bstatic' |
8526 |
lt_prog_compiler_wl='-Qoption ld ' |
8527 |
;; |
8528 |
*Sun\ C*) |
8529 |
# Sun C 5.9 |
8530 |
lt_prog_compiler_pic='-KPIC' |
8531 |
lt_prog_compiler_static='-Bstatic' |
8532 |
lt_prog_compiler_wl='-Wl,' |
8533 |
;; |
8534 |
*Intel*\ [CF]*Compiler*) |
8535 |
lt_prog_compiler_wl='-Wl,' |
8536 |
lt_prog_compiler_pic='-fPIC' |
8537 |
lt_prog_compiler_static='-static' |
8538 |
;; |
8539 |
*Portland\ Group*) |
8540 |
lt_prog_compiler_wl='-Wl,' |
8541 |
lt_prog_compiler_pic='-fpic' |
8542 |
lt_prog_compiler_static='-Bstatic' |
8543 |
;; |
8544 |
esac |
8545 |
;; |
8546 |
esac |
8547 |
;; |
8548 |
|
8549 |
newsos6) |
8550 |
lt_prog_compiler_pic='-KPIC' |
8551 |
lt_prog_compiler_static='-Bstatic' |
8552 |
;; |
8553 |
|
8554 |
*nto* | *qnx*) |
8555 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8556 |
# it will coredump. |
8557 |
lt_prog_compiler_pic='-fPIC -shared' |
8558 |
;; |
8559 |
|
8560 |
osf3* | osf4* | osf5*) |
8561 |
lt_prog_compiler_wl='-Wl,' |
8562 |
# All OSF/1 code is PIC. |
8563 |
lt_prog_compiler_static='-non_shared' |
8564 |
;; |
8565 |
|
8566 |
rdos*) |
8567 |
lt_prog_compiler_static='-non_shared' |
8568 |
;; |
8569 |
|
8570 |
solaris*) |
8571 |
lt_prog_compiler_pic='-KPIC' |
8572 |
lt_prog_compiler_static='-Bstatic' |
8573 |
case $cc_basename in |
8574 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8575 |
lt_prog_compiler_wl='-Qoption ld ';; |
8576 |
*) |
8577 |
lt_prog_compiler_wl='-Wl,';; |
8578 |
esac |
8579 |
;; |
8580 |
|
8581 |
sunos4*) |
8582 |
lt_prog_compiler_wl='-Qoption ld ' |
8583 |
lt_prog_compiler_pic='-PIC' |
8584 |
lt_prog_compiler_static='-Bstatic' |
8585 |
;; |
8586 |
|
8587 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
8588 |
lt_prog_compiler_wl='-Wl,' |
8589 |
lt_prog_compiler_pic='-KPIC' |
8590 |
lt_prog_compiler_static='-Bstatic' |
8591 |
;; |
8592 |
|
8593 |
sysv4*MP*) |
8594 |
if test -d /usr/nec; then |
8595 |
lt_prog_compiler_pic='-Kconform_pic' |
8596 |
lt_prog_compiler_static='-Bstatic' |
8597 |
fi |
8598 |
;; |
8599 |
|
8600 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8601 |
lt_prog_compiler_wl='-Wl,' |
8602 |
lt_prog_compiler_pic='-KPIC' |
8603 |
lt_prog_compiler_static='-Bstatic' |
8604 |
;; |
8605 |
|
8606 |
unicos*) |
8607 |
lt_prog_compiler_wl='-Wl,' |
8608 |
lt_prog_compiler_can_build_shared=no |
8609 |
;; |
8610 |
|
8611 |
uts4*) |
8612 |
lt_prog_compiler_pic='-pic' |
8613 |
lt_prog_compiler_static='-Bstatic' |
8614 |
;; |
8615 |
|
8616 |
*) |
8617 |
lt_prog_compiler_can_build_shared=no |
8618 |
;; |
8619 |
esac |
8620 |
fi |
8621 |
|
8622 |
case $host_os in |
8623 |
# For platforms that do not support PIC, -DPIC is meaningless: |
8624 |
*djgpp*) |
8625 |
lt_prog_compiler_pic= |
8626 |
;; |
8627 |
*) |
8628 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
8629 |
;; |
8630 |
esac |
8631 |
|
8632 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8633 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
8634 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
8635 |
$as_echo_n "(cached) " >&6 |
8636 |
else |
8637 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
8638 |
fi |
8639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
8640 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
8641 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
8642 |
|
8643 |
# |
8644 |
# Check to make sure the PIC flag actually works. |
8645 |
# |
8646 |
if test -n "$lt_prog_compiler_pic"; then |
8647 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8648 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
8649 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8650 |
$as_echo_n "(cached) " >&6 |
8651 |
else |
8652 |
lt_cv_prog_compiler_pic_works=no |
8653 |
ac_outfile=conftest.$ac_objext |
8654 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8655 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8656 |
# Insert the option either (1) after the last *FLAGS variable, or |
8657 |
# (2) before a word containing "conftest.", or (3) at the end. |
8658 |
# Note that $ac_compile itself does not contain backslashes and begins |
8659 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8660 |
# The option is referenced via a variable to avoid confusing sed. |
8661 |
lt_compile=`echo "$ac_compile" | $SED \ |
8662 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8663 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8664 |
-e 's:$: $lt_compiler_flag:'` |
8665 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8666 |
(eval "$lt_compile" 2>conftest.err) |
8667 |
ac_status=$? |
8668 |
cat conftest.err >&5 |
8669 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8670 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8671 |
# The compiler can only warn and ignore the option if not recognized |
8672 |
# So say no if there are warnings other than the usual output. |
8673 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8674 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8675 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8676 |
lt_cv_prog_compiler_pic_works=yes |
8677 |
fi |
8678 |
fi |
8679 |
$RM conftest* |
8680 |
|
8681 |
fi |
8682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8683 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
8684 |
|
8685 |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8686 |
case $lt_prog_compiler_pic in |
8687 |
"" | " "*) ;; |
8688 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
8689 |
esac |
8690 |
else |
8691 |
lt_prog_compiler_pic= |
8692 |
lt_prog_compiler_can_build_shared=no |
8693 |
fi |
8694 |
|
8695 |
fi |
8696 |
|
8697 |
|
8698 |
|
8699 |
|
8700 |
|
8701 |
|
8702 |
|
8703 |
|
8704 |
|
8705 |
|
8706 |
|
8707 |
# |
8708 |
# Check to make sure the static flag actually works. |
8709 |
# |
8710 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8712 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
8713 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
8714 |
$as_echo_n "(cached) " >&6 |
8715 |
else |
8716 |
lt_cv_prog_compiler_static_works=no |
8717 |
save_LDFLAGS=$LDFLAGS |
8718 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8719 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
8720 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8721 |
# The linker can only warn and ignore the option if not recognized |
8722 |
# So say no if there are warnings |
8723 |
if test -s conftest.err; then |
8724 |
# Append any errors to the config.log. |
8725 |
cat conftest.err 1>&5 |
8726 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8727 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8728 |
if diff conftest.exp conftest.er2 >/dev/null; then |
8729 |
lt_cv_prog_compiler_static_works=yes |
8730 |
fi |
8731 |
else |
8732 |
lt_cv_prog_compiler_static_works=yes |
8733 |
fi |
8734 |
fi |
8735 |
$RM -r conftest* |
8736 |
LDFLAGS=$save_LDFLAGS |
8737 |
|
8738 |
fi |
8739 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8740 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
8741 |
|
8742 |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
8743 |
: |
8744 |
else |
8745 |
lt_prog_compiler_static= |
8746 |
fi |
8747 |
|
8748 |
|
8749 |
|
8750 |
|
8751 |
|
8752 |
|
8753 |
|
8754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8755 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8756 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8757 |
$as_echo_n "(cached) " >&6 |
8758 |
else |
8759 |
lt_cv_prog_compiler_c_o=no |
8760 |
$RM -r conftest 2>/dev/null |
8761 |
mkdir conftest |
8762 |
cd conftest |
8763 |
mkdir out |
8764 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8765 |
|
8766 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8767 |
# Insert the option either (1) after the last *FLAGS variable, or |
8768 |
# (2) before a word containing "conftest.", or (3) at the end. |
8769 |
# Note that $ac_compile itself does not contain backslashes and begins |
8770 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8771 |
lt_compile=`echo "$ac_compile" | $SED \ |
8772 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8773 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8774 |
-e 's:$: $lt_compiler_flag:'` |
8775 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8776 |
(eval "$lt_compile" 2>out/conftest.err) |
8777 |
ac_status=$? |
8778 |
cat out/conftest.err >&5 |
8779 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8780 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8781 |
then |
8782 |
# The compiler can only warn and ignore the option if not recognized |
8783 |
# So say no if there are warnings |
8784 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8785 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8786 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8787 |
lt_cv_prog_compiler_c_o=yes |
8788 |
fi |
8789 |
fi |
8790 |
chmod u+w . 2>&5 |
8791 |
$RM conftest* |
8792 |
# SGI C++ compiler will create directory out/ii_files/ for |
8793 |
# template instantiation |
8794 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8795 |
$RM out/* && rmdir out |
8796 |
cd .. |
8797 |
$RM -r conftest |
8798 |
$RM conftest* |
8799 |
|
8800 |
fi |
8801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8802 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8803 |
|
8804 |
|
8805 |
|
8806 |
|
8807 |
|
8808 |
|
8809 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8810 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8811 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8812 |
$as_echo_n "(cached) " >&6 |
8813 |
else |
8814 |
lt_cv_prog_compiler_c_o=no |
8815 |
$RM -r conftest 2>/dev/null |
8816 |
mkdir conftest |
8817 |
cd conftest |
8818 |
mkdir out |
8819 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8820 |
|
8821 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8822 |
# Insert the option either (1) after the last *FLAGS variable, or |
8823 |
# (2) before a word containing "conftest.", or (3) at the end. |
8824 |
# Note that $ac_compile itself does not contain backslashes and begins |
8825 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8826 |
lt_compile=`echo "$ac_compile" | $SED \ |
8827 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8828 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8829 |
-e 's:$: $lt_compiler_flag:'` |
8830 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8831 |
(eval "$lt_compile" 2>out/conftest.err) |
8832 |
ac_status=$? |
8833 |
cat out/conftest.err >&5 |
8834 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8835 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8836 |
then |
8837 |
# The compiler can only warn and ignore the option if not recognized |
8838 |
# So say no if there are warnings |
8839 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8840 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8841 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8842 |
lt_cv_prog_compiler_c_o=yes |
8843 |
fi |
8844 |
fi |
8845 |
chmod u+w . 2>&5 |
8846 |
$RM conftest* |
8847 |
# SGI C++ compiler will create directory out/ii_files/ for |
8848 |
# template instantiation |
8849 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8850 |
$RM out/* && rmdir out |
8851 |
cd .. |
8852 |
$RM -r conftest |
8853 |
$RM conftest* |
8854 |
|
8855 |
fi |
8856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8857 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8858 |
|
8859 |
|
8860 |
|
8861 |
|
8862 |
hard_links=nottested |
8863 |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
8864 |
# do not overwrite the value of need_locks provided by the user |
8865 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8866 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
8867 |
hard_links=yes |
8868 |
$RM conftest* |
8869 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8870 |
touch conftest.a |
8871 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
8872 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8873 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8874 |
$as_echo "$hard_links" >&6; } |
8875 |
if test no = "$hard_links"; then |
8876 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
8877 |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
8878 |
need_locks=warn |
8879 |
fi |
8880 |
else |
8881 |
need_locks=no |
8882 |
fi |
8883 |
|
8884 |
|
8885 |
|
8886 |
|
8887 |
|
8888 |
|
8889 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8890 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
8891 |
|
8892 |
runpath_var= |
8893 |
allow_undefined_flag= |
8894 |
always_export_symbols=no |
8895 |
archive_cmds= |
8896 |
archive_expsym_cmds= |
8897 |
compiler_needs_object=no |
8898 |
enable_shared_with_static_runtimes=no |
8899 |
export_dynamic_flag_spec= |
8900 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
8901 |
hardcode_automatic=no |
8902 |
hardcode_direct=no |
8903 |
hardcode_direct_absolute=no |
8904 |
hardcode_libdir_flag_spec= |
8905 |
hardcode_libdir_separator= |
8906 |
hardcode_minus_L=no |
8907 |
hardcode_shlibpath_var=unsupported |
8908 |
inherit_rpath=no |
8909 |
link_all_deplibs=unknown |
8910 |
module_cmds= |
8911 |
module_expsym_cmds= |
8912 |
old_archive_from_new_cmds= |
8913 |
old_archive_from_expsyms_cmds= |
8914 |
thread_safe_flag_spec= |
8915 |
whole_archive_flag_spec= |
8916 |
# include_expsyms should be a list of space-separated symbols to be *always* |
8917 |
# included in the symbol list |
8918 |
include_expsyms= |
8919 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
8920 |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
8921 |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
8922 |
# as well as any symbol that contains 'd'. |
8923 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8924 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8925 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
8926 |
# the symbol is explicitly referenced. Since portable code cannot |
8927 |
# rely on this symbol name, it's probably fine to never include it in |
8928 |
# preloaded symbol tables. |
8929 |
# Exclude shared library initialization/finalization symbols. |
8930 |
extract_expsyms_cmds= |
8931 |
|
8932 |
case $host_os in |
8933 |
cygwin* | mingw* | pw32* | cegcc*) |
8934 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
8935 |
# When not using gcc, we currently assume that we are using |
8936 |
# Microsoft Visual C++. |
8937 |
if test yes != "$GCC"; then |
8938 |
with_gnu_ld=no |
8939 |
fi |
8940 |
;; |
8941 |
interix*) |
8942 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
8943 |
with_gnu_ld=yes |
8944 |
;; |
8945 |
openbsd* | bitrig*) |
8946 |
with_gnu_ld=no |
8947 |
;; |
8948 |
esac |
8949 |
|
8950 |
ld_shlibs=yes |
8951 |
|
8952 |
# On some targets, GNU ld is compatible enough with the native linker |
8953 |
# that we're better off using the native interface for both. |
8954 |
lt_use_gnu_ld_interface=no |
8955 |
if test yes = "$with_gnu_ld"; then |
8956 |
case $host_os in |
8957 |
aix*) |
8958 |
# The AIX port of GNU ld has always aspired to compatibility |
8959 |
# with the native linker. However, as the warning in the GNU ld |
8960 |
# block says, versions before 2.19.5* couldn't really create working |
8961 |
# shared libraries, regardless of the interface used. |
8962 |
case `$LD -v 2>&1` in |
8963 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
8964 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
8965 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
8966 |
*) |
8967 |
lt_use_gnu_ld_interface=yes |
8968 |
;; |
8969 |
esac |
8970 |
;; |
8971 |
*) |
8972 |
lt_use_gnu_ld_interface=yes |
8973 |
;; |
8974 |
esac |
8975 |
fi |
8976 |
|
8977 |
if test yes = "$lt_use_gnu_ld_interface"; then |
8978 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
8979 |
wlarc='$wl' |
8980 |
|
8981 |
# Set some defaults for GNU ld with shared library support. These |
8982 |
# are reset later if shared libraries are not supported. Putting them |
8983 |
# here allows them to be overridden if necessary. |
8984 |
runpath_var=LD_RUN_PATH |
8985 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8986 |
export_dynamic_flag_spec='$wl--export-dynamic' |
8987 |
# ancient GNU ld didn't support --whole-archive et. al. |
8988 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
8989 |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8990 |
else |
8991 |
whole_archive_flag_spec= |
8992 |
fi |
8993 |
supports_anon_versioning=no |
8994 |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
8995 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
8996 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8997 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
8998 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
8999 |
*\ 2.11.*) ;; # other 2.11 versions |
9000 |
*) supports_anon_versioning=yes ;; |
9001 |
esac |
9002 |
|
9003 |
# See if GNU ld supports shared libraries. |
9004 |
case $host_os in |
9005 |
aix[3-9]*) |
9006 |
# On AIX/PPC, the GNU linker is very broken |
9007 |
if test ia64 != "$host_cpu"; then |
9008 |
ld_shlibs=no |
9009 |
cat <<_LT_EOF 1>&2 |
9010 |
|
9011 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
9012 |
*** to be unable to reliably create shared libraries on AIX. |
9013 |
*** Therefore, libtool is disabling shared libraries support. If you |
9014 |
*** really care for shared libraries, you may want to install binutils |
9015 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
9016 |
*** You will then need to restart the configuration process. |
9017 |
|
9018 |
_LT_EOF |
9019 |
fi |
9020 |
;; |
9021 |
|
9022 |
amigaos*) |
9023 |
case $host_cpu in |
9024 |
powerpc) |
9025 |
# see comment about AmigaOS4 .so support |
9026 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9027 |
archive_expsym_cmds='' |
9028 |
;; |
9029 |
m68k) |
9030 |
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)' |
9031 |
hardcode_libdir_flag_spec='-L$libdir' |
9032 |
hardcode_minus_L=yes |
9033 |
;; |
9034 |
esac |
9035 |
;; |
9036 |
|
9037 |
beos*) |
9038 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9039 |
allow_undefined_flag=unsupported |
9040 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9041 |
# support --undefined. This deserves some investigation. FIXME |
9042 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9043 |
else |
9044 |
ld_shlibs=no |
9045 |
fi |
9046 |
;; |
9047 |
|
9048 |
cygwin* | mingw* | pw32* | cegcc*) |
9049 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9050 |
# as there is no search path for DLLs. |
9051 |
hardcode_libdir_flag_spec='-L$libdir' |
9052 |
export_dynamic_flag_spec='$wl--export-all-symbols' |
9053 |
allow_undefined_flag=unsupported |
9054 |
always_export_symbols=no |
9055 |
enable_shared_with_static_runtimes=yes |
9056 |
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' |
9057 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
9058 |
|
9059 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9060 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9061 |
# If the export-symbols file already is a .def file, use it as |
9062 |
# is; otherwise, prepend EXPORTS... |
9063 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9064 |
cp $export_symbols $output_objdir/$soname.def; |
9065 |
else |
9066 |
echo EXPORTS > $output_objdir/$soname.def; |
9067 |
cat $export_symbols >> $output_objdir/$soname.def; |
9068 |
fi~ |
9069 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9070 |
else |
9071 |
ld_shlibs=no |
9072 |
fi |
9073 |
;; |
9074 |
|
9075 |
haiku*) |
9076 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9077 |
link_all_deplibs=yes |
9078 |
;; |
9079 |
|
9080 |
os2*) |
9081 |
hardcode_libdir_flag_spec='-L$libdir' |
9082 |
hardcode_minus_L=yes |
9083 |
allow_undefined_flag=unsupported |
9084 |
shrext_cmds=.dll |
9085 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9086 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9087 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9088 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9089 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
9090 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9091 |
emximp -o $lib $output_objdir/$libname.def' |
9092 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9093 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9094 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9095 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9096 |
prefix_cmds="$SED"~ |
9097 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
9098 |
prefix_cmds="$prefix_cmds -e 1d"; |
9099 |
fi~ |
9100 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
9101 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
9102 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9103 |
emximp -o $lib $output_objdir/$libname.def' |
9104 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
9105 |
enable_shared_with_static_runtimes=yes |
9106 |
;; |
9107 |
|
9108 |
interix[3-9]*) |
9109 |
hardcode_direct=no |
9110 |
hardcode_shlibpath_var=no |
9111 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9112 |
export_dynamic_flag_spec='$wl-E' |
9113 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9114 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
9115 |
# default) and relocated if they conflict, which is a slow very memory |
9116 |
# consuming and fragmenting process. To avoid this, we pick a random, |
9117 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9118 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9119 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9120 |
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' |
9121 |
;; |
9122 |
|
9123 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9124 |
tmp_diet=no |
9125 |
if test linux-dietlibc = "$host_os"; then |
9126 |
case $cc_basename in |
9127 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9128 |
esac |
9129 |
fi |
9130 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9131 |
&& test no = "$tmp_diet" |
9132 |
then |
9133 |
tmp_addflag=' $pic_flag' |
9134 |
tmp_sharedflag='-shared' |
9135 |
case $cc_basename,$host_cpu in |
9136 |
pgcc*) # Portland Group C compiler |
9137 |
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' |
9138 |
tmp_addflag=' $pic_flag' |
9139 |
;; |
9140 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
9141 |
# Portland Group f77 and f90 compilers |
9142 |
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' |
9143 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
9144 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9145 |
tmp_addflag=' -i_dynamic' ;; |
9146 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
9147 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
9148 |
ifc* | ifort*) # Intel Fortran compiler |
9149 |
tmp_addflag=' -nofor_main' ;; |
9150 |
lf95*) # Lahey Fortran 8.1 |
9151 |
whole_archive_flag_spec= |
9152 |
tmp_sharedflag='--shared' ;; |
9153 |
nagfor*) # NAGFOR 5.3 |
9154 |
tmp_sharedflag='-Wl,-shared' ;; |
9155 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9156 |
tmp_sharedflag='-qmkshrobj' |
9157 |
tmp_addflag= ;; |
9158 |
nvcc*) # Cuda Compiler Driver 2.2 |
9159 |
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' |
9160 |
compiler_needs_object=yes |
9161 |
;; |
9162 |
esac |
9163 |
case `$CC -V 2>&1 | sed 5q` in |
9164 |
*Sun\ C*) # Sun C 5.9 |
9165 |
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' |
9166 |
compiler_needs_object=yes |
9167 |
tmp_sharedflag='-G' ;; |
9168 |
*Sun\ F*) # Sun Fortran 8.3 |
9169 |
tmp_sharedflag='-G' ;; |
9170 |
esac |
9171 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9172 |
|
9173 |
if test yes = "$supports_anon_versioning"; then |
9174 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9175 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9176 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9177 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
9178 |
fi |
9179 |
|
9180 |
case $cc_basename in |
9181 |
tcc*) |
9182 |
export_dynamic_flag_spec='-rdynamic' |
9183 |
;; |
9184 |
xlf* | bgf* | bgxlf* | mpixlf*) |
9185 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9186 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9187 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9188 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9189 |
if test yes = "$supports_anon_versioning"; then |
9190 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9191 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9192 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9193 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9194 |
fi |
9195 |
;; |
9196 |
esac |
9197 |
else |
9198 |
ld_shlibs=no |
9199 |
fi |
9200 |
;; |
9201 |
|
9202 |
netbsd*) |
9203 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9204 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9205 |
wlarc= |
9206 |
else |
9207 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9208 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9209 |
fi |
9210 |
;; |
9211 |
|
9212 |
solaris*) |
9213 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9214 |
ld_shlibs=no |
9215 |
cat <<_LT_EOF 1>&2 |
9216 |
|
9217 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9218 |
*** create shared libraries on Solaris systems. Therefore, libtool |
9219 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9220 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
9221 |
*** your PATH or compiler configuration so that the native linker is |
9222 |
*** used, and then restart. |
9223 |
|
9224 |
_LT_EOF |
9225 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9226 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9227 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9228 |
else |
9229 |
ld_shlibs=no |
9230 |
fi |
9231 |
;; |
9232 |
|
9233 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9234 |
case `$LD -v 2>&1` in |
9235 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
9236 |
ld_shlibs=no |
9237 |
cat <<_LT_EOF 1>&2 |
9238 |
|
9239 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
9240 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
9241 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9242 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9243 |
*** your PATH or compiler configuration so that the native linker is |
9244 |
*** used, and then restart. |
9245 |
|
9246 |
_LT_EOF |
9247 |
;; |
9248 |
*) |
9249 |
# For security reasons, it is highly recommended that you always |
9250 |
# use absolute paths for naming shared libraries, and exclude the |
9251 |
# DT_RUNPATH tag from executables and libraries. But doing so |
9252 |
# requires that you compile everything twice, which is a pain. |
9253 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9254 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9255 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9256 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9257 |
else |
9258 |
ld_shlibs=no |
9259 |
fi |
9260 |
;; |
9261 |
esac |
9262 |
;; |
9263 |
|
9264 |
sunos4*) |
9265 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9266 |
wlarc= |
9267 |
hardcode_direct=yes |
9268 |
hardcode_shlibpath_var=no |
9269 |
;; |
9270 |
|
9271 |
*) |
9272 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9273 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9274 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9275 |
else |
9276 |
ld_shlibs=no |
9277 |
fi |
9278 |
;; |
9279 |
esac |
9280 |
|
9281 |
if test no = "$ld_shlibs"; then |
9282 |
runpath_var= |
9283 |
hardcode_libdir_flag_spec= |
9284 |
export_dynamic_flag_spec= |
9285 |
whole_archive_flag_spec= |
9286 |
fi |
9287 |
else |
9288 |
# PORTME fill in a description of your system's linker (not GNU ld) |
9289 |
case $host_os in |
9290 |
aix3*) |
9291 |
allow_undefined_flag=unsupported |
9292 |
always_export_symbols=yes |
9293 |
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' |
9294 |
# Note: this linker hardcodes the directories in LIBPATH if there |
9295 |
# are no directories specified by -L. |
9296 |
hardcode_minus_L=yes |
9297 |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
9298 |
# Neither direct hardcoding nor static linking is supported with a |
9299 |
# broken collect2. |
9300 |
hardcode_direct=unsupported |
9301 |
fi |
9302 |
;; |
9303 |
|
9304 |
aix[4-9]*) |
9305 |
if test ia64 = "$host_cpu"; then |
9306 |
# On IA64, the linker does run time linking by default, so we don't |
9307 |
# have to do anything special. |
9308 |
aix_use_runtimelinking=no |
9309 |
exp_sym_flag='-Bexport' |
9310 |
no_entry_flag= |
9311 |
else |
9312 |
# If we're using GNU nm, then we don't want the "-C" option. |
9313 |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9314 |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
9315 |
# weak defined symbols like other global defined symbols, whereas |
9316 |
# GNU nm marks them as "W". |
9317 |
# While the 'weak' keyword is ignored in the Export File, we need |
9318 |
# it in the Import File for the 'aix-soname' feature, so we have |
9319 |
# to replace the "-B" option with "-P" for AIX nm. |
9320 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9321 |
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' |
9322 |
else |
9323 |
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' |
9324 |
fi |
9325 |
aix_use_runtimelinking=no |
9326 |
|
9327 |
# Test if we are trying to use run time linking or normal |
9328 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9329 |
# have runtime linking enabled, and use it for executables. |
9330 |
# For shared libraries, we enable/disable runtime linking |
9331 |
# depending on the kind of the shared library created - |
9332 |
# when "with_aix_soname,aix_use_runtimelinking" is: |
9333 |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
9334 |
# "aix,yes" lib.so shared, rtl:yes, for executables |
9335 |
# lib.a static archive |
9336 |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
9337 |
# lib.a(lib.so.V) shared, rtl:no, for executables |
9338 |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
9339 |
# lib.a(lib.so.V) shared, rtl:no |
9340 |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
9341 |
# lib.a static archive |
9342 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9343 |
for ld_flag in $LDFLAGS; do |
9344 |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
9345 |
aix_use_runtimelinking=yes |
9346 |
break |
9347 |
fi |
9348 |
done |
9349 |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9350 |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
9351 |
# so we don't have lib.a shared libs to link our executables. |
9352 |
# We have to force runtime linking in this case. |
9353 |
aix_use_runtimelinking=yes |
9354 |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
9355 |
fi |
9356 |
;; |
9357 |
esac |
9358 |
|
9359 |
exp_sym_flag='-bexport' |
9360 |
no_entry_flag='-bnoentry' |
9361 |
fi |
9362 |
|
9363 |
# When large executables or shared objects are built, AIX ld can |
9364 |
# have problems creating the table of contents. If linking a library |
9365 |
# or program results in "error TOC overflow" add -mminimal-toc to |
9366 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
9367 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
9368 |
|
9369 |
archive_cmds='' |
9370 |
hardcode_direct=yes |
9371 |
hardcode_direct_absolute=yes |
9372 |
hardcode_libdir_separator=':' |
9373 |
link_all_deplibs=yes |
9374 |
file_list_spec='$wl-f,' |
9375 |
case $with_aix_soname,$aix_use_runtimelinking in |
9376 |
aix,*) ;; # traditional, no import file |
9377 |
svr4,* | *,yes) # use import file |
9378 |
# The Import File defines what to hardcode. |
9379 |
hardcode_direct=no |
9380 |
hardcode_direct_absolute=no |
9381 |
;; |
9382 |
esac |
9383 |
|
9384 |
if test yes = "$GCC"; then |
9385 |
case $host_os in aix4.[012]|aix4.[012].*) |
9386 |
# We only want to do this on AIX 4.2 and lower, the check |
9387 |
# below for broken collect2 doesn't work under 4.3+ |
9388 |
collect2name=`$CC -print-prog-name=collect2` |
9389 |
if test -f "$collect2name" && |
9390 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9391 |
then |
9392 |
# We have reworked collect2 |
9393 |
: |
9394 |
else |
9395 |
# We have old collect2 |
9396 |
hardcode_direct=unsupported |
9397 |
# It fails to find uninstalled libraries when the uninstalled |
9398 |
# path is not listed in the libpath. Setting hardcode_minus_L |
9399 |
# to unsupported forces relinking |
9400 |
hardcode_minus_L=yes |
9401 |
hardcode_libdir_flag_spec='-L$libdir' |
9402 |
hardcode_libdir_separator= |
9403 |
fi |
9404 |
;; |
9405 |
esac |
9406 |
shared_flag='-shared' |
9407 |
if test yes = "$aix_use_runtimelinking"; then |
9408 |
shared_flag="$shared_flag "'$wl-G' |
9409 |
fi |
9410 |
# Need to ensure runtime linking is disabled for the traditional |
9411 |
# shared library, or the linker may eventually find shared libraries |
9412 |
# /with/ Import File - we do not want to mix them. |
9413 |
shared_flag_aix='-shared' |
9414 |
shared_flag_svr4='-shared $wl-G' |
9415 |
else |
9416 |
# not using gcc |
9417 |
if test ia64 = "$host_cpu"; then |
9418 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9419 |
# chokes on -Wl,-G. The following line is correct: |
9420 |
shared_flag='-G' |
9421 |
else |
9422 |
if test yes = "$aix_use_runtimelinking"; then |
9423 |
shared_flag='$wl-G' |
9424 |
else |
9425 |
shared_flag='$wl-bM:SRE' |
9426 |
fi |
9427 |
shared_flag_aix='$wl-bM:SRE' |
9428 |
shared_flag_svr4='$wl-G' |
9429 |
fi |
9430 |
fi |
9431 |
|
9432 |
export_dynamic_flag_spec='$wl-bexpall' |
9433 |
# It seems that -bexpall does not export symbols beginning with |
9434 |
# underscore (_), so it is better to generate a list of symbols to export. |
9435 |
always_export_symbols=yes |
9436 |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
9437 |
# Warning - without using the other runtime loading flags (-brtl), |
9438 |
# -berok will link without error, but may produce a broken library. |
9439 |
allow_undefined_flag='-berok' |
9440 |
# Determine the default libpath from the value encoded in an |
9441 |
# empty executable. |
9442 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9443 |
aix_libpath=$lt_cv_aix_libpath |
9444 |
else |
9445 |
if ${lt_cv_aix_libpath_+:} false; then : |
9446 |
$as_echo_n "(cached) " >&6 |
9447 |
else |
9448 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9449 |
/* end confdefs.h. */ |
9450 |
|
9451 |
int |
9452 |
main () |
9453 |
{ |
9454 |
|
9455 |
; |
9456 |
return 0; |
9457 |
} |
9458 |
_ACEOF |
9459 |
if ac_fn_c_try_link "$LINENO"; then : |
9460 |
|
9461 |
lt_aix_libpath_sed=' |
9462 |
/Import File Strings/,/^$/ { |
9463 |
/^0/ { |
9464 |
s/^0 *\([^ ]*\) *$/\1/ |
9465 |
p |
9466 |
} |
9467 |
}' |
9468 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9469 |
# Check for a 64-bit object if we didn't find anything. |
9470 |
if test -z "$lt_cv_aix_libpath_"; then |
9471 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9472 |
fi |
9473 |
fi |
9474 |
rm -f core conftest.err conftest.$ac_objext \ |
9475 |
conftest$ac_exeext conftest.$ac_ext |
9476 |
if test -z "$lt_cv_aix_libpath_"; then |
9477 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9478 |
fi |
9479 |
|
9480 |
fi |
9481 |
|
9482 |
aix_libpath=$lt_cv_aix_libpath_ |
9483 |
fi |
9484 |
|
9485 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9486 |
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 |
9487 |
else |
9488 |
if test ia64 = "$host_cpu"; then |
9489 |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
9490 |
allow_undefined_flag="-z nodefs" |
9491 |
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" |
9492 |
else |
9493 |
# Determine the default libpath from the value encoded in an |
9494 |
# empty executable. |
9495 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9496 |
aix_libpath=$lt_cv_aix_libpath |
9497 |
else |
9498 |
if ${lt_cv_aix_libpath_+:} false; then : |
9499 |
$as_echo_n "(cached) " >&6 |
9500 |
else |
9501 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9502 |
/* end confdefs.h. */ |
9503 |
|
9504 |
int |
9505 |
main () |
9506 |
{ |
9507 |
|
9508 |
; |
9509 |
return 0; |
9510 |
} |
9511 |
_ACEOF |
9512 |
if ac_fn_c_try_link "$LINENO"; then : |
9513 |
|
9514 |
lt_aix_libpath_sed=' |
9515 |
/Import File Strings/,/^$/ { |
9516 |
/^0/ { |
9517 |
s/^0 *\([^ ]*\) *$/\1/ |
9518 |
p |
9519 |
} |
9520 |
}' |
9521 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9522 |
# Check for a 64-bit object if we didn't find anything. |
9523 |
if test -z "$lt_cv_aix_libpath_"; then |
9524 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9525 |
fi |
9526 |
fi |
9527 |
rm -f core conftest.err conftest.$ac_objext \ |
9528 |
conftest$ac_exeext conftest.$ac_ext |
9529 |
if test -z "$lt_cv_aix_libpath_"; then |
9530 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9531 |
fi |
9532 |
|
9533 |
fi |
9534 |
|
9535 |
aix_libpath=$lt_cv_aix_libpath_ |
9536 |
fi |
9537 |
|
9538 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9539 |
# Warning - without using the other run time loading flags, |
9540 |
# -berok will link without error, but may produce a broken library. |
9541 |
no_undefined_flag=' $wl-bernotok' |
9542 |
allow_undefined_flag=' $wl-berok' |
9543 |
if test yes = "$with_gnu_ld"; then |
9544 |
# We only use this code for GNU lds that support --whole-archive. |
9545 |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
9546 |
else |
9547 |
# Exported symbols can be pulled into shared objects from archives |
9548 |
whole_archive_flag_spec='$convenience' |
9549 |
fi |
9550 |
archive_cmds_need_lc=yes |
9551 |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9552 |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
9553 |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
9554 |
if test svr4 != "$with_aix_soname"; then |
9555 |
# This is similar to how AIX traditionally builds its shared libraries. |
9556 |
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' |
9557 |
fi |
9558 |
if test aix != "$with_aix_soname"; then |
9559 |
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' |
9560 |
else |
9561 |
# used by -dlpreopen to get the symbols |
9562 |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
9563 |
fi |
9564 |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
9565 |
fi |
9566 |
fi |
9567 |
;; |
9568 |
|
9569 |
amigaos*) |
9570 |
case $host_cpu in |
9571 |
powerpc) |
9572 |
# see comment about AmigaOS4 .so support |
9573 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9574 |
archive_expsym_cmds='' |
9575 |
;; |
9576 |
m68k) |
9577 |
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)' |
9578 |
hardcode_libdir_flag_spec='-L$libdir' |
9579 |
hardcode_minus_L=yes |
9580 |
;; |
9581 |
esac |
9582 |
;; |
9583 |
|
9584 |
bsdi[45]*) |
9585 |
export_dynamic_flag_spec=-rdynamic |
9586 |
;; |
9587 |
|
9588 |
cygwin* | mingw* | pw32* | cegcc*) |
9589 |
# When not using gcc, we currently assume that we are using |
9590 |
# Microsoft Visual C++. |
9591 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
9592 |
# no search path for DLLs. |
9593 |
case $cc_basename in |
9594 |
cl*) |
9595 |
# Native MSVC |
9596 |
hardcode_libdir_flag_spec=' ' |
9597 |
allow_undefined_flag=unsupported |
9598 |
always_export_symbols=yes |
9599 |
file_list_spec='@' |
9600 |
# Tell ltmain to make .lib files, not .a files. |
9601 |
libext=lib |
9602 |
# Tell ltmain to make .dll files, not .so files. |
9603 |
shrext_cmds=.dll |
9604 |
# FIXME: Setting linknames here is a bad hack. |
9605 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9606 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9607 |
cp "$export_symbols" "$output_objdir/$soname.def"; |
9608 |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
9609 |
else |
9610 |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
9611 |
fi~ |
9612 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
9613 |
linknames=' |
9614 |
# The linker will not automatically build a static lib if we build a DLL. |
9615 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
9616 |
enable_shared_with_static_runtimes=yes |
9617 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
9618 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
9619 |
# Don't use ranlib |
9620 |
old_postinstall_cmds='chmod 644 $oldlib' |
9621 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
9622 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9623 |
case $lt_outputfile in |
9624 |
*.exe|*.EXE) ;; |
9625 |
*) |
9626 |
lt_outputfile=$lt_outputfile.exe |
9627 |
lt_tool_outputfile=$lt_tool_outputfile.exe |
9628 |
;; |
9629 |
esac~ |
9630 |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
9631 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
9632 |
$RM "$lt_outputfile.manifest"; |
9633 |
fi' |
9634 |
;; |
9635 |
*) |
9636 |
# Assume MSVC wrapper |
9637 |
hardcode_libdir_flag_spec=' ' |
9638 |
allow_undefined_flag=unsupported |
9639 |
# Tell ltmain to make .lib files, not .a files. |
9640 |
libext=lib |
9641 |
# Tell ltmain to make .dll files, not .so files. |
9642 |
shrext_cmds=.dll |
9643 |
# FIXME: Setting linknames here is a bad hack. |
9644 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
9645 |
# The linker will automatically build a .lib file if we build a DLL. |
9646 |
old_archive_from_new_cmds='true' |
9647 |
# FIXME: Should let the user specify the lib program. |
9648 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9649 |
enable_shared_with_static_runtimes=yes |
9650 |
;; |
9651 |
esac |
9652 |
;; |
9653 |
|
9654 |
darwin* | rhapsody*) |
9655 |
|
9656 |
|
9657 |
archive_cmds_need_lc=no |
9658 |
hardcode_direct=no |
9659 |
hardcode_automatic=yes |
9660 |
hardcode_shlibpath_var=unsupported |
9661 |
if test yes = "$lt_cv_ld_force_load"; then |
9662 |
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\"`' |
9663 |
|
9664 |
else |
9665 |
whole_archive_flag_spec='' |
9666 |
fi |
9667 |
link_all_deplibs=yes |
9668 |
allow_undefined_flag=$_lt_dar_allow_undefined |
9669 |
case $cc_basename in |
9670 |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
9671 |
*) _lt_dar_can_shared=$GCC ;; |
9672 |
esac |
9673 |
if test yes = "$_lt_dar_can_shared"; then |
9674 |
output_verbose_link_cmd=func_echo_all |
9675 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9676 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
9677 |
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" |
9678 |
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" |
9679 |
|
9680 |
else |
9681 |
ld_shlibs=no |
9682 |
fi |
9683 |
|
9684 |
;; |
9685 |
|
9686 |
dgux*) |
9687 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9688 |
hardcode_libdir_flag_spec='-L$libdir' |
9689 |
hardcode_shlibpath_var=no |
9690 |
;; |
9691 |
|
9692 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9693 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
9694 |
# does not break anything, and helps significantly (at the cost of a little |
9695 |
# extra space). |
9696 |
freebsd2.2*) |
9697 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9698 |
hardcode_libdir_flag_spec='-R$libdir' |
9699 |
hardcode_direct=yes |
9700 |
hardcode_shlibpath_var=no |
9701 |
;; |
9702 |
|
9703 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9704 |
freebsd2.*) |
9705 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9706 |
hardcode_direct=yes |
9707 |
hardcode_minus_L=yes |
9708 |
hardcode_shlibpath_var=no |
9709 |
;; |
9710 |
|
9711 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9712 |
freebsd* | dragonfly*) |
9713 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9714 |
hardcode_libdir_flag_spec='-R$libdir' |
9715 |
hardcode_direct=yes |
9716 |
hardcode_shlibpath_var=no |
9717 |
;; |
9718 |
|
9719 |
hpux9*) |
9720 |
if test yes = "$GCC"; then |
9721 |
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' |
9722 |
else |
9723 |
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' |
9724 |
fi |
9725 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9726 |
hardcode_libdir_separator=: |
9727 |
hardcode_direct=yes |
9728 |
|
9729 |
# hardcode_minus_L: Not really in the search PATH, |
9730 |
# but as the default location of the library. |
9731 |
hardcode_minus_L=yes |
9732 |
export_dynamic_flag_spec='$wl-E' |
9733 |
;; |
9734 |
|
9735 |
hpux10*) |
9736 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
9737 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9738 |
else |
9739 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9740 |
fi |
9741 |
if test no = "$with_gnu_ld"; then |
9742 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9743 |
hardcode_libdir_separator=: |
9744 |
hardcode_direct=yes |
9745 |
hardcode_direct_absolute=yes |
9746 |
export_dynamic_flag_spec='$wl-E' |
9747 |
# hardcode_minus_L: Not really in the search PATH, |
9748 |
# but as the default location of the library. |
9749 |
hardcode_minus_L=yes |
9750 |
fi |
9751 |
;; |
9752 |
|
9753 |
hpux11*) |
9754 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
9755 |
case $host_cpu in |
9756 |
hppa*64*) |
9757 |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
9758 |
;; |
9759 |
ia64*) |
9760 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9761 |
;; |
9762 |
*) |
9763 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9764 |
;; |
9765 |
esac |
9766 |
else |
9767 |
case $host_cpu in |
9768 |
hppa*64*) |
9769 |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
9770 |
;; |
9771 |
ia64*) |
9772 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9773 |
;; |
9774 |
*) |
9775 |
|
9776 |
# Older versions of the 11.00 compiler do not understand -b yet |
9777 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
9778 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
9779 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
9780 |
if ${lt_cv_prog_compiler__b+:} false; then : |
9781 |
$as_echo_n "(cached) " >&6 |
9782 |
else |
9783 |
lt_cv_prog_compiler__b=no |
9784 |
save_LDFLAGS=$LDFLAGS |
9785 |
LDFLAGS="$LDFLAGS -b" |
9786 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
9787 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
9788 |
# The linker can only warn and ignore the option if not recognized |
9789 |
# So say no if there are warnings |
9790 |
if test -s conftest.err; then |
9791 |
# Append any errors to the config.log. |
9792 |
cat conftest.err 1>&5 |
9793 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
9794 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9795 |
if diff conftest.exp conftest.er2 >/dev/null; then |
9796 |
lt_cv_prog_compiler__b=yes |
9797 |
fi |
9798 |
else |
9799 |
lt_cv_prog_compiler__b=yes |
9800 |
fi |
9801 |
fi |
9802 |
$RM -r conftest* |
9803 |
LDFLAGS=$save_LDFLAGS |
9804 |
|
9805 |
fi |
9806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
9807 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
9808 |
|
9809 |
if test yes = "$lt_cv_prog_compiler__b"; then |
9810 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9811 |
else |
9812 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9813 |
fi |
9814 |
|
9815 |
;; |
9816 |
esac |
9817 |
fi |
9818 |
if test no = "$with_gnu_ld"; then |
9819 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
9820 |
hardcode_libdir_separator=: |
9821 |
|
9822 |
case $host_cpu in |
9823 |
hppa*64*|ia64*) |
9824 |
hardcode_direct=no |
9825 |
hardcode_shlibpath_var=no |
9826 |
;; |
9827 |
*) |
9828 |
hardcode_direct=yes |
9829 |
hardcode_direct_absolute=yes |
9830 |
export_dynamic_flag_spec='$wl-E' |
9831 |
|
9832 |
# hardcode_minus_L: Not really in the search PATH, |
9833 |
# but as the default location of the library. |
9834 |
hardcode_minus_L=yes |
9835 |
;; |
9836 |
esac |
9837 |
fi |
9838 |
;; |
9839 |
|
9840 |
irix5* | irix6* | nonstopux*) |
9841 |
if test yes = "$GCC"; then |
9842 |
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' |
9843 |
# Try to use the -exported_symbol ld option, if it does not |
9844 |
# work, assume that -exports_file does not work either and |
9845 |
# implicitly export all symbols. |
9846 |
# This should be the same for all languages, so no per-tag cache variable. |
9847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
9848 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
9849 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
9850 |
$as_echo_n "(cached) " >&6 |
9851 |
else |
9852 |
save_LDFLAGS=$LDFLAGS |
9853 |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
9854 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9855 |
/* end confdefs.h. */ |
9856 |
int foo (void) { return 0; } |
9857 |
_ACEOF |
9858 |
if ac_fn_c_try_link "$LINENO"; then : |
9859 |
lt_cv_irix_exported_symbol=yes |
9860 |
else |
9861 |
lt_cv_irix_exported_symbol=no |
9862 |
fi |
9863 |
rm -f core conftest.err conftest.$ac_objext \ |
9864 |
conftest$ac_exeext conftest.$ac_ext |
9865 |
LDFLAGS=$save_LDFLAGS |
9866 |
fi |
9867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
9868 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
9869 |
if test yes = "$lt_cv_irix_exported_symbol"; then |
9870 |
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' |
9871 |
fi |
9872 |
else |
9873 |
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' |
9874 |
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' |
9875 |
fi |
9876 |
archive_cmds_need_lc='no' |
9877 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9878 |
hardcode_libdir_separator=: |
9879 |
inherit_rpath=yes |
9880 |
link_all_deplibs=yes |
9881 |
;; |
9882 |
|
9883 |
linux*) |
9884 |
case $cc_basename in |
9885 |
tcc*) |
9886 |
# Fabrice Bellard et al's Tiny C Compiler |
9887 |
ld_shlibs=yes |
9888 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9889 |
;; |
9890 |
esac |
9891 |
;; |
9892 |
|
9893 |
netbsd*) |
9894 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9895 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
9896 |
else |
9897 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
9898 |
fi |
9899 |
hardcode_libdir_flag_spec='-R$libdir' |
9900 |
hardcode_direct=yes |
9901 |
hardcode_shlibpath_var=no |
9902 |
;; |
9903 |
|
9904 |
newsos6) |
9905 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9906 |
hardcode_direct=yes |
9907 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9908 |
hardcode_libdir_separator=: |
9909 |
hardcode_shlibpath_var=no |
9910 |
;; |
9911 |
|
9912 |
*nto* | *qnx*) |
9913 |
;; |
9914 |
|
9915 |
openbsd* | bitrig*) |
9916 |
if test -f /usr/libexec/ld.so; then |
9917 |
hardcode_direct=yes |
9918 |
hardcode_shlibpath_var=no |
9919 |
hardcode_direct_absolute=yes |
9920 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
9921 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9922 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9923 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9924 |
export_dynamic_flag_spec='$wl-E' |
9925 |
else |
9926 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9927 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9928 |
fi |
9929 |
else |
9930 |
ld_shlibs=no |
9931 |
fi |
9932 |
;; |
9933 |
|
9934 |
os2*) |
9935 |
hardcode_libdir_flag_spec='-L$libdir' |
9936 |
hardcode_minus_L=yes |
9937 |
allow_undefined_flag=unsupported |
9938 |
shrext_cmds=.dll |
9939 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9940 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9941 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9942 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9943 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
9944 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9945 |
emximp -o $lib $output_objdir/$libname.def' |
9946 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9947 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9948 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9949 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9950 |
prefix_cmds="$SED"~ |
9951 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
9952 |
prefix_cmds="$prefix_cmds -e 1d"; |
9953 |
fi~ |
9954 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
9955 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
9956 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9957 |
emximp -o $lib $output_objdir/$libname.def' |
9958 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
9959 |
enable_shared_with_static_runtimes=yes |
9960 |
;; |
9961 |
|
9962 |
osf3*) |
9963 |
if test yes = "$GCC"; then |
9964 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
9965 |
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' |
9966 |
else |
9967 |
allow_undefined_flag=' -expect_unresolved \*' |
9968 |
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' |
9969 |
fi |
9970 |
archive_cmds_need_lc='no' |
9971 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9972 |
hardcode_libdir_separator=: |
9973 |
;; |
9974 |
|
9975 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
9976 |
if test yes = "$GCC"; then |
9977 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
9978 |
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' |
9979 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9980 |
else |
9981 |
allow_undefined_flag=' -expect_unresolved \*' |
9982 |
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' |
9983 |
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~ |
9984 |
$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' |
9985 |
|
9986 |
# Both c and cxx compiler support -rpath directly |
9987 |
hardcode_libdir_flag_spec='-rpath $libdir' |
9988 |
fi |
9989 |
archive_cmds_need_lc='no' |
9990 |
hardcode_libdir_separator=: |
9991 |
;; |
9992 |
|
9993 |
solaris*) |
9994 |
no_undefined_flag=' -z defs' |
9995 |
if test yes = "$GCC"; then |
9996 |
wlarc='$wl' |
9997 |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
9998 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9999 |
$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' |
10000 |
else |
10001 |
case `$CC -V 2>&1` in |
10002 |
*"Compilers 5.0"*) |
10003 |
wlarc='' |
10004 |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10005 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10006 |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10007 |
;; |
10008 |
*) |
10009 |
wlarc='$wl' |
10010 |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10011 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10012 |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10013 |
;; |
10014 |
esac |
10015 |
fi |
10016 |
hardcode_libdir_flag_spec='-R$libdir' |
10017 |
hardcode_shlibpath_var=no |
10018 |
case $host_os in |
10019 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
10020 |
*) |
10021 |
# The compiler driver will combine and reorder linker options, |
10022 |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
10023 |
# but is careful enough not to reorder. |
10024 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10025 |
if test yes = "$GCC"; then |
10026 |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
10027 |
else |
10028 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
10029 |
fi |
10030 |
;; |
10031 |
esac |
10032 |
link_all_deplibs=yes |
10033 |
;; |
10034 |
|
10035 |
sunos4*) |
10036 |
if test sequent = "$host_vendor"; then |
10037 |
# Use $CC to link under sequent, because it throws in some extra .o |
10038 |
# files that make .init and .fini sections work. |
10039 |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10040 |
else |
10041 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
10042 |
fi |
10043 |
hardcode_libdir_flag_spec='-L$libdir' |
10044 |
hardcode_direct=yes |
10045 |
hardcode_minus_L=yes |
10046 |
hardcode_shlibpath_var=no |
10047 |
;; |
10048 |
|
10049 |
sysv4) |
10050 |
case $host_vendor in |
10051 |
sni) |
10052 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10053 |
hardcode_direct=yes # is this really true??? |
10054 |
;; |
10055 |
siemens) |
10056 |
## LD is ld it makes a PLAMLIB |
10057 |
## CC just makes a GrossModule. |
10058 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10059 |
reload_cmds='$CC -r -o $output$reload_objs' |
10060 |
hardcode_direct=no |
10061 |
;; |
10062 |
motorola) |
10063 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10064 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
10065 |
;; |
10066 |
esac |
10067 |
runpath_var='LD_RUN_PATH' |
10068 |
hardcode_shlibpath_var=no |
10069 |
;; |
10070 |
|
10071 |
sysv4.3*) |
10072 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10073 |
hardcode_shlibpath_var=no |
10074 |
export_dynamic_flag_spec='-Bexport' |
10075 |
;; |
10076 |
|
10077 |
sysv4*MP*) |
10078 |
if test -d /usr/nec; then |
10079 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10080 |
hardcode_shlibpath_var=no |
10081 |
runpath_var=LD_RUN_PATH |
10082 |
hardcode_runpath_var=yes |
10083 |
ld_shlibs=yes |
10084 |
fi |
10085 |
;; |
10086 |
|
10087 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10088 |
no_undefined_flag='$wl-z,text' |
10089 |
archive_cmds_need_lc=no |
10090 |
hardcode_shlibpath_var=no |
10091 |
runpath_var='LD_RUN_PATH' |
10092 |
|
10093 |
if test yes = "$GCC"; then |
10094 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10095 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10096 |
else |
10097 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10098 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10099 |
fi |
10100 |
;; |
10101 |
|
10102 |
sysv5* | sco3.2v5* | sco5v6*) |
10103 |
# Note: We CANNOT use -z defs as we might desire, because we do not |
10104 |
# link with -lc, and that would cause any symbols used from libc to |
10105 |
# always be unresolved, which means just about no library would |
10106 |
# ever link correctly. If we're not using GNU ld we use -z text |
10107 |
# though, which does catch some bad symbols but isn't as heavy-handed |
10108 |
# as -z defs. |
10109 |
no_undefined_flag='$wl-z,text' |
10110 |
allow_undefined_flag='$wl-z,nodefs' |
10111 |
archive_cmds_need_lc=no |
10112 |
hardcode_shlibpath_var=no |
10113 |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
10114 |
hardcode_libdir_separator=':' |
10115 |
link_all_deplibs=yes |
10116 |
export_dynamic_flag_spec='$wl-Bexport' |
10117 |
runpath_var='LD_RUN_PATH' |
10118 |
|
10119 |
if test yes = "$GCC"; then |
10120 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10121 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10122 |
else |
10123 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10124 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10125 |
fi |
10126 |
;; |
10127 |
|
10128 |
uts4*) |
10129 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10130 |
hardcode_libdir_flag_spec='-L$libdir' |
10131 |
hardcode_shlibpath_var=no |
10132 |
;; |
10133 |
|
10134 |
*) |
10135 |
ld_shlibs=no |
10136 |
;; |
10137 |
esac |
10138 |
|
10139 |
if test sni = "$host_vendor"; then |
10140 |
case $host in |
10141 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
10142 |
export_dynamic_flag_spec='$wl-Blargedynsym' |
10143 |
;; |
10144 |
esac |
10145 |
fi |
10146 |
fi |
10147 |
|
10148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10149 |
$as_echo "$ld_shlibs" >&6; } |
10150 |
test no = "$ld_shlibs" && can_build_shared=no |
10151 |
|
10152 |
with_gnu_ld=$with_gnu_ld |
10153 |
|
10154 |
|
10155 |
|
10156 |
|
10157 |
|
10158 |
|
10159 |
|
10160 |
|
10161 |
|
10162 |
|
10163 |
|
10164 |
|
10165 |
|
10166 |
|
10167 |
|
10168 |
# |
10169 |
# Do we need to explicitly link libc? |
10170 |
# |
10171 |
case "x$archive_cmds_need_lc" in |
10172 |
x|xyes) |
10173 |
# Assume -lc should be added |
10174 |
archive_cmds_need_lc=yes |
10175 |
|
10176 |
if test yes,yes = "$GCC,$enable_shared"; then |
10177 |
case $archive_cmds in |
10178 |
*'~'*) |
10179 |
# FIXME: we may have to deal with multi-command sequences. |
10180 |
;; |
10181 |
'$CC '*) |
10182 |
# Test whether the compiler implicitly links with -lc since on some |
10183 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
10184 |
# to ld, don't add -lc before -lgcc. |
10185 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10186 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
10187 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10188 |
$as_echo_n "(cached) " >&6 |
10189 |
else |
10190 |
$RM conftest* |
10191 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
10192 |
|
10193 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10194 |
(eval $ac_compile) 2>&5 |
10195 |
ac_status=$? |
10196 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10197 |
test $ac_status = 0; } 2>conftest.err; then |
10198 |
soname=conftest |
10199 |
lib=conftest |
10200 |
libobjs=conftest.$ac_objext |
10201 |
deplibs= |
10202 |
wl=$lt_prog_compiler_wl |
10203 |
pic_flag=$lt_prog_compiler_pic |
10204 |
compiler_flags=-v |
10205 |
linker_flags=-v |
10206 |
verstring= |
10207 |
output_objdir=. |
10208 |
libname=conftest |
10209 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
10210 |
allow_undefined_flag= |
10211 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
10212 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10213 |
ac_status=$? |
10214 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10215 |
test $ac_status = 0; } |
10216 |
then |
10217 |
lt_cv_archive_cmds_need_lc=no |
10218 |
else |
10219 |
lt_cv_archive_cmds_need_lc=yes |
10220 |
fi |
10221 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
10222 |
else |
10223 |
cat conftest.err 1>&5 |
10224 |
fi |
10225 |
$RM conftest* |
10226 |
|
10227 |
fi |
10228 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10229 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
10230 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
10231 |
;; |
10232 |
esac |
10233 |
fi |
10234 |
;; |
10235 |
esac |
10236 |
|
10237 |
|
10238 |
|
10239 |
|
10240 |
|
10241 |
|
10242 |
|
10243 |
|
10244 |
|
10245 |
|
10246 |
|
10247 |
|
10248 |
|
10249 |
|
10250 |
|
10251 |
|
10252 |
|
10253 |
|
10254 |
|
10255 |
|
10256 |
|
10257 |
|
10258 |
|
10259 |
|
10260 |
|
10261 |
|
10262 |
|
10263 |
|
10264 |
|
10265 |
|
10266 |
|
10267 |
|
10268 |
|
10269 |
|
10270 |
|
10271 |
|
10272 |
|
10273 |
|
10274 |
|
10275 |
|
10276 |
|
10277 |
|
10278 |
|
10279 |
|
10280 |
|
10281 |
|
10282 |
|
10283 |
|
10284 |
|
10285 |
|
10286 |
|
10287 |
|
10288 |
|
10289 |
|
10290 |
|
10291 |
|
10292 |
|
10293 |
|
10294 |
|
10295 |
|
10296 |
|
10297 |
|
10298 |
|
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 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10389 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
10390 |
|
10391 |
if test yes = "$GCC"; then |
10392 |
case $host_os in |
10393 |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10394 |
*) lt_awk_arg='/^libraries:/' ;; |
10395 |
esac |
10396 |
case $host_os in |
10397 |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10398 |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
10399 |
esac |
10400 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
10401 |
case $lt_search_path_spec in |
10402 |
*\;*) |
10403 |
# if the path contains ";" then we assume it to be the separator |
10404 |
# otherwise default to the standard path separator (i.e. ":") - it is |
10405 |
# assumed that no part of a normal pathname contains ";" but that should |
10406 |
# okay in the real world where ";" in dirpaths is itself problematic. |
10407 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10408 |
;; |
10409 |
*) |
10410 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
10411 |
;; |
10412 |
esac |
10413 |
# Ok, now we have the path, separated by spaces, we can step through it |
10414 |
# and add multilib dir if necessary... |
10415 |
lt_tmp_lt_search_path_spec= |
10416 |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10417 |
# ...but if some path component already ends with the multilib dir we assume |
10418 |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
10419 |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
10420 |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
10421 |
lt_multi_os_dir= |
10422 |
;; |
10423 |
esac |
10424 |
for lt_sys_path in $lt_search_path_spec; do |
10425 |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10426 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
10427 |
elif test -n "$lt_multi_os_dir"; then |
10428 |
test -d "$lt_sys_path" && \ |
10429 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10430 |
fi |
10431 |
done |
10432 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10433 |
BEGIN {RS = " "; FS = "/|\n";} { |
10434 |
lt_foo = ""; |
10435 |
lt_count = 0; |
10436 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
10437 |
if ($lt_i != "" && $lt_i != ".") { |
10438 |
if ($lt_i == "..") { |
10439 |
lt_count++; |
10440 |
} else { |
10441 |
if (lt_count == 0) { |
10442 |
lt_foo = "/" $lt_i lt_foo; |
10443 |
} else { |
10444 |
lt_count--; |
10445 |
} |
10446 |
} |
10447 |
} |
10448 |
} |
10449 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
10450 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10451 |
}'` |
10452 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
10453 |
# for these hosts. |
10454 |
case $host_os in |
10455 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
10456 |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
10457 |
esac |
10458 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
10459 |
else |
10460 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10461 |
fi |
10462 |
library_names_spec= |
10463 |
libname_spec='lib$name' |
10464 |
soname_spec= |
10465 |
shrext_cmds=.so |
10466 |
postinstall_cmds= |
10467 |
postuninstall_cmds= |
10468 |
finish_cmds= |
10469 |
finish_eval= |
10470 |
shlibpath_var= |
10471 |
shlibpath_overrides_runpath=unknown |
10472 |
version_type=none |
10473 |
dynamic_linker="$host_os ld.so" |
10474 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
10475 |
need_lib_prefix=unknown |
10476 |
hardcode_into_libs=no |
10477 |
|
10478 |
# when you set need_version to no, make sure it does not cause -set_version |
10479 |
# flags to be left without arguments |
10480 |
need_version=unknown |
10481 |
|
10482 |
case $host_os in |
10483 |
aix3*) |
10484 |
version_type=linux # correct to gnu/linux during the next big refactor |
10485 |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
10486 |
shlibpath_var=LIBPATH |
10487 |
|
10488 |
# AIX 3 has no versioning support, so we append a major version to the name. |
10489 |
soname_spec='$libname$release$shared_ext$major' |
10490 |
;; |
10491 |
|
10492 |
aix[4-9]*) |
10493 |
version_type=linux # correct to gnu/linux during the next big refactor |
10494 |
need_lib_prefix=no |
10495 |
need_version=no |
10496 |
hardcode_into_libs=yes |
10497 |
if test ia64 = "$host_cpu"; then |
10498 |
# AIX 5 supports IA64 |
10499 |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
10500 |
shlibpath_var=LD_LIBRARY_PATH |
10501 |
else |
10502 |
# With GCC up to 2.95.x, collect2 would create an import file |
10503 |
# for dependence libraries. The import file would start with |
10504 |
# the line '#! .'. This would cause the generated library to |
10505 |
# depend on '.', always an invalid library. This was fixed in |
10506 |
# development snapshots of GCC prior to 3.0. |
10507 |
case $host_os in |
10508 |
aix4 | aix4.[01] | aix4.[01].*) |
10509 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
10510 |
echo ' yes ' |
10511 |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
10512 |
: |
10513 |
else |
10514 |
can_build_shared=no |
10515 |
fi |
10516 |
;; |
10517 |
esac |
10518 |
# Using Import Files as archive members, it is possible to support |
10519 |
# filename-based versioning of shared library archives on AIX. While |
10520 |
# this would work for both with and without runtime linking, it will |
10521 |
# prevent static linking of such archives. So we do filename-based |
10522 |
# shared library versioning with .so extension only, which is used |
10523 |
# when both runtime linking and shared linking is enabled. |
10524 |
# Unfortunately, runtime linking may impact performance, so we do |
10525 |
# not want this to be the default eventually. Also, we use the |
10526 |
# versioned .so libs for executables only if there is the -brtl |
10527 |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
10528 |
# To allow for filename-based versioning support, we need to create |
10529 |
# libNAME.so.V as an archive file, containing: |
10530 |
# *) an Import File, referring to the versioned filename of the |
10531 |
# archive as well as the shared archive member, telling the |
10532 |
# bitwidth (32 or 64) of that shared object, and providing the |
10533 |
# list of exported symbols of that shared object, eventually |
10534 |
# decorated with the 'weak' keyword |
10535 |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
10536 |
# it being seen by the linker. |
10537 |
# At run time we better use the real file rather than another symlink, |
10538 |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
10539 |
|
10540 |
case $with_aix_soname,$aix_use_runtimelinking in |
10541 |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
10542 |
# soname into executable. Probably we can add versioning support to |
10543 |
# collect2, so additional links can be useful in future. |
10544 |
aix,yes) # traditional libtool |
10545 |
dynamic_linker='AIX unversionable lib.so' |
10546 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10547 |
# instead of lib<name>.a to let people know that these are not |
10548 |
# typical AIX shared libraries. |
10549 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10550 |
;; |
10551 |
aix,no) # traditional AIX only |
10552 |
dynamic_linker='AIX lib.a(lib.so.V)' |
10553 |
# We preserve .a as extension for shared libraries through AIX4.2 |
10554 |
# and later when we are not doing run time linking. |
10555 |
library_names_spec='$libname$release.a $libname.a' |
10556 |
soname_spec='$libname$release$shared_ext$major' |
10557 |
;; |
10558 |
svr4,*) # full svr4 only |
10559 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
10560 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10561 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10562 |
shlibpath_overrides_runpath=yes |
10563 |
;; |
10564 |
*,yes) # both, prefer svr4 |
10565 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
10566 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10567 |
# unpreferred sharedlib libNAME.a needs extra handling |
10568 |
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"' |
10569 |
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"' |
10570 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10571 |
shlibpath_overrides_runpath=yes |
10572 |
;; |
10573 |
*,no) # both, prefer aix |
10574 |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
10575 |
library_names_spec='$libname$release.a $libname.a' |
10576 |
soname_spec='$libname$release$shared_ext$major' |
10577 |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
10578 |
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)' |
10579 |
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"' |
10580 |
;; |
10581 |
esac |
10582 |
shlibpath_var=LIBPATH |
10583 |
fi |
10584 |
;; |
10585 |
|
10586 |
amigaos*) |
10587 |
case $host_cpu in |
10588 |
powerpc) |
10589 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
10590 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
10591 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10592 |
;; |
10593 |
m68k) |
10594 |
library_names_spec='$libname.ixlibrary $libname.a' |
10595 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
10596 |
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' |
10597 |
;; |
10598 |
esac |
10599 |
;; |
10600 |
|
10601 |
beos*) |
10602 |
library_names_spec='$libname$shared_ext' |
10603 |
dynamic_linker="$host_os ld.so" |
10604 |
shlibpath_var=LIBRARY_PATH |
10605 |
;; |
10606 |
|
10607 |
bsdi[45]*) |
10608 |
version_type=linux # correct to gnu/linux during the next big refactor |
10609 |
need_version=no |
10610 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10611 |
soname_spec='$libname$release$shared_ext$major' |
10612 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10613 |
shlibpath_var=LD_LIBRARY_PATH |
10614 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
10615 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
10616 |
# the default ld.so.conf also contains /usr/contrib/lib and |
10617 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
10618 |
# libtool to hard-code these into programs |
10619 |
;; |
10620 |
|
10621 |
cygwin* | mingw* | pw32* | cegcc*) |
10622 |
version_type=windows |
10623 |
shrext_cmds=.dll |
10624 |
need_version=no |
10625 |
need_lib_prefix=no |
10626 |
|
10627 |
case $GCC,$cc_basename in |
10628 |
yes,*) |
10629 |
# gcc |
10630 |
library_names_spec='$libname.dll.a' |
10631 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10632 |
postinstall_cmds='base_file=`basename \$file`~ |
10633 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
10634 |
dldir=$destdir/`dirname \$dlpath`~ |
10635 |
test -d \$dldir || mkdir -p \$dldir~ |
10636 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
10637 |
chmod a+x \$dldir/$dlname~ |
10638 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
10639 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
10640 |
fi' |
10641 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10642 |
dlpath=$dir/\$dldll~ |
10643 |
$RM \$dlpath' |
10644 |
shlibpath_overrides_runpath=yes |
10645 |
|
10646 |
case $host_os in |
10647 |
cygwin*) |
10648 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10649 |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10650 |
|
10651 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
10652 |
;; |
10653 |
mingw* | cegcc*) |
10654 |
# MinGW DLLs use traditional 'lib' prefix |
10655 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10656 |
;; |
10657 |
pw32*) |
10658 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
10659 |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10660 |
;; |
10661 |
esac |
10662 |
dynamic_linker='Win32 ld.exe' |
10663 |
;; |
10664 |
|
10665 |
*,cl*) |
10666 |
# Native MSVC |
10667 |
libname_spec='$name' |
10668 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10669 |
library_names_spec='$libname.dll.lib' |
10670 |
|
10671 |
case $build_os in |
10672 |
mingw*) |
10673 |
sys_lib_search_path_spec= |
10674 |
lt_save_ifs=$IFS |
10675 |
IFS=';' |
10676 |
for lt_path in $LIB |
10677 |
do |
10678 |
IFS=$lt_save_ifs |
10679 |
# Let DOS variable expansion print the short 8.3 style file name. |
10680 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
10681 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
10682 |
done |
10683 |
IFS=$lt_save_ifs |
10684 |
# Convert to MSYS style. |
10685 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
10686 |
;; |
10687 |
cygwin*) |
10688 |
# Convert to unix form, then to dos form, then back to unix form |
10689 |
# but this time dos style (no spaces!) so that the unix form looks |
10690 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
10691 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
10692 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
10693 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10694 |
;; |
10695 |
*) |
10696 |
sys_lib_search_path_spec=$LIB |
10697 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10698 |
# It is most probably a Windows format PATH. |
10699 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
10700 |
else |
10701 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10702 |
fi |
10703 |
# FIXME: find the short name or the path components, as spaces are |
10704 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
10705 |
;; |
10706 |
esac |
10707 |
|
10708 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10709 |
postinstall_cmds='base_file=`basename \$file`~ |
10710 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
10711 |
dldir=$destdir/`dirname \$dlpath`~ |
10712 |
test -d \$dldir || mkdir -p \$dldir~ |
10713 |
$install_prog $dir/$dlname \$dldir/$dlname' |
10714 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10715 |
dlpath=$dir/\$dldll~ |
10716 |
$RM \$dlpath' |
10717 |
shlibpath_overrides_runpath=yes |
10718 |
dynamic_linker='Win32 link.exe' |
10719 |
;; |
10720 |
|
10721 |
*) |
10722 |
# Assume MSVC wrapper |
10723 |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
10724 |
dynamic_linker='Win32 ld.exe' |
10725 |
;; |
10726 |
esac |
10727 |
# FIXME: first we should search . and the directory the executable is in |
10728 |
shlibpath_var=PATH |
10729 |
;; |
10730 |
|
10731 |
darwin* | rhapsody*) |
10732 |
dynamic_linker="$host_os dyld" |
10733 |
version_type=darwin |
10734 |
need_lib_prefix=no |
10735 |
need_version=no |
10736 |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10737 |
soname_spec='$libname$release$major$shared_ext' |
10738 |
shlibpath_overrides_runpath=yes |
10739 |
shlibpath_var=DYLD_LIBRARY_PATH |
10740 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
10741 |
|
10742 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10743 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10744 |
;; |
10745 |
|
10746 |
dgux*) |
10747 |
version_type=linux # correct to gnu/linux during the next big refactor |
10748 |
need_lib_prefix=no |
10749 |
need_version=no |
10750 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10751 |
soname_spec='$libname$release$shared_ext$major' |
10752 |
shlibpath_var=LD_LIBRARY_PATH |
10753 |
;; |
10754 |
|
10755 |
freebsd* | dragonfly*) |
10756 |
# DragonFly does not have aout. When/if they implement a new |
10757 |
# versioning mechanism, adjust this. |
10758 |
if test -x /usr/bin/objformat; then |
10759 |
objformat=`/usr/bin/objformat` |
10760 |
else |
10761 |
case $host_os in |
10762 |
freebsd[23].*) objformat=aout ;; |
10763 |
*) objformat=elf ;; |
10764 |
esac |
10765 |
fi |
10766 |
version_type=freebsd-$objformat |
10767 |
case $version_type in |
10768 |
freebsd-elf*) |
10769 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10770 |
need_version=no |
10771 |
need_lib_prefix=no |
10772 |
;; |
10773 |
freebsd-*) |
10774 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
10775 |
need_version=yes |
10776 |
;; |
10777 |
esac |
10778 |
shlibpath_var=LD_LIBRARY_PATH |
10779 |
case $host_os in |
10780 |
freebsd2.*) |
10781 |
shlibpath_overrides_runpath=yes |
10782 |
;; |
10783 |
freebsd3.[01]* | freebsdelf3.[01]*) |
10784 |
shlibpath_overrides_runpath=yes |
10785 |
hardcode_into_libs=yes |
10786 |
;; |
10787 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
10788 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
10789 |
shlibpath_overrides_runpath=no |
10790 |
hardcode_into_libs=yes |
10791 |
;; |
10792 |
*) # from 4.6 on, and DragonFly |
10793 |
shlibpath_overrides_runpath=yes |
10794 |
hardcode_into_libs=yes |
10795 |
;; |
10796 |
esac |
10797 |
;; |
10798 |
|
10799 |
haiku*) |
10800 |
version_type=linux # correct to gnu/linux during the next big refactor |
10801 |
need_lib_prefix=no |
10802 |
need_version=no |
10803 |
dynamic_linker="$host_os runtime_loader" |
10804 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10805 |
soname_spec='$libname$release$shared_ext$major' |
10806 |
shlibpath_var=LIBRARY_PATH |
10807 |
shlibpath_overrides_runpath=no |
10808 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
10809 |
hardcode_into_libs=yes |
10810 |
;; |
10811 |
|
10812 |
hpux9* | hpux10* | hpux11*) |
10813 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
10814 |
# link against other versions. |
10815 |
version_type=sunos |
10816 |
need_lib_prefix=no |
10817 |
need_version=no |
10818 |
case $host_cpu in |
10819 |
ia64*) |
10820 |
shrext_cmds='.so' |
10821 |
hardcode_into_libs=yes |
10822 |
dynamic_linker="$host_os dld.so" |
10823 |
shlibpath_var=LD_LIBRARY_PATH |
10824 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10825 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10826 |
soname_spec='$libname$release$shared_ext$major' |
10827 |
if test 32 = "$HPUX_IA64_MODE"; then |
10828 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
10829 |
else |
10830 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
10831 |
fi |
10832 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10833 |
;; |
10834 |
hppa*64*) |
10835 |
shrext_cmds='.sl' |
10836 |
hardcode_into_libs=yes |
10837 |
dynamic_linker="$host_os dld.sl" |
10838 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
10839 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10840 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10841 |
soname_spec='$libname$release$shared_ext$major' |
10842 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10843 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10844 |
;; |
10845 |
*) |
10846 |
shrext_cmds='.sl' |
10847 |
dynamic_linker="$host_os dld.sl" |
10848 |
shlibpath_var=SHLIB_PATH |
10849 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
10850 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10851 |
soname_spec='$libname$release$shared_ext$major' |
10852 |
;; |
10853 |
esac |
10854 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
10855 |
postinstall_cmds='chmod 555 $lib' |
10856 |
# or fails outright, so override atomically: |
10857 |
install_override_mode=555 |
10858 |
;; |
10859 |
|
10860 |
interix[3-9]*) |
10861 |
version_type=linux # correct to gnu/linux during the next big refactor |
10862 |
need_lib_prefix=no |
10863 |
need_version=no |
10864 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10865 |
soname_spec='$libname$release$shared_ext$major' |
10866 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10867 |
shlibpath_var=LD_LIBRARY_PATH |
10868 |
shlibpath_overrides_runpath=no |
10869 |
hardcode_into_libs=yes |
10870 |
;; |
10871 |
|
10872 |
irix5* | irix6* | nonstopux*) |
10873 |
case $host_os in |
10874 |
nonstopux*) version_type=nonstopux ;; |
10875 |
*) |
10876 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
10877 |
version_type=linux # correct to gnu/linux during the next big refactor |
10878 |
else |
10879 |
version_type=irix |
10880 |
fi ;; |
10881 |
esac |
10882 |
need_lib_prefix=no |
10883 |
need_version=no |
10884 |
soname_spec='$libname$release$shared_ext$major' |
10885 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
10886 |
case $host_os in |
10887 |
irix5* | nonstopux*) |
10888 |
libsuff= shlibsuff= |
10889 |
;; |
10890 |
*) |
10891 |
case $LD in # libtool.m4 will add one of these switches to LD |
10892 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
10893 |
libsuff= shlibsuff= libmagic=32-bit;; |
10894 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
10895 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
10896 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
10897 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
10898 |
*) libsuff= shlibsuff= libmagic=never-match;; |
10899 |
esac |
10900 |
;; |
10901 |
esac |
10902 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
10903 |
shlibpath_overrides_runpath=no |
10904 |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10905 |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
10906 |
hardcode_into_libs=yes |
10907 |
;; |
10908 |
|
10909 |
# No shared lib support for Linux oldld, aout, or coff. |
10910 |
linux*oldld* | linux*aout* | linux*coff*) |
10911 |
dynamic_linker=no |
10912 |
;; |
10913 |
|
10914 |
linux*android*) |
10915 |
version_type=none # Android doesn't support versioned libraries. |
10916 |
need_lib_prefix=no |
10917 |
need_version=no |
10918 |
library_names_spec='$libname$release$shared_ext' |
10919 |
soname_spec='$libname$release$shared_ext' |
10920 |
finish_cmds= |
10921 |
shlibpath_var=LD_LIBRARY_PATH |
10922 |
shlibpath_overrides_runpath=yes |
10923 |
|
10924 |
# This implies no fast_install, which is unacceptable. |
10925 |
# Some rework will be needed to allow for fast_install |
10926 |
# before this can be enabled. |
10927 |
hardcode_into_libs=yes |
10928 |
|
10929 |
dynamic_linker='Android linker' |
10930 |
# Don't embed -rpath directories since the linker doesn't support them. |
10931 |
hardcode_libdir_flag_spec='-L$libdir' |
10932 |
;; |
10933 |
|
10934 |
# This must be glibc/ELF. |
10935 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
10936 |
version_type=linux # correct to gnu/linux during the next big refactor |
10937 |
need_lib_prefix=no |
10938 |
need_version=no |
10939 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10940 |
soname_spec='$libname$release$shared_ext$major' |
10941 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10942 |
shlibpath_var=LD_LIBRARY_PATH |
10943 |
shlibpath_overrides_runpath=no |
10944 |
|
10945 |
# Some binutils ld are patched to set DT_RUNPATH |
10946 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10947 |
$as_echo_n "(cached) " >&6 |
10948 |
else |
10949 |
lt_cv_shlibpath_overrides_runpath=no |
10950 |
save_LDFLAGS=$LDFLAGS |
10951 |
save_libdir=$libdir |
10952 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
10953 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
10954 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10955 |
/* end confdefs.h. */ |
10956 |
|
10957 |
int |
10958 |
main () |
10959 |
{ |
10960 |
|
10961 |
; |
10962 |
return 0; |
10963 |
} |
10964 |
_ACEOF |
10965 |
if ac_fn_c_try_link "$LINENO"; then : |
10966 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
10967 |
lt_cv_shlibpath_overrides_runpath=yes |
10968 |
fi |
10969 |
fi |
10970 |
rm -f core conftest.err conftest.$ac_objext \ |
10971 |
conftest$ac_exeext conftest.$ac_ext |
10972 |
LDFLAGS=$save_LDFLAGS |
10973 |
libdir=$save_libdir |
10974 |
|
10975 |
fi |
10976 |
|
10977 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
10978 |
|
10979 |
# This implies no fast_install, which is unacceptable. |
10980 |
# Some rework will be needed to allow for fast_install |
10981 |
# before this can be enabled. |
10982 |
hardcode_into_libs=yes |
10983 |
|
10984 |
# Append ld.so.conf contents to the search path |
10985 |
if test -f /etc/ld.so.conf; then |
10986 |
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' ' '` |
10987 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10988 |
fi |
10989 |
|
10990 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
10991 |
# powerpc, because MkLinux only supported shared libraries with the |
10992 |
# GNU dynamic linker. Since this was broken with cross compilers, |
10993 |
# most powerpc-linux boxes support dynamic linking these days and |
10994 |
# people can always --disable-shared, the test was removed, and we |
10995 |
# assume the GNU/Linux dynamic linker is in use. |
10996 |
dynamic_linker='GNU/Linux ld.so' |
10997 |
;; |
10998 |
|
10999 |
netbsd*) |
11000 |
version_type=sunos |
11001 |
need_lib_prefix=no |
11002 |
need_version=no |
11003 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
11004 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11005 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11006 |
dynamic_linker='NetBSD (a.out) ld.so' |
11007 |
else |
11008 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11009 |
soname_spec='$libname$release$shared_ext$major' |
11010 |
dynamic_linker='NetBSD ld.elf_so' |
11011 |
fi |
11012 |
shlibpath_var=LD_LIBRARY_PATH |
11013 |
shlibpath_overrides_runpath=yes |
11014 |
hardcode_into_libs=yes |
11015 |
;; |
11016 |
|
11017 |
newsos6) |
11018 |
version_type=linux # correct to gnu/linux during the next big refactor |
11019 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11020 |
shlibpath_var=LD_LIBRARY_PATH |
11021 |
shlibpath_overrides_runpath=yes |
11022 |
;; |
11023 |
|
11024 |
*nto* | *qnx*) |
11025 |
version_type=qnx |
11026 |
need_lib_prefix=no |
11027 |
need_version=no |
11028 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11029 |
soname_spec='$libname$release$shared_ext$major' |
11030 |
shlibpath_var=LD_LIBRARY_PATH |
11031 |
shlibpath_overrides_runpath=no |
11032 |
hardcode_into_libs=yes |
11033 |
dynamic_linker='ldqnx.so' |
11034 |
;; |
11035 |
|
11036 |
openbsd* | bitrig*) |
11037 |
version_type=sunos |
11038 |
sys_lib_dlsearch_path_spec=/usr/lib |
11039 |
need_lib_prefix=no |
11040 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11041 |
need_version=no |
11042 |
else |
11043 |
need_version=yes |
11044 |
fi |
11045 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11046 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11047 |
shlibpath_var=LD_LIBRARY_PATH |
11048 |
shlibpath_overrides_runpath=yes |
11049 |
;; |
11050 |
|
11051 |
os2*) |
11052 |
libname_spec='$name' |
11053 |
version_type=windows |
11054 |
shrext_cmds=.dll |
11055 |
need_version=no |
11056 |
need_lib_prefix=no |
11057 |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
11058 |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
11059 |
v=$($ECHO $release$versuffix | tr -d .-); |
11060 |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
11061 |
$ECHO $n$v`$shared_ext' |
11062 |
library_names_spec='${libname}_dll.$libext' |
11063 |
dynamic_linker='OS/2 ld.exe' |
11064 |
shlibpath_var=BEGINLIBPATH |
11065 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11066 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11067 |
postinstall_cmds='base_file=`basename \$file`~ |
11068 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
11069 |
dldir=$destdir/`dirname \$dlpath`~ |
11070 |
test -d \$dldir || mkdir -p \$dldir~ |
11071 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
11072 |
chmod a+x \$dldir/$dlname~ |
11073 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
11074 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
11075 |
fi' |
11076 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
11077 |
dlpath=$dir/\$dldll~ |
11078 |
$RM \$dlpath' |
11079 |
;; |
11080 |
|
11081 |
osf3* | osf4* | osf5*) |
11082 |
version_type=osf |
11083 |
need_lib_prefix=no |
11084 |
need_version=no |
11085 |
soname_spec='$libname$release$shared_ext$major' |
11086 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11087 |
shlibpath_var=LD_LIBRARY_PATH |
11088 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11089 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11090 |
;; |
11091 |
|
11092 |
rdos*) |
11093 |
dynamic_linker=no |
11094 |
;; |
11095 |
|
11096 |
solaris*) |
11097 |
version_type=linux # correct to gnu/linux during the next big refactor |
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=yes |
11104 |
hardcode_into_libs=yes |
11105 |
# ldd complains unless libraries are executable |
11106 |
postinstall_cmds='chmod +x $lib' |
11107 |
;; |
11108 |
|
11109 |
sunos4*) |
11110 |
version_type=sunos |
11111 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11112 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11113 |
shlibpath_var=LD_LIBRARY_PATH |
11114 |
shlibpath_overrides_runpath=yes |
11115 |
if test yes = "$with_gnu_ld"; then |
11116 |
need_lib_prefix=no |
11117 |
fi |
11118 |
need_version=yes |
11119 |
;; |
11120 |
|
11121 |
sysv4 | sysv4.3*) |
11122 |
version_type=linux # correct to gnu/linux during the next big refactor |
11123 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11124 |
soname_spec='$libname$release$shared_ext$major' |
11125 |
shlibpath_var=LD_LIBRARY_PATH |
11126 |
case $host_vendor in |
11127 |
sni) |
11128 |
shlibpath_overrides_runpath=no |
11129 |
need_lib_prefix=no |
11130 |
runpath_var=LD_RUN_PATH |
11131 |
;; |
11132 |
siemens) |
11133 |
need_lib_prefix=no |
11134 |
;; |
11135 |
motorola) |
11136 |
need_lib_prefix=no |
11137 |
need_version=no |
11138 |
shlibpath_overrides_runpath=no |
11139 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
11140 |
;; |
11141 |
esac |
11142 |
;; |
11143 |
|
11144 |
sysv4*MP*) |
11145 |
if test -d /usr/nec; then |
11146 |
version_type=linux # correct to gnu/linux during the next big refactor |
11147 |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11148 |
soname_spec='$libname$shared_ext.$major' |
11149 |
shlibpath_var=LD_LIBRARY_PATH |
11150 |
fi |
11151 |
;; |
11152 |
|
11153 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11154 |
version_type=sco |
11155 |
need_lib_prefix=no |
11156 |
need_version=no |
11157 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11158 |
soname_spec='$libname$release$shared_ext$major' |
11159 |
shlibpath_var=LD_LIBRARY_PATH |
11160 |
shlibpath_overrides_runpath=yes |
11161 |
hardcode_into_libs=yes |
11162 |
if test yes = "$with_gnu_ld"; then |
11163 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11164 |
else |
11165 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11166 |
case $host_os in |
11167 |
sco3.2v5*) |
11168 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
11169 |
;; |
11170 |
esac |
11171 |
fi |
11172 |
sys_lib_dlsearch_path_spec='/usr/lib' |
11173 |
;; |
11174 |
|
11175 |
tpf*) |
11176 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
11177 |
version_type=linux # correct to gnu/linux during the next big refactor |
11178 |
need_lib_prefix=no |
11179 |
need_version=no |
11180 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11181 |
shlibpath_var=LD_LIBRARY_PATH |
11182 |
shlibpath_overrides_runpath=no |
11183 |
hardcode_into_libs=yes |
11184 |
;; |
11185 |
|
11186 |
uts4*) |
11187 |
version_type=linux # correct to gnu/linux during the next big refactor |
11188 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11189 |
soname_spec='$libname$release$shared_ext$major' |
11190 |
shlibpath_var=LD_LIBRARY_PATH |
11191 |
;; |
11192 |
|
11193 |
*) |
11194 |
dynamic_linker=no |
11195 |
;; |
11196 |
esac |
11197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11198 |
$as_echo "$dynamic_linker" >&6; } |
11199 |
test no = "$dynamic_linker" && can_build_shared=no |
11200 |
|
11201 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11202 |
if test yes = "$GCC"; then |
11203 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11204 |
fi |
11205 |
|
11206 |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11207 |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
11208 |
fi |
11209 |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
11210 |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
11211 |
fi |
11212 |
|
11213 |
|
11214 |
|
11215 |
|
11216 |
|
11217 |
|
11218 |
|
11219 |
|
11220 |
|
11221 |
|
11222 |
|
11223 |
|
11224 |
|
11225 |
|
11226 |
|
11227 |
|
11228 |
|
11229 |
|
11230 |
|
11231 |
|
11232 |
|
11233 |
|
11234 |
|
11235 |
|
11236 |
|
11237 |
|
11238 |
|
11239 |
|
11240 |
|
11241 |
|
11242 |
|
11243 |
|
11244 |
|
11245 |
|
11246 |
|
11247 |
|
11248 |
|
11249 |
|
11250 |
|
11251 |
|
11252 |
|
11253 |
|
11254 |
|
11255 |
|
11256 |
|
11257 |
|
11258 |
|
11259 |
|
11260 |
|
11261 |
|
11262 |
|
11263 |
|
11264 |
|
11265 |
|
11266 |
|
11267 |
|
11268 |
|
11269 |
|
11270 |
|
11271 |
|
11272 |
|
11273 |
|
11274 |
|
11275 |
|
11276 |
|
11277 |
|
11278 |
|
11279 |
|
11280 |
|
11281 |
|
11282 |
|
11283 |
|
11284 |
|
11285 |
|
11286 |
|
11287 |
|
11288 |
|
11289 |
|
11290 |
|
11291 |
|
11292 |
|
11293 |
|
11294 |
|
11295 |
|
11296 |
|
11297 |
|
11298 |
|
11299 |
|
11300 |
|
11301 |
|
11302 |
|
11303 |
|
11304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11305 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11306 |
hardcode_action= |
11307 |
if test -n "$hardcode_libdir_flag_spec" || |
11308 |
test -n "$runpath_var" || |
11309 |
test yes = "$hardcode_automatic"; then |
11310 |
|
11311 |
# We can hardcode non-existent directories. |
11312 |
if test no != "$hardcode_direct" && |
11313 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
11314 |
# have to relink, otherwise we might link with an installed library |
11315 |
# when we should be linking with a yet-to-be-installed one |
11316 |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11317 |
test no != "$hardcode_minus_L"; then |
11318 |
# Linking always hardcodes the temporary library directory. |
11319 |
hardcode_action=relink |
11320 |
else |
11321 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
11322 |
hardcode_action=immediate |
11323 |
fi |
11324 |
else |
11325 |
# We cannot hardcode anything, or else we can only hardcode existing |
11326 |
# directories. |
11327 |
hardcode_action=unsupported |
11328 |
fi |
11329 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11330 |
$as_echo "$hardcode_action" >&6; } |
11331 |
|
11332 |
if test relink = "$hardcode_action" || |
11333 |
test yes = "$inherit_rpath"; then |
11334 |
# Fast installation is not supported |
11335 |
enable_fast_install=no |
11336 |
elif test yes = "$shlibpath_overrides_runpath" || |
11337 |
test no = "$enable_shared"; then |
11338 |
# Fast installation is not necessary |
11339 |
enable_fast_install=needless |
11340 |
fi |
11341 |
|
11342 |
|
11343 |
|
11344 |
|
11345 |
|
11346 |
|
11347 |
if test yes != "$enable_dlopen"; then |
11348 |
enable_dlopen=unknown |
11349 |
enable_dlopen_self=unknown |
11350 |
enable_dlopen_self_static=unknown |
11351 |
else |
11352 |
lt_cv_dlopen=no |
11353 |
lt_cv_dlopen_libs= |
11354 |
|
11355 |
case $host_os in |
11356 |
beos*) |
11357 |
lt_cv_dlopen=load_add_on |
11358 |
lt_cv_dlopen_libs= |
11359 |
lt_cv_dlopen_self=yes |
11360 |
;; |
11361 |
|
11362 |
mingw* | pw32* | cegcc*) |
11363 |
lt_cv_dlopen=LoadLibrary |
11364 |
lt_cv_dlopen_libs= |
11365 |
;; |
11366 |
|
11367 |
cygwin*) |
11368 |
lt_cv_dlopen=dlopen |
11369 |
lt_cv_dlopen_libs= |
11370 |
;; |
11371 |
|
11372 |
darwin*) |
11373 |
# if libdl is installed we need to link against it |
11374 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11375 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11376 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11377 |
$as_echo_n "(cached) " >&6 |
11378 |
else |
11379 |
ac_check_lib_save_LIBS=$LIBS |
11380 |
LIBS="-ldl $LIBS" |
11381 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11382 |
/* end confdefs.h. */ |
11383 |
|
11384 |
/* Override any GCC internal prototype to avoid an error. |
11385 |
Use char because int might match the return type of a GCC |
11386 |
builtin and then its argument prototype would still apply. */ |
11387 |
#ifdef __cplusplus |
11388 |
extern "C" |
11389 |
#endif |
11390 |
char dlopen (); |
11391 |
int |
11392 |
main () |
11393 |
{ |
11394 |
return dlopen (); |
11395 |
; |
11396 |
return 0; |
11397 |
} |
11398 |
_ACEOF |
11399 |
if ac_fn_c_try_link "$LINENO"; then : |
11400 |
ac_cv_lib_dl_dlopen=yes |
11401 |
else |
11402 |
ac_cv_lib_dl_dlopen=no |
11403 |
fi |
11404 |
rm -f core conftest.err conftest.$ac_objext \ |
11405 |
conftest$ac_exeext conftest.$ac_ext |
11406 |
LIBS=$ac_check_lib_save_LIBS |
11407 |
fi |
11408 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11409 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11410 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11411 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11412 |
else |
11413 |
|
11414 |
lt_cv_dlopen=dyld |
11415 |
lt_cv_dlopen_libs= |
11416 |
lt_cv_dlopen_self=yes |
11417 |
|
11418 |
fi |
11419 |
|
11420 |
;; |
11421 |
|
11422 |
tpf*) |
11423 |
# Don't try to run any link tests for TPF. We know it's impossible |
11424 |
# because TPF is a cross-compiler, and we know how we open DSOs. |
11425 |
lt_cv_dlopen=dlopen |
11426 |
lt_cv_dlopen_libs= |
11427 |
lt_cv_dlopen_self=no |
11428 |
;; |
11429 |
|
11430 |
*) |
11431 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11432 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
11433 |
lt_cv_dlopen=shl_load |
11434 |
else |
11435 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11436 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
11437 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
11438 |
$as_echo_n "(cached) " >&6 |
11439 |
else |
11440 |
ac_check_lib_save_LIBS=$LIBS |
11441 |
LIBS="-ldld $LIBS" |
11442 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11443 |
/* end confdefs.h. */ |
11444 |
|
11445 |
/* Override any GCC internal prototype to avoid an error. |
11446 |
Use char because int might match the return type of a GCC |
11447 |
builtin and then its argument prototype would still apply. */ |
11448 |
#ifdef __cplusplus |
11449 |
extern "C" |
11450 |
#endif |
11451 |
char shl_load (); |
11452 |
int |
11453 |
main () |
11454 |
{ |
11455 |
return shl_load (); |
11456 |
; |
11457 |
return 0; |
11458 |
} |
11459 |
_ACEOF |
11460 |
if ac_fn_c_try_link "$LINENO"; then : |
11461 |
ac_cv_lib_dld_shl_load=yes |
11462 |
else |
11463 |
ac_cv_lib_dld_shl_load=no |
11464 |
fi |
11465 |
rm -f core conftest.err conftest.$ac_objext \ |
11466 |
conftest$ac_exeext conftest.$ac_ext |
11467 |
LIBS=$ac_check_lib_save_LIBS |
11468 |
fi |
11469 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11470 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
11471 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
11472 |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
11473 |
else |
11474 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11475 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
11476 |
lt_cv_dlopen=dlopen |
11477 |
else |
11478 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11479 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11480 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11481 |
$as_echo_n "(cached) " >&6 |
11482 |
else |
11483 |
ac_check_lib_save_LIBS=$LIBS |
11484 |
LIBS="-ldl $LIBS" |
11485 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11486 |
/* end confdefs.h. */ |
11487 |
|
11488 |
/* Override any GCC internal prototype to avoid an error. |
11489 |
Use char because int might match the return type of a GCC |
11490 |
builtin and then its argument prototype would still apply. */ |
11491 |
#ifdef __cplusplus |
11492 |
extern "C" |
11493 |
#endif |
11494 |
char dlopen (); |
11495 |
int |
11496 |
main () |
11497 |
{ |
11498 |
return dlopen (); |
11499 |
; |
11500 |
return 0; |
11501 |
} |
11502 |
_ACEOF |
11503 |
if ac_fn_c_try_link "$LINENO"; then : |
11504 |
ac_cv_lib_dl_dlopen=yes |
11505 |
else |
11506 |
ac_cv_lib_dl_dlopen=no |
11507 |
fi |
11508 |
rm -f core conftest.err conftest.$ac_objext \ |
11509 |
conftest$ac_exeext conftest.$ac_ext |
11510 |
LIBS=$ac_check_lib_save_LIBS |
11511 |
fi |
11512 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11513 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11514 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11515 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11516 |
else |
11517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11518 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
11519 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
11520 |
$as_echo_n "(cached) " >&6 |
11521 |
else |
11522 |
ac_check_lib_save_LIBS=$LIBS |
11523 |
LIBS="-lsvld $LIBS" |
11524 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11525 |
/* end confdefs.h. */ |
11526 |
|
11527 |
/* Override any GCC internal prototype to avoid an error. |
11528 |
Use char because int might match the return type of a GCC |
11529 |
builtin and then its argument prototype would still apply. */ |
11530 |
#ifdef __cplusplus |
11531 |
extern "C" |
11532 |
#endif |
11533 |
char dlopen (); |
11534 |
int |
11535 |
main () |
11536 |
{ |
11537 |
return dlopen (); |
11538 |
; |
11539 |
return 0; |
11540 |
} |
11541 |
_ACEOF |
11542 |
if ac_fn_c_try_link "$LINENO"; then : |
11543 |
ac_cv_lib_svld_dlopen=yes |
11544 |
else |
11545 |
ac_cv_lib_svld_dlopen=no |
11546 |
fi |
11547 |
rm -f core conftest.err conftest.$ac_objext \ |
11548 |
conftest$ac_exeext conftest.$ac_ext |
11549 |
LIBS=$ac_check_lib_save_LIBS |
11550 |
fi |
11551 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11552 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
11553 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
11554 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
11555 |
else |
11556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11557 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
11558 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
11559 |
$as_echo_n "(cached) " >&6 |
11560 |
else |
11561 |
ac_check_lib_save_LIBS=$LIBS |
11562 |
LIBS="-ldld $LIBS" |
11563 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11564 |
/* end confdefs.h. */ |
11565 |
|
11566 |
/* Override any GCC internal prototype to avoid an error. |
11567 |
Use char because int might match the return type of a GCC |
11568 |
builtin and then its argument prototype would still apply. */ |
11569 |
#ifdef __cplusplus |
11570 |
extern "C" |
11571 |
#endif |
11572 |
char dld_link (); |
11573 |
int |
11574 |
main () |
11575 |
{ |
11576 |
return dld_link (); |
11577 |
; |
11578 |
return 0; |
11579 |
} |
11580 |
_ACEOF |
11581 |
if ac_fn_c_try_link "$LINENO"; then : |
11582 |
ac_cv_lib_dld_dld_link=yes |
11583 |
else |
11584 |
ac_cv_lib_dld_dld_link=no |
11585 |
fi |
11586 |
rm -f core conftest.err conftest.$ac_objext \ |
11587 |
conftest$ac_exeext conftest.$ac_ext |
11588 |
LIBS=$ac_check_lib_save_LIBS |
11589 |
fi |
11590 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11591 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
11592 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
11593 |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
11594 |
fi |
11595 |
|
11596 |
|
11597 |
fi |
11598 |
|
11599 |
|
11600 |
fi |
11601 |
|
11602 |
|
11603 |
fi |
11604 |
|
11605 |
|
11606 |
fi |
11607 |
|
11608 |
|
11609 |
fi |
11610 |
|
11611 |
;; |
11612 |
esac |
11613 |
|
11614 |
if test no = "$lt_cv_dlopen"; then |
11615 |
enable_dlopen=no |
11616 |
else |
11617 |
enable_dlopen=yes |
11618 |
fi |
11619 |
|
11620 |
case $lt_cv_dlopen in |
11621 |
dlopen) |
11622 |
save_CPPFLAGS=$CPPFLAGS |
11623 |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
11624 |
|
11625 |
save_LDFLAGS=$LDFLAGS |
11626 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11627 |
|
11628 |
save_LIBS=$LIBS |
11629 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
11630 |
|
11631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11632 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
11633 |
if ${lt_cv_dlopen_self+:} false; then : |
11634 |
$as_echo_n "(cached) " >&6 |
11635 |
else |
11636 |
if test yes = "$cross_compiling"; then : |
11637 |
lt_cv_dlopen_self=cross |
11638 |
else |
11639 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11640 |
lt_status=$lt_dlunknown |
11641 |
cat > conftest.$ac_ext <<_LT_EOF |
11642 |
#line $LINENO "configure" |
11643 |
#include "confdefs.h" |
11644 |
|
11645 |
#if HAVE_DLFCN_H |
11646 |
#include <dlfcn.h> |
11647 |
#endif |
11648 |
|
11649 |
#include <stdio.h> |
11650 |
|
11651 |
#ifdef RTLD_GLOBAL |
11652 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11653 |
#else |
11654 |
# ifdef DL_GLOBAL |
11655 |
# define LT_DLGLOBAL DL_GLOBAL |
11656 |
# else |
11657 |
# define LT_DLGLOBAL 0 |
11658 |
# endif |
11659 |
#endif |
11660 |
|
11661 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11662 |
find out it does not work in some platform. */ |
11663 |
#ifndef LT_DLLAZY_OR_NOW |
11664 |
# ifdef RTLD_LAZY |
11665 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11666 |
# else |
11667 |
# ifdef DL_LAZY |
11668 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11669 |
# else |
11670 |
# ifdef RTLD_NOW |
11671 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11672 |
# else |
11673 |
# ifdef DL_NOW |
11674 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11675 |
# else |
11676 |
# define LT_DLLAZY_OR_NOW 0 |
11677 |
# endif |
11678 |
# endif |
11679 |
# endif |
11680 |
# endif |
11681 |
#endif |
11682 |
|
11683 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
11684 |
correspondingly for the symbols needed. */ |
11685 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11686 |
int fnord () __attribute__((visibility("default"))); |
11687 |
#endif |
11688 |
|
11689 |
int fnord () { return 42; } |
11690 |
int main () |
11691 |
{ |
11692 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11693 |
int status = $lt_dlunknown; |
11694 |
|
11695 |
if (self) |
11696 |
{ |
11697 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11698 |
else |
11699 |
{ |
11700 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11701 |
else puts (dlerror ()); |
11702 |
} |
11703 |
/* dlclose (self); */ |
11704 |
} |
11705 |
else |
11706 |
puts (dlerror ()); |
11707 |
|
11708 |
return status; |
11709 |
} |
11710 |
_LT_EOF |
11711 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11712 |
(eval $ac_link) 2>&5 |
11713 |
ac_status=$? |
11714 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11715 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
11716 |
(./conftest; exit; ) >&5 2>/dev/null |
11717 |
lt_status=$? |
11718 |
case x$lt_status in |
11719 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
11720 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
11721 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
11722 |
esac |
11723 |
else : |
11724 |
# compilation failed |
11725 |
lt_cv_dlopen_self=no |
11726 |
fi |
11727 |
fi |
11728 |
rm -fr conftest* |
11729 |
|
11730 |
|
11731 |
fi |
11732 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11733 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
11734 |
|
11735 |
if test yes = "$lt_cv_dlopen_self"; then |
11736 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
11737 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11738 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
11739 |
if ${lt_cv_dlopen_self_static+:} false; then : |
11740 |
$as_echo_n "(cached) " >&6 |
11741 |
else |
11742 |
if test yes = "$cross_compiling"; then : |
11743 |
lt_cv_dlopen_self_static=cross |
11744 |
else |
11745 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11746 |
lt_status=$lt_dlunknown |
11747 |
cat > conftest.$ac_ext <<_LT_EOF |
11748 |
#line $LINENO "configure" |
11749 |
#include "confdefs.h" |
11750 |
|
11751 |
#if HAVE_DLFCN_H |
11752 |
#include <dlfcn.h> |
11753 |
#endif |
11754 |
|
11755 |
#include <stdio.h> |
11756 |
|
11757 |
#ifdef RTLD_GLOBAL |
11758 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11759 |
#else |
11760 |
# ifdef DL_GLOBAL |
11761 |
# define LT_DLGLOBAL DL_GLOBAL |
11762 |
# else |
11763 |
# define LT_DLGLOBAL 0 |
11764 |
# endif |
11765 |
#endif |
11766 |
|
11767 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11768 |
find out it does not work in some platform. */ |
11769 |
#ifndef LT_DLLAZY_OR_NOW |
11770 |
# ifdef RTLD_LAZY |
11771 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11772 |
# else |
11773 |
# ifdef DL_LAZY |
11774 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11775 |
# else |
11776 |
# ifdef RTLD_NOW |
11777 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11778 |
# else |
11779 |
# ifdef DL_NOW |
11780 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11781 |
# else |
11782 |
# define LT_DLLAZY_OR_NOW 0 |
11783 |
# endif |
11784 |
# endif |
11785 |
# endif |
11786 |
# endif |
11787 |
#endif |
11788 |
|
11789 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
11790 |
correspondingly for the symbols needed. */ |
11791 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11792 |
int fnord () __attribute__((visibility("default"))); |
11793 |
#endif |
11794 |
|
11795 |
int fnord () { return 42; } |
11796 |
int main () |
11797 |
{ |
11798 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11799 |
int status = $lt_dlunknown; |
11800 |
|
11801 |
if (self) |
11802 |
{ |
11803 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11804 |
else |
11805 |
{ |
11806 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11807 |
else puts (dlerror ()); |
11808 |
} |
11809 |
/* dlclose (self); */ |
11810 |
} |
11811 |
else |
11812 |
puts (dlerror ()); |
11813 |
|
11814 |
return status; |
11815 |
} |
11816 |
_LT_EOF |
11817 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11818 |
(eval $ac_link) 2>&5 |
11819 |
ac_status=$? |
11820 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11821 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
11822 |
(./conftest; exit; ) >&5 2>/dev/null |
11823 |
lt_status=$? |
11824 |
case x$lt_status in |
11825 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
11826 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
11827 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
11828 |
esac |
11829 |
else : |
11830 |
# compilation failed |
11831 |
lt_cv_dlopen_self_static=no |
11832 |
fi |
11833 |
fi |
11834 |
rm -fr conftest* |
11835 |
|
11836 |
|
11837 |
fi |
11838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11839 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
11840 |
fi |
11841 |
|
11842 |
CPPFLAGS=$save_CPPFLAGS |
11843 |
LDFLAGS=$save_LDFLAGS |
11844 |
LIBS=$save_LIBS |
11845 |
;; |
11846 |
esac |
11847 |
|
11848 |
case $lt_cv_dlopen_self in |
11849 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
11850 |
*) enable_dlopen_self=unknown ;; |
11851 |
esac |
11852 |
|
11853 |
case $lt_cv_dlopen_self_static in |
11854 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
11855 |
*) enable_dlopen_self_static=unknown ;; |
11856 |
esac |
11857 |
fi |
11858 |
|
11859 |
|
11860 |
|
11861 |
|
11862 |
|
11863 |
|
11864 |
|
11865 |
|
11866 |
|
11867 |
|
11868 |
|
11869 |
|
11870 |
|
11871 |
|
11872 |
|
11873 |
|
11874 |
|
11875 |
striplib= |
11876 |
old_striplib= |
11877 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11878 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11879 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11880 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
11881 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
11882 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11883 |
$as_echo "yes" >&6; } |
11884 |
else |
11885 |
# FIXME - insert some real tests, host_os isn't really good enough |
11886 |
case $host_os in |
11887 |
darwin*) |
11888 |
if test -n "$STRIP"; then |
11889 |
striplib="$STRIP -x" |
11890 |
old_striplib="$STRIP -S" |
11891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11892 |
$as_echo "yes" >&6; } |
11893 |
else |
11894 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11895 |
$as_echo "no" >&6; } |
11896 |
fi |
11897 |
;; |
11898 |
*) |
11899 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11900 |
$as_echo "no" >&6; } |
11901 |
;; |
11902 |
esac |
11903 |
fi |
11904 |
|
11905 |
|
11906 |
|
11907 |
|
11908 |
|
11909 |
|
11910 |
|
11911 |
|
11912 |
|
11913 |
|
11914 |
|
11915 |
|
11916 |
# Report what library types will actually be built |
11917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11918 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
11919 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
11920 |
$as_echo "$can_build_shared" >&6; } |
11921 |
|
11922 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11923 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
11924 |
test no = "$can_build_shared" && enable_shared=no |
11925 |
|
11926 |
# On AIX, shared libraries and static libraries use the same namespace, and |
11927 |
# are all built from PIC. |
11928 |
case $host_os in |
11929 |
aix3*) |
11930 |
test yes = "$enable_shared" && enable_static=no |
11931 |
if test -n "$RANLIB"; then |
11932 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
11933 |
postinstall_cmds='$RANLIB $lib' |
11934 |
fi |
11935 |
;; |
11936 |
|
11937 |
aix[4-9]*) |
11938 |
if test ia64 != "$host_cpu"; then |
11939 |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
11940 |
yes,aix,yes) ;; # shared object as lib.so file only |
11941 |
yes,svr4,*) ;; # shared object as lib.so archive member only |
11942 |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
11943 |
esac |
11944 |
fi |
11945 |
;; |
11946 |
esac |
11947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11948 |
$as_echo "$enable_shared" >&6; } |
11949 |
|
11950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11951 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
11952 |
# Make sure either enable_shared or enable_static is yes. |
11953 |
test yes = "$enable_shared" || enable_static=yes |
11954 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11955 |
$as_echo "$enable_static" >&6; } |
11956 |
|
11957 |
|
11958 |
|
11959 |
|
11960 |
fi |
11961 |
ac_ext=c |
11962 |
ac_cpp='$CPP $CPPFLAGS' |
11963 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11964 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11965 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11966 |
|
11967 |
CC=$lt_save_CC |
11968 |
|
11969 |
|
11970 |
|
11971 |
|
11972 |
|
11973 |
|
11974 |
|
11975 |
|
11976 |
|
11977 |
|
11978 |
|
11979 |
|
11980 |
|
11981 |
|
11982 |
|
11983 |
ac_config_commands="$ac_config_commands libtool" |
11984 |
|
11985 |
|
11986 |
|
11987 |
|
11988 |
# Only expand once: |
11989 |
|
11990 |
|
11991 |
|
11992 |
|
11993 |
for ac_prog in 'bison -y' byacc |
11994 |
do |
11995 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
11996 |
set dummy $ac_prog; ac_word=$2 |
11997 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11998 |
$as_echo_n "checking for $ac_word... " >&6; } |
11999 |
if ${ac_cv_prog_YACC+:} false; then : |
12000 |
$as_echo_n "(cached) " >&6 |
12001 |
else |
12002 |
if test -n "$YACC"; then |
12003 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
12004 |
else |
12005 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12006 |
for as_dir in $PATH |
12007 |
do |
12008 |
IFS=$as_save_IFS |
12009 |
test -z "$as_dir" && as_dir=. |
12010 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12011 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12012 |
ac_cv_prog_YACC="$ac_prog" |
12013 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12014 |
break 2 |
12015 |
fi |
12016 |
done |
12017 |
done |
12018 |
IFS=$as_save_IFS |
12019 |
|
12020 |
fi |
12021 |
fi |
12022 |
YACC=$ac_cv_prog_YACC |
12023 |
if test -n "$YACC"; then |
12024 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12025 |
$as_echo "$YACC" >&6; } |
12026 |
else |
12027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12028 |
$as_echo "no" >&6; } |
12029 |
fi |
12030 |
|
12031 |
|
12032 |
test -n "$YACC" && break |
12033 |
done |
12034 |
test -n "$YACC" || YACC="yacc" |
12035 |
|
12036 |
|
12037 |
for ac_prog in flex lex |
12038 |
do |
12039 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
12040 |
set dummy $ac_prog; ac_word=$2 |
12041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12042 |
$as_echo_n "checking for $ac_word... " >&6; } |
12043 |
if ${ac_cv_prog_LEX+:} false; then : |
12044 |
$as_echo_n "(cached) " >&6 |
12045 |
else |
12046 |
if test -n "$LEX"; then |
12047 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
12048 |
else |
12049 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12050 |
for as_dir in $PATH |
12051 |
do |
12052 |
IFS=$as_save_IFS |
12053 |
test -z "$as_dir" && as_dir=. |
12054 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12055 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12056 |
ac_cv_prog_LEX="$ac_prog" |
12057 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12058 |
break 2 |
12059 |
fi |
12060 |
done |
12061 |
done |
12062 |
IFS=$as_save_IFS |
12063 |
|
12064 |
fi |
12065 |
fi |
12066 |
LEX=$ac_cv_prog_LEX |
12067 |
if test -n "$LEX"; then |
12068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12069 |
$as_echo "$LEX" >&6; } |
12070 |
else |
12071 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12072 |
$as_echo "no" >&6; } |
12073 |
fi |
12074 |
|
12075 |
|
12076 |
test -n "$LEX" && break |
12077 |
done |
12078 |
test -n "$LEX" || LEX=":" |
12079 |
|
12080 |
if test "x$LEX" != "x:"; then |
12081 |
cat >conftest.l <<_ACEOF |
12082 |
%% |
12083 |
a { ECHO; } |
12084 |
b { REJECT; } |
12085 |
c { yymore (); } |
12086 |
d { yyless (1); } |
12087 |
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
12088 |
yyless ((input () != 0)); } |
12089 |
f { unput (yytext[0]); } |
12090 |
. { BEGIN INITIAL; } |
12091 |
%% |
12092 |
#ifdef YYTEXT_POINTER |
12093 |
extern char *yytext; |
12094 |
#endif |
12095 |
int |
12096 |
main (void) |
12097 |
{ |
12098 |
return ! yylex () + ! yywrap (); |
12099 |
} |
12100 |
_ACEOF |
12101 |
{ { ac_try="$LEX conftest.l" |
12102 |
case "(($ac_try" in |
12103 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12104 |
*) ac_try_echo=$ac_try;; |
12105 |
esac |
12106 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
12107 |
$as_echo "$ac_try_echo"; } >&5 |
12108 |
(eval "$LEX conftest.l") 2>&5 |
12109 |
ac_status=$? |
12110 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12111 |
test $ac_status = 0; } |
12112 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
12113 |
$as_echo_n "checking lex output file root... " >&6; } |
12114 |
if ${ac_cv_prog_lex_root+:} false; then : |
12115 |
$as_echo_n "(cached) " >&6 |
12116 |
else |
12117 |
|
12118 |
if test -f lex.yy.c; then |
12119 |
ac_cv_prog_lex_root=lex.yy |
12120 |
elif test -f lexyy.c; then |
12121 |
ac_cv_prog_lex_root=lexyy |
12122 |
else |
12123 |
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
12124 |
fi |
12125 |
fi |
12126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12127 |
$as_echo "$ac_cv_prog_lex_root" >&6; } |
12128 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
12129 |
|
12130 |
if test -z "${LEXLIB+set}"; then |
12131 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
12132 |
$as_echo_n "checking lex library... " >&6; } |
12133 |
if ${ac_cv_lib_lex+:} false; then : |
12134 |
$as_echo_n "(cached) " >&6 |
12135 |
else |
12136 |
|
12137 |
ac_save_LIBS=$LIBS |
12138 |
ac_cv_lib_lex='none needed' |
12139 |
for ac_lib in '' -lfl -ll; do |
12140 |
LIBS="$ac_lib $ac_save_LIBS" |
12141 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12142 |
/* end confdefs.h. */ |
12143 |
`cat $LEX_OUTPUT_ROOT.c` |
12144 |
_ACEOF |
12145 |
if ac_fn_c_try_link "$LINENO"; then : |
12146 |
ac_cv_lib_lex=$ac_lib |
12147 |
fi |
12148 |
rm -f core conftest.err conftest.$ac_objext \ |
12149 |
conftest$ac_exeext conftest.$ac_ext |
12150 |
test "$ac_cv_lib_lex" != 'none needed' && break |
12151 |
done |
12152 |
LIBS=$ac_save_LIBS |
12153 |
|
12154 |
fi |
12155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12156 |
$as_echo "$ac_cv_lib_lex" >&6; } |
12157 |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
12158 |
fi |
12159 |
|
12160 |
|
12161 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12162 |
$as_echo_n "checking whether yytext is a pointer... " >&6; } |
12163 |
if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
12164 |
$as_echo_n "(cached) " >&6 |
12165 |
else |
12166 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
12167 |
# default is implementation-dependent. Figure out which it is, since |
12168 |
# not all implementations provide the %pointer and %array declarations. |
12169 |
ac_cv_prog_lex_yytext_pointer=no |
12170 |
ac_save_LIBS=$LIBS |
12171 |
LIBS="$LEXLIB $ac_save_LIBS" |
12172 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12173 |
/* end confdefs.h. */ |
12174 |
|
12175 |
#define YYTEXT_POINTER 1 |
12176 |
`cat $LEX_OUTPUT_ROOT.c` |
12177 |
_ACEOF |
12178 |
if ac_fn_c_try_link "$LINENO"; then : |
12179 |
ac_cv_prog_lex_yytext_pointer=yes |
12180 |
fi |
12181 |
rm -f core conftest.err conftest.$ac_objext \ |
12182 |
conftest$ac_exeext conftest.$ac_ext |
12183 |
LIBS=$ac_save_LIBS |
12184 |
|
12185 |
fi |
12186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12187 |
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
12188 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
12189 |
|
12190 |
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
12191 |
|
12192 |
fi |
12193 |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
12194 |
|
12195 |
fi |
12196 |
if test "$LEX" = :; then |
12197 |
LEX=${am_missing_run}flex |
12198 |
fi |
12199 |
|
12200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
12201 |
$as_echo_n "checking for library containing socket... " >&6; } |
12202 |
if ${ac_cv_search_socket+:} false; then : |
12203 |
$as_echo_n "(cached) " >&6 |
12204 |
else |
12205 |
ac_func_search_save_LIBS=$LIBS |
12206 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12207 |
/* end confdefs.h. */ |
12208 |
|
12209 |
/* Override any GCC internal prototype to avoid an error. |
12210 |
Use char because int might match the return type of a GCC |
12211 |
builtin and then its argument prototype would still apply. */ |
12212 |
#ifdef __cplusplus |
12213 |
extern "C" |
12214 |
#endif |
12215 |
char socket (); |
12216 |
int |
12217 |
main () |
12218 |
{ |
12219 |
return socket (); |
12220 |
; |
12221 |
return 0; |
12222 |
} |
12223 |
_ACEOF |
12224 |
for ac_lib in '' socket; do |
12225 |
if test -z "$ac_lib"; then |
12226 |
ac_res="none required" |
12227 |
else |
12228 |
ac_res=-l$ac_lib |
12229 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12230 |
fi |
12231 |
if ac_fn_c_try_link "$LINENO"; then : |
12232 |
ac_cv_search_socket=$ac_res |
12233 |
fi |
12234 |
rm -f core conftest.err conftest.$ac_objext \ |
12235 |
conftest$ac_exeext |
12236 |
if ${ac_cv_search_socket+:} false; then : |
12237 |
break |
12238 |
fi |
12239 |
done |
12240 |
if ${ac_cv_search_socket+:} false; then : |
12241 |
|
12242 |
else |
12243 |
ac_cv_search_socket=no |
12244 |
fi |
12245 |
rm conftest.$ac_ext |
12246 |
LIBS=$ac_func_search_save_LIBS |
12247 |
fi |
12248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
12249 |
$as_echo "$ac_cv_search_socket" >&6; } |
12250 |
ac_res=$ac_cv_search_socket |
12251 |
if test "$ac_res" != no; then : |
12252 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12253 |
|
12254 |
else |
12255 |
as_fn_error $? "socket library not found" "$LINENO" 5 |
12256 |
fi |
12257 |
|
12258 |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
12259 |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
12260 |
|
12261 |
else |
12262 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
12263 |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
12264 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12265 |
$as_echo_n "(cached) " >&6 |
12266 |
else |
12267 |
ac_func_search_save_LIBS=$LIBS |
12268 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12269 |
/* end confdefs.h. */ |
12270 |
|
12271 |
/* Override any GCC internal prototype to avoid an error. |
12272 |
Use char because int might match the return type of a GCC |
12273 |
builtin and then its argument prototype would still apply. */ |
12274 |
#ifdef __cplusplus |
12275 |
extern "C" |
12276 |
#endif |
12277 |
char getaddrinfo (); |
12278 |
int |
12279 |
main () |
12280 |
{ |
12281 |
return getaddrinfo (); |
12282 |
; |
12283 |
return 0; |
12284 |
} |
12285 |
_ACEOF |
12286 |
for ac_lib in '' nsl; do |
12287 |
if test -z "$ac_lib"; then |
12288 |
ac_res="none required" |
12289 |
else |
12290 |
ac_res=-l$ac_lib |
12291 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12292 |
fi |
12293 |
if ac_fn_c_try_link "$LINENO"; then : |
12294 |
ac_cv_search_getaddrinfo=$ac_res |
12295 |
fi |
12296 |
rm -f core conftest.err conftest.$ac_objext \ |
12297 |
conftest$ac_exeext |
12298 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12299 |
break |
12300 |
fi |
12301 |
done |
12302 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12303 |
|
12304 |
else |
12305 |
ac_cv_search_getaddrinfo=no |
12306 |
fi |
12307 |
rm conftest.$ac_ext |
12308 |
LIBS=$ac_func_search_save_LIBS |
12309 |
fi |
12310 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
12311 |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
12312 |
ac_res=$ac_cv_search_getaddrinfo |
12313 |
if test "$ac_res" != no; then : |
12314 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12315 |
|
12316 |
fi |
12317 |
|
12318 |
fi |
12319 |
|
12320 |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
12321 |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
12322 |
|
12323 |
else |
12324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
12325 |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
12326 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12327 |
$as_echo_n "(cached) " >&6 |
12328 |
else |
12329 |
ac_func_search_save_LIBS=$LIBS |
12330 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12331 |
/* end confdefs.h. */ |
12332 |
|
12333 |
/* Override any GCC internal prototype to avoid an error. |
12334 |
Use char because int might match the return type of a GCC |
12335 |
builtin and then its argument prototype would still apply. */ |
12336 |
#ifdef __cplusplus |
12337 |
extern "C" |
12338 |
#endif |
12339 |
char getnameinfo (); |
12340 |
int |
12341 |
main () |
12342 |
{ |
12343 |
return getnameinfo (); |
12344 |
; |
12345 |
return 0; |
12346 |
} |
12347 |
_ACEOF |
12348 |
for ac_lib in '' nsl; do |
12349 |
if test -z "$ac_lib"; then |
12350 |
ac_res="none required" |
12351 |
else |
12352 |
ac_res=-l$ac_lib |
12353 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12354 |
fi |
12355 |
if ac_fn_c_try_link "$LINENO"; then : |
12356 |
ac_cv_search_getnameinfo=$ac_res |
12357 |
fi |
12358 |
rm -f core conftest.err conftest.$ac_objext \ |
12359 |
conftest$ac_exeext |
12360 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12361 |
break |
12362 |
fi |
12363 |
done |
12364 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12365 |
|
12366 |
else |
12367 |
ac_cv_search_getnameinfo=no |
12368 |
fi |
12369 |
rm conftest.$ac_ext |
12370 |
LIBS=$ac_func_search_save_LIBS |
12371 |
fi |
12372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
12373 |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
12374 |
ac_res=$ac_cv_search_getnameinfo |
12375 |
if test "$ac_res" != no; then : |
12376 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12377 |
|
12378 |
fi |
12379 |
|
12380 |
fi |
12381 |
|
12382 |
|
12383 |
for ac_func in strlcpy strlcat |
12384 |
do : |
12385 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12386 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12387 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12388 |
cat >>confdefs.h <<_ACEOF |
12389 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12390 |
_ACEOF |
12391 |
|
12392 |
fi |
12393 |
done |
12394 |
|
12395 |
|
12396 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
12397 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
12398 |
if ${ac_cv_c_bigendian+:} false; then : |
12399 |
$as_echo_n "(cached) " >&6 |
12400 |
else |
12401 |
ac_cv_c_bigendian=unknown |
12402 |
# See if we're dealing with a universal compiler. |
12403 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12404 |
/* end confdefs.h. */ |
12405 |
#ifndef __APPLE_CC__ |
12406 |
not a universal capable compiler |
12407 |
#endif |
12408 |
typedef int dummy; |
12409 |
|
12410 |
_ACEOF |
12411 |
if ac_fn_c_try_compile "$LINENO"; then : |
12412 |
|
12413 |
# Check for potential -arch flags. It is not universal unless |
12414 |
# there are at least two -arch flags with different values. |
12415 |
ac_arch= |
12416 |
ac_prev= |
12417 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
12418 |
if test -n "$ac_prev"; then |
12419 |
case $ac_word in |
12420 |
i?86 | x86_64 | ppc | ppc64) |
12421 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
12422 |
ac_arch=$ac_word |
12423 |
else |
12424 |
ac_cv_c_bigendian=universal |
12425 |
break |
12426 |
fi |
12427 |
;; |
12428 |
esac |
12429 |
ac_prev= |
12430 |
elif test "x$ac_word" = "x-arch"; then |
12431 |
ac_prev=arch |
12432 |
fi |
12433 |
done |
12434 |
fi |
12435 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12436 |
if test $ac_cv_c_bigendian = unknown; then |
12437 |
# See if sys/param.h defines the BYTE_ORDER macro. |
12438 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12439 |
/* end confdefs.h. */ |
12440 |
#include <sys/types.h> |
12441 |
#include <sys/param.h> |
12442 |
|
12443 |
int |
12444 |
main () |
12445 |
{ |
12446 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
12447 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
12448 |
&& LITTLE_ENDIAN) |
12449 |
bogus endian macros |
12450 |
#endif |
12451 |
|
12452 |
; |
12453 |
return 0; |
12454 |
} |
12455 |
_ACEOF |
12456 |
if ac_fn_c_try_compile "$LINENO"; then : |
12457 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
12458 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12459 |
/* end confdefs.h. */ |
12460 |
#include <sys/types.h> |
12461 |
#include <sys/param.h> |
12462 |
|
12463 |
int |
12464 |
main () |
12465 |
{ |
12466 |
#if BYTE_ORDER != BIG_ENDIAN |
12467 |
not big endian |
12468 |
#endif |
12469 |
|
12470 |
; |
12471 |
return 0; |
12472 |
} |
12473 |
_ACEOF |
12474 |
if ac_fn_c_try_compile "$LINENO"; then : |
12475 |
ac_cv_c_bigendian=yes |
12476 |
else |
12477 |
ac_cv_c_bigendian=no |
12478 |
fi |
12479 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12480 |
fi |
12481 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12482 |
fi |
12483 |
if test $ac_cv_c_bigendian = unknown; then |
12484 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
12485 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12486 |
/* end confdefs.h. */ |
12487 |
#include <limits.h> |
12488 |
|
12489 |
int |
12490 |
main () |
12491 |
{ |
12492 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12493 |
bogus endian macros |
12494 |
#endif |
12495 |
|
12496 |
; |
12497 |
return 0; |
12498 |
} |
12499 |
_ACEOF |
12500 |
if ac_fn_c_try_compile "$LINENO"; then : |
12501 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
12502 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12503 |
/* end confdefs.h. */ |
12504 |
#include <limits.h> |
12505 |
|
12506 |
int |
12507 |
main () |
12508 |
{ |
12509 |
#ifndef _BIG_ENDIAN |
12510 |
not big endian |
12511 |
#endif |
12512 |
|
12513 |
; |
12514 |
return 0; |
12515 |
} |
12516 |
_ACEOF |
12517 |
if ac_fn_c_try_compile "$LINENO"; then : |
12518 |
ac_cv_c_bigendian=yes |
12519 |
else |
12520 |
ac_cv_c_bigendian=no |
12521 |
fi |
12522 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12523 |
fi |
12524 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12525 |
fi |
12526 |
if test $ac_cv_c_bigendian = unknown; then |
12527 |
# Compile a test program. |
12528 |
if test "$cross_compiling" = yes; then : |
12529 |
# Try to guess by grepping values from an object file. |
12530 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12531 |
/* end confdefs.h. */ |
12532 |
short int ascii_mm[] = |
12533 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
12534 |
short int ascii_ii[] = |
12535 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
12536 |
int use_ascii (int i) { |
12537 |
return ascii_mm[i] + ascii_ii[i]; |
12538 |
} |
12539 |
short int ebcdic_ii[] = |
12540 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
12541 |
short int ebcdic_mm[] = |
12542 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
12543 |
int use_ebcdic (int i) { |
12544 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
12545 |
} |
12546 |
extern int foo; |
12547 |
|
12548 |
int |
12549 |
main () |
12550 |
{ |
12551 |
return use_ascii (foo) == use_ebcdic (foo); |
12552 |
; |
12553 |
return 0; |
12554 |
} |
12555 |
_ACEOF |
12556 |
if ac_fn_c_try_compile "$LINENO"; then : |
12557 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
12558 |
ac_cv_c_bigendian=yes |
12559 |
fi |
12560 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
12561 |
if test "$ac_cv_c_bigendian" = unknown; then |
12562 |
ac_cv_c_bigendian=no |
12563 |
else |
12564 |
# finding both strings is unlikely to happen, but who knows? |
12565 |
ac_cv_c_bigendian=unknown |
12566 |
fi |
12567 |
fi |
12568 |
fi |
12569 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12570 |
else |
12571 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12572 |
/* end confdefs.h. */ |
12573 |
$ac_includes_default |
12574 |
int |
12575 |
main () |
12576 |
{ |
12577 |
|
12578 |
/* Are we little or big endian? From Harbison&Steele. */ |
12579 |
union |
12580 |
{ |
12581 |
long int l; |
12582 |
char c[sizeof (long int)]; |
12583 |
} u; |
12584 |
u.l = 1; |
12585 |
return u.c[sizeof (long int) - 1] == 1; |
12586 |
|
12587 |
; |
12588 |
return 0; |
12589 |
} |
12590 |
_ACEOF |
12591 |
if ac_fn_c_try_run "$LINENO"; then : |
12592 |
ac_cv_c_bigendian=no |
12593 |
else |
12594 |
ac_cv_c_bigendian=yes |
12595 |
fi |
12596 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12597 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
12598 |
fi |
12599 |
|
12600 |
fi |
12601 |
fi |
12602 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
12603 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
12604 |
case $ac_cv_c_bigendian in #( |
12605 |
yes) |
12606 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
12607 |
;; #( |
12608 |
no) |
12609 |
;; #( |
12610 |
universal) |
12611 |
|
12612 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
12613 |
|
12614 |
;; #( |
12615 |
*) |
12616 |
as_fn_error $? "unknown endianness |
12617 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
12618 |
esac |
12619 |
|
12620 |
|
12621 |
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile" |
12622 |
|
12623 |
cat >confcache <<\_ACEOF |
12624 |
# This file is a shell script that caches the results of configure |
12625 |
# tests run on this system so they can be shared between configure |
12626 |
# scripts and configure runs, see configure's option --config-cache. |
12627 |
# It is not useful on other systems. If it contains results you don't |
12628 |
# want to keep, you may remove or edit it. |
12629 |
# |
12630 |
# config.status only pays attention to the cache file if you give it |
12631 |
# the --recheck option to rerun configure. |
12632 |
# |
12633 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
12634 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
12635 |
# following values. |
12636 |
|
12637 |
_ACEOF |
12638 |
|
12639 |
# The following way of writing the cache mishandles newlines in values, |
12640 |
# but we know of no workaround that is simple, portable, and efficient. |
12641 |
# So, we kill variables containing newlines. |
12642 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
12643 |
# and sets the high bit in the cache file unless we assign to the vars. |
12644 |
( |
12645 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
12646 |
eval ac_val=\$$ac_var |
12647 |
case $ac_val in #( |
12648 |
*${as_nl}*) |
12649 |
case $ac_var in #( |
12650 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
12651 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12652 |
esac |
12653 |
case $ac_var in #( |
12654 |
_ | IFS | as_nl) ;; #( |
12655 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
12656 |
*) { eval $ac_var=; unset $ac_var;} ;; |
12657 |
esac ;; |
12658 |
esac |
12659 |
done |
12660 |
|
12661 |
(set) 2>&1 | |
12662 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12663 |
*${as_nl}ac_space=\ *) |
12664 |
# `set' does not quote correctly, so add quotes: double-quote |
12665 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
12666 |
sed -n \ |
12667 |
"s/'/'\\\\''/g; |
12668 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
12669 |
;; #( |
12670 |
*) |
12671 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
12672 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
12673 |
;; |
12674 |
esac | |
12675 |
sort |
12676 |
) | |
12677 |
sed ' |
12678 |
/^ac_cv_env_/b end |
12679 |
t clear |
12680 |
:clear |
12681 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12682 |
t end |
12683 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12684 |
:end' >>confcache |
12685 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
12686 |
if test -w "$cache_file"; then |
12687 |
if test "x$cache_file" != "x/dev/null"; then |
12688 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
12689 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
12690 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
12691 |
cat confcache >"$cache_file" |
12692 |
else |
12693 |
case $cache_file in #( |
12694 |
*/* | ?:*) |
12695 |
mv -f confcache "$cache_file"$$ && |
12696 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
12697 |
*) |
12698 |
mv -f confcache "$cache_file" ;; |
12699 |
esac |
12700 |
fi |
12701 |
fi |
12702 |
else |
12703 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
12704 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12705 |
fi |
12706 |
fi |
12707 |
rm -f confcache |
12708 |
|
12709 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12710 |
# Let make expand exec_prefix. |
12711 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
12712 |
|
12713 |
DEFS=-DHAVE_CONFIG_H |
12714 |
|
12715 |
ac_libobjs= |
12716 |
ac_ltlibobjs= |
12717 |
U= |
12718 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12719 |
# 1. Remove the extension, and $U if already installed. |
12720 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12721 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
12722 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12723 |
# will be set to the directory where LIBOBJS objects are built. |
12724 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12725 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
12726 |
done |
12727 |
LIBOBJS=$ac_libobjs |
12728 |
|
12729 |
LTLIBOBJS=$ac_ltlibobjs |
12730 |
|
12731 |
|
12732 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12733 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
12734 |
if test -n "$am_sleep_pid"; then |
12735 |
# Hide warnings about reused PIDs. |
12736 |
wait $am_sleep_pid 2>/dev/null |
12737 |
fi |
12738 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
12739 |
$as_echo "done" >&6; } |
12740 |
if test -n "$EXEEXT"; then |
12741 |
am__EXEEXT_TRUE= |
12742 |
am__EXEEXT_FALSE='#' |
12743 |
else |
12744 |
am__EXEEXT_TRUE='#' |
12745 |
am__EXEEXT_FALSE= |
12746 |
fi |
12747 |
|
12748 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
12749 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
12750 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12751 |
fi |
12752 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
12753 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
12754 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12755 |
fi |
12756 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
12757 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12758 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
12759 |
fi |
12760 |
|
12761 |
|
12762 |
: "${CONFIG_STATUS=./config.status}" |
12763 |
ac_write_fail=0 |
12764 |
ac_clean_files_save=$ac_clean_files |
12765 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
12766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
12767 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
12768 |
as_write_fail=0 |
12769 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
12770 |
#! $SHELL |
12771 |
# Generated by $as_me. |
12772 |
# Run this file to recreate the current configuration. |
12773 |
# Compiler output produced by configure, useful for debugging |
12774 |
# configure, is in config.log if it exists. |
12775 |
|
12776 |
debug=false |
12777 |
ac_cs_recheck=false |
12778 |
ac_cs_silent=false |
12779 |
|
12780 |
SHELL=\${CONFIG_SHELL-$SHELL} |
12781 |
export SHELL |
12782 |
_ASEOF |
12783 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
12784 |
## -------------------- ## |
12785 |
## M4sh Initialization. ## |
12786 |
## -------------------- ## |
12787 |
|
12788 |
# Be more Bourne compatible |
12789 |
DUALCASE=1; export DUALCASE # for MKS sh |
12790 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
12791 |
emulate sh |
12792 |
NULLCMD=: |
12793 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
12794 |
# is contrary to our usage. Disable this feature. |
12795 |
alias -g '${1+"$@"}'='"$@"' |
12796 |
setopt NO_GLOB_SUBST |
12797 |
else |
12798 |
case `(set -o) 2>/dev/null` in #( |
12799 |
*posix*) : |
12800 |
set -o posix ;; #( |
12801 |
*) : |
12802 |
;; |
12803 |
esac |
12804 |
fi |
12805 |
|
12806 |
|
12807 |
as_nl=' |
12808 |
' |
12809 |
export as_nl |
12810 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
12811 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
12812 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
12813 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
12814 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
12815 |
# but without wasting forks for bash or zsh. |
12816 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
12817 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
12818 |
as_echo='print -r --' |
12819 |
as_echo_n='print -rn --' |
12820 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
12821 |
as_echo='printf %s\n' |
12822 |
as_echo_n='printf %s' |
12823 |
else |
12824 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
12825 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
12826 |
as_echo_n='/usr/ucb/echo -n' |
12827 |
else |
12828 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12829 |
as_echo_n_body='eval |
12830 |
arg=$1; |
12831 |
case $arg in #( |
12832 |
*"$as_nl"*) |
12833 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
12834 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
12835 |
esac; |
12836 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
12837 |
' |
12838 |
export as_echo_n_body |
12839 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
12840 |
fi |
12841 |
export as_echo_body |
12842 |
as_echo='sh -c $as_echo_body as_echo' |
12843 |
fi |
12844 |
|
12845 |
# The user is always right. |
12846 |
if test "${PATH_SEPARATOR+set}" != set; then |
12847 |
PATH_SEPARATOR=: |
12848 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
12849 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
12850 |
PATH_SEPARATOR=';' |
12851 |
} |
12852 |
fi |
12853 |
|
12854 |
|
12855 |
# IFS |
12856 |
# We need space, tab and new line, in precisely that order. Quoting is |
12857 |
# there to prevent editors from complaining about space-tab. |
12858 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
12859 |
# splitting by setting IFS to empty value.) |
12860 |
IFS=" "" $as_nl" |
12861 |
|
12862 |
# Find who we are. Look in the path if we contain no directory separator. |
12863 |
as_myself= |
12864 |
case $0 in #(( |
12865 |
*[\\/]* ) as_myself=$0 ;; |
12866 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12867 |
for as_dir in $PATH |
12868 |
do |
12869 |
IFS=$as_save_IFS |
12870 |
test -z "$as_dir" && as_dir=. |
12871 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12872 |
done |
12873 |
IFS=$as_save_IFS |
12874 |
|
12875 |
;; |
12876 |
esac |
12877 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
12878 |
# in which case we are not to be found in the path. |
12879 |
if test "x$as_myself" = x; then |
12880 |
as_myself=$0 |
12881 |
fi |
12882 |
if test ! -f "$as_myself"; then |
12883 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
12884 |
exit 1 |
12885 |
fi |
12886 |
|
12887 |
# Unset variables that we do not need and which cause bugs (e.g. in |
12888 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
12889 |
# suppresses any "Segmentation fault" message there. '((' could |
12890 |
# trigger a bug in pdksh 5.2.14. |
12891 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
12892 |
do eval test x\${$as_var+set} = xset \ |
12893 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
12894 |
done |
12895 |
PS1='$ ' |
12896 |
PS2='> ' |
12897 |
PS4='+ ' |
12898 |
|
12899 |
# NLS nuisances. |
12900 |
LC_ALL=C |
12901 |
export LC_ALL |
12902 |
LANGUAGE=C |
12903 |
export LANGUAGE |
12904 |
|
12905 |
# CDPATH. |
12906 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
12907 |
|
12908 |
|
12909 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
12910 |
# ---------------------------------------- |
12911 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
12912 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
12913 |
# script with STATUS, using 1 if that was 0. |
12914 |
as_fn_error () |
12915 |
{ |
12916 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
12917 |
if test "$4"; then |
12918 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
12919 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
12920 |
fi |
12921 |
$as_echo "$as_me: error: $2" >&2 |
12922 |
as_fn_exit $as_status |
12923 |
} # as_fn_error |
12924 |
|
12925 |
|
12926 |
# as_fn_set_status STATUS |
12927 |
# ----------------------- |
12928 |
# Set $? to STATUS, without forking. |
12929 |
as_fn_set_status () |
12930 |
{ |
12931 |
return $1 |
12932 |
} # as_fn_set_status |
12933 |
|
12934 |
# as_fn_exit STATUS |
12935 |
# ----------------- |
12936 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
12937 |
as_fn_exit () |
12938 |
{ |
12939 |
set +e |
12940 |
as_fn_set_status $1 |
12941 |
exit $1 |
12942 |
} # as_fn_exit |
12943 |
|
12944 |
# as_fn_unset VAR |
12945 |
# --------------- |
12946 |
# Portably unset VAR. |
12947 |
as_fn_unset () |
12948 |
{ |
12949 |
{ eval $1=; unset $1;} |
12950 |
} |
12951 |
as_unset=as_fn_unset |
12952 |
# as_fn_append VAR VALUE |
12953 |
# ---------------------- |
12954 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
12955 |
# advantage of any shell optimizations that allow amortized linear growth over |
12956 |
# repeated appends, instead of the typical quadratic growth present in naive |
12957 |
# implementations. |
12958 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
12959 |
eval 'as_fn_append () |
12960 |
{ |
12961 |
eval $1+=\$2 |
12962 |
}' |
12963 |
else |
12964 |
as_fn_append () |
12965 |
{ |
12966 |
eval $1=\$$1\$2 |
12967 |
} |
12968 |
fi # as_fn_append |
12969 |
|
12970 |
# as_fn_arith ARG... |
12971 |
# ------------------ |
12972 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
12973 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
12974 |
# must be portable across $(()) and expr. |
12975 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
12976 |
eval 'as_fn_arith () |
12977 |
{ |
12978 |
as_val=$(( $* )) |
12979 |
}' |
12980 |
else |
12981 |
as_fn_arith () |
12982 |
{ |
12983 |
as_val=`expr "$@" || test $? -eq 1` |
12984 |
} |
12985 |
fi # as_fn_arith |
12986 |
|
12987 |
|
12988 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
12989 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
12990 |
as_expr=expr |
12991 |
else |
12992 |
as_expr=false |
12993 |
fi |
12994 |
|
12995 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12996 |
as_basename=basename |
12997 |
else |
12998 |
as_basename=false |
12999 |
fi |
13000 |
|
13001 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13002 |
as_dirname=dirname |
13003 |
else |
13004 |
as_dirname=false |
13005 |
fi |
13006 |
|
13007 |
as_me=`$as_basename -- "$0" || |
13008 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13009 |
X"$0" : 'X\(//\)$' \| \ |
13010 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
13011 |
$as_echo X/"$0" | |
13012 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13013 |
s//\1/ |
13014 |
q |
13015 |
} |
13016 |
/^X\/\(\/\/\)$/{ |
13017 |
s//\1/ |
13018 |
q |
13019 |
} |
13020 |
/^X\/\(\/\).*/{ |
13021 |
s//\1/ |
13022 |
q |
13023 |
} |
13024 |
s/.*/./; q'` |
13025 |
|
13026 |
# Avoid depending upon Character Ranges. |
13027 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
13028 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
13029 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
13030 |
as_cr_digits='0123456789' |
13031 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
13032 |
|
13033 |
ECHO_C= ECHO_N= ECHO_T= |
13034 |
case `echo -n x` in #((((( |
13035 |
-n*) |
13036 |
case `echo 'xy\c'` in |
13037 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
13038 |
xy) ECHO_C='\c';; |
13039 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
13040 |
ECHO_T=' ';; |
13041 |
esac;; |
13042 |
*) |
13043 |
ECHO_N='-n';; |
13044 |
esac |
13045 |
|
13046 |
rm -f conf$$ conf$$.exe conf$$.file |
13047 |
if test -d conf$$.dir; then |
13048 |
rm -f conf$$.dir/conf$$.file |
13049 |
else |
13050 |
rm -f conf$$.dir |
13051 |
mkdir conf$$.dir 2>/dev/null |
13052 |
fi |
13053 |
if (echo >conf$$.file) 2>/dev/null; then |
13054 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
13055 |
as_ln_s='ln -s' |
13056 |
# ... but there are two gotchas: |
13057 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
13058 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
13059 |
# In both cases, we have to default to `cp -pR'. |
13060 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
13061 |
as_ln_s='cp -pR' |
13062 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
13063 |
as_ln_s=ln |
13064 |
else |
13065 |
as_ln_s='cp -pR' |
13066 |
fi |
13067 |
else |
13068 |
as_ln_s='cp -pR' |
13069 |
fi |
13070 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13071 |
rmdir conf$$.dir 2>/dev/null |
13072 |
|
13073 |
|
13074 |
# as_fn_mkdir_p |
13075 |
# ------------- |
13076 |
# Create "$as_dir" as a directory, including parents if necessary. |
13077 |
as_fn_mkdir_p () |
13078 |
{ |
13079 |
|
13080 |
case $as_dir in #( |
13081 |
-*) as_dir=./$as_dir;; |
13082 |
esac |
13083 |
test -d "$as_dir" || eval $as_mkdir_p || { |
13084 |
as_dirs= |
13085 |
while :; do |
13086 |
case $as_dir in #( |
13087 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
13088 |
*) as_qdir=$as_dir;; |
13089 |
esac |
13090 |
as_dirs="'$as_qdir' $as_dirs" |
13091 |
as_dir=`$as_dirname -- "$as_dir" || |
13092 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13093 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
13094 |
X"$as_dir" : 'X\(//\)$' \| \ |
13095 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
13096 |
$as_echo X"$as_dir" | |
13097 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13098 |
s//\1/ |
13099 |
q |
13100 |
} |
13101 |
/^X\(\/\/\)[^/].*/{ |
13102 |
s//\1/ |
13103 |
q |
13104 |
} |
13105 |
/^X\(\/\/\)$/{ |
13106 |
s//\1/ |
13107 |
q |
13108 |
} |
13109 |
/^X\(\/\).*/{ |
13110 |
s//\1/ |
13111 |
q |
13112 |
} |
13113 |
s/.*/./; q'` |
13114 |
test -d "$as_dir" && break |
13115 |
done |
13116 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
13117 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
13118 |
|
13119 |
|
13120 |
} # as_fn_mkdir_p |
13121 |
if mkdir -p . 2>/dev/null; then |
13122 |
as_mkdir_p='mkdir -p "$as_dir"' |
13123 |
else |
13124 |
test -d ./-p && rmdir ./-p |
13125 |
as_mkdir_p=false |
13126 |
fi |
13127 |
|
13128 |
|
13129 |
# as_fn_executable_p FILE |
13130 |
# ----------------------- |
13131 |
# Test if FILE is an executable regular file. |
13132 |
as_fn_executable_p () |
13133 |
{ |
13134 |
test -f "$1" && test -x "$1" |
13135 |
} # as_fn_executable_p |
13136 |
as_test_x='test -x' |
13137 |
as_executable_p=as_fn_executable_p |
13138 |
|
13139 |
# Sed expression to map a string onto a valid CPP name. |
13140 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13141 |
|
13142 |
# Sed expression to map a string onto a valid variable name. |
13143 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13144 |
|
13145 |
|
13146 |
exec 6>&1 |
13147 |
## ----------------------------------- ## |
13148 |
## Main body of $CONFIG_STATUS script. ## |
13149 |
## ----------------------------------- ## |
13150 |
_ASEOF |
13151 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
13152 |
|
13153 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13154 |
# Save the log message, to keep $0 and so on meaningful, and to |
13155 |
# report actual input values of CONFIG_FILES etc. instead of their |
13156 |
# values after options handling. |
13157 |
ac_log=" |
13158 |
This file was extended by hopm $as_me 1.0.0, which was |
13159 |
generated by GNU Autoconf 2.69. Invocation command line was |
13160 |
|
13161 |
CONFIG_FILES = $CONFIG_FILES |
13162 |
CONFIG_HEADERS = $CONFIG_HEADERS |
13163 |
CONFIG_LINKS = $CONFIG_LINKS |
13164 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
13165 |
$ $0 $@ |
13166 |
|
13167 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13168 |
" |
13169 |
|
13170 |
_ACEOF |
13171 |
|
13172 |
case $ac_config_files in *" |
13173 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
13174 |
esac |
13175 |
|
13176 |
case $ac_config_headers in *" |
13177 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
13178 |
esac |
13179 |
|
13180 |
|
13181 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13182 |
# Files that config.status was made for. |
13183 |
config_files="$ac_config_files" |
13184 |
config_headers="$ac_config_headers" |
13185 |
config_commands="$ac_config_commands" |
13186 |
|
13187 |
_ACEOF |
13188 |
|
13189 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13190 |
ac_cs_usage="\ |
13191 |
\`$as_me' instantiates files and other configuration actions |
13192 |
from templates according to the current configuration. Unless the files |
13193 |
and actions are specified as TAGs, all are instantiated by default. |
13194 |
|
13195 |
Usage: $0 [OPTION]... [TAG]... |
13196 |
|
13197 |
-h, --help print this help, then exit |
13198 |
-V, --version print version number and configuration settings, then exit |
13199 |
--config print configuration, then exit |
13200 |
-q, --quiet, --silent |
13201 |
do not print progress messages |
13202 |
-d, --debug don't remove temporary files |
13203 |
--recheck update $as_me by reconfiguring in the same conditions |
13204 |
--file=FILE[:TEMPLATE] |
13205 |
instantiate the configuration file FILE |
13206 |
--header=FILE[:TEMPLATE] |
13207 |
instantiate the configuration header FILE |
13208 |
|
13209 |
Configuration files: |
13210 |
$config_files |
13211 |
|
13212 |
Configuration headers: |
13213 |
$config_headers |
13214 |
|
13215 |
Configuration commands: |
13216 |
$config_commands |
13217 |
|
13218 |
Report bugs to <bugs@ircd-hybrid.org>." |
13219 |
|
13220 |
_ACEOF |
13221 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13222 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
13223 |
ac_cs_version="\\ |
13224 |
hopm config.status 1.0.0 |
13225 |
configured by $0, generated by GNU Autoconf 2.69, |
13226 |
with options \\"\$ac_cs_config\\" |
13227 |
|
13228 |
Copyright (C) 2012 Free Software Foundation, Inc. |
13229 |
This config.status script is free software; the Free Software Foundation |
13230 |
gives unlimited permission to copy, distribute and modify it." |
13231 |
|
13232 |
ac_pwd='$ac_pwd' |
13233 |
srcdir='$srcdir' |
13234 |
INSTALL='$INSTALL' |
13235 |
MKDIR_P='$MKDIR_P' |
13236 |
AWK='$AWK' |
13237 |
test -n "\$AWK" || AWK=awk |
13238 |
_ACEOF |
13239 |
|
13240 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13241 |
# The default lists apply if the user does not specify any file. |
13242 |
ac_need_defaults=: |
13243 |
while test $# != 0 |
13244 |
do |
13245 |
case $1 in |
13246 |
--*=?*) |
13247 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13248 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
13249 |
ac_shift=: |
13250 |
;; |
13251 |
--*=) |
13252 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13253 |
ac_optarg= |
13254 |
ac_shift=: |
13255 |
;; |
13256 |
*) |
13257 |
ac_option=$1 |
13258 |
ac_optarg=$2 |
13259 |
ac_shift=shift |
13260 |
;; |
13261 |
esac |
13262 |
|
13263 |
case $ac_option in |
13264 |
# Handling of the options. |
13265 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13266 |
ac_cs_recheck=: ;; |
13267 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13268 |
$as_echo "$ac_cs_version"; exit ;; |
13269 |
--config | --confi | --conf | --con | --co | --c ) |
13270 |
$as_echo "$ac_cs_config"; exit ;; |
13271 |
--debug | --debu | --deb | --de | --d | -d ) |
13272 |
debug=: ;; |
13273 |
--file | --fil | --fi | --f ) |
13274 |
$ac_shift |
13275 |
case $ac_optarg in |
13276 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13277 |
'') as_fn_error $? "missing file argument" ;; |
13278 |
esac |
13279 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
13280 |
ac_need_defaults=false;; |
13281 |
--header | --heade | --head | --hea ) |
13282 |
$ac_shift |
13283 |
case $ac_optarg in |
13284 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13285 |
esac |
13286 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
13287 |
ac_need_defaults=false;; |
13288 |
--he | --h) |
13289 |
# Conflict between --help and --header |
13290 |
as_fn_error $? "ambiguous option: \`$1' |
13291 |
Try \`$0 --help' for more information.";; |
13292 |
--help | --hel | -h ) |
13293 |
$as_echo "$ac_cs_usage"; exit ;; |
13294 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13295 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
13296 |
ac_cs_silent=: ;; |
13297 |
|
13298 |
# This is an error. |
13299 |
-*) as_fn_error $? "unrecognized option: \`$1' |
13300 |
Try \`$0 --help' for more information." ;; |
13301 |
|
13302 |
*) as_fn_append ac_config_targets " $1" |
13303 |
ac_need_defaults=false ;; |
13304 |
|
13305 |
esac |
13306 |
shift |
13307 |
done |
13308 |
|
13309 |
ac_configure_extra_args= |
13310 |
|
13311 |
if $ac_cs_silent; then |
13312 |
exec 6>/dev/null |
13313 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
13314 |
fi |
13315 |
|
13316 |
_ACEOF |
13317 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13318 |
if \$ac_cs_recheck; then |
13319 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13320 |
shift |
13321 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
13322 |
CONFIG_SHELL='$SHELL' |
13323 |
export CONFIG_SHELL |
13324 |
exec "\$@" |
13325 |
fi |
13326 |
|
13327 |
_ACEOF |
13328 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13329 |
exec 5>>config.log |
13330 |
{ |
13331 |
echo |
13332 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
13333 |
## Running $as_me. ## |
13334 |
_ASBOX |
13335 |
$as_echo "$ac_log" |
13336 |
} >&5 |
13337 |
|
13338 |
_ACEOF |
13339 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13340 |
# |
13341 |
# INIT-COMMANDS |
13342 |
# |
13343 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
13344 |
|
13345 |
|
13346 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
13347 |
# if CDPATH is set. |
13348 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
13349 |
|
13350 |
sed_quote_subst='$sed_quote_subst' |
13351 |
double_quote_subst='$double_quote_subst' |
13352 |
delay_variable_subst='$delay_variable_subst' |
13353 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13354 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
13355 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
13356 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
13357 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
13358 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
13359 |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
13360 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13361 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
13362 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
13363 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
13364 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
13365 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
13366 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
13367 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
13368 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
13369 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
13370 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
13371 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
13372 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
13373 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
13374 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
13375 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
13376 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
13377 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
13378 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
13379 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
13380 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
13381 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
13382 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
13383 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
13384 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
13385 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
13386 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
13387 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
13388 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
13389 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
13390 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
13391 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
13392 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
13393 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
13394 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
13395 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
13396 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
13397 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
13398 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
13399 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
13400 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
13401 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
13402 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
13403 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
13404 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
13405 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
13406 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
13407 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
13408 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
13409 |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
13410 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13411 |
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"`' |
13412 |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
13413 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13414 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
13415 |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
13416 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13417 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
13418 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
13419 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
13420 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
13421 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
13422 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
13423 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
13424 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
13425 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
13426 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
13427 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
13428 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
13429 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
13430 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
13431 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
13432 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
13433 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
13434 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
13435 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
13436 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
13437 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
13438 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
13439 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
13440 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
13441 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
13442 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
13443 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
13444 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
13445 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
13446 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
13447 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
13448 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
13449 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
13450 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
13451 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
13452 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
13453 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
13454 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
13455 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
13456 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
13457 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
13458 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
13459 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
13460 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
13461 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
13462 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
13463 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
13464 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
13465 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
13466 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
13467 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
13468 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
13469 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
13470 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
13471 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
13472 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
13473 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
13474 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
13475 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
13476 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
13477 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
13478 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
13479 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
13480 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
13481 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13482 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
13483 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
13484 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
13485 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
13486 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
13487 |
|
13488 |
LTCC='$LTCC' |
13489 |
LTCFLAGS='$LTCFLAGS' |
13490 |
compiler='$compiler_DEFAULT' |
13491 |
|
13492 |
# A function that is used when there is no print builtin or printf. |
13493 |
func_fallback_echo () |
13494 |
{ |
13495 |
eval 'cat <<_LTECHO_EOF |
13496 |
\$1 |
13497 |
_LTECHO_EOF' |
13498 |
} |
13499 |
|
13500 |
# Quote evaled strings. |
13501 |
for var in SHELL \ |
13502 |
ECHO \ |
13503 |
PATH_SEPARATOR \ |
13504 |
SED \ |
13505 |
GREP \ |
13506 |
EGREP \ |
13507 |
FGREP \ |
13508 |
LD \ |
13509 |
NM \ |
13510 |
LN_S \ |
13511 |
lt_SP2NL \ |
13512 |
lt_NL2SP \ |
13513 |
reload_flag \ |
13514 |
OBJDUMP \ |
13515 |
deplibs_check_method \ |
13516 |
file_magic_cmd \ |
13517 |
file_magic_glob \ |
13518 |
want_nocaseglob \ |
13519 |
DLLTOOL \ |
13520 |
sharedlib_from_linklib_cmd \ |
13521 |
AR \ |
13522 |
AR_FLAGS \ |
13523 |
archiver_list_spec \ |
13524 |
STRIP \ |
13525 |
RANLIB \ |
13526 |
CC \ |
13527 |
CFLAGS \ |
13528 |
compiler \ |
13529 |
lt_cv_sys_global_symbol_pipe \ |
13530 |
lt_cv_sys_global_symbol_to_cdecl \ |
13531 |
lt_cv_sys_global_symbol_to_import \ |
13532 |
lt_cv_sys_global_symbol_to_c_name_address \ |
13533 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
13534 |
lt_cv_nm_interface \ |
13535 |
nm_file_list_spec \ |
13536 |
lt_cv_truncate_bin \ |
13537 |
lt_prog_compiler_no_builtin_flag \ |
13538 |
lt_prog_compiler_pic \ |
13539 |
lt_prog_compiler_wl \ |
13540 |
lt_prog_compiler_static \ |
13541 |
lt_cv_prog_compiler_c_o \ |
13542 |
need_locks \ |
13543 |
MANIFEST_TOOL \ |
13544 |
DSYMUTIL \ |
13545 |
NMEDIT \ |
13546 |
LIPO \ |
13547 |
OTOOL \ |
13548 |
OTOOL64 \ |
13549 |
shrext_cmds \ |
13550 |
export_dynamic_flag_spec \ |
13551 |
whole_archive_flag_spec \ |
13552 |
compiler_needs_object \ |
13553 |
with_gnu_ld \ |
13554 |
allow_undefined_flag \ |
13555 |
no_undefined_flag \ |
13556 |
hardcode_libdir_flag_spec \ |
13557 |
hardcode_libdir_separator \ |
13558 |
exclude_expsyms \ |
13559 |
include_expsyms \ |
13560 |
file_list_spec \ |
13561 |
variables_saved_for_relink \ |
13562 |
libname_spec \ |
13563 |
library_names_spec \ |
13564 |
soname_spec \ |
13565 |
install_override_mode \ |
13566 |
finish_eval \ |
13567 |
old_striplib \ |
13568 |
striplib; do |
13569 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
13570 |
*[\\\\\\\`\\"\\\$]*) |
13571 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
13572 |
;; |
13573 |
*) |
13574 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
13575 |
;; |
13576 |
esac |
13577 |
done |
13578 |
|
13579 |
# Double-quote double-evaled strings. |
13580 |
for var in reload_cmds \ |
13581 |
old_postinstall_cmds \ |
13582 |
old_postuninstall_cmds \ |
13583 |
old_archive_cmds \ |
13584 |
extract_expsyms_cmds \ |
13585 |
old_archive_from_new_cmds \ |
13586 |
old_archive_from_expsyms_cmds \ |
13587 |
archive_cmds \ |
13588 |
archive_expsym_cmds \ |
13589 |
module_cmds \ |
13590 |
module_expsym_cmds \ |
13591 |
export_symbols_cmds \ |
13592 |
prelink_cmds \ |
13593 |
postlink_cmds \ |
13594 |
postinstall_cmds \ |
13595 |
postuninstall_cmds \ |
13596 |
finish_cmds \ |
13597 |
sys_lib_search_path_spec \ |
13598 |
sys_lib_dlsearch_path_spec; do |
13599 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
13600 |
*[\\\\\\\`\\"\\\$]*) |
13601 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
13602 |
;; |
13603 |
*) |
13604 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
13605 |
;; |
13606 |
esac |
13607 |
done |
13608 |
|
13609 |
ac_aux_dir='$ac_aux_dir' |
13610 |
|
13611 |
# See if we are running on zsh, and set the options that allow our |
13612 |
# commands through without removal of \ escapes INIT. |
13613 |
if test -n "\${ZSH_VERSION+set}"; then |
13614 |
setopt NO_GLOB_SUBST |
13615 |
fi |
13616 |
|
13617 |
|
13618 |
PACKAGE='$PACKAGE' |
13619 |
VERSION='$VERSION' |
13620 |
RM='$RM' |
13621 |
ofile='$ofile' |
13622 |
|
13623 |
|
13624 |
|
13625 |
|
13626 |
_ACEOF |
13627 |
|
13628 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13629 |
|
13630 |
# Handling of arguments. |
13631 |
for ac_config_target in $ac_config_targets |
13632 |
do |
13633 |
case $ac_config_target in |
13634 |
"src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;; |
13635 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
13636 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
13637 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13638 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13639 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13640 |
"src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;; |
13641 |
"src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;; |
13642 |
|
13643 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
13644 |
esac |
13645 |
done |
13646 |
|
13647 |
|
13648 |
# If the user did not use the arguments to specify the items to instantiate, |
13649 |
# then the envvar interface is used. Set only those that are not. |
13650 |
# We use the long form for the default assignment because of an extremely |
13651 |
# bizarre bug on SunOS 4.1.3. |
13652 |
if $ac_need_defaults; then |
13653 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
13654 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
13655 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
13656 |
fi |
13657 |
|
13658 |
# Have a temporary directory for convenience. Make it in the build tree |
13659 |
# simply because there is no reason against having it here, and in addition, |
13660 |
# creating and moving files from /tmp can sometimes cause problems. |
13661 |
# Hook for its removal unless debugging. |
13662 |
# Note that there is a small window in which the directory will not be cleaned: |
13663 |
# after its creation but before its name has been assigned to `$tmp'. |
13664 |
$debug || |
13665 |
{ |
13666 |
tmp= ac_tmp= |
13667 |
trap 'exit_status=$? |
13668 |
: "${ac_tmp:=$tmp}" |
13669 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
13670 |
' 0 |
13671 |
trap 'as_fn_exit 1' 1 2 13 15 |
13672 |
} |
13673 |
# Create a (secure) tmp directory for tmp files. |
13674 |
|
13675 |
{ |
13676 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
13677 |
test -d "$tmp" |
13678 |
} || |
13679 |
{ |
13680 |
tmp=./conf$$-$RANDOM |
13681 |
(umask 077 && mkdir "$tmp") |
13682 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13683 |
ac_tmp=$tmp |
13684 |
|
13685 |
# Set up the scripts for CONFIG_FILES section. |
13686 |
# No need to generate them if there are no CONFIG_FILES. |
13687 |
# This happens for instance with `./config.status config.h'. |
13688 |
if test -n "$CONFIG_FILES"; then |
13689 |
|
13690 |
|
13691 |
ac_cr=`echo X | tr X '\015'` |
13692 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
13693 |
# But we know of no other shell where ac_cr would be empty at this |
13694 |
# point, so we can use a bashism as a fallback. |
13695 |
if test "x$ac_cr" = x; then |
13696 |
eval ac_cr=\$\'\\r\' |
13697 |
fi |
13698 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13699 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
13700 |
ac_cs_awk_cr='\\r' |
13701 |
else |
13702 |
ac_cs_awk_cr=$ac_cr |
13703 |
fi |
13704 |
|
13705 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
13706 |
_ACEOF |
13707 |
|
13708 |
|
13709 |
{ |
13710 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
13711 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
13712 |
echo "_ACEOF" |
13713 |
} >conf$$subs.sh || |
13714 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13715 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
13716 |
ac_delim='%!_!# ' |
13717 |
for ac_last_try in false false false false false :; do |
13718 |
. ./conf$$subs.sh || |
13719 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13720 |
|
13721 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13722 |
if test $ac_delim_n = $ac_delim_num; then |
13723 |
break |
13724 |
elif $ac_last_try; then |
13725 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13726 |
else |
13727 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
13728 |
fi |
13729 |
done |
13730 |
rm -f conf$$subs.sh |
13731 |
|
13732 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13733 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
13734 |
_ACEOF |
13735 |
sed -n ' |
13736 |
h |
13737 |
s/^/S["/; s/!.*/"]=/ |
13738 |
p |
13739 |
g |
13740 |
s/^[^!]*!// |
13741 |
:repl |
13742 |
t repl |
13743 |
s/'"$ac_delim"'$// |
13744 |
t delim |
13745 |
:nl |
13746 |
h |
13747 |
s/\(.\{148\}\)..*/\1/ |
13748 |
t more1 |
13749 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
13750 |
p |
13751 |
n |
13752 |
b repl |
13753 |
:more1 |
13754 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
13755 |
p |
13756 |
g |
13757 |
s/.\{148\}// |
13758 |
t nl |
13759 |
:delim |
13760 |
h |
13761 |
s/\(.\{148\}\)..*/\1/ |
13762 |
t more2 |
13763 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
13764 |
p |
13765 |
b |
13766 |
:more2 |
13767 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
13768 |
p |
13769 |
g |
13770 |
s/.\{148\}// |
13771 |
t delim |
13772 |
' <conf$$subs.awk | sed ' |
13773 |
/^[^""]/{ |
13774 |
N |
13775 |
s/\n// |
13776 |
} |
13777 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
13778 |
rm -f conf$$subs.awk |
13779 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13780 |
_ACAWK |
13781 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
13782 |
for (key in S) S_is_set[key] = 1 |
13783 |
FS = "" |
13784 |
|
13785 |
} |
13786 |
{ |
13787 |
line = $ 0 |
13788 |
nfields = split(line, field, "@") |
13789 |
substed = 0 |
13790 |
len = length(field[1]) |
13791 |
for (i = 2; i < nfields; i++) { |
13792 |
key = field[i] |
13793 |
keylen = length(key) |
13794 |
if (S_is_set[key]) { |
13795 |
value = S[key] |
13796 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
13797 |
len += length(value) + length(field[++i]) |
13798 |
substed = 1 |
13799 |
} else |
13800 |
len += 1 + keylen |
13801 |
} |
13802 |
|
13803 |
print line |
13804 |
} |
13805 |
|
13806 |
_ACAWK |
13807 |
_ACEOF |
13808 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13809 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
13810 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
13811 |
else |
13812 |
cat |
13813 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13814 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
13815 |
_ACEOF |
13816 |
|
13817 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13818 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
13819 |
# trailing colons and then remove the whole line if VPATH becomes empty |
13820 |
# (actually we leave an empty line to preserve line numbers). |
13821 |
if test "x$srcdir" = x.; then |
13822 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13823 |
h |
13824 |
s/// |
13825 |
s/^/:/ |
13826 |
s/[ ]*$/:/ |
13827 |
s/:\$(srcdir):/:/g |
13828 |
s/:\${srcdir}:/:/g |
13829 |
s/:@srcdir@:/:/g |
13830 |
s/^:*// |
13831 |
s/:*$// |
13832 |
x |
13833 |
s/\(=[ ]*\).*/\1/ |
13834 |
G |
13835 |
s/\n// |
13836 |
s/^[^=]*=[ ]*$// |
13837 |
}' |
13838 |
fi |
13839 |
|
13840 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13841 |
fi # test -n "$CONFIG_FILES" |
13842 |
|
13843 |
# Set up the scripts for CONFIG_HEADERS section. |
13844 |
# No need to generate them if there are no CONFIG_HEADERS. |
13845 |
# This happens for instance with `./config.status Makefile'. |
13846 |
if test -n "$CONFIG_HEADERS"; then |
13847 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
13848 |
BEGIN { |
13849 |
_ACEOF |
13850 |
|
13851 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
13852 |
# here-document in config.status, that substitutes the proper values into |
13853 |
# config.h.in to produce config.h. |
13854 |
|
13855 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
13856 |
# handling of long lines. |
13857 |
ac_delim='%!_!# ' |
13858 |
for ac_last_try in false false :; do |
13859 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13860 |
if test -z "$ac_tt"; then |
13861 |
break |
13862 |
elif $ac_last_try; then |
13863 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
13864 |
else |
13865 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
13866 |
fi |
13867 |
done |
13868 |
|
13869 |
# For the awk script, D is an array of macro values keyed by name, |
13870 |
# likewise P contains macro parameters if any. Preserve backslash |
13871 |
# newline sequences. |
13872 |
|
13873 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
13874 |
sed -n ' |
13875 |
s/.\{148\}/&'"$ac_delim"'/g |
13876 |
t rset |
13877 |
:rset |
13878 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
13879 |
t def |
13880 |
d |
13881 |
:def |
13882 |
s/\\$// |
13883 |
t bsnl |
13884 |
s/["\\]/\\&/g |
13885 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
13886 |
D["\1"]=" \3"/p |
13887 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
13888 |
d |
13889 |
:bsnl |
13890 |
s/["\\]/\\&/g |
13891 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
13892 |
D["\1"]=" \3\\\\\\n"\\/p |
13893 |
t cont |
13894 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
13895 |
t cont |
13896 |
d |
13897 |
:cont |
13898 |
n |
13899 |
s/.\{148\}/&'"$ac_delim"'/g |
13900 |
t clear |
13901 |
:clear |
13902 |
s/\\$// |
13903 |
t bsnlc |
13904 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
13905 |
d |
13906 |
:bsnlc |
13907 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
13908 |
b cont |
13909 |
' <confdefs.h | sed ' |
13910 |
s/'"$ac_delim"'/"\\\ |
13911 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
13912 |
|
13913 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13914 |
for (key in D) D_is_set[key] = 1 |
13915 |
FS = "" |
13916 |
} |
13917 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
13918 |
line = \$ 0 |
13919 |
split(line, arg, " ") |
13920 |
if (arg[1] == "#") { |
13921 |
defundef = arg[2] |
13922 |
mac1 = arg[3] |
13923 |
} else { |
13924 |
defundef = substr(arg[1], 2) |
13925 |
mac1 = arg[2] |
13926 |
} |
13927 |
split(mac1, mac2, "(") #) |
13928 |
macro = mac2[1] |
13929 |
prefix = substr(line, 1, index(line, defundef) - 1) |
13930 |
if (D_is_set[macro]) { |
13931 |
# Preserve the white space surrounding the "#". |
13932 |
print prefix "define", macro P[macro] D[macro] |
13933 |
next |
13934 |
} else { |
13935 |
# Replace #undef with comments. This is necessary, for example, |
13936 |
# in the case of _POSIX_SOURCE, which is predefined and required |
13937 |
# on some systems where configure will not decide to define it. |
13938 |
if (defundef == "undef") { |
13939 |
print "/*", prefix defundef, macro, "*/" |
13940 |
next |
13941 |
} |
13942 |
} |
13943 |
} |
13944 |
{ print } |
13945 |
_ACAWK |
13946 |
_ACEOF |
13947 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13948 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
13949 |
fi # test -n "$CONFIG_HEADERS" |
13950 |
|
13951 |
|
13952 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
13953 |
shift |
13954 |
for ac_tag |
13955 |
do |
13956 |
case $ac_tag in |
13957 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
13958 |
esac |
13959 |
case $ac_mode$ac_tag in |
13960 |
:[FHL]*:*);; |
13961 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
13962 |
:[FH]-) ac_tag=-:-;; |
13963 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
13964 |
esac |
13965 |
ac_save_IFS=$IFS |
13966 |
IFS=: |
13967 |
set x $ac_tag |
13968 |
IFS=$ac_save_IFS |
13969 |
shift |
13970 |
ac_file=$1 |
13971 |
shift |
13972 |
|
13973 |
case $ac_mode in |
13974 |
:L) ac_source=$1;; |
13975 |
:[FH]) |
13976 |
ac_file_inputs= |
13977 |
for ac_f |
13978 |
do |
13979 |
case $ac_f in |
13980 |
-) ac_f="$ac_tmp/stdin";; |
13981 |
*) # Look for the file first in the build tree, then in the source tree |
13982 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
13983 |
# because $ac_f cannot contain `:'. |
13984 |
test -f "$ac_f" || |
13985 |
case $ac_f in |
13986 |
[\\/$]*) false;; |
13987 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
13988 |
esac || |
13989 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
13990 |
esac |
13991 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
13992 |
as_fn_append ac_file_inputs " '$ac_f'" |
13993 |
done |
13994 |
|
13995 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
13996 |
# use $as_me), people would be surprised to read: |
13997 |
# /* config.h. Generated by config.status. */ |
13998 |
configure_input='Generated from '` |
13999 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
14000 |
`' by configure.' |
14001 |
if test x"$ac_file" != x-; then |
14002 |
configure_input="$ac_file. $configure_input" |
14003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
14004 |
$as_echo "$as_me: creating $ac_file" >&6;} |
14005 |
fi |
14006 |
# Neutralize special characters interpreted by sed in replacement strings. |
14007 |
case $configure_input in #( |
14008 |
*\&* | *\|* | *\\* ) |
14009 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
14010 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
14011 |
*) ac_sed_conf_input=$configure_input;; |
14012 |
esac |
14013 |
|
14014 |
case $ac_tag in |
14015 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14016 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
14017 |
esac |
14018 |
;; |
14019 |
esac |
14020 |
|
14021 |
ac_dir=`$as_dirname -- "$ac_file" || |
14022 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14023 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
14024 |
X"$ac_file" : 'X\(//\)$' \| \ |
14025 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
14026 |
$as_echo X"$ac_file" | |
14027 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14028 |
s//\1/ |
14029 |
q |
14030 |
} |
14031 |
/^X\(\/\/\)[^/].*/{ |
14032 |
s//\1/ |
14033 |
q |
14034 |
} |
14035 |
/^X\(\/\/\)$/{ |
14036 |
s//\1/ |
14037 |
q |
14038 |
} |
14039 |
/^X\(\/\).*/{ |
14040 |
s//\1/ |
14041 |
q |
14042 |
} |
14043 |
s/.*/./; q'` |
14044 |
as_dir="$ac_dir"; as_fn_mkdir_p |
14045 |
ac_builddir=. |
14046 |
|
14047 |
case "$ac_dir" in |
14048 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14049 |
*) |
14050 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
14051 |
# A ".." for each directory in $ac_dir_suffix. |
14052 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
14053 |
case $ac_top_builddir_sub in |
14054 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14055 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
14056 |
esac ;; |
14057 |
esac |
14058 |
ac_abs_top_builddir=$ac_pwd |
14059 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
14060 |
# for backward compatibility: |
14061 |
ac_top_builddir=$ac_top_build_prefix |
14062 |
|
14063 |
case $srcdir in |
14064 |
.) # We are building in place. |
14065 |
ac_srcdir=. |
14066 |
ac_top_srcdir=$ac_top_builddir_sub |
14067 |
ac_abs_top_srcdir=$ac_pwd ;; |
14068 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
14069 |
ac_srcdir=$srcdir$ac_dir_suffix; |
14070 |
ac_top_srcdir=$srcdir |
14071 |
ac_abs_top_srcdir=$srcdir ;; |
14072 |
*) # Relative name. |
14073 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
14074 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
14075 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
14076 |
esac |
14077 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
14078 |
|
14079 |
|
14080 |
case $ac_mode in |
14081 |
:F) |
14082 |
# |
14083 |
# CONFIG_FILE |
14084 |
# |
14085 |
|
14086 |
case $INSTALL in |
14087 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14088 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14089 |
esac |
14090 |
ac_MKDIR_P=$MKDIR_P |
14091 |
case $MKDIR_P in |
14092 |
[\\/$]* | ?:[\\/]* ) ;; |
14093 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
14094 |
esac |
14095 |
_ACEOF |
14096 |
|
14097 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14098 |
# If the template does not know about datarootdir, expand it. |
14099 |
# FIXME: This hack should be removed a few years after 2.60. |
14100 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
14101 |
ac_sed_dataroot=' |
14102 |
/datarootdir/ { |
14103 |
p |
14104 |
q |
14105 |
} |
14106 |
/@datadir@/p |
14107 |
/@docdir@/p |
14108 |
/@infodir@/p |
14109 |
/@localedir@/p |
14110 |
/@mandir@/p' |
14111 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14112 |
*datarootdir*) ac_datarootdir_seen=yes;; |
14113 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
14114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14115 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14116 |
_ACEOF |
14117 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14118 |
ac_datarootdir_hack=' |
14119 |
s&@datadir@&$datadir&g |
14120 |
s&@docdir@&$docdir&g |
14121 |
s&@infodir@&$infodir&g |
14122 |
s&@localedir@&$localedir&g |
14123 |
s&@mandir@&$mandir&g |
14124 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
14125 |
esac |
14126 |
_ACEOF |
14127 |
|
14128 |
# Neutralize VPATH when `$srcdir' = `.'. |
14129 |
# Shell code in configure.ac might set extrasub. |
14130 |
# FIXME: do we really want to maintain this feature? |
14131 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14132 |
ac_sed_extra="$ac_vpsub |
14133 |
$extrasub |
14134 |
_ACEOF |
14135 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14136 |
:t |
14137 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
14138 |
s|@configure_input@|$ac_sed_conf_input|;t t |
14139 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
14140 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
14141 |
s&@srcdir@&$ac_srcdir&;t t |
14142 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
14143 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
14144 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
14145 |
s&@builddir@&$ac_builddir&;t t |
14146 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
14147 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14148 |
s&@INSTALL@&$ac_INSTALL&;t t |
14149 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
14150 |
$ac_datarootdir_hack |
14151 |
" |
14152 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14153 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14154 |
|
14155 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14156 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14157 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
14158 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
14159 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14160 |
which seems to be undefined. Please make sure it is defined" >&5 |
14161 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14162 |
which seems to be undefined. Please make sure it is defined" >&2;} |
14163 |
|
14164 |
rm -f "$ac_tmp/stdin" |
14165 |
case $ac_file in |
14166 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14167 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
14168 |
esac \ |
14169 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14170 |
;; |
14171 |
:H) |
14172 |
# |
14173 |
# CONFIG_HEADER |
14174 |
# |
14175 |
if test x"$ac_file" != x-; then |
14176 |
{ |
14177 |
$as_echo "/* $configure_input */" \ |
14178 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14179 |
} >"$ac_tmp/config.h" \ |
14180 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14181 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
14182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
14183 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
14184 |
else |
14185 |
rm -f "$ac_file" |
14186 |
mv "$ac_tmp/config.h" "$ac_file" \ |
14187 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14188 |
fi |
14189 |
else |
14190 |
$as_echo "/* $configure_input */" \ |
14191 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
14192 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
14193 |
fi |
14194 |
# Compute "$ac_file"'s index in $config_headers. |
14195 |
_am_arg="$ac_file" |
14196 |
_am_stamp_count=1 |
14197 |
for _am_header in $config_headers :; do |
14198 |
case $_am_header in |
14199 |
$_am_arg | $_am_arg:* ) |
14200 |
break ;; |
14201 |
* ) |
14202 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
14203 |
esac |
14204 |
done |
14205 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
14206 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14207 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
14208 |
X"$_am_arg" : 'X\(//\)$' \| \ |
14209 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
14210 |
$as_echo X"$_am_arg" | |
14211 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14212 |
s//\1/ |
14213 |
q |
14214 |
} |
14215 |
/^X\(\/\/\)[^/].*/{ |
14216 |
s//\1/ |
14217 |
q |
14218 |
} |
14219 |
/^X\(\/\/\)$/{ |
14220 |
s//\1/ |
14221 |
q |
14222 |
} |
14223 |
/^X\(\/\).*/{ |
14224 |
s//\1/ |
14225 |
q |
14226 |
} |
14227 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
14228 |
;; |
14229 |
|
14230 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
14231 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
14232 |
;; |
14233 |
esac |
14234 |
|
14235 |
|
14236 |
case $ac_file$ac_mode in |
14237 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
14238 |
# Older Autoconf quotes --file arguments for eval, but not when files |
14239 |
# are listed without --file. Let's play safe and only enable the eval |
14240 |
# if we detect the quoting. |
14241 |
case $CONFIG_FILES in |
14242 |
*\'*) eval set x "$CONFIG_FILES" ;; |
14243 |
*) set x $CONFIG_FILES ;; |
14244 |
esac |
14245 |
shift |
14246 |
for mf |
14247 |
do |
14248 |
# Strip MF so we end up with the name of the file. |
14249 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
14250 |
# Check whether this is an Automake generated Makefile or not. |
14251 |
# We used to match only the files named 'Makefile.in', but |
14252 |
# some people rename them; so instead we look at the file content. |
14253 |
# Grep'ing the first line is not enough: some people post-process |
14254 |
# each Makefile.in and add a new line on top of each file to say so. |
14255 |
# Grep'ing the whole file is not good either: AIX grep has a line |
14256 |
# limit of 2048, but all sed's we know have understand at least 4000. |
14257 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
14258 |
dirpart=`$as_dirname -- "$mf" || |
14259 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14260 |
X"$mf" : 'X\(//\)[^/]' \| \ |
14261 |
X"$mf" : 'X\(//\)$' \| \ |
14262 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
14263 |
$as_echo X"$mf" | |
14264 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14265 |
s//\1/ |
14266 |
q |
14267 |
} |
14268 |
/^X\(\/\/\)[^/].*/{ |
14269 |
s//\1/ |
14270 |
q |
14271 |
} |
14272 |
/^X\(\/\/\)$/{ |
14273 |
s//\1/ |
14274 |
q |
14275 |
} |
14276 |
/^X\(\/\).*/{ |
14277 |
s//\1/ |
14278 |
q |
14279 |
} |
14280 |
s/.*/./; q'` |
14281 |
else |
14282 |
continue |
14283 |
fi |
14284 |
# Extract the definition of DEPDIR, am__include, and am__quote |
14285 |
# from the Makefile without running 'make'. |
14286 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14287 |
test -z "$DEPDIR" && continue |
14288 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
14289 |
test -z "$am__include" && continue |
14290 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
14291 |
# Find all dependency output files, they are included files with |
14292 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
14293 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
14294 |
# expansion. |
14295 |
for file in `sed -n " |
14296 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
14297 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
14298 |
# Make sure the directory exists. |
14299 |
test -f "$dirpart/$file" && continue |
14300 |
fdir=`$as_dirname -- "$file" || |
14301 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14302 |
X"$file" : 'X\(//\)[^/]' \| \ |
14303 |
X"$file" : 'X\(//\)$' \| \ |
14304 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14305 |
$as_echo X"$file" | |
14306 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14307 |
s//\1/ |
14308 |
q |
14309 |
} |
14310 |
/^X\(\/\/\)[^/].*/{ |
14311 |
s//\1/ |
14312 |
q |
14313 |
} |
14314 |
/^X\(\/\/\)$/{ |
14315 |
s//\1/ |
14316 |
q |
14317 |
} |
14318 |
/^X\(\/\).*/{ |
14319 |
s//\1/ |
14320 |
q |
14321 |
} |
14322 |
s/.*/./; q'` |
14323 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
14324 |
# echo "creating $dirpart/$file" |
14325 |
echo '# dummy' > "$dirpart/$file" |
14326 |
done |
14327 |
done |
14328 |
} |
14329 |
;; |
14330 |
"libtool":C) |
14331 |
|
14332 |
# See if we are running on zsh, and set the options that allow our |
14333 |
# commands through without removal of \ escapes. |
14334 |
if test -n "${ZSH_VERSION+set}"; then |
14335 |
setopt NO_GLOB_SUBST |
14336 |
fi |
14337 |
|
14338 |
cfgfile=${ofile}T |
14339 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14340 |
$RM "$cfgfile" |
14341 |
|
14342 |
cat <<_LT_EOF >> "$cfgfile" |
14343 |
#! $SHELL |
14344 |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
14345 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14346 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
14347 |
|
14348 |
# Provide generalized library-building support services. |
14349 |
# Written by Gordon Matzigkeit, 1996 |
14350 |
|
14351 |
# Copyright (C) 2014 Free Software Foundation, Inc. |
14352 |
# This is free software; see the source for copying conditions. There is NO |
14353 |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14354 |
|
14355 |
# GNU Libtool is free software; you can redistribute it and/or modify |
14356 |
# it under the terms of the GNU General Public License as published by |
14357 |
# the Free Software Foundation; either version 2 of of the License, or |
14358 |
# (at your option) any later version. |
14359 |
# |
14360 |
# As a special exception to the GNU General Public License, if you |
14361 |
# distribute this file as part of a program or library that is built |
14362 |
# using GNU Libtool, you may include this file under the same |
14363 |
# distribution terms that you use for the rest of that program. |
14364 |
# |
14365 |
# GNU Libtool is distributed in the hope that it will be useful, but |
14366 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
14367 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14368 |
# GNU General Public License for more details. |
14369 |
# |
14370 |
# You should have received a copy of the GNU General Public License |
14371 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
14372 |
|
14373 |
|
14374 |
# The names of the tagged configurations supported by this script. |
14375 |
available_tags='' |
14376 |
|
14377 |
# ### BEGIN LIBTOOL CONFIG |
14378 |
|
14379 |
# Which release of libtool.m4 was used? |
14380 |
macro_version=$macro_version |
14381 |
macro_revision=$macro_revision |
14382 |
|
14383 |
# Whether or not to build shared libraries. |
14384 |
build_libtool_libs=$enable_shared |
14385 |
|
14386 |
# Whether or not to build static libraries. |
14387 |
build_old_libs=$enable_static |
14388 |
|
14389 |
# What type of objects to build. |
14390 |
pic_mode=$pic_mode |
14391 |
|
14392 |
# Whether or not to optimize for fast installation. |
14393 |
fast_install=$enable_fast_install |
14394 |
|
14395 |
# Shared archive member basename,for filename based shared library versioning on AIX. |
14396 |
shared_archive_member_spec=$shared_archive_member_spec |
14397 |
|
14398 |
# Shell to use when invoking shell scripts. |
14399 |
SHELL=$lt_SHELL |
14400 |
|
14401 |
# An echo program that protects backslashes. |
14402 |
ECHO=$lt_ECHO |
14403 |
|
14404 |
# The PATH separator for the build system. |
14405 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
14406 |
|
14407 |
# The host system. |
14408 |
host_alias=$host_alias |
14409 |
host=$host |
14410 |
host_os=$host_os |
14411 |
|
14412 |
# The build system. |
14413 |
build_alias=$build_alias |
14414 |
build=$build |
14415 |
build_os=$build_os |
14416 |
|
14417 |
# A sed program that does not truncate output. |
14418 |
SED=$lt_SED |
14419 |
|
14420 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14421 |
Xsed="\$SED -e 1s/^X//" |
14422 |
|
14423 |
# A grep program that handles long lines. |
14424 |
GREP=$lt_GREP |
14425 |
|
14426 |
# An ERE matcher. |
14427 |
EGREP=$lt_EGREP |
14428 |
|
14429 |
# A literal string matcher. |
14430 |
FGREP=$lt_FGREP |
14431 |
|
14432 |
# A BSD- or MS-compatible name lister. |
14433 |
NM=$lt_NM |
14434 |
|
14435 |
# Whether we need soft or hard links. |
14436 |
LN_S=$lt_LN_S |
14437 |
|
14438 |
# What is the maximum length of a command? |
14439 |
max_cmd_len=$max_cmd_len |
14440 |
|
14441 |
# Object file suffix (normally "o"). |
14442 |
objext=$ac_objext |
14443 |
|
14444 |
# Executable file suffix (normally ""). |
14445 |
exeext=$exeext |
14446 |
|
14447 |
# whether the shell understands "unset". |
14448 |
lt_unset=$lt_unset |
14449 |
|
14450 |
# turn spaces into newlines. |
14451 |
SP2NL=$lt_lt_SP2NL |
14452 |
|
14453 |
# turn newlines into spaces. |
14454 |
NL2SP=$lt_lt_NL2SP |
14455 |
|
14456 |
# convert \$build file names to \$host format. |
14457 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
14458 |
|
14459 |
# convert \$build files to toolchain format. |
14460 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
14461 |
|
14462 |
# An object symbol dumper. |
14463 |
OBJDUMP=$lt_OBJDUMP |
14464 |
|
14465 |
# Method to check whether dependent libraries are shared objects. |
14466 |
deplibs_check_method=$lt_deplibs_check_method |
14467 |
|
14468 |
# Command to use when deplibs_check_method = "file_magic". |
14469 |
file_magic_cmd=$lt_file_magic_cmd |
14470 |
|
14471 |
# How to find potential files when deplibs_check_method = "file_magic". |
14472 |
file_magic_glob=$lt_file_magic_glob |
14473 |
|
14474 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
14475 |
want_nocaseglob=$lt_want_nocaseglob |
14476 |
|
14477 |
# DLL creation program. |
14478 |
DLLTOOL=$lt_DLLTOOL |
14479 |
|
14480 |
# Command to associate shared and link libraries. |
14481 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
14482 |
|
14483 |
# The archiver. |
14484 |
AR=$lt_AR |
14485 |
|
14486 |
# Flags to create an archive. |
14487 |
AR_FLAGS=$lt_AR_FLAGS |
14488 |
|
14489 |
# How to feed a file listing to the archiver. |
14490 |
archiver_list_spec=$lt_archiver_list_spec |
14491 |
|
14492 |
# A symbol stripping program. |
14493 |
STRIP=$lt_STRIP |
14494 |
|
14495 |
# Commands used to install an old-style archive. |
14496 |
RANLIB=$lt_RANLIB |
14497 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
14498 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
14499 |
|
14500 |
# Whether to use a lock for old archive extraction. |
14501 |
lock_old_archive_extraction=$lock_old_archive_extraction |
14502 |
|
14503 |
# A C compiler. |
14504 |
LTCC=$lt_CC |
14505 |
|
14506 |
# LTCC compiler flags. |
14507 |
LTCFLAGS=$lt_CFLAGS |
14508 |
|
14509 |
# Take the output of nm and produce a listing of raw symbols and C names. |
14510 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
14511 |
|
14512 |
# Transform the output of nm in a proper C declaration. |
14513 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
14514 |
|
14515 |
# Transform the output of nm into a list of symbols to manually relocate. |
14516 |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
14517 |
|
14518 |
# Transform the output of nm in a C name address pair. |
14519 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
14520 |
|
14521 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
14522 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
14523 |
|
14524 |
# The name lister interface. |
14525 |
nm_interface=$lt_lt_cv_nm_interface |
14526 |
|
14527 |
# Specify filename containing input files for \$NM. |
14528 |
nm_file_list_spec=$lt_nm_file_list_spec |
14529 |
|
14530 |
# The root where to search for dependent libraries,and where our libraries should be installed. |
14531 |
lt_sysroot=$lt_sysroot |
14532 |
|
14533 |
# Command to truncate a binary pipe. |
14534 |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
14535 |
|
14536 |
# The name of the directory that contains temporary libtool files. |
14537 |
objdir=$objdir |
14538 |
|
14539 |
# Used to examine libraries when file_magic_cmd begins with "file". |
14540 |
MAGIC_CMD=$MAGIC_CMD |
14541 |
|
14542 |
# Must we lock files when doing compilation? |
14543 |
need_locks=$lt_need_locks |
14544 |
|
14545 |
# Manifest tool. |
14546 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
14547 |
|
14548 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14549 |
DSYMUTIL=$lt_DSYMUTIL |
14550 |
|
14551 |
# Tool to change global to local symbols on Mac OS X. |
14552 |
NMEDIT=$lt_NMEDIT |
14553 |
|
14554 |
# Tool to manipulate fat objects and archives on Mac OS X. |
14555 |
LIPO=$lt_LIPO |
14556 |
|
14557 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14558 |
OTOOL=$lt_OTOOL |
14559 |
|
14560 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14561 |
OTOOL64=$lt_OTOOL64 |
14562 |
|
14563 |
# Old archive suffix (normally "a"). |
14564 |
libext=$libext |
14565 |
|
14566 |
# Shared library suffix (normally ".so"). |
14567 |
shrext_cmds=$lt_shrext_cmds |
14568 |
|
14569 |
# The commands to extract the exported symbol list from a shared archive. |
14570 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
14571 |
|
14572 |
# Variables whose values should be saved in libtool wrapper scripts and |
14573 |
# restored at link time. |
14574 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
14575 |
|
14576 |
# Do we need the "lib" prefix for modules? |
14577 |
need_lib_prefix=$need_lib_prefix |
14578 |
|
14579 |
# Do we need a version for libraries? |
14580 |
need_version=$need_version |
14581 |
|
14582 |
# Library versioning type. |
14583 |
version_type=$version_type |
14584 |
|
14585 |
# Shared library runtime path variable. |
14586 |
runpath_var=$runpath_var |
14587 |
|
14588 |
# Shared library path variable. |
14589 |
shlibpath_var=$shlibpath_var |
14590 |
|
14591 |
# Is shlibpath searched before the hard-coded library search path? |
14592 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
14593 |
|
14594 |
# Format of library name prefix. |
14595 |
libname_spec=$lt_libname_spec |
14596 |
|
14597 |
# List of archive names. First name is the real one, the rest are links. |
14598 |
# The last name is the one that the linker finds with -lNAME |
14599 |
library_names_spec=$lt_library_names_spec |
14600 |
|
14601 |
# The coded name of the library, if different from the real name. |
14602 |
soname_spec=$lt_soname_spec |
14603 |
|
14604 |
# Permission mode override for installation of shared libraries. |
14605 |
install_override_mode=$lt_install_override_mode |
14606 |
|
14607 |
# Command to use after installation of a shared archive. |
14608 |
postinstall_cmds=$lt_postinstall_cmds |
14609 |
|
14610 |
# Command to use after uninstallation of a shared archive. |
14611 |
postuninstall_cmds=$lt_postuninstall_cmds |
14612 |
|
14613 |
# Commands used to finish a libtool library installation in a directory. |
14614 |
finish_cmds=$lt_finish_cmds |
14615 |
|
14616 |
# As "finish_cmds", except a single script fragment to be evaled but |
14617 |
# not shown. |
14618 |
finish_eval=$lt_finish_eval |
14619 |
|
14620 |
# Whether we should hardcode library paths into libraries. |
14621 |
hardcode_into_libs=$hardcode_into_libs |
14622 |
|
14623 |
# Compile-time system search path for libraries. |
14624 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
14625 |
|
14626 |
# Run-time system search path for libraries. |
14627 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
14628 |
|
14629 |
# Whether dlopen is supported. |
14630 |
dlopen_support=$enable_dlopen |
14631 |
|
14632 |
# Whether dlopen of programs is supported. |
14633 |
dlopen_self=$enable_dlopen_self |
14634 |
|
14635 |
# Whether dlopen of statically linked programs is supported. |
14636 |
dlopen_self_static=$enable_dlopen_self_static |
14637 |
|
14638 |
# Commands to strip libraries. |
14639 |
old_striplib=$lt_old_striplib |
14640 |
striplib=$lt_striplib |
14641 |
|
14642 |
|
14643 |
# The linker used to build libraries. |
14644 |
LD=$lt_LD |
14645 |
|
14646 |
# How to create reloadable object files. |
14647 |
reload_flag=$lt_reload_flag |
14648 |
reload_cmds=$lt_reload_cmds |
14649 |
|
14650 |
# Commands used to build an old-style archive. |
14651 |
old_archive_cmds=$lt_old_archive_cmds |
14652 |
|
14653 |
# A language specific compiler. |
14654 |
CC=$lt_compiler |
14655 |
|
14656 |
# Is the compiler the GNU compiler? |
14657 |
with_gcc=$GCC |
14658 |
|
14659 |
# Compiler flag to turn off builtin functions. |
14660 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
14661 |
|
14662 |
# Additional compiler flags for building library objects. |
14663 |
pic_flag=$lt_lt_prog_compiler_pic |
14664 |
|
14665 |
# How to pass a linker flag through the compiler. |
14666 |
wl=$lt_lt_prog_compiler_wl |
14667 |
|
14668 |
# Compiler flag to prevent dynamic linking. |
14669 |
link_static_flag=$lt_lt_prog_compiler_static |
14670 |
|
14671 |
# Does compiler simultaneously support -c and -o options? |
14672 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
14673 |
|
14674 |
# Whether or not to add -lc for building shared libraries. |
14675 |
build_libtool_need_lc=$archive_cmds_need_lc |
14676 |
|
14677 |
# Whether or not to disallow shared libs when runtime libs are static. |
14678 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
14679 |
|
14680 |
# Compiler flag to allow reflexive dlopens. |
14681 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
14682 |
|
14683 |
# Compiler flag to generate shared objects directly from archives. |
14684 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
14685 |
|
14686 |
# Whether the compiler copes with passing no objects directly. |
14687 |
compiler_needs_object=$lt_compiler_needs_object |
14688 |
|
14689 |
# Create an old-style archive from a shared archive. |
14690 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
14691 |
|
14692 |
# Create a temporary old-style archive to link instead of a shared archive. |
14693 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
14694 |
|
14695 |
# Commands used to build a shared archive. |
14696 |
archive_cmds=$lt_archive_cmds |
14697 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
14698 |
|
14699 |
# Commands used to build a loadable module if different from building |
14700 |
# a shared archive. |
14701 |
module_cmds=$lt_module_cmds |
14702 |
module_expsym_cmds=$lt_module_expsym_cmds |
14703 |
|
14704 |
# Whether we are building with GNU ld or not. |
14705 |
with_gnu_ld=$lt_with_gnu_ld |
14706 |
|
14707 |
# Flag that allows shared libraries with undefined symbols to be built. |
14708 |
allow_undefined_flag=$lt_allow_undefined_flag |
14709 |
|
14710 |
# Flag that enforces no undefined symbols. |
14711 |
no_undefined_flag=$lt_no_undefined_flag |
14712 |
|
14713 |
# Flag to hardcode \$libdir into a binary during linking. |
14714 |
# This must work even if \$libdir does not exist |
14715 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
14716 |
|
14717 |
# Whether we need a single "-rpath" flag with a separated argument. |
14718 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
14719 |
|
14720 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
14721 |
# DIR into the resulting binary. |
14722 |
hardcode_direct=$hardcode_direct |
14723 |
|
14724 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
14725 |
# DIR into the resulting binary and the resulting library dependency is |
14726 |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
14727 |
# library is relocated. |
14728 |
hardcode_direct_absolute=$hardcode_direct_absolute |
14729 |
|
14730 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14731 |
# into the resulting binary. |
14732 |
hardcode_minus_L=$hardcode_minus_L |
14733 |
|
14734 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14735 |
# into the resulting binary. |
14736 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
14737 |
|
14738 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
14739 |
# into the library and all subsequent libraries and executables linked |
14740 |
# against it. |
14741 |
hardcode_automatic=$hardcode_automatic |
14742 |
|
14743 |
# Set to yes if linker adds runtime paths of dependent libraries |
14744 |
# to runtime path list. |
14745 |
inherit_rpath=$inherit_rpath |
14746 |
|
14747 |
# Whether libtool must link a program against all its dependency libraries. |
14748 |
link_all_deplibs=$link_all_deplibs |
14749 |
|
14750 |
# Set to "yes" if exported symbols are required. |
14751 |
always_export_symbols=$always_export_symbols |
14752 |
|
14753 |
# The commands to list exported symbols. |
14754 |
export_symbols_cmds=$lt_export_symbols_cmds |
14755 |
|
14756 |
# Symbols that should not be listed in the preloaded symbols. |
14757 |
exclude_expsyms=$lt_exclude_expsyms |
14758 |
|
14759 |
# Symbols that must always be exported. |
14760 |
include_expsyms=$lt_include_expsyms |
14761 |
|
14762 |
# Commands necessary for linking programs (against libraries) with templates. |
14763 |
prelink_cmds=$lt_prelink_cmds |
14764 |
|
14765 |
# Commands necessary for finishing linking programs. |
14766 |
postlink_cmds=$lt_postlink_cmds |
14767 |
|
14768 |
# Specify filename containing input files. |
14769 |
file_list_spec=$lt_file_list_spec |
14770 |
|
14771 |
# How to hardcode a shared library path into an executable. |
14772 |
hardcode_action=$hardcode_action |
14773 |
|
14774 |
# ### END LIBTOOL CONFIG |
14775 |
|
14776 |
_LT_EOF |
14777 |
|
14778 |
case $host_os in |
14779 |
aix3*) |
14780 |
cat <<\_LT_EOF >> "$cfgfile" |
14781 |
# AIX sometimes has problems with the GCC collect2 program. For some |
14782 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
14783 |
# vanish in a puff of smoke. |
14784 |
if test set != "${COLLECT_NAMES+set}"; then |
14785 |
COLLECT_NAMES= |
14786 |
export COLLECT_NAMES |
14787 |
fi |
14788 |
_LT_EOF |
14789 |
;; |
14790 |
esac |
14791 |
|
14792 |
|
14793 |
ltmain=$ac_aux_dir/ltmain.sh |
14794 |
|
14795 |
|
14796 |
# We use sed instead of cat because bash on DJGPP gets confused if |
14797 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
14798 |
# text mode, it properly converts lines to CR/LF. This bash problem |
14799 |
# is reportedly fixed, but why not run on old versions too? |
14800 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
14801 |
|| (rm -f "$cfgfile"; exit 1) |
14802 |
|
14803 |
mv -f "$cfgfile" "$ofile" || |
14804 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14805 |
chmod +x "$ofile" |
14806 |
|
14807 |
;; |
14808 |
|
14809 |
esac |
14810 |
done # for ac_tag |
14811 |
|
14812 |
|
14813 |
as_fn_exit 0 |
14814 |
_ACEOF |
14815 |
ac_clean_files=$ac_clean_files_save |
14816 |
|
14817 |
test $ac_write_fail = 0 || |
14818 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
14819 |
|
14820 |
|
14821 |
# configure is writing to config.log, and then calls config.status. |
14822 |
# config.status does its own redirection, appending to config.log. |
14823 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
14824 |
# by configure, so config.status won't be able to write to it; its |
14825 |
# output is simply discarded. So we exec the FD to /dev/null, |
14826 |
# effectively closing config.log, so it can be properly (re)opened and |
14827 |
# appended to by config.status. When coming back to configure, we |
14828 |
# need to make the FD available again. |
14829 |
if test "$no_create" != yes; then |
14830 |
ac_cs_success=: |
14831 |
ac_config_status_args= |
14832 |
test "$silent" = yes && |
14833 |
ac_config_status_args="$ac_config_status_args --quiet" |
14834 |
exec 5>/dev/null |
14835 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
14836 |
exec 5>>config.log |
14837 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
14838 |
# would make configure fail if this is the last instruction. |
14839 |
$ac_cs_success || as_fn_exit 1 |
14840 |
fi |
14841 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
14842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
14843 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14844 |
fi |
14845 |
|
14846 |
|
14847 |
|
14848 |
echo "###############################################################################" |
14849 |
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile." |
14850 |
echo |
14851 |
echo "HOPM will be installed in ${prefix}. To change this, run:" |
14852 |
echo " ./configure --prefix=DIRECTORY" |
14853 |
echo "###############################################################################" |