1 |
#! /bin/sh |
2 |
# From configure.ac Id: configure.ac 1302 2012-03-21 17:48:54Z michael . |
3 |
# Guess values for system-dependent variables and create Makefiles. |
4 |
# Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1. |
5 |
# |
6 |
# Report bugs to <bugs@ircd-hybrid.org>. |
7 |
# |
8 |
# |
9 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
10 |
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
11 |
# Foundation, Inc. |
12 |
# |
13 |
# |
14 |
# This configure script is free software; the Free Software Foundation |
15 |
# gives unlimited permission to copy, distribute and modify it. |
16 |
## -------------------- ## |
17 |
## M4sh Initialization. ## |
18 |
## -------------------- ## |
19 |
|
20 |
# Be more Bourne compatible |
21 |
DUALCASE=1; export DUALCASE # for MKS sh |
22 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
23 |
emulate sh |
24 |
NULLCMD=: |
25 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
26 |
# is contrary to our usage. Disable this feature. |
27 |
alias -g '${1+"$@"}'='"$@"' |
28 |
setopt NO_GLOB_SUBST |
29 |
else |
30 |
case `(set -o) 2>/dev/null` in #( |
31 |
*posix*) : |
32 |
set -o posix ;; #( |
33 |
*) : |
34 |
;; |
35 |
esac |
36 |
fi |
37 |
|
38 |
|
39 |
as_nl=' |
40 |
' |
41 |
export as_nl |
42 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
43 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
44 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
45 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
46 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
47 |
# but without wasting forks for bash or zsh. |
48 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
49 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
50 |
as_echo='print -r --' |
51 |
as_echo_n='print -rn --' |
52 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
53 |
as_echo='printf %s\n' |
54 |
as_echo_n='printf %s' |
55 |
else |
56 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
57 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
58 |
as_echo_n='/usr/ucb/echo -n' |
59 |
else |
60 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
61 |
as_echo_n_body='eval |
62 |
arg=$1; |
63 |
case $arg in #( |
64 |
*"$as_nl"*) |
65 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
66 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
67 |
esac; |
68 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
69 |
' |
70 |
export as_echo_n_body |
71 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
72 |
fi |
73 |
export as_echo_body |
74 |
as_echo='sh -c $as_echo_body as_echo' |
75 |
fi |
76 |
|
77 |
# The user is always right. |
78 |
if test "${PATH_SEPARATOR+set}" != set; then |
79 |
PATH_SEPARATOR=: |
80 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
81 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
82 |
PATH_SEPARATOR=';' |
83 |
} |
84 |
fi |
85 |
|
86 |
|
87 |
# IFS |
88 |
# We need space, tab and new line, in precisely that order. Quoting is |
89 |
# there to prevent editors from complaining about space-tab. |
90 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
91 |
# splitting by setting IFS to empty value.) |
92 |
IFS=" "" $as_nl" |
93 |
|
94 |
# Find who we are. Look in the path if we contain no directory separator. |
95 |
as_myself= |
96 |
case $0 in #(( |
97 |
*[\\/]* ) as_myself=$0 ;; |
98 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
99 |
for as_dir in $PATH |
100 |
do |
101 |
IFS=$as_save_IFS |
102 |
test -z "$as_dir" && as_dir=. |
103 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
104 |
done |
105 |
IFS=$as_save_IFS |
106 |
|
107 |
;; |
108 |
esac |
109 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
110 |
# in which case we are not to be found in the path. |
111 |
if test "x$as_myself" = x; then |
112 |
as_myself=$0 |
113 |
fi |
114 |
if test ! -f "$as_myself"; then |
115 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
116 |
exit 1 |
117 |
fi |
118 |
|
119 |
# Unset variables that we do not need and which cause bugs (e.g. in |
120 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
121 |
# suppresses any "Segmentation fault" message there. '((' could |
122 |
# trigger a bug in pdksh 5.2.14. |
123 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
124 |
do eval test x\${$as_var+set} = xset \ |
125 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
126 |
done |
127 |
PS1='$ ' |
128 |
PS2='> ' |
129 |
PS4='+ ' |
130 |
|
131 |
# NLS nuisances. |
132 |
LC_ALL=C |
133 |
export LC_ALL |
134 |
LANGUAGE=C |
135 |
export LANGUAGE |
136 |
|
137 |
# CDPATH. |
138 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
139 |
|
140 |
if test "x$CONFIG_SHELL" = x; then |
141 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
142 |
emulate sh |
143 |
NULLCMD=: |
144 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
145 |
# is contrary to our usage. Disable this feature. |
146 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
147 |
setopt NO_GLOB_SUBST |
148 |
else |
149 |
case \`(set -o) 2>/dev/null\` in #( |
150 |
*posix*) : |
151 |
set -o posix ;; #( |
152 |
*) : |
153 |
;; |
154 |
esac |
155 |
fi |
156 |
" |
157 |
as_required="as_fn_return () { (exit \$1); } |
158 |
as_fn_success () { as_fn_return 0; } |
159 |
as_fn_failure () { as_fn_return 1; } |
160 |
as_fn_ret_success () { return 0; } |
161 |
as_fn_ret_failure () { return 1; } |
162 |
|
163 |
exitcode=0 |
164 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
165 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
166 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
167 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
168 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
169 |
|
170 |
else |
171 |
exitcode=1; echo positional parameters were not saved. |
172 |
fi |
173 |
test x\$exitcode = x0 || exit 1" |
174 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
175 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
176 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
177 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
178 |
|
179 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
180 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
181 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
182 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
183 |
PATH=/empty FPATH=/empty; export PATH FPATH |
184 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
185 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
186 |
test \$(( 1 + 1 )) = 2 || exit 1" |
187 |
if (eval "$as_required") 2>/dev/null; then : |
188 |
as_have_required=yes |
189 |
else |
190 |
as_have_required=no |
191 |
fi |
192 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
193 |
|
194 |
else |
195 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
196 |
as_found=false |
197 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
198 |
do |
199 |
IFS=$as_save_IFS |
200 |
test -z "$as_dir" && as_dir=. |
201 |
as_found=: |
202 |
case $as_dir in #( |
203 |
/*) |
204 |
for as_base in sh bash ksh sh5; do |
205 |
# Try only shells that exist, to save several forks. |
206 |
as_shell=$as_dir/$as_base |
207 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
208 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
209 |
CONFIG_SHELL=$as_shell as_have_required=yes |
210 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
211 |
break 2 |
212 |
fi |
213 |
fi |
214 |
done;; |
215 |
esac |
216 |
as_found=false |
217 |
done |
218 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
219 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
220 |
CONFIG_SHELL=$SHELL as_have_required=yes |
221 |
fi; } |
222 |
IFS=$as_save_IFS |
223 |
|
224 |
|
225 |
if test "x$CONFIG_SHELL" != x; then : |
226 |
# We cannot yet assume a decent shell, so we have to provide a |
227 |
# neutralization value for shells without unset; and this also |
228 |
# works around shells that cannot unset nonexistent variables. |
229 |
# Preserve -v and -x to the replacement shell. |
230 |
BASH_ENV=/dev/null |
231 |
ENV=/dev/null |
232 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
233 |
export CONFIG_SHELL |
234 |
case $- in # (((( |
235 |
*v*x* | *x*v* ) as_opts=-vx ;; |
236 |
*v* ) as_opts=-v ;; |
237 |
*x* ) as_opts=-x ;; |
238 |
* ) as_opts= ;; |
239 |
esac |
240 |
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
241 |
fi |
242 |
|
243 |
if test x$as_have_required = xno; then : |
244 |
$as_echo "$0: This script requires a shell more modern than all" |
245 |
$as_echo "$0: the shells that I found on your system." |
246 |
if test x${ZSH_VERSION+set} = xset ; then |
247 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
248 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
249 |
else |
250 |
$as_echo "$0: Please tell bug-autoconf@gnu.org and |
251 |
$0: bugs@ircd-hybrid.org about your system, including any |
252 |
$0: error possibly output before this message. Then install |
253 |
$0: a modern shell, or manually run the script under such a |
254 |
$0: shell if you do have one." |
255 |
fi |
256 |
exit 1 |
257 |
fi |
258 |
fi |
259 |
fi |
260 |
SHELL=${CONFIG_SHELL-/bin/sh} |
261 |
export SHELL |
262 |
# Unset more variables known to interfere with behavior of common tools. |
263 |
CLICOLOR_FORCE= GREP_OPTIONS= |
264 |
unset CLICOLOR_FORCE GREP_OPTIONS |
265 |
|
266 |
## --------------------- ## |
267 |
## M4sh Shell Functions. ## |
268 |
## --------------------- ## |
269 |
# as_fn_unset VAR |
270 |
# --------------- |
271 |
# Portably unset VAR. |
272 |
as_fn_unset () |
273 |
{ |
274 |
{ eval $1=; unset $1;} |
275 |
} |
276 |
as_unset=as_fn_unset |
277 |
|
278 |
# as_fn_set_status STATUS |
279 |
# ----------------------- |
280 |
# Set $? to STATUS, without forking. |
281 |
as_fn_set_status () |
282 |
{ |
283 |
return $1 |
284 |
} # as_fn_set_status |
285 |
|
286 |
# as_fn_exit STATUS |
287 |
# ----------------- |
288 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
289 |
as_fn_exit () |
290 |
{ |
291 |
set +e |
292 |
as_fn_set_status $1 |
293 |
exit $1 |
294 |
} # as_fn_exit |
295 |
|
296 |
# as_fn_mkdir_p |
297 |
# ------------- |
298 |
# Create "$as_dir" as a directory, including parents if necessary. |
299 |
as_fn_mkdir_p () |
300 |
{ |
301 |
|
302 |
case $as_dir in #( |
303 |
-*) as_dir=./$as_dir;; |
304 |
esac |
305 |
test -d "$as_dir" || eval $as_mkdir_p || { |
306 |
as_dirs= |
307 |
while :; do |
308 |
case $as_dir in #( |
309 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
310 |
*) as_qdir=$as_dir;; |
311 |
esac |
312 |
as_dirs="'$as_qdir' $as_dirs" |
313 |
as_dir=`$as_dirname -- "$as_dir" || |
314 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
315 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
316 |
X"$as_dir" : 'X\(//\)$' \| \ |
317 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
318 |
$as_echo X"$as_dir" | |
319 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
320 |
s//\1/ |
321 |
q |
322 |
} |
323 |
/^X\(\/\/\)[^/].*/{ |
324 |
s//\1/ |
325 |
q |
326 |
} |
327 |
/^X\(\/\/\)$/{ |
328 |
s//\1/ |
329 |
q |
330 |
} |
331 |
/^X\(\/\).*/{ |
332 |
s//\1/ |
333 |
q |
334 |
} |
335 |
s/.*/./; q'` |
336 |
test -d "$as_dir" && break |
337 |
done |
338 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
339 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
340 |
|
341 |
|
342 |
} # as_fn_mkdir_p |
343 |
# as_fn_append VAR VALUE |
344 |
# ---------------------- |
345 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
346 |
# advantage of any shell optimizations that allow amortized linear growth over |
347 |
# repeated appends, instead of the typical quadratic growth present in naive |
348 |
# implementations. |
349 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
350 |
eval 'as_fn_append () |
351 |
{ |
352 |
eval $1+=\$2 |
353 |
}' |
354 |
else |
355 |
as_fn_append () |
356 |
{ |
357 |
eval $1=\$$1\$2 |
358 |
} |
359 |
fi # as_fn_append |
360 |
|
361 |
# as_fn_arith ARG... |
362 |
# ------------------ |
363 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
364 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
365 |
# must be portable across $(()) and expr. |
366 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
367 |
eval 'as_fn_arith () |
368 |
{ |
369 |
as_val=$(( $* )) |
370 |
}' |
371 |
else |
372 |
as_fn_arith () |
373 |
{ |
374 |
as_val=`expr "$@" || test $? -eq 1` |
375 |
} |
376 |
fi # as_fn_arith |
377 |
|
378 |
|
379 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
380 |
# ---------------------------------------- |
381 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
382 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
383 |
# script with STATUS, using 1 if that was 0. |
384 |
as_fn_error () |
385 |
{ |
386 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
387 |
if test "$4"; then |
388 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
389 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
390 |
fi |
391 |
$as_echo "$as_me: error: $2" >&2 |
392 |
as_fn_exit $as_status |
393 |
} # as_fn_error |
394 |
|
395 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
396 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
397 |
as_expr=expr |
398 |
else |
399 |
as_expr=false |
400 |
fi |
401 |
|
402 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
403 |
as_basename=basename |
404 |
else |
405 |
as_basename=false |
406 |
fi |
407 |
|
408 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
409 |
as_dirname=dirname |
410 |
else |
411 |
as_dirname=false |
412 |
fi |
413 |
|
414 |
as_me=`$as_basename -- "$0" || |
415 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
416 |
X"$0" : 'X\(//\)$' \| \ |
417 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
418 |
$as_echo X/"$0" | |
419 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
420 |
s//\1/ |
421 |
q |
422 |
} |
423 |
/^X\/\(\/\/\)$/{ |
424 |
s//\1/ |
425 |
q |
426 |
} |
427 |
/^X\/\(\/\).*/{ |
428 |
s//\1/ |
429 |
q |
430 |
} |
431 |
s/.*/./; q'` |
432 |
|
433 |
# Avoid depending upon Character Ranges. |
434 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
435 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
436 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
437 |
as_cr_digits='0123456789' |
438 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
439 |
|
440 |
|
441 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
442 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
443 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
444 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
445 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
446 |
sed -n ' |
447 |
p |
448 |
/[$]LINENO/= |
449 |
' <$as_myself | |
450 |
sed ' |
451 |
s/[$]LINENO.*/&-/ |
452 |
t lineno |
453 |
b |
454 |
:lineno |
455 |
N |
456 |
:loop |
457 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
458 |
t loop |
459 |
s/-\n.*// |
460 |
' >$as_me.lineno && |
461 |
chmod +x "$as_me.lineno" || |
462 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
463 |
|
464 |
# Don't try to exec as it changes $[0], causing all sort of problems |
465 |
# (the dirname of $[0] is not the place where we might find the |
466 |
# original and so on. Autoconf is especially sensitive to this). |
467 |
. "./$as_me.lineno" |
468 |
# Exit status is that of the last command. |
469 |
exit |
470 |
} |
471 |
|
472 |
ECHO_C= ECHO_N= ECHO_T= |
473 |
case `echo -n x` in #((((( |
474 |
-n*) |
475 |
case `echo 'xy\c'` in |
476 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
477 |
xy) ECHO_C='\c';; |
478 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
479 |
ECHO_T=' ';; |
480 |
esac;; |
481 |
*) |
482 |
ECHO_N='-n';; |
483 |
esac |
484 |
|
485 |
rm -f conf$$ conf$$.exe conf$$.file |
486 |
if test -d conf$$.dir; then |
487 |
rm -f conf$$.dir/conf$$.file |
488 |
else |
489 |
rm -f conf$$.dir |
490 |
mkdir conf$$.dir 2>/dev/null |
491 |
fi |
492 |
if (echo >conf$$.file) 2>/dev/null; then |
493 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
494 |
as_ln_s='ln -s' |
495 |
# ... but there are two gotchas: |
496 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
497 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
498 |
# In both cases, we have to default to `cp -p'. |
499 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
500 |
as_ln_s='cp -p' |
501 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
502 |
as_ln_s=ln |
503 |
else |
504 |
as_ln_s='cp -p' |
505 |
fi |
506 |
else |
507 |
as_ln_s='cp -p' |
508 |
fi |
509 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
510 |
rmdir conf$$.dir 2>/dev/null |
511 |
|
512 |
if mkdir -p . 2>/dev/null; then |
513 |
as_mkdir_p='mkdir -p "$as_dir"' |
514 |
else |
515 |
test -d ./-p && rmdir ./-p |
516 |
as_mkdir_p=false |
517 |
fi |
518 |
|
519 |
if test -x / >/dev/null 2>&1; then |
520 |
as_test_x='test -x' |
521 |
else |
522 |
if ls -dL / >/dev/null 2>&1; then |
523 |
as_ls_L_option=L |
524 |
else |
525 |
as_ls_L_option= |
526 |
fi |
527 |
as_test_x=' |
528 |
eval sh -c '\'' |
529 |
if test -d "$1"; then |
530 |
test -d "$1/."; |
531 |
else |
532 |
case $1 in #( |
533 |
-*)set "./$1";; |
534 |
esac; |
535 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
536 |
???[sx]*):;;*)false;;esac;fi |
537 |
'\'' sh |
538 |
' |
539 |
fi |
540 |
as_executable_p=$as_test_x |
541 |
|
542 |
# Sed expression to map a string onto a valid CPP name. |
543 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
544 |
|
545 |
# Sed expression to map a string onto a valid variable name. |
546 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
547 |
|
548 |
lt_ltdl_dir='libltdl' |
549 |
|
550 |
SHELL=${CONFIG_SHELL-/bin/sh} |
551 |
|
552 |
|
553 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
554 |
exec 6>&1 |
555 |
|
556 |
# Name of the host. |
557 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
558 |
# so uname gets run too. |
559 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
560 |
|
561 |
# |
562 |
# Initializations. |
563 |
# |
564 |
ac_default_prefix=/usr/local |
565 |
ac_clean_files= |
566 |
ac_config_libobj_dir=. |
567 |
LIBOBJS= |
568 |
cross_compiling=no |
569 |
subdirs= |
570 |
MFLAGS= |
571 |
MAKEFLAGS= |
572 |
|
573 |
# Identity of this package. |
574 |
PACKAGE_NAME='ircd-hybrid' |
575 |
PACKAGE_TARNAME='ircd-hybrid' |
576 |
PACKAGE_VERSION='8beta1' |
577 |
PACKAGE_STRING='ircd-hybrid 8beta1' |
578 |
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
579 |
PACKAGE_URL='' |
580 |
|
581 |
ac_unique_file="src/ircd.c" |
582 |
# Factoring default headers for most tests. |
583 |
ac_includes_default="\ |
584 |
#include <stdio.h> |
585 |
#ifdef HAVE_SYS_TYPES_H |
586 |
# include <sys/types.h> |
587 |
#endif |
588 |
#ifdef HAVE_SYS_STAT_H |
589 |
# include <sys/stat.h> |
590 |
#endif |
591 |
#ifdef STDC_HEADERS |
592 |
# include <stdlib.h> |
593 |
# include <stddef.h> |
594 |
#else |
595 |
# ifdef HAVE_STDLIB_H |
596 |
# include <stdlib.h> |
597 |
# endif |
598 |
#endif |
599 |
#ifdef HAVE_STRING_H |
600 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
601 |
# include <memory.h> |
602 |
# endif |
603 |
# include <string.h> |
604 |
#endif |
605 |
#ifdef HAVE_STRINGS_H |
606 |
# include <strings.h> |
607 |
#endif |
608 |
#ifdef HAVE_INTTYPES_H |
609 |
# include <inttypes.h> |
610 |
#endif |
611 |
#ifdef HAVE_STDINT_H |
612 |
# include <stdint.h> |
613 |
#endif |
614 |
#ifdef HAVE_UNISTD_H |
615 |
# include <unistd.h> |
616 |
#endif" |
617 |
|
618 |
ac_func_list= |
619 |
ac_header_list= |
620 |
ac_subst_vars='ltdl_LTLIBOBJS |
621 |
ltdl_LIBOBJS |
622 |
am__EXEEXT_FALSE |
623 |
am__EXEEXT_TRUE |
624 |
LTLIBOBJS |
625 |
LIBOBJS |
626 |
LOCALSTATEDIR |
627 |
DATADIR |
628 |
LIBDIR |
629 |
SYSCONFDIR |
630 |
PREFIX |
631 |
EFNET_FALSE |
632 |
EFNET_TRUE |
633 |
ENABLE_SSL_FALSE |
634 |
ENABLE_SSL_TRUE |
635 |
ENABLE_PCRE_FALSE |
636 |
ENABLE_PCRE_TRUE |
637 |
LTDLOPEN |
638 |
LT_CONFIG_H |
639 |
CONVENIENCE_LTDL_FALSE |
640 |
CONVENIENCE_LTDL_TRUE |
641 |
INSTALL_LTDL_FALSE |
642 |
INSTALL_LTDL_TRUE |
643 |
ARGZ_H |
644 |
sys_symbol_underscore |
645 |
LIBADD_DL |
646 |
LT_DLPREOPEN |
647 |
LIBADD_DLD_LINK |
648 |
LIBADD_SHL_LOAD |
649 |
LIBADD_DLOPEN |
650 |
LT_DLLOADERS |
651 |
INCLTDL |
652 |
LTDLINCL |
653 |
LTDLDEPS |
654 |
LIBLTDL |
655 |
CPP |
656 |
OTOOL64 |
657 |
OTOOL |
658 |
LIPO |
659 |
NMEDIT |
660 |
DSYMUTIL |
661 |
MANIFEST_TOOL |
662 |
RANLIB |
663 |
ac_ct_AR |
664 |
AR |
665 |
DLLTOOL |
666 |
OBJDUMP |
667 |
LN_S |
668 |
NM |
669 |
ac_ct_DUMPBIN |
670 |
DUMPBIN |
671 |
LD |
672 |
FGREP |
673 |
EGREP |
674 |
GREP |
675 |
SED |
676 |
host_os |
677 |
host_vendor |
678 |
host_cpu |
679 |
host |
680 |
build_os |
681 |
build_vendor |
682 |
build_cpu |
683 |
build |
684 |
LIBTOOL |
685 |
LEXLIB |
686 |
LEX_OUTPUT_ROOT |
687 |
LEX |
688 |
YFLAGS |
689 |
YACC |
690 |
am__fastdepCC_FALSE |
691 |
am__fastdepCC_TRUE |
692 |
CCDEPMODE |
693 |
am__nodep |
694 |
AMDEPBACKSLASH |
695 |
AMDEP_FALSE |
696 |
AMDEP_TRUE |
697 |
am__quote |
698 |
am__include |
699 |
DEPDIR |
700 |
OBJEXT |
701 |
EXEEXT |
702 |
ac_ct_CC |
703 |
CPPFLAGS |
704 |
LDFLAGS |
705 |
CFLAGS |
706 |
CC |
707 |
MAINT |
708 |
MAINTAINER_MODE_FALSE |
709 |
MAINTAINER_MODE_TRUE |
710 |
am__untar |
711 |
am__tar |
712 |
AMTAR |
713 |
am__leading_dot |
714 |
SET_MAKE |
715 |
AWK |
716 |
mkdir_p |
717 |
MKDIR_P |
718 |
INSTALL_STRIP_PROGRAM |
719 |
STRIP |
720 |
install_sh |
721 |
MAKEINFO |
722 |
AUTOHEADER |
723 |
AUTOMAKE |
724 |
AUTOCONF |
725 |
ACLOCAL |
726 |
VERSION |
727 |
PACKAGE |
728 |
CYGPATH_W |
729 |
am__isrc |
730 |
INSTALL_DATA |
731 |
INSTALL_SCRIPT |
732 |
INSTALL_PROGRAM |
733 |
target_alias |
734 |
host_alias |
735 |
build_alias |
736 |
LIBS |
737 |
ECHO_T |
738 |
ECHO_N |
739 |
ECHO_C |
740 |
DEFS |
741 |
mandir |
742 |
localedir |
743 |
libdir |
744 |
psdir |
745 |
pdfdir |
746 |
dvidir |
747 |
htmldir |
748 |
infodir |
749 |
docdir |
750 |
oldincludedir |
751 |
includedir |
752 |
localstatedir |
753 |
sharedstatedir |
754 |
sysconfdir |
755 |
datadir |
756 |
datarootdir |
757 |
libexecdir |
758 |
sbindir |
759 |
bindir |
760 |
program_transform_name |
761 |
prefix |
762 |
exec_prefix |
763 |
PACKAGE_URL |
764 |
PACKAGE_BUGREPORT |
765 |
PACKAGE_STRING |
766 |
PACKAGE_VERSION |
767 |
PACKAGE_TARNAME |
768 |
PACKAGE_NAME |
769 |
PATH_SEPARATOR |
770 |
SHELL' |
771 |
ac_subst_files='' |
772 |
ac_user_opts=' |
773 |
enable_option_checking |
774 |
enable_maintainer_mode |
775 |
enable_dependency_tracking |
776 |
enable_static |
777 |
enable_shared |
778 |
with_pic |
779 |
enable_fast_install |
780 |
with_gnu_ld |
781 |
with_sysroot |
782 |
enable_libtool_lock |
783 |
with_included_ltdl |
784 |
with_ltdl_include |
785 |
with_ltdl_lib |
786 |
enable_ltdl_install |
787 |
with_libpcre_path |
788 |
enable_libpcre |
789 |
enable_openssl |
790 |
enable_assert |
791 |
enable_small_net |
792 |
enable_kqueue |
793 |
enable_epoll |
794 |
enable_devpoll |
795 |
enable_rtsigio |
796 |
enable_poll |
797 |
enable_select |
798 |
with_nicklen |
799 |
with_topiclen |
800 |
enable_efnet |
801 |
enable_halfops |
802 |
enable_debugging |
803 |
enable_warnings |
804 |
' |
805 |
ac_precious_vars='build_alias |
806 |
host_alias |
807 |
target_alias |
808 |
CC |
809 |
CFLAGS |
810 |
LDFLAGS |
811 |
LIBS |
812 |
CPPFLAGS |
813 |
YACC |
814 |
YFLAGS |
815 |
CPP' |
816 |
|
817 |
|
818 |
# Initialize some variables set by options. |
819 |
ac_init_help= |
820 |
ac_init_version=false |
821 |
ac_unrecognized_opts= |
822 |
ac_unrecognized_sep= |
823 |
# The variables have the same names as the options, with |
824 |
# dashes changed to underlines. |
825 |
cache_file=/dev/null |
826 |
exec_prefix=NONE |
827 |
no_create= |
828 |
no_recursion= |
829 |
prefix=NONE |
830 |
program_prefix=NONE |
831 |
program_suffix=NONE |
832 |
program_transform_name=s,x,x, |
833 |
silent= |
834 |
site= |
835 |
srcdir= |
836 |
verbose= |
837 |
x_includes=NONE |
838 |
x_libraries=NONE |
839 |
|
840 |
# Installation directory options. |
841 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
842 |
# and all the variables that are supposed to be based on exec_prefix |
843 |
# by default will actually change. |
844 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
845 |
# (The list follows the same order as the GNU Coding Standards.) |
846 |
bindir='${exec_prefix}/bin' |
847 |
sbindir='${exec_prefix}/sbin' |
848 |
libexecdir='${exec_prefix}/libexec' |
849 |
datarootdir='${prefix}/share' |
850 |
datadir='${datarootdir}' |
851 |
sysconfdir='${prefix}/etc' |
852 |
sharedstatedir='${prefix}/com' |
853 |
localstatedir='${prefix}/var' |
854 |
includedir='${prefix}/include' |
855 |
oldincludedir='/usr/include' |
856 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
857 |
infodir='${datarootdir}/info' |
858 |
htmldir='${docdir}' |
859 |
dvidir='${docdir}' |
860 |
pdfdir='${docdir}' |
861 |
psdir='${docdir}' |
862 |
libdir='${exec_prefix}/lib' |
863 |
localedir='${datarootdir}/locale' |
864 |
mandir='${datarootdir}/man' |
865 |
|
866 |
ac_prev= |
867 |
ac_dashdash= |
868 |
for ac_option |
869 |
do |
870 |
# If the previous option needs an argument, assign it. |
871 |
if test -n "$ac_prev"; then |
872 |
eval $ac_prev=\$ac_option |
873 |
ac_prev= |
874 |
continue |
875 |
fi |
876 |
|
877 |
case $ac_option in |
878 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
879 |
*=) ac_optarg= ;; |
880 |
*) ac_optarg=yes ;; |
881 |
esac |
882 |
|
883 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
884 |
|
885 |
case $ac_dashdash$ac_option in |
886 |
--) |
887 |
ac_dashdash=yes ;; |
888 |
|
889 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
890 |
ac_prev=bindir ;; |
891 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
892 |
bindir=$ac_optarg ;; |
893 |
|
894 |
-build | --build | --buil | --bui | --bu) |
895 |
ac_prev=build_alias ;; |
896 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
897 |
build_alias=$ac_optarg ;; |
898 |
|
899 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
900 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
901 |
ac_prev=cache_file ;; |
902 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
903 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
904 |
cache_file=$ac_optarg ;; |
905 |
|
906 |
--config-cache | -C) |
907 |
cache_file=config.cache ;; |
908 |
|
909 |
-datadir | --datadir | --datadi | --datad) |
910 |
ac_prev=datadir ;; |
911 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
912 |
datadir=$ac_optarg ;; |
913 |
|
914 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
915 |
| --dataroo | --dataro | --datar) |
916 |
ac_prev=datarootdir ;; |
917 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
918 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
919 |
datarootdir=$ac_optarg ;; |
920 |
|
921 |
-disable-* | --disable-*) |
922 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
923 |
# Reject names that are not valid shell variable names. |
924 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
925 |
as_fn_error $? "invalid feature name: $ac_useropt" |
926 |
ac_useropt_orig=$ac_useropt |
927 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
928 |
case $ac_user_opts in |
929 |
*" |
930 |
"enable_$ac_useropt" |
931 |
"*) ;; |
932 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
933 |
ac_unrecognized_sep=', ';; |
934 |
esac |
935 |
eval enable_$ac_useropt=no ;; |
936 |
|
937 |
-docdir | --docdir | --docdi | --doc | --do) |
938 |
ac_prev=docdir ;; |
939 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
940 |
docdir=$ac_optarg ;; |
941 |
|
942 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
943 |
ac_prev=dvidir ;; |
944 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
945 |
dvidir=$ac_optarg ;; |
946 |
|
947 |
-enable-* | --enable-*) |
948 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
949 |
# Reject names that are not valid shell variable names. |
950 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
951 |
as_fn_error $? "invalid feature name: $ac_useropt" |
952 |
ac_useropt_orig=$ac_useropt |
953 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
954 |
case $ac_user_opts in |
955 |
*" |
956 |
"enable_$ac_useropt" |
957 |
"*) ;; |
958 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
959 |
ac_unrecognized_sep=', ';; |
960 |
esac |
961 |
eval enable_$ac_useropt=\$ac_optarg ;; |
962 |
|
963 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
964 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
965 |
| --exec | --exe | --ex) |
966 |
ac_prev=exec_prefix ;; |
967 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
968 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
969 |
| --exec=* | --exe=* | --ex=*) |
970 |
exec_prefix=$ac_optarg ;; |
971 |
|
972 |
-gas | --gas | --ga | --g) |
973 |
# Obsolete; use --with-gas. |
974 |
with_gas=yes ;; |
975 |
|
976 |
-help | --help | --hel | --he | -h) |
977 |
ac_init_help=long ;; |
978 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
979 |
ac_init_help=recursive ;; |
980 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
981 |
ac_init_help=short ;; |
982 |
|
983 |
-host | --host | --hos | --ho) |
984 |
ac_prev=host_alias ;; |
985 |
-host=* | --host=* | --hos=* | --ho=*) |
986 |
host_alias=$ac_optarg ;; |
987 |
|
988 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
989 |
ac_prev=htmldir ;; |
990 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
991 |
| --ht=*) |
992 |
htmldir=$ac_optarg ;; |
993 |
|
994 |
-includedir | --includedir | --includedi | --included | --include \ |
995 |
| --includ | --inclu | --incl | --inc) |
996 |
ac_prev=includedir ;; |
997 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
998 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
999 |
includedir=$ac_optarg ;; |
1000 |
|
1001 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
1002 |
ac_prev=infodir ;; |
1003 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1004 |
infodir=$ac_optarg ;; |
1005 |
|
1006 |
-libdir | --libdir | --libdi | --libd) |
1007 |
ac_prev=libdir ;; |
1008 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
1009 |
libdir=$ac_optarg ;; |
1010 |
|
1011 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1012 |
| --libexe | --libex | --libe) |
1013 |
ac_prev=libexecdir ;; |
1014 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1015 |
| --libexe=* | --libex=* | --libe=*) |
1016 |
libexecdir=$ac_optarg ;; |
1017 |
|
1018 |
-localedir | --localedir | --localedi | --localed | --locale) |
1019 |
ac_prev=localedir ;; |
1020 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1021 |
localedir=$ac_optarg ;; |
1022 |
|
1023 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1024 |
| --localstate | --localstat | --localsta | --localst | --locals) |
1025 |
ac_prev=localstatedir ;; |
1026 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1027 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1028 |
localstatedir=$ac_optarg ;; |
1029 |
|
1030 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1031 |
ac_prev=mandir ;; |
1032 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1033 |
mandir=$ac_optarg ;; |
1034 |
|
1035 |
-nfp | --nfp | --nf) |
1036 |
# Obsolete; use --without-fp. |
1037 |
with_fp=no ;; |
1038 |
|
1039 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1040 |
| --no-cr | --no-c | -n) |
1041 |
no_create=yes ;; |
1042 |
|
1043 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1044 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1045 |
no_recursion=yes ;; |
1046 |
|
1047 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1048 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1049 |
| --oldin | --oldi | --old | --ol | --o) |
1050 |
ac_prev=oldincludedir ;; |
1051 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1052 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1053 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1054 |
oldincludedir=$ac_optarg ;; |
1055 |
|
1056 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1057 |
ac_prev=prefix ;; |
1058 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1059 |
prefix=$ac_optarg ;; |
1060 |
|
1061 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1062 |
| --program-pre | --program-pr | --program-p) |
1063 |
ac_prev=program_prefix ;; |
1064 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1065 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1066 |
program_prefix=$ac_optarg ;; |
1067 |
|
1068 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1069 |
| --program-suf | --program-su | --program-s) |
1070 |
ac_prev=program_suffix ;; |
1071 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1072 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1073 |
program_suffix=$ac_optarg ;; |
1074 |
|
1075 |
-program-transform-name | --program-transform-name \ |
1076 |
| --program-transform-nam | --program-transform-na \ |
1077 |
| --program-transform-n | --program-transform- \ |
1078 |
| --program-transform | --program-transfor \ |
1079 |
| --program-transfo | --program-transf \ |
1080 |
| --program-trans | --program-tran \ |
1081 |
| --progr-tra | --program-tr | --program-t) |
1082 |
ac_prev=program_transform_name ;; |
1083 |
-program-transform-name=* | --program-transform-name=* \ |
1084 |
| --program-transform-nam=* | --program-transform-na=* \ |
1085 |
| --program-transform-n=* | --program-transform-=* \ |
1086 |
| --program-transform=* | --program-transfor=* \ |
1087 |
| --program-transfo=* | --program-transf=* \ |
1088 |
| --program-trans=* | --program-tran=* \ |
1089 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1090 |
program_transform_name=$ac_optarg ;; |
1091 |
|
1092 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1093 |
ac_prev=pdfdir ;; |
1094 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1095 |
pdfdir=$ac_optarg ;; |
1096 |
|
1097 |
-psdir | --psdir | --psdi | --psd | --ps) |
1098 |
ac_prev=psdir ;; |
1099 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1100 |
psdir=$ac_optarg ;; |
1101 |
|
1102 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1103 |
| -silent | --silent | --silen | --sile | --sil) |
1104 |
silent=yes ;; |
1105 |
|
1106 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1107 |
ac_prev=sbindir ;; |
1108 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1109 |
| --sbi=* | --sb=*) |
1110 |
sbindir=$ac_optarg ;; |
1111 |
|
1112 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1113 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1114 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1115 |
| --sha | --sh) |
1116 |
ac_prev=sharedstatedir ;; |
1117 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1118 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1119 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1120 |
| --sha=* | --sh=*) |
1121 |
sharedstatedir=$ac_optarg ;; |
1122 |
|
1123 |
-site | --site | --sit) |
1124 |
ac_prev=site ;; |
1125 |
-site=* | --site=* | --sit=*) |
1126 |
site=$ac_optarg ;; |
1127 |
|
1128 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1129 |
ac_prev=srcdir ;; |
1130 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1131 |
srcdir=$ac_optarg ;; |
1132 |
|
1133 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1134 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1135 |
ac_prev=sysconfdir ;; |
1136 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1137 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1138 |
sysconfdir=$ac_optarg ;; |
1139 |
|
1140 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1141 |
ac_prev=target_alias ;; |
1142 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1143 |
target_alias=$ac_optarg ;; |
1144 |
|
1145 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1146 |
verbose=yes ;; |
1147 |
|
1148 |
-version | --version | --versio | --versi | --vers | -V) |
1149 |
ac_init_version=: ;; |
1150 |
|
1151 |
-with-* | --with-*) |
1152 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1153 |
# Reject names that are not valid shell variable names. |
1154 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1155 |
as_fn_error $? "invalid package name: $ac_useropt" |
1156 |
ac_useropt_orig=$ac_useropt |
1157 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1158 |
case $ac_user_opts in |
1159 |
*" |
1160 |
"with_$ac_useropt" |
1161 |
"*) ;; |
1162 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1163 |
ac_unrecognized_sep=', ';; |
1164 |
esac |
1165 |
eval with_$ac_useropt=\$ac_optarg ;; |
1166 |
|
1167 |
-without-* | --without-*) |
1168 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1169 |
# Reject names that are not valid shell variable names. |
1170 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1171 |
as_fn_error $? "invalid package name: $ac_useropt" |
1172 |
ac_useropt_orig=$ac_useropt |
1173 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1174 |
case $ac_user_opts in |
1175 |
*" |
1176 |
"with_$ac_useropt" |
1177 |
"*) ;; |
1178 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1179 |
ac_unrecognized_sep=', ';; |
1180 |
esac |
1181 |
eval with_$ac_useropt=no ;; |
1182 |
|
1183 |
--x) |
1184 |
# Obsolete; use --with-x. |
1185 |
with_x=yes ;; |
1186 |
|
1187 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1188 |
| --x-incl | --x-inc | --x-in | --x-i) |
1189 |
ac_prev=x_includes ;; |
1190 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1191 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1192 |
x_includes=$ac_optarg ;; |
1193 |
|
1194 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1195 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1196 |
ac_prev=x_libraries ;; |
1197 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1198 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1199 |
x_libraries=$ac_optarg ;; |
1200 |
|
1201 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1202 |
Try \`$0 --help' for more information" |
1203 |
;; |
1204 |
|
1205 |
*=*) |
1206 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1207 |
# Reject names that are not valid shell variable names. |
1208 |
case $ac_envvar in #( |
1209 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1210 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1211 |
esac |
1212 |
eval $ac_envvar=\$ac_optarg |
1213 |
export $ac_envvar ;; |
1214 |
|
1215 |
*) |
1216 |
# FIXME: should be removed in autoconf 3.0. |
1217 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1218 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1219 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1220 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1221 |
;; |
1222 |
|
1223 |
esac |
1224 |
done |
1225 |
|
1226 |
if test -n "$ac_prev"; then |
1227 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1228 |
as_fn_error $? "missing argument to $ac_option" |
1229 |
fi |
1230 |
|
1231 |
if test -n "$ac_unrecognized_opts"; then |
1232 |
case $enable_option_checking in |
1233 |
no) ;; |
1234 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1235 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1236 |
esac |
1237 |
fi |
1238 |
|
1239 |
# Check all directory arguments for consistency. |
1240 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1241 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1242 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1243 |
libdir localedir mandir |
1244 |
do |
1245 |
eval ac_val=\$$ac_var |
1246 |
# Remove trailing slashes. |
1247 |
case $ac_val in |
1248 |
*/ ) |
1249 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1250 |
eval $ac_var=\$ac_val;; |
1251 |
esac |
1252 |
# Be sure to have absolute directory names. |
1253 |
case $ac_val in |
1254 |
[\\/$]* | ?:[\\/]* ) continue;; |
1255 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1256 |
esac |
1257 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1258 |
done |
1259 |
|
1260 |
# There might be people who depend on the old broken behavior: `$host' |
1261 |
# used to hold the argument of --host etc. |
1262 |
# FIXME: To remove some day. |
1263 |
build=$build_alias |
1264 |
host=$host_alias |
1265 |
target=$target_alias |
1266 |
|
1267 |
# FIXME: To remove some day. |
1268 |
if test "x$host_alias" != x; then |
1269 |
if test "x$build_alias" = x; then |
1270 |
cross_compiling=maybe |
1271 |
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1272 |
If a cross compiler is detected then cross compile mode will be used" >&2 |
1273 |
elif test "x$build_alias" != "x$host_alias"; then |
1274 |
cross_compiling=yes |
1275 |
fi |
1276 |
fi |
1277 |
|
1278 |
ac_tool_prefix= |
1279 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1280 |
|
1281 |
test "$silent" = yes && exec 6>/dev/null |
1282 |
|
1283 |
|
1284 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1285 |
ac_ls_di=`ls -di .` && |
1286 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1287 |
as_fn_error $? "working directory cannot be determined" |
1288 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1289 |
as_fn_error $? "pwd does not report name of working directory" |
1290 |
|
1291 |
|
1292 |
# Find the source files, if location was not specified. |
1293 |
if test -z "$srcdir"; then |
1294 |
ac_srcdir_defaulted=yes |
1295 |
# Try the directory containing this script, then the parent directory. |
1296 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1297 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1298 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1299 |
X"$as_myself" : 'X\(//\)$' \| \ |
1300 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1301 |
$as_echo X"$as_myself" | |
1302 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1303 |
s//\1/ |
1304 |
q |
1305 |
} |
1306 |
/^X\(\/\/\)[^/].*/{ |
1307 |
s//\1/ |
1308 |
q |
1309 |
} |
1310 |
/^X\(\/\/\)$/{ |
1311 |
s//\1/ |
1312 |
q |
1313 |
} |
1314 |
/^X\(\/\).*/{ |
1315 |
s//\1/ |
1316 |
q |
1317 |
} |
1318 |
s/.*/./; q'` |
1319 |
srcdir=$ac_confdir |
1320 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1321 |
srcdir=.. |
1322 |
fi |
1323 |
else |
1324 |
ac_srcdir_defaulted=no |
1325 |
fi |
1326 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1327 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1328 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1329 |
fi |
1330 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1331 |
ac_abs_confdir=`( |
1332 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1333 |
pwd)` |
1334 |
# When building in place, set srcdir=. |
1335 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1336 |
srcdir=. |
1337 |
fi |
1338 |
# Remove unnecessary trailing slashes from srcdir. |
1339 |
# Double slashes in file names in object file debugging info |
1340 |
# mess up M-x gdb in Emacs. |
1341 |
case $srcdir in |
1342 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1343 |
esac |
1344 |
for ac_var in $ac_precious_vars; do |
1345 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1346 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1347 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1348 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1349 |
done |
1350 |
|
1351 |
# |
1352 |
# Report the --help message. |
1353 |
# |
1354 |
if test "$ac_init_help" = "long"; then |
1355 |
# Omit some internal or obsolete options to make the list less imposing. |
1356 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1357 |
cat <<_ACEOF |
1358 |
\`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems. |
1359 |
|
1360 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1361 |
|
1362 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1363 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1364 |
|
1365 |
Defaults for the options are specified in brackets. |
1366 |
|
1367 |
Configuration: |
1368 |
-h, --help display this help and exit |
1369 |
--help=short display options specific to this package |
1370 |
--help=recursive display the short help of all the included packages |
1371 |
-V, --version display version information and exit |
1372 |
-q, --quiet, --silent do not print \`checking ...' messages |
1373 |
--cache-file=FILE cache test results in FILE [disabled] |
1374 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1375 |
-n, --no-create do not create output files |
1376 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1377 |
|
1378 |
Installation directories: |
1379 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1380 |
[$ac_default_prefix] |
1381 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1382 |
[PREFIX] |
1383 |
|
1384 |
By default, \`make install' will install all the files in |
1385 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1386 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1387 |
for instance \`--prefix=\$HOME'. |
1388 |
|
1389 |
For better control, use the options below. |
1390 |
|
1391 |
Fine tuning of the installation directories: |
1392 |
--bindir=DIR user executables [EPREFIX/bin] |
1393 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1394 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1395 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1396 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1397 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1398 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1399 |
--includedir=DIR C header files [PREFIX/include] |
1400 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1401 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1402 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1403 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1404 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1405 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1406 |
--docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid] |
1407 |
--htmldir=DIR html documentation [DOCDIR] |
1408 |
--dvidir=DIR dvi documentation [DOCDIR] |
1409 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1410 |
--psdir=DIR ps documentation [DOCDIR] |
1411 |
_ACEOF |
1412 |
|
1413 |
cat <<\_ACEOF |
1414 |
|
1415 |
Program names: |
1416 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1417 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1418 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1419 |
|
1420 |
System types: |
1421 |
--build=BUILD configure for building on BUILD [guessed] |
1422 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1423 |
_ACEOF |
1424 |
fi |
1425 |
|
1426 |
if test -n "$ac_init_help"; then |
1427 |
case $ac_init_help in |
1428 |
short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";; |
1429 |
esac |
1430 |
cat <<\_ACEOF |
1431 |
|
1432 |
Optional Features: |
1433 |
--disable-option-checking ignore unrecognized --enable/--with options |
1434 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1435 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1436 |
--enable-maintainer-mode enable make rules and dependencies not useful |
1437 |
(and sometimes confusing) to the casual installer |
1438 |
--disable-dependency-tracking speeds up one-time build |
1439 |
--enable-dependency-tracking do not reject slow dependency extractors |
1440 |
--enable-static[=PKGS] build static libraries [default=no] |
1441 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
1442 |
--enable-fast-install[=PKGS] |
1443 |
optimize for fast installation [default=yes] |
1444 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1445 |
--enable-ltdl-install install libltdl |
1446 |
--disable-libpcre Disable PCRE support |
1447 |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
1448 |
--disable-openssl Disable OpenSSL support. |
1449 |
--enable-assert Enable assert() statements |
1450 |
--enable-small-net Enable small network support. |
1451 |
--enable-kqueue Force kqueue usage. |
1452 |
--enable-epoll Force epoll usage. |
1453 |
--enable-devpoll Force devpoll usage. |
1454 |
--enable-rtsigio Force rtsigio usage. |
1455 |
--enable-poll Force poll usage. |
1456 |
--enable-select Force select usage. |
1457 |
--enable-efnet For IRCDs running on EFnet. |
1458 |
--enable-halfops Enable halfops support. |
1459 |
--enable-debugging Enable debugging. |
1460 |
--enable-warnings Enable compiler warnings. |
1461 |
|
1462 |
Optional Packages: |
1463 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1464 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1465 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1466 |
both] |
1467 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1468 |
--with-sysroot=DIR Search for dependent libraries within DIR |
1469 |
(or the compiler's sysroot if not specified). |
1470 |
--with-included-ltdl use the GNU ltdl sources included here |
1471 |
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
1472 |
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
1473 |
--with-libpcre-path=DIR Path to libpcre.so for PCRE support. |
1474 |
--with-nicklen=<value> Set nickname length (default 9). |
1475 |
--with-topiclen=<value> Set topic length (default 160). |
1476 |
|
1477 |
Some influential environment variables: |
1478 |
CC C compiler command |
1479 |
CFLAGS C compiler flags |
1480 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1481 |
nonstandard directory <lib dir> |
1482 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1483 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1484 |
you have headers in a nonstandard directory <include dir> |
1485 |
YACC The `Yet Another Compiler Compiler' implementation to use. |
1486 |
Defaults to the first program found out of: `bison -y', `byacc', |
1487 |
`yacc'. |
1488 |
YFLAGS The list of arguments that will be passed by default to $YACC. |
1489 |
This script will default YFLAGS to the empty string to avoid a |
1490 |
default value of `-d' given by some make applications. |
1491 |
CPP C preprocessor |
1492 |
|
1493 |
Use these variables to override the choices made by `configure' or to help |
1494 |
it to find libraries and programs with nonstandard names/locations. |
1495 |
|
1496 |
Report bugs to <bugs@ircd-hybrid.org>. |
1497 |
_ACEOF |
1498 |
ac_status=$? |
1499 |
fi |
1500 |
|
1501 |
if test "$ac_init_help" = "recursive"; then |
1502 |
# If there are subdirs, report their specific --help. |
1503 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1504 |
test -d "$ac_dir" || |
1505 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1506 |
continue |
1507 |
ac_builddir=. |
1508 |
|
1509 |
case "$ac_dir" in |
1510 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1511 |
*) |
1512 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1513 |
# A ".." for each directory in $ac_dir_suffix. |
1514 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1515 |
case $ac_top_builddir_sub in |
1516 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1517 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1518 |
esac ;; |
1519 |
esac |
1520 |
ac_abs_top_builddir=$ac_pwd |
1521 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1522 |
# for backward compatibility: |
1523 |
ac_top_builddir=$ac_top_build_prefix |
1524 |
|
1525 |
case $srcdir in |
1526 |
.) # We are building in place. |
1527 |
ac_srcdir=. |
1528 |
ac_top_srcdir=$ac_top_builddir_sub |
1529 |
ac_abs_top_srcdir=$ac_pwd ;; |
1530 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1531 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1532 |
ac_top_srcdir=$srcdir |
1533 |
ac_abs_top_srcdir=$srcdir ;; |
1534 |
*) # Relative name. |
1535 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1536 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1537 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1538 |
esac |
1539 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1540 |
|
1541 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1542 |
# Check for guested configure. |
1543 |
if test -f "$ac_srcdir/configure.gnu"; then |
1544 |
echo && |
1545 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1546 |
elif test -f "$ac_srcdir/configure"; then |
1547 |
echo && |
1548 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1549 |
else |
1550 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1551 |
fi || ac_status=$? |
1552 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1553 |
done |
1554 |
fi |
1555 |
|
1556 |
test -n "$ac_init_help" && exit $ac_status |
1557 |
if $ac_init_version; then |
1558 |
cat <<\_ACEOF |
1559 |
ircd-hybrid configure 8beta1 |
1560 |
generated by GNU Autoconf 2.68 |
1561 |
|
1562 |
Copyright (C) 2010 Free Software Foundation, Inc. |
1563 |
This configure script is free software; the Free Software Foundation |
1564 |
gives unlimited permission to copy, distribute and modify it. |
1565 |
_ACEOF |
1566 |
exit |
1567 |
fi |
1568 |
|
1569 |
## ------------------------ ## |
1570 |
## Autoconf initialization. ## |
1571 |
## ------------------------ ## |
1572 |
|
1573 |
# ac_fn_c_try_compile LINENO |
1574 |
# -------------------------- |
1575 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1576 |
ac_fn_c_try_compile () |
1577 |
{ |
1578 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1579 |
rm -f conftest.$ac_objext |
1580 |
if { { ac_try="$ac_compile" |
1581 |
case "(($ac_try" in |
1582 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1583 |
*) ac_try_echo=$ac_try;; |
1584 |
esac |
1585 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1586 |
$as_echo "$ac_try_echo"; } >&5 |
1587 |
(eval "$ac_compile") 2>conftest.err |
1588 |
ac_status=$? |
1589 |
if test -s conftest.err; then |
1590 |
grep -v '^ *+' conftest.err >conftest.er1 |
1591 |
cat conftest.er1 >&5 |
1592 |
mv -f conftest.er1 conftest.err |
1593 |
fi |
1594 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1595 |
test $ac_status = 0; } && { |
1596 |
test -z "$ac_c_werror_flag" || |
1597 |
test ! -s conftest.err |
1598 |
} && test -s conftest.$ac_objext; then : |
1599 |
ac_retval=0 |
1600 |
else |
1601 |
$as_echo "$as_me: failed program was:" >&5 |
1602 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1603 |
|
1604 |
ac_retval=1 |
1605 |
fi |
1606 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1607 |
as_fn_set_status $ac_retval |
1608 |
|
1609 |
} # ac_fn_c_try_compile |
1610 |
|
1611 |
# ac_fn_c_try_link LINENO |
1612 |
# ----------------------- |
1613 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1614 |
ac_fn_c_try_link () |
1615 |
{ |
1616 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1617 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1618 |
if { { ac_try="$ac_link" |
1619 |
case "(($ac_try" in |
1620 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1621 |
*) ac_try_echo=$ac_try;; |
1622 |
esac |
1623 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1624 |
$as_echo "$ac_try_echo"; } >&5 |
1625 |
(eval "$ac_link") 2>conftest.err |
1626 |
ac_status=$? |
1627 |
if test -s conftest.err; then |
1628 |
grep -v '^ *+' conftest.err >conftest.er1 |
1629 |
cat conftest.er1 >&5 |
1630 |
mv -f conftest.er1 conftest.err |
1631 |
fi |
1632 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1633 |
test $ac_status = 0; } && { |
1634 |
test -z "$ac_c_werror_flag" || |
1635 |
test ! -s conftest.err |
1636 |
} && test -s conftest$ac_exeext && { |
1637 |
test "$cross_compiling" = yes || |
1638 |
$as_test_x conftest$ac_exeext |
1639 |
}; then : |
1640 |
ac_retval=0 |
1641 |
else |
1642 |
$as_echo "$as_me: failed program was:" >&5 |
1643 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1644 |
|
1645 |
ac_retval=1 |
1646 |
fi |
1647 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1648 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1649 |
# interfere with the next link command; also delete a directory that is |
1650 |
# left behind by Apple's compiler. We do this before executing the actions. |
1651 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1652 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1653 |
as_fn_set_status $ac_retval |
1654 |
|
1655 |
} # ac_fn_c_try_link |
1656 |
|
1657 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1658 |
# ------------------------------------------------------- |
1659 |
# Tests whether HEADER exists and can be compiled using the include files in |
1660 |
# INCLUDES, setting the cache variable VAR accordingly. |
1661 |
ac_fn_c_check_header_compile () |
1662 |
{ |
1663 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1665 |
$as_echo_n "checking for $2... " >&6; } |
1666 |
if eval \${$3+:} false; then : |
1667 |
$as_echo_n "(cached) " >&6 |
1668 |
else |
1669 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1670 |
/* end confdefs.h. */ |
1671 |
$4 |
1672 |
#include <$2> |
1673 |
_ACEOF |
1674 |
if ac_fn_c_try_compile "$LINENO"; then : |
1675 |
eval "$3=yes" |
1676 |
else |
1677 |
eval "$3=no" |
1678 |
fi |
1679 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1680 |
fi |
1681 |
eval ac_res=\$$3 |
1682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1683 |
$as_echo "$ac_res" >&6; } |
1684 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1685 |
|
1686 |
} # ac_fn_c_check_header_compile |
1687 |
|
1688 |
# ac_fn_c_try_cpp LINENO |
1689 |
# ---------------------- |
1690 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1691 |
ac_fn_c_try_cpp () |
1692 |
{ |
1693 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1694 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1695 |
case "(($ac_try" in |
1696 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1697 |
*) ac_try_echo=$ac_try;; |
1698 |
esac |
1699 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1700 |
$as_echo "$ac_try_echo"; } >&5 |
1701 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1702 |
ac_status=$? |
1703 |
if test -s conftest.err; then |
1704 |
grep -v '^ *+' conftest.err >conftest.er1 |
1705 |
cat conftest.er1 >&5 |
1706 |
mv -f conftest.er1 conftest.err |
1707 |
fi |
1708 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1709 |
test $ac_status = 0; } > conftest.i && { |
1710 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1711 |
test ! -s conftest.err |
1712 |
}; then : |
1713 |
ac_retval=0 |
1714 |
else |
1715 |
$as_echo "$as_me: failed program was:" >&5 |
1716 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1717 |
|
1718 |
ac_retval=1 |
1719 |
fi |
1720 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1721 |
as_fn_set_status $ac_retval |
1722 |
|
1723 |
} # ac_fn_c_try_cpp |
1724 |
|
1725 |
# ac_fn_c_try_run LINENO |
1726 |
# ---------------------- |
1727 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1728 |
# that executables *can* be run. |
1729 |
ac_fn_c_try_run () |
1730 |
{ |
1731 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1732 |
if { { ac_try="$ac_link" |
1733 |
case "(($ac_try" in |
1734 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1735 |
*) ac_try_echo=$ac_try;; |
1736 |
esac |
1737 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1738 |
$as_echo "$ac_try_echo"; } >&5 |
1739 |
(eval "$ac_link") 2>&5 |
1740 |
ac_status=$? |
1741 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1742 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1743 |
{ { case "(($ac_try" in |
1744 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1745 |
*) ac_try_echo=$ac_try;; |
1746 |
esac |
1747 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1748 |
$as_echo "$ac_try_echo"; } >&5 |
1749 |
(eval "$ac_try") 2>&5 |
1750 |
ac_status=$? |
1751 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1752 |
test $ac_status = 0; }; }; then : |
1753 |
ac_retval=0 |
1754 |
else |
1755 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1756 |
$as_echo "$as_me: failed program was:" >&5 |
1757 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1758 |
|
1759 |
ac_retval=$ac_status |
1760 |
fi |
1761 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1762 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1763 |
as_fn_set_status $ac_retval |
1764 |
|
1765 |
} # ac_fn_c_try_run |
1766 |
|
1767 |
# ac_fn_c_check_func LINENO FUNC VAR |
1768 |
# ---------------------------------- |
1769 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1770 |
ac_fn_c_check_func () |
1771 |
{ |
1772 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1773 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1774 |
$as_echo_n "checking for $2... " >&6; } |
1775 |
if eval \${$3+:} false; then : |
1776 |
$as_echo_n "(cached) " >&6 |
1777 |
else |
1778 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1779 |
/* end confdefs.h. */ |
1780 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1781 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1782 |
#define $2 innocuous_$2 |
1783 |
|
1784 |
/* System header to define __stub macros and hopefully few prototypes, |
1785 |
which can conflict with char $2 (); below. |
1786 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1787 |
<limits.h> exists even on freestanding compilers. */ |
1788 |
|
1789 |
#ifdef __STDC__ |
1790 |
# include <limits.h> |
1791 |
#else |
1792 |
# include <assert.h> |
1793 |
#endif |
1794 |
|
1795 |
#undef $2 |
1796 |
|
1797 |
/* Override any GCC internal prototype to avoid an error. |
1798 |
Use char because int might match the return type of a GCC |
1799 |
builtin and then its argument prototype would still apply. */ |
1800 |
#ifdef __cplusplus |
1801 |
extern "C" |
1802 |
#endif |
1803 |
char $2 (); |
1804 |
/* The GNU C library defines this for functions which it implements |
1805 |
to always fail with ENOSYS. Some functions are actually named |
1806 |
something starting with __ and the normal name is an alias. */ |
1807 |
#if defined __stub_$2 || defined __stub___$2 |
1808 |
choke me |
1809 |
#endif |
1810 |
|
1811 |
int |
1812 |
main () |
1813 |
{ |
1814 |
return $2 (); |
1815 |
; |
1816 |
return 0; |
1817 |
} |
1818 |
_ACEOF |
1819 |
if ac_fn_c_try_link "$LINENO"; then : |
1820 |
eval "$3=yes" |
1821 |
else |
1822 |
eval "$3=no" |
1823 |
fi |
1824 |
rm -f core conftest.err conftest.$ac_objext \ |
1825 |
conftest$ac_exeext conftest.$ac_ext |
1826 |
fi |
1827 |
eval ac_res=\$$3 |
1828 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1829 |
$as_echo "$ac_res" >&6; } |
1830 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1831 |
|
1832 |
} # ac_fn_c_check_func |
1833 |
|
1834 |
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1835 |
# --------------------------------------------- |
1836 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
1837 |
# accordingly. |
1838 |
ac_fn_c_check_decl () |
1839 |
{ |
1840 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1841 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
1842 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
1843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
1844 |
$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
1845 |
if eval \${$3+:} false; then : |
1846 |
$as_echo_n "(cached) " >&6 |
1847 |
else |
1848 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1849 |
/* end confdefs.h. */ |
1850 |
$4 |
1851 |
int |
1852 |
main () |
1853 |
{ |
1854 |
#ifndef $as_decl_name |
1855 |
#ifdef __cplusplus |
1856 |
(void) $as_decl_use; |
1857 |
#else |
1858 |
(void) $as_decl_name; |
1859 |
#endif |
1860 |
#endif |
1861 |
|
1862 |
; |
1863 |
return 0; |
1864 |
} |
1865 |
_ACEOF |
1866 |
if ac_fn_c_try_compile "$LINENO"; then : |
1867 |
eval "$3=yes" |
1868 |
else |
1869 |
eval "$3=no" |
1870 |
fi |
1871 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1872 |
fi |
1873 |
eval ac_res=\$$3 |
1874 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1875 |
$as_echo "$ac_res" >&6; } |
1876 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1877 |
|
1878 |
} # ac_fn_c_check_decl |
1879 |
|
1880 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1881 |
# ------------------------------------------- |
1882 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
1883 |
# variable VAR accordingly. |
1884 |
ac_fn_c_check_type () |
1885 |
{ |
1886 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1888 |
$as_echo_n "checking for $2... " >&6; } |
1889 |
if eval \${$3+:} false; then : |
1890 |
$as_echo_n "(cached) " >&6 |
1891 |
else |
1892 |
eval "$3=no" |
1893 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1894 |
/* end confdefs.h. */ |
1895 |
$4 |
1896 |
int |
1897 |
main () |
1898 |
{ |
1899 |
if (sizeof ($2)) |
1900 |
return 0; |
1901 |
; |
1902 |
return 0; |
1903 |
} |
1904 |
_ACEOF |
1905 |
if ac_fn_c_try_compile "$LINENO"; then : |
1906 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1907 |
/* end confdefs.h. */ |
1908 |
$4 |
1909 |
int |
1910 |
main () |
1911 |
{ |
1912 |
if (sizeof (($2))) |
1913 |
return 0; |
1914 |
; |
1915 |
return 0; |
1916 |
} |
1917 |
_ACEOF |
1918 |
if ac_fn_c_try_compile "$LINENO"; then : |
1919 |
|
1920 |
else |
1921 |
eval "$3=yes" |
1922 |
fi |
1923 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1924 |
fi |
1925 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1926 |
fi |
1927 |
eval ac_res=\$$3 |
1928 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1929 |
$as_echo "$ac_res" >&6; } |
1930 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1931 |
|
1932 |
} # ac_fn_c_check_type |
1933 |
|
1934 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1935 |
# ---------------------------------------------------- |
1936 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
1937 |
# INCLUDES, setting cache variable VAR accordingly. |
1938 |
ac_fn_c_check_member () |
1939 |
{ |
1940 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
1942 |
$as_echo_n "checking for $2.$3... " >&6; } |
1943 |
if eval \${$4+:} false; then : |
1944 |
$as_echo_n "(cached) " >&6 |
1945 |
else |
1946 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1947 |
/* end confdefs.h. */ |
1948 |
$5 |
1949 |
int |
1950 |
main () |
1951 |
{ |
1952 |
static $2 ac_aggr; |
1953 |
if (ac_aggr.$3) |
1954 |
return 0; |
1955 |
; |
1956 |
return 0; |
1957 |
} |
1958 |
_ACEOF |
1959 |
if ac_fn_c_try_compile "$LINENO"; then : |
1960 |
eval "$4=yes" |
1961 |
else |
1962 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1963 |
/* end confdefs.h. */ |
1964 |
$5 |
1965 |
int |
1966 |
main () |
1967 |
{ |
1968 |
static $2 ac_aggr; |
1969 |
if (sizeof ac_aggr.$3) |
1970 |
return 0; |
1971 |
; |
1972 |
return 0; |
1973 |
} |
1974 |
_ACEOF |
1975 |
if ac_fn_c_try_compile "$LINENO"; then : |
1976 |
eval "$4=yes" |
1977 |
else |
1978 |
eval "$4=no" |
1979 |
fi |
1980 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1981 |
fi |
1982 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1983 |
fi |
1984 |
eval ac_res=\$$4 |
1985 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1986 |
$as_echo "$ac_res" >&6; } |
1987 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1988 |
|
1989 |
} # ac_fn_c_check_member |
1990 |
|
1991 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1992 |
# ------------------------------------------------------- |
1993 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1994 |
# the include files in INCLUDES and setting the cache variable VAR |
1995 |
# accordingly. |
1996 |
ac_fn_c_check_header_mongrel () |
1997 |
{ |
1998 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1999 |
if eval \${$3+:} false; then : |
2000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2001 |
$as_echo_n "checking for $2... " >&6; } |
2002 |
if eval \${$3+:} false; then : |
2003 |
$as_echo_n "(cached) " >&6 |
2004 |
fi |
2005 |
eval ac_res=\$$3 |
2006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2007 |
$as_echo "$ac_res" >&6; } |
2008 |
else |
2009 |
# Is the header compilable? |
2010 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
2011 |
$as_echo_n "checking $2 usability... " >&6; } |
2012 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2013 |
/* end confdefs.h. */ |
2014 |
$4 |
2015 |
#include <$2> |
2016 |
_ACEOF |
2017 |
if ac_fn_c_try_compile "$LINENO"; then : |
2018 |
ac_header_compiler=yes |
2019 |
else |
2020 |
ac_header_compiler=no |
2021 |
fi |
2022 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
2024 |
$as_echo "$ac_header_compiler" >&6; } |
2025 |
|
2026 |
# Is the header present? |
2027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
2028 |
$as_echo_n "checking $2 presence... " >&6; } |
2029 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2030 |
/* end confdefs.h. */ |
2031 |
#include <$2> |
2032 |
_ACEOF |
2033 |
if ac_fn_c_try_cpp "$LINENO"; then : |
2034 |
ac_header_preproc=yes |
2035 |
else |
2036 |
ac_header_preproc=no |
2037 |
fi |
2038 |
rm -f conftest.err conftest.i conftest.$ac_ext |
2039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2040 |
$as_echo "$ac_header_preproc" >&6; } |
2041 |
|
2042 |
# So? What about this header? |
2043 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
2044 |
yes:no: ) |
2045 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
2046 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
2047 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2048 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2049 |
;; |
2050 |
no:yes:* ) |
2051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
2052 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
2053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
2054 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
2055 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
2056 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
2057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
2058 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
2059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2060 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2061 |
( $as_echo "## ----------------------------------- ## |
2062 |
## Report this to bugs@ircd-hybrid.org ## |
2063 |
## ----------------------------------- ##" |
2064 |
) | sed "s/^/$as_me: WARNING: /" >&2 |
2065 |
;; |
2066 |
esac |
2067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2068 |
$as_echo_n "checking for $2... " >&6; } |
2069 |
if eval \${$3+:} false; then : |
2070 |
$as_echo_n "(cached) " >&6 |
2071 |
else |
2072 |
eval "$3=\$ac_header_compiler" |
2073 |
fi |
2074 |
eval ac_res=\$$3 |
2075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2076 |
$as_echo "$ac_res" >&6; } |
2077 |
fi |
2078 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2079 |
|
2080 |
} # ac_fn_c_check_header_mongrel |
2081 |
cat >config.log <<_ACEOF |
2082 |
This file contains any messages produced by compilers while |
2083 |
running configure, to aid debugging if configure makes a mistake. |
2084 |
|
2085 |
It was created by ircd-hybrid $as_me 8beta1, which was |
2086 |
generated by GNU Autoconf 2.68. Invocation command line was |
2087 |
|
2088 |
$ $0 $@ |
2089 |
|
2090 |
_ACEOF |
2091 |
exec 5>>config.log |
2092 |
{ |
2093 |
cat <<_ASUNAME |
2094 |
## --------- ## |
2095 |
## Platform. ## |
2096 |
## --------- ## |
2097 |
|
2098 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2099 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2100 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2101 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2102 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2103 |
|
2104 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2105 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2106 |
|
2107 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2108 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2109 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2110 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2111 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2112 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2113 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2114 |
|
2115 |
_ASUNAME |
2116 |
|
2117 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2118 |
for as_dir in $PATH |
2119 |
do |
2120 |
IFS=$as_save_IFS |
2121 |
test -z "$as_dir" && as_dir=. |
2122 |
$as_echo "PATH: $as_dir" |
2123 |
done |
2124 |
IFS=$as_save_IFS |
2125 |
|
2126 |
} >&5 |
2127 |
|
2128 |
cat >&5 <<_ACEOF |
2129 |
|
2130 |
|
2131 |
## ----------- ## |
2132 |
## Core tests. ## |
2133 |
## ----------- ## |
2134 |
|
2135 |
_ACEOF |
2136 |
|
2137 |
|
2138 |
# Keep a trace of the command line. |
2139 |
# Strip out --no-create and --no-recursion so they do not pile up. |
2140 |
# Strip out --silent because we don't want to record it for future runs. |
2141 |
# Also quote any args containing shell meta-characters. |
2142 |
# Make two passes to allow for proper duplicate-argument suppression. |
2143 |
ac_configure_args= |
2144 |
ac_configure_args0= |
2145 |
ac_configure_args1= |
2146 |
ac_must_keep_next=false |
2147 |
for ac_pass in 1 2 |
2148 |
do |
2149 |
for ac_arg |
2150 |
do |
2151 |
case $ac_arg in |
2152 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2153 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2154 |
| -silent | --silent | --silen | --sile | --sil) |
2155 |
continue ;; |
2156 |
*\'*) |
2157 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2158 |
esac |
2159 |
case $ac_pass in |
2160 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2161 |
2) |
2162 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
2163 |
if test $ac_must_keep_next = true; then |
2164 |
ac_must_keep_next=false # Got value, back to normal. |
2165 |
else |
2166 |
case $ac_arg in |
2167 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
2168 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2169 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2170 |
| -with-* | --with-* | -without-* | --without-* | --x) |
2171 |
case "$ac_configure_args0 " in |
2172 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2173 |
esac |
2174 |
;; |
2175 |
-* ) ac_must_keep_next=true ;; |
2176 |
esac |
2177 |
fi |
2178 |
as_fn_append ac_configure_args " '$ac_arg'" |
2179 |
;; |
2180 |
esac |
2181 |
done |
2182 |
done |
2183 |
{ ac_configure_args0=; unset ac_configure_args0;} |
2184 |
{ ac_configure_args1=; unset ac_configure_args1;} |
2185 |
|
2186 |
# When interrupted or exit'd, cleanup temporary files, and complete |
2187 |
# config.log. We remove comments because anyway the quotes in there |
2188 |
# would cause problems or look ugly. |
2189 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
2190 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2191 |
trap 'exit_status=$? |
2192 |
# Save into config.log some information that might help in debugging. |
2193 |
{ |
2194 |
echo |
2195 |
|
2196 |
$as_echo "## ---------------- ## |
2197 |
## Cache variables. ## |
2198 |
## ---------------- ##" |
2199 |
echo |
2200 |
# The following way of writing the cache mishandles newlines in values, |
2201 |
( |
2202 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2203 |
eval ac_val=\$$ac_var |
2204 |
case $ac_val in #( |
2205 |
*${as_nl}*) |
2206 |
case $ac_var in #( |
2207 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2208 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2209 |
esac |
2210 |
case $ac_var in #( |
2211 |
_ | IFS | as_nl) ;; #( |
2212 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2213 |
*) { eval $ac_var=; unset $ac_var;} ;; |
2214 |
esac ;; |
2215 |
esac |
2216 |
done |
2217 |
(set) 2>&1 | |
2218 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2219 |
*${as_nl}ac_space=\ *) |
2220 |
sed -n \ |
2221 |
"s/'\''/'\''\\\\'\'''\''/g; |
2222 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2223 |
;; #( |
2224 |
*) |
2225 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2226 |
;; |
2227 |
esac | |
2228 |
sort |
2229 |
) |
2230 |
echo |
2231 |
|
2232 |
$as_echo "## ----------------- ## |
2233 |
## Output variables. ## |
2234 |
## ----------------- ##" |
2235 |
echo |
2236 |
for ac_var in $ac_subst_vars |
2237 |
do |
2238 |
eval ac_val=\$$ac_var |
2239 |
case $ac_val in |
2240 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2241 |
esac |
2242 |
$as_echo "$ac_var='\''$ac_val'\''" |
2243 |
done | sort |
2244 |
echo |
2245 |
|
2246 |
if test -n "$ac_subst_files"; then |
2247 |
$as_echo "## ------------------- ## |
2248 |
## File substitutions. ## |
2249 |
## ------------------- ##" |
2250 |
echo |
2251 |
for ac_var in $ac_subst_files |
2252 |
do |
2253 |
eval ac_val=\$$ac_var |
2254 |
case $ac_val in |
2255 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2256 |
esac |
2257 |
$as_echo "$ac_var='\''$ac_val'\''" |
2258 |
done | sort |
2259 |
echo |
2260 |
fi |
2261 |
|
2262 |
if test -s confdefs.h; then |
2263 |
$as_echo "## ----------- ## |
2264 |
## confdefs.h. ## |
2265 |
## ----------- ##" |
2266 |
echo |
2267 |
cat confdefs.h |
2268 |
echo |
2269 |
fi |
2270 |
test "$ac_signal" != 0 && |
2271 |
$as_echo "$as_me: caught signal $ac_signal" |
2272 |
$as_echo "$as_me: exit $exit_status" |
2273 |
} >&5 |
2274 |
rm -f core *.core core.conftest.* && |
2275 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2276 |
exit $exit_status |
2277 |
' 0 |
2278 |
for ac_signal in 1 2 13 15; do |
2279 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2280 |
done |
2281 |
ac_signal=0 |
2282 |
|
2283 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2284 |
rm -f -r conftest* confdefs.h |
2285 |
|
2286 |
$as_echo "/* confdefs.h */" > confdefs.h |
2287 |
|
2288 |
# Predefined preprocessor variables. |
2289 |
|
2290 |
cat >>confdefs.h <<_ACEOF |
2291 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
2292 |
_ACEOF |
2293 |
|
2294 |
cat >>confdefs.h <<_ACEOF |
2295 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2296 |
_ACEOF |
2297 |
|
2298 |
cat >>confdefs.h <<_ACEOF |
2299 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2300 |
_ACEOF |
2301 |
|
2302 |
cat >>confdefs.h <<_ACEOF |
2303 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2304 |
_ACEOF |
2305 |
|
2306 |
cat >>confdefs.h <<_ACEOF |
2307 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2308 |
_ACEOF |
2309 |
|
2310 |
cat >>confdefs.h <<_ACEOF |
2311 |
#define PACKAGE_URL "$PACKAGE_URL" |
2312 |
_ACEOF |
2313 |
|
2314 |
|
2315 |
# Let the site file select an alternate cache file if it wants to. |
2316 |
# Prefer an explicitly selected file to automatically selected ones. |
2317 |
ac_site_file1=NONE |
2318 |
ac_site_file2=NONE |
2319 |
if test -n "$CONFIG_SITE"; then |
2320 |
# We do not want a PATH search for config.site. |
2321 |
case $CONFIG_SITE in #(( |
2322 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2323 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2324 |
*) ac_site_file1=./$CONFIG_SITE;; |
2325 |
esac |
2326 |
elif test "x$prefix" != xNONE; then |
2327 |
ac_site_file1=$prefix/share/config.site |
2328 |
ac_site_file2=$prefix/etc/config.site |
2329 |
else |
2330 |
ac_site_file1=$ac_default_prefix/share/config.site |
2331 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2332 |
fi |
2333 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2334 |
do |
2335 |
test "x$ac_site_file" = xNONE && continue |
2336 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2337 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2338 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2339 |
sed 's/^/| /' "$ac_site_file" >&5 |
2340 |
. "$ac_site_file" \ |
2341 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2342 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2343 |
as_fn_error $? "failed to load site script $ac_site_file |
2344 |
See \`config.log' for more details" "$LINENO" 5; } |
2345 |
fi |
2346 |
done |
2347 |
|
2348 |
if test -r "$cache_file"; then |
2349 |
# Some versions of bash will fail to source /dev/null (special files |
2350 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2351 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2353 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2354 |
case $cache_file in |
2355 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2356 |
*) . "./$cache_file";; |
2357 |
esac |
2358 |
fi |
2359 |
else |
2360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2361 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2362 |
>$cache_file |
2363 |
fi |
2364 |
|
2365 |
as_fn_append ac_func_list " mmap" |
2366 |
as_fn_append ac_func_list " strtok_r" |
2367 |
as_fn_append ac_func_list " usleep" |
2368 |
as_fn_append ac_func_list " strlcat" |
2369 |
as_fn_append ac_func_list " strlcpy" |
2370 |
as_fn_append ac_func_list " socketpair" |
2371 |
as_fn_append ac_header_list " crypt.h" |
2372 |
as_fn_append ac_header_list " inttypes.h" |
2373 |
as_fn_append ac_header_list " stdint.h" |
2374 |
as_fn_append ac_header_list " sys/resource.h" |
2375 |
as_fn_append ac_header_list " sys/param.h" |
2376 |
as_fn_append ac_header_list " errno.h" |
2377 |
as_fn_append ac_header_list " sys/syslog.h" |
2378 |
as_fn_append ac_header_list " types.h" |
2379 |
as_fn_append ac_header_list " socket.h" |
2380 |
as_fn_append ac_header_list " sys/wait.h" |
2381 |
as_fn_append ac_header_list " wait.h" |
2382 |
as_fn_append ac_header_list " link.h" |
2383 |
# Check that the precious variables saved in the cache have kept the same |
2384 |
# value. |
2385 |
ac_cache_corrupted=false |
2386 |
for ac_var in $ac_precious_vars; do |
2387 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2388 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2389 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2390 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2391 |
case $ac_old_set,$ac_new_set in |
2392 |
set,) |
2393 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2394 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2395 |
ac_cache_corrupted=: ;; |
2396 |
,set) |
2397 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2398 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2399 |
ac_cache_corrupted=: ;; |
2400 |
,);; |
2401 |
*) |
2402 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2403 |
# differences in whitespace do not lead to failure. |
2404 |
ac_old_val_w=`echo x $ac_old_val` |
2405 |
ac_new_val_w=`echo x $ac_new_val` |
2406 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2408 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2409 |
ac_cache_corrupted=: |
2410 |
else |
2411 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2412 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2413 |
eval $ac_var=\$ac_old_val |
2414 |
fi |
2415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2416 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2418 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2419 |
fi;; |
2420 |
esac |
2421 |
# Pass precious variables to config.status. |
2422 |
if test "$ac_new_set" = set; then |
2423 |
case $ac_new_val in |
2424 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2425 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2426 |
esac |
2427 |
case " $ac_configure_args " in |
2428 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2429 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2430 |
esac |
2431 |
fi |
2432 |
done |
2433 |
if $ac_cache_corrupted; then |
2434 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2435 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2437 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2438 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2439 |
fi |
2440 |
## -------------------- ## |
2441 |
## Main body of script. ## |
2442 |
## -------------------- ## |
2443 |
|
2444 |
ac_ext=c |
2445 |
ac_cpp='$CPP $CPPFLAGS' |
2446 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2447 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2448 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2449 |
|
2450 |
|
2451 |
am__api_version='1.11' |
2452 |
|
2453 |
ac_aux_dir= |
2454 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2455 |
if test -f "$ac_dir/install-sh"; then |
2456 |
ac_aux_dir=$ac_dir |
2457 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2458 |
break |
2459 |
elif test -f "$ac_dir/install.sh"; then |
2460 |
ac_aux_dir=$ac_dir |
2461 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2462 |
break |
2463 |
elif test -f "$ac_dir/shtool"; then |
2464 |
ac_aux_dir=$ac_dir |
2465 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2466 |
break |
2467 |
fi |
2468 |
done |
2469 |
if test -z "$ac_aux_dir"; then |
2470 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2471 |
fi |
2472 |
|
2473 |
# These three variables are undocumented and unsupported, |
2474 |
# and are intended to be withdrawn in a future Autoconf release. |
2475 |
# They can cause serious problems if a builder's source tree is in a directory |
2476 |
# whose full name contains unusual characters. |
2477 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2478 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2479 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2480 |
|
2481 |
|
2482 |
# Find a good install program. We prefer a C program (faster), |
2483 |
# so one script is as good as another. But avoid the broken or |
2484 |
# incompatible versions: |
2485 |
# SysV /etc/install, /usr/sbin/install |
2486 |
# SunOS /usr/etc/install |
2487 |
# IRIX /sbin/install |
2488 |
# AIX /bin/install |
2489 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2490 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2491 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2492 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2493 |
# OS/2's system install, which has a completely different semantic |
2494 |
# ./install, which can be erroneously created by make from ./install.sh. |
2495 |
# Reject install programs that cannot install multiple files. |
2496 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2497 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2498 |
if test -z "$INSTALL"; then |
2499 |
if ${ac_cv_path_install+:} false; then : |
2500 |
$as_echo_n "(cached) " >&6 |
2501 |
else |
2502 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2503 |
for as_dir in $PATH |
2504 |
do |
2505 |
IFS=$as_save_IFS |
2506 |
test -z "$as_dir" && as_dir=. |
2507 |
# Account for people who put trailing slashes in PATH elements. |
2508 |
case $as_dir/ in #(( |
2509 |
./ | .// | /[cC]/* | \ |
2510 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2511 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2512 |
/usr/ucb/* ) ;; |
2513 |
*) |
2514 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2515 |
# Don't use installbsd from OSF since it installs stuff as root |
2516 |
# by default. |
2517 |
for ac_prog in ginstall scoinst install; do |
2518 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2519 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2520 |
if test $ac_prog = install && |
2521 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2522 |
# AIX install. It has an incompatible calling convention. |
2523 |
: |
2524 |
elif test $ac_prog = install && |
2525 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2526 |
# program-specific install script used by HP pwplus--don't use. |
2527 |
: |
2528 |
else |
2529 |
rm -rf conftest.one conftest.two conftest.dir |
2530 |
echo one > conftest.one |
2531 |
echo two > conftest.two |
2532 |
mkdir conftest.dir |
2533 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2534 |
test -s conftest.one && test -s conftest.two && |
2535 |
test -s conftest.dir/conftest.one && |
2536 |
test -s conftest.dir/conftest.two |
2537 |
then |
2538 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2539 |
break 3 |
2540 |
fi |
2541 |
fi |
2542 |
fi |
2543 |
done |
2544 |
done |
2545 |
;; |
2546 |
esac |
2547 |
|
2548 |
done |
2549 |
IFS=$as_save_IFS |
2550 |
|
2551 |
rm -rf conftest.one conftest.two conftest.dir |
2552 |
|
2553 |
fi |
2554 |
if test "${ac_cv_path_install+set}" = set; then |
2555 |
INSTALL=$ac_cv_path_install |
2556 |
else |
2557 |
# As a last resort, use the slow shell script. Don't cache a |
2558 |
# value for INSTALL within a source directory, because that will |
2559 |
# break other packages using the cache if that directory is |
2560 |
# removed, or if the value is a relative name. |
2561 |
INSTALL=$ac_install_sh |
2562 |
fi |
2563 |
fi |
2564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2565 |
$as_echo "$INSTALL" >&6; } |
2566 |
|
2567 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2568 |
# It thinks the first close brace ends the variable substitution. |
2569 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2570 |
|
2571 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2572 |
|
2573 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2574 |
|
2575 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2576 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
2577 |
# Just in case |
2578 |
sleep 1 |
2579 |
echo timestamp > conftest.file |
2580 |
# Reject unsafe characters in $srcdir or the absolute working directory |
2581 |
# name. Accept space and tab only in the latter. |
2582 |
am_lf=' |
2583 |
' |
2584 |
case `pwd` in |
2585 |
*[\\\"\#\$\&\'\`$am_lf]*) |
2586 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
2587 |
esac |
2588 |
case $srcdir in |
2589 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2590 |
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
2591 |
esac |
2592 |
|
2593 |
# Do `set' in a subshell so we don't clobber the current shell's |
2594 |
# arguments. Must try -L first in case configure is actually a |
2595 |
# symlink; some systems play weird games with the mod time of symlinks |
2596 |
# (eg FreeBSD returns the mod time of the symlink's containing |
2597 |
# directory). |
2598 |
if ( |
2599 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2600 |
if test "$*" = "X"; then |
2601 |
# -L didn't work. |
2602 |
set X `ls -t "$srcdir/configure" conftest.file` |
2603 |
fi |
2604 |
rm -f conftest.file |
2605 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2606 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2607 |
|
2608 |
# If neither matched, then we have a broken ls. This can happen |
2609 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2610 |
# broken ls alias from the environment. This has actually |
2611 |
# happened. Such a system could not be considered "sane". |
2612 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2613 |
alias in your environment" "$LINENO" 5 |
2614 |
fi |
2615 |
|
2616 |
test "$2" = conftest.file |
2617 |
) |
2618 |
then |
2619 |
# Ok. |
2620 |
: |
2621 |
else |
2622 |
as_fn_error $? "newly created file is older than distributed files! |
2623 |
Check your system clock" "$LINENO" 5 |
2624 |
fi |
2625 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2626 |
$as_echo "yes" >&6; } |
2627 |
test "$program_prefix" != NONE && |
2628 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2629 |
# Use a double $ so make ignores it. |
2630 |
test "$program_suffix" != NONE && |
2631 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2632 |
# Double any \ or $. |
2633 |
# By default was `s,x,x', remove it if useless. |
2634 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2635 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2636 |
|
2637 |
# expand $ac_aux_dir to an absolute path |
2638 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
2639 |
|
2640 |
if test x"${MISSING+set}" != xset; then |
2641 |
case $am_aux_dir in |
2642 |
*\ * | *\ *) |
2643 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2644 |
*) |
2645 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2646 |
esac |
2647 |
fi |
2648 |
# Use eval to expand $SHELL |
2649 |
if eval "$MISSING --run true"; then |
2650 |
am_missing_run="$MISSING --run " |
2651 |
else |
2652 |
am_missing_run= |
2653 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2654 |
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2655 |
fi |
2656 |
|
2657 |
if test x"${install_sh}" != xset; then |
2658 |
case $am_aux_dir in |
2659 |
*\ * | *\ *) |
2660 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2661 |
*) |
2662 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
2663 |
esac |
2664 |
fi |
2665 |
|
2666 |
# Installed binaries are usually stripped using `strip' when the user |
2667 |
# run `make install-strip'. However `strip' might not be the right |
2668 |
# tool to use in cross-compilation environments, therefore Automake |
2669 |
# will honor the `STRIP' environment variable to overrule this program. |
2670 |
if test "$cross_compiling" != no; then |
2671 |
if test -n "$ac_tool_prefix"; then |
2672 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2673 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2674 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2675 |
$as_echo_n "checking for $ac_word... " >&6; } |
2676 |
if ${ac_cv_prog_STRIP+:} false; then : |
2677 |
$as_echo_n "(cached) " >&6 |
2678 |
else |
2679 |
if test -n "$STRIP"; then |
2680 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2681 |
else |
2682 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2683 |
for as_dir in $PATH |
2684 |
do |
2685 |
IFS=$as_save_IFS |
2686 |
test -z "$as_dir" && as_dir=. |
2687 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2688 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2689 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2690 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2691 |
break 2 |
2692 |
fi |
2693 |
done |
2694 |
done |
2695 |
IFS=$as_save_IFS |
2696 |
|
2697 |
fi |
2698 |
fi |
2699 |
STRIP=$ac_cv_prog_STRIP |
2700 |
if test -n "$STRIP"; then |
2701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2702 |
$as_echo "$STRIP" >&6; } |
2703 |
else |
2704 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2705 |
$as_echo "no" >&6; } |
2706 |
fi |
2707 |
|
2708 |
|
2709 |
fi |
2710 |
if test -z "$ac_cv_prog_STRIP"; then |
2711 |
ac_ct_STRIP=$STRIP |
2712 |
# Extract the first word of "strip", so it can be a program name with args. |
2713 |
set dummy strip; ac_word=$2 |
2714 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2715 |
$as_echo_n "checking for $ac_word... " >&6; } |
2716 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
2717 |
$as_echo_n "(cached) " >&6 |
2718 |
else |
2719 |
if test -n "$ac_ct_STRIP"; then |
2720 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2721 |
else |
2722 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2723 |
for as_dir in $PATH |
2724 |
do |
2725 |
IFS=$as_save_IFS |
2726 |
test -z "$as_dir" && as_dir=. |
2727 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2728 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2729 |
ac_cv_prog_ac_ct_STRIP="strip" |
2730 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2731 |
break 2 |
2732 |
fi |
2733 |
done |
2734 |
done |
2735 |
IFS=$as_save_IFS |
2736 |
|
2737 |
fi |
2738 |
fi |
2739 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2740 |
if test -n "$ac_ct_STRIP"; then |
2741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2742 |
$as_echo "$ac_ct_STRIP" >&6; } |
2743 |
else |
2744 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2745 |
$as_echo "no" >&6; } |
2746 |
fi |
2747 |
|
2748 |
if test "x$ac_ct_STRIP" = x; then |
2749 |
STRIP=":" |
2750 |
else |
2751 |
case $cross_compiling:$ac_tool_warned in |
2752 |
yes:) |
2753 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2754 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2755 |
ac_tool_warned=yes ;; |
2756 |
esac |
2757 |
STRIP=$ac_ct_STRIP |
2758 |
fi |
2759 |
else |
2760 |
STRIP="$ac_cv_prog_STRIP" |
2761 |
fi |
2762 |
|
2763 |
fi |
2764 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2765 |
|
2766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2767 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2768 |
if test -z "$MKDIR_P"; then |
2769 |
if ${ac_cv_path_mkdir+:} false; then : |
2770 |
$as_echo_n "(cached) " >&6 |
2771 |
else |
2772 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2773 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2774 |
do |
2775 |
IFS=$as_save_IFS |
2776 |
test -z "$as_dir" && as_dir=. |
2777 |
for ac_prog in mkdir gmkdir; do |
2778 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2779 |
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2780 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2781 |
'mkdir (GNU coreutils) '* | \ |
2782 |
'mkdir (coreutils) '* | \ |
2783 |
'mkdir (fileutils) '4.1*) |
2784 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2785 |
break 3;; |
2786 |
esac |
2787 |
done |
2788 |
done |
2789 |
done |
2790 |
IFS=$as_save_IFS |
2791 |
|
2792 |
fi |
2793 |
|
2794 |
test -d ./--version && rmdir ./--version |
2795 |
if test "${ac_cv_path_mkdir+set}" = set; then |
2796 |
MKDIR_P="$ac_cv_path_mkdir -p" |
2797 |
else |
2798 |
# As a last resort, use the slow shell script. Don't cache a |
2799 |
# value for MKDIR_P within a source directory, because that will |
2800 |
# break other packages using the cache if that directory is |
2801 |
# removed, or if the value is a relative name. |
2802 |
MKDIR_P="$ac_install_sh -d" |
2803 |
fi |
2804 |
fi |
2805 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2806 |
$as_echo "$MKDIR_P" >&6; } |
2807 |
|
2808 |
mkdir_p="$MKDIR_P" |
2809 |
case $mkdir_p in |
2810 |
[\\/$]* | ?:[\\/]*) ;; |
2811 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2812 |
esac |
2813 |
|
2814 |
for ac_prog in gawk mawk nawk awk |
2815 |
do |
2816 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2817 |
set dummy $ac_prog; ac_word=$2 |
2818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2819 |
$as_echo_n "checking for $ac_word... " >&6; } |
2820 |
if ${ac_cv_prog_AWK+:} false; then : |
2821 |
$as_echo_n "(cached) " >&6 |
2822 |
else |
2823 |
if test -n "$AWK"; then |
2824 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2825 |
else |
2826 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2827 |
for as_dir in $PATH |
2828 |
do |
2829 |
IFS=$as_save_IFS |
2830 |
test -z "$as_dir" && as_dir=. |
2831 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2832 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2833 |
ac_cv_prog_AWK="$ac_prog" |
2834 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2835 |
break 2 |
2836 |
fi |
2837 |
done |
2838 |
done |
2839 |
IFS=$as_save_IFS |
2840 |
|
2841 |
fi |
2842 |
fi |
2843 |
AWK=$ac_cv_prog_AWK |
2844 |
if test -n "$AWK"; then |
2845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2846 |
$as_echo "$AWK" >&6; } |
2847 |
else |
2848 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2849 |
$as_echo "no" >&6; } |
2850 |
fi |
2851 |
|
2852 |
|
2853 |
test -n "$AWK" && break |
2854 |
done |
2855 |
|
2856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2857 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2858 |
set x ${MAKE-make} |
2859 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2860 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2861 |
$as_echo_n "(cached) " >&6 |
2862 |
else |
2863 |
cat >conftest.make <<\_ACEOF |
2864 |
SHELL = /bin/sh |
2865 |
all: |
2866 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
2867 |
_ACEOF |
2868 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2869 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2870 |
*@@@%%%=?*=@@@%%%*) |
2871 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
2872 |
*) |
2873 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
2874 |
esac |
2875 |
rm -f conftest.make |
2876 |
fi |
2877 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2878 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2879 |
$as_echo "yes" >&6; } |
2880 |
SET_MAKE= |
2881 |
else |
2882 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2883 |
$as_echo "no" >&6; } |
2884 |
SET_MAKE="MAKE=${MAKE-make}" |
2885 |
fi |
2886 |
|
2887 |
rm -rf .tst 2>/dev/null |
2888 |
mkdir .tst 2>/dev/null |
2889 |
if test -d .tst; then |
2890 |
am__leading_dot=. |
2891 |
else |
2892 |
am__leading_dot=_ |
2893 |
fi |
2894 |
rmdir .tst 2>/dev/null |
2895 |
|
2896 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2897 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2898 |
# is not polluted with repeated "-I." |
2899 |
am__isrc=' -I$(srcdir)' |
2900 |
# test to see if srcdir already configured |
2901 |
if test -f $srcdir/config.status; then |
2902 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2903 |
fi |
2904 |
fi |
2905 |
|
2906 |
# test whether we have cygpath |
2907 |
if test -z "$CYGPATH_W"; then |
2908 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
2909 |
CYGPATH_W='cygpath -w' |
2910 |
else |
2911 |
CYGPATH_W=echo |
2912 |
fi |
2913 |
fi |
2914 |
|
2915 |
|
2916 |
# Define the identity of the package. |
2917 |
PACKAGE='ircd-hybrid' |
2918 |
VERSION='8beta1' |
2919 |
|
2920 |
|
2921 |
cat >>confdefs.h <<_ACEOF |
2922 |
#define PACKAGE "$PACKAGE" |
2923 |
_ACEOF |
2924 |
|
2925 |
|
2926 |
cat >>confdefs.h <<_ACEOF |
2927 |
#define VERSION "$VERSION" |
2928 |
_ACEOF |
2929 |
|
2930 |
# Some tools Automake needs. |
2931 |
|
2932 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2933 |
|
2934 |
|
2935 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2936 |
|
2937 |
|
2938 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2939 |
|
2940 |
|
2941 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2942 |
|
2943 |
|
2944 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2945 |
|
2946 |
# We need awk for the "check" target. The system "awk" is bad on |
2947 |
# some platforms. |
2948 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
2949 |
# in the wild :-( We should find a proper way to deprecate it ... |
2950 |
AMTAR='$${TAR-tar}' |
2951 |
|
2952 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2953 |
|
2954 |
|
2955 |
|
2956 |
|
2957 |
|
2958 |
|
2959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2960 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
2961 |
# Check whether --enable-maintainer-mode was given. |
2962 |
if test "${enable_maintainer_mode+set}" = set; then : |
2963 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2964 |
else |
2965 |
USE_MAINTAINER_MODE=no |
2966 |
fi |
2967 |
|
2968 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2969 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
2970 |
if test $USE_MAINTAINER_MODE = yes; then |
2971 |
MAINTAINER_MODE_TRUE= |
2972 |
MAINTAINER_MODE_FALSE='#' |
2973 |
else |
2974 |
MAINTAINER_MODE_TRUE='#' |
2975 |
MAINTAINER_MODE_FALSE= |
2976 |
fi |
2977 |
|
2978 |
MAINT=$MAINTAINER_MODE_TRUE |
2979 |
|
2980 |
|
2981 |
ac_config_headers="$ac_config_headers config.h" |
2982 |
|
2983 |
|
2984 |
|
2985 |
# Checks for programs. |
2986 |
DEPDIR="${am__leading_dot}deps" |
2987 |
|
2988 |
ac_config_commands="$ac_config_commands depfiles" |
2989 |
|
2990 |
|
2991 |
am_make=${MAKE-make} |
2992 |
cat > confinc << 'END' |
2993 |
am__doit: |
2994 |
@echo this is the am__doit target |
2995 |
.PHONY: am__doit |
2996 |
END |
2997 |
# If we don't find an include directive, just comment out the code. |
2998 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
2999 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
3000 |
am__include="#" |
3001 |
am__quote= |
3002 |
_am_result=none |
3003 |
# First try GNU make style include. |
3004 |
echo "include confinc" > confmf |
3005 |
# Ignore all kinds of additional output from `make'. |
3006 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
3007 |
*the\ am__doit\ target*) |
3008 |
am__include=include |
3009 |
am__quote= |
3010 |
_am_result=GNU |
3011 |
;; |
3012 |
esac |
3013 |
# Now try BSD make style include. |
3014 |
if test "$am__include" = "#"; then |
3015 |
echo '.include "confinc"' > confmf |
3016 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
3017 |
*the\ am__doit\ target*) |
3018 |
am__include=.include |
3019 |
am__quote="\"" |
3020 |
_am_result=BSD |
3021 |
;; |
3022 |
esac |
3023 |
fi |
3024 |
|
3025 |
|
3026 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3027 |
$as_echo "$_am_result" >&6; } |
3028 |
rm -f confinc confmf |
3029 |
|
3030 |
# Check whether --enable-dependency-tracking was given. |
3031 |
if test "${enable_dependency_tracking+set}" = set; then : |
3032 |
enableval=$enable_dependency_tracking; |
3033 |
fi |
3034 |
|
3035 |
if test "x$enable_dependency_tracking" != xno; then |
3036 |
am_depcomp="$ac_aux_dir/depcomp" |
3037 |
AMDEPBACKSLASH='\' |
3038 |
am__nodep='_no' |
3039 |
fi |
3040 |
if test "x$enable_dependency_tracking" != xno; then |
3041 |
AMDEP_TRUE= |
3042 |
AMDEP_FALSE='#' |
3043 |
else |
3044 |
AMDEP_TRUE='#' |
3045 |
AMDEP_FALSE= |
3046 |
fi |
3047 |
|
3048 |
|
3049 |
ac_ext=c |
3050 |
ac_cpp='$CPP $CPPFLAGS' |
3051 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3052 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3053 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3054 |
if test -n "$ac_tool_prefix"; then |
3055 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3056 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3058 |
$as_echo_n "checking for $ac_word... " >&6; } |
3059 |
if ${ac_cv_prog_CC+:} false; then : |
3060 |
$as_echo_n "(cached) " >&6 |
3061 |
else |
3062 |
if test -n "$CC"; then |
3063 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3064 |
else |
3065 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3066 |
for as_dir in $PATH |
3067 |
do |
3068 |
IFS=$as_save_IFS |
3069 |
test -z "$as_dir" && as_dir=. |
3070 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3071 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3072 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3073 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3074 |
break 2 |
3075 |
fi |
3076 |
done |
3077 |
done |
3078 |
IFS=$as_save_IFS |
3079 |
|
3080 |
fi |
3081 |
fi |
3082 |
CC=$ac_cv_prog_CC |
3083 |
if test -n "$CC"; then |
3084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3085 |
$as_echo "$CC" >&6; } |
3086 |
else |
3087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3088 |
$as_echo "no" >&6; } |
3089 |
fi |
3090 |
|
3091 |
|
3092 |
fi |
3093 |
if test -z "$ac_cv_prog_CC"; then |
3094 |
ac_ct_CC=$CC |
3095 |
# Extract the first word of "gcc", so it can be a program name with args. |
3096 |
set dummy gcc; ac_word=$2 |
3097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3098 |
$as_echo_n "checking for $ac_word... " >&6; } |
3099 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3100 |
$as_echo_n "(cached) " >&6 |
3101 |
else |
3102 |
if test -n "$ac_ct_CC"; then |
3103 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3104 |
else |
3105 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3106 |
for as_dir in $PATH |
3107 |
do |
3108 |
IFS=$as_save_IFS |
3109 |
test -z "$as_dir" && as_dir=. |
3110 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3111 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3112 |
ac_cv_prog_ac_ct_CC="gcc" |
3113 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3114 |
break 2 |
3115 |
fi |
3116 |
done |
3117 |
done |
3118 |
IFS=$as_save_IFS |
3119 |
|
3120 |
fi |
3121 |
fi |
3122 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3123 |
if test -n "$ac_ct_CC"; then |
3124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3125 |
$as_echo "$ac_ct_CC" >&6; } |
3126 |
else |
3127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3128 |
$as_echo "no" >&6; } |
3129 |
fi |
3130 |
|
3131 |
if test "x$ac_ct_CC" = x; then |
3132 |
CC="" |
3133 |
else |
3134 |
case $cross_compiling:$ac_tool_warned in |
3135 |
yes:) |
3136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3137 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3138 |
ac_tool_warned=yes ;; |
3139 |
esac |
3140 |
CC=$ac_ct_CC |
3141 |
fi |
3142 |
else |
3143 |
CC="$ac_cv_prog_CC" |
3144 |
fi |
3145 |
|
3146 |
if test -z "$CC"; then |
3147 |
if test -n "$ac_tool_prefix"; then |
3148 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3149 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3150 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3151 |
$as_echo_n "checking for $ac_word... " >&6; } |
3152 |
if ${ac_cv_prog_CC+:} false; then : |
3153 |
$as_echo_n "(cached) " >&6 |
3154 |
else |
3155 |
if test -n "$CC"; then |
3156 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3157 |
else |
3158 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3159 |
for as_dir in $PATH |
3160 |
do |
3161 |
IFS=$as_save_IFS |
3162 |
test -z "$as_dir" && as_dir=. |
3163 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3164 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3165 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3166 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3167 |
break 2 |
3168 |
fi |
3169 |
done |
3170 |
done |
3171 |
IFS=$as_save_IFS |
3172 |
|
3173 |
fi |
3174 |
fi |
3175 |
CC=$ac_cv_prog_CC |
3176 |
if test -n "$CC"; then |
3177 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3178 |
$as_echo "$CC" >&6; } |
3179 |
else |
3180 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3181 |
$as_echo "no" >&6; } |
3182 |
fi |
3183 |
|
3184 |
|
3185 |
fi |
3186 |
fi |
3187 |
if test -z "$CC"; then |
3188 |
# Extract the first word of "cc", so it can be a program name with args. |
3189 |
set dummy cc; ac_word=$2 |
3190 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3191 |
$as_echo_n "checking for $ac_word... " >&6; } |
3192 |
if ${ac_cv_prog_CC+:} false; then : |
3193 |
$as_echo_n "(cached) " >&6 |
3194 |
else |
3195 |
if test -n "$CC"; then |
3196 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3197 |
else |
3198 |
ac_prog_rejected=no |
3199 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3200 |
for as_dir in $PATH |
3201 |
do |
3202 |
IFS=$as_save_IFS |
3203 |
test -z "$as_dir" && as_dir=. |
3204 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3205 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3206 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3207 |
ac_prog_rejected=yes |
3208 |
continue |
3209 |
fi |
3210 |
ac_cv_prog_CC="cc" |
3211 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3212 |
break 2 |
3213 |
fi |
3214 |
done |
3215 |
done |
3216 |
IFS=$as_save_IFS |
3217 |
|
3218 |
if test $ac_prog_rejected = yes; then |
3219 |
# We found a bogon in the path, so make sure we never use it. |
3220 |
set dummy $ac_cv_prog_CC |
3221 |
shift |
3222 |
if test $# != 0; then |
3223 |
# We chose a different compiler from the bogus one. |
3224 |
# However, it has the same basename, so the bogon will be chosen |
3225 |
# first if we set CC to just the basename; use the full file name. |
3226 |
shift |
3227 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3228 |
fi |
3229 |
fi |
3230 |
fi |
3231 |
fi |
3232 |
CC=$ac_cv_prog_CC |
3233 |
if test -n "$CC"; then |
3234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3235 |
$as_echo "$CC" >&6; } |
3236 |
else |
3237 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3238 |
$as_echo "no" >&6; } |
3239 |
fi |
3240 |
|
3241 |
|
3242 |
fi |
3243 |
if test -z "$CC"; then |
3244 |
if test -n "$ac_tool_prefix"; then |
3245 |
for ac_prog in cl.exe |
3246 |
do |
3247 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3248 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3249 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3250 |
$as_echo_n "checking for $ac_word... " >&6; } |
3251 |
if ${ac_cv_prog_CC+:} false; then : |
3252 |
$as_echo_n "(cached) " >&6 |
3253 |
else |
3254 |
if test -n "$CC"; then |
3255 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3256 |
else |
3257 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3258 |
for as_dir in $PATH |
3259 |
do |
3260 |
IFS=$as_save_IFS |
3261 |
test -z "$as_dir" && as_dir=. |
3262 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3263 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3264 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3265 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3266 |
break 2 |
3267 |
fi |
3268 |
done |
3269 |
done |
3270 |
IFS=$as_save_IFS |
3271 |
|
3272 |
fi |
3273 |
fi |
3274 |
CC=$ac_cv_prog_CC |
3275 |
if test -n "$CC"; then |
3276 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3277 |
$as_echo "$CC" >&6; } |
3278 |
else |
3279 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3280 |
$as_echo "no" >&6; } |
3281 |
fi |
3282 |
|
3283 |
|
3284 |
test -n "$CC" && break |
3285 |
done |
3286 |
fi |
3287 |
if test -z "$CC"; then |
3288 |
ac_ct_CC=$CC |
3289 |
for ac_prog in cl.exe |
3290 |
do |
3291 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3292 |
set dummy $ac_prog; ac_word=$2 |
3293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3294 |
$as_echo_n "checking for $ac_word... " >&6; } |
3295 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3296 |
$as_echo_n "(cached) " >&6 |
3297 |
else |
3298 |
if test -n "$ac_ct_CC"; then |
3299 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3300 |
else |
3301 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3302 |
for as_dir in $PATH |
3303 |
do |
3304 |
IFS=$as_save_IFS |
3305 |
test -z "$as_dir" && as_dir=. |
3306 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3307 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3308 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3309 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3310 |
break 2 |
3311 |
fi |
3312 |
done |
3313 |
done |
3314 |
IFS=$as_save_IFS |
3315 |
|
3316 |
fi |
3317 |
fi |
3318 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3319 |
if test -n "$ac_ct_CC"; then |
3320 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3321 |
$as_echo "$ac_ct_CC" >&6; } |
3322 |
else |
3323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3324 |
$as_echo "no" >&6; } |
3325 |
fi |
3326 |
|
3327 |
|
3328 |
test -n "$ac_ct_CC" && break |
3329 |
done |
3330 |
|
3331 |
if test "x$ac_ct_CC" = x; then |
3332 |
CC="" |
3333 |
else |
3334 |
case $cross_compiling:$ac_tool_warned in |
3335 |
yes:) |
3336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3337 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3338 |
ac_tool_warned=yes ;; |
3339 |
esac |
3340 |
CC=$ac_ct_CC |
3341 |
fi |
3342 |
fi |
3343 |
|
3344 |
fi |
3345 |
|
3346 |
|
3347 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3348 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3349 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3350 |
See \`config.log' for more details" "$LINENO" 5; } |
3351 |
|
3352 |
# Provide some information about the compiler. |
3353 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3354 |
set X $ac_compile |
3355 |
ac_compiler=$2 |
3356 |
for ac_option in --version -v -V -qversion; do |
3357 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3358 |
case "(($ac_try" in |
3359 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3360 |
*) ac_try_echo=$ac_try;; |
3361 |
esac |
3362 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3363 |
$as_echo "$ac_try_echo"; } >&5 |
3364 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3365 |
ac_status=$? |
3366 |
if test -s conftest.err; then |
3367 |
sed '10a\ |
3368 |
... rest of stderr output deleted ... |
3369 |
10q' conftest.err >conftest.er1 |
3370 |
cat conftest.er1 >&5 |
3371 |
fi |
3372 |
rm -f conftest.er1 conftest.err |
3373 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3374 |
test $ac_status = 0; } |
3375 |
done |
3376 |
|
3377 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3378 |
/* end confdefs.h. */ |
3379 |
|
3380 |
int |
3381 |
main () |
3382 |
{ |
3383 |
|
3384 |
; |
3385 |
return 0; |
3386 |
} |
3387 |
_ACEOF |
3388 |
ac_clean_files_save=$ac_clean_files |
3389 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3390 |
# Try to create an executable without -o first, disregard a.out. |
3391 |
# It will help us diagnose broken compilers, and finding out an intuition |
3392 |
# of exeext. |
3393 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3394 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
3395 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3396 |
|
3397 |
# The possible output files: |
3398 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3399 |
|
3400 |
ac_rmfiles= |
3401 |
for ac_file in $ac_files |
3402 |
do |
3403 |
case $ac_file in |
3404 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3405 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3406 |
esac |
3407 |
done |
3408 |
rm -f $ac_rmfiles |
3409 |
|
3410 |
if { { ac_try="$ac_link_default" |
3411 |
case "(($ac_try" in |
3412 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3413 |
*) ac_try_echo=$ac_try;; |
3414 |
esac |
3415 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3416 |
$as_echo "$ac_try_echo"; } >&5 |
3417 |
(eval "$ac_link_default") 2>&5 |
3418 |
ac_status=$? |
3419 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3420 |
test $ac_status = 0; }; then : |
3421 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3422 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3423 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3424 |
# so that the user can short-circuit this test for compilers unknown to |
3425 |
# Autoconf. |
3426 |
for ac_file in $ac_files '' |
3427 |
do |
3428 |
test -f "$ac_file" || continue |
3429 |
case $ac_file in |
3430 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3431 |
;; |
3432 |
[ab].out ) |
3433 |
# We found the default executable, but exeext='' is most |
3434 |
# certainly right. |
3435 |
break;; |
3436 |
*.* ) |
3437 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3438 |
then :; else |
3439 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3440 |
fi |
3441 |
# We set ac_cv_exeext here because the later test for it is not |
3442 |
# safe: cross compilers may not add the suffix if given an `-o' |
3443 |
# argument, so we may need to know it at that point already. |
3444 |
# Even if this section looks crufty: it has the advantage of |
3445 |
# actually working. |
3446 |
break;; |
3447 |
* ) |
3448 |
break;; |
3449 |
esac |
3450 |
done |
3451 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3452 |
|
3453 |
else |
3454 |
ac_file='' |
3455 |
fi |
3456 |
if test -z "$ac_file"; then : |
3457 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3458 |
$as_echo "no" >&6; } |
3459 |
$as_echo "$as_me: failed program was:" >&5 |
3460 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3461 |
|
3462 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3463 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3464 |
as_fn_error 77 "C compiler cannot create executables |
3465 |
See \`config.log' for more details" "$LINENO" 5; } |
3466 |
else |
3467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3468 |
$as_echo "yes" >&6; } |
3469 |
fi |
3470 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3471 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
3472 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3473 |
$as_echo "$ac_file" >&6; } |
3474 |
ac_exeext=$ac_cv_exeext |
3475 |
|
3476 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3477 |
ac_clean_files=$ac_clean_files_save |
3478 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3479 |
$as_echo_n "checking for suffix of executables... " >&6; } |
3480 |
if { { ac_try="$ac_link" |
3481 |
case "(($ac_try" in |
3482 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3483 |
*) ac_try_echo=$ac_try;; |
3484 |
esac |
3485 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3486 |
$as_echo "$ac_try_echo"; } >&5 |
3487 |
(eval "$ac_link") 2>&5 |
3488 |
ac_status=$? |
3489 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3490 |
test $ac_status = 0; }; then : |
3491 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3492 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3493 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3494 |
# `rm'. |
3495 |
for ac_file in conftest.exe conftest conftest.*; do |
3496 |
test -f "$ac_file" || continue |
3497 |
case $ac_file in |
3498 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3499 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3500 |
break;; |
3501 |
* ) break;; |
3502 |
esac |
3503 |
done |
3504 |
else |
3505 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3506 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3507 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3508 |
See \`config.log' for more details" "$LINENO" 5; } |
3509 |
fi |
3510 |
rm -f conftest conftest$ac_cv_exeext |
3511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3512 |
$as_echo "$ac_cv_exeext" >&6; } |
3513 |
|
3514 |
rm -f conftest.$ac_ext |
3515 |
EXEEXT=$ac_cv_exeext |
3516 |
ac_exeext=$EXEEXT |
3517 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3518 |
/* end confdefs.h. */ |
3519 |
#include <stdio.h> |
3520 |
int |
3521 |
main () |
3522 |
{ |
3523 |
FILE *f = fopen ("conftest.out", "w"); |
3524 |
return ferror (f) || fclose (f) != 0; |
3525 |
|
3526 |
; |
3527 |
return 0; |
3528 |
} |
3529 |
_ACEOF |
3530 |
ac_clean_files="$ac_clean_files conftest.out" |
3531 |
# Check that the compiler produces executables we can run. If not, either |
3532 |
# the compiler is broken, or we cross compile. |
3533 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3534 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3535 |
if test "$cross_compiling" != yes; then |
3536 |
{ { ac_try="$ac_link" |
3537 |
case "(($ac_try" in |
3538 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3539 |
*) ac_try_echo=$ac_try;; |
3540 |
esac |
3541 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3542 |
$as_echo "$ac_try_echo"; } >&5 |
3543 |
(eval "$ac_link") 2>&5 |
3544 |
ac_status=$? |
3545 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3546 |
test $ac_status = 0; } |
3547 |
if { ac_try='./conftest$ac_cv_exeext' |
3548 |
{ { case "(($ac_try" in |
3549 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3550 |
*) ac_try_echo=$ac_try;; |
3551 |
esac |
3552 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3553 |
$as_echo "$ac_try_echo"; } >&5 |
3554 |
(eval "$ac_try") 2>&5 |
3555 |
ac_status=$? |
3556 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3557 |
test $ac_status = 0; }; }; then |
3558 |
cross_compiling=no |
3559 |
else |
3560 |
if test "$cross_compiling" = maybe; then |
3561 |
cross_compiling=yes |
3562 |
else |
3563 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3564 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3565 |
as_fn_error $? "cannot run C compiled programs. |
3566 |
If you meant to cross compile, use \`--host'. |
3567 |
See \`config.log' for more details" "$LINENO" 5; } |
3568 |
fi |
3569 |
fi |
3570 |
fi |
3571 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3572 |
$as_echo "$cross_compiling" >&6; } |
3573 |
|
3574 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3575 |
ac_clean_files=$ac_clean_files_save |
3576 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3577 |
$as_echo_n "checking for suffix of object files... " >&6; } |
3578 |
if ${ac_cv_objext+:} false; then : |
3579 |
$as_echo_n "(cached) " >&6 |
3580 |
else |
3581 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3582 |
/* end confdefs.h. */ |
3583 |
|
3584 |
int |
3585 |
main () |
3586 |
{ |
3587 |
|
3588 |
; |
3589 |
return 0; |
3590 |
} |
3591 |
_ACEOF |
3592 |
rm -f conftest.o conftest.obj |
3593 |
if { { ac_try="$ac_compile" |
3594 |
case "(($ac_try" in |
3595 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3596 |
*) ac_try_echo=$ac_try;; |
3597 |
esac |
3598 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3599 |
$as_echo "$ac_try_echo"; } >&5 |
3600 |
(eval "$ac_compile") 2>&5 |
3601 |
ac_status=$? |
3602 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3603 |
test $ac_status = 0; }; then : |
3604 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3605 |
test -f "$ac_file" || continue; |
3606 |
case $ac_file in |
3607 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3608 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3609 |
break;; |
3610 |
esac |
3611 |
done |
3612 |
else |
3613 |
$as_echo "$as_me: failed program was:" >&5 |
3614 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3615 |
|
3616 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3617 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3618 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3619 |
See \`config.log' for more details" "$LINENO" 5; } |
3620 |
fi |
3621 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3622 |
fi |
3623 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3624 |
$as_echo "$ac_cv_objext" >&6; } |
3625 |
OBJEXT=$ac_cv_objext |
3626 |
ac_objext=$OBJEXT |
3627 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3628 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3629 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3630 |
$as_echo_n "(cached) " >&6 |
3631 |
else |
3632 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3633 |
/* end confdefs.h. */ |
3634 |
|
3635 |
int |
3636 |
main () |
3637 |
{ |
3638 |
#ifndef __GNUC__ |
3639 |
choke me |
3640 |
#endif |
3641 |
|
3642 |
; |
3643 |
return 0; |
3644 |
} |
3645 |
_ACEOF |
3646 |
if ac_fn_c_try_compile "$LINENO"; then : |
3647 |
ac_compiler_gnu=yes |
3648 |
else |
3649 |
ac_compiler_gnu=no |
3650 |
fi |
3651 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3652 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3653 |
|
3654 |
fi |
3655 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3656 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3657 |
if test $ac_compiler_gnu = yes; then |
3658 |
GCC=yes |
3659 |
else |
3660 |
GCC= |
3661 |
fi |
3662 |
ac_test_CFLAGS=${CFLAGS+set} |
3663 |
ac_save_CFLAGS=$CFLAGS |
3664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3665 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3666 |
if ${ac_cv_prog_cc_g+:} false; then : |
3667 |
$as_echo_n "(cached) " >&6 |
3668 |
else |
3669 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3670 |
ac_c_werror_flag=yes |
3671 |
ac_cv_prog_cc_g=no |
3672 |
CFLAGS="-g" |
3673 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3674 |
/* end confdefs.h. */ |
3675 |
|
3676 |
int |
3677 |
main () |
3678 |
{ |
3679 |
|
3680 |
; |
3681 |
return 0; |
3682 |
} |
3683 |
_ACEOF |
3684 |
if ac_fn_c_try_compile "$LINENO"; then : |
3685 |
ac_cv_prog_cc_g=yes |
3686 |
else |
3687 |
CFLAGS="" |
3688 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3689 |
/* end confdefs.h. */ |
3690 |
|
3691 |
int |
3692 |
main () |
3693 |
{ |
3694 |
|
3695 |
; |
3696 |
return 0; |
3697 |
} |
3698 |
_ACEOF |
3699 |
if ac_fn_c_try_compile "$LINENO"; then : |
3700 |
|
3701 |
else |
3702 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3703 |
CFLAGS="-g" |
3704 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3705 |
/* end confdefs.h. */ |
3706 |
|
3707 |
int |
3708 |
main () |
3709 |
{ |
3710 |
|
3711 |
; |
3712 |
return 0; |
3713 |
} |
3714 |
_ACEOF |
3715 |
if ac_fn_c_try_compile "$LINENO"; then : |
3716 |
ac_cv_prog_cc_g=yes |
3717 |
fi |
3718 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3719 |
fi |
3720 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3721 |
fi |
3722 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3723 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3724 |
fi |
3725 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3726 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3727 |
if test "$ac_test_CFLAGS" = set; then |
3728 |
CFLAGS=$ac_save_CFLAGS |
3729 |
elif test $ac_cv_prog_cc_g = yes; then |
3730 |
if test "$GCC" = yes; then |
3731 |
CFLAGS="-g -O2" |
3732 |
else |
3733 |
CFLAGS="-g" |
3734 |
fi |
3735 |
else |
3736 |
if test "$GCC" = yes; then |
3737 |
CFLAGS="-O2" |
3738 |
else |
3739 |
CFLAGS= |
3740 |
fi |
3741 |
fi |
3742 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3743 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3744 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3745 |
$as_echo_n "(cached) " >&6 |
3746 |
else |
3747 |
ac_cv_prog_cc_c89=no |
3748 |
ac_save_CC=$CC |
3749 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3750 |
/* end confdefs.h. */ |
3751 |
#include <stdarg.h> |
3752 |
#include <stdio.h> |
3753 |
#include <sys/types.h> |
3754 |
#include <sys/stat.h> |
3755 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3756 |
struct buf { int x; }; |
3757 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3758 |
static char *e (p, i) |
3759 |
char **p; |
3760 |
int i; |
3761 |
{ |
3762 |
return p[i]; |
3763 |
} |
3764 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3765 |
{ |
3766 |
char *s; |
3767 |
va_list v; |
3768 |
va_start (v,p); |
3769 |
s = g (p, va_arg (v,int)); |
3770 |
va_end (v); |
3771 |
return s; |
3772 |
} |
3773 |
|
3774 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3775 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3776 |
These don't provoke an error unfortunately, instead are silently treated |
3777 |
as 'x'. The following induces an error, until -std is added to get |
3778 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3779 |
array size at least. It's necessary to write '\x00'==0 to get something |
3780 |
that's true only with -std. */ |
3781 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3782 |
|
3783 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3784 |
inside strings and character constants. */ |
3785 |
#define FOO(x) 'x' |
3786 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3787 |
|
3788 |
int test (int i, double x); |
3789 |
struct s1 {int (*f) (int a);}; |
3790 |
struct s2 {int (*f) (double a);}; |
3791 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3792 |
int argc; |
3793 |
char **argv; |
3794 |
int |
3795 |
main () |
3796 |
{ |
3797 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3798 |
; |
3799 |
return 0; |
3800 |
} |
3801 |
_ACEOF |
3802 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3803 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3804 |
do |
3805 |
CC="$ac_save_CC $ac_arg" |
3806 |
if ac_fn_c_try_compile "$LINENO"; then : |
3807 |
ac_cv_prog_cc_c89=$ac_arg |
3808 |
fi |
3809 |
rm -f core conftest.err conftest.$ac_objext |
3810 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3811 |
done |
3812 |
rm -f conftest.$ac_ext |
3813 |
CC=$ac_save_CC |
3814 |
|
3815 |
fi |
3816 |
# AC_CACHE_VAL |
3817 |
case "x$ac_cv_prog_cc_c89" in |
3818 |
x) |
3819 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3820 |
$as_echo "none needed" >&6; } ;; |
3821 |
xno) |
3822 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3823 |
$as_echo "unsupported" >&6; } ;; |
3824 |
*) |
3825 |
CC="$CC $ac_cv_prog_cc_c89" |
3826 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3827 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3828 |
esac |
3829 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3830 |
|
3831 |
fi |
3832 |
|
3833 |
ac_ext=c |
3834 |
ac_cpp='$CPP $CPPFLAGS' |
3835 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3836 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3837 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3838 |
|
3839 |
depcc="$CC" am_compiler_list= |
3840 |
|
3841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3842 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
3843 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
3844 |
$as_echo_n "(cached) " >&6 |
3845 |
else |
3846 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3847 |
# We make a subdir and do the tests there. Otherwise we can end up |
3848 |
# making bogus files that we don't know about and never remove. For |
3849 |
# instance it was reported that on HP-UX the gcc test will end up |
3850 |
# making a dummy file named `D' -- because `-MD' means `put the output |
3851 |
# in D'. |
3852 |
rm -rf conftest.dir |
3853 |
mkdir conftest.dir |
3854 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
3855 |
# using a relative directory. |
3856 |
cp "$am_depcomp" conftest.dir |
3857 |
cd conftest.dir |
3858 |
# We will build objects and dependencies in a subdirectory because |
3859 |
# it helps to detect inapplicable dependency modes. For instance |
3860 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
3861 |
# side effect of compilation, but ICC will put the dependencies in |
3862 |
# the current directory while Tru64 will put them in the object |
3863 |
# directory. |
3864 |
mkdir sub |
3865 |
|
3866 |
am_cv_CC_dependencies_compiler_type=none |
3867 |
if test "$am_compiler_list" = ""; then |
3868 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3869 |
fi |
3870 |
am__universal=false |
3871 |
case " $depcc " in #( |
3872 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
3873 |
esac |
3874 |
|
3875 |
for depmode in $am_compiler_list; do |
3876 |
# Setup a source with many dependencies, because some compilers |
3877 |
# like to wrap large dependency lists on column 80 (with \), and |
3878 |
# we should not choose a depcomp mode which is confused by this. |
3879 |
# |
3880 |
# We need to recreate these files for each test, as the compiler may |
3881 |
# overwrite some of them when testing with obscure command lines. |
3882 |
# This happens at least with the AIX C compiler. |
3883 |
: > sub/conftest.c |
3884 |
for i in 1 2 3 4 5 6; do |
3885 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3886 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3887 |
# Solaris 8's {/usr,}/bin/sh. |
3888 |
touch sub/conftst$i.h |
3889 |
done |
3890 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3891 |
|
3892 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
3893 |
# mode. It turns out that the SunPro C++ compiler does not properly |
3894 |
# handle `-M -o', and we need to detect this. Also, some Intel |
3895 |
# versions had trouble with output in subdirs |
3896 |
am__obj=sub/conftest.${OBJEXT-o} |
3897 |
am__minus_obj="-o $am__obj" |
3898 |
case $depmode in |
3899 |
gcc) |
3900 |
# This depmode causes a compiler race in universal mode. |
3901 |
test "$am__universal" = false || continue |
3902 |
;; |
3903 |
nosideeffect) |
3904 |
# after this tag, mechanisms are not by side-effect, so they'll |
3905 |
# only be used when explicitly requested |
3906 |
if test "x$enable_dependency_tracking" = xyes; then |
3907 |
continue |
3908 |
else |
3909 |
break |
3910 |
fi |
3911 |
;; |
3912 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3913 |
# This compiler won't grok `-c -o', but also, the minuso test has |
3914 |
# not run yet. These depmodes are late enough in the game, and |
3915 |
# so weak that their functioning should not be impacted. |
3916 |
am__obj=conftest.${OBJEXT-o} |
3917 |
am__minus_obj= |
3918 |
;; |
3919 |
none) break ;; |
3920 |
esac |
3921 |
if depmode=$depmode \ |
3922 |
source=sub/conftest.c object=$am__obj \ |
3923 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3924 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
3925 |
>/dev/null 2>conftest.err && |
3926 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
3927 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3928 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
3929 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3930 |
# icc doesn't choke on unknown options, it will just issue warnings |
3931 |
# or remarks (even with -Werror). So we grep stderr for any message |
3932 |
# that says an option was ignored or not supported. |
3933 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
3934 |
# icc: Command line warning: ignoring option '-M'; no argument required |
3935 |
# The diagnosis changed in icc 8.0: |
3936 |
# icc: Command line remark: option '-MP' not supported |
3937 |
if (grep 'ignoring option' conftest.err || |
3938 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3939 |
am_cv_CC_dependencies_compiler_type=$depmode |
3940 |
break |
3941 |
fi |
3942 |
fi |
3943 |
done |
3944 |
|
3945 |
cd .. |
3946 |
rm -rf conftest.dir |
3947 |
else |
3948 |
am_cv_CC_dependencies_compiler_type=none |
3949 |
fi |
3950 |
|
3951 |
fi |
3952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3953 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
3954 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3955 |
|
3956 |
if |
3957 |
test "x$enable_dependency_tracking" != xno \ |
3958 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3959 |
am__fastdepCC_TRUE= |
3960 |
am__fastdepCC_FALSE='#' |
3961 |
else |
3962 |
am__fastdepCC_TRUE='#' |
3963 |
am__fastdepCC_FALSE= |
3964 |
fi |
3965 |
|
3966 |
|
3967 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3968 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
3969 |
if ${ac_cv_prog_cc_c99+:} false; then : |
3970 |
$as_echo_n "(cached) " >&6 |
3971 |
else |
3972 |
ac_cv_prog_cc_c99=no |
3973 |
ac_save_CC=$CC |
3974 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3975 |
/* end confdefs.h. */ |
3976 |
#include <stdarg.h> |
3977 |
#include <stdbool.h> |
3978 |
#include <stdlib.h> |
3979 |
#include <wchar.h> |
3980 |
#include <stdio.h> |
3981 |
|
3982 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
3983 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
3984 |
#define showlist(...) puts (#__VA_ARGS__) |
3985 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
3986 |
static void |
3987 |
test_varargs_macros (void) |
3988 |
{ |
3989 |
int x = 1234; |
3990 |
int y = 5678; |
3991 |
debug ("Flag"); |
3992 |
debug ("X = %d\n", x); |
3993 |
showlist (The first, second, and third items.); |
3994 |
report (x>y, "x is %d but y is %d", x, y); |
3995 |
} |
3996 |
|
3997 |
// Check long long types. |
3998 |
#define BIG64 18446744073709551615ull |
3999 |
#define BIG32 4294967295ul |
4000 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
4001 |
#if !BIG_OK |
4002 |
your preprocessor is broken; |
4003 |
#endif |
4004 |
#if BIG_OK |
4005 |
#else |
4006 |
your preprocessor is broken; |
4007 |
#endif |
4008 |
static long long int bignum = -9223372036854775807LL; |
4009 |
static unsigned long long int ubignum = BIG64; |
4010 |
|
4011 |
struct incomplete_array |
4012 |
{ |
4013 |
int datasize; |
4014 |
double data[]; |
4015 |
}; |
4016 |
|
4017 |
struct named_init { |
4018 |
int number; |
4019 |
const wchar_t *name; |
4020 |
double average; |
4021 |
}; |
4022 |
|
4023 |
typedef const char *ccp; |
4024 |
|
4025 |
static inline int |
4026 |
test_restrict (ccp restrict text) |
4027 |
{ |
4028 |
// See if C++-style comments work. |
4029 |
// Iterate through items via the restricted pointer. |
4030 |
// Also check for declarations in for loops. |
4031 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
4032 |
continue; |
4033 |
return 0; |
4034 |
} |
4035 |
|
4036 |
// Check varargs and va_copy. |
4037 |
static void |
4038 |
test_varargs (const char *format, ...) |
4039 |
{ |
4040 |
va_list args; |
4041 |
va_start (args, format); |
4042 |
va_list args_copy; |
4043 |
va_copy (args_copy, args); |
4044 |
|
4045 |
const char *str; |
4046 |
int number; |
4047 |
float fnumber; |
4048 |
|
4049 |
while (*format) |
4050 |
{ |
4051 |
switch (*format++) |
4052 |
{ |
4053 |
case 's': // string |
4054 |
str = va_arg (args_copy, const char *); |
4055 |
break; |
4056 |
case 'd': // int |
4057 |
number = va_arg (args_copy, int); |
4058 |
break; |
4059 |
case 'f': // float |
4060 |
fnumber = va_arg (args_copy, double); |
4061 |
break; |
4062 |
default: |
4063 |
break; |
4064 |
} |
4065 |
} |
4066 |
va_end (args_copy); |
4067 |
va_end (args); |
4068 |
} |
4069 |
|
4070 |
int |
4071 |
main () |
4072 |
{ |
4073 |
|
4074 |
// Check bool. |
4075 |
_Bool success = false; |
4076 |
|
4077 |
// Check restrict. |
4078 |
if (test_restrict ("String literal") == 0) |
4079 |
success = true; |
4080 |
char *restrict newvar = "Another string"; |
4081 |
|
4082 |
// Check varargs. |
4083 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
4084 |
test_varargs_macros (); |
4085 |
|
4086 |
// Check flexible array members. |
4087 |
struct incomplete_array *ia = |
4088 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
4089 |
ia->datasize = 10; |
4090 |
for (int i = 0; i < ia->datasize; ++i) |
4091 |
ia->data[i] = i * 1.234; |
4092 |
|
4093 |
// Check named initializers. |
4094 |
struct named_init ni = { |
4095 |
.number = 34, |
4096 |
.name = L"Test wide string", |
4097 |
.average = 543.34343, |
4098 |
}; |
4099 |
|
4100 |
ni.number = 58; |
4101 |
|
4102 |
int dynamic_array[ni.number]; |
4103 |
dynamic_array[ni.number - 1] = 543; |
4104 |
|
4105 |
// work around unused variable warnings |
4106 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
4107 |
|| dynamic_array[ni.number - 1] != 543); |
4108 |
|
4109 |
; |
4110 |
return 0; |
4111 |
} |
4112 |
_ACEOF |
4113 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
4114 |
do |
4115 |
CC="$ac_save_CC $ac_arg" |
4116 |
if ac_fn_c_try_compile "$LINENO"; then : |
4117 |
ac_cv_prog_cc_c99=$ac_arg |
4118 |
fi |
4119 |
rm -f core conftest.err conftest.$ac_objext |
4120 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
4121 |
done |
4122 |
rm -f conftest.$ac_ext |
4123 |
CC=$ac_save_CC |
4124 |
|
4125 |
fi |
4126 |
# AC_CACHE_VAL |
4127 |
case "x$ac_cv_prog_cc_c99" in |
4128 |
x) |
4129 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4130 |
$as_echo "none needed" >&6; } ;; |
4131 |
xno) |
4132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4133 |
$as_echo "unsupported" >&6; } ;; |
4134 |
*) |
4135 |
CC="$CC $ac_cv_prog_cc_c99" |
4136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
4137 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
4138 |
esac |
4139 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
4140 |
|
4141 |
fi |
4142 |
|
4143 |
|
4144 |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
4145 |
as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5 |
4146 |
fi |
4147 |
for ac_prog in 'bison -y' byacc |
4148 |
do |
4149 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4150 |
set dummy $ac_prog; ac_word=$2 |
4151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4152 |
$as_echo_n "checking for $ac_word... " >&6; } |
4153 |
if ${ac_cv_prog_YACC+:} false; then : |
4154 |
$as_echo_n "(cached) " >&6 |
4155 |
else |
4156 |
if test -n "$YACC"; then |
4157 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
4158 |
else |
4159 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4160 |
for as_dir in $PATH |
4161 |
do |
4162 |
IFS=$as_save_IFS |
4163 |
test -z "$as_dir" && as_dir=. |
4164 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4165 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4166 |
ac_cv_prog_YACC="$ac_prog" |
4167 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4168 |
break 2 |
4169 |
fi |
4170 |
done |
4171 |
done |
4172 |
IFS=$as_save_IFS |
4173 |
|
4174 |
fi |
4175 |
fi |
4176 |
YACC=$ac_cv_prog_YACC |
4177 |
if test -n "$YACC"; then |
4178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
4179 |
$as_echo "$YACC" >&6; } |
4180 |
else |
4181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4182 |
$as_echo "no" >&6; } |
4183 |
fi |
4184 |
|
4185 |
|
4186 |
test -n "$YACC" && break |
4187 |
done |
4188 |
test -n "$YACC" || YACC="yacc" |
4189 |
|
4190 |
|
4191 |
for ac_prog in flex lex |
4192 |
do |
4193 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4194 |
set dummy $ac_prog; ac_word=$2 |
4195 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4196 |
$as_echo_n "checking for $ac_word... " >&6; } |
4197 |
if ${ac_cv_prog_LEX+:} false; then : |
4198 |
$as_echo_n "(cached) " >&6 |
4199 |
else |
4200 |
if test -n "$LEX"; then |
4201 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
4202 |
else |
4203 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4204 |
for as_dir in $PATH |
4205 |
do |
4206 |
IFS=$as_save_IFS |
4207 |
test -z "$as_dir" && as_dir=. |
4208 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4209 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4210 |
ac_cv_prog_LEX="$ac_prog" |
4211 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4212 |
break 2 |
4213 |
fi |
4214 |
done |
4215 |
done |
4216 |
IFS=$as_save_IFS |
4217 |
|
4218 |
fi |
4219 |
fi |
4220 |
LEX=$ac_cv_prog_LEX |
4221 |
if test -n "$LEX"; then |
4222 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
4223 |
$as_echo "$LEX" >&6; } |
4224 |
else |
4225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4226 |
$as_echo "no" >&6; } |
4227 |
fi |
4228 |
|
4229 |
|
4230 |
test -n "$LEX" && break |
4231 |
done |
4232 |
test -n "$LEX" || LEX=":" |
4233 |
|
4234 |
if test "x$LEX" != "x:"; then |
4235 |
cat >conftest.l <<_ACEOF |
4236 |
%% |
4237 |
a { ECHO; } |
4238 |
b { REJECT; } |
4239 |
c { yymore (); } |
4240 |
d { yyless (1); } |
4241 |
e { yyless (input () != 0); } |
4242 |
f { unput (yytext[0]); } |
4243 |
. { BEGIN INITIAL; } |
4244 |
%% |
4245 |
#ifdef YYTEXT_POINTER |
4246 |
extern char *yytext; |
4247 |
#endif |
4248 |
int |
4249 |
main (void) |
4250 |
{ |
4251 |
return ! yylex () + ! yywrap (); |
4252 |
} |
4253 |
_ACEOF |
4254 |
{ { ac_try="$LEX conftest.l" |
4255 |
case "(($ac_try" in |
4256 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4257 |
*) ac_try_echo=$ac_try;; |
4258 |
esac |
4259 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4260 |
$as_echo "$ac_try_echo"; } >&5 |
4261 |
(eval "$LEX conftest.l") 2>&5 |
4262 |
ac_status=$? |
4263 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4264 |
test $ac_status = 0; } |
4265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
4266 |
$as_echo_n "checking lex output file root... " >&6; } |
4267 |
if ${ac_cv_prog_lex_root+:} false; then : |
4268 |
$as_echo_n "(cached) " >&6 |
4269 |
else |
4270 |
|
4271 |
if test -f lex.yy.c; then |
4272 |
ac_cv_prog_lex_root=lex.yy |
4273 |
elif test -f lexyy.c; then |
4274 |
ac_cv_prog_lex_root=lexyy |
4275 |
else |
4276 |
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
4277 |
fi |
4278 |
fi |
4279 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
4280 |
$as_echo "$ac_cv_prog_lex_root" >&6; } |
4281 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
4282 |
|
4283 |
if test -z "${LEXLIB+set}"; then |
4284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
4285 |
$as_echo_n "checking lex library... " >&6; } |
4286 |
if ${ac_cv_lib_lex+:} false; then : |
4287 |
$as_echo_n "(cached) " >&6 |
4288 |
else |
4289 |
|
4290 |
ac_save_LIBS=$LIBS |
4291 |
ac_cv_lib_lex='none needed' |
4292 |
for ac_lib in '' -lfl -ll; do |
4293 |
LIBS="$ac_lib $ac_save_LIBS" |
4294 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4295 |
/* end confdefs.h. */ |
4296 |
`cat $LEX_OUTPUT_ROOT.c` |
4297 |
_ACEOF |
4298 |
if ac_fn_c_try_link "$LINENO"; then : |
4299 |
ac_cv_lib_lex=$ac_lib |
4300 |
fi |
4301 |
rm -f core conftest.err conftest.$ac_objext \ |
4302 |
conftest$ac_exeext conftest.$ac_ext |
4303 |
test "$ac_cv_lib_lex" != 'none needed' && break |
4304 |
done |
4305 |
LIBS=$ac_save_LIBS |
4306 |
|
4307 |
fi |
4308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
4309 |
$as_echo "$ac_cv_lib_lex" >&6; } |
4310 |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
4311 |
fi |
4312 |
|
4313 |
|
4314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
4315 |
$as_echo_n "checking whether yytext is a pointer... " >&6; } |
4316 |
if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
4317 |
$as_echo_n "(cached) " >&6 |
4318 |
else |
4319 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
4320 |
# default is implementation-dependent. Figure out which it is, since |
4321 |
# not all implementations provide the %pointer and %array declarations. |
4322 |
ac_cv_prog_lex_yytext_pointer=no |
4323 |
ac_save_LIBS=$LIBS |
4324 |
LIBS="$LEXLIB $ac_save_LIBS" |
4325 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4326 |
/* end confdefs.h. */ |
4327 |
|
4328 |
#define YYTEXT_POINTER 1 |
4329 |
`cat $LEX_OUTPUT_ROOT.c` |
4330 |
_ACEOF |
4331 |
if ac_fn_c_try_link "$LINENO"; then : |
4332 |
ac_cv_prog_lex_yytext_pointer=yes |
4333 |
fi |
4334 |
rm -f core conftest.err conftest.$ac_objext \ |
4335 |
conftest$ac_exeext conftest.$ac_ext |
4336 |
LIBS=$ac_save_LIBS |
4337 |
|
4338 |
fi |
4339 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4340 |
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
4341 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4342 |
|
4343 |
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
4344 |
|
4345 |
fi |
4346 |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
4347 |
|
4348 |
fi |
4349 |
if test "$LEX" = :; then |
4350 |
LEX=${am_missing_run}flex |
4351 |
fi |
4352 |
|
4353 |
|
4354 |
# Initializing libtool. |
4355 |
|
4356 |
|
4357 |
|
4358 |
|
4359 |
|
4360 |
|
4361 |
|
4362 |
case `pwd` in |
4363 |
*\ * | *\ *) |
4364 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4365 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
4366 |
esac |
4367 |
|
4368 |
|
4369 |
|
4370 |
macro_version='2.4.2' |
4371 |
macro_revision='1.3337' |
4372 |
|
4373 |
|
4374 |
|
4375 |
|
4376 |
|
4377 |
|
4378 |
|
4379 |
|
4380 |
|
4381 |
|
4382 |
|
4383 |
|
4384 |
|
4385 |
ltmain="$ac_aux_dir/ltmain.sh" |
4386 |
|
4387 |
# Make sure we can run config.sub. |
4388 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4389 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
4390 |
|
4391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4392 |
$as_echo_n "checking build system type... " >&6; } |
4393 |
if ${ac_cv_build+:} false; then : |
4394 |
$as_echo_n "(cached) " >&6 |
4395 |
else |
4396 |
ac_build_alias=$build_alias |
4397 |
test "x$ac_build_alias" = x && |
4398 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4399 |
test "x$ac_build_alias" = x && |
4400 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
4401 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4402 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
4403 |
|
4404 |
fi |
4405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
4406 |
$as_echo "$ac_cv_build" >&6; } |
4407 |
case $ac_cv_build in |
4408 |
*-*-*) ;; |
4409 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
4410 |
esac |
4411 |
build=$ac_cv_build |
4412 |
ac_save_IFS=$IFS; IFS='-' |
4413 |
set x $ac_cv_build |
4414 |
shift |
4415 |
build_cpu=$1 |
4416 |
build_vendor=$2 |
4417 |
shift; shift |
4418 |
# Remember, the first character of IFS is used to create $*, |
4419 |
# except with old shells: |
4420 |
build_os=$* |
4421 |
IFS=$ac_save_IFS |
4422 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4423 |
|
4424 |
|
4425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4426 |
$as_echo_n "checking host system type... " >&6; } |
4427 |
if ${ac_cv_host+:} false; then : |
4428 |
$as_echo_n "(cached) " >&6 |
4429 |
else |
4430 |
if test "x$host_alias" = x; then |
4431 |
ac_cv_host=$ac_cv_build |
4432 |
else |
4433 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4434 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
4435 |
fi |
4436 |
|
4437 |
fi |
4438 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4439 |
$as_echo "$ac_cv_host" >&6; } |
4440 |
case $ac_cv_host in |
4441 |
*-*-*) ;; |
4442 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4443 |
esac |
4444 |
host=$ac_cv_host |
4445 |
ac_save_IFS=$IFS; IFS='-' |
4446 |
set x $ac_cv_host |
4447 |
shift |
4448 |
host_cpu=$1 |
4449 |
host_vendor=$2 |
4450 |
shift; shift |
4451 |
# Remember, the first character of IFS is used to create $*, |
4452 |
# except with old shells: |
4453 |
host_os=$* |
4454 |
IFS=$ac_save_IFS |
4455 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4456 |
|
4457 |
|
4458 |
# Backslashify metacharacters that are still active within |
4459 |
# double-quoted strings. |
4460 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
4461 |
|
4462 |
# Same as above, but do not quote variable references. |
4463 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
4464 |
|
4465 |
# Sed substitution to delay expansion of an escaped shell variable in a |
4466 |
# double_quote_subst'ed string. |
4467 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
4468 |
|
4469 |
# Sed substitution to delay expansion of an escaped single quote. |
4470 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
4471 |
|
4472 |
# Sed substitution to avoid accidental globbing in evaled expressions |
4473 |
no_glob_subst='s/\*/\\\*/g' |
4474 |
|
4475 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4476 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
4477 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
4478 |
|
4479 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
4480 |
$as_echo_n "checking how to print strings... " >&6; } |
4481 |
# Test print first, because it will be a builtin if present. |
4482 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
4483 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4484 |
ECHO='print -r --' |
4485 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
4486 |
ECHO='printf %s\n' |
4487 |
else |
4488 |
# Use this function as a fallback that always works. |
4489 |
func_fallback_echo () |
4490 |
{ |
4491 |
eval 'cat <<_LTECHO_EOF |
4492 |
$1 |
4493 |
_LTECHO_EOF' |
4494 |
} |
4495 |
ECHO='func_fallback_echo' |
4496 |
fi |
4497 |
|
4498 |
# func_echo_all arg... |
4499 |
# Invoke $ECHO with all args, space-separated. |
4500 |
func_echo_all () |
4501 |
{ |
4502 |
$ECHO "" |
4503 |
} |
4504 |
|
4505 |
case "$ECHO" in |
4506 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4507 |
$as_echo "printf" >&6; } ;; |
4508 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
4509 |
$as_echo "print -r" >&6; } ;; |
4510 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
4511 |
$as_echo "cat" >&6; } ;; |
4512 |
esac |
4513 |
|
4514 |
|
4515 |
|
4516 |
|
4517 |
|
4518 |
|
4519 |
|
4520 |
|
4521 |
|
4522 |
|
4523 |
|
4524 |
|
4525 |
|
4526 |
|
4527 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4528 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4529 |
if ${ac_cv_path_SED+:} false; then : |
4530 |
$as_echo_n "(cached) " >&6 |
4531 |
else |
4532 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4533 |
for ac_i in 1 2 3 4 5 6 7; do |
4534 |
ac_script="$ac_script$as_nl$ac_script" |
4535 |
done |
4536 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
4537 |
{ ac_script=; unset ac_script;} |
4538 |
if test -z "$SED"; then |
4539 |
ac_path_SED_found=false |
4540 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4541 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4542 |
for as_dir in $PATH |
4543 |
do |
4544 |
IFS=$as_save_IFS |
4545 |
test -z "$as_dir" && as_dir=. |
4546 |
for ac_prog in sed gsed; do |
4547 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4548 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4549 |
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
4550 |
# Check for GNU ac_path_SED and select it if it is found. |
4551 |
# Check for GNU $ac_path_SED |
4552 |
case `"$ac_path_SED" --version 2>&1` in |
4553 |
*GNU*) |
4554 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
4555 |
*) |
4556 |
ac_count=0 |
4557 |
$as_echo_n 0123456789 >"conftest.in" |
4558 |
while : |
4559 |
do |
4560 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4561 |
mv "conftest.tmp" "conftest.in" |
4562 |
cp "conftest.in" "conftest.nl" |
4563 |
$as_echo '' >> "conftest.nl" |
4564 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4565 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4566 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4567 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
4568 |
# Best one so far, save it but keep looking for a better one |
4569 |
ac_cv_path_SED="$ac_path_SED" |
4570 |
ac_path_SED_max=$ac_count |
4571 |
fi |
4572 |
# 10*(2^10) chars as input seems more than enough |
4573 |
test $ac_count -gt 10 && break |
4574 |
done |
4575 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4576 |
esac |
4577 |
|
4578 |
$ac_path_SED_found && break 3 |
4579 |
done |
4580 |
done |
4581 |
done |
4582 |
IFS=$as_save_IFS |
4583 |
if test -z "$ac_cv_path_SED"; then |
4584 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
4585 |
fi |
4586 |
else |
4587 |
ac_cv_path_SED=$SED |
4588 |
fi |
4589 |
|
4590 |
fi |
4591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4592 |
$as_echo "$ac_cv_path_SED" >&6; } |
4593 |
SED="$ac_cv_path_SED" |
4594 |
rm -f conftest.sed |
4595 |
|
4596 |
test -z "$SED" && SED=sed |
4597 |
Xsed="$SED -e 1s/^X//" |
4598 |
|
4599 |
|
4600 |
|
4601 |
|
4602 |
|
4603 |
|
4604 |
|
4605 |
|
4606 |
|
4607 |
|
4608 |
|
4609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4610 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4611 |
if ${ac_cv_path_GREP+:} false; then : |
4612 |
$as_echo_n "(cached) " >&6 |
4613 |
else |
4614 |
if test -z "$GREP"; then |
4615 |
ac_path_GREP_found=false |
4616 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4617 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4618 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4619 |
do |
4620 |
IFS=$as_save_IFS |
4621 |
test -z "$as_dir" && as_dir=. |
4622 |
for ac_prog in grep ggrep; do |
4623 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4624 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4625 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4626 |
# Check for GNU ac_path_GREP and select it if it is found. |
4627 |
# Check for GNU $ac_path_GREP |
4628 |
case `"$ac_path_GREP" --version 2>&1` in |
4629 |
*GNU*) |
4630 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4631 |
*) |
4632 |
ac_count=0 |
4633 |
$as_echo_n 0123456789 >"conftest.in" |
4634 |
while : |
4635 |
do |
4636 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4637 |
mv "conftest.tmp" "conftest.in" |
4638 |
cp "conftest.in" "conftest.nl" |
4639 |
$as_echo 'GREP' >> "conftest.nl" |
4640 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4641 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4642 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4643 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4644 |
# Best one so far, save it but keep looking for a better one |
4645 |
ac_cv_path_GREP="$ac_path_GREP" |
4646 |
ac_path_GREP_max=$ac_count |
4647 |
fi |
4648 |
# 10*(2^10) chars as input seems more than enough |
4649 |
test $ac_count -gt 10 && break |
4650 |
done |
4651 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4652 |
esac |
4653 |
|
4654 |
$ac_path_GREP_found && break 3 |
4655 |
done |
4656 |
done |
4657 |
done |
4658 |
IFS=$as_save_IFS |
4659 |
if test -z "$ac_cv_path_GREP"; then |
4660 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4661 |
fi |
4662 |
else |
4663 |
ac_cv_path_GREP=$GREP |
4664 |
fi |
4665 |
|
4666 |
fi |
4667 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4668 |
$as_echo "$ac_cv_path_GREP" >&6; } |
4669 |
GREP="$ac_cv_path_GREP" |
4670 |
|
4671 |
|
4672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4673 |
$as_echo_n "checking for egrep... " >&6; } |
4674 |
if ${ac_cv_path_EGREP+:} false; then : |
4675 |
$as_echo_n "(cached) " >&6 |
4676 |
else |
4677 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4678 |
then ac_cv_path_EGREP="$GREP -E" |
4679 |
else |
4680 |
if test -z "$EGREP"; then |
4681 |
ac_path_EGREP_found=false |
4682 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4683 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4684 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4685 |
do |
4686 |
IFS=$as_save_IFS |
4687 |
test -z "$as_dir" && as_dir=. |
4688 |
for ac_prog in egrep; do |
4689 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4690 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4691 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4692 |
# Check for GNU ac_path_EGREP and select it if it is found. |
4693 |
# Check for GNU $ac_path_EGREP |
4694 |
case `"$ac_path_EGREP" --version 2>&1` in |
4695 |
*GNU*) |
4696 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4697 |
*) |
4698 |
ac_count=0 |
4699 |
$as_echo_n 0123456789 >"conftest.in" |
4700 |
while : |
4701 |
do |
4702 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4703 |
mv "conftest.tmp" "conftest.in" |
4704 |
cp "conftest.in" "conftest.nl" |
4705 |
$as_echo 'EGREP' >> "conftest.nl" |
4706 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4707 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4708 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4709 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4710 |
# Best one so far, save it but keep looking for a better one |
4711 |
ac_cv_path_EGREP="$ac_path_EGREP" |
4712 |
ac_path_EGREP_max=$ac_count |
4713 |
fi |
4714 |
# 10*(2^10) chars as input seems more than enough |
4715 |
test $ac_count -gt 10 && break |
4716 |
done |
4717 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4718 |
esac |
4719 |
|
4720 |
$ac_path_EGREP_found && break 3 |
4721 |
done |
4722 |
done |
4723 |
done |
4724 |
IFS=$as_save_IFS |
4725 |
if test -z "$ac_cv_path_EGREP"; then |
4726 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4727 |
fi |
4728 |
else |
4729 |
ac_cv_path_EGREP=$EGREP |
4730 |
fi |
4731 |
|
4732 |
fi |
4733 |
fi |
4734 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4735 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
4736 |
EGREP="$ac_cv_path_EGREP" |
4737 |
|
4738 |
|
4739 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4740 |
$as_echo_n "checking for fgrep... " >&6; } |
4741 |
if ${ac_cv_path_FGREP+:} false; then : |
4742 |
$as_echo_n "(cached) " >&6 |
4743 |
else |
4744 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4745 |
then ac_cv_path_FGREP="$GREP -F" |
4746 |
else |
4747 |
if test -z "$FGREP"; then |
4748 |
ac_path_FGREP_found=false |
4749 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4750 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4751 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4752 |
do |
4753 |
IFS=$as_save_IFS |
4754 |
test -z "$as_dir" && as_dir=. |
4755 |
for ac_prog in fgrep; do |
4756 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4757 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4758 |
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
4759 |
# Check for GNU ac_path_FGREP and select it if it is found. |
4760 |
# Check for GNU $ac_path_FGREP |
4761 |
case `"$ac_path_FGREP" --version 2>&1` in |
4762 |
*GNU*) |
4763 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
4764 |
*) |
4765 |
ac_count=0 |
4766 |
$as_echo_n 0123456789 >"conftest.in" |
4767 |
while : |
4768 |
do |
4769 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4770 |
mv "conftest.tmp" "conftest.in" |
4771 |
cp "conftest.in" "conftest.nl" |
4772 |
$as_echo 'FGREP' >> "conftest.nl" |
4773 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4774 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4775 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4776 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4777 |
# Best one so far, save it but keep looking for a better one |
4778 |
ac_cv_path_FGREP="$ac_path_FGREP" |
4779 |
ac_path_FGREP_max=$ac_count |
4780 |
fi |
4781 |
# 10*(2^10) chars as input seems more than enough |
4782 |
test $ac_count -gt 10 && break |
4783 |
done |
4784 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4785 |
esac |
4786 |
|
4787 |
$ac_path_FGREP_found && break 3 |
4788 |
done |
4789 |
done |
4790 |
done |
4791 |
IFS=$as_save_IFS |
4792 |
if test -z "$ac_cv_path_FGREP"; then |
4793 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4794 |
fi |
4795 |
else |
4796 |
ac_cv_path_FGREP=$FGREP |
4797 |
fi |
4798 |
|
4799 |
fi |
4800 |
fi |
4801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4802 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
4803 |
FGREP="$ac_cv_path_FGREP" |
4804 |
|
4805 |
|
4806 |
test -z "$GREP" && GREP=grep |
4807 |
|
4808 |
|
4809 |
|
4810 |
|
4811 |
|
4812 |
|
4813 |
|
4814 |
|
4815 |
|
4816 |
|
4817 |
|
4818 |
|
4819 |
|
4820 |
|
4821 |
|
4822 |
|
4823 |
|
4824 |
|
4825 |
|
4826 |
# Check whether --with-gnu-ld was given. |
4827 |
if test "${with_gnu_ld+set}" = set; then : |
4828 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
4829 |
else |
4830 |
with_gnu_ld=no |
4831 |
fi |
4832 |
|
4833 |
ac_prog=ld |
4834 |
if test "$GCC" = yes; then |
4835 |
# Check if gcc -print-prog-name=ld gives a path. |
4836 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4837 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
4838 |
case $host in |
4839 |
*-*-mingw*) |
4840 |
# gcc leaves a trailing carriage return which upsets mingw |
4841 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4842 |
*) |
4843 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4844 |
esac |
4845 |
case $ac_prog in |
4846 |
# Accept absolute paths. |
4847 |
[\\/]* | ?:[\\/]*) |
4848 |
re_direlt='/[^/][^/]*/\.\./' |
4849 |
# Canonicalize the pathname of ld |
4850 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4851 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4852 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4853 |
done |
4854 |
test -z "$LD" && LD="$ac_prog" |
4855 |
;; |
4856 |
"") |
4857 |
# If it fails, then pretend we aren't using GCC. |
4858 |
ac_prog=ld |
4859 |
;; |
4860 |
*) |
4861 |
# If it is relative, then search for the first ld in PATH. |
4862 |
with_gnu_ld=unknown |
4863 |
;; |
4864 |
esac |
4865 |
elif test "$with_gnu_ld" = yes; then |
4866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4867 |
$as_echo_n "checking for GNU ld... " >&6; } |
4868 |
else |
4869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4870 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
4871 |
fi |
4872 |
if ${lt_cv_path_LD+:} false; then : |
4873 |
$as_echo_n "(cached) " >&6 |
4874 |
else |
4875 |
if test -z "$LD"; then |
4876 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4877 |
for ac_dir in $PATH; do |
4878 |
IFS="$lt_save_ifs" |
4879 |
test -z "$ac_dir" && ac_dir=. |
4880 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4881 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
4882 |
# Check to see if the program is GNU ld. I'd rather use --version, |
4883 |
# but apparently some variants of GNU ld only accept -v. |
4884 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4885 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4886 |
*GNU* | *'with BFD'*) |
4887 |
test "$with_gnu_ld" != no && break |
4888 |
;; |
4889 |
*) |
4890 |
test "$with_gnu_ld" != yes && break |
4891 |
;; |
4892 |
esac |
4893 |
fi |
4894 |
done |
4895 |
IFS="$lt_save_ifs" |
4896 |
else |
4897 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4898 |
fi |
4899 |
fi |
4900 |
|
4901 |
LD="$lt_cv_path_LD" |
4902 |
if test -n "$LD"; then |
4903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4904 |
$as_echo "$LD" >&6; } |
4905 |
else |
4906 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4907 |
$as_echo "no" >&6; } |
4908 |
fi |
4909 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4911 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4912 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
4913 |
$as_echo_n "(cached) " >&6 |
4914 |
else |
4915 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4916 |
case `$LD -v 2>&1 </dev/null` in |
4917 |
*GNU* | *'with BFD'*) |
4918 |
lt_cv_prog_gnu_ld=yes |
4919 |
;; |
4920 |
*) |
4921 |
lt_cv_prog_gnu_ld=no |
4922 |
;; |
4923 |
esac |
4924 |
fi |
4925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4926 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
4927 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
4928 |
|
4929 |
|
4930 |
|
4931 |
|
4932 |
|
4933 |
|
4934 |
|
4935 |
|
4936 |
|
4937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4938 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
4939 |
if ${lt_cv_path_NM+:} false; then : |
4940 |
$as_echo_n "(cached) " >&6 |
4941 |
else |
4942 |
if test -n "$NM"; then |
4943 |
# Let the user override the test. |
4944 |
lt_cv_path_NM="$NM" |
4945 |
else |
4946 |
lt_nm_to_check="${ac_tool_prefix}nm" |
4947 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4948 |
lt_nm_to_check="$lt_nm_to_check nm" |
4949 |
fi |
4950 |
for lt_tmp_nm in $lt_nm_to_check; do |
4951 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4952 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4953 |
IFS="$lt_save_ifs" |
4954 |
test -z "$ac_dir" && ac_dir=. |
4955 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
4956 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4957 |
# Check to see if the nm accepts a BSD-compat flag. |
4958 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4959 |
# nm: unknown option "B" ignored |
4960 |
# Tru64's nm complains that /dev/null is an invalid object file |
4961 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4962 |
*/dev/null* | *'Invalid file or object type'*) |
4963 |
lt_cv_path_NM="$tmp_nm -B" |
4964 |
break |
4965 |
;; |
4966 |
*) |
4967 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4968 |
*/dev/null*) |
4969 |
lt_cv_path_NM="$tmp_nm -p" |
4970 |
break |
4971 |
;; |
4972 |
*) |
4973 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4974 |
continue # so that we can try to find one that supports BSD flags |
4975 |
;; |
4976 |
esac |
4977 |
;; |
4978 |
esac |
4979 |
fi |
4980 |
done |
4981 |
IFS="$lt_save_ifs" |
4982 |
done |
4983 |
: ${lt_cv_path_NM=no} |
4984 |
fi |
4985 |
fi |
4986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4987 |
$as_echo "$lt_cv_path_NM" >&6; } |
4988 |
if test "$lt_cv_path_NM" != "no"; then |
4989 |
NM="$lt_cv_path_NM" |
4990 |
else |
4991 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
4992 |
if test -n "$DUMPBIN"; then : |
4993 |
# Let the user override the test. |
4994 |
else |
4995 |
if test -n "$ac_tool_prefix"; then |
4996 |
for ac_prog in dumpbin "link -dump" |
4997 |
do |
4998 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4999 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5001 |
$as_echo_n "checking for $ac_word... " >&6; } |
5002 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
5003 |
$as_echo_n "(cached) " >&6 |
5004 |
else |
5005 |
if test -n "$DUMPBIN"; then |
5006 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
5007 |
else |
5008 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5009 |
for as_dir in $PATH |
5010 |
do |
5011 |
IFS=$as_save_IFS |
5012 |
test -z "$as_dir" && as_dir=. |
5013 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5014 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5015 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5016 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5017 |
break 2 |
5018 |
fi |
5019 |
done |
5020 |
done |
5021 |
IFS=$as_save_IFS |
5022 |
|
5023 |
fi |
5024 |
fi |
5025 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
5026 |
if test -n "$DUMPBIN"; then |
5027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5028 |
$as_echo "$DUMPBIN" >&6; } |
5029 |
else |
5030 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5031 |
$as_echo "no" >&6; } |
5032 |
fi |
5033 |
|
5034 |
|
5035 |
test -n "$DUMPBIN" && break |
5036 |
done |
5037 |
fi |
5038 |
if test -z "$DUMPBIN"; then |
5039 |
ac_ct_DUMPBIN=$DUMPBIN |
5040 |
for ac_prog in dumpbin "link -dump" |
5041 |
do |
5042 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5043 |
set dummy $ac_prog; ac_word=$2 |
5044 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5045 |
$as_echo_n "checking for $ac_word... " >&6; } |
5046 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5047 |
$as_echo_n "(cached) " >&6 |
5048 |
else |
5049 |
if test -n "$ac_ct_DUMPBIN"; then |
5050 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
5051 |
else |
5052 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5053 |
for as_dir in $PATH |
5054 |
do |
5055 |
IFS=$as_save_IFS |
5056 |
test -z "$as_dir" && as_dir=. |
5057 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5058 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5059 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5060 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5061 |
break 2 |
5062 |
fi |
5063 |
done |
5064 |
done |
5065 |
IFS=$as_save_IFS |
5066 |
|
5067 |
fi |
5068 |
fi |
5069 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5070 |
if test -n "$ac_ct_DUMPBIN"; then |
5071 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5072 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
5073 |
else |
5074 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5075 |
$as_echo "no" >&6; } |
5076 |
fi |
5077 |
|
5078 |
|
5079 |
test -n "$ac_ct_DUMPBIN" && break |
5080 |
done |
5081 |
|
5082 |
if test "x$ac_ct_DUMPBIN" = x; then |
5083 |
DUMPBIN=":" |
5084 |
else |
5085 |
case $cross_compiling:$ac_tool_warned in |
5086 |
yes:) |
5087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5088 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5089 |
ac_tool_warned=yes ;; |
5090 |
esac |
5091 |
DUMPBIN=$ac_ct_DUMPBIN |
5092 |
fi |
5093 |
fi |
5094 |
|
5095 |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5096 |
*COFF*) |
5097 |
DUMPBIN="$DUMPBIN -symbols" |
5098 |
;; |
5099 |
*) |
5100 |
DUMPBIN=: |
5101 |
;; |
5102 |
esac |
5103 |
fi |
5104 |
|
5105 |
if test "$DUMPBIN" != ":"; then |
5106 |
NM="$DUMPBIN" |
5107 |
fi |
5108 |
fi |
5109 |
test -z "$NM" && NM=nm |
5110 |
|
5111 |
|
5112 |
|
5113 |
|
5114 |
|
5115 |
|
5116 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5117 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
5118 |
if ${lt_cv_nm_interface+:} false; then : |
5119 |
$as_echo_n "(cached) " >&6 |
5120 |
else |
5121 |
lt_cv_nm_interface="BSD nm" |
5122 |
echo "int some_variable = 0;" > conftest.$ac_ext |
5123 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
5124 |
(eval "$ac_compile" 2>conftest.err) |
5125 |
cat conftest.err >&5 |
5126 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
5127 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5128 |
cat conftest.err >&5 |
5129 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
5130 |
cat conftest.out >&5 |
5131 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
5132 |
lt_cv_nm_interface="MS dumpbin" |
5133 |
fi |
5134 |
rm -f conftest* |
5135 |
fi |
5136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5137 |
$as_echo "$lt_cv_nm_interface" >&6; } |
5138 |
|
5139 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5140 |
$as_echo_n "checking whether ln -s works... " >&6; } |
5141 |
LN_S=$as_ln_s |
5142 |
if test "$LN_S" = "ln -s"; then |
5143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5144 |
$as_echo "yes" >&6; } |
5145 |
else |
5146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5147 |
$as_echo "no, using $LN_S" >&6; } |
5148 |
fi |
5149 |
|
5150 |
# find the maximum length of command line arguments |
5151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5152 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
5153 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
5154 |
$as_echo_n "(cached) " >&6 |
5155 |
else |
5156 |
i=0 |
5157 |
teststring="ABCD" |
5158 |
|
5159 |
case $build_os in |
5160 |
msdosdjgpp*) |
5161 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
5162 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
5163 |
# during glob expansion). Even if it were fixed, the result of this |
5164 |
# check would be larger than it should be. |
5165 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5166 |
;; |
5167 |
|
5168 |
gnu*) |
5169 |
# Under GNU Hurd, this test is not required because there is |
5170 |
# no limit to the length of command line arguments. |
5171 |
# Libtool will interpret -1 as no limit whatsoever |
5172 |
lt_cv_sys_max_cmd_len=-1; |
5173 |
;; |
5174 |
|
5175 |
cygwin* | mingw* | cegcc*) |
5176 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
5177 |
# about 5 minutes as the teststring grows exponentially. |
5178 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
5179 |
# you end up with a "frozen" computer, even though with patience |
5180 |
# the test eventually succeeds (with a max line length of 256k). |
5181 |
# Instead, let's just punt: use the minimum linelength reported by |
5182 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
5183 |
lt_cv_sys_max_cmd_len=8192; |
5184 |
;; |
5185 |
|
5186 |
mint*) |
5187 |
# On MiNT this can take a long time and run out of memory. |
5188 |
lt_cv_sys_max_cmd_len=8192; |
5189 |
;; |
5190 |
|
5191 |
amigaos*) |
5192 |
# On AmigaOS with pdksh, this test takes hours, literally. |
5193 |
# So we just punt and use a minimum line length of 8192. |
5194 |
lt_cv_sys_max_cmd_len=8192; |
5195 |
;; |
5196 |
|
5197 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5198 |
# This has been around since 386BSD, at least. Likely further. |
5199 |
if test -x /sbin/sysctl; then |
5200 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5201 |
elif test -x /usr/sbin/sysctl; then |
5202 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5203 |
else |
5204 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5205 |
fi |
5206 |
# And add a safety zone |
5207 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5208 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5209 |
;; |
5210 |
|
5211 |
interix*) |
5212 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
5213 |
lt_cv_sys_max_cmd_len=196608 |
5214 |
;; |
5215 |
|
5216 |
os2*) |
5217 |
# The test takes a long time on OS/2. |
5218 |
lt_cv_sys_max_cmd_len=8192 |
5219 |
;; |
5220 |
|
5221 |
osf*) |
5222 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5223 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5224 |
# nice to cause kernel panics so lets avoid the loop below. |
5225 |
# First set a reasonable default. |
5226 |
lt_cv_sys_max_cmd_len=16384 |
5227 |
# |
5228 |
if test -x /sbin/sysconfig; then |
5229 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5230 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
5231 |
esac |
5232 |
fi |
5233 |
;; |
5234 |
sco3.2v5*) |
5235 |
lt_cv_sys_max_cmd_len=102400 |
5236 |
;; |
5237 |
sysv5* | sco5v6* | sysv4.2uw2*) |
5238 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5239 |
if test -n "$kargmax"; then |
5240 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5241 |
else |
5242 |
lt_cv_sys_max_cmd_len=32768 |
5243 |
fi |
5244 |
;; |
5245 |
*) |
5246 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5247 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
5248 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5249 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5250 |
else |
5251 |
# Make teststring a little bigger before we do anything with it. |
5252 |
# a 1K string should be a reasonable start. |
5253 |
for i in 1 2 3 4 5 6 7 8 ; do |
5254 |
teststring=$teststring$teststring |
5255 |
done |
5256 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5257 |
# If test is not a shell built-in, we'll probably end up computing a |
5258 |
# maximum length that is only half of the actual maximum length, but |
5259 |
# we can't tell. |
5260 |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
5261 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
5262 |
test $i != 17 # 1/2 MB should be enough |
5263 |
do |
5264 |
i=`expr $i + 1` |
5265 |
teststring=$teststring$teststring |
5266 |
done |
5267 |
# Only check the string length outside the loop. |
5268 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
5269 |
teststring= |
5270 |
# Add a significant safety factor because C++ compilers can tack on |
5271 |
# massive amounts of additional arguments before passing them to the |
5272 |
# linker. It appears as though 1/2 is a usable value. |
5273 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5274 |
fi |
5275 |
;; |
5276 |
esac |
5277 |
|
5278 |
fi |
5279 |
|
5280 |
if test -n $lt_cv_sys_max_cmd_len ; then |
5281 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5282 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5283 |
else |
5284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5285 |
$as_echo "none" >&6; } |
5286 |
fi |
5287 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
5288 |
|
5289 |
|
5290 |
|
5291 |
|
5292 |
|
5293 |
|
5294 |
: ${CP="cp -f"} |
5295 |
: ${MV="mv -f"} |
5296 |
: ${RM="rm -f"} |
5297 |
|
5298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5299 |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
5300 |
# Try some XSI features |
5301 |
xsi_shell=no |
5302 |
( _lt_dummy="a/b/c" |
5303 |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
5304 |
= c,a/b,b/c, \ |
5305 |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
5306 |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
5307 |
&& xsi_shell=yes |
5308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5309 |
$as_echo "$xsi_shell" >&6; } |
5310 |
|
5311 |
|
5312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5313 |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
5314 |
lt_shell_append=no |
5315 |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
5316 |
>/dev/null 2>&1 \ |
5317 |
&& lt_shell_append=yes |
5318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5319 |
$as_echo "$lt_shell_append" >&6; } |
5320 |
|
5321 |
|
5322 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5323 |
lt_unset=unset |
5324 |
else |
5325 |
lt_unset=false |
5326 |
fi |
5327 |
|
5328 |
|
5329 |
|
5330 |
|
5331 |
|
5332 |
# test EBCDIC or ASCII |
5333 |
case `echo X|tr X '\101'` in |
5334 |
A) # ASCII based system |
5335 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
5336 |
lt_SP2NL='tr \040 \012' |
5337 |
lt_NL2SP='tr \015\012 \040\040' |
5338 |
;; |
5339 |
*) # EBCDIC based system |
5340 |
lt_SP2NL='tr \100 \n' |
5341 |
lt_NL2SP='tr \r\n \100\100' |
5342 |
;; |
5343 |
esac |
5344 |
|
5345 |
|
5346 |
|
5347 |
|
5348 |
|
5349 |
|
5350 |
|
5351 |
|
5352 |
|
5353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5354 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
5355 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
5356 |
$as_echo_n "(cached) " >&6 |
5357 |
else |
5358 |
case $host in |
5359 |
*-*-mingw* ) |
5360 |
case $build in |
5361 |
*-*-mingw* ) # actually msys |
5362 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
5363 |
;; |
5364 |
*-*-cygwin* ) |
5365 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
5366 |
;; |
5367 |
* ) # otherwise, assume *nix |
5368 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
5369 |
;; |
5370 |
esac |
5371 |
;; |
5372 |
*-*-cygwin* ) |
5373 |
case $build in |
5374 |
*-*-mingw* ) # actually msys |
5375 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
5376 |
;; |
5377 |
*-*-cygwin* ) |
5378 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5379 |
;; |
5380 |
* ) # otherwise, assume *nix |
5381 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
5382 |
;; |
5383 |
esac |
5384 |
;; |
5385 |
* ) # unhandled hosts (and "normal" native builds) |
5386 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5387 |
;; |
5388 |
esac |
5389 |
|
5390 |
fi |
5391 |
|
5392 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
5393 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
5394 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
5395 |
|
5396 |
|
5397 |
|
5398 |
|
5399 |
|
5400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
5401 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
5402 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
5403 |
$as_echo_n "(cached) " >&6 |
5404 |
else |
5405 |
#assume ordinary cross tools, or native build. |
5406 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
5407 |
case $host in |
5408 |
*-*-mingw* ) |
5409 |
case $build in |
5410 |
*-*-mingw* ) # actually msys |
5411 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
5412 |
;; |
5413 |
esac |
5414 |
;; |
5415 |
esac |
5416 |
|
5417 |
fi |
5418 |
|
5419 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
5420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
5421 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
5422 |
|
5423 |
|
5424 |
|
5425 |
|
5426 |
|
5427 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5428 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
5429 |
if ${lt_cv_ld_reload_flag+:} false; then : |
5430 |
$as_echo_n "(cached) " >&6 |
5431 |
else |
5432 |
lt_cv_ld_reload_flag='-r' |
5433 |
fi |
5434 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5435 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
5436 |
reload_flag=$lt_cv_ld_reload_flag |
5437 |
case $reload_flag in |
5438 |
"" | " "*) ;; |
5439 |
*) reload_flag=" $reload_flag" ;; |
5440 |
esac |
5441 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5442 |
case $host_os in |
5443 |
cygwin* | mingw* | pw32* | cegcc*) |
5444 |
if test "$GCC" != yes; then |
5445 |
reload_cmds=false |
5446 |
fi |
5447 |
;; |
5448 |
darwin*) |
5449 |
if test "$GCC" = yes; then |
5450 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
5451 |
else |
5452 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5453 |
fi |
5454 |
;; |
5455 |
esac |
5456 |
|
5457 |
|
5458 |
|
5459 |
|
5460 |
|
5461 |
|
5462 |
|
5463 |
|
5464 |
|
5465 |
if test -n "$ac_tool_prefix"; then |
5466 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
5467 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
5468 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5469 |
$as_echo_n "checking for $ac_word... " >&6; } |
5470 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
5471 |
$as_echo_n "(cached) " >&6 |
5472 |
else |
5473 |
if test -n "$OBJDUMP"; then |
5474 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
5475 |
else |
5476 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5477 |
for as_dir in $PATH |
5478 |
do |
5479 |
IFS=$as_save_IFS |
5480 |
test -z "$as_dir" && as_dir=. |
5481 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5482 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5483 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5484 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5485 |
break 2 |
5486 |
fi |
5487 |
done |
5488 |
done |
5489 |
IFS=$as_save_IFS |
5490 |
|
5491 |
fi |
5492 |
fi |
5493 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
5494 |
if test -n "$OBJDUMP"; then |
5495 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5496 |
$as_echo "$OBJDUMP" >&6; } |
5497 |
else |
5498 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5499 |
$as_echo "no" >&6; } |
5500 |
fi |
5501 |
|
5502 |
|
5503 |
fi |
5504 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
5505 |
ac_ct_OBJDUMP=$OBJDUMP |
5506 |
# Extract the first word of "objdump", so it can be a program name with args. |
5507 |
set dummy objdump; ac_word=$2 |
5508 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5509 |
$as_echo_n "checking for $ac_word... " >&6; } |
5510 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5511 |
$as_echo_n "(cached) " >&6 |
5512 |
else |
5513 |
if test -n "$ac_ct_OBJDUMP"; then |
5514 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
5515 |
else |
5516 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5517 |
for as_dir in $PATH |
5518 |
do |
5519 |
IFS=$as_save_IFS |
5520 |
test -z "$as_dir" && as_dir=. |
5521 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5522 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5523 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5524 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5525 |
break 2 |
5526 |
fi |
5527 |
done |
5528 |
done |
5529 |
IFS=$as_save_IFS |
5530 |
|
5531 |
fi |
5532 |
fi |
5533 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5534 |
if test -n "$ac_ct_OBJDUMP"; then |
5535 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5536 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
5537 |
else |
5538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5539 |
$as_echo "no" >&6; } |
5540 |
fi |
5541 |
|
5542 |
if test "x$ac_ct_OBJDUMP" = x; then |
5543 |
OBJDUMP="false" |
5544 |
else |
5545 |
case $cross_compiling:$ac_tool_warned in |
5546 |
yes:) |
5547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5548 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5549 |
ac_tool_warned=yes ;; |
5550 |
esac |
5551 |
OBJDUMP=$ac_ct_OBJDUMP |
5552 |
fi |
5553 |
else |
5554 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
5555 |
fi |
5556 |
|
5557 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
5558 |
|
5559 |
|
5560 |
|
5561 |
|
5562 |
|
5563 |
|
5564 |
|
5565 |
|
5566 |
|
5567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5568 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
5569 |
if ${lt_cv_deplibs_check_method+:} false; then : |
5570 |
$as_echo_n "(cached) " >&6 |
5571 |
else |
5572 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
5573 |
lt_cv_file_magic_test_file= |
5574 |
lt_cv_deplibs_check_method='unknown' |
5575 |
# Need to set the preceding variable on all platforms that support |
5576 |
# interlibrary dependencies. |
5577 |
# 'none' -- dependencies not supported. |
5578 |
# `unknown' -- same as none, but documents that we really don't know. |
5579 |
# 'pass_all' -- all dependencies passed with no checks. |
5580 |
# 'test_compile' -- check by making test program. |
5581 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
5582 |
# which responds to the $file_magic_cmd with a given extended regex. |
5583 |
# If you have `file' or equivalent on your system and you're not sure |
5584 |
# whether `pass_all' will *always* work, you probably want this one. |
5585 |
|
5586 |
case $host_os in |
5587 |
aix[4-9]*) |
5588 |
lt_cv_deplibs_check_method=pass_all |
5589 |
;; |
5590 |
|
5591 |
beos*) |
5592 |
lt_cv_deplibs_check_method=pass_all |
5593 |
;; |
5594 |
|
5595 |
bsdi[45]*) |
5596 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5597 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
5598 |
lt_cv_file_magic_test_file=/shlib/libc.so |
5599 |
;; |
5600 |
|
5601 |
cygwin*) |
5602 |
# func_win32_libid is a shell function defined in ltmain.sh |
5603 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5604 |
lt_cv_file_magic_cmd='func_win32_libid' |
5605 |
;; |
5606 |
|
5607 |
mingw* | pw32*) |
5608 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
5609 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
5610 |
# unless we find 'file', for example because we are cross-compiling. |
5611 |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5612 |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
5613 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5614 |
lt_cv_file_magic_cmd='func_win32_libid' |
5615 |
else |
5616 |
# Keep this pattern in sync with the one in func_win32_libid. |
5617 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
5618 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5619 |
fi |
5620 |
;; |
5621 |
|
5622 |
cegcc*) |
5623 |
# use the weaker test based on 'objdump'. See mingw*. |
5624 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
5625 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5626 |
;; |
5627 |
|
5628 |
darwin* | rhapsody*) |
5629 |
lt_cv_deplibs_check_method=pass_all |
5630 |
;; |
5631 |
|
5632 |
freebsd* | dragonfly*) |
5633 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5634 |
case $host_cpu in |
5635 |
i*86 ) |
5636 |
# Not sure whether the presence of OpenBSD here was a mistake. |
5637 |
# Let's accept both of them until this is cleared up. |
5638 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5639 |
lt_cv_file_magic_cmd=/usr/bin/file |
5640 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5641 |
;; |
5642 |
esac |
5643 |
else |
5644 |
lt_cv_deplibs_check_method=pass_all |
5645 |
fi |
5646 |
;; |
5647 |
|
5648 |
gnu*) |
5649 |
lt_cv_deplibs_check_method=pass_all |
5650 |
;; |
5651 |
|
5652 |
haiku*) |
5653 |
lt_cv_deplibs_check_method=pass_all |
5654 |
;; |
5655 |
|
5656 |
hpux10.20* | hpux11*) |
5657 |
lt_cv_file_magic_cmd=/usr/bin/file |
5658 |
case $host_cpu in |
5659 |
ia64*) |
5660 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5661 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5662 |
;; |
5663 |
hppa*64*) |
5664 |
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]' |
5665 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5666 |
;; |
5667 |
*) |
5668 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
5669 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5670 |
;; |
5671 |
esac |
5672 |
;; |
5673 |
|
5674 |
interix[3-9]*) |
5675 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
5676 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
5677 |
;; |
5678 |
|
5679 |
irix5* | irix6* | nonstopux*) |
5680 |
case $LD in |
5681 |
*-32|*"-32 ") libmagic=32-bit;; |
5682 |
*-n32|*"-n32 ") libmagic=N32;; |
5683 |
*-64|*"-64 ") libmagic=64-bit;; |
5684 |
*) libmagic=never-match;; |
5685 |
esac |
5686 |
lt_cv_deplibs_check_method=pass_all |
5687 |
;; |
5688 |
|
5689 |
# This must be glibc/ELF. |
5690 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
5691 |
lt_cv_deplibs_check_method=pass_all |
5692 |
;; |
5693 |
|
5694 |
netbsd*) |
5695 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5696 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5697 |
else |
5698 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5699 |
fi |
5700 |
;; |
5701 |
|
5702 |
newos6*) |
5703 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5704 |
lt_cv_file_magic_cmd=/usr/bin/file |
5705 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5706 |
;; |
5707 |
|
5708 |
*nto* | *qnx*) |
5709 |
lt_cv_deplibs_check_method=pass_all |
5710 |
;; |
5711 |
|
5712 |
openbsd*) |
5713 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5714 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5715 |
else |
5716 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5717 |
fi |
5718 |
;; |
5719 |
|
5720 |
osf3* | osf4* | osf5*) |
5721 |
lt_cv_deplibs_check_method=pass_all |
5722 |
;; |
5723 |
|
5724 |
rdos*) |
5725 |
lt_cv_deplibs_check_method=pass_all |
5726 |
;; |
5727 |
|
5728 |
solaris*) |
5729 |
lt_cv_deplibs_check_method=pass_all |
5730 |
;; |
5731 |
|
5732 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5733 |
lt_cv_deplibs_check_method=pass_all |
5734 |
;; |
5735 |
|
5736 |
sysv4 | sysv4.3*) |
5737 |
case $host_vendor in |
5738 |
motorola) |
5739 |
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]' |
5740 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5741 |
;; |
5742 |
ncr) |
5743 |
lt_cv_deplibs_check_method=pass_all |
5744 |
;; |
5745 |
sequent) |
5746 |
lt_cv_file_magic_cmd='/bin/file' |
5747 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5748 |
;; |
5749 |
sni) |
5750 |
lt_cv_file_magic_cmd='/bin/file' |
5751 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5752 |
lt_cv_file_magic_test_file=/lib/libc.so |
5753 |
;; |
5754 |
siemens) |
5755 |
lt_cv_deplibs_check_method=pass_all |
5756 |
;; |
5757 |
pc) |
5758 |
lt_cv_deplibs_check_method=pass_all |
5759 |
;; |
5760 |
esac |
5761 |
;; |
5762 |
|
5763 |
tpf*) |
5764 |
lt_cv_deplibs_check_method=pass_all |
5765 |
;; |
5766 |
esac |
5767 |
|
5768 |
fi |
5769 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5770 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
5771 |
|
5772 |
file_magic_glob= |
5773 |
want_nocaseglob=no |
5774 |
if test "$build" = "$host"; then |
5775 |
case $host_os in |
5776 |
mingw* | pw32*) |
5777 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
5778 |
want_nocaseglob=yes |
5779 |
else |
5780 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
5781 |
fi |
5782 |
;; |
5783 |
esac |
5784 |
fi |
5785 |
|
5786 |
file_magic_cmd=$lt_cv_file_magic_cmd |
5787 |
deplibs_check_method=$lt_cv_deplibs_check_method |
5788 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5789 |
|
5790 |
|
5791 |
|
5792 |
|
5793 |
|
5794 |
|
5795 |
|
5796 |
|
5797 |
|
5798 |
|
5799 |
|
5800 |
|
5801 |
|
5802 |
|
5803 |
|
5804 |
|
5805 |
|
5806 |
|
5807 |
|
5808 |
|
5809 |
|
5810 |
|
5811 |
if test -n "$ac_tool_prefix"; then |
5812 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5813 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
5814 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5815 |
$as_echo_n "checking for $ac_word... " >&6; } |
5816 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
5817 |
$as_echo_n "(cached) " >&6 |
5818 |
else |
5819 |
if test -n "$DLLTOOL"; then |
5820 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
5821 |
else |
5822 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5823 |
for as_dir in $PATH |
5824 |
do |
5825 |
IFS=$as_save_IFS |
5826 |
test -z "$as_dir" && as_dir=. |
5827 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5828 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5829 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
5830 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5831 |
break 2 |
5832 |
fi |
5833 |
done |
5834 |
done |
5835 |
IFS=$as_save_IFS |
5836 |
|
5837 |
fi |
5838 |
fi |
5839 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
5840 |
if test -n "$DLLTOOL"; then |
5841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
5842 |
$as_echo "$DLLTOOL" >&6; } |
5843 |
else |
5844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5845 |
$as_echo "no" >&6; } |
5846 |
fi |
5847 |
|
5848 |
|
5849 |
fi |
5850 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
5851 |
ac_ct_DLLTOOL=$DLLTOOL |
5852 |
# Extract the first word of "dlltool", so it can be a program name with args. |
5853 |
set dummy dlltool; ac_word=$2 |
5854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5855 |
$as_echo_n "checking for $ac_word... " >&6; } |
5856 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
5857 |
$as_echo_n "(cached) " >&6 |
5858 |
else |
5859 |
if test -n "$ac_ct_DLLTOOL"; then |
5860 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
5861 |
else |
5862 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5863 |
for as_dir in $PATH |
5864 |
do |
5865 |
IFS=$as_save_IFS |
5866 |
test -z "$as_dir" && as_dir=. |
5867 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5868 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5869 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
5870 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5871 |
break 2 |
5872 |
fi |
5873 |
done |
5874 |
done |
5875 |
IFS=$as_save_IFS |
5876 |
|
5877 |
fi |
5878 |
fi |
5879 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5880 |
if test -n "$ac_ct_DLLTOOL"; then |
5881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
5882 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
5883 |
else |
5884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5885 |
$as_echo "no" >&6; } |
5886 |
fi |
5887 |
|
5888 |
if test "x$ac_ct_DLLTOOL" = x; then |
5889 |
DLLTOOL="false" |
5890 |
else |
5891 |
case $cross_compiling:$ac_tool_warned in |
5892 |
yes:) |
5893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5894 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5895 |
ac_tool_warned=yes ;; |
5896 |
esac |
5897 |
DLLTOOL=$ac_ct_DLLTOOL |
5898 |
fi |
5899 |
else |
5900 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
5901 |
fi |
5902 |
|
5903 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
5904 |
|
5905 |
|
5906 |
|
5907 |
|
5908 |
|
5909 |
|
5910 |
|
5911 |
|
5912 |
|
5913 |
|
5914 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5915 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
5916 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
5917 |
$as_echo_n "(cached) " >&6 |
5918 |
else |
5919 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
5920 |
|
5921 |
case $host_os in |
5922 |
cygwin* | mingw* | pw32* | cegcc*) |
5923 |
# two different shell functions defined in ltmain.sh |
5924 |
# decide which to use based on capabilities of $DLLTOOL |
5925 |
case `$DLLTOOL --help 2>&1` in |
5926 |
*--identify-strict*) |
5927 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
5928 |
;; |
5929 |
*) |
5930 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
5931 |
;; |
5932 |
esac |
5933 |
;; |
5934 |
*) |
5935 |
# fallback: assume linklib IS sharedlib |
5936 |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
5937 |
;; |
5938 |
esac |
5939 |
|
5940 |
fi |
5941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5942 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
5943 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
5944 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
5945 |
|
5946 |
|
5947 |
|
5948 |
|
5949 |
|
5950 |
|
5951 |
|
5952 |
if test -n "$ac_tool_prefix"; then |
5953 |
for ac_prog in ar |
5954 |
do |
5955 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5956 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5957 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5958 |
$as_echo_n "checking for $ac_word... " >&6; } |
5959 |
if ${ac_cv_prog_AR+:} false; then : |
5960 |
$as_echo_n "(cached) " >&6 |
5961 |
else |
5962 |
if test -n "$AR"; then |
5963 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
5964 |
else |
5965 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5966 |
for as_dir in $PATH |
5967 |
do |
5968 |
IFS=$as_save_IFS |
5969 |
test -z "$as_dir" && as_dir=. |
5970 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5971 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5972 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
5973 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5974 |
break 2 |
5975 |
fi |
5976 |
done |
5977 |
done |
5978 |
IFS=$as_save_IFS |
5979 |
|
5980 |
fi |
5981 |
fi |
5982 |
AR=$ac_cv_prog_AR |
5983 |
if test -n "$AR"; then |
5984 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5985 |
$as_echo "$AR" >&6; } |
5986 |
else |
5987 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5988 |
$as_echo "no" >&6; } |
5989 |
fi |
5990 |
|
5991 |
|
5992 |
test -n "$AR" && break |
5993 |
done |
5994 |
fi |
5995 |
if test -z "$AR"; then |
5996 |
ac_ct_AR=$AR |
5997 |
for ac_prog in ar |
5998 |
do |
5999 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
6000 |
set dummy $ac_prog; ac_word=$2 |
6001 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6002 |
$as_echo_n "checking for $ac_word... " >&6; } |
6003 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
6004 |
$as_echo_n "(cached) " >&6 |
6005 |
else |
6006 |
if test -n "$ac_ct_AR"; then |
6007 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6008 |
else |
6009 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6010 |
for as_dir in $PATH |
6011 |
do |
6012 |
IFS=$as_save_IFS |
6013 |
test -z "$as_dir" && as_dir=. |
6014 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6015 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6016 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
6017 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6018 |
break 2 |
6019 |
fi |
6020 |
done |
6021 |
done |
6022 |
IFS=$as_save_IFS |
6023 |
|
6024 |
fi |
6025 |
fi |
6026 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6027 |
if test -n "$ac_ct_AR"; then |
6028 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6029 |
$as_echo "$ac_ct_AR" >&6; } |
6030 |
else |
6031 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6032 |
$as_echo "no" >&6; } |
6033 |
fi |
6034 |
|
6035 |
|
6036 |
test -n "$ac_ct_AR" && break |
6037 |
done |
6038 |
|
6039 |
if test "x$ac_ct_AR" = x; then |
6040 |
AR="false" |
6041 |
else |
6042 |
case $cross_compiling:$ac_tool_warned in |
6043 |
yes:) |
6044 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6045 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6046 |
ac_tool_warned=yes ;; |
6047 |
esac |
6048 |
AR=$ac_ct_AR |
6049 |
fi |
6050 |
fi |
6051 |
|
6052 |
: ${AR=ar} |
6053 |
: ${AR_FLAGS=cru} |
6054 |
|
6055 |
|
6056 |
|
6057 |
|
6058 |
|
6059 |
|
6060 |
|
6061 |
|
6062 |
|
6063 |
|
6064 |
|
6065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
6066 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
6067 |
if ${lt_cv_ar_at_file+:} false; then : |
6068 |
$as_echo_n "(cached) " >&6 |
6069 |
else |
6070 |
lt_cv_ar_at_file=no |
6071 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6072 |
/* end confdefs.h. */ |
6073 |
|
6074 |
int |
6075 |
main () |
6076 |
{ |
6077 |
|
6078 |
; |
6079 |
return 0; |
6080 |
} |
6081 |
_ACEOF |
6082 |
if ac_fn_c_try_compile "$LINENO"; then : |
6083 |
echo conftest.$ac_objext > conftest.lst |
6084 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
6085 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
6086 |
(eval $lt_ar_try) 2>&5 |
6087 |
ac_status=$? |
6088 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6089 |
test $ac_status = 0; } |
6090 |
if test "$ac_status" -eq 0; then |
6091 |
# Ensure the archiver fails upon bogus file names. |
6092 |
rm -f conftest.$ac_objext libconftest.a |
6093 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
6094 |
(eval $lt_ar_try) 2>&5 |
6095 |
ac_status=$? |
6096 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6097 |
test $ac_status = 0; } |
6098 |
if test "$ac_status" -ne 0; then |
6099 |
lt_cv_ar_at_file=@ |
6100 |
fi |
6101 |
fi |
6102 |
rm -f conftest.* libconftest.a |
6103 |
|
6104 |
fi |
6105 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6106 |
|
6107 |
fi |
6108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
6109 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
6110 |
|
6111 |
if test "x$lt_cv_ar_at_file" = xno; then |
6112 |
archiver_list_spec= |
6113 |
else |
6114 |
archiver_list_spec=$lt_cv_ar_at_file |
6115 |
fi |
6116 |
|
6117 |
|
6118 |
|
6119 |
|
6120 |
|
6121 |
|
6122 |
|
6123 |
if test -n "$ac_tool_prefix"; then |
6124 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6125 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6127 |
$as_echo_n "checking for $ac_word... " >&6; } |
6128 |
if ${ac_cv_prog_STRIP+:} false; then : |
6129 |
$as_echo_n "(cached) " >&6 |
6130 |
else |
6131 |
if test -n "$STRIP"; then |
6132 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6133 |
else |
6134 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6135 |
for as_dir in $PATH |
6136 |
do |
6137 |
IFS=$as_save_IFS |
6138 |
test -z "$as_dir" && as_dir=. |
6139 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6140 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6141 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6142 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6143 |
break 2 |
6144 |
fi |
6145 |
done |
6146 |
done |
6147 |
IFS=$as_save_IFS |
6148 |
|
6149 |
fi |
6150 |
fi |
6151 |
STRIP=$ac_cv_prog_STRIP |
6152 |
if test -n "$STRIP"; then |
6153 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6154 |
$as_echo "$STRIP" >&6; } |
6155 |
else |
6156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6157 |
$as_echo "no" >&6; } |
6158 |
fi |
6159 |
|
6160 |
|
6161 |
fi |
6162 |
if test -z "$ac_cv_prog_STRIP"; then |
6163 |
ac_ct_STRIP=$STRIP |
6164 |
# Extract the first word of "strip", so it can be a program name with args. |
6165 |
set dummy strip; ac_word=$2 |
6166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6167 |
$as_echo_n "checking for $ac_word... " >&6; } |
6168 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
6169 |
$as_echo_n "(cached) " >&6 |
6170 |
else |
6171 |
if test -n "$ac_ct_STRIP"; then |
6172 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6173 |
else |
6174 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6175 |
for as_dir in $PATH |
6176 |
do |
6177 |
IFS=$as_save_IFS |
6178 |
test -z "$as_dir" && as_dir=. |
6179 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6180 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6181 |
ac_cv_prog_ac_ct_STRIP="strip" |
6182 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6183 |
break 2 |
6184 |
fi |
6185 |
done |
6186 |
done |
6187 |
IFS=$as_save_IFS |
6188 |
|
6189 |
fi |
6190 |
fi |
6191 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6192 |
if test -n "$ac_ct_STRIP"; then |
6193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6194 |
$as_echo "$ac_ct_STRIP" >&6; } |
6195 |
else |
6196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6197 |
$as_echo "no" >&6; } |
6198 |
fi |
6199 |
|
6200 |
if test "x$ac_ct_STRIP" = x; then |
6201 |
STRIP=":" |
6202 |
else |
6203 |
case $cross_compiling:$ac_tool_warned in |
6204 |
yes:) |
6205 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6206 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6207 |
ac_tool_warned=yes ;; |
6208 |
esac |
6209 |
STRIP=$ac_ct_STRIP |
6210 |
fi |
6211 |
else |
6212 |
STRIP="$ac_cv_prog_STRIP" |
6213 |
fi |
6214 |
|
6215 |
test -z "$STRIP" && STRIP=: |
6216 |
|
6217 |
|
6218 |
|
6219 |
|
6220 |
|
6221 |
|
6222 |
if test -n "$ac_tool_prefix"; then |
6223 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6224 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6226 |
$as_echo_n "checking for $ac_word... " >&6; } |
6227 |
if ${ac_cv_prog_RANLIB+:} false; then : |
6228 |
$as_echo_n "(cached) " >&6 |
6229 |
else |
6230 |
if test -n "$RANLIB"; then |
6231 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6232 |
else |
6233 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6234 |
for as_dir in $PATH |
6235 |
do |
6236 |
IFS=$as_save_IFS |
6237 |
test -z "$as_dir" && as_dir=. |
6238 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6239 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6240 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6241 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6242 |
break 2 |
6243 |
fi |
6244 |
done |
6245 |
done |
6246 |
IFS=$as_save_IFS |
6247 |
|
6248 |
fi |
6249 |
fi |
6250 |
RANLIB=$ac_cv_prog_RANLIB |
6251 |
if test -n "$RANLIB"; then |
6252 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6253 |
$as_echo "$RANLIB" >&6; } |
6254 |
else |
6255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6256 |
$as_echo "no" >&6; } |
6257 |
fi |
6258 |
|
6259 |
|
6260 |
fi |
6261 |
if test -z "$ac_cv_prog_RANLIB"; then |
6262 |
ac_ct_RANLIB=$RANLIB |
6263 |
# Extract the first word of "ranlib", so it can be a program name with args. |
6264 |
set dummy ranlib; ac_word=$2 |
6265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6266 |
$as_echo_n "checking for $ac_word... " >&6; } |
6267 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6268 |
$as_echo_n "(cached) " >&6 |
6269 |
else |
6270 |
if test -n "$ac_ct_RANLIB"; then |
6271 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6272 |
else |
6273 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6274 |
for as_dir in $PATH |
6275 |
do |
6276 |
IFS=$as_save_IFS |
6277 |
test -z "$as_dir" && as_dir=. |
6278 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6279 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6280 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6281 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6282 |
break 2 |
6283 |
fi |
6284 |
done |
6285 |
done |
6286 |
IFS=$as_save_IFS |
6287 |
|
6288 |
fi |
6289 |
fi |
6290 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6291 |
if test -n "$ac_ct_RANLIB"; then |
6292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6293 |
$as_echo "$ac_ct_RANLIB" >&6; } |
6294 |
else |
6295 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6296 |
$as_echo "no" >&6; } |
6297 |
fi |
6298 |
|
6299 |
if test "x$ac_ct_RANLIB" = x; then |
6300 |
RANLIB=":" |
6301 |
else |
6302 |
case $cross_compiling:$ac_tool_warned in |
6303 |
yes:) |
6304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6305 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6306 |
ac_tool_warned=yes ;; |
6307 |
esac |
6308 |
RANLIB=$ac_ct_RANLIB |
6309 |
fi |
6310 |
else |
6311 |
RANLIB="$ac_cv_prog_RANLIB" |
6312 |
fi |
6313 |
|
6314 |
test -z "$RANLIB" && RANLIB=: |
6315 |
|
6316 |
|
6317 |
|
6318 |
|
6319 |
|
6320 |
|
6321 |
# Determine commands to create old-style static archives. |
6322 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
6323 |
old_postinstall_cmds='chmod 644 $oldlib' |
6324 |
old_postuninstall_cmds= |
6325 |
|
6326 |
if test -n "$RANLIB"; then |
6327 |
case $host_os in |
6328 |
openbsd*) |
6329 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
6330 |
;; |
6331 |
*) |
6332 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
6333 |
;; |
6334 |
esac |
6335 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
6336 |
fi |
6337 |
|
6338 |
case $host_os in |
6339 |
darwin*) |
6340 |
lock_old_archive_extraction=yes ;; |
6341 |
*) |
6342 |
lock_old_archive_extraction=no ;; |
6343 |
esac |
6344 |
|
6345 |
|
6346 |
|
6347 |
|
6348 |
|
6349 |
|
6350 |
|
6351 |
|
6352 |
|
6353 |
|
6354 |
|
6355 |
|
6356 |
|
6357 |
|
6358 |
|
6359 |
|
6360 |
|
6361 |
|
6362 |
|
6363 |
|
6364 |
|
6365 |
|
6366 |
|
6367 |
|
6368 |
|
6369 |
|
6370 |
|
6371 |
|
6372 |
|
6373 |
|
6374 |
|
6375 |
|
6376 |
|
6377 |
|
6378 |
|
6379 |
|
6380 |
|
6381 |
|
6382 |
|
6383 |
# If no C compiler was specified, use CC. |
6384 |
LTCC=${LTCC-"$CC"} |
6385 |
|
6386 |
# If no C compiler flags were specified, use CFLAGS. |
6387 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6388 |
|
6389 |
# Allow CC to be a program name with arguments. |
6390 |
compiler=$CC |
6391 |
|
6392 |
|
6393 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
6394 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6395 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
6396 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6397 |
$as_echo_n "(cached) " >&6 |
6398 |
else |
6399 |
|
6400 |
# These are sane defaults that work on at least a few old systems. |
6401 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6402 |
|
6403 |
# Character class describing NM global symbol codes. |
6404 |
symcode='[BCDEGRST]' |
6405 |
|
6406 |
# Regexp to match symbols that can be accessed directly from C. |
6407 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6408 |
|
6409 |
# Define system-specific variables. |
6410 |
case $host_os in |
6411 |
aix*) |
6412 |
symcode='[BCDT]' |
6413 |
;; |
6414 |
cygwin* | mingw* | pw32* | cegcc*) |
6415 |
symcode='[ABCDGISTW]' |
6416 |
;; |
6417 |
hpux*) |
6418 |
if test "$host_cpu" = ia64; then |
6419 |
symcode='[ABCDEGRST]' |
6420 |
fi |
6421 |
;; |
6422 |
irix* | nonstopux*) |
6423 |
symcode='[BCDEGRST]' |
6424 |
;; |
6425 |
osf*) |
6426 |
symcode='[BCDEGQRST]' |
6427 |
;; |
6428 |
solaris*) |
6429 |
symcode='[BDRT]' |
6430 |
;; |
6431 |
sco3.2v5*) |
6432 |
symcode='[DT]' |
6433 |
;; |
6434 |
sysv4.2uw2*) |
6435 |
symcode='[DT]' |
6436 |
;; |
6437 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6438 |
symcode='[ABDT]' |
6439 |
;; |
6440 |
sysv4) |
6441 |
symcode='[DFNSTU]' |
6442 |
;; |
6443 |
esac |
6444 |
|
6445 |
# If we're using GNU nm, then use its standard symbol codes. |
6446 |
case `$NM -V 2>&1` in |
6447 |
*GNU* | *'with BFD'*) |
6448 |
symcode='[ABCDGIRSTW]' ;; |
6449 |
esac |
6450 |
|
6451 |
# Transform an extracted symbol line into a proper C declaration. |
6452 |
# Some systems (esp. on ia64) link data and code symbols differently, |
6453 |
# so use this general approach. |
6454 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6455 |
|
6456 |
# Transform an extracted symbol line into symbol name and symbol address |
6457 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6458 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
6459 |
|
6460 |
# Handle CRLF in mingw tool chain |
6461 |
opt_cr= |
6462 |
case $build_os in |
6463 |
mingw*) |
6464 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6465 |
;; |
6466 |
esac |
6467 |
|
6468 |
# Try without a prefix underscore, then with it. |
6469 |
for ac_symprfx in "" "_"; do |
6470 |
|
6471 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6472 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
6473 |
|
6474 |
# Write the raw and C identifiers. |
6475 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6476 |
# Fake it for dumpbin and say T for any non-static function |
6477 |
# and D for any global variable. |
6478 |
# Also find C++ and __fastcall symbols from MSVC++, |
6479 |
# which start with @ or ?. |
6480 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6481 |
" {last_section=section; section=\$ 3};"\ |
6482 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
6483 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6484 |
" \$ 0!~/External *\|/{next};"\ |
6485 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6486 |
" {if(hide[section]) next};"\ |
6487 |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
6488 |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
6489 |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
6490 |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
6491 |
" ' prfx=^$ac_symprfx" |
6492 |
else |
6493 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6494 |
fi |
6495 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
6496 |
|
6497 |
# Check to see that the pipe works correctly. |
6498 |
pipe_works=no |
6499 |
|
6500 |
rm -f conftest* |
6501 |
cat > conftest.$ac_ext <<_LT_EOF |
6502 |
#ifdef __cplusplus |
6503 |
extern "C" { |
6504 |
#endif |
6505 |
char nm_test_var; |
6506 |
void nm_test_func(void); |
6507 |
void nm_test_func(void){} |
6508 |
#ifdef __cplusplus |
6509 |
} |
6510 |
#endif |
6511 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
6512 |
_LT_EOF |
6513 |
|
6514 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6515 |
(eval $ac_compile) 2>&5 |
6516 |
ac_status=$? |
6517 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6518 |
test $ac_status = 0; }; then |
6519 |
# Now try to grab the symbols. |
6520 |
nlist=conftest.nm |
6521 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6522 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
6523 |
ac_status=$? |
6524 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6525 |
test $ac_status = 0; } && test -s "$nlist"; then |
6526 |
# Try sorting and uniquifying the output. |
6527 |
if sort "$nlist" | uniq > "$nlist"T; then |
6528 |
mv -f "$nlist"T "$nlist" |
6529 |
else |
6530 |
rm -f "$nlist"T |
6531 |
fi |
6532 |
|
6533 |
# Make sure that we snagged all the symbols we need. |
6534 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6535 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6536 |
cat <<_LT_EOF > conftest.$ac_ext |
6537 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6538 |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
6539 |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
6540 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6541 |
# define LT_DLSYM_CONST |
6542 |
#elif defined(__osf__) |
6543 |
/* This system does not cope well with relocations in const data. */ |
6544 |
# define LT_DLSYM_CONST |
6545 |
#else |
6546 |
# define LT_DLSYM_CONST const |
6547 |
#endif |
6548 |
|
6549 |
#ifdef __cplusplus |
6550 |
extern "C" { |
6551 |
#endif |
6552 |
|
6553 |
_LT_EOF |
6554 |
# Now generate the symbol file. |
6555 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6556 |
|
6557 |
cat <<_LT_EOF >> conftest.$ac_ext |
6558 |
|
6559 |
/* The mapping between symbol names and symbols. */ |
6560 |
LT_DLSYM_CONST struct { |
6561 |
const char *name; |
6562 |
void *address; |
6563 |
} |
6564 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
6565 |
{ |
6566 |
{ "@PROGRAM@", (void *) 0 }, |
6567 |
_LT_EOF |
6568 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6569 |
cat <<\_LT_EOF >> conftest.$ac_ext |
6570 |
{0, (void *) 0} |
6571 |
}; |
6572 |
|
6573 |
/* This works around a problem in FreeBSD linker */ |
6574 |
#ifdef FREEBSD_WORKAROUND |
6575 |
static const void *lt_preloaded_setup() { |
6576 |
return lt__PROGRAM__LTX_preloaded_symbols; |
6577 |
} |
6578 |
#endif |
6579 |
|
6580 |
#ifdef __cplusplus |
6581 |
} |
6582 |
#endif |
6583 |
_LT_EOF |
6584 |
# Now try linking the two files. |
6585 |
mv conftest.$ac_objext conftstm.$ac_objext |
6586 |
lt_globsym_save_LIBS=$LIBS |
6587 |
lt_globsym_save_CFLAGS=$CFLAGS |
6588 |
LIBS="conftstm.$ac_objext" |
6589 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6590 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6591 |
(eval $ac_link) 2>&5 |
6592 |
ac_status=$? |
6593 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6594 |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
6595 |
pipe_works=yes |
6596 |
fi |
6597 |
LIBS=$lt_globsym_save_LIBS |
6598 |
CFLAGS=$lt_globsym_save_CFLAGS |
6599 |
else |
6600 |
echo "cannot find nm_test_func in $nlist" >&5 |
6601 |
fi |
6602 |
else |
6603 |
echo "cannot find nm_test_var in $nlist" >&5 |
6604 |
fi |
6605 |
else |
6606 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6607 |
fi |
6608 |
else |
6609 |
echo "$progname: failed program was:" >&5 |
6610 |
cat conftest.$ac_ext >&5 |
6611 |
fi |
6612 |
rm -rf conftest* conftst* |
6613 |
|
6614 |
# Do not use the global_symbol_pipe unless it works. |
6615 |
if test "$pipe_works" = yes; then |
6616 |
break |
6617 |
else |
6618 |
lt_cv_sys_global_symbol_pipe= |
6619 |
fi |
6620 |
done |
6621 |
|
6622 |
fi |
6623 |
|
6624 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6625 |
lt_cv_sys_global_symbol_to_cdecl= |
6626 |
fi |
6627 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6629 |
$as_echo "failed" >&6; } |
6630 |
else |
6631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6632 |
$as_echo "ok" >&6; } |
6633 |
fi |
6634 |
|
6635 |
# Response file support. |
6636 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6637 |
nm_file_list_spec='@' |
6638 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
6639 |
nm_file_list_spec='@' |
6640 |
fi |
6641 |
|
6642 |
|
6643 |
|
6644 |
|
6645 |
|
6646 |
|
6647 |
|
6648 |
|
6649 |
|
6650 |
|
6651 |
|
6652 |
|
6653 |
|
6654 |
|
6655 |
|
6656 |
|
6657 |
|
6658 |
|
6659 |
|
6660 |
|
6661 |
|
6662 |
|
6663 |
|
6664 |
|
6665 |
|
6666 |
|
6667 |
|
6668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6669 |
$as_echo_n "checking for sysroot... " >&6; } |
6670 |
|
6671 |
# Check whether --with-sysroot was given. |
6672 |
if test "${with_sysroot+set}" = set; then : |
6673 |
withval=$with_sysroot; |
6674 |
else |
6675 |
with_sysroot=no |
6676 |
fi |
6677 |
|
6678 |
|
6679 |
lt_sysroot= |
6680 |
case ${with_sysroot} in #( |
6681 |
yes) |
6682 |
if test "$GCC" = yes; then |
6683 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6684 |
fi |
6685 |
;; #( |
6686 |
/*) |
6687 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
6688 |
;; #( |
6689 |
no|'') |
6690 |
;; #( |
6691 |
*) |
6692 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
6693 |
$as_echo "${with_sysroot}" >&6; } |
6694 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6695 |
;; |
6696 |
esac |
6697 |
|
6698 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6699 |
$as_echo "${lt_sysroot:-no}" >&6; } |
6700 |
|
6701 |
|
6702 |
|
6703 |
|
6704 |
|
6705 |
# Check whether --enable-libtool-lock was given. |
6706 |
if test "${enable_libtool_lock+set}" = set; then : |
6707 |
enableval=$enable_libtool_lock; |
6708 |
fi |
6709 |
|
6710 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6711 |
|
6712 |
# Some flags need to be propagated to the compiler or linker for good |
6713 |
# libtool support. |
6714 |
case $host in |
6715 |
ia64-*-hpux*) |
6716 |
# Find out which ABI we are using. |
6717 |
echo 'int i;' > conftest.$ac_ext |
6718 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6719 |
(eval $ac_compile) 2>&5 |
6720 |
ac_status=$? |
6721 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6722 |
test $ac_status = 0; }; then |
6723 |
case `/usr/bin/file conftest.$ac_objext` in |
6724 |
*ELF-32*) |
6725 |
HPUX_IA64_MODE="32" |
6726 |
;; |
6727 |
*ELF-64*) |
6728 |
HPUX_IA64_MODE="64" |
6729 |
;; |
6730 |
esac |
6731 |
fi |
6732 |
rm -rf conftest* |
6733 |
;; |
6734 |
*-*-irix6*) |
6735 |
# Find out which ABI we are using. |
6736 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6737 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6738 |
(eval $ac_compile) 2>&5 |
6739 |
ac_status=$? |
6740 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6741 |
test $ac_status = 0; }; then |
6742 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
6743 |
case `/usr/bin/file conftest.$ac_objext` in |
6744 |
*32-bit*) |
6745 |
LD="${LD-ld} -melf32bsmip" |
6746 |
;; |
6747 |
*N32*) |
6748 |
LD="${LD-ld} -melf32bmipn32" |
6749 |
;; |
6750 |
*64-bit*) |
6751 |
LD="${LD-ld} -melf64bmip" |
6752 |
;; |
6753 |
esac |
6754 |
else |
6755 |
case `/usr/bin/file conftest.$ac_objext` in |
6756 |
*32-bit*) |
6757 |
LD="${LD-ld} -32" |
6758 |
;; |
6759 |
*N32*) |
6760 |
LD="${LD-ld} -n32" |
6761 |
;; |
6762 |
*64-bit*) |
6763 |
LD="${LD-ld} -64" |
6764 |
;; |
6765 |
esac |
6766 |
fi |
6767 |
fi |
6768 |
rm -rf conftest* |
6769 |
;; |
6770 |
|
6771 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6772 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6773 |
# Find out which ABI we are using. |
6774 |
echo 'int i;' > conftest.$ac_ext |
6775 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6776 |
(eval $ac_compile) 2>&5 |
6777 |
ac_status=$? |
6778 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6779 |
test $ac_status = 0; }; then |
6780 |
case `/usr/bin/file conftest.o` in |
6781 |
*32-bit*) |
6782 |
case $host in |
6783 |
x86_64-*kfreebsd*-gnu) |
6784 |
LD="${LD-ld} -m elf_i386_fbsd" |
6785 |
;; |
6786 |
x86_64-*linux*) |
6787 |
LD="${LD-ld} -m elf_i386" |
6788 |
;; |
6789 |
ppc64-*linux*|powerpc64-*linux*) |
6790 |
LD="${LD-ld} -m elf32ppclinux" |
6791 |
;; |
6792 |
s390x-*linux*) |
6793 |
LD="${LD-ld} -m elf_s390" |
6794 |
;; |
6795 |
sparc64-*linux*) |
6796 |
LD="${LD-ld} -m elf32_sparc" |
6797 |
;; |
6798 |
esac |
6799 |
;; |
6800 |
*64-bit*) |
6801 |
case $host in |
6802 |
x86_64-*kfreebsd*-gnu) |
6803 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
6804 |
;; |
6805 |
x86_64-*linux*) |
6806 |
LD="${LD-ld} -m elf_x86_64" |
6807 |
;; |
6808 |
ppc*-*linux*|powerpc*-*linux*) |
6809 |
LD="${LD-ld} -m elf64ppc" |
6810 |
;; |
6811 |
s390*-*linux*|s390*-*tpf*) |
6812 |
LD="${LD-ld} -m elf64_s390" |
6813 |
;; |
6814 |
sparc*-*linux*) |
6815 |
LD="${LD-ld} -m elf64_sparc" |
6816 |
;; |
6817 |
esac |
6818 |
;; |
6819 |
esac |
6820 |
fi |
6821 |
rm -rf conftest* |
6822 |
;; |
6823 |
|
6824 |
*-*-sco3.2v5*) |
6825 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
6826 |
SAVE_CFLAGS="$CFLAGS" |
6827 |
CFLAGS="$CFLAGS -belf" |
6828 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6829 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
6830 |
if ${lt_cv_cc_needs_belf+:} false; then : |
6831 |
$as_echo_n "(cached) " >&6 |
6832 |
else |
6833 |
ac_ext=c |
6834 |
ac_cpp='$CPP $CPPFLAGS' |
6835 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6836 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6837 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6838 |
|
6839 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6840 |
/* end confdefs.h. */ |
6841 |
|
6842 |
int |
6843 |
main () |
6844 |
{ |
6845 |
|
6846 |
; |
6847 |
return 0; |
6848 |
} |
6849 |
_ACEOF |
6850 |
if ac_fn_c_try_link "$LINENO"; then : |
6851 |
lt_cv_cc_needs_belf=yes |
6852 |
else |
6853 |
lt_cv_cc_needs_belf=no |
6854 |
fi |
6855 |
rm -f core conftest.err conftest.$ac_objext \ |
6856 |
conftest$ac_exeext conftest.$ac_ext |
6857 |
ac_ext=c |
6858 |
ac_cpp='$CPP $CPPFLAGS' |
6859 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6860 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6861 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6862 |
|
6863 |
fi |
6864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6865 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
6866 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6867 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6868 |
CFLAGS="$SAVE_CFLAGS" |
6869 |
fi |
6870 |
;; |
6871 |
*-*solaris*) |
6872 |
# Find out which ABI we are using. |
6873 |
echo 'int i;' > conftest.$ac_ext |
6874 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6875 |
(eval $ac_compile) 2>&5 |
6876 |
ac_status=$? |
6877 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6878 |
test $ac_status = 0; }; then |
6879 |
case `/usr/bin/file conftest.o` in |
6880 |
*64-bit*) |
6881 |
case $lt_cv_prog_gnu_ld in |
6882 |
yes*) |
6883 |
case $host in |
6884 |
i?86-*-solaris*) |
6885 |
LD="${LD-ld} -m elf_x86_64" |
6886 |
;; |
6887 |
sparc*-*-solaris*) |
6888 |
LD="${LD-ld} -m elf64_sparc" |
6889 |
;; |
6890 |
esac |
6891 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
6892 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
6893 |
LD="${LD-ld}_sol2" |
6894 |
fi |
6895 |
;; |
6896 |
*) |
6897 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
6898 |
LD="${LD-ld} -64" |
6899 |
fi |
6900 |
;; |
6901 |
esac |
6902 |
;; |
6903 |
esac |
6904 |
fi |
6905 |
rm -rf conftest* |
6906 |
;; |
6907 |
esac |
6908 |
|
6909 |
need_locks="$enable_libtool_lock" |
6910 |
|
6911 |
if test -n "$ac_tool_prefix"; then |
6912 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
6913 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
6914 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6915 |
$as_echo_n "checking for $ac_word... " >&6; } |
6916 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
6917 |
$as_echo_n "(cached) " >&6 |
6918 |
else |
6919 |
if test -n "$MANIFEST_TOOL"; then |
6920 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
6921 |
else |
6922 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6923 |
for as_dir in $PATH |
6924 |
do |
6925 |
IFS=$as_save_IFS |
6926 |
test -z "$as_dir" && as_dir=. |
6927 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6928 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6929 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
6930 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6931 |
break 2 |
6932 |
fi |
6933 |
done |
6934 |
done |
6935 |
IFS=$as_save_IFS |
6936 |
|
6937 |
fi |
6938 |
fi |
6939 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
6940 |
if test -n "$MANIFEST_TOOL"; then |
6941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
6942 |
$as_echo "$MANIFEST_TOOL" >&6; } |
6943 |
else |
6944 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6945 |
$as_echo "no" >&6; } |
6946 |
fi |
6947 |
|
6948 |
|
6949 |
fi |
6950 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
6951 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
6952 |
# Extract the first word of "mt", so it can be a program name with args. |
6953 |
set dummy mt; ac_word=$2 |
6954 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6955 |
$as_echo_n "checking for $ac_word... " >&6; } |
6956 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
6957 |
$as_echo_n "(cached) " >&6 |
6958 |
else |
6959 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6960 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
6961 |
else |
6962 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6963 |
for as_dir in $PATH |
6964 |
do |
6965 |
IFS=$as_save_IFS |
6966 |
test -z "$as_dir" && as_dir=. |
6967 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6968 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6969 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
6970 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6971 |
break 2 |
6972 |
fi |
6973 |
done |
6974 |
done |
6975 |
IFS=$as_save_IFS |
6976 |
|
6977 |
fi |
6978 |
fi |
6979 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
6980 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
6981 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
6982 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
6983 |
else |
6984 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6985 |
$as_echo "no" >&6; } |
6986 |
fi |
6987 |
|
6988 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
6989 |
MANIFEST_TOOL=":" |
6990 |
else |
6991 |
case $cross_compiling:$ac_tool_warned in |
6992 |
yes:) |
6993 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6994 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6995 |
ac_tool_warned=yes ;; |
6996 |
esac |
6997 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
6998 |
fi |
6999 |
else |
7000 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
7001 |
fi |
7002 |
|
7003 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
7005 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
7006 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
7007 |
$as_echo_n "(cached) " >&6 |
7008 |
else |
7009 |
lt_cv_path_mainfest_tool=no |
7010 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
7011 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
7012 |
cat conftest.err >&5 |
7013 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
7014 |
lt_cv_path_mainfest_tool=yes |
7015 |
fi |
7016 |
rm -f conftest* |
7017 |
fi |
7018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
7019 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
7020 |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
7021 |
MANIFEST_TOOL=: |
7022 |
fi |
7023 |
|
7024 |
|
7025 |
|
7026 |
|
7027 |
|
7028 |
|
7029 |
case $host_os in |
7030 |
rhapsody* | darwin*) |
7031 |
if test -n "$ac_tool_prefix"; then |
7032 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
7033 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
7034 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7035 |
$as_echo_n "checking for $ac_word... " >&6; } |
7036 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
7037 |
$as_echo_n "(cached) " >&6 |
7038 |
else |
7039 |
if test -n "$DSYMUTIL"; then |
7040 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
7041 |
else |
7042 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7043 |
for as_dir in $PATH |
7044 |
do |
7045 |
IFS=$as_save_IFS |
7046 |
test -z "$as_dir" && as_dir=. |
7047 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7048 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7049 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7050 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7051 |
break 2 |
7052 |
fi |
7053 |
done |
7054 |
done |
7055 |
IFS=$as_save_IFS |
7056 |
|
7057 |
fi |
7058 |
fi |
7059 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7060 |
if test -n "$DSYMUTIL"; then |
7061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7062 |
$as_echo "$DSYMUTIL" >&6; } |
7063 |
else |
7064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7065 |
$as_echo "no" >&6; } |
7066 |
fi |
7067 |
|
7068 |
|
7069 |
fi |
7070 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
7071 |
ac_ct_DSYMUTIL=$DSYMUTIL |
7072 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
7073 |
set dummy dsymutil; ac_word=$2 |
7074 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7075 |
$as_echo_n "checking for $ac_word... " >&6; } |
7076 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
7077 |
$as_echo_n "(cached) " >&6 |
7078 |
else |
7079 |
if test -n "$ac_ct_DSYMUTIL"; then |
7080 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
7081 |
else |
7082 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083 |
for as_dir in $PATH |
7084 |
do |
7085 |
IFS=$as_save_IFS |
7086 |
test -z "$as_dir" && as_dir=. |
7087 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7088 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7089 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7090 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7091 |
break 2 |
7092 |
fi |
7093 |
done |
7094 |
done |
7095 |
IFS=$as_save_IFS |
7096 |
|
7097 |
fi |
7098 |
fi |
7099 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7100 |
if test -n "$ac_ct_DSYMUTIL"; then |
7101 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7102 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
7103 |
else |
7104 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7105 |
$as_echo "no" >&6; } |
7106 |
fi |
7107 |
|
7108 |
if test "x$ac_ct_DSYMUTIL" = x; then |
7109 |
DSYMUTIL=":" |
7110 |
else |
7111 |
case $cross_compiling:$ac_tool_warned in |
7112 |
yes:) |
7113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7114 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7115 |
ac_tool_warned=yes ;; |
7116 |
esac |
7117 |
DSYMUTIL=$ac_ct_DSYMUTIL |
7118 |
fi |
7119 |
else |
7120 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
7121 |
fi |
7122 |
|
7123 |
if test -n "$ac_tool_prefix"; then |
7124 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7125 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
7126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7127 |
$as_echo_n "checking for $ac_word... " >&6; } |
7128 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
7129 |
$as_echo_n "(cached) " >&6 |
7130 |
else |
7131 |
if test -n "$NMEDIT"; then |
7132 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
7133 |
else |
7134 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7135 |
for as_dir in $PATH |
7136 |
do |
7137 |
IFS=$as_save_IFS |
7138 |
test -z "$as_dir" && as_dir=. |
7139 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7140 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7141 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7142 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7143 |
break 2 |
7144 |
fi |
7145 |
done |
7146 |
done |
7147 |
IFS=$as_save_IFS |
7148 |
|
7149 |
fi |
7150 |
fi |
7151 |
NMEDIT=$ac_cv_prog_NMEDIT |
7152 |
if test -n "$NMEDIT"; then |
7153 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7154 |
$as_echo "$NMEDIT" >&6; } |
7155 |
else |
7156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7157 |
$as_echo "no" >&6; } |
7158 |
fi |
7159 |
|
7160 |
|
7161 |
fi |
7162 |
if test -z "$ac_cv_prog_NMEDIT"; then |
7163 |
ac_ct_NMEDIT=$NMEDIT |
7164 |
# Extract the first word of "nmedit", so it can be a program name with args. |
7165 |
set dummy nmedit; ac_word=$2 |
7166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7167 |
$as_echo_n "checking for $ac_word... " >&6; } |
7168 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
7169 |
$as_echo_n "(cached) " >&6 |
7170 |
else |
7171 |
if test -n "$ac_ct_NMEDIT"; then |
7172 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
7173 |
else |
7174 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7175 |
for as_dir in $PATH |
7176 |
do |
7177 |
IFS=$as_save_IFS |
7178 |
test -z "$as_dir" && as_dir=. |
7179 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7180 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7181 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7182 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7183 |
break 2 |
7184 |
fi |
7185 |
done |
7186 |
done |
7187 |
IFS=$as_save_IFS |
7188 |
|
7189 |
fi |
7190 |
fi |
7191 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7192 |
if test -n "$ac_ct_NMEDIT"; then |
7193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7194 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
7195 |
else |
7196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7197 |
$as_echo "no" >&6; } |
7198 |
fi |
7199 |
|
7200 |
if test "x$ac_ct_NMEDIT" = x; then |
7201 |
NMEDIT=":" |
7202 |
else |
7203 |
case $cross_compiling:$ac_tool_warned in |
7204 |
yes:) |
7205 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7206 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7207 |
ac_tool_warned=yes ;; |
7208 |
esac |
7209 |
NMEDIT=$ac_ct_NMEDIT |
7210 |
fi |
7211 |
else |
7212 |
NMEDIT="$ac_cv_prog_NMEDIT" |
7213 |
fi |
7214 |
|
7215 |
if test -n "$ac_tool_prefix"; then |
7216 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7217 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
7218 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7219 |
$as_echo_n "checking for $ac_word... " >&6; } |
7220 |
if ${ac_cv_prog_LIPO+:} false; then : |
7221 |
$as_echo_n "(cached) " >&6 |
7222 |
else |
7223 |
if test -n "$LIPO"; then |
7224 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
7225 |
else |
7226 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7227 |
for as_dir in $PATH |
7228 |
do |
7229 |
IFS=$as_save_IFS |
7230 |
test -z "$as_dir" && as_dir=. |
7231 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7232 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7233 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7234 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7235 |
break 2 |
7236 |
fi |
7237 |
done |
7238 |
done |
7239 |
IFS=$as_save_IFS |
7240 |
|
7241 |
fi |
7242 |
fi |
7243 |
LIPO=$ac_cv_prog_LIPO |
7244 |
if test -n "$LIPO"; then |
7245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7246 |
$as_echo "$LIPO" >&6; } |
7247 |
else |
7248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7249 |
$as_echo "no" >&6; } |
7250 |
fi |
7251 |
|
7252 |
|
7253 |
fi |
7254 |
if test -z "$ac_cv_prog_LIPO"; then |
7255 |
ac_ct_LIPO=$LIPO |
7256 |
# Extract the first word of "lipo", so it can be a program name with args. |
7257 |
set dummy lipo; ac_word=$2 |
7258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7259 |
$as_echo_n "checking for $ac_word... " >&6; } |
7260 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
7261 |
$as_echo_n "(cached) " >&6 |
7262 |
else |
7263 |
if test -n "$ac_ct_LIPO"; then |
7264 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
7265 |
else |
7266 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7267 |
for as_dir in $PATH |
7268 |
do |
7269 |
IFS=$as_save_IFS |
7270 |
test -z "$as_dir" && as_dir=. |
7271 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7272 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7273 |
ac_cv_prog_ac_ct_LIPO="lipo" |
7274 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7275 |
break 2 |
7276 |
fi |
7277 |
done |
7278 |
done |
7279 |
IFS=$as_save_IFS |
7280 |
|
7281 |
fi |
7282 |
fi |
7283 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7284 |
if test -n "$ac_ct_LIPO"; then |
7285 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7286 |
$as_echo "$ac_ct_LIPO" >&6; } |
7287 |
else |
7288 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7289 |
$as_echo "no" >&6; } |
7290 |
fi |
7291 |
|
7292 |
if test "x$ac_ct_LIPO" = x; then |
7293 |
LIPO=":" |
7294 |
else |
7295 |
case $cross_compiling:$ac_tool_warned in |
7296 |
yes:) |
7297 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7298 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7299 |
ac_tool_warned=yes ;; |
7300 |
esac |
7301 |
LIPO=$ac_ct_LIPO |
7302 |
fi |
7303 |
else |
7304 |
LIPO="$ac_cv_prog_LIPO" |
7305 |
fi |
7306 |
|
7307 |
if test -n "$ac_tool_prefix"; then |
7308 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7309 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
7310 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7311 |
$as_echo_n "checking for $ac_word... " >&6; } |
7312 |
if ${ac_cv_prog_OTOOL+:} false; then : |
7313 |
$as_echo_n "(cached) " >&6 |
7314 |
else |
7315 |
if test -n "$OTOOL"; then |
7316 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
7317 |
else |
7318 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7319 |
for as_dir in $PATH |
7320 |
do |
7321 |
IFS=$as_save_IFS |
7322 |
test -z "$as_dir" && as_dir=. |
7323 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7324 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7325 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7326 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7327 |
break 2 |
7328 |
fi |
7329 |
done |
7330 |
done |
7331 |
IFS=$as_save_IFS |
7332 |
|
7333 |
fi |
7334 |
fi |
7335 |
OTOOL=$ac_cv_prog_OTOOL |
7336 |
if test -n "$OTOOL"; then |
7337 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7338 |
$as_echo "$OTOOL" >&6; } |
7339 |
else |
7340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7341 |
$as_echo "no" >&6; } |
7342 |
fi |
7343 |
|
7344 |
|
7345 |
fi |
7346 |
if test -z "$ac_cv_prog_OTOOL"; then |
7347 |
ac_ct_OTOOL=$OTOOL |
7348 |
# Extract the first word of "otool", so it can be a program name with args. |
7349 |
set dummy otool; ac_word=$2 |
7350 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7351 |
$as_echo_n "checking for $ac_word... " >&6; } |
7352 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
7353 |
$as_echo_n "(cached) " >&6 |
7354 |
else |
7355 |
if test -n "$ac_ct_OTOOL"; then |
7356 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
7357 |
else |
7358 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7359 |
for as_dir in $PATH |
7360 |
do |
7361 |
IFS=$as_save_IFS |
7362 |
test -z "$as_dir" && as_dir=. |
7363 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7364 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7365 |
ac_cv_prog_ac_ct_OTOOL="otool" |
7366 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7367 |
break 2 |
7368 |
fi |
7369 |
done |
7370 |
done |
7371 |
IFS=$as_save_IFS |
7372 |
|
7373 |
fi |
7374 |
fi |
7375 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7376 |
if test -n "$ac_ct_OTOOL"; then |
7377 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7378 |
$as_echo "$ac_ct_OTOOL" >&6; } |
7379 |
else |
7380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7381 |
$as_echo "no" >&6; } |
7382 |
fi |
7383 |
|
7384 |
if test "x$ac_ct_OTOOL" = x; then |
7385 |
OTOOL=":" |
7386 |
else |
7387 |
case $cross_compiling:$ac_tool_warned in |
7388 |
yes:) |
7389 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7390 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7391 |
ac_tool_warned=yes ;; |
7392 |
esac |
7393 |
OTOOL=$ac_ct_OTOOL |
7394 |
fi |
7395 |
else |
7396 |
OTOOL="$ac_cv_prog_OTOOL" |
7397 |
fi |
7398 |
|
7399 |
if test -n "$ac_tool_prefix"; then |
7400 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7401 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
7402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7403 |
$as_echo_n "checking for $ac_word... " >&6; } |
7404 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
7405 |
$as_echo_n "(cached) " >&6 |
7406 |
else |
7407 |
if test -n "$OTOOL64"; then |
7408 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
7409 |
else |
7410 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7411 |
for as_dir in $PATH |
7412 |
do |
7413 |
IFS=$as_save_IFS |
7414 |
test -z "$as_dir" && as_dir=. |
7415 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7416 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7417 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7418 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7419 |
break 2 |
7420 |
fi |
7421 |
done |
7422 |
done |
7423 |
IFS=$as_save_IFS |
7424 |
|
7425 |
fi |
7426 |
fi |
7427 |
OTOOL64=$ac_cv_prog_OTOOL64 |
7428 |
if test -n "$OTOOL64"; then |
7429 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7430 |
$as_echo "$OTOOL64" >&6; } |
7431 |
else |
7432 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7433 |
$as_echo "no" >&6; } |
7434 |
fi |
7435 |
|
7436 |
|
7437 |
fi |
7438 |
if test -z "$ac_cv_prog_OTOOL64"; then |
7439 |
ac_ct_OTOOL64=$OTOOL64 |
7440 |
# Extract the first word of "otool64", so it can be a program name with args. |
7441 |
set dummy otool64; ac_word=$2 |
7442 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7443 |
$as_echo_n "checking for $ac_word... " >&6; } |
7444 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
7445 |
$as_echo_n "(cached) " >&6 |
7446 |
else |
7447 |
if test -n "$ac_ct_OTOOL64"; then |
7448 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
7449 |
else |
7450 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7451 |
for as_dir in $PATH |
7452 |
do |
7453 |
IFS=$as_save_IFS |
7454 |
test -z "$as_dir" && as_dir=. |
7455 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7456 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7457 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
7458 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7459 |
break 2 |
7460 |
fi |
7461 |
done |
7462 |
done |
7463 |
IFS=$as_save_IFS |
7464 |
|
7465 |
fi |
7466 |
fi |
7467 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7468 |
if test -n "$ac_ct_OTOOL64"; then |
7469 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7470 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
7471 |
else |
7472 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7473 |
$as_echo "no" >&6; } |
7474 |
fi |
7475 |
|
7476 |
if test "x$ac_ct_OTOOL64" = x; then |
7477 |
OTOOL64=":" |
7478 |
else |
7479 |
case $cross_compiling:$ac_tool_warned in |
7480 |
yes:) |
7481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7482 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7483 |
ac_tool_warned=yes ;; |
7484 |
esac |
7485 |
OTOOL64=$ac_ct_OTOOL64 |
7486 |
fi |
7487 |
else |
7488 |
OTOOL64="$ac_cv_prog_OTOOL64" |
7489 |
fi |
7490 |
|
7491 |
|
7492 |
|
7493 |
|
7494 |
|
7495 |
|
7496 |
|
7497 |
|
7498 |
|
7499 |
|
7500 |
|
7501 |
|
7502 |
|
7503 |
|
7504 |
|
7505 |
|
7506 |
|
7507 |
|
7508 |
|
7509 |
|
7510 |
|
7511 |
|
7512 |
|
7513 |
|
7514 |
|
7515 |
|
7516 |
|
7517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7518 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
7519 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
7520 |
$as_echo_n "(cached) " >&6 |
7521 |
else |
7522 |
lt_cv_apple_cc_single_mod=no |
7523 |
if test -z "${LT_MULTI_MODULE}"; then |
7524 |
# By default we will add the -single_module flag. You can override |
7525 |
# by either setting the environment variable LT_MULTI_MODULE |
7526 |
# non-empty at configure time, or by adding -multi_module to the |
7527 |
# link flags. |
7528 |
rm -rf libconftest.dylib* |
7529 |
echo "int foo(void){return 1;}" > conftest.c |
7530 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7531 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
7532 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7533 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7534 |
_lt_result=$? |
7535 |
# If there is a non-empty error log, and "single_module" |
7536 |
# appears in it, assume the flag caused a linker warning |
7537 |
if test -s conftest.err && $GREP single_module conftest.err; then |
7538 |
cat conftest.err >&5 |
7539 |
# Otherwise, if the output was created with a 0 exit code from |
7540 |
# the compiler, it worked. |
7541 |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
7542 |
lt_cv_apple_cc_single_mod=yes |
7543 |
else |
7544 |
cat conftest.err >&5 |
7545 |
fi |
7546 |
rm -rf libconftest.dylib* |
7547 |
rm -f conftest.* |
7548 |
fi |
7549 |
fi |
7550 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7551 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7552 |
|
7553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7554 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7555 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7556 |
$as_echo_n "(cached) " >&6 |
7557 |
else |
7558 |
lt_cv_ld_exported_symbols_list=no |
7559 |
save_LDFLAGS=$LDFLAGS |
7560 |
echo "_main" > conftest.sym |
7561 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7562 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7563 |
/* end confdefs.h. */ |
7564 |
|
7565 |
int |
7566 |
main () |
7567 |
{ |
7568 |
|
7569 |
; |
7570 |
return 0; |
7571 |
} |
7572 |
_ACEOF |
7573 |
if ac_fn_c_try_link "$LINENO"; then : |
7574 |
lt_cv_ld_exported_symbols_list=yes |
7575 |
else |
7576 |
lt_cv_ld_exported_symbols_list=no |
7577 |
fi |
7578 |
rm -f core conftest.err conftest.$ac_objext \ |
7579 |
conftest$ac_exeext conftest.$ac_ext |
7580 |
LDFLAGS="$save_LDFLAGS" |
7581 |
|
7582 |
fi |
7583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7584 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7585 |
|
7586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7587 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
7588 |
if ${lt_cv_ld_force_load+:} false; then : |
7589 |
$as_echo_n "(cached) " >&6 |
7590 |
else |
7591 |
lt_cv_ld_force_load=no |
7592 |
cat > conftest.c << _LT_EOF |
7593 |
int forced_loaded() { return 2;} |
7594 |
_LT_EOF |
7595 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
7596 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
7597 |
echo "$AR cru libconftest.a conftest.o" >&5 |
7598 |
$AR cru libconftest.a conftest.o 2>&5 |
7599 |
echo "$RANLIB libconftest.a" >&5 |
7600 |
$RANLIB libconftest.a 2>&5 |
7601 |
cat > conftest.c << _LT_EOF |
7602 |
int main() { return 0;} |
7603 |
_LT_EOF |
7604 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
7605 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
7606 |
_lt_result=$? |
7607 |
if test -s conftest.err && $GREP force_load conftest.err; then |
7608 |
cat conftest.err >&5 |
7609 |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
7610 |
lt_cv_ld_force_load=yes |
7611 |
else |
7612 |
cat conftest.err >&5 |
7613 |
fi |
7614 |
rm -f conftest.err libconftest.a conftest conftest.c |
7615 |
rm -rf conftest.dSYM |
7616 |
|
7617 |
fi |
7618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7619 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
7620 |
case $host_os in |
7621 |
rhapsody* | darwin1.[012]) |
7622 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
7623 |
darwin1.*) |
7624 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7625 |
darwin*) # darwin 5.x on |
7626 |
# if running on 10.5 or later, the deployment target defaults |
7627 |
# to the OS version, if on x86, and 10.4, the deployment |
7628 |
# target defaults to 10.4. Don't you love it? |
7629 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7630 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7631 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7632 |
10.[012]*) |
7633 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7634 |
10.*) |
7635 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7636 |
esac |
7637 |
;; |
7638 |
esac |
7639 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
7640 |
_lt_dar_single_mod='$single_module' |
7641 |
fi |
7642 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
7643 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
7644 |
else |
7645 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7646 |
fi |
7647 |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
7648 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
7649 |
else |
7650 |
_lt_dsymutil= |
7651 |
fi |
7652 |
;; |
7653 |
esac |
7654 |
|
7655 |
ac_ext=c |
7656 |
ac_cpp='$CPP $CPPFLAGS' |
7657 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7658 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7659 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7661 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
7662 |
# On Suns, sometimes $CPP names a directory. |
7663 |
if test -n "$CPP" && test -d "$CPP"; then |
7664 |
CPP= |
7665 |
fi |
7666 |
if test -z "$CPP"; then |
7667 |
if ${ac_cv_prog_CPP+:} false; then : |
7668 |
$as_echo_n "(cached) " >&6 |
7669 |
else |
7670 |
# Double quotes because CPP needs to be expanded |
7671 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
7672 |
do |
7673 |
ac_preproc_ok=false |
7674 |
for ac_c_preproc_warn_flag in '' yes |
7675 |
do |
7676 |
# Use a header file that comes with gcc, so configuring glibc |
7677 |
# with a fresh cross-compiler works. |
7678 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7679 |
# <limits.h> exists even on freestanding compilers. |
7680 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7681 |
# not just through cpp. "Syntax error" is here to catch this case. |
7682 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7683 |
/* end confdefs.h. */ |
7684 |
#ifdef __STDC__ |
7685 |
# include <limits.h> |
7686 |
#else |
7687 |
# include <assert.h> |
7688 |
#endif |
7689 |
Syntax error |
7690 |
_ACEOF |
7691 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7692 |
|
7693 |
else |
7694 |
# Broken: fails on valid input. |
7695 |
continue |
7696 |
fi |
7697 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7698 |
|
7699 |
# OK, works on sane cases. Now check whether nonexistent headers |
7700 |
# can be detected and how. |
7701 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7702 |
/* end confdefs.h. */ |
7703 |
#include <ac_nonexistent.h> |
7704 |
_ACEOF |
7705 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7706 |
# Broken: success on invalid input. |
7707 |
continue |
7708 |
else |
7709 |
# Passes both tests. |
7710 |
ac_preproc_ok=: |
7711 |
break |
7712 |
fi |
7713 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7714 |
|
7715 |
done |
7716 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7717 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7718 |
if $ac_preproc_ok; then : |
7719 |
break |
7720 |
fi |
7721 |
|
7722 |
done |
7723 |
ac_cv_prog_CPP=$CPP |
7724 |
|
7725 |
fi |
7726 |
CPP=$ac_cv_prog_CPP |
7727 |
else |
7728 |
ac_cv_prog_CPP=$CPP |
7729 |
fi |
7730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7731 |
$as_echo "$CPP" >&6; } |
7732 |
ac_preproc_ok=false |
7733 |
for ac_c_preproc_warn_flag in '' yes |
7734 |
do |
7735 |
# Use a header file that comes with gcc, so configuring glibc |
7736 |
# with a fresh cross-compiler works. |
7737 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7738 |
# <limits.h> exists even on freestanding compilers. |
7739 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7740 |
# not just through cpp. "Syntax error" is here to catch this case. |
7741 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7742 |
/* end confdefs.h. */ |
7743 |
#ifdef __STDC__ |
7744 |
# include <limits.h> |
7745 |
#else |
7746 |
# include <assert.h> |
7747 |
#endif |
7748 |
Syntax error |
7749 |
_ACEOF |
7750 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7751 |
|
7752 |
else |
7753 |
# Broken: fails on valid input. |
7754 |
continue |
7755 |
fi |
7756 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7757 |
|
7758 |
# OK, works on sane cases. Now check whether nonexistent headers |
7759 |
# can be detected and how. |
7760 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7761 |
/* end confdefs.h. */ |
7762 |
#include <ac_nonexistent.h> |
7763 |
_ACEOF |
7764 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7765 |
# Broken: success on invalid input. |
7766 |
continue |
7767 |
else |
7768 |
# Passes both tests. |
7769 |
ac_preproc_ok=: |
7770 |
break |
7771 |
fi |
7772 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7773 |
|
7774 |
done |
7775 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7776 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7777 |
if $ac_preproc_ok; then : |
7778 |
|
7779 |
else |
7780 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7781 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7782 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7783 |
See \`config.log' for more details" "$LINENO" 5; } |
7784 |
fi |
7785 |
|
7786 |
ac_ext=c |
7787 |
ac_cpp='$CPP $CPPFLAGS' |
7788 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7789 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7790 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7791 |
|
7792 |
|
7793 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7794 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7795 |
if ${ac_cv_header_stdc+:} false; then : |
7796 |
$as_echo_n "(cached) " >&6 |
7797 |
else |
7798 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7799 |
/* end confdefs.h. */ |
7800 |
#include <stdlib.h> |
7801 |
#include <stdarg.h> |
7802 |
#include <string.h> |
7803 |
#include <float.h> |
7804 |
|
7805 |
int |
7806 |
main () |
7807 |
{ |
7808 |
|
7809 |
; |
7810 |
return 0; |
7811 |
} |
7812 |
_ACEOF |
7813 |
if ac_fn_c_try_compile "$LINENO"; then : |
7814 |
ac_cv_header_stdc=yes |
7815 |
else |
7816 |
ac_cv_header_stdc=no |
7817 |
fi |
7818 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7819 |
|
7820 |
if test $ac_cv_header_stdc = yes; then |
7821 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7822 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7823 |
/* end confdefs.h. */ |
7824 |
#include <string.h> |
7825 |
|
7826 |
_ACEOF |
7827 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7828 |
$EGREP "memchr" >/dev/null 2>&1; then : |
7829 |
|
7830 |
else |
7831 |
ac_cv_header_stdc=no |
7832 |
fi |
7833 |
rm -f conftest* |
7834 |
|
7835 |
fi |
7836 |
|
7837 |
if test $ac_cv_header_stdc = yes; then |
7838 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7839 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7840 |
/* end confdefs.h. */ |
7841 |
#include <stdlib.h> |
7842 |
|
7843 |
_ACEOF |
7844 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7845 |
$EGREP "free" >/dev/null 2>&1; then : |
7846 |
|
7847 |
else |
7848 |
ac_cv_header_stdc=no |
7849 |
fi |
7850 |
rm -f conftest* |
7851 |
|
7852 |
fi |
7853 |
|
7854 |
if test $ac_cv_header_stdc = yes; then |
7855 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7856 |
if test "$cross_compiling" = yes; then : |
7857 |
: |
7858 |
else |
7859 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7860 |
/* end confdefs.h. */ |
7861 |
#include <ctype.h> |
7862 |
#include <stdlib.h> |
7863 |
#if ((' ' & 0x0FF) == 0x020) |
7864 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7865 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7866 |
#else |
7867 |
# define ISLOWER(c) \ |
7868 |
(('a' <= (c) && (c) <= 'i') \ |
7869 |
|| ('j' <= (c) && (c) <= 'r') \ |
7870 |
|| ('s' <= (c) && (c) <= 'z')) |
7871 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7872 |
#endif |
7873 |
|
7874 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7875 |
int |
7876 |
main () |
7877 |
{ |
7878 |
int i; |
7879 |
for (i = 0; i < 256; i++) |
7880 |
if (XOR (islower (i), ISLOWER (i)) |
7881 |
|| toupper (i) != TOUPPER (i)) |
7882 |
return 2; |
7883 |
return 0; |
7884 |
} |
7885 |
_ACEOF |
7886 |
if ac_fn_c_try_run "$LINENO"; then : |
7887 |
|
7888 |
else |
7889 |
ac_cv_header_stdc=no |
7890 |
fi |
7891 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7892 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7893 |
fi |
7894 |
|
7895 |
fi |
7896 |
fi |
7897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7898 |
$as_echo "$ac_cv_header_stdc" >&6; } |
7899 |
if test $ac_cv_header_stdc = yes; then |
7900 |
|
7901 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7902 |
|
7903 |
fi |
7904 |
|
7905 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7906 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7907 |
inttypes.h stdint.h unistd.h |
7908 |
do : |
7909 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7910 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
7911 |
" |
7912 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7913 |
cat >>confdefs.h <<_ACEOF |
7914 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7915 |
_ACEOF |
7916 |
|
7917 |
fi |
7918 |
|
7919 |
done |
7920 |
|
7921 |
|
7922 |
for ac_header in dlfcn.h |
7923 |
do : |
7924 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
7925 |
" |
7926 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7927 |
cat >>confdefs.h <<_ACEOF |
7928 |
#define HAVE_DLFCN_H 1 |
7929 |
_ACEOF |
7930 |
|
7931 |
fi |
7932 |
|
7933 |
done |
7934 |
|
7935 |
|
7936 |
|
7937 |
|
7938 |
|
7939 |
# Set options |
7940 |
enable_dlopen=yes |
7941 |
# Check whether --enable-static was given. |
7942 |
if test "${enable_static+set}" = set; then : |
7943 |
enableval=$enable_static; p=${PACKAGE-default} |
7944 |
case $enableval in |
7945 |
yes) enable_static=yes ;; |
7946 |
no) enable_static=no ;; |
7947 |
*) |
7948 |
enable_static=no |
7949 |
# Look at the argument we got. We use all the common list separators. |
7950 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
7951 |
for pkg in $enableval; do |
7952 |
IFS="$lt_save_ifs" |
7953 |
if test "X$pkg" = "X$p"; then |
7954 |
enable_static=yes |
7955 |
fi |
7956 |
done |
7957 |
IFS="$lt_save_ifs" |
7958 |
;; |
7959 |
esac |
7960 |
else |
7961 |
enable_static=no |
7962 |
fi |
7963 |
|
7964 |
|
7965 |
|
7966 |
|
7967 |
|
7968 |
|
7969 |
|
7970 |
|
7971 |
|
7972 |
|
7973 |
|
7974 |
enable_win32_dll=no |
7975 |
|
7976 |
|
7977 |
# Check whether --enable-shared was given. |
7978 |
if test "${enable_shared+set}" = set; then : |
7979 |
enableval=$enable_shared; p=${PACKAGE-default} |
7980 |
case $enableval in |
7981 |
yes) enable_shared=yes ;; |
7982 |
no) enable_shared=no ;; |
7983 |
*) |
7984 |
enable_shared=no |
7985 |
# Look at the argument we got. We use all the common list separators. |
7986 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
7987 |
for pkg in $enableval; do |
7988 |
IFS="$lt_save_ifs" |
7989 |
if test "X$pkg" = "X$p"; then |
7990 |
enable_shared=yes |
7991 |
fi |
7992 |
done |
7993 |
IFS="$lt_save_ifs" |
7994 |
;; |
7995 |
esac |
7996 |
else |
7997 |
enable_shared=yes |
7998 |
fi |
7999 |
|
8000 |
|
8001 |
|
8002 |
|
8003 |
|
8004 |
|
8005 |
|
8006 |
|
8007 |
|
8008 |
|
8009 |
|
8010 |
# Check whether --with-pic was given. |
8011 |
if test "${with_pic+set}" = set; then : |
8012 |
withval=$with_pic; lt_p=${PACKAGE-default} |
8013 |
case $withval in |
8014 |
yes|no) pic_mode=$withval ;; |
8015 |
*) |
8016 |
pic_mode=default |
8017 |
# Look at the argument we got. We use all the common list separators. |
8018 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8019 |
for lt_pkg in $withval; do |
8020 |
IFS="$lt_save_ifs" |
8021 |
if test "X$lt_pkg" = "X$lt_p"; then |
8022 |
pic_mode=yes |
8023 |
fi |
8024 |
done |
8025 |
IFS="$lt_save_ifs" |
8026 |
;; |
8027 |
esac |
8028 |
else |
8029 |
pic_mode=default |
8030 |
fi |
8031 |
|
8032 |
|
8033 |
test -z "$pic_mode" && pic_mode=default |
8034 |
|
8035 |
|
8036 |
|
8037 |
|
8038 |
|
8039 |
|
8040 |
|
8041 |
# Check whether --enable-fast-install was given. |
8042 |
if test "${enable_fast_install+set}" = set; then : |
8043 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
8044 |
case $enableval in |
8045 |
yes) enable_fast_install=yes ;; |
8046 |
no) enable_fast_install=no ;; |
8047 |
*) |
8048 |
enable_fast_install=no |
8049 |
# Look at the argument we got. We use all the common list separators. |
8050 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
8051 |
for pkg in $enableval; do |
8052 |
IFS="$lt_save_ifs" |
8053 |
if test "X$pkg" = "X$p"; then |
8054 |
enable_fast_install=yes |
8055 |
fi |
8056 |
done |
8057 |
IFS="$lt_save_ifs" |
8058 |
;; |
8059 |
esac |
8060 |
else |
8061 |
enable_fast_install=yes |
8062 |
fi |
8063 |
|
8064 |
|
8065 |
|
8066 |
|
8067 |
|
8068 |
|
8069 |
|
8070 |
|
8071 |
|
8072 |
|
8073 |
|
8074 |
# This can be used to rebuild libtool when needed |
8075 |
LIBTOOL_DEPS="$ltmain" |
8076 |
|
8077 |
# Always use our own libtool. |
8078 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
8079 |
|
8080 |
|
8081 |
|
8082 |
|
8083 |
|
8084 |
|
8085 |
|
8086 |
|
8087 |
|
8088 |
|
8089 |
|
8090 |
|
8091 |
|
8092 |
|
8093 |
|
8094 |
|
8095 |
|
8096 |
|
8097 |
|
8098 |
|
8099 |
|
8100 |
|
8101 |
|
8102 |
|
8103 |
|
8104 |
|
8105 |
|
8106 |
|
8107 |
|
8108 |
|
8109 |
test -z "$LN_S" && LN_S="ln -s" |
8110 |
|
8111 |
|
8112 |
|
8113 |
|
8114 |
|
8115 |
|
8116 |
|
8117 |
|
8118 |
|
8119 |
|
8120 |
|
8121 |
|
8122 |
|
8123 |
|
8124 |
if test -n "${ZSH_VERSION+set}" ; then |
8125 |
setopt NO_GLOB_SUBST |
8126 |
fi |
8127 |
|
8128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8129 |
$as_echo_n "checking for objdir... " >&6; } |
8130 |
if ${lt_cv_objdir+:} false; then : |
8131 |
$as_echo_n "(cached) " >&6 |
8132 |
else |
8133 |
rm -f .libs 2>/dev/null |
8134 |
mkdir .libs 2>/dev/null |
8135 |
if test -d .libs; then |
8136 |
lt_cv_objdir=.libs |
8137 |
else |
8138 |
# MS-DOS does not allow filenames that begin with a dot. |
8139 |
lt_cv_objdir=_libs |
8140 |
fi |
8141 |
rmdir .libs 2>/dev/null |
8142 |
fi |
8143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8144 |
$as_echo "$lt_cv_objdir" >&6; } |
8145 |
objdir=$lt_cv_objdir |
8146 |
|
8147 |
|
8148 |
|
8149 |
|
8150 |
|
8151 |
cat >>confdefs.h <<_ACEOF |
8152 |
#define LT_OBJDIR "$lt_cv_objdir/" |
8153 |
_ACEOF |
8154 |
|
8155 |
|
8156 |
|
8157 |
|
8158 |
case $host_os in |
8159 |
aix3*) |
8160 |
# AIX sometimes has problems with the GCC collect2 program. For some |
8161 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
8162 |
# vanish in a puff of smoke. |
8163 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
8164 |
COLLECT_NAMES= |
8165 |
export COLLECT_NAMES |
8166 |
fi |
8167 |
;; |
8168 |
esac |
8169 |
|
8170 |
# Global variables: |
8171 |
ofile=libtool |
8172 |
can_build_shared=yes |
8173 |
|
8174 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
8175 |
# which needs '.lib'). |
8176 |
libext=a |
8177 |
|
8178 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
8179 |
|
8180 |
old_CC="$CC" |
8181 |
old_CFLAGS="$CFLAGS" |
8182 |
|
8183 |
# Set sane defaults for various variables |
8184 |
test -z "$CC" && CC=cc |
8185 |
test -z "$LTCC" && LTCC=$CC |
8186 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
8187 |
test -z "$LD" && LD=ld |
8188 |
test -z "$ac_objext" && ac_objext=o |
8189 |
|
8190 |
for cc_temp in $compiler""; do |
8191 |
case $cc_temp in |
8192 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8193 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8194 |
\-*) ;; |
8195 |
*) break;; |
8196 |
esac |
8197 |
done |
8198 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8199 |
|
8200 |
|
8201 |
# Only perform the check for file, if the check method requires it |
8202 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
8203 |
case $deplibs_check_method in |
8204 |
file_magic*) |
8205 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
8206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8207 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
8208 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8209 |
$as_echo_n "(cached) " >&6 |
8210 |
else |
8211 |
case $MAGIC_CMD in |
8212 |
[\\/*] | ?:[\\/]*) |
8213 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8214 |
;; |
8215 |
*) |
8216 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
8217 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8218 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8219 |
for ac_dir in $ac_dummy; do |
8220 |
IFS="$lt_save_ifs" |
8221 |
test -z "$ac_dir" && ac_dir=. |
8222 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
8223 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
8224 |
if test -n "$file_magic_test_file"; then |
8225 |
case $deplibs_check_method in |
8226 |
"file_magic "*) |
8227 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8228 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8229 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8230 |
$EGREP "$file_magic_regex" > /dev/null; then |
8231 |
: |
8232 |
else |
8233 |
cat <<_LT_EOF 1>&2 |
8234 |
|
8235 |
*** Warning: the command libtool uses to detect shared libraries, |
8236 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8237 |
*** The result is that libtool may fail to recognize shared libraries |
8238 |
*** as such. This will affect the creation of libtool libraries that |
8239 |
*** depend on shared libraries, but programs linked with such libtool |
8240 |
*** libraries will work regardless of this problem. Nevertheless, you |
8241 |
*** may want to report the problem to your system manager and/or to |
8242 |
*** bug-libtool@gnu.org |
8243 |
|
8244 |
_LT_EOF |
8245 |
fi ;; |
8246 |
esac |
8247 |
fi |
8248 |
break |
8249 |
fi |
8250 |
done |
8251 |
IFS="$lt_save_ifs" |
8252 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
8253 |
;; |
8254 |
esac |
8255 |
fi |
8256 |
|
8257 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8258 |
if test -n "$MAGIC_CMD"; then |
8259 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8260 |
$as_echo "$MAGIC_CMD" >&6; } |
8261 |
else |
8262 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8263 |
$as_echo "no" >&6; } |
8264 |
fi |
8265 |
|
8266 |
|
8267 |
|
8268 |
|
8269 |
|
8270 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
8271 |
if test -n "$ac_tool_prefix"; then |
8272 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8273 |
$as_echo_n "checking for file... " >&6; } |
8274 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8275 |
$as_echo_n "(cached) " >&6 |
8276 |
else |
8277 |
case $MAGIC_CMD in |
8278 |
[\\/*] | ?:[\\/]*) |
8279 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8280 |
;; |
8281 |
*) |
8282 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
8283 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8284 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8285 |
for ac_dir in $ac_dummy; do |
8286 |
IFS="$lt_save_ifs" |
8287 |
test -z "$ac_dir" && ac_dir=. |
8288 |
if test -f $ac_dir/file; then |
8289 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
8290 |
if test -n "$file_magic_test_file"; then |
8291 |
case $deplibs_check_method in |
8292 |
"file_magic "*) |
8293 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8294 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8295 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8296 |
$EGREP "$file_magic_regex" > /dev/null; then |
8297 |
: |
8298 |
else |
8299 |
cat <<_LT_EOF 1>&2 |
8300 |
|
8301 |
*** Warning: the command libtool uses to detect shared libraries, |
8302 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8303 |
*** The result is that libtool may fail to recognize shared libraries |
8304 |
*** as such. This will affect the creation of libtool libraries that |
8305 |
*** depend on shared libraries, but programs linked with such libtool |
8306 |
*** libraries will work regardless of this problem. Nevertheless, you |
8307 |
*** may want to report the problem to your system manager and/or to |
8308 |
*** bug-libtool@gnu.org |
8309 |
|
8310 |
_LT_EOF |
8311 |
fi ;; |
8312 |
esac |
8313 |
fi |
8314 |
break |
8315 |
fi |
8316 |
done |
8317 |
IFS="$lt_save_ifs" |
8318 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
8319 |
;; |
8320 |
esac |
8321 |
fi |
8322 |
|
8323 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8324 |
if test -n "$MAGIC_CMD"; then |
8325 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8326 |
$as_echo "$MAGIC_CMD" >&6; } |
8327 |
else |
8328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8329 |
$as_echo "no" >&6; } |
8330 |
fi |
8331 |
|
8332 |
|
8333 |
else |
8334 |
MAGIC_CMD=: |
8335 |
fi |
8336 |
fi |
8337 |
|
8338 |
fi |
8339 |
;; |
8340 |
esac |
8341 |
|
8342 |
# Use C for the default configuration in the libtool script |
8343 |
|
8344 |
lt_save_CC="$CC" |
8345 |
ac_ext=c |
8346 |
ac_cpp='$CPP $CPPFLAGS' |
8347 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8348 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8349 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8350 |
|
8351 |
|
8352 |
# Source file extension for C test sources. |
8353 |
ac_ext=c |
8354 |
|
8355 |
# Object file extension for compiled C test sources. |
8356 |
objext=o |
8357 |
objext=$objext |
8358 |
|
8359 |
# Code to be used in simple compile tests |
8360 |
lt_simple_compile_test_code="int some_variable = 0;" |
8361 |
|
8362 |
# Code to be used in simple link tests |
8363 |
lt_simple_link_test_code='int main(){return(0);}' |
8364 |
|
8365 |
|
8366 |
|
8367 |
|
8368 |
|
8369 |
|
8370 |
|
8371 |
# If no C compiler was specified, use CC. |
8372 |
LTCC=${LTCC-"$CC"} |
8373 |
|
8374 |
# If no C compiler flags were specified, use CFLAGS. |
8375 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
8376 |
|
8377 |
# Allow CC to be a program name with arguments. |
8378 |
compiler=$CC |
8379 |
|
8380 |
# Save the default compiler, since it gets overwritten when the other |
8381 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
8382 |
compiler_DEFAULT=$CC |
8383 |
|
8384 |
# save warnings/boilerplate of simple test code |
8385 |
ac_outfile=conftest.$ac_objext |
8386 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
8387 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8388 |
_lt_compiler_boilerplate=`cat conftest.err` |
8389 |
$RM conftest* |
8390 |
|
8391 |
ac_outfile=conftest.$ac_objext |
8392 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8393 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8394 |
_lt_linker_boilerplate=`cat conftest.err` |
8395 |
$RM -r conftest* |
8396 |
|
8397 |
|
8398 |
if test -n "$compiler"; then |
8399 |
|
8400 |
lt_prog_compiler_no_builtin_flag= |
8401 |
|
8402 |
if test "$GCC" = yes; then |
8403 |
case $cc_basename in |
8404 |
nvcc*) |
8405 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
8406 |
*) |
8407 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
8408 |
esac |
8409 |
|
8410 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8411 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8412 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8413 |
$as_echo_n "(cached) " >&6 |
8414 |
else |
8415 |
lt_cv_prog_compiler_rtti_exceptions=no |
8416 |
ac_outfile=conftest.$ac_objext |
8417 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8418 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
8419 |
# Insert the option either (1) after the last *FLAGS variable, or |
8420 |
# (2) before a word containing "conftest.", or (3) at the end. |
8421 |
# Note that $ac_compile itself does not contain backslashes and begins |
8422 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8423 |
# The option is referenced via a variable to avoid confusing sed. |
8424 |
lt_compile=`echo "$ac_compile" | $SED \ |
8425 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8426 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8427 |
-e 's:$: $lt_compiler_flag:'` |
8428 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8429 |
(eval "$lt_compile" 2>conftest.err) |
8430 |
ac_status=$? |
8431 |
cat conftest.err >&5 |
8432 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8433 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8434 |
# The compiler can only warn and ignore the option if not recognized |
8435 |
# So say no if there are warnings other than the usual output. |
8436 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8437 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8438 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8439 |
lt_cv_prog_compiler_rtti_exceptions=yes |
8440 |
fi |
8441 |
fi |
8442 |
$RM conftest* |
8443 |
|
8444 |
fi |
8445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8446 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8447 |
|
8448 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8449 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8450 |
else |
8451 |
: |
8452 |
fi |
8453 |
|
8454 |
fi |
8455 |
|
8456 |
|
8457 |
|
8458 |
|
8459 |
|
8460 |
|
8461 |
lt_prog_compiler_wl= |
8462 |
lt_prog_compiler_pic= |
8463 |
lt_prog_compiler_static= |
8464 |
|
8465 |
|
8466 |
if test "$GCC" = yes; then |
8467 |
lt_prog_compiler_wl='-Wl,' |
8468 |
lt_prog_compiler_static='-static' |
8469 |
|
8470 |
case $host_os in |
8471 |
aix*) |
8472 |
# All AIX code is PIC. |
8473 |
if test "$host_cpu" = ia64; then |
8474 |
# AIX 5 now supports IA64 processor |
8475 |
lt_prog_compiler_static='-Bstatic' |
8476 |
fi |
8477 |
;; |
8478 |
|
8479 |
amigaos*) |
8480 |
case $host_cpu in |
8481 |
powerpc) |
8482 |
# see comment about AmigaOS4 .so support |
8483 |
lt_prog_compiler_pic='-fPIC' |
8484 |
;; |
8485 |
m68k) |
8486 |
# FIXME: we need at least 68020 code to build shared libraries, but |
8487 |
# adding the `-m68020' flag to GCC prevents building anything better, |
8488 |
# like `-m68040'. |
8489 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8490 |
;; |
8491 |
esac |
8492 |
;; |
8493 |
|
8494 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8495 |
# PIC is the default for these OSes. |
8496 |
;; |
8497 |
|
8498 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8499 |
# This hack is so that the source file can tell whether it is being |
8500 |
# built for inclusion in a dll (and should export symbols for example). |
8501 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
8502 |
# (--disable-auto-import) libraries |
8503 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8504 |
;; |
8505 |
|
8506 |
darwin* | rhapsody*) |
8507 |
# PIC is the default on this platform |
8508 |
# Common symbols not allowed in MH_DYLIB files |
8509 |
lt_prog_compiler_pic='-fno-common' |
8510 |
;; |
8511 |
|
8512 |
haiku*) |
8513 |
# PIC is the default for Haiku. |
8514 |
# The "-static" flag exists, but is broken. |
8515 |
lt_prog_compiler_static= |
8516 |
;; |
8517 |
|
8518 |
hpux*) |
8519 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8520 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8521 |
# sets the default TLS model and affects inlining. |
8522 |
case $host_cpu in |
8523 |
hppa*64*) |
8524 |
# +Z the default |
8525 |
;; |
8526 |
*) |
8527 |
lt_prog_compiler_pic='-fPIC' |
8528 |
;; |
8529 |
esac |
8530 |
;; |
8531 |
|
8532 |
interix[3-9]*) |
8533 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8534 |
# Instead, we relocate shared libraries at runtime. |
8535 |
;; |
8536 |
|
8537 |
msdosdjgpp*) |
8538 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
8539 |
# on systems that don't support them. |
8540 |
lt_prog_compiler_can_build_shared=no |
8541 |
enable_shared=no |
8542 |
;; |
8543 |
|
8544 |
*nto* | *qnx*) |
8545 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8546 |
# it will coredump. |
8547 |
lt_prog_compiler_pic='-fPIC -shared' |
8548 |
;; |
8549 |
|
8550 |
sysv4*MP*) |
8551 |
if test -d /usr/nec; then |
8552 |
lt_prog_compiler_pic=-Kconform_pic |
8553 |
fi |
8554 |
;; |
8555 |
|
8556 |
*) |
8557 |
lt_prog_compiler_pic='-fPIC' |
8558 |
;; |
8559 |
esac |
8560 |
|
8561 |
case $cc_basename in |
8562 |
nvcc*) # Cuda Compiler Driver 2.2 |
8563 |
lt_prog_compiler_wl='-Xlinker ' |
8564 |
if test -n "$lt_prog_compiler_pic"; then |
8565 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
8566 |
fi |
8567 |
;; |
8568 |
esac |
8569 |
else |
8570 |
# PORTME Check for flag to pass linker flags through the system compiler. |
8571 |
case $host_os in |
8572 |
aix*) |
8573 |
lt_prog_compiler_wl='-Wl,' |
8574 |
if test "$host_cpu" = ia64; then |
8575 |
# AIX 5 now supports IA64 processor |
8576 |
lt_prog_compiler_static='-Bstatic' |
8577 |
else |
8578 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
8579 |
fi |
8580 |
;; |
8581 |
|
8582 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8583 |
# This hack is so that the source file can tell whether it is being |
8584 |
# built for inclusion in a dll (and should export symbols for example). |
8585 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8586 |
;; |
8587 |
|
8588 |
hpux9* | hpux10* | hpux11*) |
8589 |
lt_prog_compiler_wl='-Wl,' |
8590 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8591 |
# not for PA HP-UX. |
8592 |
case $host_cpu in |
8593 |
hppa*64*|ia64*) |
8594 |
# +Z the default |
8595 |
;; |
8596 |
*) |
8597 |
lt_prog_compiler_pic='+Z' |
8598 |
;; |
8599 |
esac |
8600 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
8601 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
8602 |
;; |
8603 |
|
8604 |
irix5* | irix6* | nonstopux*) |
8605 |
lt_prog_compiler_wl='-Wl,' |
8606 |
# PIC (with -KPIC) is the default. |
8607 |
lt_prog_compiler_static='-non_shared' |
8608 |
;; |
8609 |
|
8610 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8611 |
case $cc_basename in |
8612 |
# old Intel for x86_64 which still supported -KPIC. |
8613 |
ecc*) |
8614 |
lt_prog_compiler_wl='-Wl,' |
8615 |
lt_prog_compiler_pic='-KPIC' |
8616 |
lt_prog_compiler_static='-static' |
8617 |
;; |
8618 |
# icc used to be incompatible with GCC. |
8619 |
# ICC 10 doesn't accept -KPIC any more. |
8620 |
icc* | ifort*) |
8621 |
lt_prog_compiler_wl='-Wl,' |
8622 |
lt_prog_compiler_pic='-fPIC' |
8623 |
lt_prog_compiler_static='-static' |
8624 |
;; |
8625 |
# Lahey Fortran 8.1. |
8626 |
lf95*) |
8627 |
lt_prog_compiler_wl='-Wl,' |
8628 |
lt_prog_compiler_pic='--shared' |
8629 |
lt_prog_compiler_static='--static' |
8630 |
;; |
8631 |
nagfor*) |
8632 |
# NAG Fortran compiler |
8633 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8634 |
lt_prog_compiler_pic='-PIC' |
8635 |
lt_prog_compiler_static='-Bstatic' |
8636 |
;; |
8637 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8638 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
8639 |
# which looks to be a dead project) |
8640 |
lt_prog_compiler_wl='-Wl,' |
8641 |
lt_prog_compiler_pic='-fpic' |
8642 |
lt_prog_compiler_static='-Bstatic' |
8643 |
;; |
8644 |
ccc*) |
8645 |
lt_prog_compiler_wl='-Wl,' |
8646 |
# All Alpha code is PIC. |
8647 |
lt_prog_compiler_static='-non_shared' |
8648 |
;; |
8649 |
xl* | bgxl* | bgf* | mpixl*) |
8650 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
8651 |
lt_prog_compiler_wl='-Wl,' |
8652 |
lt_prog_compiler_pic='-qpic' |
8653 |
lt_prog_compiler_static='-qstaticlink' |
8654 |
;; |
8655 |
*) |
8656 |
case `$CC -V 2>&1 | sed 5q` in |
8657 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8658 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
8659 |
lt_prog_compiler_pic='-KPIC' |
8660 |
lt_prog_compiler_static='-Bstatic' |
8661 |
lt_prog_compiler_wl='' |
8662 |
;; |
8663 |
*Sun\ F* | *Sun*Fortran*) |
8664 |
lt_prog_compiler_pic='-KPIC' |
8665 |
lt_prog_compiler_static='-Bstatic' |
8666 |
lt_prog_compiler_wl='-Qoption ld ' |
8667 |
;; |
8668 |
*Sun\ C*) |
8669 |
# Sun C 5.9 |
8670 |
lt_prog_compiler_pic='-KPIC' |
8671 |
lt_prog_compiler_static='-Bstatic' |
8672 |
lt_prog_compiler_wl='-Wl,' |
8673 |
;; |
8674 |
*Intel*\ [CF]*Compiler*) |
8675 |
lt_prog_compiler_wl='-Wl,' |
8676 |
lt_prog_compiler_pic='-fPIC' |
8677 |
lt_prog_compiler_static='-static' |
8678 |
;; |
8679 |
*Portland\ Group*) |
8680 |
lt_prog_compiler_wl='-Wl,' |
8681 |
lt_prog_compiler_pic='-fpic' |
8682 |
lt_prog_compiler_static='-Bstatic' |
8683 |
;; |
8684 |
esac |
8685 |
;; |
8686 |
esac |
8687 |
;; |
8688 |
|
8689 |
newsos6) |
8690 |
lt_prog_compiler_pic='-KPIC' |
8691 |
lt_prog_compiler_static='-Bstatic' |
8692 |
;; |
8693 |
|
8694 |
*nto* | *qnx*) |
8695 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8696 |
# it will coredump. |
8697 |
lt_prog_compiler_pic='-fPIC -shared' |
8698 |
;; |
8699 |
|
8700 |
osf3* | osf4* | osf5*) |
8701 |
lt_prog_compiler_wl='-Wl,' |
8702 |
# All OSF/1 code is PIC. |
8703 |
lt_prog_compiler_static='-non_shared' |
8704 |
;; |
8705 |
|
8706 |
rdos*) |
8707 |
lt_prog_compiler_static='-non_shared' |
8708 |
;; |
8709 |
|
8710 |
solaris*) |
8711 |
lt_prog_compiler_pic='-KPIC' |
8712 |
lt_prog_compiler_static='-Bstatic' |
8713 |
case $cc_basename in |
8714 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8715 |
lt_prog_compiler_wl='-Qoption ld ';; |
8716 |
*) |
8717 |
lt_prog_compiler_wl='-Wl,';; |
8718 |
esac |
8719 |
;; |
8720 |
|
8721 |
sunos4*) |
8722 |
lt_prog_compiler_wl='-Qoption ld ' |
8723 |
lt_prog_compiler_pic='-PIC' |
8724 |
lt_prog_compiler_static='-Bstatic' |
8725 |
;; |
8726 |
|
8727 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
8728 |
lt_prog_compiler_wl='-Wl,' |
8729 |
lt_prog_compiler_pic='-KPIC' |
8730 |
lt_prog_compiler_static='-Bstatic' |
8731 |
;; |
8732 |
|
8733 |
sysv4*MP*) |
8734 |
if test -d /usr/nec ;then |
8735 |
lt_prog_compiler_pic='-Kconform_pic' |
8736 |
lt_prog_compiler_static='-Bstatic' |
8737 |
fi |
8738 |
;; |
8739 |
|
8740 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8741 |
lt_prog_compiler_wl='-Wl,' |
8742 |
lt_prog_compiler_pic='-KPIC' |
8743 |
lt_prog_compiler_static='-Bstatic' |
8744 |
;; |
8745 |
|
8746 |
unicos*) |
8747 |
lt_prog_compiler_wl='-Wl,' |
8748 |
lt_prog_compiler_can_build_shared=no |
8749 |
;; |
8750 |
|
8751 |
uts4*) |
8752 |
lt_prog_compiler_pic='-pic' |
8753 |
lt_prog_compiler_static='-Bstatic' |
8754 |
;; |
8755 |
|
8756 |
*) |
8757 |
lt_prog_compiler_can_build_shared=no |
8758 |
;; |
8759 |
esac |
8760 |
fi |
8761 |
|
8762 |
case $host_os in |
8763 |
# For platforms which do not support PIC, -DPIC is meaningless: |
8764 |
*djgpp*) |
8765 |
lt_prog_compiler_pic= |
8766 |
;; |
8767 |
*) |
8768 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
8769 |
;; |
8770 |
esac |
8771 |
|
8772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8773 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
8774 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
8775 |
$as_echo_n "(cached) " >&6 |
8776 |
else |
8777 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
8778 |
fi |
8779 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
8780 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
8781 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
8782 |
|
8783 |
# |
8784 |
# Check to make sure the PIC flag actually works. |
8785 |
# |
8786 |
if test -n "$lt_prog_compiler_pic"; then |
8787 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8788 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
8789 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8790 |
$as_echo_n "(cached) " >&6 |
8791 |
else |
8792 |
lt_cv_prog_compiler_pic_works=no |
8793 |
ac_outfile=conftest.$ac_objext |
8794 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8795 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
8796 |
# Insert the option either (1) after the last *FLAGS variable, or |
8797 |
# (2) before a word containing "conftest.", or (3) at the end. |
8798 |
# Note that $ac_compile itself does not contain backslashes and begins |
8799 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8800 |
# The option is referenced via a variable to avoid confusing sed. |
8801 |
lt_compile=`echo "$ac_compile" | $SED \ |
8802 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8803 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8804 |
-e 's:$: $lt_compiler_flag:'` |
8805 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8806 |
(eval "$lt_compile" 2>conftest.err) |
8807 |
ac_status=$? |
8808 |
cat conftest.err >&5 |
8809 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8810 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8811 |
# The compiler can only warn and ignore the option if not recognized |
8812 |
# So say no if there are warnings other than the usual output. |
8813 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8814 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8815 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8816 |
lt_cv_prog_compiler_pic_works=yes |
8817 |
fi |
8818 |
fi |
8819 |
$RM conftest* |
8820 |
|
8821 |
fi |
8822 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8823 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
8824 |
|
8825 |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8826 |
case $lt_prog_compiler_pic in |
8827 |
"" | " "*) ;; |
8828 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
8829 |
esac |
8830 |
else |
8831 |
lt_prog_compiler_pic= |
8832 |
lt_prog_compiler_can_build_shared=no |
8833 |
fi |
8834 |
|
8835 |
fi |
8836 |
|
8837 |
|
8838 |
|
8839 |
|
8840 |
|
8841 |
|
8842 |
|
8843 |
|
8844 |
|
8845 |
|
8846 |
|
8847 |
# |
8848 |
# Check to make sure the static flag actually works. |
8849 |
# |
8850 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8852 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
8853 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
8854 |
$as_echo_n "(cached) " >&6 |
8855 |
else |
8856 |
lt_cv_prog_compiler_static_works=no |
8857 |
save_LDFLAGS="$LDFLAGS" |
8858 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8859 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
8860 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8861 |
# The linker can only warn and ignore the option if not recognized |
8862 |
# So say no if there are warnings |
8863 |
if test -s conftest.err; then |
8864 |
# Append any errors to the config.log. |
8865 |
cat conftest.err 1>&5 |
8866 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8867 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8868 |
if diff conftest.exp conftest.er2 >/dev/null; then |
8869 |
lt_cv_prog_compiler_static_works=yes |
8870 |
fi |
8871 |
else |
8872 |
lt_cv_prog_compiler_static_works=yes |
8873 |
fi |
8874 |
fi |
8875 |
$RM -r conftest* |
8876 |
LDFLAGS="$save_LDFLAGS" |
8877 |
|
8878 |
fi |
8879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8880 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
8881 |
|
8882 |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8883 |
: |
8884 |
else |
8885 |
lt_prog_compiler_static= |
8886 |
fi |
8887 |
|
8888 |
|
8889 |
|
8890 |
|
8891 |
|
8892 |
|
8893 |
|
8894 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8895 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8896 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8897 |
$as_echo_n "(cached) " >&6 |
8898 |
else |
8899 |
lt_cv_prog_compiler_c_o=no |
8900 |
$RM -r conftest 2>/dev/null |
8901 |
mkdir conftest |
8902 |
cd conftest |
8903 |
mkdir out |
8904 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8905 |
|
8906 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8907 |
# Insert the option either (1) after the last *FLAGS variable, or |
8908 |
# (2) before a word containing "conftest.", or (3) at the end. |
8909 |
# Note that $ac_compile itself does not contain backslashes and begins |
8910 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8911 |
lt_compile=`echo "$ac_compile" | $SED \ |
8912 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8913 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8914 |
-e 's:$: $lt_compiler_flag:'` |
8915 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8916 |
(eval "$lt_compile" 2>out/conftest.err) |
8917 |
ac_status=$? |
8918 |
cat out/conftest.err >&5 |
8919 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8920 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8921 |
then |
8922 |
# The compiler can only warn and ignore the option if not recognized |
8923 |
# So say no if there are warnings |
8924 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8925 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8926 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8927 |
lt_cv_prog_compiler_c_o=yes |
8928 |
fi |
8929 |
fi |
8930 |
chmod u+w . 2>&5 |
8931 |
$RM conftest* |
8932 |
# SGI C++ compiler will create directory out/ii_files/ for |
8933 |
# template instantiation |
8934 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8935 |
$RM out/* && rmdir out |
8936 |
cd .. |
8937 |
$RM -r conftest |
8938 |
$RM conftest* |
8939 |
|
8940 |
fi |
8941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8942 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8943 |
|
8944 |
|
8945 |
|
8946 |
|
8947 |
|
8948 |
|
8949 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8950 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8951 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
8952 |
$as_echo_n "(cached) " >&6 |
8953 |
else |
8954 |
lt_cv_prog_compiler_c_o=no |
8955 |
$RM -r conftest 2>/dev/null |
8956 |
mkdir conftest |
8957 |
cd conftest |
8958 |
mkdir out |
8959 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8960 |
|
8961 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
8962 |
# Insert the option either (1) after the last *FLAGS variable, or |
8963 |
# (2) before a word containing "conftest.", or (3) at the end. |
8964 |
# Note that $ac_compile itself does not contain backslashes and begins |
8965 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8966 |
lt_compile=`echo "$ac_compile" | $SED \ |
8967 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8968 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8969 |
-e 's:$: $lt_compiler_flag:'` |
8970 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8971 |
(eval "$lt_compile" 2>out/conftest.err) |
8972 |
ac_status=$? |
8973 |
cat out/conftest.err >&5 |
8974 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8975 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8976 |
then |
8977 |
# The compiler can only warn and ignore the option if not recognized |
8978 |
# So say no if there are warnings |
8979 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8980 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8981 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8982 |
lt_cv_prog_compiler_c_o=yes |
8983 |
fi |
8984 |
fi |
8985 |
chmod u+w . 2>&5 |
8986 |
$RM conftest* |
8987 |
# SGI C++ compiler will create directory out/ii_files/ for |
8988 |
# template instantiation |
8989 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8990 |
$RM out/* && rmdir out |
8991 |
cd .. |
8992 |
$RM -r conftest |
8993 |
$RM conftest* |
8994 |
|
8995 |
fi |
8996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8997 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8998 |
|
8999 |
|
9000 |
|
9001 |
|
9002 |
hard_links="nottested" |
9003 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
9004 |
# do not overwrite the value of need_locks provided by the user |
9005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9006 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
9007 |
hard_links=yes |
9008 |
$RM conftest* |
9009 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9010 |
touch conftest.a |
9011 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
9012 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9014 |
$as_echo "$hard_links" >&6; } |
9015 |
if test "$hard_links" = no; then |
9016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9017 |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
9018 |
need_locks=warn |
9019 |
fi |
9020 |
else |
9021 |
need_locks=no |
9022 |
fi |
9023 |
|
9024 |
|
9025 |
|
9026 |
|
9027 |
|
9028 |
|
9029 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9030 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
9031 |
|
9032 |
runpath_var= |
9033 |
allow_undefined_flag= |
9034 |
always_export_symbols=no |
9035 |
archive_cmds= |
9036 |
archive_expsym_cmds= |
9037 |
compiler_needs_object=no |
9038 |
enable_shared_with_static_runtimes=no |
9039 |
export_dynamic_flag_spec= |
9040 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
9041 |
hardcode_automatic=no |
9042 |
hardcode_direct=no |
9043 |
hardcode_direct_absolute=no |
9044 |
hardcode_libdir_flag_spec= |
9045 |
hardcode_libdir_separator= |
9046 |
hardcode_minus_L=no |
9047 |
hardcode_shlibpath_var=unsupported |
9048 |
inherit_rpath=no |
9049 |
link_all_deplibs=unknown |
9050 |
module_cmds= |
9051 |
module_expsym_cmds= |
9052 |
old_archive_from_new_cmds= |
9053 |
old_archive_from_expsyms_cmds= |
9054 |
thread_safe_flag_spec= |
9055 |
whole_archive_flag_spec= |
9056 |
# include_expsyms should be a list of space-separated symbols to be *always* |
9057 |
# included in the symbol list |
9058 |
include_expsyms= |
9059 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
9060 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
9061 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
9062 |
# as well as any symbol that contains `d'. |
9063 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9064 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9065 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
9066 |
# the symbol is explicitly referenced. Since portable code cannot |
9067 |
# rely on this symbol name, it's probably fine to never include it in |
9068 |
# preloaded symbol tables. |
9069 |
# Exclude shared library initialization/finalization symbols. |
9070 |
extract_expsyms_cmds= |
9071 |
|
9072 |
case $host_os in |
9073 |
cygwin* | mingw* | pw32* | cegcc*) |
9074 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
9075 |
# When not using gcc, we currently assume that we are using |
9076 |
# Microsoft Visual C++. |
9077 |
if test "$GCC" != yes; then |
9078 |
with_gnu_ld=no |
9079 |
fi |
9080 |
;; |
9081 |
interix*) |
9082 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
9083 |
with_gnu_ld=yes |
9084 |
;; |
9085 |
openbsd*) |
9086 |
with_gnu_ld=no |
9087 |
;; |
9088 |
esac |
9089 |
|
9090 |
ld_shlibs=yes |
9091 |
|
9092 |
# On some targets, GNU ld is compatible enough with the native linker |
9093 |
# that we're better off using the native interface for both. |
9094 |
lt_use_gnu_ld_interface=no |
9095 |
if test "$with_gnu_ld" = yes; then |
9096 |
case $host_os in |
9097 |
aix*) |
9098 |
# The AIX port of GNU ld has always aspired to compatibility |
9099 |
# with the native linker. However, as the warning in the GNU ld |
9100 |
# block says, versions before 2.19.5* couldn't really create working |
9101 |
# shared libraries, regardless of the interface used. |
9102 |
case `$LD -v 2>&1` in |
9103 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
9104 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
9105 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
9106 |
*) |
9107 |
lt_use_gnu_ld_interface=yes |
9108 |
;; |
9109 |
esac |
9110 |
;; |
9111 |
*) |
9112 |
lt_use_gnu_ld_interface=yes |
9113 |
;; |
9114 |
esac |
9115 |
fi |
9116 |
|
9117 |
if test "$lt_use_gnu_ld_interface" = yes; then |
9118 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
9119 |
wlarc='${wl}' |
9120 |
|
9121 |
# Set some defaults for GNU ld with shared library support. These |
9122 |
# are reset later if shared libraries are not supported. Putting them |
9123 |
# here allows them to be overridden if necessary. |
9124 |
runpath_var=LD_RUN_PATH |
9125 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9126 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
9127 |
# ancient GNU ld didn't support --whole-archive et. al. |
9128 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
9129 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
9130 |
else |
9131 |
whole_archive_flag_spec= |
9132 |
fi |
9133 |
supports_anon_versioning=no |
9134 |
case `$LD -v 2>&1` in |
9135 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
9136 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9137 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
9138 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
9139 |
*\ 2.11.*) ;; # other 2.11 versions |
9140 |
*) supports_anon_versioning=yes ;; |
9141 |
esac |
9142 |
|
9143 |
# See if GNU ld supports shared libraries. |
9144 |
case $host_os in |
9145 |
aix[3-9]*) |
9146 |
# On AIX/PPC, the GNU linker is very broken |
9147 |
if test "$host_cpu" != ia64; then |
9148 |
ld_shlibs=no |
9149 |
cat <<_LT_EOF 1>&2 |
9150 |
|
9151 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
9152 |
*** to be unable to reliably create shared libraries on AIX. |
9153 |
*** Therefore, libtool is disabling shared libraries support. If you |
9154 |
*** really care for shared libraries, you may want to install binutils |
9155 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
9156 |
*** You will then need to restart the configuration process. |
9157 |
|
9158 |
_LT_EOF |
9159 |
fi |
9160 |
;; |
9161 |
|
9162 |
amigaos*) |
9163 |
case $host_cpu in |
9164 |
powerpc) |
9165 |
# see comment about AmigaOS4 .so support |
9166 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9167 |
archive_expsym_cmds='' |
9168 |
;; |
9169 |
m68k) |
9170 |
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)' |
9171 |
hardcode_libdir_flag_spec='-L$libdir' |
9172 |
hardcode_minus_L=yes |
9173 |
;; |
9174 |
esac |
9175 |
;; |
9176 |
|
9177 |
beos*) |
9178 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9179 |
allow_undefined_flag=unsupported |
9180 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9181 |
# support --undefined. This deserves some investigation. FIXME |
9182 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9183 |
else |
9184 |
ld_shlibs=no |
9185 |
fi |
9186 |
;; |
9187 |
|
9188 |
cygwin* | mingw* | pw32* | cegcc*) |
9189 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9190 |
# as there is no search path for DLLs. |
9191 |
hardcode_libdir_flag_spec='-L$libdir' |
9192 |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
9193 |
allow_undefined_flag=unsupported |
9194 |
always_export_symbols=no |
9195 |
enable_shared_with_static_runtimes=yes |
9196 |
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' |
9197 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
9198 |
|
9199 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9200 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9201 |
# If the export-symbols file already is a .def file (1st line |
9202 |
# is EXPORTS), use it as is; otherwise, prepend... |
9203 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
9204 |
cp $export_symbols $output_objdir/$soname.def; |
9205 |
else |
9206 |
echo EXPORTS > $output_objdir/$soname.def; |
9207 |
cat $export_symbols >> $output_objdir/$soname.def; |
9208 |
fi~ |
9209 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9210 |
else |
9211 |
ld_shlibs=no |
9212 |
fi |
9213 |
;; |
9214 |
|
9215 |
haiku*) |
9216 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9217 |
link_all_deplibs=yes |
9218 |
;; |
9219 |
|
9220 |
interix[3-9]*) |
9221 |
hardcode_direct=no |
9222 |
hardcode_shlibpath_var=no |
9223 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9224 |
export_dynamic_flag_spec='${wl}-E' |
9225 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9226 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
9227 |
# default) and relocated if they conflict, which is a slow very memory |
9228 |
# consuming and fragmenting process. To avoid this, we pick a random, |
9229 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9230 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9231 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9232 |
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' |
9233 |
;; |
9234 |
|
9235 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9236 |
tmp_diet=no |
9237 |
if test "$host_os" = linux-dietlibc; then |
9238 |
case $cc_basename in |
9239 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9240 |
esac |
9241 |
fi |
9242 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9243 |
&& test "$tmp_diet" = no |
9244 |
then |
9245 |
tmp_addflag=' $pic_flag' |
9246 |
tmp_sharedflag='-shared' |
9247 |
case $cc_basename,$host_cpu in |
9248 |
pgcc*) # Portland Group C compiler |
9249 |
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' |
9250 |
tmp_addflag=' $pic_flag' |
9251 |
;; |
9252 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
9253 |
# Portland Group f77 and f90 compilers |
9254 |
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' |
9255 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
9256 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9257 |
tmp_addflag=' -i_dynamic' ;; |
9258 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
9259 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
9260 |
ifc* | ifort*) # Intel Fortran compiler |
9261 |
tmp_addflag=' -nofor_main' ;; |
9262 |
lf95*) # Lahey Fortran 8.1 |
9263 |
whole_archive_flag_spec= |
9264 |
tmp_sharedflag='--shared' ;; |
9265 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9266 |
tmp_sharedflag='-qmkshrobj' |
9267 |
tmp_addflag= ;; |
9268 |
nvcc*) # Cuda Compiler Driver 2.2 |
9269 |
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' |
9270 |
compiler_needs_object=yes |
9271 |
;; |
9272 |
esac |
9273 |
case `$CC -V 2>&1 | sed 5q` in |
9274 |
*Sun\ C*) # Sun C 5.9 |
9275 |
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' |
9276 |
compiler_needs_object=yes |
9277 |
tmp_sharedflag='-G' ;; |
9278 |
*Sun\ F*) # Sun Fortran 8.3 |
9279 |
tmp_sharedflag='-G' ;; |
9280 |
esac |
9281 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9282 |
|
9283 |
if test "x$supports_anon_versioning" = xyes; then |
9284 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9285 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9286 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9287 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
9288 |
fi |
9289 |
|
9290 |
case $cc_basename in |
9291 |
xlf* | bgf* | bgxlf* | mpixlf*) |
9292 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9293 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9294 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9295 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9296 |
if test "x$supports_anon_versioning" = xyes; then |
9297 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9298 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9299 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9300 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9301 |
fi |
9302 |
;; |
9303 |
esac |
9304 |
else |
9305 |
ld_shlibs=no |
9306 |
fi |
9307 |
;; |
9308 |
|
9309 |
netbsd*) |
9310 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9311 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9312 |
wlarc= |
9313 |
else |
9314 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9315 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9316 |
fi |
9317 |
;; |
9318 |
|
9319 |
solaris*) |
9320 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9321 |
ld_shlibs=no |
9322 |
cat <<_LT_EOF 1>&2 |
9323 |
|
9324 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9325 |
*** create shared libraries on Solaris systems. Therefore, libtool |
9326 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9327 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
9328 |
*** your PATH or compiler configuration so that the native linker is |
9329 |
*** used, and then restart. |
9330 |
|
9331 |
_LT_EOF |
9332 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9333 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9334 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9335 |
else |
9336 |
ld_shlibs=no |
9337 |
fi |
9338 |
;; |
9339 |
|
9340 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9341 |
case `$LD -v 2>&1` in |
9342 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
9343 |
ld_shlibs=no |
9344 |
cat <<_LT_EOF 1>&2 |
9345 |
|
9346 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9347 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
9348 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9349 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9350 |
*** your PATH or compiler configuration so that the native linker is |
9351 |
*** used, and then restart. |
9352 |
|
9353 |
_LT_EOF |
9354 |
;; |
9355 |
*) |
9356 |
# For security reasons, it is highly recommended that you always |
9357 |
# use absolute paths for naming shared libraries, and exclude the |
9358 |
# DT_RUNPATH tag from executables and libraries. But doing so |
9359 |
# requires that you compile everything twice, which is a pain. |
9360 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9361 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9362 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9363 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9364 |
else |
9365 |
ld_shlibs=no |
9366 |
fi |
9367 |
;; |
9368 |
esac |
9369 |
;; |
9370 |
|
9371 |
sunos4*) |
9372 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9373 |
wlarc= |
9374 |
hardcode_direct=yes |
9375 |
hardcode_shlibpath_var=no |
9376 |
;; |
9377 |
|
9378 |
*) |
9379 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9380 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9381 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9382 |
else |
9383 |
ld_shlibs=no |
9384 |
fi |
9385 |
;; |
9386 |
esac |
9387 |
|
9388 |
if test "$ld_shlibs" = no; then |
9389 |
runpath_var= |
9390 |
hardcode_libdir_flag_spec= |
9391 |
export_dynamic_flag_spec= |
9392 |
whole_archive_flag_spec= |
9393 |
fi |
9394 |
else |
9395 |
# PORTME fill in a description of your system's linker (not GNU ld) |
9396 |
case $host_os in |
9397 |
aix3*) |
9398 |
allow_undefined_flag=unsupported |
9399 |
always_export_symbols=yes |
9400 |
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' |
9401 |
# Note: this linker hardcodes the directories in LIBPATH if there |
9402 |
# are no directories specified by -L. |
9403 |
hardcode_minus_L=yes |
9404 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
9405 |
# Neither direct hardcoding nor static linking is supported with a |
9406 |
# broken collect2. |
9407 |
hardcode_direct=unsupported |
9408 |
fi |
9409 |
;; |
9410 |
|
9411 |
aix[4-9]*) |
9412 |
if test "$host_cpu" = ia64; then |
9413 |
# On IA64, the linker does run time linking by default, so we don't |
9414 |
# have to do anything special. |
9415 |
aix_use_runtimelinking=no |
9416 |
exp_sym_flag='-Bexport' |
9417 |
no_entry_flag="" |
9418 |
else |
9419 |
# If we're using GNU nm, then we don't want the "-C" option. |
9420 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
9421 |
# Also, AIX nm treats weak defined symbols like other global |
9422 |
# defined symbols, whereas GNU nm marks them as "W". |
9423 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9424 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
9425 |
else |
9426 |
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
9427 |
fi |
9428 |
aix_use_runtimelinking=no |
9429 |
|
9430 |
# Test if we are trying to use run time linking or normal |
9431 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9432 |
# need to do runtime linking. |
9433 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9434 |
for ld_flag in $LDFLAGS; do |
9435 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
9436 |
aix_use_runtimelinking=yes |
9437 |
break |
9438 |
fi |
9439 |
done |
9440 |
;; |
9441 |
esac |
9442 |
|
9443 |
exp_sym_flag='-bexport' |
9444 |
no_entry_flag='-bnoentry' |
9445 |
fi |
9446 |
|
9447 |
# When large executables or shared objects are built, AIX ld can |
9448 |
# have problems creating the table of contents. If linking a library |
9449 |
# or program results in "error TOC overflow" add -mminimal-toc to |
9450 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
9451 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
9452 |
|
9453 |
archive_cmds='' |
9454 |
hardcode_direct=yes |
9455 |
hardcode_direct_absolute=yes |
9456 |
hardcode_libdir_separator=':' |
9457 |
link_all_deplibs=yes |
9458 |
file_list_spec='${wl}-f,' |
9459 |
|
9460 |
if test "$GCC" = yes; then |
9461 |
case $host_os in aix4.[012]|aix4.[012].*) |
9462 |
# We only want to do this on AIX 4.2 and lower, the check |
9463 |
# below for broken collect2 doesn't work under 4.3+ |
9464 |
collect2name=`${CC} -print-prog-name=collect2` |
9465 |
if test -f "$collect2name" && |
9466 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9467 |
then |
9468 |
# We have reworked collect2 |
9469 |
: |
9470 |
else |
9471 |
# We have old collect2 |
9472 |
hardcode_direct=unsupported |
9473 |
# It fails to find uninstalled libraries when the uninstalled |
9474 |
# path is not listed in the libpath. Setting hardcode_minus_L |
9475 |
# to unsupported forces relinking |
9476 |
hardcode_minus_L=yes |
9477 |
hardcode_libdir_flag_spec='-L$libdir' |
9478 |
hardcode_libdir_separator= |
9479 |
fi |
9480 |
;; |
9481 |
esac |
9482 |
shared_flag='-shared' |
9483 |
if test "$aix_use_runtimelinking" = yes; then |
9484 |
shared_flag="$shared_flag "'${wl}-G' |
9485 |
fi |
9486 |
else |
9487 |
# not using gcc |
9488 |
if test "$host_cpu" = ia64; then |
9489 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9490 |
# chokes on -Wl,-G. The following line is correct: |
9491 |
shared_flag='-G' |
9492 |
else |
9493 |
if test "$aix_use_runtimelinking" = yes; then |
9494 |
shared_flag='${wl}-G' |
9495 |
else |
9496 |
shared_flag='${wl}-bM:SRE' |
9497 |
fi |
9498 |
fi |
9499 |
fi |
9500 |
|
9501 |
export_dynamic_flag_spec='${wl}-bexpall' |
9502 |
# It seems that -bexpall does not export symbols beginning with |
9503 |
# underscore (_), so it is better to generate a list of symbols to export. |
9504 |
always_export_symbols=yes |
9505 |
if test "$aix_use_runtimelinking" = yes; then |
9506 |
# Warning - without using the other runtime loading flags (-brtl), |
9507 |
# -berok will link without error, but may produce a broken library. |
9508 |
allow_undefined_flag='-berok' |
9509 |
# Determine the default libpath from the value encoded in an |
9510 |
# empty executable. |
9511 |
if test "${lt_cv_aix_libpath+set}" = set; then |
9512 |
aix_libpath=$lt_cv_aix_libpath |
9513 |
else |
9514 |
if ${lt_cv_aix_libpath_+:} false; then : |
9515 |
$as_echo_n "(cached) " >&6 |
9516 |
else |
9517 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9518 |
/* end confdefs.h. */ |
9519 |
|
9520 |
int |
9521 |
main () |
9522 |
{ |
9523 |
|
9524 |
; |
9525 |
return 0; |
9526 |
} |
9527 |
_ACEOF |
9528 |
if ac_fn_c_try_link "$LINENO"; then : |
9529 |
|
9530 |
lt_aix_libpath_sed=' |
9531 |
/Import File Strings/,/^$/ { |
9532 |
/^0/ { |
9533 |
s/^0 *\([^ ]*\) *$/\1/ |
9534 |
p |
9535 |
} |
9536 |
}' |
9537 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9538 |
# Check for a 64-bit object if we didn't find anything. |
9539 |
if test -z "$lt_cv_aix_libpath_"; then |
9540 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9541 |
fi |
9542 |
fi |
9543 |
rm -f core conftest.err conftest.$ac_objext \ |
9544 |
conftest$ac_exeext conftest.$ac_ext |
9545 |
if test -z "$lt_cv_aix_libpath_"; then |
9546 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
9547 |
fi |
9548 |
|
9549 |
fi |
9550 |
|
9551 |
aix_libpath=$lt_cv_aix_libpath_ |
9552 |
fi |
9553 |
|
9554 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9555 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
9556 |
else |
9557 |
if test "$host_cpu" = ia64; then |
9558 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
9559 |
allow_undefined_flag="-z nodefs" |
9560 |
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" |
9561 |
else |
9562 |
# Determine the default libpath from the value encoded in an |
9563 |
# empty executable. |
9564 |
if test "${lt_cv_aix_libpath+set}" = set; then |
9565 |
aix_libpath=$lt_cv_aix_libpath |
9566 |
else |
9567 |
if ${lt_cv_aix_libpath_+:} false; then : |
9568 |
$as_echo_n "(cached) " >&6 |
9569 |
else |
9570 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9571 |
/* end confdefs.h. */ |
9572 |
|
9573 |
int |
9574 |
main () |
9575 |
{ |
9576 |
|
9577 |
; |
9578 |
return 0; |
9579 |
} |
9580 |
_ACEOF |
9581 |
if ac_fn_c_try_link "$LINENO"; then : |
9582 |
|
9583 |
lt_aix_libpath_sed=' |
9584 |
/Import File Strings/,/^$/ { |
9585 |
/^0/ { |
9586 |
s/^0 *\([^ ]*\) *$/\1/ |
9587 |
p |
9588 |
} |
9589 |
}' |
9590 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9591 |
# Check for a 64-bit object if we didn't find anything. |
9592 |
if test -z "$lt_cv_aix_libpath_"; then |
9593 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9594 |
fi |
9595 |
fi |
9596 |
rm -f core conftest.err conftest.$ac_objext \ |
9597 |
conftest$ac_exeext conftest.$ac_ext |
9598 |
if test -z "$lt_cv_aix_libpath_"; then |
9599 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
9600 |
fi |
9601 |
|
9602 |
fi |
9603 |
|
9604 |
aix_libpath=$lt_cv_aix_libpath_ |
9605 |
fi |
9606 |
|
9607 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9608 |
# Warning - without using the other run time loading flags, |
9609 |
# -berok will link without error, but may produce a broken library. |
9610 |
no_undefined_flag=' ${wl}-bernotok' |
9611 |
allow_undefined_flag=' ${wl}-berok' |
9612 |
if test "$with_gnu_ld" = yes; then |
9613 |
# We only use this code for GNU lds that support --whole-archive. |
9614 |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
9615 |
else |
9616 |
# Exported symbols can be pulled into shared objects from archives |
9617 |
whole_archive_flag_spec='$convenience' |
9618 |
fi |
9619 |
archive_cmds_need_lc=yes |
9620 |
# This is similar to how AIX traditionally builds its shared libraries. |
9621 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
9622 |
fi |
9623 |
fi |
9624 |
;; |
9625 |
|
9626 |
amigaos*) |
9627 |
case $host_cpu in |
9628 |
powerpc) |
9629 |
# see comment about AmigaOS4 .so support |
9630 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9631 |
archive_expsym_cmds='' |
9632 |
;; |
9633 |
m68k) |
9634 |
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)' |
9635 |
hardcode_libdir_flag_spec='-L$libdir' |
9636 |
hardcode_minus_L=yes |
9637 |
;; |
9638 |
esac |
9639 |
;; |
9640 |
|
9641 |
bsdi[45]*) |
9642 |
export_dynamic_flag_spec=-rdynamic |
9643 |
;; |
9644 |
|
9645 |
cygwin* | mingw* | pw32* | cegcc*) |
9646 |
# When not using gcc, we currently assume that we are using |
9647 |
# Microsoft Visual C++. |
9648 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
9649 |
# no search path for DLLs. |
9650 |
case $cc_basename in |
9651 |
cl*) |
9652 |
# Native MSVC |
9653 |
hardcode_libdir_flag_spec=' ' |
9654 |
allow_undefined_flag=unsupported |
9655 |
always_export_symbols=yes |
9656 |
file_list_spec='@' |
9657 |
# Tell ltmain to make .lib files, not .a files. |
9658 |
libext=lib |
9659 |
# Tell ltmain to make .dll files, not .so files. |
9660 |
shrext_cmds=".dll" |
9661 |
# FIXME: Setting linknames here is a bad hack. |
9662 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
9663 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
9664 |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
9665 |
else |
9666 |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
9667 |
fi~ |
9668 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
9669 |
linknames=' |
9670 |
# The linker will not automatically build a static lib if we build a DLL. |
9671 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
9672 |
enable_shared_with_static_runtimes=yes |
9673 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
9674 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
9675 |
# Don't use ranlib |
9676 |
old_postinstall_cmds='chmod 644 $oldlib' |
9677 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
9678 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9679 |
case $lt_outputfile in |
9680 |
*.exe|*.EXE) ;; |
9681 |
*) |
9682 |
lt_outputfile="$lt_outputfile.exe" |
9683 |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
9684 |
;; |
9685 |
esac~ |
9686 |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
9687 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
9688 |
$RM "$lt_outputfile.manifest"; |
9689 |
fi' |
9690 |
;; |
9691 |
*) |
9692 |
# Assume MSVC wrapper |
9693 |
hardcode_libdir_flag_spec=' ' |
9694 |
allow_undefined_flag=unsupported |
9695 |
# Tell ltmain to make .lib files, not .a files. |
9696 |
libext=lib |
9697 |
# Tell ltmain to make .dll files, not .so files. |
9698 |
shrext_cmds=".dll" |
9699 |
# FIXME: Setting linknames here is a bad hack. |
9700 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
9701 |
# The linker will automatically build a .lib file if we build a DLL. |
9702 |
old_archive_from_new_cmds='true' |
9703 |
# FIXME: Should let the user specify the lib program. |
9704 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9705 |
enable_shared_with_static_runtimes=yes |
9706 |
;; |
9707 |
esac |
9708 |
;; |
9709 |
|
9710 |
darwin* | rhapsody*) |
9711 |
|
9712 |
|
9713 |
archive_cmds_need_lc=no |
9714 |
hardcode_direct=no |
9715 |
hardcode_automatic=yes |
9716 |
hardcode_shlibpath_var=unsupported |
9717 |
if test "$lt_cv_ld_force_load" = "yes"; then |
9718 |
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\"`' |
9719 |
|
9720 |
else |
9721 |
whole_archive_flag_spec='' |
9722 |
fi |
9723 |
link_all_deplibs=yes |
9724 |
allow_undefined_flag="$_lt_dar_allow_undefined" |
9725 |
case $cc_basename in |
9726 |
ifort*) _lt_dar_can_shared=yes ;; |
9727 |
*) _lt_dar_can_shared=$GCC ;; |
9728 |
esac |
9729 |
if test "$_lt_dar_can_shared" = "yes"; then |
9730 |
output_verbose_link_cmd=func_echo_all |
9731 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9732 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
9733 |
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}" |
9734 |
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}" |
9735 |
|
9736 |
else |
9737 |
ld_shlibs=no |
9738 |
fi |
9739 |
|
9740 |
;; |
9741 |
|
9742 |
dgux*) |
9743 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9744 |
hardcode_libdir_flag_spec='-L$libdir' |
9745 |
hardcode_shlibpath_var=no |
9746 |
;; |
9747 |
|
9748 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9749 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
9750 |
# does not break anything, and helps significantly (at the cost of a little |
9751 |
# extra space). |
9752 |
freebsd2.2*) |
9753 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9754 |
hardcode_libdir_flag_spec='-R$libdir' |
9755 |
hardcode_direct=yes |
9756 |
hardcode_shlibpath_var=no |
9757 |
;; |
9758 |
|
9759 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9760 |
freebsd2.*) |
9761 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9762 |
hardcode_direct=yes |
9763 |
hardcode_minus_L=yes |
9764 |
hardcode_shlibpath_var=no |
9765 |
;; |
9766 |
|
9767 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9768 |
freebsd* | dragonfly*) |
9769 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9770 |
hardcode_libdir_flag_spec='-R$libdir' |
9771 |
hardcode_direct=yes |
9772 |
hardcode_shlibpath_var=no |
9773 |
;; |
9774 |
|
9775 |
hpux9*) |
9776 |
if test "$GCC" = yes; then |
9777 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
9778 |
else |
9779 |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
9780 |
fi |
9781 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9782 |
hardcode_libdir_separator=: |
9783 |
hardcode_direct=yes |
9784 |
|
9785 |
# hardcode_minus_L: Not really in the search PATH, |
9786 |
# but as the default location of the library. |
9787 |
hardcode_minus_L=yes |
9788 |
export_dynamic_flag_spec='${wl}-E' |
9789 |
;; |
9790 |
|
9791 |
hpux10*) |
9792 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
9793 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9794 |
else |
9795 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9796 |
fi |
9797 |
if test "$with_gnu_ld" = no; then |
9798 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9799 |
hardcode_libdir_separator=: |
9800 |
hardcode_direct=yes |
9801 |
hardcode_direct_absolute=yes |
9802 |
export_dynamic_flag_spec='${wl}-E' |
9803 |
# hardcode_minus_L: Not really in the search PATH, |
9804 |
# but as the default location of the library. |
9805 |
hardcode_minus_L=yes |
9806 |
fi |
9807 |
;; |
9808 |
|
9809 |
hpux11*) |
9810 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
9811 |
case $host_cpu in |
9812 |
hppa*64*) |
9813 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9814 |
;; |
9815 |
ia64*) |
9816 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9817 |
;; |
9818 |
*) |
9819 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9820 |
;; |
9821 |
esac |
9822 |
else |
9823 |
case $host_cpu in |
9824 |
hppa*64*) |
9825 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9826 |
;; |
9827 |
ia64*) |
9828 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9829 |
;; |
9830 |
*) |
9831 |
|
9832 |
# Older versions of the 11.00 compiler do not understand -b yet |
9833 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
9834 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
9835 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
9836 |
if ${lt_cv_prog_compiler__b+:} false; then : |
9837 |
$as_echo_n "(cached) " >&6 |
9838 |
else |
9839 |
lt_cv_prog_compiler__b=no |
9840 |
save_LDFLAGS="$LDFLAGS" |
9841 |
LDFLAGS="$LDFLAGS -b" |
9842 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
9843 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
9844 |
# The linker can only warn and ignore the option if not recognized |
9845 |
# So say no if there are warnings |
9846 |
if test -s conftest.err; then |
9847 |
# Append any errors to the config.log. |
9848 |
cat conftest.err 1>&5 |
9849 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
9850 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9851 |
if diff conftest.exp conftest.er2 >/dev/null; then |
9852 |
lt_cv_prog_compiler__b=yes |
9853 |
fi |
9854 |
else |
9855 |
lt_cv_prog_compiler__b=yes |
9856 |
fi |
9857 |
fi |
9858 |
$RM -r conftest* |
9859 |
LDFLAGS="$save_LDFLAGS" |
9860 |
|
9861 |
fi |
9862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
9863 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
9864 |
|
9865 |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
9866 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9867 |
else |
9868 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9869 |
fi |
9870 |
|
9871 |
;; |
9872 |
esac |
9873 |
fi |
9874 |
if test "$with_gnu_ld" = no; then |
9875 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9876 |
hardcode_libdir_separator=: |
9877 |
|
9878 |
case $host_cpu in |
9879 |
hppa*64*|ia64*) |
9880 |
hardcode_direct=no |
9881 |
hardcode_shlibpath_var=no |
9882 |
;; |
9883 |
*) |
9884 |
hardcode_direct=yes |
9885 |
hardcode_direct_absolute=yes |
9886 |
export_dynamic_flag_spec='${wl}-E' |
9887 |
|
9888 |
# hardcode_minus_L: Not really in the search PATH, |
9889 |
# but as the default location of the library. |
9890 |
hardcode_minus_L=yes |
9891 |
;; |
9892 |
esac |
9893 |
fi |
9894 |
;; |
9895 |
|
9896 |
irix5* | irix6* | nonstopux*) |
9897 |
if test "$GCC" = yes; then |
9898 |
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' |
9899 |
# Try to use the -exported_symbol ld option, if it does not |
9900 |
# work, assume that -exports_file does not work either and |
9901 |
# implicitly export all symbols. |
9902 |
# This should be the same for all languages, so no per-tag cache variable. |
9903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
9904 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
9905 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
9906 |
$as_echo_n "(cached) " >&6 |
9907 |
else |
9908 |
save_LDFLAGS="$LDFLAGS" |
9909 |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
9910 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9911 |
/* end confdefs.h. */ |
9912 |
int foo (void) { return 0; } |
9913 |
_ACEOF |
9914 |
if ac_fn_c_try_link "$LINENO"; then : |
9915 |
lt_cv_irix_exported_symbol=yes |
9916 |
else |
9917 |
lt_cv_irix_exported_symbol=no |
9918 |
fi |
9919 |
rm -f core conftest.err conftest.$ac_objext \ |
9920 |
conftest$ac_exeext conftest.$ac_ext |
9921 |
LDFLAGS="$save_LDFLAGS" |
9922 |
fi |
9923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
9924 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
9925 |
if test "$lt_cv_irix_exported_symbol" = yes; then |
9926 |
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' |
9927 |
fi |
9928 |
else |
9929 |
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' |
9930 |
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' |
9931 |
fi |
9932 |
archive_cmds_need_lc='no' |
9933 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9934 |
hardcode_libdir_separator=: |
9935 |
inherit_rpath=yes |
9936 |
link_all_deplibs=yes |
9937 |
;; |
9938 |
|
9939 |
netbsd*) |
9940 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9941 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
9942 |
else |
9943 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
9944 |
fi |
9945 |
hardcode_libdir_flag_spec='-R$libdir' |
9946 |
hardcode_direct=yes |
9947 |
hardcode_shlibpath_var=no |
9948 |
;; |
9949 |
|
9950 |
newsos6) |
9951 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9952 |
hardcode_direct=yes |
9953 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9954 |
hardcode_libdir_separator=: |
9955 |
hardcode_shlibpath_var=no |
9956 |
;; |
9957 |
|
9958 |
*nto* | *qnx*) |
9959 |
;; |
9960 |
|
9961 |
openbsd*) |
9962 |
if test -f /usr/libexec/ld.so; then |
9963 |
hardcode_direct=yes |
9964 |
hardcode_shlibpath_var=no |
9965 |
hardcode_direct_absolute=yes |
9966 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9967 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9968 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
9969 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9970 |
export_dynamic_flag_spec='${wl}-E' |
9971 |
else |
9972 |
case $host_os in |
9973 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
9974 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9975 |
hardcode_libdir_flag_spec='-R$libdir' |
9976 |
;; |
9977 |
*) |
9978 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9979 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9980 |
;; |
9981 |
esac |
9982 |
fi |
9983 |
else |
9984 |
ld_shlibs=no |
9985 |
fi |
9986 |
;; |
9987 |
|
9988 |
os2*) |
9989 |
hardcode_libdir_flag_spec='-L$libdir' |
9990 |
hardcode_minus_L=yes |
9991 |
allow_undefined_flag=unsupported |
9992 |
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
9993 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9994 |
;; |
9995 |
|
9996 |
osf3*) |
9997 |
if test "$GCC" = yes; then |
9998 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9999 |
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' |
10000 |
else |
10001 |
allow_undefined_flag=' -expect_unresolved \*' |
10002 |
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' |
10003 |
fi |
10004 |
archive_cmds_need_lc='no' |
10005 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10006 |
hardcode_libdir_separator=: |
10007 |
;; |
10008 |
|
10009 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
10010 |
if test "$GCC" = yes; then |
10011 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
10012 |
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' |
10013 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10014 |
else |
10015 |
allow_undefined_flag=' -expect_unresolved \*' |
10016 |
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' |
10017 |
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~ |
10018 |
$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' |
10019 |
|
10020 |
# Both c and cxx compiler support -rpath directly |
10021 |
hardcode_libdir_flag_spec='-rpath $libdir' |
10022 |
fi |
10023 |
archive_cmds_need_lc='no' |
10024 |
hardcode_libdir_separator=: |
10025 |
;; |
10026 |
|
10027 |
solaris*) |
10028 |
no_undefined_flag=' -z defs' |
10029 |
if test "$GCC" = yes; then |
10030 |
wlarc='${wl}' |
10031 |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
10032 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10033 |
$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' |
10034 |
else |
10035 |
case `$CC -V 2>&1` in |
10036 |
*"Compilers 5.0"*) |
10037 |
wlarc='' |
10038 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10039 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10040 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10041 |
;; |
10042 |
*) |
10043 |
wlarc='${wl}' |
10044 |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10045 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10046 |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10047 |
;; |
10048 |
esac |
10049 |
fi |
10050 |
hardcode_libdir_flag_spec='-R$libdir' |
10051 |
hardcode_shlibpath_var=no |
10052 |
case $host_os in |
10053 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
10054 |
*) |
10055 |
# The compiler driver will combine and reorder linker options, |
10056 |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
10057 |
# but is careful enough not to reorder. |
10058 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10059 |
if test "$GCC" = yes; then |
10060 |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
10061 |
else |
10062 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
10063 |
fi |
10064 |
;; |
10065 |
esac |
10066 |
link_all_deplibs=yes |
10067 |
;; |
10068 |
|
10069 |
sunos4*) |
10070 |
if test "x$host_vendor" = xsequent; then |
10071 |
# Use $CC to link under sequent, because it throws in some extra .o |
10072 |
# files that make .init and .fini sections work. |
10073 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10074 |
else |
10075 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
10076 |
fi |
10077 |
hardcode_libdir_flag_spec='-L$libdir' |
10078 |
hardcode_direct=yes |
10079 |
hardcode_minus_L=yes |
10080 |
hardcode_shlibpath_var=no |
10081 |
;; |
10082 |
|
10083 |
sysv4) |
10084 |
case $host_vendor in |
10085 |
sni) |
10086 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10087 |
hardcode_direct=yes # is this really true??? |
10088 |
;; |
10089 |
siemens) |
10090 |
## LD is ld it makes a PLAMLIB |
10091 |
## CC just makes a GrossModule. |
10092 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10093 |
reload_cmds='$CC -r -o $output$reload_objs' |
10094 |
hardcode_direct=no |
10095 |
;; |
10096 |
motorola) |
10097 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10098 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
10099 |
;; |
10100 |
esac |
10101 |
runpath_var='LD_RUN_PATH' |
10102 |
hardcode_shlibpath_var=no |
10103 |
;; |
10104 |
|
10105 |
sysv4.3*) |
10106 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10107 |
hardcode_shlibpath_var=no |
10108 |
export_dynamic_flag_spec='-Bexport' |
10109 |
;; |
10110 |
|
10111 |
sysv4*MP*) |
10112 |
if test -d /usr/nec; then |
10113 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10114 |
hardcode_shlibpath_var=no |
10115 |
runpath_var=LD_RUN_PATH |
10116 |
hardcode_runpath_var=yes |
10117 |
ld_shlibs=yes |
10118 |
fi |
10119 |
;; |
10120 |
|
10121 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10122 |
no_undefined_flag='${wl}-z,text' |
10123 |
archive_cmds_need_lc=no |
10124 |
hardcode_shlibpath_var=no |
10125 |
runpath_var='LD_RUN_PATH' |
10126 |
|
10127 |
if test "$GCC" = yes; then |
10128 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10129 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10130 |
else |
10131 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10132 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10133 |
fi |
10134 |
;; |
10135 |
|
10136 |
sysv5* | sco3.2v5* | sco5v6*) |
10137 |
# Note: We can NOT use -z defs as we might desire, because we do not |
10138 |
# link with -lc, and that would cause any symbols used from libc to |
10139 |
# always be unresolved, which means just about no library would |
10140 |
# ever link correctly. If we're not using GNU ld we use -z text |
10141 |
# though, which does catch some bad symbols but isn't as heavy-handed |
10142 |
# as -z defs. |
10143 |
no_undefined_flag='${wl}-z,text' |
10144 |
allow_undefined_flag='${wl}-z,nodefs' |
10145 |
archive_cmds_need_lc=no |
10146 |
hardcode_shlibpath_var=no |
10147 |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
10148 |
hardcode_libdir_separator=':' |
10149 |
link_all_deplibs=yes |
10150 |
export_dynamic_flag_spec='${wl}-Bexport' |
10151 |
runpath_var='LD_RUN_PATH' |
10152 |
|
10153 |
if test "$GCC" = yes; then |
10154 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10155 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10156 |
else |
10157 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10158 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10159 |
fi |
10160 |
;; |
10161 |
|
10162 |
uts4*) |
10163 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10164 |
hardcode_libdir_flag_spec='-L$libdir' |
10165 |
hardcode_shlibpath_var=no |
10166 |
;; |
10167 |
|
10168 |
*) |
10169 |
ld_shlibs=no |
10170 |
;; |
10171 |
esac |
10172 |
|
10173 |
if test x$host_vendor = xsni; then |
10174 |
case $host in |
10175 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
10176 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
10177 |
;; |
10178 |
esac |
10179 |
fi |
10180 |
fi |
10181 |
|
10182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10183 |
$as_echo "$ld_shlibs" >&6; } |
10184 |
test "$ld_shlibs" = no && can_build_shared=no |
10185 |
|
10186 |
with_gnu_ld=$with_gnu_ld |
10187 |
|
10188 |
|
10189 |
|
10190 |
|
10191 |
|
10192 |
|
10193 |
|
10194 |
|
10195 |
|
10196 |
|
10197 |
|
10198 |
|
10199 |
|
10200 |
|
10201 |
|
10202 |
# |
10203 |
# Do we need to explicitly link libc? |
10204 |
# |
10205 |
case "x$archive_cmds_need_lc" in |
10206 |
x|xyes) |
10207 |
# Assume -lc should be added |
10208 |
archive_cmds_need_lc=yes |
10209 |
|
10210 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
10211 |
case $archive_cmds in |
10212 |
*'~'*) |
10213 |
# FIXME: we may have to deal with multi-command sequences. |
10214 |
;; |
10215 |
'$CC '*) |
10216 |
# Test whether the compiler implicitly links with -lc since on some |
10217 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
10218 |
# to ld, don't add -lc before -lgcc. |
10219 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10220 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
10221 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10222 |
$as_echo_n "(cached) " >&6 |
10223 |
else |
10224 |
$RM conftest* |
10225 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
10226 |
|
10227 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10228 |
(eval $ac_compile) 2>&5 |
10229 |
ac_status=$? |
10230 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10231 |
test $ac_status = 0; } 2>conftest.err; then |
10232 |
soname=conftest |
10233 |
lib=conftest |
10234 |
libobjs=conftest.$ac_objext |
10235 |
deplibs= |
10236 |
wl=$lt_prog_compiler_wl |
10237 |
pic_flag=$lt_prog_compiler_pic |
10238 |
compiler_flags=-v |
10239 |
linker_flags=-v |
10240 |
verstring= |
10241 |
output_objdir=. |
10242 |
libname=conftest |
10243 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
10244 |
allow_undefined_flag= |
10245 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
10246 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10247 |
ac_status=$? |
10248 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10249 |
test $ac_status = 0; } |
10250 |
then |
10251 |
lt_cv_archive_cmds_need_lc=no |
10252 |
else |
10253 |
lt_cv_archive_cmds_need_lc=yes |
10254 |
fi |
10255 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
10256 |
else |
10257 |
cat conftest.err 1>&5 |
10258 |
fi |
10259 |
$RM conftest* |
10260 |
|
10261 |
fi |
10262 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10263 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
10264 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
10265 |
;; |
10266 |
esac |
10267 |
fi |
10268 |
;; |
10269 |
esac |
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 |
|
10389 |
|
10390 |
|
10391 |
|
10392 |
|
10393 |
|
10394 |
|
10395 |
|
10396 |
|
10397 |
|
10398 |
|
10399 |
|
10400 |
|
10401 |
|
10402 |
|
10403 |
|
10404 |
|
10405 |
|
10406 |
|
10407 |
|
10408 |
|
10409 |
|
10410 |
|
10411 |
|
10412 |
|
10413 |
|
10414 |
|
10415 |
|
10416 |
|
10417 |
|
10418 |
|
10419 |
|
10420 |
|
10421 |
|
10422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10423 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
10424 |
|
10425 |
if test "$GCC" = yes; then |
10426 |
case $host_os in |
10427 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
10428 |
*) lt_awk_arg="/^libraries:/" ;; |
10429 |
esac |
10430 |
case $host_os in |
10431 |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
10432 |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
10433 |
esac |
10434 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
10435 |
case $lt_search_path_spec in |
10436 |
*\;*) |
10437 |
# if the path contains ";" then we assume it to be the separator |
10438 |
# otherwise default to the standard path separator (i.e. ":") - it is |
10439 |
# assumed that no part of a normal pathname contains ";" but that should |
10440 |
# okay in the real world where ";" in dirpaths is itself problematic. |
10441 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10442 |
;; |
10443 |
*) |
10444 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
10445 |
;; |
10446 |
esac |
10447 |
# Ok, now we have the path, separated by spaces, we can step through it |
10448 |
# and add multilib dir if necessary. |
10449 |
lt_tmp_lt_search_path_spec= |
10450 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10451 |
for lt_sys_path in $lt_search_path_spec; do |
10452 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
10453 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
10454 |
else |
10455 |
test -d "$lt_sys_path" && \ |
10456 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10457 |
fi |
10458 |
done |
10459 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10460 |
BEGIN {RS=" "; FS="/|\n";} { |
10461 |
lt_foo=""; |
10462 |
lt_count=0; |
10463 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
10464 |
if ($lt_i != "" && $lt_i != ".") { |
10465 |
if ($lt_i == "..") { |
10466 |
lt_count++; |
10467 |
} else { |
10468 |
if (lt_count == 0) { |
10469 |
lt_foo="/" $lt_i lt_foo; |
10470 |
} else { |
10471 |
lt_count--; |
10472 |
} |
10473 |
} |
10474 |
} |
10475 |
} |
10476 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
10477 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10478 |
}'` |
10479 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
10480 |
# for these hosts. |
10481 |
case $host_os in |
10482 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
10483 |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
10484 |
esac |
10485 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
10486 |
else |
10487 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10488 |
fi |
10489 |
library_names_spec= |
10490 |
libname_spec='lib$name' |
10491 |
soname_spec= |
10492 |
shrext_cmds=".so" |
10493 |
postinstall_cmds= |
10494 |
postuninstall_cmds= |
10495 |
finish_cmds= |
10496 |
finish_eval= |
10497 |
shlibpath_var= |
10498 |
shlibpath_overrides_runpath=unknown |
10499 |
version_type=none |
10500 |
dynamic_linker="$host_os ld.so" |
10501 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
10502 |
need_lib_prefix=unknown |
10503 |
hardcode_into_libs=no |
10504 |
|
10505 |
# when you set need_version to no, make sure it does not cause -set_version |
10506 |
# flags to be left without arguments |
10507 |
need_version=unknown |
10508 |
|
10509 |
case $host_os in |
10510 |
aix3*) |
10511 |
version_type=linux # correct to gnu/linux during the next big refactor |
10512 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
10513 |
shlibpath_var=LIBPATH |
10514 |
|
10515 |
# AIX 3 has no versioning support, so we append a major version to the name. |
10516 |
soname_spec='${libname}${release}${shared_ext}$major' |
10517 |
;; |
10518 |
|
10519 |
aix[4-9]*) |
10520 |
version_type=linux # correct to gnu/linux during the next big refactor |
10521 |
need_lib_prefix=no |
10522 |
need_version=no |
10523 |
hardcode_into_libs=yes |
10524 |
if test "$host_cpu" = ia64; then |
10525 |
# AIX 5 supports IA64 |
10526 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
10527 |
shlibpath_var=LD_LIBRARY_PATH |
10528 |
else |
10529 |
# With GCC up to 2.95.x, collect2 would create an import file |
10530 |
# for dependence libraries. The import file would start with |
10531 |
# the line `#! .'. This would cause the generated library to |
10532 |
# depend on `.', always an invalid library. This was fixed in |
10533 |
# development snapshots of GCC prior to 3.0. |
10534 |
case $host_os in |
10535 |
aix4 | aix4.[01] | aix4.[01].*) |
10536 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
10537 |
echo ' yes ' |
10538 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
10539 |
: |
10540 |
else |
10541 |
can_build_shared=no |
10542 |
fi |
10543 |
;; |
10544 |
esac |
10545 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
10546 |
# soname into executable. Probably we can add versioning support to |
10547 |
# collect2, so additional links can be useful in future. |
10548 |
if test "$aix_use_runtimelinking" = yes; then |
10549 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10550 |
# instead of lib<name>.a to let people know that these are not |
10551 |
# typical AIX shared libraries. |
10552 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10553 |
else |
10554 |
# We preserve .a as extension for shared libraries through AIX4.2 |
10555 |
# and later when we are not doing run time linking. |
10556 |
library_names_spec='${libname}${release}.a $libname.a' |
10557 |
soname_spec='${libname}${release}${shared_ext}$major' |
10558 |
fi |
10559 |
shlibpath_var=LIBPATH |
10560 |
fi |
10561 |
;; |
10562 |
|
10563 |
amigaos*) |
10564 |
case $host_cpu in |
10565 |
powerpc) |
10566 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
10567 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
10568 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10569 |
;; |
10570 |
m68k) |
10571 |
library_names_spec='$libname.ixlibrary $libname.a' |
10572 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
10573 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
10574 |
;; |
10575 |
esac |
10576 |
;; |
10577 |
|
10578 |
beos*) |
10579 |
library_names_spec='${libname}${shared_ext}' |
10580 |
dynamic_linker="$host_os ld.so" |
10581 |
shlibpath_var=LIBRARY_PATH |
10582 |
;; |
10583 |
|
10584 |
bsdi[45]*) |
10585 |
version_type=linux # correct to gnu/linux during the next big refactor |
10586 |
need_version=no |
10587 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10588 |
soname_spec='${libname}${release}${shared_ext}$major' |
10589 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10590 |
shlibpath_var=LD_LIBRARY_PATH |
10591 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
10592 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
10593 |
# the default ld.so.conf also contains /usr/contrib/lib and |
10594 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
10595 |
# libtool to hard-code these into programs |
10596 |
;; |
10597 |
|
10598 |
cygwin* | mingw* | pw32* | cegcc*) |
10599 |
version_type=windows |
10600 |
shrext_cmds=".dll" |
10601 |
need_version=no |
10602 |
need_lib_prefix=no |
10603 |
|
10604 |
case $GCC,$cc_basename in |
10605 |
yes,*) |
10606 |
# gcc |
10607 |
library_names_spec='$libname.dll.a' |
10608 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10609 |
postinstall_cmds='base_file=`basename \${file}`~ |
10610 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
10611 |
dldir=$destdir/`dirname \$dlpath`~ |
10612 |
test -d \$dldir || mkdir -p \$dldir~ |
10613 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
10614 |
chmod a+x \$dldir/$dlname~ |
10615 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
10616 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
10617 |
fi' |
10618 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10619 |
dlpath=$dir/\$dldll~ |
10620 |
$RM \$dlpath' |
10621 |
shlibpath_overrides_runpath=yes |
10622 |
|
10623 |
case $host_os in |
10624 |
cygwin*) |
10625 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10626 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10627 |
|
10628 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
10629 |
;; |
10630 |
mingw* | cegcc*) |
10631 |
# MinGW DLLs use traditional 'lib' prefix |
10632 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10633 |
;; |
10634 |
pw32*) |
10635 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
10636 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10637 |
;; |
10638 |
esac |
10639 |
dynamic_linker='Win32 ld.exe' |
10640 |
;; |
10641 |
|
10642 |
*,cl*) |
10643 |
# Native MSVC |
10644 |
libname_spec='$name' |
10645 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10646 |
library_names_spec='${libname}.dll.lib' |
10647 |
|
10648 |
case $build_os in |
10649 |
mingw*) |
10650 |
sys_lib_search_path_spec= |
10651 |
lt_save_ifs=$IFS |
10652 |
IFS=';' |
10653 |
for lt_path in $LIB |
10654 |
do |
10655 |
IFS=$lt_save_ifs |
10656 |
# Let DOS variable expansion print the short 8.3 style file name. |
10657 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
10658 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
10659 |
done |
10660 |
IFS=$lt_save_ifs |
10661 |
# Convert to MSYS style. |
10662 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
10663 |
;; |
10664 |
cygwin*) |
10665 |
# Convert to unix form, then to dos form, then back to unix form |
10666 |
# but this time dos style (no spaces!) so that the unix form looks |
10667 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
10668 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
10669 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
10670 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10671 |
;; |
10672 |
*) |
10673 |
sys_lib_search_path_spec="$LIB" |
10674 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10675 |
# It is most probably a Windows format PATH. |
10676 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
10677 |
else |
10678 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10679 |
fi |
10680 |
# FIXME: find the short name or the path components, as spaces are |
10681 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
10682 |
;; |
10683 |
esac |
10684 |
|
10685 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10686 |
postinstall_cmds='base_file=`basename \${file}`~ |
10687 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
10688 |
dldir=$destdir/`dirname \$dlpath`~ |
10689 |
test -d \$dldir || mkdir -p \$dldir~ |
10690 |
$install_prog $dir/$dlname \$dldir/$dlname' |
10691 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10692 |
dlpath=$dir/\$dldll~ |
10693 |
$RM \$dlpath' |
10694 |
shlibpath_overrides_runpath=yes |
10695 |
dynamic_linker='Win32 link.exe' |
10696 |
;; |
10697 |
|
10698 |
*) |
10699 |
# Assume MSVC wrapper |
10700 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
10701 |
dynamic_linker='Win32 ld.exe' |
10702 |
;; |
10703 |
esac |
10704 |
# FIXME: first we should search . and the directory the executable is in |
10705 |
shlibpath_var=PATH |
10706 |
;; |
10707 |
|
10708 |
darwin* | rhapsody*) |
10709 |
dynamic_linker="$host_os dyld" |
10710 |
version_type=darwin |
10711 |
need_lib_prefix=no |
10712 |
need_version=no |
10713 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
10714 |
soname_spec='${libname}${release}${major}$shared_ext' |
10715 |
shlibpath_overrides_runpath=yes |
10716 |
shlibpath_var=DYLD_LIBRARY_PATH |
10717 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
10718 |
|
10719 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10720 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10721 |
;; |
10722 |
|
10723 |
dgux*) |
10724 |
version_type=linux # correct to gnu/linux during the next big refactor |
10725 |
need_lib_prefix=no |
10726 |
need_version=no |
10727 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
10728 |
soname_spec='${libname}${release}${shared_ext}$major' |
10729 |
shlibpath_var=LD_LIBRARY_PATH |
10730 |
;; |
10731 |
|
10732 |
freebsd* | dragonfly*) |
10733 |
# DragonFly does not have aout. When/if they implement a new |
10734 |
# versioning mechanism, adjust this. |
10735 |
if test -x /usr/bin/objformat; then |
10736 |
objformat=`/usr/bin/objformat` |
10737 |
else |
10738 |
case $host_os in |
10739 |
freebsd[23].*) objformat=aout ;; |
10740 |
*) objformat=elf ;; |
10741 |
esac |
10742 |
fi |
10743 |
version_type=freebsd-$objformat |
10744 |
case $version_type in |
10745 |
freebsd-elf*) |
10746 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
10747 |
need_version=no |
10748 |
need_lib_prefix=no |
10749 |
;; |
10750 |
freebsd-*) |
10751 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
10752 |
need_version=yes |
10753 |
;; |
10754 |
esac |
10755 |
shlibpath_var=LD_LIBRARY_PATH |
10756 |
case $host_os in |
10757 |
freebsd2.*) |
10758 |
shlibpath_overrides_runpath=yes |
10759 |
;; |
10760 |
freebsd3.[01]* | freebsdelf3.[01]*) |
10761 |
shlibpath_overrides_runpath=yes |
10762 |
hardcode_into_libs=yes |
10763 |
;; |
10764 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
10765 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
10766 |
shlibpath_overrides_runpath=no |
10767 |
hardcode_into_libs=yes |
10768 |
;; |
10769 |
*) # from 4.6 on, and DragonFly |
10770 |
shlibpath_overrides_runpath=yes |
10771 |
hardcode_into_libs=yes |
10772 |
;; |
10773 |
esac |
10774 |
;; |
10775 |
|
10776 |
gnu*) |
10777 |
version_type=linux # correct to gnu/linux during the next big refactor |
10778 |
need_lib_prefix=no |
10779 |
need_version=no |
10780 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
10781 |
soname_spec='${libname}${release}${shared_ext}$major' |
10782 |
shlibpath_var=LD_LIBRARY_PATH |
10783 |
shlibpath_overrides_runpath=no |
10784 |
hardcode_into_libs=yes |
10785 |
;; |
10786 |
|
10787 |
haiku*) |
10788 |
version_type=linux # correct to gnu/linux during the next big refactor |
10789 |
need_lib_prefix=no |
10790 |
need_version=no |
10791 |
dynamic_linker="$host_os runtime_loader" |
10792 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
10793 |
soname_spec='${libname}${release}${shared_ext}$major' |
10794 |
shlibpath_var=LIBRARY_PATH |
10795 |
shlibpath_overrides_runpath=yes |
10796 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
10797 |
hardcode_into_libs=yes |
10798 |
;; |
10799 |
|
10800 |
hpux9* | hpux10* | hpux11*) |
10801 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
10802 |
# link against other versions. |
10803 |
version_type=sunos |
10804 |
need_lib_prefix=no |
10805 |
need_version=no |
10806 |
case $host_cpu in |
10807 |
ia64*) |
10808 |
shrext_cmds='.so' |
10809 |
hardcode_into_libs=yes |
10810 |
dynamic_linker="$host_os dld.so" |
10811 |
shlibpath_var=LD_LIBRARY_PATH |
10812 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10813 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10814 |
soname_spec='${libname}${release}${shared_ext}$major' |
10815 |
if test "X$HPUX_IA64_MODE" = X32; then |
10816 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
10817 |
else |
10818 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
10819 |
fi |
10820 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10821 |
;; |
10822 |
hppa*64*) |
10823 |
shrext_cmds='.sl' |
10824 |
hardcode_into_libs=yes |
10825 |
dynamic_linker="$host_os dld.sl" |
10826 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
10827 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10828 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10829 |
soname_spec='${libname}${release}${shared_ext}$major' |
10830 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10831 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10832 |
;; |
10833 |
*) |
10834 |
shrext_cmds='.sl' |
10835 |
dynamic_linker="$host_os dld.sl" |
10836 |
shlibpath_var=SHLIB_PATH |
10837 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
10838 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10839 |
soname_spec='${libname}${release}${shared_ext}$major' |
10840 |
;; |
10841 |
esac |
10842 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
10843 |
postinstall_cmds='chmod 555 $lib' |
10844 |
# or fails outright, so override atomically: |
10845 |
install_override_mode=555 |
10846 |
;; |
10847 |
|
10848 |
interix[3-9]*) |
10849 |
version_type=linux # correct to gnu/linux during the next big refactor |
10850 |
need_lib_prefix=no |
10851 |
need_version=no |
10852 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
10853 |
soname_spec='${libname}${release}${shared_ext}$major' |
10854 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10855 |
shlibpath_var=LD_LIBRARY_PATH |
10856 |
shlibpath_overrides_runpath=no |
10857 |
hardcode_into_libs=yes |
10858 |
;; |
10859 |
|
10860 |
irix5* | irix6* | nonstopux*) |
10861 |
case $host_os in |
10862 |
nonstopux*) version_type=nonstopux ;; |
10863 |
*) |
10864 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
10865 |
version_type=linux # correct to gnu/linux during the next big refactor |
10866 |
else |
10867 |
version_type=irix |
10868 |
fi ;; |
10869 |
esac |
10870 |
need_lib_prefix=no |
10871 |
need_version=no |
10872 |
soname_spec='${libname}${release}${shared_ext}$major' |
10873 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
10874 |
case $host_os in |
10875 |
irix5* | nonstopux*) |
10876 |
libsuff= shlibsuff= |
10877 |
;; |
10878 |
*) |
10879 |
case $LD in # libtool.m4 will add one of these switches to LD |
10880 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
10881 |
libsuff= shlibsuff= libmagic=32-bit;; |
10882 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
10883 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
10884 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
10885 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
10886 |
*) libsuff= shlibsuff= libmagic=never-match;; |
10887 |
esac |
10888 |
;; |
10889 |
esac |
10890 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
10891 |
shlibpath_overrides_runpath=no |
10892 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
10893 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
10894 |
hardcode_into_libs=yes |
10895 |
;; |
10896 |
|
10897 |
# No shared lib support for Linux oldld, aout, or coff. |
10898 |
linux*oldld* | linux*aout* | linux*coff*) |
10899 |
dynamic_linker=no |
10900 |
;; |
10901 |
|
10902 |
# This must be glibc/ELF. |
10903 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
10904 |
version_type=linux # correct to gnu/linux during the next big refactor |
10905 |
need_lib_prefix=no |
10906 |
need_version=no |
10907 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10908 |
soname_spec='${libname}${release}${shared_ext}$major' |
10909 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10910 |
shlibpath_var=LD_LIBRARY_PATH |
10911 |
shlibpath_overrides_runpath=no |
10912 |
|
10913 |
# Some binutils ld are patched to set DT_RUNPATH |
10914 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10915 |
$as_echo_n "(cached) " >&6 |
10916 |
else |
10917 |
lt_cv_shlibpath_overrides_runpath=no |
10918 |
save_LDFLAGS=$LDFLAGS |
10919 |
save_libdir=$libdir |
10920 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
10921 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
10922 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10923 |
/* end confdefs.h. */ |
10924 |
|
10925 |
int |
10926 |
main () |
10927 |
{ |
10928 |
|
10929 |
; |
10930 |
return 0; |
10931 |
} |
10932 |
_ACEOF |
10933 |
if ac_fn_c_try_link "$LINENO"; then : |
10934 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
10935 |
lt_cv_shlibpath_overrides_runpath=yes |
10936 |
fi |
10937 |
fi |
10938 |
rm -f core conftest.err conftest.$ac_objext \ |
10939 |
conftest$ac_exeext conftest.$ac_ext |
10940 |
LDFLAGS=$save_LDFLAGS |
10941 |
libdir=$save_libdir |
10942 |
|
10943 |
fi |
10944 |
|
10945 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
10946 |
|
10947 |
# This implies no fast_install, which is unacceptable. |
10948 |
# Some rework will be needed to allow for fast_install |
10949 |
# before this can be enabled. |
10950 |
hardcode_into_libs=yes |
10951 |
|
10952 |
# Append ld.so.conf contents to the search path |
10953 |
if test -f /etc/ld.so.conf; then |
10954 |
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' ' '` |
10955 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10956 |
fi |
10957 |
|
10958 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
10959 |
# powerpc, because MkLinux only supported shared libraries with the |
10960 |
# GNU dynamic linker. Since this was broken with cross compilers, |
10961 |
# most powerpc-linux boxes support dynamic linking these days and |
10962 |
# people can always --disable-shared, the test was removed, and we |
10963 |
# assume the GNU/Linux dynamic linker is in use. |
10964 |
dynamic_linker='GNU/Linux ld.so' |
10965 |
;; |
10966 |
|
10967 |
netbsd*) |
10968 |
version_type=sunos |
10969 |
need_lib_prefix=no |
10970 |
need_version=no |
10971 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10972 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10973 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
10974 |
dynamic_linker='NetBSD (a.out) ld.so' |
10975 |
else |
10976 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
10977 |
soname_spec='${libname}${release}${shared_ext}$major' |
10978 |
dynamic_linker='NetBSD ld.elf_so' |
10979 |
fi |
10980 |
shlibpath_var=LD_LIBRARY_PATH |
10981 |
shlibpath_overrides_runpath=yes |
10982 |
hardcode_into_libs=yes |
10983 |
;; |
10984 |
|
10985 |
newsos6) |
10986 |
version_type=linux # correct to gnu/linux during the next big refactor |
10987 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10988 |
shlibpath_var=LD_LIBRARY_PATH |
10989 |
shlibpath_overrides_runpath=yes |
10990 |
;; |
10991 |
|
10992 |
*nto* | *qnx*) |
10993 |
version_type=qnx |
10994 |
need_lib_prefix=no |
10995 |
need_version=no |
10996 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10997 |
soname_spec='${libname}${release}${shared_ext}$major' |
10998 |
shlibpath_var=LD_LIBRARY_PATH |
10999 |
shlibpath_overrides_runpath=no |
11000 |
hardcode_into_libs=yes |
11001 |
dynamic_linker='ldqnx.so' |
11002 |
;; |
11003 |
|
11004 |
openbsd*) |
11005 |
version_type=sunos |
11006 |
sys_lib_dlsearch_path_spec="/usr/lib" |
11007 |
need_lib_prefix=no |
11008 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
11009 |
case $host_os in |
11010 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
11011 |
*) need_version=no ;; |
11012 |
esac |
11013 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11014 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11015 |
shlibpath_var=LD_LIBRARY_PATH |
11016 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11017 |
case $host_os in |
11018 |
openbsd2.[89] | openbsd2.[89].*) |
11019 |
shlibpath_overrides_runpath=no |
11020 |
;; |
11021 |
*) |
11022 |
shlibpath_overrides_runpath=yes |
11023 |
;; |
11024 |
esac |
11025 |
else |
11026 |
shlibpath_overrides_runpath=yes |
11027 |
fi |
11028 |
;; |
11029 |
|
11030 |
os2*) |
11031 |
libname_spec='$name' |
11032 |
shrext_cmds=".dll" |
11033 |
need_lib_prefix=no |
11034 |
library_names_spec='$libname${shared_ext} $libname.a' |
11035 |
dynamic_linker='OS/2 ld.exe' |
11036 |
shlibpath_var=LIBPATH |
11037 |
;; |
11038 |
|
11039 |
osf3* | osf4* | osf5*) |
11040 |
version_type=osf |
11041 |
need_lib_prefix=no |
11042 |
need_version=no |
11043 |
soname_spec='${libname}${release}${shared_ext}$major' |
11044 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11045 |
shlibpath_var=LD_LIBRARY_PATH |
11046 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11047 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
11048 |
;; |
11049 |
|
11050 |
rdos*) |
11051 |
dynamic_linker=no |
11052 |
;; |
11053 |
|
11054 |
solaris*) |
11055 |
version_type=linux # correct to gnu/linux during the next big refactor |
11056 |
need_lib_prefix=no |
11057 |
need_version=no |
11058 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11059 |
soname_spec='${libname}${release}${shared_ext}$major' |
11060 |
shlibpath_var=LD_LIBRARY_PATH |
11061 |
shlibpath_overrides_runpath=yes |
11062 |
hardcode_into_libs=yes |
11063 |
# ldd complains unless libraries are executable |
11064 |
postinstall_cmds='chmod +x $lib' |
11065 |
;; |
11066 |
|
11067 |
sunos4*) |
11068 |
version_type=sunos |
11069 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11070 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11071 |
shlibpath_var=LD_LIBRARY_PATH |
11072 |
shlibpath_overrides_runpath=yes |
11073 |
if test "$with_gnu_ld" = yes; then |
11074 |
need_lib_prefix=no |
11075 |
fi |
11076 |
need_version=yes |
11077 |
;; |
11078 |
|
11079 |
sysv4 | sysv4.3*) |
11080 |
version_type=linux # correct to gnu/linux during the next big refactor |
11081 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11082 |
soname_spec='${libname}${release}${shared_ext}$major' |
11083 |
shlibpath_var=LD_LIBRARY_PATH |
11084 |
case $host_vendor in |
11085 |
sni) |
11086 |
shlibpath_overrides_runpath=no |
11087 |
need_lib_prefix=no |
11088 |
runpath_var=LD_RUN_PATH |
11089 |
;; |
11090 |
siemens) |
11091 |
need_lib_prefix=no |
11092 |
;; |
11093 |
motorola) |
11094 |
need_lib_prefix=no |
11095 |
need_version=no |
11096 |
shlibpath_overrides_runpath=no |
11097 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
11098 |
;; |
11099 |
esac |
11100 |
;; |
11101 |
|
11102 |
sysv4*MP*) |
11103 |
if test -d /usr/nec ;then |
11104 |
version_type=linux # correct to gnu/linux during the next big refactor |
11105 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
11106 |
soname_spec='$libname${shared_ext}.$major' |
11107 |
shlibpath_var=LD_LIBRARY_PATH |
11108 |
fi |
11109 |
;; |
11110 |
|
11111 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11112 |
version_type=freebsd-elf |
11113 |
need_lib_prefix=no |
11114 |
need_version=no |
11115 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
11116 |
soname_spec='${libname}${release}${shared_ext}$major' |
11117 |
shlibpath_var=LD_LIBRARY_PATH |
11118 |
shlibpath_overrides_runpath=yes |
11119 |
hardcode_into_libs=yes |
11120 |
if test "$with_gnu_ld" = yes; then |
11121 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11122 |
else |
11123 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11124 |
case $host_os in |
11125 |
sco3.2v5*) |
11126 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
11127 |
;; |
11128 |
esac |
11129 |
fi |
11130 |
sys_lib_dlsearch_path_spec='/usr/lib' |
11131 |
;; |
11132 |
|
11133 |
tpf*) |
11134 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
11135 |
version_type=linux # correct to gnu/linux during the next big refactor |
11136 |
need_lib_prefix=no |
11137 |
need_version=no |
11138 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11139 |
shlibpath_var=LD_LIBRARY_PATH |
11140 |
shlibpath_overrides_runpath=no |
11141 |
hardcode_into_libs=yes |
11142 |
;; |
11143 |
|
11144 |
uts4*) |
11145 |
version_type=linux # correct to gnu/linux during the next big refactor |
11146 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11147 |
soname_spec='${libname}${release}${shared_ext}$major' |
11148 |
shlibpath_var=LD_LIBRARY_PATH |
11149 |
;; |
11150 |
|
11151 |
*) |
11152 |
dynamic_linker=no |
11153 |
;; |
11154 |
esac |
11155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11156 |
$as_echo "$dynamic_linker" >&6; } |
11157 |
test "$dynamic_linker" = no && can_build_shared=no |
11158 |
|
11159 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11160 |
if test "$GCC" = yes; then |
11161 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11162 |
fi |
11163 |
|
11164 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11165 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
11166 |
fi |
11167 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
11168 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
11169 |
fi |
11170 |
|
11171 |
|
11172 |
|
11173 |
|
11174 |
|
11175 |
|
11176 |
|
11177 |
|
11178 |
|
11179 |
|
11180 |
|
11181 |
|
11182 |
|
11183 |
|
11184 |
|
11185 |
|
11186 |
|
11187 |
|
11188 |
|
11189 |
|
11190 |
|
11191 |
|
11192 |
|
11193 |
|
11194 |
|
11195 |
|
11196 |
|
11197 |
|
11198 |
|
11199 |
|
11200 |
|
11201 |
|
11202 |
|
11203 |
|
11204 |
|
11205 |
|
11206 |
|
11207 |
|
11208 |
|
11209 |
|
11210 |
|
11211 |
|
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 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11263 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11264 |
hardcode_action= |
11265 |
if test -n "$hardcode_libdir_flag_spec" || |
11266 |
test -n "$runpath_var" || |
11267 |
test "X$hardcode_automatic" = "Xyes" ; then |
11268 |
|
11269 |
# We can hardcode non-existent directories. |
11270 |
if test "$hardcode_direct" != no && |
11271 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
11272 |
# have to relink, otherwise we might link with an installed library |
11273 |
# when we should be linking with a yet-to-be-installed one |
11274 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
11275 |
test "$hardcode_minus_L" != no; then |
11276 |
# Linking always hardcodes the temporary library directory. |
11277 |
hardcode_action=relink |
11278 |
else |
11279 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
11280 |
hardcode_action=immediate |
11281 |
fi |
11282 |
else |
11283 |
# We cannot hardcode anything, or else we can only hardcode existing |
11284 |
# directories. |
11285 |
hardcode_action=unsupported |
11286 |
fi |
11287 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11288 |
$as_echo "$hardcode_action" >&6; } |
11289 |
|
11290 |
if test "$hardcode_action" = relink || |
11291 |
test "$inherit_rpath" = yes; then |
11292 |
# Fast installation is not supported |
11293 |
enable_fast_install=no |
11294 |
elif test "$shlibpath_overrides_runpath" = yes || |
11295 |
test "$enable_shared" = no; then |
11296 |
# Fast installation is not necessary |
11297 |
enable_fast_install=needless |
11298 |
fi |
11299 |
|
11300 |
|
11301 |
|
11302 |
|
11303 |
|
11304 |
|
11305 |
if test "x$enable_dlopen" != xyes; then |
11306 |
enable_dlopen=unknown |
11307 |
enable_dlopen_self=unknown |
11308 |
enable_dlopen_self_static=unknown |
11309 |
else |
11310 |
lt_cv_dlopen=no |
11311 |
lt_cv_dlopen_libs= |
11312 |
|
11313 |
case $host_os in |
11314 |
beos*) |
11315 |
lt_cv_dlopen="load_add_on" |
11316 |
lt_cv_dlopen_libs= |
11317 |
lt_cv_dlopen_self=yes |
11318 |
;; |
11319 |
|
11320 |
mingw* | pw32* | cegcc*) |
11321 |
lt_cv_dlopen="LoadLibrary" |
11322 |
lt_cv_dlopen_libs= |
11323 |
;; |
11324 |
|
11325 |
cygwin*) |
11326 |
lt_cv_dlopen="dlopen" |
11327 |
lt_cv_dlopen_libs= |
11328 |
;; |
11329 |
|
11330 |
darwin*) |
11331 |
# if libdl is installed we need to link against it |
11332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11333 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11334 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11335 |
$as_echo_n "(cached) " >&6 |
11336 |
else |
11337 |
ac_check_lib_save_LIBS=$LIBS |
11338 |
LIBS="-ldl $LIBS" |
11339 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11340 |
/* end confdefs.h. */ |
11341 |
|
11342 |
/* Override any GCC internal prototype to avoid an error. |
11343 |
Use char because int might match the return type of a GCC |
11344 |
builtin and then its argument prototype would still apply. */ |
11345 |
#ifdef __cplusplus |
11346 |
extern "C" |
11347 |
#endif |
11348 |
char dlopen (); |
11349 |
int |
11350 |
main () |
11351 |
{ |
11352 |
return dlopen (); |
11353 |
; |
11354 |
return 0; |
11355 |
} |
11356 |
_ACEOF |
11357 |
if ac_fn_c_try_link "$LINENO"; then : |
11358 |
ac_cv_lib_dl_dlopen=yes |
11359 |
else |
11360 |
ac_cv_lib_dl_dlopen=no |
11361 |
fi |
11362 |
rm -f core conftest.err conftest.$ac_objext \ |
11363 |
conftest$ac_exeext conftest.$ac_ext |
11364 |
LIBS=$ac_check_lib_save_LIBS |
11365 |
fi |
11366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11367 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11368 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11369 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11370 |
else |
11371 |
|
11372 |
lt_cv_dlopen="dyld" |
11373 |
lt_cv_dlopen_libs= |
11374 |
lt_cv_dlopen_self=yes |
11375 |
|
11376 |
fi |
11377 |
|
11378 |
;; |
11379 |
|
11380 |
*) |
11381 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11382 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
11383 |
lt_cv_dlopen="shl_load" |
11384 |
else |
11385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11386 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
11387 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
11388 |
$as_echo_n "(cached) " >&6 |
11389 |
else |
11390 |
ac_check_lib_save_LIBS=$LIBS |
11391 |
LIBS="-ldld $LIBS" |
11392 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11393 |
/* end confdefs.h. */ |
11394 |
|
11395 |
/* Override any GCC internal prototype to avoid an error. |
11396 |
Use char because int might match the return type of a GCC |
11397 |
builtin and then its argument prototype would still apply. */ |
11398 |
#ifdef __cplusplus |
11399 |
extern "C" |
11400 |
#endif |
11401 |
char shl_load (); |
11402 |
int |
11403 |
main () |
11404 |
{ |
11405 |
return shl_load (); |
11406 |
; |
11407 |
return 0; |
11408 |
} |
11409 |
_ACEOF |
11410 |
if ac_fn_c_try_link "$LINENO"; then : |
11411 |
ac_cv_lib_dld_shl_load=yes |
11412 |
else |
11413 |
ac_cv_lib_dld_shl_load=no |
11414 |
fi |
11415 |
rm -f core conftest.err conftest.$ac_objext \ |
11416 |
conftest$ac_exeext conftest.$ac_ext |
11417 |
LIBS=$ac_check_lib_save_LIBS |
11418 |
fi |
11419 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11420 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
11421 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
11422 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11423 |
else |
11424 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11425 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
11426 |
lt_cv_dlopen="dlopen" |
11427 |
else |
11428 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11429 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11430 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11431 |
$as_echo_n "(cached) " >&6 |
11432 |
else |
11433 |
ac_check_lib_save_LIBS=$LIBS |
11434 |
LIBS="-ldl $LIBS" |
11435 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11436 |
/* end confdefs.h. */ |
11437 |
|
11438 |
/* Override any GCC internal prototype to avoid an error. |
11439 |
Use char because int might match the return type of a GCC |
11440 |
builtin and then its argument prototype would still apply. */ |
11441 |
#ifdef __cplusplus |
11442 |
extern "C" |
11443 |
#endif |
11444 |
char dlopen (); |
11445 |
int |
11446 |
main () |
11447 |
{ |
11448 |
return dlopen (); |
11449 |
; |
11450 |
return 0; |
11451 |
} |
11452 |
_ACEOF |
11453 |
if ac_fn_c_try_link "$LINENO"; then : |
11454 |
ac_cv_lib_dl_dlopen=yes |
11455 |
else |
11456 |
ac_cv_lib_dl_dlopen=no |
11457 |
fi |
11458 |
rm -f core conftest.err conftest.$ac_objext \ |
11459 |
conftest$ac_exeext conftest.$ac_ext |
11460 |
LIBS=$ac_check_lib_save_LIBS |
11461 |
fi |
11462 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11463 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11464 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11465 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11466 |
else |
11467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11468 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
11469 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
11470 |
$as_echo_n "(cached) " >&6 |
11471 |
else |
11472 |
ac_check_lib_save_LIBS=$LIBS |
11473 |
LIBS="-lsvld $LIBS" |
11474 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11475 |
/* end confdefs.h. */ |
11476 |
|
11477 |
/* Override any GCC internal prototype to avoid an error. |
11478 |
Use char because int might match the return type of a GCC |
11479 |
builtin and then its argument prototype would still apply. */ |
11480 |
#ifdef __cplusplus |
11481 |
extern "C" |
11482 |
#endif |
11483 |
char dlopen (); |
11484 |
int |
11485 |
main () |
11486 |
{ |
11487 |
return dlopen (); |
11488 |
; |
11489 |
return 0; |
11490 |
} |
11491 |
_ACEOF |
11492 |
if ac_fn_c_try_link "$LINENO"; then : |
11493 |
ac_cv_lib_svld_dlopen=yes |
11494 |
else |
11495 |
ac_cv_lib_svld_dlopen=no |
11496 |
fi |
11497 |
rm -f core conftest.err conftest.$ac_objext \ |
11498 |
conftest$ac_exeext conftest.$ac_ext |
11499 |
LIBS=$ac_check_lib_save_LIBS |
11500 |
fi |
11501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11502 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
11503 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
11504 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11505 |
else |
11506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11507 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
11508 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
11509 |
$as_echo_n "(cached) " >&6 |
11510 |
else |
11511 |
ac_check_lib_save_LIBS=$LIBS |
11512 |
LIBS="-ldld $LIBS" |
11513 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11514 |
/* end confdefs.h. */ |
11515 |
|
11516 |
/* Override any GCC internal prototype to avoid an error. |
11517 |
Use char because int might match the return type of a GCC |
11518 |
builtin and then its argument prototype would still apply. */ |
11519 |
#ifdef __cplusplus |
11520 |
extern "C" |
11521 |
#endif |
11522 |
char dld_link (); |
11523 |
int |
11524 |
main () |
11525 |
{ |
11526 |
return dld_link (); |
11527 |
; |
11528 |
return 0; |
11529 |
} |
11530 |
_ACEOF |
11531 |
if ac_fn_c_try_link "$LINENO"; then : |
11532 |
ac_cv_lib_dld_dld_link=yes |
11533 |
else |
11534 |
ac_cv_lib_dld_dld_link=no |
11535 |
fi |
11536 |
rm -f core conftest.err conftest.$ac_objext \ |
11537 |
conftest$ac_exeext conftest.$ac_ext |
11538 |
LIBS=$ac_check_lib_save_LIBS |
11539 |
fi |
11540 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11541 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
11542 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
11543 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11544 |
fi |
11545 |
|
11546 |
|
11547 |
fi |
11548 |
|
11549 |
|
11550 |
fi |
11551 |
|
11552 |
|
11553 |
fi |
11554 |
|
11555 |
|
11556 |
fi |
11557 |
|
11558 |
|
11559 |
fi |
11560 |
|
11561 |
;; |
11562 |
esac |
11563 |
|
11564 |
if test "x$lt_cv_dlopen" != xno; then |
11565 |
enable_dlopen=yes |
11566 |
else |
11567 |
enable_dlopen=no |
11568 |
fi |
11569 |
|
11570 |
case $lt_cv_dlopen in |
11571 |
dlopen) |
11572 |
save_CPPFLAGS="$CPPFLAGS" |
11573 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
11574 |
|
11575 |
save_LDFLAGS="$LDFLAGS" |
11576 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11577 |
|
11578 |
save_LIBS="$LIBS" |
11579 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
11580 |
|
11581 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11582 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
11583 |
if ${lt_cv_dlopen_self+:} false; then : |
11584 |
$as_echo_n "(cached) " >&6 |
11585 |
else |
11586 |
if test "$cross_compiling" = yes; then : |
11587 |
lt_cv_dlopen_self=cross |
11588 |
else |
11589 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11590 |
lt_status=$lt_dlunknown |
11591 |
cat > conftest.$ac_ext <<_LT_EOF |
11592 |
#line $LINENO "configure" |
11593 |
#include "confdefs.h" |
11594 |
|
11595 |
#if HAVE_DLFCN_H |
11596 |
#include <dlfcn.h> |
11597 |
#endif |
11598 |
|
11599 |
#include <stdio.h> |
11600 |
|
11601 |
#ifdef RTLD_GLOBAL |
11602 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11603 |
#else |
11604 |
# ifdef DL_GLOBAL |
11605 |
# define LT_DLGLOBAL DL_GLOBAL |
11606 |
# else |
11607 |
# define LT_DLGLOBAL 0 |
11608 |
# endif |
11609 |
#endif |
11610 |
|
11611 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11612 |
find out it does not work in some platform. */ |
11613 |
#ifndef LT_DLLAZY_OR_NOW |
11614 |
# ifdef RTLD_LAZY |
11615 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11616 |
# else |
11617 |
# ifdef DL_LAZY |
11618 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11619 |
# else |
11620 |
# ifdef RTLD_NOW |
11621 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11622 |
# else |
11623 |
# ifdef DL_NOW |
11624 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11625 |
# else |
11626 |
# define LT_DLLAZY_OR_NOW 0 |
11627 |
# endif |
11628 |
# endif |
11629 |
# endif |
11630 |
# endif |
11631 |
#endif |
11632 |
|
11633 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
11634 |
correspondingly for the symbols needed. */ |
11635 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11636 |
int fnord () __attribute__((visibility("default"))); |
11637 |
#endif |
11638 |
|
11639 |
int fnord () { return 42; } |
11640 |
int main () |
11641 |
{ |
11642 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11643 |
int status = $lt_dlunknown; |
11644 |
|
11645 |
if (self) |
11646 |
{ |
11647 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11648 |
else |
11649 |
{ |
11650 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11651 |
else puts (dlerror ()); |
11652 |
} |
11653 |
/* dlclose (self); */ |
11654 |
} |
11655 |
else |
11656 |
puts (dlerror ()); |
11657 |
|
11658 |
return status; |
11659 |
} |
11660 |
_LT_EOF |
11661 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11662 |
(eval $ac_link) 2>&5 |
11663 |
ac_status=$? |
11664 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11665 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
11666 |
(./conftest; exit; ) >&5 2>/dev/null |
11667 |
lt_status=$? |
11668 |
case x$lt_status in |
11669 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
11670 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
11671 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
11672 |
esac |
11673 |
else : |
11674 |
# compilation failed |
11675 |
lt_cv_dlopen_self=no |
11676 |
fi |
11677 |
fi |
11678 |
rm -fr conftest* |
11679 |
|
11680 |
|
11681 |
fi |
11682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11683 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
11684 |
|
11685 |
if test "x$lt_cv_dlopen_self" = xyes; then |
11686 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
11687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11688 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
11689 |
if ${lt_cv_dlopen_self_static+:} false; then : |
11690 |
$as_echo_n "(cached) " >&6 |
11691 |
else |
11692 |
if test "$cross_compiling" = yes; then : |
11693 |
lt_cv_dlopen_self_static=cross |
11694 |
else |
11695 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11696 |
lt_status=$lt_dlunknown |
11697 |
cat > conftest.$ac_ext <<_LT_EOF |
11698 |
#line $LINENO "configure" |
11699 |
#include "confdefs.h" |
11700 |
|
11701 |
#if HAVE_DLFCN_H |
11702 |
#include <dlfcn.h> |
11703 |
#endif |
11704 |
|
11705 |
#include <stdio.h> |
11706 |
|
11707 |
#ifdef RTLD_GLOBAL |
11708 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11709 |
#else |
11710 |
# ifdef DL_GLOBAL |
11711 |
# define LT_DLGLOBAL DL_GLOBAL |
11712 |
# else |
11713 |
# define LT_DLGLOBAL 0 |
11714 |
# endif |
11715 |
#endif |
11716 |
|
11717 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11718 |
find out it does not work in some platform. */ |
11719 |
#ifndef LT_DLLAZY_OR_NOW |
11720 |
# ifdef RTLD_LAZY |
11721 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
11722 |
# else |
11723 |
# ifdef DL_LAZY |
11724 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
11725 |
# else |
11726 |
# ifdef RTLD_NOW |
11727 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
11728 |
# else |
11729 |
# ifdef DL_NOW |
11730 |
# define LT_DLLAZY_OR_NOW DL_NOW |
11731 |
# else |
11732 |
# define LT_DLLAZY_OR_NOW 0 |
11733 |
# endif |
11734 |
# endif |
11735 |
# endif |
11736 |
# endif |
11737 |
#endif |
11738 |
|
11739 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
11740 |
correspondingly for the symbols needed. */ |
11741 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
11742 |
int fnord () __attribute__((visibility("default"))); |
11743 |
#endif |
11744 |
|
11745 |
int fnord () { return 42; } |
11746 |
int main () |
11747 |
{ |
11748 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11749 |
int status = $lt_dlunknown; |
11750 |
|
11751 |
if (self) |
11752 |
{ |
11753 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11754 |
else |
11755 |
{ |
11756 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11757 |
else puts (dlerror ()); |
11758 |
} |
11759 |
/* dlclose (self); */ |
11760 |
} |
11761 |
else |
11762 |
puts (dlerror ()); |
11763 |
|
11764 |
return status; |
11765 |
} |
11766 |
_LT_EOF |
11767 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11768 |
(eval $ac_link) 2>&5 |
11769 |
ac_status=$? |
11770 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11771 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
11772 |
(./conftest; exit; ) >&5 2>/dev/null |
11773 |
lt_status=$? |
11774 |
case x$lt_status in |
11775 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
11776 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
11777 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
11778 |
esac |
11779 |
else : |
11780 |
# compilation failed |
11781 |
lt_cv_dlopen_self_static=no |
11782 |
fi |
11783 |
fi |
11784 |
rm -fr conftest* |
11785 |
|
11786 |
|
11787 |
fi |
11788 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11789 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
11790 |
fi |
11791 |
|
11792 |
CPPFLAGS="$save_CPPFLAGS" |
11793 |
LDFLAGS="$save_LDFLAGS" |
11794 |
LIBS="$save_LIBS" |
11795 |
;; |
11796 |
esac |
11797 |
|
11798 |
case $lt_cv_dlopen_self in |
11799 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
11800 |
*) enable_dlopen_self=unknown ;; |
11801 |
esac |
11802 |
|
11803 |
case $lt_cv_dlopen_self_static in |
11804 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
11805 |
*) enable_dlopen_self_static=unknown ;; |
11806 |
esac |
11807 |
fi |
11808 |
|
11809 |
|
11810 |
|
11811 |
|
11812 |
|
11813 |
|
11814 |
|
11815 |
|
11816 |
|
11817 |
|
11818 |
|
11819 |
|
11820 |
|
11821 |
|
11822 |
|
11823 |
|
11824 |
|
11825 |
striplib= |
11826 |
old_striplib= |
11827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11828 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11829 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11830 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
11831 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
11832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11833 |
$as_echo "yes" >&6; } |
11834 |
else |
11835 |
# FIXME - insert some real tests, host_os isn't really good enough |
11836 |
case $host_os in |
11837 |
darwin*) |
11838 |
if test -n "$STRIP" ; then |
11839 |
striplib="$STRIP -x" |
11840 |
old_striplib="$STRIP -S" |
11841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11842 |
$as_echo "yes" >&6; } |
11843 |
else |
11844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11845 |
$as_echo "no" >&6; } |
11846 |
fi |
11847 |
;; |
11848 |
*) |
11849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11850 |
$as_echo "no" >&6; } |
11851 |
;; |
11852 |
esac |
11853 |
fi |
11854 |
|
11855 |
|
11856 |
|
11857 |
|
11858 |
|
11859 |
|
11860 |
|
11861 |
|
11862 |
|
11863 |
|
11864 |
|
11865 |
|
11866 |
# Report which library types will actually be built |
11867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11868 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
11869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
11870 |
$as_echo "$can_build_shared" >&6; } |
11871 |
|
11872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11873 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
11874 |
test "$can_build_shared" = "no" && enable_shared=no |
11875 |
|
11876 |
# On AIX, shared libraries and static libraries use the same namespace, and |
11877 |
# are all built from PIC. |
11878 |
case $host_os in |
11879 |
aix3*) |
11880 |
test "$enable_shared" = yes && enable_static=no |
11881 |
if test -n "$RANLIB"; then |
11882 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
11883 |
postinstall_cmds='$RANLIB $lib' |
11884 |
fi |
11885 |
;; |
11886 |
|
11887 |
aix[4-9]*) |
11888 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11889 |
test "$enable_shared" = yes && enable_static=no |
11890 |
fi |
11891 |
;; |
11892 |
esac |
11893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11894 |
$as_echo "$enable_shared" >&6; } |
11895 |
|
11896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11897 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
11898 |
# Make sure either enable_shared or enable_static is yes. |
11899 |
test "$enable_shared" = yes || enable_static=yes |
11900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11901 |
$as_echo "$enable_static" >&6; } |
11902 |
|
11903 |
|
11904 |
|
11905 |
|
11906 |
fi |
11907 |
ac_ext=c |
11908 |
ac_cpp='$CPP $CPPFLAGS' |
11909 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11910 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11911 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11912 |
|
11913 |
CC="$lt_save_CC" |
11914 |
|
11915 |
|
11916 |
|
11917 |
|
11918 |
|
11919 |
|
11920 |
|
11921 |
|
11922 |
|
11923 |
|
11924 |
|
11925 |
|
11926 |
|
11927 |
|
11928 |
|
11929 |
ac_config_commands="$ac_config_commands libtool" |
11930 |
|
11931 |
|
11932 |
|
11933 |
|
11934 |
# Only expand once: |
11935 |
|
11936 |
|
11937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
11938 |
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
11939 |
if ${libltdl_cv_shlibext+:} false; then : |
11940 |
$as_echo_n "(cached) " >&6 |
11941 |
else |
11942 |
|
11943 |
module=yes |
11944 |
eval libltdl_cv_shlibext=$shrext_cmds |
11945 |
module=no |
11946 |
eval libltdl_cv_shrext=$shrext_cmds |
11947 |
|
11948 |
fi |
11949 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
11950 |
$as_echo "$libltdl_cv_shlibext" >&6; } |
11951 |
if test -n "$libltdl_cv_shlibext"; then |
11952 |
|
11953 |
cat >>confdefs.h <<_ACEOF |
11954 |
#define LT_MODULE_EXT "$libltdl_cv_shlibext" |
11955 |
_ACEOF |
11956 |
|
11957 |
fi |
11958 |
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
11959 |
|
11960 |
cat >>confdefs.h <<_ACEOF |
11961 |
#define LT_SHARED_EXT "$libltdl_cv_shrext" |
11962 |
_ACEOF |
11963 |
|
11964 |
fi |
11965 |
|
11966 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
11967 |
$as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
11968 |
if ${lt_cv_module_path_var+:} false; then : |
11969 |
$as_echo_n "(cached) " >&6 |
11970 |
else |
11971 |
lt_cv_module_path_var="$shlibpath_var" |
11972 |
fi |
11973 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
11974 |
$as_echo "$lt_cv_module_path_var" >&6; } |
11975 |
if test -n "$lt_cv_module_path_var"; then |
11976 |
|
11977 |
cat >>confdefs.h <<_ACEOF |
11978 |
#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
11979 |
_ACEOF |
11980 |
|
11981 |
fi |
11982 |
|
11983 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
11984 |
$as_echo_n "checking for the default library search path... " >&6; } |
11985 |
if ${lt_cv_sys_dlsearch_path+:} false; then : |
11986 |
$as_echo_n "(cached) " >&6 |
11987 |
else |
11988 |
lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
11989 |
fi |
11990 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
11991 |
$as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
11992 |
if test -n "$lt_cv_sys_dlsearch_path"; then |
11993 |
sys_dlsearch_path= |
11994 |
for dir in $lt_cv_sys_dlsearch_path; do |
11995 |
if test -z "$sys_dlsearch_path"; then |
11996 |
sys_dlsearch_path="$dir" |
11997 |
else |
11998 |
sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
11999 |
fi |
12000 |
done |
12001 |
|
12002 |
cat >>confdefs.h <<_ACEOF |
12003 |
#define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
12004 |
_ACEOF |
12005 |
|
12006 |
fi |
12007 |
|
12008 |
|
12009 |
LT_DLLOADERS= |
12010 |
|
12011 |
|
12012 |
ac_ext=c |
12013 |
ac_cpp='$CPP $CPPFLAGS' |
12014 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12015 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12016 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12017 |
|
12018 |
|
12019 |
LIBADD_DLOPEN= |
12020 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
12021 |
$as_echo_n "checking for library containing dlopen... " >&6; } |
12022 |
if ${ac_cv_search_dlopen+:} false; then : |
12023 |
$as_echo_n "(cached) " >&6 |
12024 |
else |
12025 |
ac_func_search_save_LIBS=$LIBS |
12026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12027 |
/* end confdefs.h. */ |
12028 |
|
12029 |
/* Override any GCC internal prototype to avoid an error. |
12030 |
Use char because int might match the return type of a GCC |
12031 |
builtin and then its argument prototype would still apply. */ |
12032 |
#ifdef __cplusplus |
12033 |
extern "C" |
12034 |
#endif |
12035 |
char dlopen (); |
12036 |
int |
12037 |
main () |
12038 |
{ |
12039 |
return dlopen (); |
12040 |
; |
12041 |
return 0; |
12042 |
} |
12043 |
_ACEOF |
12044 |
for ac_lib in '' dl; do |
12045 |
if test -z "$ac_lib"; then |
12046 |
ac_res="none required" |
12047 |
else |
12048 |
ac_res=-l$ac_lib |
12049 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12050 |
fi |
12051 |
if ac_fn_c_try_link "$LINENO"; then : |
12052 |
ac_cv_search_dlopen=$ac_res |
12053 |
fi |
12054 |
rm -f core conftest.err conftest.$ac_objext \ |
12055 |
conftest$ac_exeext |
12056 |
if ${ac_cv_search_dlopen+:} false; then : |
12057 |
break |
12058 |
fi |
12059 |
done |
12060 |
if ${ac_cv_search_dlopen+:} false; then : |
12061 |
|
12062 |
else |
12063 |
ac_cv_search_dlopen=no |
12064 |
fi |
12065 |
rm conftest.$ac_ext |
12066 |
LIBS=$ac_func_search_save_LIBS |
12067 |
fi |
12068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
12069 |
$as_echo "$ac_cv_search_dlopen" >&6; } |
12070 |
ac_res=$ac_cv_search_dlopen |
12071 |
if test "$ac_res" != no; then : |
12072 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12073 |
|
12074 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12075 |
|
12076 |
if test "$ac_cv_search_dlopen" != "none required" ; then |
12077 |
LIBADD_DLOPEN="-ldl" |
12078 |
fi |
12079 |
libltdl_cv_lib_dl_dlopen="yes" |
12080 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12081 |
else |
12082 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12083 |
/* end confdefs.h. */ |
12084 |
#if HAVE_DLFCN_H |
12085 |
# include <dlfcn.h> |
12086 |
#endif |
12087 |
|
12088 |
int |
12089 |
main () |
12090 |
{ |
12091 |
dlopen(0, 0); |
12092 |
; |
12093 |
return 0; |
12094 |
} |
12095 |
_ACEOF |
12096 |
if ac_fn_c_try_link "$LINENO"; then : |
12097 |
|
12098 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12099 |
|
12100 |
libltdl_cv_func_dlopen="yes" |
12101 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12102 |
else |
12103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12104 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
12105 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
12106 |
$as_echo_n "(cached) " >&6 |
12107 |
else |
12108 |
ac_check_lib_save_LIBS=$LIBS |
12109 |
LIBS="-lsvld $LIBS" |
12110 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12111 |
/* end confdefs.h. */ |
12112 |
|
12113 |
/* Override any GCC internal prototype to avoid an error. |
12114 |
Use char because int might match the return type of a GCC |
12115 |
builtin and then its argument prototype would still apply. */ |
12116 |
#ifdef __cplusplus |
12117 |
extern "C" |
12118 |
#endif |
12119 |
char dlopen (); |
12120 |
int |
12121 |
main () |
12122 |
{ |
12123 |
return dlopen (); |
12124 |
; |
12125 |
return 0; |
12126 |
} |
12127 |
_ACEOF |
12128 |
if ac_fn_c_try_link "$LINENO"; then : |
12129 |
ac_cv_lib_svld_dlopen=yes |
12130 |
else |
12131 |
ac_cv_lib_svld_dlopen=no |
12132 |
fi |
12133 |
rm -f core conftest.err conftest.$ac_objext \ |
12134 |
conftest$ac_exeext conftest.$ac_ext |
12135 |
LIBS=$ac_check_lib_save_LIBS |
12136 |
fi |
12137 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12138 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
12139 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
12140 |
|
12141 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
12142 |
|
12143 |
LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12144 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12145 |
fi |
12146 |
|
12147 |
fi |
12148 |
rm -f core conftest.err conftest.$ac_objext \ |
12149 |
conftest$ac_exeext conftest.$ac_ext |
12150 |
fi |
12151 |
|
12152 |
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12153 |
then |
12154 |
lt_save_LIBS="$LIBS" |
12155 |
LIBS="$LIBS $LIBADD_DLOPEN" |
12156 |
for ac_func in dlerror |
12157 |
do : |
12158 |
ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
12159 |
if test "x$ac_cv_func_dlerror" = xyes; then : |
12160 |
cat >>confdefs.h <<_ACEOF |
12161 |
#define HAVE_DLERROR 1 |
12162 |
_ACEOF |
12163 |
|
12164 |
fi |
12165 |
done |
12166 |
|
12167 |
LIBS="$lt_save_LIBS" |
12168 |
fi |
12169 |
|
12170 |
|
12171 |
LIBADD_SHL_LOAD= |
12172 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
12173 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
12174 |
|
12175 |
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
12176 |
|
12177 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12178 |
else |
12179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12180 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
12181 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
12182 |
$as_echo_n "(cached) " >&6 |
12183 |
else |
12184 |
ac_check_lib_save_LIBS=$LIBS |
12185 |
LIBS="-ldld $LIBS" |
12186 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12187 |
/* end confdefs.h. */ |
12188 |
|
12189 |
/* Override any GCC internal prototype to avoid an error. |
12190 |
Use char because int might match the return type of a GCC |
12191 |
builtin and then its argument prototype would still apply. */ |
12192 |
#ifdef __cplusplus |
12193 |
extern "C" |
12194 |
#endif |
12195 |
char shl_load (); |
12196 |
int |
12197 |
main () |
12198 |
{ |
12199 |
return shl_load (); |
12200 |
; |
12201 |
return 0; |
12202 |
} |
12203 |
_ACEOF |
12204 |
if ac_fn_c_try_link "$LINENO"; then : |
12205 |
ac_cv_lib_dld_shl_load=yes |
12206 |
else |
12207 |
ac_cv_lib_dld_shl_load=no |
12208 |
fi |
12209 |
rm -f core conftest.err conftest.$ac_objext \ |
12210 |
conftest$ac_exeext conftest.$ac_ext |
12211 |
LIBS=$ac_check_lib_save_LIBS |
12212 |
fi |
12213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12214 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
12215 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
12216 |
|
12217 |
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
12218 |
|
12219 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12220 |
LIBADD_SHL_LOAD="-ldld" |
12221 |
fi |
12222 |
|
12223 |
fi |
12224 |
|
12225 |
|
12226 |
|
12227 |
case $host_os in |
12228 |
darwin[1567].*) |
12229 |
# We only want this for pre-Mac OS X 10.4. |
12230 |
ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
12231 |
if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : |
12232 |
|
12233 |
$as_echo "#define HAVE_DYLD 1" >>confdefs.h |
12234 |
|
12235 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
12236 |
fi |
12237 |
|
12238 |
;; |
12239 |
beos*) |
12240 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
12241 |
;; |
12242 |
cygwin* | mingw* | os2* | pw32*) |
12243 |
ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
12244 |
" |
12245 |
if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
12246 |
ac_have_decl=1 |
12247 |
else |
12248 |
ac_have_decl=0 |
12249 |
fi |
12250 |
|
12251 |
cat >>confdefs.h <<_ACEOF |
12252 |
#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
12253 |
_ACEOF |
12254 |
|
12255 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12256 |
;; |
12257 |
esac |
12258 |
|
12259 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12260 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
12261 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
12262 |
$as_echo_n "(cached) " >&6 |
12263 |
else |
12264 |
ac_check_lib_save_LIBS=$LIBS |
12265 |
LIBS="-ldld $LIBS" |
12266 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12267 |
/* end confdefs.h. */ |
12268 |
|
12269 |
/* Override any GCC internal prototype to avoid an error. |
12270 |
Use char because int might match the return type of a GCC |
12271 |
builtin and then its argument prototype would still apply. */ |
12272 |
#ifdef __cplusplus |
12273 |
extern "C" |
12274 |
#endif |
12275 |
char dld_link (); |
12276 |
int |
12277 |
main () |
12278 |
{ |
12279 |
return dld_link (); |
12280 |
; |
12281 |
return 0; |
12282 |
} |
12283 |
_ACEOF |
12284 |
if ac_fn_c_try_link "$LINENO"; then : |
12285 |
ac_cv_lib_dld_dld_link=yes |
12286 |
else |
12287 |
ac_cv_lib_dld_dld_link=no |
12288 |
fi |
12289 |
rm -f core conftest.err conftest.$ac_objext \ |
12290 |
conftest$ac_exeext conftest.$ac_ext |
12291 |
LIBS=$ac_check_lib_save_LIBS |
12292 |
fi |
12293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12294 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
12295 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
12296 |
|
12297 |
$as_echo "#define HAVE_DLD 1" >>confdefs.h |
12298 |
|
12299 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
12300 |
fi |
12301 |
|
12302 |
|
12303 |
|
12304 |
|
12305 |
LT_DLPREOPEN= |
12306 |
if test -n "$LT_DLLOADERS" |
12307 |
then |
12308 |
for lt_loader in $LT_DLLOADERS; do |
12309 |
LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
12310 |
done |
12311 |
|
12312 |
$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
12313 |
|
12314 |
fi |
12315 |
|
12316 |
|
12317 |
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
12318 |
|
12319 |
|
12320 |
ac_ext=c |
12321 |
ac_cpp='$CPP $CPPFLAGS' |
12322 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12323 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12324 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12325 |
|
12326 |
|
12327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
12328 |
$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
12329 |
if ${lt_cv_sys_symbol_underscore+:} false; then : |
12330 |
$as_echo_n "(cached) " >&6 |
12331 |
else |
12332 |
lt_cv_sys_symbol_underscore=no |
12333 |
cat > conftest.$ac_ext <<_LT_EOF |
12334 |
void nm_test_func(){} |
12335 |
int main(){nm_test_func;return 0;} |
12336 |
_LT_EOF |
12337 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12338 |
(eval $ac_compile) 2>&5 |
12339 |
ac_status=$? |
12340 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12341 |
test $ac_status = 0; }; then |
12342 |
# Now try to grab the symbols. |
12343 |
ac_nlist=conftest.nm |
12344 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
12345 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
12346 |
ac_status=$? |
12347 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12348 |
test $ac_status = 0; } && test -s "$ac_nlist"; then |
12349 |
# See whether the symbols have a leading underscore. |
12350 |
if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
12351 |
lt_cv_sys_symbol_underscore=yes |
12352 |
else |
12353 |
if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
12354 |
: |
12355 |
else |
12356 |
echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
12357 |
fi |
12358 |
fi |
12359 |
else |
12360 |
echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
12361 |
fi |
12362 |
else |
12363 |
echo "configure: failed program was:" >&5 |
12364 |
cat conftest.c >&5 |
12365 |
fi |
12366 |
rm -rf conftest* |
12367 |
|
12368 |
fi |
12369 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12370 |
$as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
12371 |
sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
12372 |
|
12373 |
|
12374 |
if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12375 |
if test x"$libltdl_cv_func_dlopen" = xyes || |
12376 |
test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
12377 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
12378 |
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
12379 |
if ${libltdl_cv_need_uscore+:} false; then : |
12380 |
$as_echo_n "(cached) " >&6 |
12381 |
else |
12382 |
libltdl_cv_need_uscore=unknown |
12383 |
save_LIBS="$LIBS" |
12384 |
LIBS="$LIBS $LIBADD_DLOPEN" |
12385 |
if test "$cross_compiling" = yes; then : |
12386 |
libltdl_cv_need_uscore=cross |
12387 |
else |
12388 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12389 |
lt_status=$lt_dlunknown |
12390 |
cat > conftest.$ac_ext <<_LT_EOF |
12391 |
#line $LINENO "configure" |
12392 |
#include "confdefs.h" |
12393 |
|
12394 |
#if HAVE_DLFCN_H |
12395 |
#include <dlfcn.h> |
12396 |
#endif |
12397 |
|
12398 |
#include <stdio.h> |
12399 |
|
12400 |
#ifdef RTLD_GLOBAL |
12401 |
# define LT_DLGLOBAL RTLD_GLOBAL |
12402 |
#else |
12403 |
# ifdef DL_GLOBAL |
12404 |
# define LT_DLGLOBAL DL_GLOBAL |
12405 |
# else |
12406 |
# define LT_DLGLOBAL 0 |
12407 |
# endif |
12408 |
#endif |
12409 |
|
12410 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12411 |
find out it does not work in some platform. */ |
12412 |
#ifndef LT_DLLAZY_OR_NOW |
12413 |
# ifdef RTLD_LAZY |
12414 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12415 |
# else |
12416 |
# ifdef DL_LAZY |
12417 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
12418 |
# else |
12419 |
# ifdef RTLD_NOW |
12420 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12421 |
# else |
12422 |
# ifdef DL_NOW |
12423 |
# define LT_DLLAZY_OR_NOW DL_NOW |
12424 |
# else |
12425 |
# define LT_DLLAZY_OR_NOW 0 |
12426 |
# endif |
12427 |
# endif |
12428 |
# endif |
12429 |
# endif |
12430 |
#endif |
12431 |
|
12432 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
12433 |
correspondingly for the symbols needed. */ |
12434 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12435 |
int fnord () __attribute__((visibility("default"))); |
12436 |
#endif |
12437 |
|
12438 |
int fnord () { return 42; } |
12439 |
int main () |
12440 |
{ |
12441 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12442 |
int status = $lt_dlunknown; |
12443 |
|
12444 |
if (self) |
12445 |
{ |
12446 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12447 |
else |
12448 |
{ |
12449 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12450 |
else puts (dlerror ()); |
12451 |
} |
12452 |
/* dlclose (self); */ |
12453 |
} |
12454 |
else |
12455 |
puts (dlerror ()); |
12456 |
|
12457 |
return status; |
12458 |
} |
12459 |
_LT_EOF |
12460 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12461 |
(eval $ac_link) 2>&5 |
12462 |
ac_status=$? |
12463 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12464 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12465 |
(./conftest; exit; ) >&5 2>/dev/null |
12466 |
lt_status=$? |
12467 |
case x$lt_status in |
12468 |
x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
12469 |
x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
12470 |
x$lt_dlunknown|x*) ;; |
12471 |
esac |
12472 |
else : |
12473 |
# compilation failed |
12474 |
|
12475 |
fi |
12476 |
fi |
12477 |
rm -fr conftest* |
12478 |
|
12479 |
LIBS="$save_LIBS" |
12480 |
|
12481 |
fi |
12482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
12483 |
$as_echo "$libltdl_cv_need_uscore" >&6; } |
12484 |
fi |
12485 |
fi |
12486 |
|
12487 |
if test x"$libltdl_cv_need_uscore" = xyes; then |
12488 |
|
12489 |
$as_echo "#define NEED_USCORE 1" >>confdefs.h |
12490 |
|
12491 |
fi |
12492 |
|
12493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
12494 |
$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
12495 |
if ${lt_cv_sys_dlopen_deplibs+:} false; then : |
12496 |
$as_echo_n "(cached) " >&6 |
12497 |
else |
12498 |
# PORTME does your system automatically load deplibs for dlopen? |
12499 |
# or its logical equivalent (e.g. shl_load for HP-UX < 11) |
12500 |
# For now, we just catch OSes we know something about -- in the |
12501 |
# future, we'll try test this programmatically. |
12502 |
lt_cv_sys_dlopen_deplibs=unknown |
12503 |
case $host_os in |
12504 |
aix3*|aix4.1.*|aix4.2.*) |
12505 |
# Unknown whether this is true for these versions of AIX, but |
12506 |
# we want this `case' here to explicitly catch those versions. |
12507 |
lt_cv_sys_dlopen_deplibs=unknown |
12508 |
;; |
12509 |
aix[4-9]*) |
12510 |
lt_cv_sys_dlopen_deplibs=yes |
12511 |
;; |
12512 |
amigaos*) |
12513 |
case $host_cpu in |
12514 |
powerpc) |
12515 |
lt_cv_sys_dlopen_deplibs=no |
12516 |
;; |
12517 |
esac |
12518 |
;; |
12519 |
darwin*) |
12520 |
# Assuming the user has installed a libdl from somewhere, this is true |
12521 |
# If you are looking for one http://www.opendarwin.org/projects/dlcompat |
12522 |
lt_cv_sys_dlopen_deplibs=yes |
12523 |
;; |
12524 |
freebsd* | dragonfly*) |
12525 |
lt_cv_sys_dlopen_deplibs=yes |
12526 |
;; |
12527 |
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
12528 |
# GNU and its variants, using gnu ld.so (Glibc) |
12529 |
lt_cv_sys_dlopen_deplibs=yes |
12530 |
;; |
12531 |
hpux10*|hpux11*) |
12532 |
lt_cv_sys_dlopen_deplibs=yes |
12533 |
;; |
12534 |
interix*) |
12535 |
lt_cv_sys_dlopen_deplibs=yes |
12536 |
;; |
12537 |
irix[12345]*|irix6.[01]*) |
12538 |
# Catch all versions of IRIX before 6.2, and indicate that we don't |
12539 |
# know how it worked for any of those versions. |
12540 |
lt_cv_sys_dlopen_deplibs=unknown |
12541 |
;; |
12542 |
irix*) |
12543 |
# The case above catches anything before 6.2, and it's known that |
12544 |
# at 6.2 and later dlopen does load deplibs. |
12545 |
lt_cv_sys_dlopen_deplibs=yes |
12546 |
;; |
12547 |
netbsd*) |
12548 |
lt_cv_sys_dlopen_deplibs=yes |
12549 |
;; |
12550 |
openbsd*) |
12551 |
lt_cv_sys_dlopen_deplibs=yes |
12552 |
;; |
12553 |
osf[1234]*) |
12554 |
# dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
12555 |
# it did *not* use an RPATH in a shared library to find objects the |
12556 |
# library depends on, so we explicitly say `no'. |
12557 |
lt_cv_sys_dlopen_deplibs=no |
12558 |
;; |
12559 |
osf5.0|osf5.0a|osf5.1) |
12560 |
# dlopen *does* load deplibs and with the right loader patch applied |
12561 |
# it even uses RPATH in a shared library to search for shared objects |
12562 |
# that the library depends on, but there's no easy way to know if that |
12563 |
# patch is installed. Since this is the case, all we can really |
12564 |
# say is unknown -- it depends on the patch being installed. If |
12565 |
# it is, this changes to `yes'. Without it, it would be `no'. |
12566 |
lt_cv_sys_dlopen_deplibs=unknown |
12567 |
;; |
12568 |
osf*) |
12569 |
# the two cases above should catch all versions of osf <= 5.1. Read |
12570 |
# the comments above for what we know about them. |
12571 |
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
12572 |
# is used to find them so we can finally say `yes'. |
12573 |
lt_cv_sys_dlopen_deplibs=yes |
12574 |
;; |
12575 |
qnx*) |
12576 |
lt_cv_sys_dlopen_deplibs=yes |
12577 |
;; |
12578 |
solaris*) |
12579 |
lt_cv_sys_dlopen_deplibs=yes |
12580 |
;; |
12581 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12582 |
libltdl_cv_sys_dlopen_deplibs=yes |
12583 |
;; |
12584 |
esac |
12585 |
|
12586 |
fi |
12587 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
12588 |
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
12589 |
if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
12590 |
|
12591 |
$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
12592 |
|
12593 |
fi |
12594 |
|
12595 |
: |
12596 |
|
12597 |
for ac_header in argz.h |
12598 |
do : |
12599 |
ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default |
12600 |
" |
12601 |
if test "x$ac_cv_header_argz_h" = xyes; then : |
12602 |
cat >>confdefs.h <<_ACEOF |
12603 |
#define HAVE_ARGZ_H 1 |
12604 |
_ACEOF |
12605 |
|
12606 |
fi |
12607 |
|
12608 |
done |
12609 |
|
12610 |
|
12611 |
ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
12612 |
# include <argz.h> |
12613 |
#endif |
12614 |
" |
12615 |
if test "x$ac_cv_type_error_t" = xyes; then : |
12616 |
|
12617 |
cat >>confdefs.h <<_ACEOF |
12618 |
#define HAVE_ERROR_T 1 |
12619 |
_ACEOF |
12620 |
|
12621 |
|
12622 |
else |
12623 |
|
12624 |
$as_echo "#define error_t int" >>confdefs.h |
12625 |
|
12626 |
|
12627 |
$as_echo "#define __error_t_defined 1" >>confdefs.h |
12628 |
|
12629 |
fi |
12630 |
|
12631 |
|
12632 |
ARGZ_H= |
12633 |
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
12634 |
argz_next argz_stringify |
12635 |
do : |
12636 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12637 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12638 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12639 |
cat >>confdefs.h <<_ACEOF |
12640 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12641 |
_ACEOF |
12642 |
|
12643 |
else |
12644 |
ARGZ_H=argz.h; |
12645 |
|
12646 |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
12647 |
|
12648 |
fi |
12649 |
done |
12650 |
|
12651 |
|
12652 |
if test -z "$ARGZ_H"; then : |
12653 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
12654 |
$as_echo_n "checking if argz actually works... " >&6; } |
12655 |
if ${lt_cv_sys_argz_works+:} false; then : |
12656 |
$as_echo_n "(cached) " >&6 |
12657 |
else |
12658 |
case $host_os in #( |
12659 |
*cygwin*) |
12660 |
lt_cv_sys_argz_works=no |
12661 |
if test "$cross_compiling" != no; then |
12662 |
lt_cv_sys_argz_works="guessing no" |
12663 |
else |
12664 |
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
12665 |
save_IFS=$IFS |
12666 |
IFS=-. |
12667 |
set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
12668 |
IFS=$save_IFS |
12669 |
lt_os_major=${2-0} |
12670 |
lt_os_minor=${3-0} |
12671 |
lt_os_micro=${4-0} |
12672 |
if test "$lt_os_major" -gt 1 \ |
12673 |
|| { test "$lt_os_major" -eq 1 \ |
12674 |
&& { test "$lt_os_minor" -gt 5 \ |
12675 |
|| { test "$lt_os_minor" -eq 5 \ |
12676 |
&& test "$lt_os_micro" -gt 24; }; }; }; then |
12677 |
lt_cv_sys_argz_works=yes |
12678 |
fi |
12679 |
fi |
12680 |
;; #( |
12681 |
*) lt_cv_sys_argz_works=yes ;; |
12682 |
esac |
12683 |
fi |
12684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
12685 |
$as_echo "$lt_cv_sys_argz_works" >&6; } |
12686 |
if test "$lt_cv_sys_argz_works" = yes; then : |
12687 |
|
12688 |
$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
12689 |
|
12690 |
else |
12691 |
ARGZ_H=argz.h |
12692 |
|
12693 |
|
12694 |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
12695 |
|
12696 |
fi |
12697 |
fi |
12698 |
|
12699 |
|
12700 |
|
12701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
12702 |
$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
12703 |
if ${libltdl_cv_preloaded_symbols+:} false; then : |
12704 |
$as_echo_n "(cached) " >&6 |
12705 |
else |
12706 |
if test -n "$lt_cv_sys_global_symbol_pipe"; then |
12707 |
libltdl_cv_preloaded_symbols=yes |
12708 |
else |
12709 |
libltdl_cv_preloaded_symbols=no |
12710 |
fi |
12711 |
|
12712 |
fi |
12713 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
12714 |
$as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
12715 |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
12716 |
|
12717 |
$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
12718 |
|
12719 |
fi |
12720 |
|
12721 |
# Set options |
12722 |
|
12723 |
|
12724 |
|
12725 |
|
12726 |
|
12727 |
|
12728 |
|
12729 |
|
12730 |
|
12731 |
|
12732 |
|
12733 |
# Check whether --with-included_ltdl was given. |
12734 |
if test "${with_included_ltdl+set}" = set; then : |
12735 |
withval=$with_included_ltdl; |
12736 |
fi |
12737 |
|
12738 |
|
12739 |
if test "x$with_included_ltdl" != xyes; then |
12740 |
# We are not being forced to use the included libltdl sources, so |
12741 |
# decide whether there is a useful installed version we can use. |
12742 |
ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
12743 |
|
12744 |
" |
12745 |
if test "x$ac_cv_header_ltdl_h" = xyes; then : |
12746 |
ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default |
12747 |
#include <ltdl.h> |
12748 |
" |
12749 |
if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : |
12750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 |
12751 |
$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
12752 |
if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : |
12753 |
$as_echo_n "(cached) " >&6 |
12754 |
else |
12755 |
ac_check_lib_save_LIBS=$LIBS |
12756 |
LIBS="-lltdl $LIBS" |
12757 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12758 |
/* end confdefs.h. */ |
12759 |
|
12760 |
/* Override any GCC internal prototype to avoid an error. |
12761 |
Use char because int might match the return type of a GCC |
12762 |
builtin and then its argument prototype would still apply. */ |
12763 |
#ifdef __cplusplus |
12764 |
extern "C" |
12765 |
#endif |
12766 |
char lt_dladvise_preload (); |
12767 |
int |
12768 |
main () |
12769 |
{ |
12770 |
return lt_dladvise_preload (); |
12771 |
; |
12772 |
return 0; |
12773 |
} |
12774 |
_ACEOF |
12775 |
if ac_fn_c_try_link "$LINENO"; then : |
12776 |
ac_cv_lib_ltdl_lt_dladvise_preload=yes |
12777 |
else |
12778 |
ac_cv_lib_ltdl_lt_dladvise_preload=no |
12779 |
fi |
12780 |
rm -f core conftest.err conftest.$ac_objext \ |
12781 |
conftest$ac_exeext conftest.$ac_ext |
12782 |
LIBS=$ac_check_lib_save_LIBS |
12783 |
fi |
12784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
12785 |
$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
12786 |
if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : |
12787 |
with_included_ltdl=no |
12788 |
else |
12789 |
with_included_ltdl=yes |
12790 |
fi |
12791 |
|
12792 |
else |
12793 |
with_included_ltdl=yes |
12794 |
fi |
12795 |
|
12796 |
else |
12797 |
with_included_ltdl=yes |
12798 |
fi |
12799 |
|
12800 |
|
12801 |
fi |
12802 |
|
12803 |
|
12804 |
|
12805 |
|
12806 |
# Check whether --with-ltdl_include was given. |
12807 |
if test "${with_ltdl_include+set}" = set; then : |
12808 |
withval=$with_ltdl_include; |
12809 |
fi |
12810 |
|
12811 |
|
12812 |
if test -n "$with_ltdl_include"; then |
12813 |
if test -f "$with_ltdl_include/ltdl.h"; then : |
12814 |
else |
12815 |
as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
12816 |
fi |
12817 |
else |
12818 |
with_ltdl_include=no |
12819 |
fi |
12820 |
|
12821 |
|
12822 |
# Check whether --with-ltdl_lib was given. |
12823 |
if test "${with_ltdl_lib+set}" = set; then : |
12824 |
withval=$with_ltdl_lib; |
12825 |
fi |
12826 |
|
12827 |
|
12828 |
if test -n "$with_ltdl_lib"; then |
12829 |
if test -f "$with_ltdl_lib/libltdl.la"; then : |
12830 |
else |
12831 |
as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
12832 |
fi |
12833 |
else |
12834 |
with_ltdl_lib=no |
12835 |
fi |
12836 |
|
12837 |
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
12838 |
,yes,no,no,) |
12839 |
case $enable_ltdl_convenience in |
12840 |
no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; |
12841 |
"") enable_ltdl_convenience=yes |
12842 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
12843 |
esac |
12844 |
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
12845 |
LTDLDEPS=$LIBLTDL |
12846 |
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
12847 |
|
12848 |
|
12849 |
|
12850 |
|
12851 |
|
12852 |
# For backwards non-gettext consistent compatibility... |
12853 |
INCLTDL="$LTDLINCL" |
12854 |
|
12855 |
|
12856 |
;; |
12857 |
,no,no,no,) |
12858 |
# If the included ltdl is not to be used, then use the |
12859 |
# preinstalled libltdl we found. |
12860 |
|
12861 |
$as_echo "#define HAVE_LTDL 1" >>confdefs.h |
12862 |
|
12863 |
LIBLTDL=-lltdl |
12864 |
LTDLDEPS= |
12865 |
LTDLINCL= |
12866 |
;; |
12867 |
,no*,no,*) |
12868 |
as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
12869 |
;; |
12870 |
*) with_included_ltdl=no |
12871 |
LIBLTDL="-L$with_ltdl_lib -lltdl" |
12872 |
LTDLDEPS= |
12873 |
LTDLINCL="-I$with_ltdl_include" |
12874 |
;; |
12875 |
esac |
12876 |
INCLTDL="$LTDLINCL" |
12877 |
|
12878 |
# Report our decision... |
12879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
12880 |
$as_echo_n "checking where to find libltdl headers... " >&6; } |
12881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
12882 |
$as_echo "$LTDLINCL" >&6; } |
12883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
12884 |
$as_echo_n "checking where to find libltdl library... " >&6; } |
12885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
12886 |
$as_echo "$LIBLTDL" >&6; } |
12887 |
|
12888 |
|
12889 |
|
12890 |
# Check whether --enable-ltdl-install was given. |
12891 |
if test "${enable_ltdl_install+set}" = set; then : |
12892 |
enableval=$enable_ltdl_install; |
12893 |
fi |
12894 |
|
12895 |
|
12896 |
case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
12897 |
*yes*) ;; |
12898 |
*) enable_ltdl_convenience=yes ;; |
12899 |
esac |
12900 |
|
12901 |
if test x"${enable_ltdl_install-no}" != xno; then |
12902 |
INSTALL_LTDL_TRUE= |
12903 |
INSTALL_LTDL_FALSE='#' |
12904 |
else |
12905 |
INSTALL_LTDL_TRUE='#' |
12906 |
INSTALL_LTDL_FALSE= |
12907 |
fi |
12908 |
|
12909 |
if test x"${enable_ltdl_convenience-no}" != xno; then |
12910 |
CONVENIENCE_LTDL_TRUE= |
12911 |
CONVENIENCE_LTDL_FALSE='#' |
12912 |
else |
12913 |
CONVENIENCE_LTDL_TRUE='#' |
12914 |
CONVENIENCE_LTDL_FALSE= |
12915 |
fi |
12916 |
|
12917 |
|
12918 |
|
12919 |
|
12920 |
|
12921 |
|
12922 |
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
12923 |
# the user used. This is so that ltdl.h can pick up the parent projects |
12924 |
# config.h file, The first file in AC_CONFIG_HEADERS must contain the |
12925 |
# definitions required by ltdl.c. |
12926 |
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
12927 |
|
12928 |
|
12929 |
|
12930 |
for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
12931 |
do : |
12932 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12933 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
12934 |
" |
12935 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
12936 |
cat >>confdefs.h <<_ACEOF |
12937 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12938 |
_ACEOF |
12939 |
|
12940 |
fi |
12941 |
|
12942 |
done |
12943 |
|
12944 |
|
12945 |
for ac_func in closedir opendir readdir |
12946 |
do : |
12947 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12948 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12949 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12950 |
cat >>confdefs.h <<_ACEOF |
12951 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12952 |
_ACEOF |
12953 |
|
12954 |
else |
12955 |
|
12956 |
|
12957 |
_LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
12958 |
|
12959 |
fi |
12960 |
done |
12961 |
|
12962 |
for ac_func in strlcat strlcpy |
12963 |
do : |
12964 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12965 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12966 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12967 |
cat >>confdefs.h <<_ACEOF |
12968 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12969 |
_ACEOF |
12970 |
|
12971 |
else |
12972 |
|
12973 |
|
12974 |
_LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
12975 |
|
12976 |
fi |
12977 |
done |
12978 |
|
12979 |
|
12980 |
|
12981 |
cat >>confdefs.h <<_ACEOF |
12982 |
#define LT_LIBEXT "$libext" |
12983 |
_ACEOF |
12984 |
|
12985 |
|
12986 |
name= |
12987 |
eval "lt_libprefix=\"$libname_spec\"" |
12988 |
|
12989 |
cat >>confdefs.h <<_ACEOF |
12990 |
#define LT_LIBPREFIX "$lt_libprefix" |
12991 |
_ACEOF |
12992 |
|
12993 |
|
12994 |
name=ltdl |
12995 |
eval "LTDLOPEN=\"$libname_spec\"" |
12996 |
|
12997 |
|
12998 |
|
12999 |
|
13000 |
|
13001 |
|
13002 |
|
13003 |
|
13004 |
# Only expand once: |
13005 |
|
13006 |
|
13007 |
LIBTOOL="$LIBTOOL --silent" |
13008 |
|
13009 |
# Checks for libraries. |
13010 |
|
13011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
13012 |
$as_echo_n "checking for library containing socket... " >&6; } |
13013 |
if ${ac_cv_search_socket+:} false; then : |
13014 |
$as_echo_n "(cached) " >&6 |
13015 |
else |
13016 |
ac_func_search_save_LIBS=$LIBS |
13017 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13018 |
/* end confdefs.h. */ |
13019 |
|
13020 |
/* Override any GCC internal prototype to avoid an error. |
13021 |
Use char because int might match the return type of a GCC |
13022 |
builtin and then its argument prototype would still apply. */ |
13023 |
#ifdef __cplusplus |
13024 |
extern "C" |
13025 |
#endif |
13026 |
char socket (); |
13027 |
int |
13028 |
main () |
13029 |
{ |
13030 |
return socket (); |
13031 |
; |
13032 |
return 0; |
13033 |
} |
13034 |
_ACEOF |
13035 |
for ac_lib in '' socket; do |
13036 |
if test -z "$ac_lib"; then |
13037 |
ac_res="none required" |
13038 |
else |
13039 |
ac_res=-l$ac_lib |
13040 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13041 |
fi |
13042 |
if ac_fn_c_try_link "$LINENO"; then : |
13043 |
ac_cv_search_socket=$ac_res |
13044 |
fi |
13045 |
rm -f core conftest.err conftest.$ac_objext \ |
13046 |
conftest$ac_exeext |
13047 |
if ${ac_cv_search_socket+:} false; then : |
13048 |
break |
13049 |
fi |
13050 |
done |
13051 |
if ${ac_cv_search_socket+:} false; then : |
13052 |
|
13053 |
else |
13054 |
ac_cv_search_socket=no |
13055 |
fi |
13056 |
rm conftest.$ac_ext |
13057 |
LIBS=$ac_func_search_save_LIBS |
13058 |
fi |
13059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
13060 |
$as_echo "$ac_cv_search_socket" >&6; } |
13061 |
ac_res=$ac_cv_search_socket |
13062 |
if test "$ac_res" != no; then : |
13063 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13064 |
|
13065 |
else |
13066 |
as_fn_error $? "socket library not found" "$LINENO" 5 |
13067 |
fi |
13068 |
|
13069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
13070 |
$as_echo_n "checking for library containing inet_ntoa... " >&6; } |
13071 |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13072 |
$as_echo_n "(cached) " >&6 |
13073 |
else |
13074 |
ac_func_search_save_LIBS=$LIBS |
13075 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13076 |
/* end confdefs.h. */ |
13077 |
|
13078 |
/* Override any GCC internal prototype to avoid an error. |
13079 |
Use char because int might match the return type of a GCC |
13080 |
builtin and then its argument prototype would still apply. */ |
13081 |
#ifdef __cplusplus |
13082 |
extern "C" |
13083 |
#endif |
13084 |
char inet_ntoa (); |
13085 |
int |
13086 |
main () |
13087 |
{ |
13088 |
return inet_ntoa (); |
13089 |
; |
13090 |
return 0; |
13091 |
} |
13092 |
_ACEOF |
13093 |
for ac_lib in '' nsl; do |
13094 |
if test -z "$ac_lib"; then |
13095 |
ac_res="none required" |
13096 |
else |
13097 |
ac_res=-l$ac_lib |
13098 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13099 |
fi |
13100 |
if ac_fn_c_try_link "$LINENO"; then : |
13101 |
ac_cv_search_inet_ntoa=$ac_res |
13102 |
fi |
13103 |
rm -f core conftest.err conftest.$ac_objext \ |
13104 |
conftest$ac_exeext |
13105 |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13106 |
break |
13107 |
fi |
13108 |
done |
13109 |
if ${ac_cv_search_inet_ntoa+:} false; then : |
13110 |
|
13111 |
else |
13112 |
ac_cv_search_inet_ntoa=no |
13113 |
fi |
13114 |
rm conftest.$ac_ext |
13115 |
LIBS=$ac_func_search_save_LIBS |
13116 |
fi |
13117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
13118 |
$as_echo "$ac_cv_search_inet_ntoa" >&6; } |
13119 |
ac_res=$ac_cv_search_inet_ntoa |
13120 |
if test "$ac_res" != no; then : |
13121 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13122 |
|
13123 |
fi |
13124 |
|
13125 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
13126 |
$as_echo_n "checking for library containing inet_aton... " >&6; } |
13127 |
if ${ac_cv_search_inet_aton+:} false; then : |
13128 |
$as_echo_n "(cached) " >&6 |
13129 |
else |
13130 |
ac_func_search_save_LIBS=$LIBS |
13131 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13132 |
/* end confdefs.h. */ |
13133 |
|
13134 |
/* Override any GCC internal prototype to avoid an error. |
13135 |
Use char because int might match the return type of a GCC |
13136 |
builtin and then its argument prototype would still apply. */ |
13137 |
#ifdef __cplusplus |
13138 |
extern "C" |
13139 |
#endif |
13140 |
char inet_aton (); |
13141 |
int |
13142 |
main () |
13143 |
{ |
13144 |
return inet_aton (); |
13145 |
; |
13146 |
return 0; |
13147 |
} |
13148 |
_ACEOF |
13149 |
for ac_lib in '' resolv; do |
13150 |
if test -z "$ac_lib"; then |
13151 |
ac_res="none required" |
13152 |
else |
13153 |
ac_res=-l$ac_lib |
13154 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13155 |
fi |
13156 |
if ac_fn_c_try_link "$LINENO"; then : |
13157 |
ac_cv_search_inet_aton=$ac_res |
13158 |
fi |
13159 |
rm -f core conftest.err conftest.$ac_objext \ |
13160 |
conftest$ac_exeext |
13161 |
if ${ac_cv_search_inet_aton+:} false; then : |
13162 |
break |
13163 |
fi |
13164 |
done |
13165 |
if ${ac_cv_search_inet_aton+:} false; then : |
13166 |
|
13167 |
else |
13168 |
ac_cv_search_inet_aton=no |
13169 |
fi |
13170 |
rm conftest.$ac_ext |
13171 |
LIBS=$ac_func_search_save_LIBS |
13172 |
fi |
13173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
13174 |
$as_echo "$ac_cv_search_inet_aton" >&6; } |
13175 |
ac_res=$ac_cv_search_inet_aton |
13176 |
if test "$ac_res" != no; then : |
13177 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13178 |
|
13179 |
fi |
13180 |
|
13181 |
for ac_func in inet_aton inet_ntop inet_pton |
13182 |
do : |
13183 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13184 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
13185 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
13186 |
cat >>confdefs.h <<_ACEOF |
13187 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13188 |
_ACEOF |
13189 |
|
13190 |
fi |
13191 |
done |
13192 |
|
13193 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
13194 |
#include <sys/socket.h> |
13195 |
#include <netdb.h> |
13196 |
|
13197 |
" |
13198 |
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : |
13199 |
|
13200 |
cat >>confdefs.h <<_ACEOF |
13201 |
#define HAVE_STRUCT_SOCKADDR_IN 1 |
13202 |
_ACEOF |
13203 |
|
13204 |
|
13205 |
fi |
13206 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> |
13207 |
#include <sys/socket.h> |
13208 |
#include <netdb.h> |
13209 |
|
13210 |
" |
13211 |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
13212 |
|
13213 |
cat >>confdefs.h <<_ACEOF |
13214 |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
13215 |
_ACEOF |
13216 |
|
13217 |
|
13218 |
fi |
13219 |
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> |
13220 |
#include <sys/socket.h> |
13221 |
#include <netdb.h> |
13222 |
|
13223 |
" |
13224 |
if test "x$ac_cv_type_struct_addrinfo" = xyes; then : |
13225 |
|
13226 |
cat >>confdefs.h <<_ACEOF |
13227 |
#define HAVE_STRUCT_ADDRINFO 1 |
13228 |
_ACEOF |
13229 |
|
13230 |
|
13231 |
fi |
13232 |
|
13233 |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
13234 |
<sys/socket.h> |
13235 |
" |
13236 |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
13237 |
|
13238 |
cat >>confdefs.h <<_ACEOF |
13239 |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
13240 |
_ACEOF |
13241 |
|
13242 |
|
13243 |
fi |
13244 |
|
13245 |
|
13246 |
|
13247 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
13248 |
" |
13249 |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
13250 |
|
13251 |
$as_echo "#define IPV6 1" >>confdefs.h |
13252 |
|
13253 |
fi |
13254 |
|
13255 |
|
13256 |
|
13257 |
# Checks for typedefs, structures, and compiler characteristics. |
13258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
13259 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
13260 |
if ${ac_cv_c_bigendian+:} false; then : |
13261 |
$as_echo_n "(cached) " >&6 |
13262 |
else |
13263 |
ac_cv_c_bigendian=unknown |
13264 |
# See if we're dealing with a universal compiler. |
13265 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13266 |
/* end confdefs.h. */ |
13267 |
#ifndef __APPLE_CC__ |
13268 |
not a universal capable compiler |
13269 |
#endif |
13270 |
typedef int dummy; |
13271 |
|
13272 |
_ACEOF |
13273 |
if ac_fn_c_try_compile "$LINENO"; then : |
13274 |
|
13275 |
# Check for potential -arch flags. It is not universal unless |
13276 |
# there are at least two -arch flags with different values. |
13277 |
ac_arch= |
13278 |
ac_prev= |
13279 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
13280 |
if test -n "$ac_prev"; then |
13281 |
case $ac_word in |
13282 |
i?86 | x86_64 | ppc | ppc64) |
13283 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
13284 |
ac_arch=$ac_word |
13285 |
else |
13286 |
ac_cv_c_bigendian=universal |
13287 |
break |
13288 |
fi |
13289 |
;; |
13290 |
esac |
13291 |
ac_prev= |
13292 |
elif test "x$ac_word" = "x-arch"; then |
13293 |
ac_prev=arch |
13294 |
fi |
13295 |
done |
13296 |
fi |
13297 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13298 |
if test $ac_cv_c_bigendian = unknown; then |
13299 |
# See if sys/param.h defines the BYTE_ORDER macro. |
13300 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13301 |
/* end confdefs.h. */ |
13302 |
#include <sys/types.h> |
13303 |
#include <sys/param.h> |
13304 |
|
13305 |
int |
13306 |
main () |
13307 |
{ |
13308 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
13309 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
13310 |
&& LITTLE_ENDIAN) |
13311 |
bogus endian macros |
13312 |
#endif |
13313 |
|
13314 |
; |
13315 |
return 0; |
13316 |
} |
13317 |
_ACEOF |
13318 |
if ac_fn_c_try_compile "$LINENO"; then : |
13319 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
13320 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13321 |
/* end confdefs.h. */ |
13322 |
#include <sys/types.h> |
13323 |
#include <sys/param.h> |
13324 |
|
13325 |
int |
13326 |
main () |
13327 |
{ |
13328 |
#if BYTE_ORDER != BIG_ENDIAN |
13329 |
not big endian |
13330 |
#endif |
13331 |
|
13332 |
; |
13333 |
return 0; |
13334 |
} |
13335 |
_ACEOF |
13336 |
if ac_fn_c_try_compile "$LINENO"; then : |
13337 |
ac_cv_c_bigendian=yes |
13338 |
else |
13339 |
ac_cv_c_bigendian=no |
13340 |
fi |
13341 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13342 |
fi |
13343 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13344 |
fi |
13345 |
if test $ac_cv_c_bigendian = unknown; then |
13346 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
13347 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13348 |
/* end confdefs.h. */ |
13349 |
#include <limits.h> |
13350 |
|
13351 |
int |
13352 |
main () |
13353 |
{ |
13354 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
13355 |
bogus endian macros |
13356 |
#endif |
13357 |
|
13358 |
; |
13359 |
return 0; |
13360 |
} |
13361 |
_ACEOF |
13362 |
if ac_fn_c_try_compile "$LINENO"; then : |
13363 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
13364 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13365 |
/* end confdefs.h. */ |
13366 |
#include <limits.h> |
13367 |
|
13368 |
int |
13369 |
main () |
13370 |
{ |
13371 |
#ifndef _BIG_ENDIAN |
13372 |
not big endian |
13373 |
#endif |
13374 |
|
13375 |
; |
13376 |
return 0; |
13377 |
} |
13378 |
_ACEOF |
13379 |
if ac_fn_c_try_compile "$LINENO"; then : |
13380 |
ac_cv_c_bigendian=yes |
13381 |
else |
13382 |
ac_cv_c_bigendian=no |
13383 |
fi |
13384 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13385 |
fi |
13386 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13387 |
fi |
13388 |
if test $ac_cv_c_bigendian = unknown; then |
13389 |
# Compile a test program. |
13390 |
if test "$cross_compiling" = yes; then : |
13391 |
# Try to guess by grepping values from an object file. |
13392 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13393 |
/* end confdefs.h. */ |
13394 |
short int ascii_mm[] = |
13395 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
13396 |
short int ascii_ii[] = |
13397 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
13398 |
int use_ascii (int i) { |
13399 |
return ascii_mm[i] + ascii_ii[i]; |
13400 |
} |
13401 |
short int ebcdic_ii[] = |
13402 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
13403 |
short int ebcdic_mm[] = |
13404 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
13405 |
int use_ebcdic (int i) { |
13406 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
13407 |
} |
13408 |
extern int foo; |
13409 |
|
13410 |
int |
13411 |
main () |
13412 |
{ |
13413 |
return use_ascii (foo) == use_ebcdic (foo); |
13414 |
; |
13415 |
return 0; |
13416 |
} |
13417 |
_ACEOF |
13418 |
if ac_fn_c_try_compile "$LINENO"; then : |
13419 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
13420 |
ac_cv_c_bigendian=yes |
13421 |
fi |
13422 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
13423 |
if test "$ac_cv_c_bigendian" = unknown; then |
13424 |
ac_cv_c_bigendian=no |
13425 |
else |
13426 |
# finding both strings is unlikely to happen, but who knows? |
13427 |
ac_cv_c_bigendian=unknown |
13428 |
fi |
13429 |
fi |
13430 |
fi |
13431 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13432 |
else |
13433 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13434 |
/* end confdefs.h. */ |
13435 |
$ac_includes_default |
13436 |
int |
13437 |
main () |
13438 |
{ |
13439 |
|
13440 |
/* Are we little or big endian? From Harbison&Steele. */ |
13441 |
union |
13442 |
{ |
13443 |
long int l; |
13444 |
char c[sizeof (long int)]; |
13445 |
} u; |
13446 |
u.l = 1; |
13447 |
return u.c[sizeof (long int) - 1] == 1; |
13448 |
|
13449 |
; |
13450 |
return 0; |
13451 |
} |
13452 |
_ACEOF |
13453 |
if ac_fn_c_try_run "$LINENO"; then : |
13454 |
ac_cv_c_bigendian=no |
13455 |
else |
13456 |
ac_cv_c_bigendian=yes |
13457 |
fi |
13458 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13459 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
13460 |
fi |
13461 |
|
13462 |
fi |
13463 |
fi |
13464 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
13465 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
13466 |
case $ac_cv_c_bigendian in #( |
13467 |
yes) |
13468 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
13469 |
;; #( |
13470 |
no) |
13471 |
;; #( |
13472 |
universal) |
13473 |
|
13474 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
13475 |
|
13476 |
;; #( |
13477 |
*) |
13478 |
as_fn_error $? "unknown endianness |
13479 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
13480 |
esac |
13481 |
|
13482 |
|
13483 |
# Checks for library functions. |
13484 |
|
13485 |
|
13486 |
|
13487 |
for ac_func in $ac_func_list |
13488 |
do : |
13489 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13490 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
13491 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
13492 |
cat >>confdefs.h <<_ACEOF |
13493 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13494 |
_ACEOF |
13495 |
|
13496 |
fi |
13497 |
done |
13498 |
|
13499 |
|
13500 |
|
13501 |
|
13502 |
|
13503 |
|
13504 |
|
13505 |
|
13506 |
|
13507 |
|
13508 |
|
13509 |
|
13510 |
|
13511 |
|
13512 |
|
13513 |
# Checks for header files. |
13514 |
|
13515 |
|
13516 |
|
13517 |
for ac_header in $ac_header_list |
13518 |
do : |
13519 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13520 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
13521 |
" |
13522 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
13523 |
cat >>confdefs.h <<_ACEOF |
13524 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13525 |
_ACEOF |
13526 |
|
13527 |
fi |
13528 |
|
13529 |
done |
13530 |
|
13531 |
|
13532 |
|
13533 |
|
13534 |
|
13535 |
|
13536 |
|
13537 |
|
13538 |
|
13539 |
|
13540 |
|
13541 |
|
13542 |
|
13543 |
|
13544 |
|
13545 |
|
13546 |
|
13547 |
|
13548 |
|
13549 |
|
13550 |
|
13551 |
|
13552 |
|
13553 |
|
13554 |
|
13555 |
|
13556 |
|
13557 |
# check for /dev/null so we can use it to hold evil fd's |
13558 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 |
13559 |
$as_echo_n "checking for /dev/null... " >&6; } |
13560 |
if test -c /dev/null; then : |
13561 |
|
13562 |
|
13563 |
$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h |
13564 |
|
13565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13566 |
$as_echo "yes" >&6; } |
13567 |
else |
13568 |
|
13569 |
|
13570 |
$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
13571 |
|
13572 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 |
13573 |
$as_echo "no - using devnull.log" >&6; } |
13574 |
fi |
13575 |
|
13576 |
|
13577 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
13578 |
$as_echo_n "checking for library containing crypt... " >&6; } |
13579 |
if ${ac_cv_search_crypt+:} false; then : |
13580 |
$as_echo_n "(cached) " >&6 |
13581 |
else |
13582 |
ac_func_search_save_LIBS=$LIBS |
13583 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13584 |
/* end confdefs.h. */ |
13585 |
|
13586 |
/* Override any GCC internal prototype to avoid an error. |
13587 |
Use char because int might match the return type of a GCC |
13588 |
builtin and then its argument prototype would still apply. */ |
13589 |
#ifdef __cplusplus |
13590 |
extern "C" |
13591 |
#endif |
13592 |
char crypt (); |
13593 |
int |
13594 |
main () |
13595 |
{ |
13596 |
return crypt (); |
13597 |
; |
13598 |
return 0; |
13599 |
} |
13600 |
_ACEOF |
13601 |
for ac_lib in '' crypt; do |
13602 |
if test -z "$ac_lib"; then |
13603 |
ac_res="none required" |
13604 |
else |
13605 |
ac_res=-l$ac_lib |
13606 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13607 |
fi |
13608 |
if ac_fn_c_try_link "$LINENO"; then : |
13609 |
ac_cv_search_crypt=$ac_res |
13610 |
fi |
13611 |
rm -f core conftest.err conftest.$ac_objext \ |
13612 |
conftest$ac_exeext |
13613 |
if ${ac_cv_search_crypt+:} false; then : |
13614 |
break |
13615 |
fi |
13616 |
done |
13617 |
if ${ac_cv_search_crypt+:} false; then : |
13618 |
|
13619 |
else |
13620 |
ac_cv_search_crypt=no |
13621 |
fi |
13622 |
rm conftest.$ac_ext |
13623 |
LIBS=$ac_func_search_save_LIBS |
13624 |
fi |
13625 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
13626 |
$as_echo "$ac_cv_search_crypt" >&6; } |
13627 |
ac_res=$ac_cv_search_crypt |
13628 |
if test "$ac_res" != no; then : |
13629 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13630 |
|
13631 |
fi |
13632 |
|
13633 |
|
13634 |
|
13635 |
|
13636 |
# Check whether --with-libpcre-path was given. |
13637 |
if test "${with_libpcre_path+set}" = set; then : |
13638 |
withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS" |
13639 |
fi |
13640 |
|
13641 |
|
13642 |
# Check whether --enable-libpcre was given. |
13643 |
if test "${enable_libpcre+set}" = set; then : |
13644 |
enableval=$enable_libpcre; libpcre=$enableval |
13645 |
else |
13646 |
libpcre=yes |
13647 |
fi |
13648 |
|
13649 |
|
13650 |
if test "$libpcre" = "yes"; then : |
13651 |
|
13652 |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
13653 |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
13654 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5 |
13655 |
$as_echo_n "checking for pcre_study in -lpcre... " >&6; } |
13656 |
if ${ac_cv_lib_pcre_pcre_study+:} false; then : |
13657 |
$as_echo_n "(cached) " >&6 |
13658 |
else |
13659 |
ac_check_lib_save_LIBS=$LIBS |
13660 |
LIBS="-lpcre $LIBS" |
13661 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13662 |
/* end confdefs.h. */ |
13663 |
|
13664 |
/* Override any GCC internal prototype to avoid an error. |
13665 |
Use char because int might match the return type of a GCC |
13666 |
builtin and then its argument prototype would still apply. */ |
13667 |
#ifdef __cplusplus |
13668 |
extern "C" |
13669 |
#endif |
13670 |
char pcre_study (); |
13671 |
int |
13672 |
main () |
13673 |
{ |
13674 |
return pcre_study (); |
13675 |
; |
13676 |
return 0; |
13677 |
} |
13678 |
_ACEOF |
13679 |
if ac_fn_c_try_link "$LINENO"; then : |
13680 |
ac_cv_lib_pcre_pcre_study=yes |
13681 |
else |
13682 |
ac_cv_lib_pcre_pcre_study=no |
13683 |
fi |
13684 |
rm -f core conftest.err conftest.$ac_objext \ |
13685 |
conftest$ac_exeext conftest.$ac_ext |
13686 |
LIBS=$ac_check_lib_save_LIBS |
13687 |
fi |
13688 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5 |
13689 |
$as_echo "$ac_cv_lib_pcre_pcre_study" >&6; } |
13690 |
if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then : |
13691 |
|
13692 |
LIBS="-lpcre $LIBS" |
13693 |
|
13694 |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
13695 |
|
13696 |
|
13697 |
else |
13698 |
libpcre=no |
13699 |
fi |
13700 |
|
13701 |
|
13702 |
else |
13703 |
libpcre=no |
13704 |
fi |
13705 |
|
13706 |
|
13707 |
|
13708 |
fi |
13709 |
if test "$libpcre" = yes; then |
13710 |
ENABLE_PCRE_TRUE= |
13711 |
ENABLE_PCRE_FALSE='#' |
13712 |
else |
13713 |
ENABLE_PCRE_TRUE='#' |
13714 |
ENABLE_PCRE_FALSE= |
13715 |
fi |
13716 |
|
13717 |
|
13718 |
|
13719 |
# Check whether --enable-openssl was given. |
13720 |
if test "${enable_openssl+set}" = set; then : |
13721 |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
13722 |
else |
13723 |
cf_enable_openssl="auto" |
13724 |
fi |
13725 |
|
13726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
13727 |
$as_echo_n "checking for OpenSSL... " >&6; } |
13728 |
if test "$cf_enable_openssl" != "no"; then |
13729 |
cf_openssl_basedir="" |
13730 |
if test "$cf_enable_openssl" != "auto" && |
13731 |
test "$cf_enable_openssl" != "yes"; then |
13732 |
cf_openssl_basedir="${cf_enable_openssl}" |
13733 |
else |
13734 |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
13735 |
/opt /opt/openssl /usr/local/openssl; do |
13736 |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
13737 |
cf_openssl_basedir="${dirs}" |
13738 |
break |
13739 |
fi |
13740 |
done |
13741 |
unset dirs |
13742 |
fi |
13743 |
|
13744 |
if test ! -z "$cf_openssl_basedir"; then |
13745 |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
13746 |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
13747 |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
13748 |
else |
13749 |
cf_openssl_basedir="" |
13750 |
fi |
13751 |
else |
13752 |
if test -f "/usr/include/openssl/opensslv.h"; then |
13753 |
cf_openssl_basedir="/usr" |
13754 |
fi |
13755 |
fi |
13756 |
|
13757 |
if test ! -z "$cf_openssl_basedir"; then |
13758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
13759 |
$as_echo "$cf_openssl_basedir" >&6; } |
13760 |
cf_enable_openssl="yes" |
13761 |
else |
13762 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
13763 |
$as_echo "not found. Please check your path." >&6; } |
13764 |
cf_enable_openssl="no" |
13765 |
fi |
13766 |
unset cf_openssl_basedir |
13767 |
else |
13768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
13769 |
$as_echo "disabled" >&6; } |
13770 |
fi |
13771 |
|
13772 |
if test "$cf_enable_openssl" != "no"; then : |
13773 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
13774 |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
13775 |
if test "$cross_compiling" = yes; then : |
13776 |
cf_openssl_version_ok=no |
13777 |
else |
13778 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13779 |
/* end confdefs.h. */ |
13780 |
|
13781 |
|
13782 |
#include <openssl/opensslv.h> |
13783 |
#include <stdlib.h> |
13784 |
int |
13785 |
main () |
13786 |
{ |
13787 |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
13788 |
; |
13789 |
return 0; |
13790 |
} |
13791 |
_ACEOF |
13792 |
if ac_fn_c_try_run "$LINENO"; then : |
13793 |
cf_openssl_version_ok=yes |
13794 |
else |
13795 |
cf_openssl_version_ok=no |
13796 |
fi |
13797 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13798 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
13799 |
fi |
13800 |
|
13801 |
|
13802 |
if test "$cf_openssl_version_ok" = "yes"; then : |
13803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
13804 |
$as_echo "found" >&6; } |
13805 |
|
13806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
13807 |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
13808 |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
13809 |
$as_echo_n "(cached) " >&6 |
13810 |
else |
13811 |
ac_check_lib_save_LIBS=$LIBS |
13812 |
LIBS="-lssl $LIBS" |
13813 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13814 |
/* end confdefs.h. */ |
13815 |
|
13816 |
/* Override any GCC internal prototype to avoid an error. |
13817 |
Use char because int might match the return type of a GCC |
13818 |
builtin and then its argument prototype would still apply. */ |
13819 |
#ifdef __cplusplus |
13820 |
extern "C" |
13821 |
#endif |
13822 |
char SSL_connect (); |
13823 |
int |
13824 |
main () |
13825 |
{ |
13826 |
return SSL_connect (); |
13827 |
; |
13828 |
return 0; |
13829 |
} |
13830 |
_ACEOF |
13831 |
if ac_fn_c_try_link "$LINENO"; then : |
13832 |
ac_cv_lib_ssl_SSL_connect=yes |
13833 |
else |
13834 |
ac_cv_lib_ssl_SSL_connect=no |
13835 |
fi |
13836 |
rm -f core conftest.err conftest.$ac_objext \ |
13837 |
conftest$ac_exeext conftest.$ac_ext |
13838 |
LIBS=$ac_check_lib_save_LIBS |
13839 |
fi |
13840 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
13841 |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
13842 |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
13843 |
cat >>confdefs.h <<_ACEOF |
13844 |
#define HAVE_LIBSSL 1 |
13845 |
_ACEOF |
13846 |
|
13847 |
LIBS="-lssl $LIBS" |
13848 |
|
13849 |
fi |
13850 |
|
13851 |
if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then : |
13852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
13853 |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
13854 |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
13855 |
$as_echo_n "(cached) " >&6 |
13856 |
else |
13857 |
ac_check_lib_save_LIBS=$LIBS |
13858 |
LIBS="-lcrypto $LIBS" |
13859 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13860 |
/* end confdefs.h. */ |
13861 |
|
13862 |
/* Override any GCC internal prototype to avoid an error. |
13863 |
Use char because int might match the return type of a GCC |
13864 |
builtin and then its argument prototype would still apply. */ |
13865 |
#ifdef __cplusplus |
13866 |
extern "C" |
13867 |
#endif |
13868 |
char RSA_free (); |
13869 |
int |
13870 |
main () |
13871 |
{ |
13872 |
return RSA_free (); |
13873 |
; |
13874 |
return 0; |
13875 |
} |
13876 |
_ACEOF |
13877 |
if ac_fn_c_try_link "$LINENO"; then : |
13878 |
ac_cv_lib_crypto_RSA_free=yes |
13879 |
else |
13880 |
ac_cv_lib_crypto_RSA_free=no |
13881 |
fi |
13882 |
rm -f core conftest.err conftest.$ac_objext \ |
13883 |
conftest$ac_exeext conftest.$ac_ext |
13884 |
LIBS=$ac_check_lib_save_LIBS |
13885 |
fi |
13886 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
13887 |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
13888 |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
13889 |
cat >>confdefs.h <<_ACEOF |
13890 |
#define HAVE_LIBCRYPTO 1 |
13891 |
_ACEOF |
13892 |
|
13893 |
LIBS="-lcrypto $LIBS" |
13894 |
|
13895 |
fi |
13896 |
|
13897 |
fi |
13898 |
|
13899 |
else |
13900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
13901 |
$as_echo "no - OpenSSL support disabled" >&6; } |
13902 |
cf_enable_openssl="no" |
13903 |
fi |
13904 |
fi |
13905 |
|
13906 |
if test "$ac_cv_lib_crypto_RSA_free" = yes; then |
13907 |
ENABLE_SSL_TRUE= |
13908 |
ENABLE_SSL_FALSE='#' |
13909 |
else |
13910 |
ENABLE_SSL_TRUE='#' |
13911 |
ENABLE_SSL_FALSE= |
13912 |
fi |
13913 |
|
13914 |
|
13915 |
|
13916 |
# Check whether --enable-assert was given. |
13917 |
if test "${enable_assert+set}" = set; then : |
13918 |
enableval=$enable_assert; assert=$enableval |
13919 |
else |
13920 |
assert=no |
13921 |
fi |
13922 |
|
13923 |
|
13924 |
if test "$assert" = "no"; then : |
13925 |
|
13926 |
$as_echo "#define NDEBUG 1" >>confdefs.h |
13927 |
|
13928 |
fi |
13929 |
|
13930 |
|
13931 |
# Check whether --enable-small-net was given. |
13932 |
if test "${enable_small_net+set}" = set; then : |
13933 |
enableval=$enable_small_net; small_net=$enableval |
13934 |
else |
13935 |
small_net=no |
13936 |
fi |
13937 |
|
13938 |
|
13939 |
if test "$small_net" = "yes"; then : |
13940 |
|
13941 |
|
13942 |
$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
13943 |
|
13944 |
|
13945 |
$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
13946 |
|
13947 |
|
13948 |
$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
13949 |
|
13950 |
|
13951 |
$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
13952 |
|
13953 |
|
13954 |
$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
13955 |
|
13956 |
|
13957 |
$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
13958 |
|
13959 |
|
13960 |
$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
13961 |
|
13962 |
|
13963 |
$as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h |
13964 |
|
13965 |
|
13966 |
$as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h |
13967 |
|
13968 |
|
13969 |
$as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h |
13970 |
|
13971 |
else |
13972 |
|
13973 |
|
13974 |
|
13975 |
$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
13976 |
|
13977 |
|
13978 |
$as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h |
13979 |
|
13980 |
|
13981 |
$as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h |
13982 |
|
13983 |
|
13984 |
$as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h |
13985 |
|
13986 |
|
13987 |
$as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h |
13988 |
|
13989 |
|
13990 |
$as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h |
13991 |
|
13992 |
|
13993 |
$as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h |
13994 |
|
13995 |
|
13996 |
$as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h |
13997 |
|
13998 |
|
13999 |
$as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h |
14000 |
|
14001 |
|
14002 |
$as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h |
14003 |
|
14004 |
fi |
14005 |
|
14006 |
|
14007 |
# Argument processing. |
14008 |
|
14009 |
desired_iopoll_mechanism="none" |
14010 |
# Check whether --enable-kqueue was given. |
14011 |
if test "${enable_kqueue+set}" = set; then : |
14012 |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
14013 |
fi |
14014 |
|
14015 |
# Check whether --enable-epoll was given. |
14016 |
if test "${enable_epoll+set}" = set; then : |
14017 |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
14018 |
fi |
14019 |
|
14020 |
# Check whether --enable-devpoll was given. |
14021 |
if test "${enable_devpoll+set}" = set; then : |
14022 |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
14023 |
fi |
14024 |
|
14025 |
# Check whether --enable-rtsigio was given. |
14026 |
if test "${enable_rtsigio+set}" = set; then : |
14027 |
enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio" |
14028 |
fi |
14029 |
|
14030 |
# Check whether --enable-poll was given. |
14031 |
if test "${enable_poll+set}" = set; then : |
14032 |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
14033 |
fi |
14034 |
|
14035 |
# Check whether --enable-select was given. |
14036 |
if test "${enable_select+set}" = set; then : |
14037 |
enableval=$enable_select; desired_iopoll_mechanism="select" |
14038 |
fi |
14039 |
|
14040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
14041 |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
14042 |
iopoll_mechanism_none=0 |
14043 |
|
14044 |
cat >>confdefs.h <<_ACEOF |
14045 |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
14046 |
_ACEOF |
14047 |
|
14048 |
iopoll_mechanism_kqueue=1 |
14049 |
|
14050 |
cat >>confdefs.h <<_ACEOF |
14051 |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
14052 |
_ACEOF |
14053 |
|
14054 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14055 |
/* end confdefs.h. */ |
14056 |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
14057 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14058 |
#define kevent innocuous_kevent |
14059 |
|
14060 |
/* System header to define __stub macros and hopefully few prototypes, |
14061 |
which can conflict with char kevent (); below. |
14062 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14063 |
<limits.h> exists even on freestanding compilers. */ |
14064 |
|
14065 |
#ifdef __STDC__ |
14066 |
# include <limits.h> |
14067 |
#else |
14068 |
# include <assert.h> |
14069 |
#endif |
14070 |
|
14071 |
#undef kevent |
14072 |
|
14073 |
/* Override any GCC internal prototype to avoid an error. |
14074 |
Use char because int might match the return type of a GCC |
14075 |
builtin and then its argument prototype would still apply. */ |
14076 |
#ifdef __cplusplus |
14077 |
extern "C" |
14078 |
#endif |
14079 |
char kevent (); |
14080 |
/* The GNU C library defines this for functions which it implements |
14081 |
to always fail with ENOSYS. Some functions are actually named |
14082 |
something starting with __ and the normal name is an alias. */ |
14083 |
#if defined __stub_kevent || defined __stub___kevent |
14084 |
choke me |
14085 |
#endif |
14086 |
|
14087 |
int |
14088 |
main () |
14089 |
{ |
14090 |
return kevent (); |
14091 |
; |
14092 |
return 0; |
14093 |
} |
14094 |
_ACEOF |
14095 |
if ac_fn_c_try_link "$LINENO"; then : |
14096 |
is_kqueue_mechanism_available="yes" |
14097 |
else |
14098 |
is_kqueue_mechanism_available="no" |
14099 |
fi |
14100 |
rm -f core conftest.err conftest.$ac_objext \ |
14101 |
conftest$ac_exeext conftest.$ac_ext |
14102 |
iopoll_mechanism_epoll=2 |
14103 |
|
14104 |
cat >>confdefs.h <<_ACEOF |
14105 |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
14106 |
_ACEOF |
14107 |
|
14108 |
if test "$cross_compiling" = yes; then : |
14109 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
14110 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
14111 |
as_fn_error $? "cannot run test program while cross compiling |
14112 |
See \`config.log' for more details" "$LINENO" 5; } |
14113 |
else |
14114 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14115 |
/* end confdefs.h. */ |
14116 |
|
14117 |
#include <sys/epoll.h> |
14118 |
#include <sys/syscall.h> |
14119 |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
14120 |
#if !defined(__NR_epoll_create) |
14121 |
#if defined(__ia64__) |
14122 |
#define __NR_epoll_create 1243 |
14123 |
#elif defined(__x86_64__) |
14124 |
#define __NR_epoll_create 214 |
14125 |
#elif defined(__sparc64__) || defined(__sparc__) |
14126 |
#define __NR_epoll_create 193 |
14127 |
#elif defined(__s390__) || defined(__m68k__) |
14128 |
#define __NR_epoll_create 249 |
14129 |
#elif defined(__ppc64__) || defined(__ppc__) |
14130 |
#define __NR_epoll_create 236 |
14131 |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
14132 |
#define __NR_epoll_create 224 |
14133 |
#elif defined(__alpha__) |
14134 |
#define __NR_epoll_create 407 |
14135 |
#elif defined(__sh64__) |
14136 |
#define __NR_epoll_create 282 |
14137 |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
14138 |
#define __NR_epoll_create 254 |
14139 |
#else |
14140 |
#error No system call numbers defined for epoll family. |
14141 |
#endif |
14142 |
#endif |
14143 |
_syscall1(int, epoll_create, int, size) |
14144 |
#endif |
14145 |
|
14146 |
int |
14147 |
main () |
14148 |
{ |
14149 |
return epoll_create(256) == -1 ? 1 : 0 |
14150 |
; |
14151 |
return 0; |
14152 |
} |
14153 |
_ACEOF |
14154 |
if ac_fn_c_try_run "$LINENO"; then : |
14155 |
is_epoll_mechanism_available="yes" |
14156 |
else |
14157 |
is_epoll_mechanism_available="no" |
14158 |
fi |
14159 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14160 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
14161 |
fi |
14162 |
|
14163 |
iopoll_mechanism_devpoll=3 |
14164 |
|
14165 |
cat >>confdefs.h <<_ACEOF |
14166 |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
14167 |
_ACEOF |
14168 |
|
14169 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14170 |
/* end confdefs.h. */ |
14171 |
#include <devpoll.h> |
14172 |
int |
14173 |
main () |
14174 |
{ |
14175 |
|
14176 |
; |
14177 |
return 0; |
14178 |
} |
14179 |
_ACEOF |
14180 |
if ac_fn_c_try_compile "$LINENO"; then : |
14181 |
is_devpoll_mechanism_available="yes" |
14182 |
else |
14183 |
is_devpoll_mechanism_available="no" |
14184 |
fi |
14185 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14186 |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
14187 |
|
14188 |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
14189 |
|
14190 |
fi |
14191 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14192 |
/* end confdefs.h. */ |
14193 |
#include <sys/devpoll.h> |
14194 |
int |
14195 |
main () |
14196 |
{ |
14197 |
|
14198 |
; |
14199 |
return 0; |
14200 |
} |
14201 |
_ACEOF |
14202 |
if ac_fn_c_try_compile "$LINENO"; then : |
14203 |
is_devpoll_mechanism_available="yes" |
14204 |
else |
14205 |
is_devpoll_mechanism_available="no" |
14206 |
fi |
14207 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14208 |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
14209 |
|
14210 |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
14211 |
|
14212 |
fi |
14213 |
iopoll_mechanism_rtsigio=4 |
14214 |
|
14215 |
cat >>confdefs.h <<_ACEOF |
14216 |
#define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio |
14217 |
_ACEOF |
14218 |
|
14219 |
if test "$cross_compiling" = yes; then : |
14220 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
14221 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
14222 |
as_fn_error $? "cannot run test program while cross compiling |
14223 |
See \`config.log' for more details" "$LINENO" 5; } |
14224 |
else |
14225 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14226 |
/* end confdefs.h. */ |
14227 |
|
14228 |
#define _GNU_SOURCE |
14229 |
#include <fcntl.h> |
14230 |
static unsigned int have_f_setsig = 0; |
14231 |
|
14232 |
int |
14233 |
main () |
14234 |
{ |
14235 |
|
14236 |
#ifdef F_SETSIG |
14237 |
have_f_setsig = 1; |
14238 |
#endif |
14239 |
return have_f_setsig == 0; |
14240 |
|
14241 |
; |
14242 |
return 0; |
14243 |
} |
14244 |
_ACEOF |
14245 |
if ac_fn_c_try_run "$LINENO"; then : |
14246 |
is_rtsigio_mechanism_available="yes" |
14247 |
else |
14248 |
is_rtsigio_mechanism_available="no" |
14249 |
fi |
14250 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14251 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
14252 |
fi |
14253 |
|
14254 |
iopoll_mechanism_poll=5 |
14255 |
|
14256 |
cat >>confdefs.h <<_ACEOF |
14257 |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
14258 |
_ACEOF |
14259 |
|
14260 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14261 |
/* end confdefs.h. */ |
14262 |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
14263 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14264 |
#define poll innocuous_poll |
14265 |
|
14266 |
/* System header to define __stub macros and hopefully few prototypes, |
14267 |
which can conflict with char poll (); below. |
14268 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14269 |
<limits.h> exists even on freestanding compilers. */ |
14270 |
|
14271 |
#ifdef __STDC__ |
14272 |
# include <limits.h> |
14273 |
#else |
14274 |
# include <assert.h> |
14275 |
#endif |
14276 |
|
14277 |
#undef poll |
14278 |
|
14279 |
/* Override any GCC internal prototype to avoid an error. |
14280 |
Use char because int might match the return type of a GCC |
14281 |
builtin and then its argument prototype would still apply. */ |
14282 |
#ifdef __cplusplus |
14283 |
extern "C" |
14284 |
#endif |
14285 |
char poll (); |
14286 |
/* The GNU C library defines this for functions which it implements |
14287 |
to always fail with ENOSYS. Some functions are actually named |
14288 |
something starting with __ and the normal name is an alias. */ |
14289 |
#if defined __stub_poll || defined __stub___poll |
14290 |
choke me |
14291 |
#endif |
14292 |
|
14293 |
int |
14294 |
main () |
14295 |
{ |
14296 |
return poll (); |
14297 |
; |
14298 |
return 0; |
14299 |
} |
14300 |
_ACEOF |
14301 |
if ac_fn_c_try_link "$LINENO"; then : |
14302 |
is_poll_mechanism_available="yes" |
14303 |
else |
14304 |
is_poll_mechanism_available="no" |
14305 |
fi |
14306 |
rm -f core conftest.err conftest.$ac_objext \ |
14307 |
conftest$ac_exeext conftest.$ac_ext |
14308 |
iopoll_mechanism_select=6 |
14309 |
|
14310 |
cat >>confdefs.h <<_ACEOF |
14311 |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
14312 |
_ACEOF |
14313 |
|
14314 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14315 |
/* end confdefs.h. */ |
14316 |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
14317 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
14318 |
#define select innocuous_select |
14319 |
|
14320 |
/* System header to define __stub macros and hopefully few prototypes, |
14321 |
which can conflict with char select (); below. |
14322 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
14323 |
<limits.h> exists even on freestanding compilers. */ |
14324 |
|
14325 |
#ifdef __STDC__ |
14326 |
# include <limits.h> |
14327 |
#else |
14328 |
# include <assert.h> |
14329 |
#endif |
14330 |
|
14331 |
#undef select |
14332 |
|
14333 |
/* Override any GCC internal prototype to avoid an error. |
14334 |
Use char because int might match the return type of a GCC |
14335 |
builtin and then its argument prototype would still apply. */ |
14336 |
#ifdef __cplusplus |
14337 |
extern "C" |
14338 |
#endif |
14339 |
char select (); |
14340 |
/* The GNU C library defines this for functions which it implements |
14341 |
to always fail with ENOSYS. Some functions are actually named |
14342 |
something starting with __ and the normal name is an alias. */ |
14343 |
#if defined __stub_select || defined __stub___select |
14344 |
choke me |
14345 |
#endif |
14346 |
|
14347 |
int |
14348 |
main () |
14349 |
{ |
14350 |
return select (); |
14351 |
; |
14352 |
return 0; |
14353 |
} |
14354 |
_ACEOF |
14355 |
if ac_fn_c_try_link "$LINENO"; then : |
14356 |
is_select_mechanism_available="yes" |
14357 |
else |
14358 |
is_select_mechanism_available="no" |
14359 |
fi |
14360 |
rm -f core conftest.err conftest.$ac_objext \ |
14361 |
conftest$ac_exeext conftest.$ac_ext |
14362 |
optimal_iopoll_mechanism="none" |
14363 |
for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important |
14364 |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
14365 |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
14366 |
optimal_iopoll_mechanism="$mechanism" |
14367 |
break |
14368 |
fi |
14369 |
done |
14370 |
if test "$desired_iopoll_mechanism" = "none" ; then |
14371 |
if test "$optimal_iopoll_mechanism" = "none" ; then |
14372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14373 |
$as_echo "none" >&6; } |
14374 |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
14375 |
else |
14376 |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
14377 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14378 |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14379 |
fi |
14380 |
else |
14381 |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
14382 |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
14383 |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
14384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
14385 |
$as_echo "$selected_iopoll_mechanism" >&6; } |
14386 |
else |
14387 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
14388 |
$as_echo "none" >&6; } |
14389 |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
14390 |
fi |
14391 |
fi |
14392 |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
14393 |
|
14394 |
cat >>confdefs.h <<_ACEOF |
14395 |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
14396 |
_ACEOF |
14397 |
|
14398 |
|
14399 |
|
14400 |
|
14401 |
# Check whether --with-nicklen was given. |
14402 |
if test "${with_nicklen+set}" = set; then : |
14403 |
withval=$with_nicklen; nicklen="$withval" |
14404 |
else |
14405 |
nicklen="9" |
14406 |
fi |
14407 |
|
14408 |
|
14409 |
cat >>confdefs.h <<_ACEOF |
14410 |
#define NICKLEN ($nicklen+1) |
14411 |
_ACEOF |
14412 |
|
14413 |
|
14414 |
|
14415 |
|
14416 |
# Check whether --with-topiclen was given. |
14417 |
if test "${with_topiclen+set}" = set; then : |
14418 |
withval=$with_topiclen; topiclen="$withval" |
14419 |
else |
14420 |
topiclen="160" |
14421 |
fi |
14422 |
|
14423 |
|
14424 |
cat >>confdefs.h <<_ACEOF |
14425 |
#define TOPICLEN ($topiclen) |
14426 |
_ACEOF |
14427 |
|
14428 |
|
14429 |
|
14430 |
# Check whether --enable-efnet was given. |
14431 |
if test "${enable_efnet+set}" = set; then : |
14432 |
enableval=$enable_efnet; efnet="$enableval" |
14433 |
else |
14434 |
efnet="no" |
14435 |
fi |
14436 |
|
14437 |
if test "$efnet" = "yes" ; then |
14438 |
use_efnet="yes" |
14439 |
|
14440 |
$as_echo "#define EFNET 1" >>confdefs.h |
14441 |
|
14442 |
else |
14443 |
use_efnet="no" |
14444 |
fi |
14445 |
if test "$use_efnet" = "yes"; then |
14446 |
EFNET_TRUE= |
14447 |
EFNET_FALSE='#' |
14448 |
else |
14449 |
EFNET_TRUE='#' |
14450 |
EFNET_FALSE= |
14451 |
fi |
14452 |
|
14453 |
|
14454 |
|
14455 |
# Check whether --enable-halfops was given. |
14456 |
if test "${enable_halfops+set}" = set; then : |
14457 |
enableval=$enable_halfops; halfops="$enableval" |
14458 |
else |
14459 |
halfops="no" |
14460 |
fi |
14461 |
|
14462 |
if test "$halfops" = "yes" ; then |
14463 |
|
14464 |
$as_echo "#define HALFOPS 1" >>confdefs.h |
14465 |
|
14466 |
fi |
14467 |
|
14468 |
|
14469 |
# Check whether --enable-debugging was given. |
14470 |
if test "${enable_debugging+set}" = set; then : |
14471 |
enableval=$enable_debugging; debugging="$enableval" |
14472 |
else |
14473 |
debugging="no" |
14474 |
fi |
14475 |
|
14476 |
if test "$debugging" = "yes" ; then |
14477 |
|
14478 |
$as_echo "#define DEBUG 1" >>confdefs.h |
14479 |
|
14480 |
CFLAGS="-Wall -g -O0" |
14481 |
else |
14482 |
|
14483 |
$as_echo "#define NDEBUG 1" >>confdefs.h |
14484 |
|
14485 |
fi |
14486 |
|
14487 |
|
14488 |
# Check whether --enable-warnings was given. |
14489 |
if test "${enable_warnings+set}" = set; then : |
14490 |
enableval=$enable_warnings; warnings="$enableval" |
14491 |
else |
14492 |
warnings="no" |
14493 |
fi |
14494 |
|
14495 |
if test "$warnings" = "yes" ; then |
14496 |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
14497 |
fi |
14498 |
|
14499 |
|
14500 |
|
14501 |
prefix_NONE= |
14502 |
exec_prefix_NONE= |
14503 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14504 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14505 |
eval ac_define_dir="\"$prefix\"" |
14506 |
eval ac_define_dir="\"$ac_define_dir\"" |
14507 |
PREFIX="$ac_define_dir" |
14508 |
|
14509 |
|
14510 |
cat >>confdefs.h <<_ACEOF |
14511 |
#define PREFIX "$ac_define_dir" |
14512 |
_ACEOF |
14513 |
|
14514 |
test "$prefix_NONE" && prefix=NONE |
14515 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14516 |
|
14517 |
|
14518 |
prefix_NONE= |
14519 |
exec_prefix_NONE= |
14520 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14521 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14522 |
eval ac_define_dir="\"$sysconfdir\"" |
14523 |
eval ac_define_dir="\"$ac_define_dir\"" |
14524 |
SYSCONFDIR="$ac_define_dir" |
14525 |
|
14526 |
|
14527 |
cat >>confdefs.h <<_ACEOF |
14528 |
#define SYSCONFDIR "$ac_define_dir" |
14529 |
_ACEOF |
14530 |
|
14531 |
test "$prefix_NONE" && prefix=NONE |
14532 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14533 |
|
14534 |
|
14535 |
prefix_NONE= |
14536 |
exec_prefix_NONE= |
14537 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14538 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14539 |
eval ac_define_dir="\"$libdir\"" |
14540 |
eval ac_define_dir="\"$ac_define_dir\"" |
14541 |
LIBDIR="$ac_define_dir" |
14542 |
|
14543 |
|
14544 |
cat >>confdefs.h <<_ACEOF |
14545 |
#define LIBDIR "$ac_define_dir" |
14546 |
_ACEOF |
14547 |
|
14548 |
test "$prefix_NONE" && prefix=NONE |
14549 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14550 |
|
14551 |
|
14552 |
prefix_NONE= |
14553 |
exec_prefix_NONE= |
14554 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14555 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14556 |
eval ac_define_dir="\"$datadir\"" |
14557 |
eval ac_define_dir="\"$ac_define_dir\"" |
14558 |
DATADIR="$ac_define_dir" |
14559 |
|
14560 |
|
14561 |
cat >>confdefs.h <<_ACEOF |
14562 |
#define DATADIR "$ac_define_dir" |
14563 |
_ACEOF |
14564 |
|
14565 |
test "$prefix_NONE" && prefix=NONE |
14566 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14567 |
|
14568 |
|
14569 |
prefix_NONE= |
14570 |
exec_prefix_NONE= |
14571 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
14572 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
14573 |
eval ac_define_dir="\"$localstatedir\"" |
14574 |
eval ac_define_dir="\"$ac_define_dir\"" |
14575 |
LOCALSTATEDIR="$ac_define_dir" |
14576 |
|
14577 |
|
14578 |
cat >>confdefs.h <<_ACEOF |
14579 |
#define LOCALSTATEDIR "$ac_define_dir" |
14580 |
_ACEOF |
14581 |
|
14582 |
test "$prefix_NONE" && prefix=NONE |
14583 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
14584 |
|
14585 |
|
14586 |
ac_config_files="$ac_config_files Makefile etc/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
14587 |
|
14588 |
|
14589 |
cat >confcache <<\_ACEOF |
14590 |
# This file is a shell script that caches the results of configure |
14591 |
# tests run on this system so they can be shared between configure |
14592 |
# scripts and configure runs, see configure's option --config-cache. |
14593 |
# It is not useful on other systems. If it contains results you don't |
14594 |
# want to keep, you may remove or edit it. |
14595 |
# |
14596 |
# config.status only pays attention to the cache file if you give it |
14597 |
# the --recheck option to rerun configure. |
14598 |
# |
14599 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
14600 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
14601 |
# following values. |
14602 |
|
14603 |
_ACEOF |
14604 |
|
14605 |
# The following way of writing the cache mishandles newlines in values, |
14606 |
# but we know of no workaround that is simple, portable, and efficient. |
14607 |
# So, we kill variables containing newlines. |
14608 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
14609 |
# and sets the high bit in the cache file unless we assign to the vars. |
14610 |
( |
14611 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
14612 |
eval ac_val=\$$ac_var |
14613 |
case $ac_val in #( |
14614 |
*${as_nl}*) |
14615 |
case $ac_var in #( |
14616 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
14617 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
14618 |
esac |
14619 |
case $ac_var in #( |
14620 |
_ | IFS | as_nl) ;; #( |
14621 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
14622 |
*) { eval $ac_var=; unset $ac_var;} ;; |
14623 |
esac ;; |
14624 |
esac |
14625 |
done |
14626 |
|
14627 |
(set) 2>&1 | |
14628 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14629 |
*${as_nl}ac_space=\ *) |
14630 |
# `set' does not quote correctly, so add quotes: double-quote |
14631 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
14632 |
sed -n \ |
14633 |
"s/'/'\\\\''/g; |
14634 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
14635 |
;; #( |
14636 |
*) |
14637 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
14638 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
14639 |
;; |
14640 |
esac | |
14641 |
sort |
14642 |
) | |
14643 |
sed ' |
14644 |
/^ac_cv_env_/b end |
14645 |
t clear |
14646 |
:clear |
14647 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14648 |
t end |
14649 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14650 |
:end' >>confcache |
14651 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
14652 |
if test -w "$cache_file"; then |
14653 |
if test "x$cache_file" != "x/dev/null"; then |
14654 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14655 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
14656 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
14657 |
cat confcache >"$cache_file" |
14658 |
else |
14659 |
case $cache_file in #( |
14660 |
*/* | ?:*) |
14661 |
mv -f confcache "$cache_file"$$ && |
14662 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
14663 |
*) |
14664 |
mv -f confcache "$cache_file" ;; |
14665 |
esac |
14666 |
fi |
14667 |
fi |
14668 |
else |
14669 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14670 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
14671 |
fi |
14672 |
fi |
14673 |
rm -f confcache |
14674 |
|
14675 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14676 |
# Let make expand exec_prefix. |
14677 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
14678 |
|
14679 |
DEFS=-DHAVE_CONFIG_H |
14680 |
|
14681 |
ac_libobjs= |
14682 |
ac_ltlibobjs= |
14683 |
U= |
14684 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14685 |
# 1. Remove the extension, and $U if already installed. |
14686 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14687 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
14688 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
14689 |
# will be set to the directory where LIBOBJS objects are built. |
14690 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
14691 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
14692 |
done |
14693 |
LIBOBJS=$ac_libobjs |
14694 |
|
14695 |
LTLIBOBJS=$ac_ltlibobjs |
14696 |
|
14697 |
|
14698 |
if test -n "$EXEEXT"; then |
14699 |
am__EXEEXT_TRUE= |
14700 |
am__EXEEXT_FALSE='#' |
14701 |
else |
14702 |
am__EXEEXT_TRUE='#' |
14703 |
am__EXEEXT_FALSE= |
14704 |
fi |
14705 |
|
14706 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
14707 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
14708 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14709 |
fi |
14710 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14711 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
14712 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14713 |
fi |
14714 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
14715 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
14716 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14717 |
fi |
14718 |
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
14719 |
as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. |
14720 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14721 |
fi |
14722 |
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
14723 |
as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. |
14724 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14725 |
fi |
14726 |
LT_CONFIG_H=config.h |
14727 |
|
14728 |
_ltdl_libobjs= |
14729 |
_ltdl_ltlibobjs= |
14730 |
if test -n "$_LT_LIBOBJS"; then |
14731 |
# Remove the extension. |
14732 |
_lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
14733 |
for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
14734 |
_ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
14735 |
_ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
14736 |
done |
14737 |
fi |
14738 |
ltdl_LIBOBJS=$_ltdl_libobjs |
14739 |
|
14740 |
ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
14741 |
|
14742 |
|
14743 |
|
14744 |
if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then |
14745 |
as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined. |
14746 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14747 |
fi |
14748 |
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then |
14749 |
as_fn_error $? "conditional \"ENABLE_SSL\" was never defined. |
14750 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14751 |
fi |
14752 |
if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then |
14753 |
as_fn_error $? "conditional \"EFNET\" was never defined. |
14754 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14755 |
fi |
14756 |
|
14757 |
: "${CONFIG_STATUS=./config.status}" |
14758 |
ac_write_fail=0 |
14759 |
ac_clean_files_save=$ac_clean_files |
14760 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
14761 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14762 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
14763 |
as_write_fail=0 |
14764 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
14765 |
#! $SHELL |
14766 |
# Generated by $as_me. |
14767 |
# Run this file to recreate the current configuration. |
14768 |
# Compiler output produced by configure, useful for debugging |
14769 |
# configure, is in config.log if it exists. |
14770 |
|
14771 |
debug=false |
14772 |
ac_cs_recheck=false |
14773 |
ac_cs_silent=false |
14774 |
|
14775 |
SHELL=\${CONFIG_SHELL-$SHELL} |
14776 |
export SHELL |
14777 |
_ASEOF |
14778 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
14779 |
## -------------------- ## |
14780 |
## M4sh Initialization. ## |
14781 |
## -------------------- ## |
14782 |
|
14783 |
# Be more Bourne compatible |
14784 |
DUALCASE=1; export DUALCASE # for MKS sh |
14785 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
14786 |
emulate sh |
14787 |
NULLCMD=: |
14788 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
14789 |
# is contrary to our usage. Disable this feature. |
14790 |
alias -g '${1+"$@"}'='"$@"' |
14791 |
setopt NO_GLOB_SUBST |
14792 |
else |
14793 |
case `(set -o) 2>/dev/null` in #( |
14794 |
*posix*) : |
14795 |
set -o posix ;; #( |
14796 |
*) : |
14797 |
;; |
14798 |
esac |
14799 |
fi |
14800 |
|
14801 |
|
14802 |
as_nl=' |
14803 |
' |
14804 |
export as_nl |
14805 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
14806 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
14807 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
14808 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
14809 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
14810 |
# but without wasting forks for bash or zsh. |
14811 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
14812 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
14813 |
as_echo='print -r --' |
14814 |
as_echo_n='print -rn --' |
14815 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
14816 |
as_echo='printf %s\n' |
14817 |
as_echo_n='printf %s' |
14818 |
else |
14819 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
14820 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
14821 |
as_echo_n='/usr/ucb/echo -n' |
14822 |
else |
14823 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
14824 |
as_echo_n_body='eval |
14825 |
arg=$1; |
14826 |
case $arg in #( |
14827 |
*"$as_nl"*) |
14828 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
14829 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
14830 |
esac; |
14831 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
14832 |
' |
14833 |
export as_echo_n_body |
14834 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
14835 |
fi |
14836 |
export as_echo_body |
14837 |
as_echo='sh -c $as_echo_body as_echo' |
14838 |
fi |
14839 |
|
14840 |
# The user is always right. |
14841 |
if test "${PATH_SEPARATOR+set}" != set; then |
14842 |
PATH_SEPARATOR=: |
14843 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
14844 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
14845 |
PATH_SEPARATOR=';' |
14846 |
} |
14847 |
fi |
14848 |
|
14849 |
|
14850 |
# IFS |
14851 |
# We need space, tab and new line, in precisely that order. Quoting is |
14852 |
# there to prevent editors from complaining about space-tab. |
14853 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
14854 |
# splitting by setting IFS to empty value.) |
14855 |
IFS=" "" $as_nl" |
14856 |
|
14857 |
# Find who we are. Look in the path if we contain no directory separator. |
14858 |
as_myself= |
14859 |
case $0 in #(( |
14860 |
*[\\/]* ) as_myself=$0 ;; |
14861 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14862 |
for as_dir in $PATH |
14863 |
do |
14864 |
IFS=$as_save_IFS |
14865 |
test -z "$as_dir" && as_dir=. |
14866 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14867 |
done |
14868 |
IFS=$as_save_IFS |
14869 |
|
14870 |
;; |
14871 |
esac |
14872 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
14873 |
# in which case we are not to be found in the path. |
14874 |
if test "x$as_myself" = x; then |
14875 |
as_myself=$0 |
14876 |
fi |
14877 |
if test ! -f "$as_myself"; then |
14878 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
14879 |
exit 1 |
14880 |
fi |
14881 |
|
14882 |
# Unset variables that we do not need and which cause bugs (e.g. in |
14883 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
14884 |
# suppresses any "Segmentation fault" message there. '((' could |
14885 |
# trigger a bug in pdksh 5.2.14. |
14886 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
14887 |
do eval test x\${$as_var+set} = xset \ |
14888 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
14889 |
done |
14890 |
PS1='$ ' |
14891 |
PS2='> ' |
14892 |
PS4='+ ' |
14893 |
|
14894 |
# NLS nuisances. |
14895 |
LC_ALL=C |
14896 |
export LC_ALL |
14897 |
LANGUAGE=C |
14898 |
export LANGUAGE |
14899 |
|
14900 |
# CDPATH. |
14901 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
14902 |
|
14903 |
|
14904 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
14905 |
# ---------------------------------------- |
14906 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14907 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
14908 |
# script with STATUS, using 1 if that was 0. |
14909 |
as_fn_error () |
14910 |
{ |
14911 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
14912 |
if test "$4"; then |
14913 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
14914 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
14915 |
fi |
14916 |
$as_echo "$as_me: error: $2" >&2 |
14917 |
as_fn_exit $as_status |
14918 |
} # as_fn_error |
14919 |
|
14920 |
|
14921 |
# as_fn_set_status STATUS |
14922 |
# ----------------------- |
14923 |
# Set $? to STATUS, without forking. |
14924 |
as_fn_set_status () |
14925 |
{ |
14926 |
return $1 |
14927 |
} # as_fn_set_status |
14928 |
|
14929 |
# as_fn_exit STATUS |
14930 |
# ----------------- |
14931 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
14932 |
as_fn_exit () |
14933 |
{ |
14934 |
set +e |
14935 |
as_fn_set_status $1 |
14936 |
exit $1 |
14937 |
} # as_fn_exit |
14938 |
|
14939 |
# as_fn_unset VAR |
14940 |
# --------------- |
14941 |
# Portably unset VAR. |
14942 |
as_fn_unset () |
14943 |
{ |
14944 |
{ eval $1=; unset $1;} |
14945 |
} |
14946 |
as_unset=as_fn_unset |
14947 |
# as_fn_append VAR VALUE |
14948 |
# ---------------------- |
14949 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
14950 |
# advantage of any shell optimizations that allow amortized linear growth over |
14951 |
# repeated appends, instead of the typical quadratic growth present in naive |
14952 |
# implementations. |
14953 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
14954 |
eval 'as_fn_append () |
14955 |
{ |
14956 |
eval $1+=\$2 |
14957 |
}' |
14958 |
else |
14959 |
as_fn_append () |
14960 |
{ |
14961 |
eval $1=\$$1\$2 |
14962 |
} |
14963 |
fi # as_fn_append |
14964 |
|
14965 |
# as_fn_arith ARG... |
14966 |
# ------------------ |
14967 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
14968 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
14969 |
# must be portable across $(()) and expr. |
14970 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
14971 |
eval 'as_fn_arith () |
14972 |
{ |
14973 |
as_val=$(( $* )) |
14974 |
}' |
14975 |
else |
14976 |
as_fn_arith () |
14977 |
{ |
14978 |
as_val=`expr "$@" || test $? -eq 1` |
14979 |
} |
14980 |
fi # as_fn_arith |
14981 |
|
14982 |
|
14983 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
14984 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
14985 |
as_expr=expr |
14986 |
else |
14987 |
as_expr=false |
14988 |
fi |
14989 |
|
14990 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
14991 |
as_basename=basename |
14992 |
else |
14993 |
as_basename=false |
14994 |
fi |
14995 |
|
14996 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14997 |
as_dirname=dirname |
14998 |
else |
14999 |
as_dirname=false |
15000 |
fi |
15001 |
|
15002 |
as_me=`$as_basename -- "$0" || |
15003 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15004 |
X"$0" : 'X\(//\)$' \| \ |
15005 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15006 |
$as_echo X/"$0" | |
15007 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15008 |
s//\1/ |
15009 |
q |
15010 |
} |
15011 |
/^X\/\(\/\/\)$/{ |
15012 |
s//\1/ |
15013 |
q |
15014 |
} |
15015 |
/^X\/\(\/\).*/{ |
15016 |
s//\1/ |
15017 |
q |
15018 |
} |
15019 |
s/.*/./; q'` |
15020 |
|
15021 |
# Avoid depending upon Character Ranges. |
15022 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
15023 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
15024 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
15025 |
as_cr_digits='0123456789' |
15026 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
15027 |
|
15028 |
ECHO_C= ECHO_N= ECHO_T= |
15029 |
case `echo -n x` in #((((( |
15030 |
-n*) |
15031 |
case `echo 'xy\c'` in |
15032 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
15033 |
xy) ECHO_C='\c';; |
15034 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
15035 |
ECHO_T=' ';; |
15036 |
esac;; |
15037 |
*) |
15038 |
ECHO_N='-n';; |
15039 |
esac |
15040 |
|
15041 |
rm -f conf$$ conf$$.exe conf$$.file |
15042 |
if test -d conf$$.dir; then |
15043 |
rm -f conf$$.dir/conf$$.file |
15044 |
else |
15045 |
rm -f conf$$.dir |
15046 |
mkdir conf$$.dir 2>/dev/null |
15047 |
fi |
15048 |
if (echo >conf$$.file) 2>/dev/null; then |
15049 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
15050 |
as_ln_s='ln -s' |
15051 |
# ... but there are two gotchas: |
15052 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
15053 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
15054 |
# In both cases, we have to default to `cp -p'. |
15055 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
15056 |
as_ln_s='cp -p' |
15057 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
15058 |
as_ln_s=ln |
15059 |
else |
15060 |
as_ln_s='cp -p' |
15061 |
fi |
15062 |
else |
15063 |
as_ln_s='cp -p' |
15064 |
fi |
15065 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15066 |
rmdir conf$$.dir 2>/dev/null |
15067 |
|
15068 |
|
15069 |
# as_fn_mkdir_p |
15070 |
# ------------- |
15071 |
# Create "$as_dir" as a directory, including parents if necessary. |
15072 |
as_fn_mkdir_p () |
15073 |
{ |
15074 |
|
15075 |
case $as_dir in #( |
15076 |
-*) as_dir=./$as_dir;; |
15077 |
esac |
15078 |
test -d "$as_dir" || eval $as_mkdir_p || { |
15079 |
as_dirs= |
15080 |
while :; do |
15081 |
case $as_dir in #( |
15082 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
15083 |
*) as_qdir=$as_dir;; |
15084 |
esac |
15085 |
as_dirs="'$as_qdir' $as_dirs" |
15086 |
as_dir=`$as_dirname -- "$as_dir" || |
15087 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15088 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
15089 |
X"$as_dir" : 'X\(//\)$' \| \ |
15090 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
15091 |
$as_echo X"$as_dir" | |
15092 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15093 |
s//\1/ |
15094 |
q |
15095 |
} |
15096 |
/^X\(\/\/\)[^/].*/{ |
15097 |
s//\1/ |
15098 |
q |
15099 |
} |
15100 |
/^X\(\/\/\)$/{ |
15101 |
s//\1/ |
15102 |
q |
15103 |
} |
15104 |
/^X\(\/\).*/{ |
15105 |
s//\1/ |
15106 |
q |
15107 |
} |
15108 |
s/.*/./; q'` |
15109 |
test -d "$as_dir" && break |
15110 |
done |
15111 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
15112 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
15113 |
|
15114 |
|
15115 |
} # as_fn_mkdir_p |
15116 |
if mkdir -p . 2>/dev/null; then |
15117 |
as_mkdir_p='mkdir -p "$as_dir"' |
15118 |
else |
15119 |
test -d ./-p && rmdir ./-p |
15120 |
as_mkdir_p=false |
15121 |
fi |
15122 |
|
15123 |
if test -x / >/dev/null 2>&1; then |
15124 |
as_test_x='test -x' |
15125 |
else |
15126 |
if ls -dL / >/dev/null 2>&1; then |
15127 |
as_ls_L_option=L |
15128 |
else |
15129 |
as_ls_L_option= |
15130 |
fi |
15131 |
as_test_x=' |
15132 |
eval sh -c '\'' |
15133 |
if test -d "$1"; then |
15134 |
test -d "$1/."; |
15135 |
else |
15136 |
case $1 in #( |
15137 |
-*)set "./$1";; |
15138 |
esac; |
15139 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
15140 |
???[sx]*):;;*)false;;esac;fi |
15141 |
'\'' sh |
15142 |
' |
15143 |
fi |
15144 |
as_executable_p=$as_test_x |
15145 |
|
15146 |
# Sed expression to map a string onto a valid CPP name. |
15147 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
15148 |
|
15149 |
# Sed expression to map a string onto a valid variable name. |
15150 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
15151 |
|
15152 |
|
15153 |
exec 6>&1 |
15154 |
## ----------------------------------- ## |
15155 |
## Main body of $CONFIG_STATUS script. ## |
15156 |
## ----------------------------------- ## |
15157 |
_ASEOF |
15158 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
15159 |
|
15160 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15161 |
# Save the log message, to keep $0 and so on meaningful, and to |
15162 |
# report actual input values of CONFIG_FILES etc. instead of their |
15163 |
# values after options handling. |
15164 |
ac_log=" |
15165 |
This file was extended by ircd-hybrid $as_me 8beta1, which was |
15166 |
generated by GNU Autoconf 2.68. Invocation command line was |
15167 |
|
15168 |
CONFIG_FILES = $CONFIG_FILES |
15169 |
CONFIG_HEADERS = $CONFIG_HEADERS |
15170 |
CONFIG_LINKS = $CONFIG_LINKS |
15171 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
15172 |
$ $0 $@ |
15173 |
|
15174 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15175 |
" |
15176 |
|
15177 |
_ACEOF |
15178 |
|
15179 |
case $ac_config_files in *" |
15180 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
15181 |
esac |
15182 |
|
15183 |
case $ac_config_headers in *" |
15184 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
15185 |
esac |
15186 |
|
15187 |
|
15188 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15189 |
# Files that config.status was made for. |
15190 |
config_files="$ac_config_files" |
15191 |
config_headers="$ac_config_headers" |
15192 |
config_commands="$ac_config_commands" |
15193 |
|
15194 |
_ACEOF |
15195 |
|
15196 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15197 |
ac_cs_usage="\ |
15198 |
\`$as_me' instantiates files and other configuration actions |
15199 |
from templates according to the current configuration. Unless the files |
15200 |
and actions are specified as TAGs, all are instantiated by default. |
15201 |
|
15202 |
Usage: $0 [OPTION]... [TAG]... |
15203 |
|
15204 |
-h, --help print this help, then exit |
15205 |
-V, --version print version number and configuration settings, then exit |
15206 |
--config print configuration, then exit |
15207 |
-q, --quiet, --silent |
15208 |
do not print progress messages |
15209 |
-d, --debug don't remove temporary files |
15210 |
--recheck update $as_me by reconfiguring in the same conditions |
15211 |
--file=FILE[:TEMPLATE] |
15212 |
instantiate the configuration file FILE |
15213 |
--header=FILE[:TEMPLATE] |
15214 |
instantiate the configuration header FILE |
15215 |
|
15216 |
Configuration files: |
15217 |
$config_files |
15218 |
|
15219 |
Configuration headers: |
15220 |
$config_headers |
15221 |
|
15222 |
Configuration commands: |
15223 |
$config_commands |
15224 |
|
15225 |
Report bugs to <bugs@ircd-hybrid.org>." |
15226 |
|
15227 |
_ACEOF |
15228 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15229 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
15230 |
ac_cs_version="\\ |
15231 |
ircd-hybrid config.status 8beta1 |
15232 |
configured by $0, generated by GNU Autoconf 2.68, |
15233 |
with options \\"\$ac_cs_config\\" |
15234 |
|
15235 |
Copyright (C) 2010 Free Software Foundation, Inc. |
15236 |
This config.status script is free software; the Free Software Foundation |
15237 |
gives unlimited permission to copy, distribute and modify it." |
15238 |
|
15239 |
ac_pwd='$ac_pwd' |
15240 |
srcdir='$srcdir' |
15241 |
INSTALL='$INSTALL' |
15242 |
MKDIR_P='$MKDIR_P' |
15243 |
AWK='$AWK' |
15244 |
test -n "\$AWK" || AWK=awk |
15245 |
_ACEOF |
15246 |
|
15247 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15248 |
# The default lists apply if the user does not specify any file. |
15249 |
ac_need_defaults=: |
15250 |
while test $# != 0 |
15251 |
do |
15252 |
case $1 in |
15253 |
--*=?*) |
15254 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15255 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
15256 |
ac_shift=: |
15257 |
;; |
15258 |
--*=) |
15259 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15260 |
ac_optarg= |
15261 |
ac_shift=: |
15262 |
;; |
15263 |
*) |
15264 |
ac_option=$1 |
15265 |
ac_optarg=$2 |
15266 |
ac_shift=shift |
15267 |
;; |
15268 |
esac |
15269 |
|
15270 |
case $ac_option in |
15271 |
# Handling of the options. |
15272 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15273 |
ac_cs_recheck=: ;; |
15274 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15275 |
$as_echo "$ac_cs_version"; exit ;; |
15276 |
--config | --confi | --conf | --con | --co | --c ) |
15277 |
$as_echo "$ac_cs_config"; exit ;; |
15278 |
--debug | --debu | --deb | --de | --d | -d ) |
15279 |
debug=: ;; |
15280 |
--file | --fil | --fi | --f ) |
15281 |
$ac_shift |
15282 |
case $ac_optarg in |
15283 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15284 |
'') as_fn_error $? "missing file argument" ;; |
15285 |
esac |
15286 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
15287 |
ac_need_defaults=false;; |
15288 |
--header | --heade | --head | --hea ) |
15289 |
$ac_shift |
15290 |
case $ac_optarg in |
15291 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15292 |
esac |
15293 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
15294 |
ac_need_defaults=false;; |
15295 |
--he | --h) |
15296 |
# Conflict between --help and --header |
15297 |
as_fn_error $? "ambiguous option: \`$1' |
15298 |
Try \`$0 --help' for more information.";; |
15299 |
--help | --hel | -h ) |
15300 |
$as_echo "$ac_cs_usage"; exit ;; |
15301 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15302 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
15303 |
ac_cs_silent=: ;; |
15304 |
|
15305 |
# This is an error. |
15306 |
-*) as_fn_error $? "unrecognized option: \`$1' |
15307 |
Try \`$0 --help' for more information." ;; |
15308 |
|
15309 |
*) as_fn_append ac_config_targets " $1" |
15310 |
ac_need_defaults=false ;; |
15311 |
|
15312 |
esac |
15313 |
shift |
15314 |
done |
15315 |
|
15316 |
ac_configure_extra_args= |
15317 |
|
15318 |
if $ac_cs_silent; then |
15319 |
exec 6>/dev/null |
15320 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
15321 |
fi |
15322 |
|
15323 |
_ACEOF |
15324 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15325 |
if \$ac_cs_recheck; then |
15326 |
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15327 |
shift |
15328 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
15329 |
CONFIG_SHELL='$SHELL' |
15330 |
export CONFIG_SHELL |
15331 |
exec "\$@" |
15332 |
fi |
15333 |
|
15334 |
_ACEOF |
15335 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15336 |
exec 5>>config.log |
15337 |
{ |
15338 |
echo |
15339 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
15340 |
## Running $as_me. ## |
15341 |
_ASBOX |
15342 |
$as_echo "$ac_log" |
15343 |
} >&5 |
15344 |
|
15345 |
_ACEOF |
15346 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15347 |
# |
15348 |
# INIT-COMMANDS |
15349 |
# |
15350 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
15351 |
|
15352 |
|
15353 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
15354 |
# if CDPATH is set. |
15355 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
15356 |
|
15357 |
sed_quote_subst='$sed_quote_subst' |
15358 |
double_quote_subst='$double_quote_subst' |
15359 |
delay_variable_subst='$delay_variable_subst' |
15360 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
15361 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
15362 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
15363 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
15364 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
15365 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
15366 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
15367 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
15368 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
15369 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
15370 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
15371 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
15372 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
15373 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
15374 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
15375 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
15376 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
15377 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
15378 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
15379 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
15380 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
15381 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
15382 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
15383 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
15384 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
15385 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
15386 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
15387 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
15388 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
15389 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
15390 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
15391 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
15392 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
15393 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
15394 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
15395 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
15396 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
15397 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
15398 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
15399 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
15400 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
15401 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
15402 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
15403 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
15404 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
15405 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
15406 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
15407 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
15408 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
15409 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
15410 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
15411 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
15412 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
15413 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
15414 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
15415 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
15416 |
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"`' |
15417 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
15418 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
15419 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
15420 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
15421 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
15422 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
15423 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
15424 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
15425 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
15426 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
15427 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
15428 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
15429 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
15430 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
15431 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
15432 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
15433 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
15434 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
15435 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
15436 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
15437 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
15438 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
15439 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
15440 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
15441 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
15442 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
15443 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
15444 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
15445 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
15446 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
15447 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
15448 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
15449 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
15450 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
15451 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
15452 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
15453 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
15454 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
15455 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
15456 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
15457 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
15458 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
15459 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
15460 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
15461 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
15462 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
15463 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
15464 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
15465 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
15466 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
15467 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
15468 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
15469 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
15470 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
15471 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
15472 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
15473 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
15474 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
15475 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
15476 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
15477 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
15478 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
15479 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
15480 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
15481 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
15482 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
15483 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
15484 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
15485 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
15486 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
15487 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
15488 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
15489 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
15490 |
|
15491 |
LTCC='$LTCC' |
15492 |
LTCFLAGS='$LTCFLAGS' |
15493 |
compiler='$compiler_DEFAULT' |
15494 |
|
15495 |
# A function that is used when there is no print builtin or printf. |
15496 |
func_fallback_echo () |
15497 |
{ |
15498 |
eval 'cat <<_LTECHO_EOF |
15499 |
\$1 |
15500 |
_LTECHO_EOF' |
15501 |
} |
15502 |
|
15503 |
# Quote evaled strings. |
15504 |
for var in SHELL \ |
15505 |
ECHO \ |
15506 |
PATH_SEPARATOR \ |
15507 |
SED \ |
15508 |
GREP \ |
15509 |
EGREP \ |
15510 |
FGREP \ |
15511 |
LD \ |
15512 |
NM \ |
15513 |
LN_S \ |
15514 |
lt_SP2NL \ |
15515 |
lt_NL2SP \ |
15516 |
reload_flag \ |
15517 |
OBJDUMP \ |
15518 |
deplibs_check_method \ |
15519 |
file_magic_cmd \ |
15520 |
file_magic_glob \ |
15521 |
want_nocaseglob \ |
15522 |
DLLTOOL \ |
15523 |
sharedlib_from_linklib_cmd \ |
15524 |
AR \ |
15525 |
AR_FLAGS \ |
15526 |
archiver_list_spec \ |
15527 |
STRIP \ |
15528 |
RANLIB \ |
15529 |
CC \ |
15530 |
CFLAGS \ |
15531 |
compiler \ |
15532 |
lt_cv_sys_global_symbol_pipe \ |
15533 |
lt_cv_sys_global_symbol_to_cdecl \ |
15534 |
lt_cv_sys_global_symbol_to_c_name_address \ |
15535 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
15536 |
nm_file_list_spec \ |
15537 |
lt_prog_compiler_no_builtin_flag \ |
15538 |
lt_prog_compiler_pic \ |
15539 |
lt_prog_compiler_wl \ |
15540 |
lt_prog_compiler_static \ |
15541 |
lt_cv_prog_compiler_c_o \ |
15542 |
need_locks \ |
15543 |
MANIFEST_TOOL \ |
15544 |
DSYMUTIL \ |
15545 |
NMEDIT \ |
15546 |
LIPO \ |
15547 |
OTOOL \ |
15548 |
OTOOL64 \ |
15549 |
shrext_cmds \ |
15550 |
export_dynamic_flag_spec \ |
15551 |
whole_archive_flag_spec \ |
15552 |
compiler_needs_object \ |
15553 |
with_gnu_ld \ |
15554 |
allow_undefined_flag \ |
15555 |
no_undefined_flag \ |
15556 |
hardcode_libdir_flag_spec \ |
15557 |
hardcode_libdir_separator \ |
15558 |
exclude_expsyms \ |
15559 |
include_expsyms \ |
15560 |
file_list_spec \ |
15561 |
variables_saved_for_relink \ |
15562 |
libname_spec \ |
15563 |
library_names_spec \ |
15564 |
soname_spec \ |
15565 |
install_override_mode \ |
15566 |
finish_eval \ |
15567 |
old_striplib \ |
15568 |
striplib; do |
15569 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
15570 |
*[\\\\\\\`\\"\\\$]*) |
15571 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
15572 |
;; |
15573 |
*) |
15574 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15575 |
;; |
15576 |
esac |
15577 |
done |
15578 |
|
15579 |
# Double-quote double-evaled strings. |
15580 |
for var in reload_cmds \ |
15581 |
old_postinstall_cmds \ |
15582 |
old_postuninstall_cmds \ |
15583 |
old_archive_cmds \ |
15584 |
extract_expsyms_cmds \ |
15585 |
old_archive_from_new_cmds \ |
15586 |
old_archive_from_expsyms_cmds \ |
15587 |
archive_cmds \ |
15588 |
archive_expsym_cmds \ |
15589 |
module_cmds \ |
15590 |
module_expsym_cmds \ |
15591 |
export_symbols_cmds \ |
15592 |
prelink_cmds \ |
15593 |
postlink_cmds \ |
15594 |
postinstall_cmds \ |
15595 |
postuninstall_cmds \ |
15596 |
finish_cmds \ |
15597 |
sys_lib_search_path_spec \ |
15598 |
sys_lib_dlsearch_path_spec; do |
15599 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
15600 |
*[\\\\\\\`\\"\\\$]*) |
15601 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
15602 |
;; |
15603 |
*) |
15604 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15605 |
;; |
15606 |
esac |
15607 |
done |
15608 |
|
15609 |
ac_aux_dir='$ac_aux_dir' |
15610 |
xsi_shell='$xsi_shell' |
15611 |
lt_shell_append='$lt_shell_append' |
15612 |
|
15613 |
# See if we are running on zsh, and set the options which allow our |
15614 |
# commands through without removal of \ escapes INIT. |
15615 |
if test -n "\${ZSH_VERSION+set}" ; then |
15616 |
setopt NO_GLOB_SUBST |
15617 |
fi |
15618 |
|
15619 |
|
15620 |
PACKAGE='$PACKAGE' |
15621 |
VERSION='$VERSION' |
15622 |
TIMESTAMP='$TIMESTAMP' |
15623 |
RM='$RM' |
15624 |
ofile='$ofile' |
15625 |
|
15626 |
|
15627 |
|
15628 |
|
15629 |
_ACEOF |
15630 |
|
15631 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15632 |
|
15633 |
# Handling of arguments. |
15634 |
for ac_config_target in $ac_config_targets |
15635 |
do |
15636 |
case $ac_config_target in |
15637 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
15638 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
15639 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
15640 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15641 |
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; |
15642 |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
15643 |
"contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; |
15644 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
15645 |
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
15646 |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
15647 |
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
15648 |
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
15649 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
15650 |
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
15651 |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
15652 |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
15653 |
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
15654 |
|
15655 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
15656 |
esac |
15657 |
done |
15658 |
|
15659 |
|
15660 |
# If the user did not use the arguments to specify the items to instantiate, |
15661 |
# then the envvar interface is used. Set only those that are not. |
15662 |
# We use the long form for the default assignment because of an extremely |
15663 |
# bizarre bug on SunOS 4.1.3. |
15664 |
if $ac_need_defaults; then |
15665 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
15666 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
15667 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
15668 |
fi |
15669 |
|
15670 |
# Have a temporary directory for convenience. Make it in the build tree |
15671 |
# simply because there is no reason against having it here, and in addition, |
15672 |
# creating and moving files from /tmp can sometimes cause problems. |
15673 |
# Hook for its removal unless debugging. |
15674 |
# Note that there is a small window in which the directory will not be cleaned: |
15675 |
# after its creation but before its name has been assigned to `$tmp'. |
15676 |
$debug || |
15677 |
{ |
15678 |
tmp= ac_tmp= |
15679 |
trap 'exit_status=$? |
15680 |
: "${ac_tmp:=$tmp}" |
15681 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
15682 |
' 0 |
15683 |
trap 'as_fn_exit 1' 1 2 13 15 |
15684 |
} |
15685 |
# Create a (secure) tmp directory for tmp files. |
15686 |
|
15687 |
{ |
15688 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
15689 |
test -d "$tmp" |
15690 |
} || |
15691 |
{ |
15692 |
tmp=./conf$$-$RANDOM |
15693 |
(umask 077 && mkdir "$tmp") |
15694 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15695 |
ac_tmp=$tmp |
15696 |
|
15697 |
# Set up the scripts for CONFIG_FILES section. |
15698 |
# No need to generate them if there are no CONFIG_FILES. |
15699 |
# This happens for instance with `./config.status config.h'. |
15700 |
if test -n "$CONFIG_FILES"; then |
15701 |
|
15702 |
|
15703 |
ac_cr=`echo X | tr X '\015'` |
15704 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
15705 |
# But we know of no other shell where ac_cr would be empty at this |
15706 |
# point, so we can use a bashism as a fallback. |
15707 |
if test "x$ac_cr" = x; then |
15708 |
eval ac_cr=\$\'\\r\' |
15709 |
fi |
15710 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
15711 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
15712 |
ac_cs_awk_cr='\\r' |
15713 |
else |
15714 |
ac_cs_awk_cr=$ac_cr |
15715 |
fi |
15716 |
|
15717 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
15718 |
_ACEOF |
15719 |
|
15720 |
|
15721 |
{ |
15722 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
15723 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
15724 |
echo "_ACEOF" |
15725 |
} >conf$$subs.sh || |
15726 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15727 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
15728 |
ac_delim='%!_!# ' |
15729 |
for ac_last_try in false false false false false :; do |
15730 |
. ./conf$$subs.sh || |
15731 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15732 |
|
15733 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
15734 |
if test $ac_delim_n = $ac_delim_num; then |
15735 |
break |
15736 |
elif $ac_last_try; then |
15737 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15738 |
else |
15739 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15740 |
fi |
15741 |
done |
15742 |
rm -f conf$$subs.sh |
15743 |
|
15744 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15745 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
15746 |
_ACEOF |
15747 |
sed -n ' |
15748 |
h |
15749 |
s/^/S["/; s/!.*/"]=/ |
15750 |
p |
15751 |
g |
15752 |
s/^[^!]*!// |
15753 |
:repl |
15754 |
t repl |
15755 |
s/'"$ac_delim"'$// |
15756 |
t delim |
15757 |
:nl |
15758 |
h |
15759 |
s/\(.\{148\}\)..*/\1/ |
15760 |
t more1 |
15761 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
15762 |
p |
15763 |
n |
15764 |
b repl |
15765 |
:more1 |
15766 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15767 |
p |
15768 |
g |
15769 |
s/.\{148\}// |
15770 |
t nl |
15771 |
:delim |
15772 |
h |
15773 |
s/\(.\{148\}\)..*/\1/ |
15774 |
t more2 |
15775 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
15776 |
p |
15777 |
b |
15778 |
:more2 |
15779 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15780 |
p |
15781 |
g |
15782 |
s/.\{148\}// |
15783 |
t delim |
15784 |
' <conf$$subs.awk | sed ' |
15785 |
/^[^""]/{ |
15786 |
N |
15787 |
s/\n// |
15788 |
} |
15789 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
15790 |
rm -f conf$$subs.awk |
15791 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15792 |
_ACAWK |
15793 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
15794 |
for (key in S) S_is_set[key] = 1 |
15795 |
FS = "" |
15796 |
|
15797 |
} |
15798 |
{ |
15799 |
line = $ 0 |
15800 |
nfields = split(line, field, "@") |
15801 |
substed = 0 |
15802 |
len = length(field[1]) |
15803 |
for (i = 2; i < nfields; i++) { |
15804 |
key = field[i] |
15805 |
keylen = length(key) |
15806 |
if (S_is_set[key]) { |
15807 |
value = S[key] |
15808 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
15809 |
len += length(value) + length(field[++i]) |
15810 |
substed = 1 |
15811 |
} else |
15812 |
len += 1 + keylen |
15813 |
} |
15814 |
|
15815 |
print line |
15816 |
} |
15817 |
|
15818 |
_ACAWK |
15819 |
_ACEOF |
15820 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15821 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
15822 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
15823 |
else |
15824 |
cat |
15825 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15826 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
15827 |
_ACEOF |
15828 |
|
15829 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15830 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
15831 |
# trailing colons and then remove the whole line if VPATH becomes empty |
15832 |
# (actually we leave an empty line to preserve line numbers). |
15833 |
if test "x$srcdir" = x.; then |
15834 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15835 |
h |
15836 |
s/// |
15837 |
s/^/:/ |
15838 |
s/[ ]*$/:/ |
15839 |
s/:\$(srcdir):/:/g |
15840 |
s/:\${srcdir}:/:/g |
15841 |
s/:@srcdir@:/:/g |
15842 |
s/^:*// |
15843 |
s/:*$// |
15844 |
x |
15845 |
s/\(=[ ]*\).*/\1/ |
15846 |
G |
15847 |
s/\n// |
15848 |
s/^[^=]*=[ ]*$// |
15849 |
}' |
15850 |
fi |
15851 |
|
15852 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15853 |
fi # test -n "$CONFIG_FILES" |
15854 |
|
15855 |
# Set up the scripts for CONFIG_HEADERS section. |
15856 |
# No need to generate them if there are no CONFIG_HEADERS. |
15857 |
# This happens for instance with `./config.status Makefile'. |
15858 |
if test -n "$CONFIG_HEADERS"; then |
15859 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
15860 |
BEGIN { |
15861 |
_ACEOF |
15862 |
|
15863 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
15864 |
# here-document in config.status, that substitutes the proper values into |
15865 |
# config.h.in to produce config.h. |
15866 |
|
15867 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
15868 |
# handling of long lines. |
15869 |
ac_delim='%!_!# ' |
15870 |
for ac_last_try in false false :; do |
15871 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15872 |
if test -z "$ac_tt"; then |
15873 |
break |
15874 |
elif $ac_last_try; then |
15875 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
15876 |
else |
15877 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15878 |
fi |
15879 |
done |
15880 |
|
15881 |
# For the awk script, D is an array of macro values keyed by name, |
15882 |
# likewise P contains macro parameters if any. Preserve backslash |
15883 |
# newline sequences. |
15884 |
|
15885 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
15886 |
sed -n ' |
15887 |
s/.\{148\}/&'"$ac_delim"'/g |
15888 |
t rset |
15889 |
:rset |
15890 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
15891 |
t def |
15892 |
d |
15893 |
:def |
15894 |
s/\\$// |
15895 |
t bsnl |
15896 |
s/["\\]/\\&/g |
15897 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15898 |
D["\1"]=" \3"/p |
15899 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
15900 |
d |
15901 |
:bsnl |
15902 |
s/["\\]/\\&/g |
15903 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15904 |
D["\1"]=" \3\\\\\\n"\\/p |
15905 |
t cont |
15906 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
15907 |
t cont |
15908 |
d |
15909 |
:cont |
15910 |
n |
15911 |
s/.\{148\}/&'"$ac_delim"'/g |
15912 |
t clear |
15913 |
:clear |
15914 |
s/\\$// |
15915 |
t bsnlc |
15916 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
15917 |
d |
15918 |
:bsnlc |
15919 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
15920 |
b cont |
15921 |
' <confdefs.h | sed ' |
15922 |
s/'"$ac_delim"'/"\\\ |
15923 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
15924 |
|
15925 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15926 |
for (key in D) D_is_set[key] = 1 |
15927 |
FS = "" |
15928 |
} |
15929 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
15930 |
line = \$ 0 |
15931 |
split(line, arg, " ") |
15932 |
if (arg[1] == "#") { |
15933 |
defundef = arg[2] |
15934 |
mac1 = arg[3] |
15935 |
} else { |
15936 |
defundef = substr(arg[1], 2) |
15937 |
mac1 = arg[2] |
15938 |
} |
15939 |
split(mac1, mac2, "(") #) |
15940 |
macro = mac2[1] |
15941 |
prefix = substr(line, 1, index(line, defundef) - 1) |
15942 |
if (D_is_set[macro]) { |
15943 |
# Preserve the white space surrounding the "#". |
15944 |
print prefix "define", macro P[macro] D[macro] |
15945 |
next |
15946 |
} else { |
15947 |
# Replace #undef with comments. This is necessary, for example, |
15948 |
# in the case of _POSIX_SOURCE, which is predefined and required |
15949 |
# on some systems where configure will not decide to define it. |
15950 |
if (defundef == "undef") { |
15951 |
print "/*", prefix defundef, macro, "*/" |
15952 |
next |
15953 |
} |
15954 |
} |
15955 |
} |
15956 |
{ print } |
15957 |
_ACAWK |
15958 |
_ACEOF |
15959 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15960 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
15961 |
fi # test -n "$CONFIG_HEADERS" |
15962 |
|
15963 |
|
15964 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
15965 |
shift |
15966 |
for ac_tag |
15967 |
do |
15968 |
case $ac_tag in |
15969 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
15970 |
esac |
15971 |
case $ac_mode$ac_tag in |
15972 |
:[FHL]*:*);; |
15973 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
15974 |
:[FH]-) ac_tag=-:-;; |
15975 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
15976 |
esac |
15977 |
ac_save_IFS=$IFS |
15978 |
IFS=: |
15979 |
set x $ac_tag |
15980 |
IFS=$ac_save_IFS |
15981 |
shift |
15982 |
ac_file=$1 |
15983 |
shift |
15984 |
|
15985 |
case $ac_mode in |
15986 |
:L) ac_source=$1;; |
15987 |
:[FH]) |
15988 |
ac_file_inputs= |
15989 |
for ac_f |
15990 |
do |
15991 |
case $ac_f in |
15992 |
-) ac_f="$ac_tmp/stdin";; |
15993 |
*) # Look for the file first in the build tree, then in the source tree |
15994 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
15995 |
# because $ac_f cannot contain `:'. |
15996 |
test -f "$ac_f" || |
15997 |
case $ac_f in |
15998 |
[\\/$]*) false;; |
15999 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
16000 |
esac || |
16001 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
16002 |
esac |
16003 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16004 |
as_fn_append ac_file_inputs " '$ac_f'" |
16005 |
done |
16006 |
|
16007 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
16008 |
# use $as_me), people would be surprised to read: |
16009 |
# /* config.h. Generated by config.status. */ |
16010 |
configure_input='Generated from '` |
16011 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
16012 |
`' by configure.' |
16013 |
if test x"$ac_file" != x-; then |
16014 |
configure_input="$ac_file. $configure_input" |
16015 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
16016 |
$as_echo "$as_me: creating $ac_file" >&6;} |
16017 |
fi |
16018 |
# Neutralize special characters interpreted by sed in replacement strings. |
16019 |
case $configure_input in #( |
16020 |
*\&* | *\|* | *\\* ) |
16021 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
16022 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
16023 |
*) ac_sed_conf_input=$configure_input;; |
16024 |
esac |
16025 |
|
16026 |
case $ac_tag in |
16027 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16028 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
16029 |
esac |
16030 |
;; |
16031 |
esac |
16032 |
|
16033 |
ac_dir=`$as_dirname -- "$ac_file" || |
16034 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16035 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
16036 |
X"$ac_file" : 'X\(//\)$' \| \ |
16037 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16038 |
$as_echo X"$ac_file" | |
16039 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16040 |
s//\1/ |
16041 |
q |
16042 |
} |
16043 |
/^X\(\/\/\)[^/].*/{ |
16044 |
s//\1/ |
16045 |
q |
16046 |
} |
16047 |
/^X\(\/\/\)$/{ |
16048 |
s//\1/ |
16049 |
q |
16050 |
} |
16051 |
/^X\(\/\).*/{ |
16052 |
s//\1/ |
16053 |
q |
16054 |
} |
16055 |
s/.*/./; q'` |
16056 |
as_dir="$ac_dir"; as_fn_mkdir_p |
16057 |
ac_builddir=. |
16058 |
|
16059 |
case "$ac_dir" in |
16060 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
16061 |
*) |
16062 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
16063 |
# A ".." for each directory in $ac_dir_suffix. |
16064 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
16065 |
case $ac_top_builddir_sub in |
16066 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
16067 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
16068 |
esac ;; |
16069 |
esac |
16070 |
ac_abs_top_builddir=$ac_pwd |
16071 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
16072 |
# for backward compatibility: |
16073 |
ac_top_builddir=$ac_top_build_prefix |
16074 |
|
16075 |
case $srcdir in |
16076 |
.) # We are building in place. |
16077 |
ac_srcdir=. |
16078 |
ac_top_srcdir=$ac_top_builddir_sub |
16079 |
ac_abs_top_srcdir=$ac_pwd ;; |
16080 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
16081 |
ac_srcdir=$srcdir$ac_dir_suffix; |
16082 |
ac_top_srcdir=$srcdir |
16083 |
ac_abs_top_srcdir=$srcdir ;; |
16084 |
*) # Relative name. |
16085 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
16086 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
16087 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
16088 |
esac |
16089 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
16090 |
|
16091 |
|
16092 |
case $ac_mode in |
16093 |
:F) |
16094 |
# |
16095 |
# CONFIG_FILE |
16096 |
# |
16097 |
|
16098 |
case $INSTALL in |
16099 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
16100 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
16101 |
esac |
16102 |
ac_MKDIR_P=$MKDIR_P |
16103 |
case $MKDIR_P in |
16104 |
[\\/$]* | ?:[\\/]* ) ;; |
16105 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
16106 |
esac |
16107 |
_ACEOF |
16108 |
|
16109 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16110 |
# If the template does not know about datarootdir, expand it. |
16111 |
# FIXME: This hack should be removed a few years after 2.60. |
16112 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
16113 |
ac_sed_dataroot=' |
16114 |
/datarootdir/ { |
16115 |
p |
16116 |
q |
16117 |
} |
16118 |
/@datadir@/p |
16119 |
/@docdir@/p |
16120 |
/@infodir@/p |
16121 |
/@localedir@/p |
16122 |
/@mandir@/p' |
16123 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
16124 |
*datarootdir*) ac_datarootdir_seen=yes;; |
16125 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
16126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16127 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
16128 |
_ACEOF |
16129 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16130 |
ac_datarootdir_hack=' |
16131 |
s&@datadir@&$datadir&g |
16132 |
s&@docdir@&$docdir&g |
16133 |
s&@infodir@&$infodir&g |
16134 |
s&@localedir@&$localedir&g |
16135 |
s&@mandir@&$mandir&g |
16136 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
16137 |
esac |
16138 |
_ACEOF |
16139 |
|
16140 |
# Neutralize VPATH when `$srcdir' = `.'. |
16141 |
# Shell code in configure.ac might set extrasub. |
16142 |
# FIXME: do we really want to maintain this feature? |
16143 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16144 |
ac_sed_extra="$ac_vpsub |
16145 |
$extrasub |
16146 |
_ACEOF |
16147 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16148 |
:t |
16149 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
16150 |
s|@configure_input@|$ac_sed_conf_input|;t t |
16151 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
16152 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
16153 |
s&@srcdir@&$ac_srcdir&;t t |
16154 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
16155 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
16156 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
16157 |
s&@builddir@&$ac_builddir&;t t |
16158 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
16159 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
16160 |
s&@INSTALL@&$ac_INSTALL&;t t |
16161 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
16162 |
$ac_datarootdir_hack |
16163 |
" |
16164 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16165 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16166 |
|
16167 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
16168 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16169 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
16170 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
16171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
16172 |
which seems to be undefined. Please make sure it is defined" >&5 |
16173 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
16174 |
which seems to be undefined. Please make sure it is defined" >&2;} |
16175 |
|
16176 |
rm -f "$ac_tmp/stdin" |
16177 |
case $ac_file in |
16178 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16179 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
16180 |
esac \ |
16181 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16182 |
;; |
16183 |
:H) |
16184 |
# |
16185 |
# CONFIG_HEADER |
16186 |
# |
16187 |
if test x"$ac_file" != x-; then |
16188 |
{ |
16189 |
$as_echo "/* $configure_input */" \ |
16190 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16191 |
} >"$ac_tmp/config.h" \ |
16192 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16193 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
16194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16195 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
16196 |
else |
16197 |
rm -f "$ac_file" |
16198 |
mv "$ac_tmp/config.h" "$ac_file" \ |
16199 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
16200 |
fi |
16201 |
else |
16202 |
$as_echo "/* $configure_input */" \ |
16203 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16204 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
16205 |
fi |
16206 |
# Compute "$ac_file"'s index in $config_headers. |
16207 |
_am_arg="$ac_file" |
16208 |
_am_stamp_count=1 |
16209 |
for _am_header in $config_headers :; do |
16210 |
case $_am_header in |
16211 |
$_am_arg | $_am_arg:* ) |
16212 |
break ;; |
16213 |
* ) |
16214 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
16215 |
esac |
16216 |
done |
16217 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
16218 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16219 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
16220 |
X"$_am_arg" : 'X\(//\)$' \| \ |
16221 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
16222 |
$as_echo X"$_am_arg" | |
16223 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16224 |
s//\1/ |
16225 |
q |
16226 |
} |
16227 |
/^X\(\/\/\)[^/].*/{ |
16228 |
s//\1/ |
16229 |
q |
16230 |
} |
16231 |
/^X\(\/\/\)$/{ |
16232 |
s//\1/ |
16233 |
q |
16234 |
} |
16235 |
/^X\(\/\).*/{ |
16236 |
s//\1/ |
16237 |
q |
16238 |
} |
16239 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
16240 |
;; |
16241 |
|
16242 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16243 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
16244 |
;; |
16245 |
esac |
16246 |
|
16247 |
|
16248 |
case $ac_file$ac_mode in |
16249 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
16250 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
16251 |
# are listed without --file. Let's play safe and only enable the eval |
16252 |
# if we detect the quoting. |
16253 |
case $CONFIG_FILES in |
16254 |
*\'*) eval set x "$CONFIG_FILES" ;; |
16255 |
*) set x $CONFIG_FILES ;; |
16256 |
esac |
16257 |
shift |
16258 |
for mf |
16259 |
do |
16260 |
# Strip MF so we end up with the name of the file. |
16261 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
16262 |
# Check whether this is an Automake generated Makefile or not. |
16263 |
# We used to match only the files named `Makefile.in', but |
16264 |
# some people rename them; so instead we look at the file content. |
16265 |
# Grep'ing the first line is not enough: some people post-process |
16266 |
# each Makefile.in and add a new line on top of each file to say so. |
16267 |
# Grep'ing the whole file is not good either: AIX grep has a line |
16268 |
# limit of 2048, but all sed's we know have understand at least 4000. |
16269 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
16270 |
dirpart=`$as_dirname -- "$mf" || |
16271 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16272 |
X"$mf" : 'X\(//\)[^/]' \| \ |
16273 |
X"$mf" : 'X\(//\)$' \| \ |
16274 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
16275 |
$as_echo X"$mf" | |
16276 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16277 |
s//\1/ |
16278 |
q |
16279 |
} |
16280 |
/^X\(\/\/\)[^/].*/{ |
16281 |
s//\1/ |
16282 |
q |
16283 |
} |
16284 |
/^X\(\/\/\)$/{ |
16285 |
s//\1/ |
16286 |
q |
16287 |
} |
16288 |
/^X\(\/\).*/{ |
16289 |
s//\1/ |
16290 |
q |
16291 |
} |
16292 |
s/.*/./; q'` |
16293 |
else |
16294 |
continue |
16295 |
fi |
16296 |
# Extract the definition of DEPDIR, am__include, and am__quote |
16297 |
# from the Makefile without running `make'. |
16298 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
16299 |
test -z "$DEPDIR" && continue |
16300 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
16301 |
test -z "am__include" && continue |
16302 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
16303 |
# When using ansi2knr, U may be empty or an underscore; expand it |
16304 |
U=`sed -n 's/^U = //p' < "$mf"` |
16305 |
# Find all dependency output files, they are included files with |
16306 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
16307 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
16308 |
# expansion. |
16309 |
for file in `sed -n " |
16310 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
16311 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
16312 |
# Make sure the directory exists. |
16313 |
test -f "$dirpart/$file" && continue |
16314 |
fdir=`$as_dirname -- "$file" || |
16315 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16316 |
X"$file" : 'X\(//\)[^/]' \| \ |
16317 |
X"$file" : 'X\(//\)$' \| \ |
16318 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
16319 |
$as_echo X"$file" | |
16320 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16321 |
s//\1/ |
16322 |
q |
16323 |
} |
16324 |
/^X\(\/\/\)[^/].*/{ |
16325 |
s//\1/ |
16326 |
q |
16327 |
} |
16328 |
/^X\(\/\/\)$/{ |
16329 |
s//\1/ |
16330 |
q |
16331 |
} |
16332 |
/^X\(\/\).*/{ |
16333 |
s//\1/ |
16334 |
q |
16335 |
} |
16336 |
s/.*/./; q'` |
16337 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
16338 |
# echo "creating $dirpart/$file" |
16339 |
echo '# dummy' > "$dirpart/$file" |
16340 |
done |
16341 |
done |
16342 |
} |
16343 |
;; |
16344 |
"libtool":C) |
16345 |
|
16346 |
# See if we are running on zsh, and set the options which allow our |
16347 |
# commands through without removal of \ escapes. |
16348 |
if test -n "${ZSH_VERSION+set}" ; then |
16349 |
setopt NO_GLOB_SUBST |
16350 |
fi |
16351 |
|
16352 |
cfgfile="${ofile}T" |
16353 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
16354 |
$RM "$cfgfile" |
16355 |
|
16356 |
cat <<_LT_EOF >> "$cfgfile" |
16357 |
#! $SHELL |
16358 |
|
16359 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
16360 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
16361 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16362 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
16363 |
# |
16364 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
16365 |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
16366 |
# Foundation, Inc. |
16367 |
# Written by Gordon Matzigkeit, 1996 |
16368 |
# |
16369 |
# This file is part of GNU Libtool. |
16370 |
# |
16371 |
# GNU Libtool is free software; you can redistribute it and/or |
16372 |
# modify it under the terms of the GNU General Public License as |
16373 |
# published by the Free Software Foundation; either version 2 of |
16374 |
# the License, or (at your option) any later version. |
16375 |
# |
16376 |
# As a special exception to the GNU General Public License, |
16377 |
# if you distribute this file as part of a program or library that |
16378 |
# is built using GNU Libtool, you may include this file under the |
16379 |
# same distribution terms that you use for the rest of that program. |
16380 |
# |
16381 |
# GNU Libtool is distributed in the hope that it will be useful, |
16382 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
16383 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16384 |
# GNU General Public License for more details. |
16385 |
# |
16386 |
# You should have received a copy of the GNU General Public License |
16387 |
# along with GNU Libtool; see the file COPYING. If not, a copy |
16388 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
16389 |
# obtained by writing to the Free Software Foundation, Inc., |
16390 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
16391 |
|
16392 |
|
16393 |
# The names of the tagged configurations supported by this script. |
16394 |
available_tags="" |
16395 |
|
16396 |
# ### BEGIN LIBTOOL CONFIG |
16397 |
|
16398 |
# Which release of libtool.m4 was used? |
16399 |
macro_version=$macro_version |
16400 |
macro_revision=$macro_revision |
16401 |
|
16402 |
# Whether or not to build static libraries. |
16403 |
build_old_libs=$enable_static |
16404 |
|
16405 |
# Whether or not to build shared libraries. |
16406 |
build_libtool_libs=$enable_shared |
16407 |
|
16408 |
# What type of objects to build. |
16409 |
pic_mode=$pic_mode |
16410 |
|
16411 |
# Whether or not to optimize for fast installation. |
16412 |
fast_install=$enable_fast_install |
16413 |
|
16414 |
# Shell to use when invoking shell scripts. |
16415 |
SHELL=$lt_SHELL |
16416 |
|
16417 |
# An echo program that protects backslashes. |
16418 |
ECHO=$lt_ECHO |
16419 |
|
16420 |
# The PATH separator for the build system. |
16421 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
16422 |
|
16423 |
# The host system. |
16424 |
host_alias=$host_alias |
16425 |
host=$host |
16426 |
host_os=$host_os |
16427 |
|
16428 |
# The build system. |
16429 |
build_alias=$build_alias |
16430 |
build=$build |
16431 |
build_os=$build_os |
16432 |
|
16433 |
# A sed program that does not truncate output. |
16434 |
SED=$lt_SED |
16435 |
|
16436 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
16437 |
Xsed="\$SED -e 1s/^X//" |
16438 |
|
16439 |
# A grep program that handles long lines. |
16440 |
GREP=$lt_GREP |
16441 |
|
16442 |
# An ERE matcher. |
16443 |
EGREP=$lt_EGREP |
16444 |
|
16445 |
# A literal string matcher. |
16446 |
FGREP=$lt_FGREP |
16447 |
|
16448 |
# A BSD- or MS-compatible name lister. |
16449 |
NM=$lt_NM |
16450 |
|
16451 |
# Whether we need soft or hard links. |
16452 |
LN_S=$lt_LN_S |
16453 |
|
16454 |
# What is the maximum length of a command? |
16455 |
max_cmd_len=$max_cmd_len |
16456 |
|
16457 |
# Object file suffix (normally "o"). |
16458 |
objext=$ac_objext |
16459 |
|
16460 |
# Executable file suffix (normally ""). |
16461 |
exeext=$exeext |
16462 |
|
16463 |
# whether the shell understands "unset". |
16464 |
lt_unset=$lt_unset |
16465 |
|
16466 |
# turn spaces into newlines. |
16467 |
SP2NL=$lt_lt_SP2NL |
16468 |
|
16469 |
# turn newlines into spaces. |
16470 |
NL2SP=$lt_lt_NL2SP |
16471 |
|
16472 |
# convert \$build file names to \$host format. |
16473 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
16474 |
|
16475 |
# convert \$build files to toolchain format. |
16476 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
16477 |
|
16478 |
# An object symbol dumper. |
16479 |
OBJDUMP=$lt_OBJDUMP |
16480 |
|
16481 |
# Method to check whether dependent libraries are shared objects. |
16482 |
deplibs_check_method=$lt_deplibs_check_method |
16483 |
|
16484 |
# Command to use when deplibs_check_method = "file_magic". |
16485 |
file_magic_cmd=$lt_file_magic_cmd |
16486 |
|
16487 |
# How to find potential files when deplibs_check_method = "file_magic". |
16488 |
file_magic_glob=$lt_file_magic_glob |
16489 |
|
16490 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
16491 |
want_nocaseglob=$lt_want_nocaseglob |
16492 |
|
16493 |
# DLL creation program. |
16494 |
DLLTOOL=$lt_DLLTOOL |
16495 |
|
16496 |
# Command to associate shared and link libraries. |
16497 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
16498 |
|
16499 |
# The archiver. |
16500 |
AR=$lt_AR |
16501 |
|
16502 |
# Flags to create an archive. |
16503 |
AR_FLAGS=$lt_AR_FLAGS |
16504 |
|
16505 |
# How to feed a file listing to the archiver. |
16506 |
archiver_list_spec=$lt_archiver_list_spec |
16507 |
|
16508 |
# A symbol stripping program. |
16509 |
STRIP=$lt_STRIP |
16510 |
|
16511 |
# Commands used to install an old-style archive. |
16512 |
RANLIB=$lt_RANLIB |
16513 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
16514 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16515 |
|
16516 |
# Whether to use a lock for old archive extraction. |
16517 |
lock_old_archive_extraction=$lock_old_archive_extraction |
16518 |
|
16519 |
# A C compiler. |
16520 |
LTCC=$lt_CC |
16521 |
|
16522 |
# LTCC compiler flags. |
16523 |
LTCFLAGS=$lt_CFLAGS |
16524 |
|
16525 |
# Take the output of nm and produce a listing of raw symbols and C names. |
16526 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16527 |
|
16528 |
# Transform the output of nm in a proper C declaration. |
16529 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16530 |
|
16531 |
# Transform the output of nm in a C name address pair. |
16532 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16533 |
|
16534 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
16535 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
16536 |
|
16537 |
# Specify filename containing input files for \$NM. |
16538 |
nm_file_list_spec=$lt_nm_file_list_spec |
16539 |
|
16540 |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
16541 |
lt_sysroot=$lt_sysroot |
16542 |
|
16543 |
# The name of the directory that contains temporary libtool files. |
16544 |
objdir=$objdir |
16545 |
|
16546 |
# Used to examine libraries when file_magic_cmd begins with "file". |
16547 |
MAGIC_CMD=$MAGIC_CMD |
16548 |
|
16549 |
# Must we lock files when doing compilation? |
16550 |
need_locks=$lt_need_locks |
16551 |
|
16552 |
# Manifest tool. |
16553 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
16554 |
|
16555 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16556 |
DSYMUTIL=$lt_DSYMUTIL |
16557 |
|
16558 |
# Tool to change global to local symbols on Mac OS X. |
16559 |
NMEDIT=$lt_NMEDIT |
16560 |
|
16561 |
# Tool to manipulate fat objects and archives on Mac OS X. |
16562 |
LIPO=$lt_LIPO |
16563 |
|
16564 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
16565 |
OTOOL=$lt_OTOOL |
16566 |
|
16567 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
16568 |
OTOOL64=$lt_OTOOL64 |
16569 |
|
16570 |
# Old archive suffix (normally "a"). |
16571 |
libext=$libext |
16572 |
|
16573 |
# Shared library suffix (normally ".so"). |
16574 |
shrext_cmds=$lt_shrext_cmds |
16575 |
|
16576 |
# The commands to extract the exported symbol list from a shared archive. |
16577 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16578 |
|
16579 |
# Variables whose values should be saved in libtool wrapper scripts and |
16580 |
# restored at link time. |
16581 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
16582 |
|
16583 |
# Do we need the "lib" prefix for modules? |
16584 |
need_lib_prefix=$need_lib_prefix |
16585 |
|
16586 |
# Do we need a version for libraries? |
16587 |
need_version=$need_version |
16588 |
|
16589 |
# Library versioning type. |
16590 |
version_type=$version_type |
16591 |
|
16592 |
# Shared library runtime path variable. |
16593 |
runpath_var=$runpath_var |
16594 |
|
16595 |
# Shared library path variable. |
16596 |
shlibpath_var=$shlibpath_var |
16597 |
|
16598 |
# Is shlibpath searched before the hard-coded library search path? |
16599 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16600 |
|
16601 |
# Format of library name prefix. |
16602 |
libname_spec=$lt_libname_spec |
16603 |
|
16604 |
# List of archive names. First name is the real one, the rest are links. |
16605 |
# The last name is the one that the linker finds with -lNAME |
16606 |
library_names_spec=$lt_library_names_spec |
16607 |
|
16608 |
# The coded name of the library, if different from the real name. |
16609 |
soname_spec=$lt_soname_spec |
16610 |
|
16611 |
# Permission mode override for installation of shared libraries. |
16612 |
install_override_mode=$lt_install_override_mode |
16613 |
|
16614 |
# Command to use after installation of a shared archive. |
16615 |
postinstall_cmds=$lt_postinstall_cmds |
16616 |
|
16617 |
# Command to use after uninstallation of a shared archive. |
16618 |
postuninstall_cmds=$lt_postuninstall_cmds |
16619 |
|
16620 |
# Commands used to finish a libtool library installation in a directory. |
16621 |
finish_cmds=$lt_finish_cmds |
16622 |
|
16623 |
# As "finish_cmds", except a single script fragment to be evaled but |
16624 |
# not shown. |
16625 |
finish_eval=$lt_finish_eval |
16626 |
|
16627 |
# Whether we should hardcode library paths into libraries. |
16628 |
hardcode_into_libs=$hardcode_into_libs |
16629 |
|
16630 |
# Compile-time system search path for libraries. |
16631 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
16632 |
|
16633 |
# Run-time system search path for libraries. |
16634 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16635 |
|
16636 |
# Whether dlopen is supported. |
16637 |
dlopen_support=$enable_dlopen |
16638 |
|
16639 |
# Whether dlopen of programs is supported. |
16640 |
dlopen_self=$enable_dlopen_self |
16641 |
|
16642 |
# Whether dlopen of statically linked programs is supported. |
16643 |
dlopen_self_static=$enable_dlopen_self_static |
16644 |
|
16645 |
# Commands to strip libraries. |
16646 |
old_striplib=$lt_old_striplib |
16647 |
striplib=$lt_striplib |
16648 |
|
16649 |
|
16650 |
# The linker used to build libraries. |
16651 |
LD=$lt_LD |
16652 |
|
16653 |
# How to create reloadable object files. |
16654 |
reload_flag=$lt_reload_flag |
16655 |
reload_cmds=$lt_reload_cmds |
16656 |
|
16657 |
# Commands used to build an old-style archive. |
16658 |
old_archive_cmds=$lt_old_archive_cmds |
16659 |
|
16660 |
# A language specific compiler. |
16661 |
CC=$lt_compiler |
16662 |
|
16663 |
# Is the compiler the GNU compiler? |
16664 |
with_gcc=$GCC |
16665 |
|
16666 |
# Compiler flag to turn off builtin functions. |
16667 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
16668 |
|
16669 |
# Additional compiler flags for building library objects. |
16670 |
pic_flag=$lt_lt_prog_compiler_pic |
16671 |
|
16672 |
# How to pass a linker flag through the compiler. |
16673 |
wl=$lt_lt_prog_compiler_wl |
16674 |
|
16675 |
# Compiler flag to prevent dynamic linking. |
16676 |
link_static_flag=$lt_lt_prog_compiler_static |
16677 |
|
16678 |
# Does compiler simultaneously support -c and -o options? |
16679 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
16680 |
|
16681 |
# Whether or not to add -lc for building shared libraries. |
16682 |
build_libtool_need_lc=$archive_cmds_need_lc |
16683 |
|
16684 |
# Whether or not to disallow shared libs when runtime libs are static. |
16685 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
16686 |
|
16687 |
# Compiler flag to allow reflexive dlopens. |
16688 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
16689 |
|
16690 |
# Compiler flag to generate shared objects directly from archives. |
16691 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
16692 |
|
16693 |
# Whether the compiler copes with passing no objects directly. |
16694 |
compiler_needs_object=$lt_compiler_needs_object |
16695 |
|
16696 |
# Create an old-style archive from a shared archive. |
16697 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
16698 |
|
16699 |
# Create a temporary old-style archive to link instead of a shared archive. |
16700 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
16701 |
|
16702 |
# Commands used to build a shared archive. |
16703 |
archive_cmds=$lt_archive_cmds |
16704 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
16705 |
|
16706 |
# Commands used to build a loadable module if different from building |
16707 |
# a shared archive. |
16708 |
module_cmds=$lt_module_cmds |
16709 |
module_expsym_cmds=$lt_module_expsym_cmds |
16710 |
|
16711 |
# Whether we are building with GNU ld or not. |
16712 |
with_gnu_ld=$lt_with_gnu_ld |
16713 |
|
16714 |
# Flag that allows shared libraries with undefined symbols to be built. |
16715 |
allow_undefined_flag=$lt_allow_undefined_flag |
16716 |
|
16717 |
# Flag that enforces no undefined symbols. |
16718 |
no_undefined_flag=$lt_no_undefined_flag |
16719 |
|
16720 |
# Flag to hardcode \$libdir into a binary during linking. |
16721 |
# This must work even if \$libdir does not exist |
16722 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
16723 |
|
16724 |
# Whether we need a single "-rpath" flag with a separated argument. |
16725 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
16726 |
|
16727 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16728 |
# DIR into the resulting binary. |
16729 |
hardcode_direct=$hardcode_direct |
16730 |
|
16731 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16732 |
# DIR into the resulting binary and the resulting library dependency is |
16733 |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
16734 |
# library is relocated. |
16735 |
hardcode_direct_absolute=$hardcode_direct_absolute |
16736 |
|
16737 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
16738 |
# into the resulting binary. |
16739 |
hardcode_minus_L=$hardcode_minus_L |
16740 |
|
16741 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
16742 |
# into the resulting binary. |
16743 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
16744 |
|
16745 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
16746 |
# into the library and all subsequent libraries and executables linked |
16747 |
# against it. |
16748 |
hardcode_automatic=$hardcode_automatic |
16749 |
|
16750 |
# Set to yes if linker adds runtime paths of dependent libraries |
16751 |
# to runtime path list. |
16752 |
inherit_rpath=$inherit_rpath |
16753 |
|
16754 |
# Whether libtool must link a program against all its dependency libraries. |
16755 |
link_all_deplibs=$link_all_deplibs |
16756 |
|
16757 |
# Set to "yes" if exported symbols are required. |
16758 |
always_export_symbols=$always_export_symbols |
16759 |
|
16760 |
# The commands to list exported symbols. |
16761 |
export_symbols_cmds=$lt_export_symbols_cmds |
16762 |
|
16763 |
# Symbols that should not be listed in the preloaded symbols. |
16764 |
exclude_expsyms=$lt_exclude_expsyms |
16765 |
|
16766 |
# Symbols that must always be exported. |
16767 |
include_expsyms=$lt_include_expsyms |
16768 |
|
16769 |
# Commands necessary for linking programs (against libraries) with templates. |
16770 |
prelink_cmds=$lt_prelink_cmds |
16771 |
|
16772 |
# Commands necessary for finishing linking programs. |
16773 |
postlink_cmds=$lt_postlink_cmds |
16774 |
|
16775 |
# Specify filename containing input files. |
16776 |
file_list_spec=$lt_file_list_spec |
16777 |
|
16778 |
# How to hardcode a shared library path into an executable. |
16779 |
hardcode_action=$hardcode_action |
16780 |
|
16781 |
# ### END LIBTOOL CONFIG |
16782 |
|
16783 |
_LT_EOF |
16784 |
|
16785 |
case $host_os in |
16786 |
aix3*) |
16787 |
cat <<\_LT_EOF >> "$cfgfile" |
16788 |
# AIX sometimes has problems with the GCC collect2 program. For some |
16789 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
16790 |
# vanish in a puff of smoke. |
16791 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
16792 |
COLLECT_NAMES= |
16793 |
export COLLECT_NAMES |
16794 |
fi |
16795 |
_LT_EOF |
16796 |
;; |
16797 |
esac |
16798 |
|
16799 |
|
16800 |
ltmain="$ac_aux_dir/ltmain.sh" |
16801 |
|
16802 |
|
16803 |
# We use sed instead of cat because bash on DJGPP gets confused if |
16804 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
16805 |
# text mode, it properly converts lines to CR/LF. This bash problem |
16806 |
# is reportedly fixed, but why not run on old versions too? |
16807 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
16808 |
|| (rm -f "$cfgfile"; exit 1) |
16809 |
|
16810 |
if test x"$xsi_shell" = xyes; then |
16811 |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
16812 |
func_dirname ()\ |
16813 |
{\ |
16814 |
\ case ${1} in\ |
16815 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
16816 |
\ * ) func_dirname_result="${3}" ;;\ |
16817 |
\ esac\ |
16818 |
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
16819 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16820 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16821 |
test 0 -eq $? || _lt_function_replace_fail=: |
16822 |
|
16823 |
|
16824 |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
16825 |
func_basename ()\ |
16826 |
{\ |
16827 |
\ func_basename_result="${1##*/}"\ |
16828 |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
16829 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16830 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16831 |
test 0 -eq $? || _lt_function_replace_fail=: |
16832 |
|
16833 |
|
16834 |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
16835 |
func_dirname_and_basename ()\ |
16836 |
{\ |
16837 |
\ case ${1} in\ |
16838 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
16839 |
\ * ) func_dirname_result="${3}" ;;\ |
16840 |
\ esac\ |
16841 |
\ func_basename_result="${1##*/}"\ |
16842 |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
16843 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16844 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16845 |
test 0 -eq $? || _lt_function_replace_fail=: |
16846 |
|
16847 |
|
16848 |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
16849 |
func_stripname ()\ |
16850 |
{\ |
16851 |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
16852 |
\ # positional parameters, so assign one to ordinary parameter first.\ |
16853 |
\ func_stripname_result=${3}\ |
16854 |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
16855 |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
16856 |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
16857 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16858 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16859 |
test 0 -eq $? || _lt_function_replace_fail=: |
16860 |
|
16861 |
|
16862 |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
16863 |
func_split_long_opt ()\ |
16864 |
{\ |
16865 |
\ func_split_long_opt_name=${1%%=*}\ |
16866 |
\ func_split_long_opt_arg=${1#*=}\ |
16867 |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
16868 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16869 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16870 |
test 0 -eq $? || _lt_function_replace_fail=: |
16871 |
|
16872 |
|
16873 |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
16874 |
func_split_short_opt ()\ |
16875 |
{\ |
16876 |
\ func_split_short_opt_arg=${1#??}\ |
16877 |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
16878 |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
16879 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16880 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16881 |
test 0 -eq $? || _lt_function_replace_fail=: |
16882 |
|
16883 |
|
16884 |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
16885 |
func_lo2o ()\ |
16886 |
{\ |
16887 |
\ case ${1} in\ |
16888 |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
16889 |
\ *) func_lo2o_result=${1} ;;\ |
16890 |
\ esac\ |
16891 |
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
16892 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16893 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16894 |
test 0 -eq $? || _lt_function_replace_fail=: |
16895 |
|
16896 |
|
16897 |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
16898 |
func_xform ()\ |
16899 |
{\ |
16900 |
func_xform_result=${1%.*}.lo\ |
16901 |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
16902 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16903 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16904 |
test 0 -eq $? || _lt_function_replace_fail=: |
16905 |
|
16906 |
|
16907 |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
16908 |
func_arith ()\ |
16909 |
{\ |
16910 |
func_arith_result=$(( $* ))\ |
16911 |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
16912 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16913 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16914 |
test 0 -eq $? || _lt_function_replace_fail=: |
16915 |
|
16916 |
|
16917 |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
16918 |
func_len ()\ |
16919 |
{\ |
16920 |
func_len_result=${#1}\ |
16921 |
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
16922 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16923 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16924 |
test 0 -eq $? || _lt_function_replace_fail=: |
16925 |
|
16926 |
fi |
16927 |
|
16928 |
if test x"$lt_shell_append" = xyes; then |
16929 |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
16930 |
func_append ()\ |
16931 |
{\ |
16932 |
eval "${1}+=\\${2}"\ |
16933 |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
16934 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16935 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16936 |
test 0 -eq $? || _lt_function_replace_fail=: |
16937 |
|
16938 |
|
16939 |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
16940 |
func_append_quoted ()\ |
16941 |
{\ |
16942 |
\ func_quote_for_eval "${2}"\ |
16943 |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
16944 |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
16945 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16946 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16947 |
test 0 -eq $? || _lt_function_replace_fail=: |
16948 |
|
16949 |
|
16950 |
# Save a `func_append' function call where possible by direct use of '+=' |
16951 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
16952 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16953 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16954 |
test 0 -eq $? || _lt_function_replace_fail=: |
16955 |
else |
16956 |
# Save a `func_append' function call even when '+=' is not available |
16957 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
16958 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
16959 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
16960 |
test 0 -eq $? || _lt_function_replace_fail=: |
16961 |
fi |
16962 |
|
16963 |
if test x"$_lt_function_replace_fail" = x":"; then |
16964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
16965 |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
16966 |
fi |
16967 |
|
16968 |
|
16969 |
mv -f "$cfgfile" "$ofile" || |
16970 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
16971 |
chmod +x "$ofile" |
16972 |
|
16973 |
;; |
16974 |
|
16975 |
esac |
16976 |
done # for ac_tag |
16977 |
|
16978 |
|
16979 |
as_fn_exit 0 |
16980 |
_ACEOF |
16981 |
ac_clean_files=$ac_clean_files_save |
16982 |
|
16983 |
test $ac_write_fail = 0 || |
16984 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
16985 |
|
16986 |
|
16987 |
# configure is writing to config.log, and then calls config.status. |
16988 |
# config.status does its own redirection, appending to config.log. |
16989 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
16990 |
# by configure, so config.status won't be able to write to it; its |
16991 |
# output is simply discarded. So we exec the FD to /dev/null, |
16992 |
# effectively closing config.log, so it can be properly (re)opened and |
16993 |
# appended to by config.status. When coming back to configure, we |
16994 |
# need to make the FD available again. |
16995 |
if test "$no_create" != yes; then |
16996 |
ac_cs_success=: |
16997 |
ac_config_status_args= |
16998 |
test "$silent" = yes && |
16999 |
ac_config_status_args="$ac_config_status_args --quiet" |
17000 |
exec 5>/dev/null |
17001 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
17002 |
exec 5>>config.log |
17003 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
17004 |
# would make configure fail if this is the last instruction. |
17005 |
$ac_cs_success || as_fn_exit 1 |
17006 |
fi |
17007 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
17008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
17009 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
17010 |
fi |
17011 |
|